more 🐟 (2)

This commit is contained in:
Ethan Roseman 2021-01-10 19:05:49 +09:00
parent 8be70ed254
commit eadbf1bc01
135 changed files with 14016 additions and 8 deletions

View File

@ -0,0 +1,156 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_422000
/* 422000 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 422004 802A9004 3C03800E */ lui $v1, %hi(gBattleStatus)
/* 422008 802A9008 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus)
/* 42200C 802A900C 24020001 */ addiu $v0, $zero, 1
/* 422010 802A9010 AFBF0018 */ sw $ra, 0x18($sp)
/* 422014 802A9014 AFB10014 */ sw $s1, 0x14($sp)
/* 422018 802A9018 AFB00010 */ sw $s0, 0x10($sp)
/* 42201C 802A901C A0620082 */ sb $v0, 0x82($v1)
/* 422020 802A9020 3C028029 */ lui $v0, %hi(D_802941E0)
/* 422024 802A9024 244241E0 */ addiu $v0, $v0, %lo(D_802941E0)
/* 422028 802A9028 AC620434 */ sw $v0, 0x434($v1)
/* 42202C 802A902C 80620083 */ lb $v0, 0x83($v1)
/* 422030 802A9030 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 422034 802A9034 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 422038 802A9038 1040007F */ beqz $v0, .L802A9238
/* 42203C 802A903C A0600086 */ sb $zero, 0x86($v1)
/* 422040 802A9040 0C09A216 */ jal func_80268858
/* 422044 802A9044 00000000 */ nop
/* 422048 802A9048 3C048029 */ lui $a0, %hi(D_802922F0)
/* 42204C 802A904C 248422F0 */ addiu $a0, $a0, %lo(D_802922F0)
/* 422050 802A9050 24020002 */ addiu $v0, $zero, 2
/* 422054 802A9054 A622004A */ sh $v0, 0x4a($s1)
/* 422058 802A9058 2402FFD0 */ addiu $v0, $zero, -0x30
/* 42205C 802A905C A6220056 */ sh $v0, 0x56($s1)
/* 422060 802A9060 24020060 */ addiu $v0, $zero, 0x60
/* 422064 802A9064 A620004C */ sh $zero, 0x4c($s1)
/* 422068 802A9068 A2200060 */ sb $zero, 0x60($s1)
/* 42206C 802A906C 0C050529 */ jal create_icon
/* 422070 802A9070 A6220058 */ sh $v0, 0x58($s1)
/* 422074 802A9074 0040802D */ daddu $s0, $v0, $zero
/* 422078 802A9078 0200202D */ daddu $a0, $s0, $zero
/* 42207C 802A907C 24050082 */ addiu $a1, $zero, 0x82
/* 422080 802A9080 0C051280 */ jal set_icon_flags
/* 422084 802A9084 AE300004 */ sw $s0, 4($s1)
/* 422088 802A9088 86250056 */ lh $a1, 0x56($s1)
/* 42208C 802A908C 86260058 */ lh $a2, 0x58($s1)
/* 422090 802A9090 0C051261 */ jal set_icon_render_pos
/* 422094 802A9094 0200202D */ daddu $a0, $s0, $zero
/* 422098 802A9098 0200202D */ daddu $a0, $s0, $zero
/* 42209C 802A909C 0C051277 */ jal func_801449DC
/* 4220A0 802A90A0 2405000A */ addiu $a1, $zero, 0xa
/* 4220A4 802A90A4 3C048029 */ lui $a0, %hi(D_8029275C)
/* 4220A8 802A90A8 2484275C */ addiu $a0, $a0, %lo(D_8029275C)
/* 4220AC 802A90AC 0C050529 */ jal create_icon
/* 4220B0 802A90B0 00000000 */ nop
/* 4220B4 802A90B4 0040802D */ daddu $s0, $v0, $zero
/* 4220B8 802A90B8 0200202D */ daddu $a0, $s0, $zero
/* 4220BC 802A90BC 24050082 */ addiu $a1, $zero, 0x82
/* 4220C0 802A90C0 0C051280 */ jal set_icon_flags
/* 4220C4 802A90C4 AE300008 */ sw $s0, 8($s1)
/* 4220C8 802A90C8 86250056 */ lh $a1, 0x56($s1)
/* 4220CC 802A90CC 86260058 */ lh $a2, 0x58($s1)
/* 4220D0 802A90D0 0C051261 */ jal set_icon_render_pos
/* 4220D4 802A90D4 0200202D */ daddu $a0, $s0, $zero
/* 4220D8 802A90D8 0200202D */ daddu $a0, $s0, $zero
/* 4220DC 802A90DC 0C051277 */ jal func_801449DC
/* 4220E0 802A90E0 0000282D */ daddu $a1, $zero, $zero
/* 4220E4 802A90E4 3C048029 */ lui $a0, %hi(D_802927F0)
/* 4220E8 802A90E8 248427F0 */ addiu $a0, $a0, %lo(D_802927F0)
/* 4220EC 802A90EC 0C050529 */ jal create_icon
/* 4220F0 802A90F0 00000000 */ nop
/* 4220F4 802A90F4 0040802D */ daddu $s0, $v0, $zero
/* 4220F8 802A90F8 0200202D */ daddu $a0, $s0, $zero
/* 4220FC 802A90FC 24050082 */ addiu $a1, $zero, 0x82
/* 422100 802A9100 0C051280 */ jal set_icon_flags
/* 422104 802A9104 AE30000C */ sw $s0, 0xc($s1)
/* 422108 802A9108 86250056 */ lh $a1, 0x56($s1)
/* 42210C 802A910C 86260058 */ lh $a2, 0x58($s1)
/* 422110 802A9110 0C051261 */ jal set_icon_render_pos
/* 422114 802A9114 0200202D */ daddu $a0, $s0, $zero
/* 422118 802A9118 0200202D */ daddu $a0, $s0, $zero
/* 42211C 802A911C 0C051277 */ jal func_801449DC
/* 422120 802A9120 0000282D */ daddu $a1, $zero, $zero
/* 422124 802A9124 3C048029 */ lui $a0, %hi(D_80292848)
/* 422128 802A9128 24842848 */ addiu $a0, $a0, %lo(D_80292848)
/* 42212C 802A912C 0C050529 */ jal create_icon
/* 422130 802A9130 00000000 */ nop
/* 422134 802A9134 0040802D */ daddu $s0, $v0, $zero
/* 422138 802A9138 0200202D */ daddu $a0, $s0, $zero
/* 42213C 802A913C 24050082 */ addiu $a1, $zero, 0x82
/* 422140 802A9140 0C051280 */ jal set_icon_flags
/* 422144 802A9144 AE300010 */ sw $s0, 0x10($s1)
/* 422148 802A9148 86250056 */ lh $a1, 0x56($s1)
/* 42214C 802A914C 86260058 */ lh $a2, 0x58($s1)
/* 422150 802A9150 0C051261 */ jal set_icon_render_pos
/* 422154 802A9154 0200202D */ daddu $a0, $s0, $zero
/* 422158 802A9158 0200202D */ daddu $a0, $s0, $zero
/* 42215C 802A915C 0C051277 */ jal func_801449DC
/* 422160 802A9160 0000282D */ daddu $a1, $zero, $zero
/* 422164 802A9164 3C048029 */ lui $a0, %hi(D_802928A0)
/* 422168 802A9168 248428A0 */ addiu $a0, $a0, %lo(D_802928A0)
/* 42216C 802A916C 0C050529 */ jal create_icon
/* 422170 802A9170 00000000 */ nop
/* 422174 802A9174 0040802D */ daddu $s0, $v0, $zero
/* 422178 802A9178 0200202D */ daddu $a0, $s0, $zero
/* 42217C 802A917C 24050082 */ addiu $a1, $zero, 0x82
/* 422180 802A9180 0C051280 */ jal set_icon_flags
/* 422184 802A9184 AE300014 */ sw $s0, 0x14($s1)
/* 422188 802A9188 86250056 */ lh $a1, 0x56($s1)
/* 42218C 802A918C 86260058 */ lh $a2, 0x58($s1)
/* 422190 802A9190 0C051261 */ jal set_icon_render_pos
/* 422194 802A9194 0200202D */ daddu $a0, $s0, $zero
/* 422198 802A9198 0200202D */ daddu $a0, $s0, $zero
/* 42219C 802A919C 0C051277 */ jal func_801449DC
/* 4221A0 802A91A0 0000282D */ daddu $a1, $zero, $zero
/* 4221A4 802A91A4 3C048011 */ lui $a0, %hi(D_80108E48)
/* 4221A8 802A91A8 24848E48 */ addiu $a0, $a0, %lo(D_80108E48)
/* 4221AC 802A91AC 0C050529 */ jal create_icon
/* 4221B0 802A91B0 00000000 */ nop
/* 4221B4 802A91B4 0040802D */ daddu $s0, $v0, $zero
/* 4221B8 802A91B8 0200202D */ daddu $a0, $s0, $zero
/* 4221BC 802A91BC 24050082 */ addiu $a1, $zero, 0x82
/* 4221C0 802A91C0 0C051280 */ jal set_icon_flags
/* 4221C4 802A91C4 AE300018 */ sw $s0, 0x18($s1)
/* 4221C8 802A91C8 86250056 */ lh $a1, 0x56($s1)
/* 4221CC 802A91CC 86260058 */ lh $a2, 0x58($s1)
/* 4221D0 802A91D0 0C051261 */ jal set_icon_render_pos
/* 4221D4 802A91D4 0200202D */ daddu $a0, $s0, $zero
/* 4221D8 802A91D8 0200202D */ daddu $a0, $s0, $zero
/* 4221DC 802A91DC 0C051277 */ jal func_801449DC
/* 4221E0 802A91E0 0000282D */ daddu $a1, $zero, $zero
/* 4221E4 802A91E4 3C048029 */ lui $a0, %hi(D_80292A2C)
/* 4221E8 802A91E8 24842A2C */ addiu $a0, $a0, %lo(D_80292A2C)
/* 4221EC 802A91EC 0C050529 */ jal create_icon
/* 4221F0 802A91F0 00000000 */ nop
/* 4221F4 802A91F4 0040802D */ daddu $s0, $v0, $zero
/* 4221F8 802A91F8 0200202D */ daddu $a0, $s0, $zero
/* 4221FC 802A91FC 24050082 */ addiu $a1, $zero, 0x82
/* 422200 802A9200 0C051280 */ jal set_icon_flags
/* 422204 802A9204 AE30001C */ sw $s0, 0x1c($s1)
/* 422208 802A9208 86250056 */ lh $a1, 0x56($s1)
/* 42220C 802A920C 86260058 */ lh $a2, 0x58($s1)
/* 422210 802A9210 0C051261 */ jal set_icon_render_pos
/* 422214 802A9214 0200202D */ daddu $a0, $s0, $zero
/* 422218 802A9218 0200202D */ daddu $a0, $s0, $zero
/* 42221C 802A921C 0C051277 */ jal func_801449DC
/* 422220 802A9220 0000282D */ daddu $a1, $zero, $zero
/* 422224 802A9224 0200202D */ daddu $a0, $s0, $zero
/* 422228 802A9228 0C0513AC */ jal icon_set_opacity
/* 42222C 802A922C 240500FF */ addiu $a1, $zero, 0xff
/* 422230 802A9230 080AA491 */ j .L802A9244
/* 422234 802A9234 24020002 */ addiu $v0, $zero, 2
.L802A9238:
/* 422238 802A9238 24020002 */ addiu $v0, $zero, 2
/* 42223C 802A923C A0600081 */ sb $zero, 0x81($v1)
/* 422240 802A9240 A0600084 */ sb $zero, 0x84($v1)
.L802A9244:
/* 422244 802A9244 8FBF0018 */ lw $ra, 0x18($sp)
/* 422248 802A9248 8FB10014 */ lw $s1, 0x14($sp)
/* 42224C 802A924C 8FB00010 */ lw $s0, 0x10($sp)
/* 422250 802A9250 03E00008 */ jr $ra
/* 422254 802A9254 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,76 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9258_422258
/* 422258 802A9258 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42225C 802A925C AFB20018 */ sw $s2, 0x18($sp)
/* 422260 802A9260 0080902D */ daddu $s2, $a0, $zero
/* 422264 802A9264 AFB10014 */ sw $s1, 0x14($sp)
/* 422268 802A9268 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42226C 802A926C 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 422270 802A9270 AFB40020 */ sw $s4, 0x20($sp)
/* 422274 802A9274 0220A02D */ daddu $s4, $s1, $zero
/* 422278 802A9278 3C03800E */ lui $v1, %hi(gBattleStatus)
/* 42227C 802A927C 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus)
/* 422280 802A9280 AFB3001C */ sw $s3, 0x1c($sp)
/* 422284 802A9284 AFBF0024 */ sw $ra, 0x24($sp)
/* 422288 802A9288 AFB00010 */ sw $s0, 0x10($sp)
/* 42228C 802A928C 80620083 */ lb $v0, 0x83($v1)
/* 422290 802A9290 8E50000C */ lw $s0, 0xc($s2)
/* 422294 802A9294 14400005 */ bnez $v0, .L802A92AC
/* 422298 802A9298 0060982D */ daddu $s3, $v1, $zero
/* 42229C 802A929C 24020002 */ addiu $v0, $zero, 2
/* 4222A0 802A92A0 A0600081 */ sb $zero, 0x81($v1)
/* 4222A4 802A92A4 080AA4D3 */ j .L802A934C
/* 4222A8 802A92A8 A0600084 */ sb $zero, 0x84($v1)
.L802A92AC:
/* 4222AC 802A92AC 0C09A216 */ jal func_80268858
/* 4222B0 802A92B0 00000000 */ nop
/* 4222B4 802A92B4 8E050000 */ lw $a1, ($s0)
/* 4222B8 802A92B8 26100004 */ addiu $s0, $s0, 4
/* 4222BC 802A92BC 0C0B1EAF */ jal get_variable
/* 4222C0 802A92C0 0240202D */ daddu $a0, $s2, $zero
/* 4222C4 802A92C4 A622004E */ sh $v0, 0x4e($s1)
/* 4222C8 802A92C8 8E050000 */ lw $a1, ($s0)
/* 4222CC 802A92CC 26100004 */ addiu $s0, $s0, 4
/* 4222D0 802A92D0 0C0B1EAF */ jal get_variable
/* 4222D4 802A92D4 0240202D */ daddu $a0, $s2, $zero
/* 4222D8 802A92D8 A6220052 */ sh $v0, 0x52($s1)
/* 4222DC 802A92DC 8E050000 */ lw $a1, ($s0)
/* 4222E0 802A92E0 0C0B1EAF */ jal get_variable
/* 4222E4 802A92E4 0240202D */ daddu $a0, $s2, $zero
/* 4222E8 802A92E8 00022400 */ sll $a0, $v0, 0x10
/* 4222EC 802A92EC 00042403 */ sra $a0, $a0, 0x10
/* 4222F0 802A92F0 0C09A089 */ jal func_80268224
/* 4222F4 802A92F4 A6220050 */ sh $v0, 0x50($s1)
/* 4222F8 802A92F8 8623004E */ lh $v1, 0x4e($s1)
/* 4222FC 802A92FC A6220050 */ sh $v0, 0x50($s1)
/* 422300 802A9300 24020001 */ addiu $v0, $zero, 1
/* 422304 802A9304 A2200060 */ sb $zero, 0x60($s1)
/* 422308 802A9308 04610003 */ bgez $v1, .L802A9318
/* 42230C 802A930C A2220062 */ sb $v0, 0x62($s1)
/* 422310 802A9310 A620004E */ sh $zero, 0x4e($s1)
/* 422314 802A9314 A2200062 */ sb $zero, 0x62($s1)
.L802A9318:
/* 422318 802A9318 3C02FFFF */ lui $v0, 0xffff
/* 42231C 802A931C 34427FFF */ ori $v0, $v0, 0x7fff
/* 422320 802A9320 A280005F */ sb $zero, 0x5f($s4)
/* 422324 802A9324 8E630000 */ lw $v1, ($s3)
/* 422328 802A9328 2404000A */ addiu $a0, $zero, 0xa
/* 42232C 802A932C A2600081 */ sb $zero, 0x81($s3)
/* 422330 802A9330 A2600084 */ sb $zero, 0x84($s3)
/* 422334 802A9334 A2600086 */ sb $zero, 0x86($s3)
/* 422338 802A9338 A684004C */ sh $a0, 0x4c($s4)
/* 42233C 802A933C 00621824 */ and $v1, $v1, $v0
/* 422340 802A9340 0C09A446 */ jal func_80269118
/* 422344 802A9344 AE630000 */ sw $v1, ($s3)
/* 422348 802A9348 24020002 */ addiu $v0, $zero, 2
.L802A934C:
/* 42234C 802A934C 8FBF0024 */ lw $ra, 0x24($sp)
/* 422350 802A9350 8FB40020 */ lw $s4, 0x20($sp)
/* 422354 802A9354 8FB3001C */ lw $s3, 0x1c($sp)
/* 422358 802A9358 8FB20018 */ lw $s2, 0x18($sp)
/* 42235C 802A935C 8FB10014 */ lw $s1, 0x14($sp)
/* 422360 802A9360 8FB00010 */ lw $s0, 0x10($sp)
/* 422364 802A9364 03E00008 */ jr $ra
/* 422368 802A9368 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,446 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A936C_42236C
/* 42236C 802A936C 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 422370 802A9370 AFB10014 */ sw $s1, 0x14($sp)
/* 422374 802A9374 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 422378 802A9378 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42237C 802A937C AFBF001C */ sw $ra, 0x1c($sp)
/* 422380 802A9380 AFB20018 */ sw $s2, 0x18($sp)
/* 422384 802A9384 AFB00010 */ sw $s0, 0x10($sp)
/* 422388 802A9388 F7B60028 */ sdc1 $f22, 0x28($sp)
/* 42238C 802A938C F7B40020 */ sdc1 $f20, 0x20($sp)
/* 422390 802A9390 8623004C */ lh $v1, 0x4c($s1)
/* 422394 802A9394 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 422398 802A9398 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 42239C 802A939C 2C62000D */ sltiu $v0, $v1, 0xd
/* 4223A0 802A93A0 10400184 */ beqz $v0, .L802A99B4
/* 4223A4 802A93A4 00031080 */ sll $v0, $v1, 2
/* 4223A8 802A93A8 3C01802B */ lui $at, %hi(D_802A9A90)
/* 4223AC 802A93AC 00220821 */ addu $at, $at, $v0
/* 4223B0 802A93B0 8C229A90 */ lw $v0, %lo(D_802A9A90)($at)
/* 4223B4 802A93B4 00400008 */ jr $v0
/* 4223B8 802A93B8 00000000 */ nop
/* 4223BC 802A93BC 0C093EB1 */ jal set_popup_duration
/* 4223C0 802A93C0 24040063 */ addiu $a0, $zero, 0x63
/* 4223C4 802A93C4 82220061 */ lb $v0, 0x61($s1)
/* 4223C8 802A93C8 8E300004 */ lw $s0, 4($s1)
/* 4223CC 802A93CC 10400003 */ beqz $v0, .L802A93DC
/* 4223D0 802A93D0 0200202D */ daddu $a0, $s0, $zero
/* 4223D4 802A93D4 0C05128B */ jal clear_icon_flags
/* 4223D8 802A93D8 24050002 */ addiu $a1, $zero, 2
.L802A93DC:
/* 4223DC 802A93DC 0200202D */ daddu $a0, $s0, $zero
/* 4223E0 802A93E0 0C0513AC */ jal icon_set_opacity
/* 4223E4 802A93E4 240500FF */ addiu $a1, $zero, 0xff
/* 4223E8 802A93E8 82220061 */ lb $v0, 0x61($s1)
/* 4223EC 802A93EC 8E300008 */ lw $s0, 8($s1)
/* 4223F0 802A93F0 10400003 */ beqz $v0, .L802A9400
/* 4223F4 802A93F4 0200202D */ daddu $a0, $s0, $zero
/* 4223F8 802A93F8 0C05128B */ jal clear_icon_flags
/* 4223FC 802A93FC 24050002 */ addiu $a1, $zero, 2
.L802A9400:
/* 422400 802A9400 0200202D */ daddu $a0, $s0, $zero
/* 422404 802A9404 0C0513AC */ jal icon_set_opacity
/* 422408 802A9408 240500FF */ addiu $a1, $zero, 0xff
/* 42240C 802A940C 82220061 */ lb $v0, 0x61($s1)
/* 422410 802A9410 8E30000C */ lw $s0, 0xc($s1)
/* 422414 802A9414 10400003 */ beqz $v0, .L802A9424
/* 422418 802A9418 0200202D */ daddu $a0, $s0, $zero
/* 42241C 802A941C 0C05128B */ jal clear_icon_flags
/* 422420 802A9420 24050002 */ addiu $a1, $zero, 2
.L802A9424:
/* 422424 802A9424 0200202D */ daddu $a0, $s0, $zero
/* 422428 802A9428 0C0513AC */ jal icon_set_opacity
/* 42242C 802A942C 240500FF */ addiu $a1, $zero, 0xff
/* 422430 802A9430 82220061 */ lb $v0, 0x61($s1)
/* 422434 802A9434 8E300010 */ lw $s0, 0x10($s1)
/* 422438 802A9438 10400003 */ beqz $v0, .L802A9448
/* 42243C 802A943C 0200202D */ daddu $a0, $s0, $zero
/* 422440 802A9440 0C05128B */ jal clear_icon_flags
/* 422444 802A9444 24050002 */ addiu $a1, $zero, 2
.L802A9448:
/* 422448 802A9448 0200202D */ daddu $a0, $s0, $zero
/* 42244C 802A944C 0C0513AC */ jal icon_set_opacity
/* 422450 802A9450 240500FF */ addiu $a1, $zero, 0xff
/* 422454 802A9454 82220061 */ lb $v0, 0x61($s1)
/* 422458 802A9458 8E300014 */ lw $s0, 0x14($s1)
/* 42245C 802A945C 10400003 */ beqz $v0, .L802A946C
/* 422460 802A9460 0200202D */ daddu $a0, $s0, $zero
/* 422464 802A9464 0C05128B */ jal clear_icon_flags
/* 422468 802A9468 24050002 */ addiu $a1, $zero, 2
.L802A946C:
/* 42246C 802A946C 0200202D */ daddu $a0, $s0, $zero
/* 422470 802A9470 0C0513AC */ jal icon_set_opacity
/* 422474 802A9474 240500FF */ addiu $a1, $zero, 0xff
/* 422478 802A9478 82220061 */ lb $v0, 0x61($s1)
/* 42247C 802A947C 8E300018 */ lw $s0, 0x18($s1)
/* 422480 802A9480 10400003 */ beqz $v0, .L802A9490
/* 422484 802A9484 0200202D */ daddu $a0, $s0, $zero
/* 422488 802A9488 0C05128B */ jal clear_icon_flags
/* 42248C 802A948C 24050002 */ addiu $a1, $zero, 2
.L802A9490:
/* 422490 802A9490 0200202D */ daddu $a0, $s0, $zero
/* 422494 802A9494 0C0513AC */ jal icon_set_opacity
/* 422498 802A9498 240500FF */ addiu $a1, $zero, 0xff
/* 42249C 802A949C 24020001 */ addiu $v0, $zero, 1
/* 4224A0 802A94A0 080AA66D */ j .L802A99B4
/* 4224A4 802A94A4 A622004C */ sh $v0, 0x4c($s1)
/* 4224A8 802A94A8 0C093EB1 */ jal set_popup_duration
/* 4224AC 802A94AC 24040063 */ addiu $a0, $zero, 0x63
/* 4224B0 802A94B0 96220056 */ lhu $v0, 0x56($s1)
/* 4224B4 802A94B4 24420014 */ addiu $v0, $v0, 0x14
/* 4224B8 802A94B8 A6220056 */ sh $v0, 0x56($s1)
/* 4224BC 802A94BC 00021400 */ sll $v0, $v0, 0x10
/* 4224C0 802A94C0 00021403 */ sra $v0, $v0, 0x10
/* 4224C4 802A94C4 28420033 */ slti $v0, $v0, 0x33
/* 4224C8 802A94C8 14400002 */ bnez $v0, .L802A94D4
/* 4224CC 802A94CC 24020032 */ addiu $v0, $zero, 0x32
/* 4224D0 802A94D0 A6220056 */ sh $v0, 0x56($s1)
.L802A94D4:
/* 4224D4 802A94D4 8E240004 */ lw $a0, 4($s1)
/* 4224D8 802A94D8 86250056 */ lh $a1, 0x56($s1)
/* 4224DC 802A94DC 0C051261 */ jal set_icon_render_pos
/* 4224E0 802A94E0 86260058 */ lh $a2, 0x58($s1)
/* 4224E4 802A94E4 8E240008 */ lw $a0, 8($s1)
/* 4224E8 802A94E8 86250056 */ lh $a1, 0x56($s1)
/* 4224EC 802A94EC 86260058 */ lh $a2, 0x58($s1)
/* 4224F0 802A94F0 24A50015 */ addiu $a1, $a1, 0x15
/* 4224F4 802A94F4 0C051261 */ jal set_icon_render_pos
/* 4224F8 802A94F8 24C6FFFD */ addiu $a2, $a2, -3
/* 4224FC 802A94FC 8E24000C */ lw $a0, 0xc($s1)
/* 422500 802A9500 86250056 */ lh $a1, 0x56($s1)
/* 422504 802A9504 86260058 */ lh $a2, 0x58($s1)
/* 422508 802A9508 24A50005 */ addiu $a1, $a1, 5
/* 42250C 802A950C 0C051261 */ jal set_icon_render_pos
/* 422510 802A9510 24C60001 */ addiu $a2, $a2, 1
/* 422514 802A9514 8E240010 */ lw $a0, 0x10($s1)
/* 422518 802A9518 86250056 */ lh $a1, 0x56($s1)
/* 42251C 802A951C 86260058 */ lh $a2, 0x58($s1)
/* 422520 802A9520 24A5FFF9 */ addiu $a1, $a1, -7
/* 422524 802A9524 0C051261 */ jal set_icon_render_pos
/* 422528 802A9528 24C60001 */ addiu $a2, $a2, 1
/* 42252C 802A952C 8E240014 */ lw $a0, 0x14($s1)
/* 422530 802A9530 86250056 */ lh $a1, 0x56($s1)
/* 422534 802A9534 86260058 */ lh $a2, 0x58($s1)
/* 422538 802A9538 24A5FFED */ addiu $a1, $a1, -0x13
/* 42253C 802A953C 0C051261 */ jal set_icon_render_pos
/* 422540 802A9540 24C60001 */ addiu $a2, $a2, 1
/* 422544 802A9544 8E240018 */ lw $a0, 0x18($s1)
/* 422548 802A9548 86260058 */ lh $a2, 0x58($s1)
/* 42254C 802A954C 86250056 */ lh $a1, 0x56($s1)
/* 422550 802A9550 0C051261 */ jal set_icon_render_pos
/* 422554 802A9554 24C6FFE9 */ addiu $a2, $a2, -0x17
/* 422558 802A9558 8222005E */ lb $v0, 0x5e($s1)
/* 42255C 802A955C 10400115 */ beqz $v0, .L802A99B4
/* 422560 802A9560 00000000 */ nop
/* 422564 802A9564 8E30001C */ lw $s0, 0x1c($s1)
/* 422568 802A9568 86260058 */ lh $a2, 0x58($s1)
/* 42256C 802A956C 86250056 */ lh $a1, 0x56($s1)
/* 422570 802A9570 0200202D */ daddu $a0, $s0, $zero
/* 422574 802A9574 0C051261 */ jal set_icon_render_pos
/* 422578 802A9578 24A50032 */ addiu $a1, $a1, 0x32
/* 42257C 802A957C 82220061 */ lb $v0, 0x61($s1)
/* 422580 802A9580 1040010C */ beqz $v0, .L802A99B4
/* 422584 802A9584 0200202D */ daddu $a0, $s0, $zero
/* 422588 802A9588 0C05128B */ jal clear_icon_flags
/* 42258C 802A958C 24050002 */ addiu $a1, $zero, 2
/* 422590 802A9590 080AA66D */ j .L802A99B4
/* 422594 802A9594 00000000 */ nop
/* 422598 802A9598 0C093EB1 */ jal set_popup_duration
/* 42259C 802A959C 24040063 */ addiu $a0, $zero, 0x63
/* 4225A0 802A95A0 8622004E */ lh $v0, 0x4e($s1)
/* 4225A4 802A95A4 2842000F */ slti $v0, $v0, 0xf
/* 4225A8 802A95A8 10400013 */ beqz $v0, .L802A95F8
/* 4225AC 802A95AC 00000000 */ nop
/* 4225B0 802A95B0 8E240004 */ lw $a0, 4($s1)
/* 4225B4 802A95B4 0C0513AC */ jal icon_set_opacity
/* 4225B8 802A95B8 240500FF */ addiu $a1, $zero, 0xff
/* 4225BC 802A95BC 8E240008 */ lw $a0, 8($s1)
/* 4225C0 802A95C0 0C0513AC */ jal icon_set_opacity
/* 4225C4 802A95C4 240500FF */ addiu $a1, $zero, 0xff
/* 4225C8 802A95C8 8E24000C */ lw $a0, 0xc($s1)
/* 4225CC 802A95CC 0C0513AC */ jal icon_set_opacity
/* 4225D0 802A95D0 240500FF */ addiu $a1, $zero, 0xff
/* 4225D4 802A95D4 8E240010 */ lw $a0, 0x10($s1)
/* 4225D8 802A95D8 0C0513AC */ jal icon_set_opacity
/* 4225DC 802A95DC 240500FF */ addiu $a1, $zero, 0xff
/* 4225E0 802A95E0 8E240014 */ lw $a0, 0x14($s1)
/* 4225E4 802A95E4 0C0513AC */ jal icon_set_opacity
/* 4225E8 802A95E8 240500FF */ addiu $a1, $zero, 0xff
/* 4225EC 802A95EC 8E240018 */ lw $a0, 0x18($s1)
/* 4225F0 802A95F0 0C0513AC */ jal icon_set_opacity
/* 4225F4 802A95F4 240500FF */ addiu $a1, $zero, 0xff
.L802A95F8:
/* 4225F8 802A95F8 8622004E */ lh $v0, 0x4e($s1)
/* 4225FC 802A95FC 9623004E */ lhu $v1, 0x4e($s1)
/* 422600 802A9600 10400003 */ beqz $v0, .L802A9610
/* 422604 802A9604 2462FFFF */ addiu $v0, $v1, -1
/* 422608 802A9608 080AA66D */ j .L802A99B4
/* 42260C 802A960C A622004E */ sh $v0, 0x4e($s1)
.L802A9610:
/* 422610 802A9610 A6200054 */ sh $zero, 0x54($s1)
/* 422614 802A9614 8E420210 */ lw $v0, 0x210($s2)
/* 422618 802A9618 3C030004 */ lui $v1, 4
/* 42261C 802A961C 00431024 */ and $v0, $v0, $v1
/* 422620 802A9620 14400007 */ bnez $v0, .L802A9640
/* 422624 802A9624 2402000B */ addiu $v0, $zero, 0xb
/* 422628 802A9628 82420083 */ lb $v0, 0x83($s2)
/* 42262C 802A962C 28420002 */ slti $v0, $v0, 2
/* 422630 802A9630 10400002 */ beqz $v0, .L802A963C
/* 422634 802A9634 24020001 */ addiu $v0, $zero, 1
/* 422638 802A9638 A222005F */ sb $v0, 0x5f($s1)
.L802A963C:
/* 42263C 802A963C 2402000B */ addiu $v0, $zero, 0xb
.L802A9640:
/* 422640 802A9640 A622004C */ sh $v0, 0x4c($s1)
/* 422644 802A9644 0C093EB1 */ jal set_popup_duration
/* 422648 802A9648 24040063 */ addiu $a0, $zero, 0x63
/* 42264C 802A964C 82420083 */ lb $v0, 0x83($s2)
/* 422650 802A9650 044000D8 */ bltz $v0, .L802A99B4
/* 422654 802A9654 3C045555 */ lui $a0, 0x5555
/* 422658 802A9658 34845556 */ ori $a0, $a0, 0x5556
/* 42265C 802A965C 86220050 */ lh $v0, 0x50($s1)
/* 422660 802A9660 8E430434 */ lw $v1, 0x434($s2)
/* 422664 802A9664 00021080 */ sll $v0, $v0, 2
/* 422668 802A9668 00431021 */ addu $v0, $v0, $v1
/* 42266C 802A966C 8C500000 */ lw $s0, ($v0)
/* 422670 802A9670 86220052 */ lh $v0, 0x52($s1)
/* 422674 802A9674 26030002 */ addiu $v1, $s0, 2
/* 422678 802A9678 00431023 */ subu $v0, $v0, $v1
/* 42267C 802A967C 00440018 */ mult $v0, $a0
/* 422680 802A9680 86230054 */ lh $v1, 0x54($s1)
/* 422684 802A9684 000217C3 */ sra $v0, $v0, 0x1f
/* 422688 802A9688 44831000 */ mtc1 $v1, $f2
/* 42268C 802A968C 00000000 */ nop
/* 422690 802A9690 468010A0 */ cvt.s.w $f2, $f2
/* 422694 802A9694 00004010 */ mfhi $t0
/* 422698 802A9698 01021023 */ subu $v0, $t0, $v0
/* 42269C 802A969C 4482A000 */ mtc1 $v0, $f20
/* 4226A0 802A96A0 00000000 */ nop
/* 4226A4 802A96A4 4680A520 */ cvt.s.w $f20, $f20
/* 4226A8 802A96A8 4614103C */ c.lt.s $f2, $f20
/* 4226AC 802A96AC 00000000 */ nop
/* 4226B0 802A96B0 4502000B */ bc1fl .L802A96E0
/* 4226B4 802A96B4 4614A580 */ add.s $f22, $f20, $f20
/* 4226B8 802A96B8 8E240014 */ lw $a0, 0x14($s1)
/* 4226BC 802A96BC 3C058029 */ lui $a1, %hi(D_802928CC)
/* 4226C0 802A96C0 24A528CC */ addiu $a1, $a1, %lo(D_802928CC)
/* 4226C4 802A96C4 0C0511FF */ jal set_menu_icon_script
/* 4226C8 802A96C8 00000000 */ nop
/* 4226CC 802A96CC 86220054 */ lh $v0, 0x54($s1)
/* 4226D0 802A96D0 14400031 */ bnez $v0, .L802A9798
/* 4226D4 802A96D4 A2400084 */ sb $zero, 0x84($s2)
/* 4226D8 802A96D8 080AA5E1 */ j .L802A9784
/* 4226DC 802A96DC 00000000 */ nop
.L802A96E0:
/* 4226E0 802A96E0 4616103C */ c.lt.s $f2, $f22
/* 4226E4 802A96E4 00000000 */ nop
/* 4226E8 802A96E8 4500000E */ bc1f .L802A9724
/* 4226EC 802A96EC 00000000 */ nop
/* 4226F0 802A96F0 8E240010 */ lw $a0, 0x10($s1)
/* 4226F4 802A96F4 3C058029 */ lui $a1, %hi(D_80292874)
/* 4226F8 802A96F8 24A52874 */ addiu $a1, $a1, %lo(D_80292874)
/* 4226FC 802A96FC 0C0511FF */ jal set_menu_icon_script
/* 422700 802A9700 00000000 */ nop
/* 422704 802A9704 86220054 */ lh $v0, 0x54($s1)
/* 422708 802A9708 24030001 */ addiu $v1, $zero, 1
/* 42270C 802A970C 44820000 */ mtc1 $v0, $f0
/* 422710 802A9710 00000000 */ nop
/* 422714 802A9714 46800020 */ cvt.s.w $f0, $f0
/* 422718 802A9718 46140032 */ c.eq.s $f0, $f20
/* 42271C 802A971C 080AA5DF */ j .L802A977C
/* 422720 802A9720 A2430084 */ sb $v1, 0x84($s2)
.L802A9724:
/* 422724 802A9724 3C014040 */ lui $at, 0x4040
/* 422728 802A9728 44810000 */ mtc1 $at, $f0
/* 42272C 802A972C 00000000 */ nop
/* 422730 802A9730 4600A002 */ mul.s $f0, $f20, $f0
/* 422734 802A9734 00000000 */ nop
/* 422738 802A9738 4600103C */ c.lt.s $f2, $f0
/* 42273C 802A973C 00000000 */ nop
/* 422740 802A9740 45000016 */ bc1f .L802A979C
/* 422744 802A9744 00101027 */ nor $v0, $zero, $s0
/* 422748 802A9748 8E24000C */ lw $a0, 0xc($s1)
/* 42274C 802A974C 3C058029 */ lui $a1, %hi(D_8029281C)
/* 422750 802A9750 24A5281C */ addiu $a1, $a1, %lo(D_8029281C)
/* 422754 802A9754 0C0511FF */ jal set_menu_icon_script
/* 422758 802A9758 00000000 */ nop
/* 42275C 802A975C 86220054 */ lh $v0, 0x54($s1)
/* 422760 802A9760 24030002 */ addiu $v1, $zero, 2
/* 422764 802A9764 A2430084 */ sb $v1, 0x84($s2)
/* 422768 802A9768 44820000 */ mtc1 $v0, $f0
/* 42276C 802A976C 00000000 */ nop
/* 422770 802A9770 46800020 */ cvt.s.w $f0, $f0
/* 422774 802A9774 46160032 */ c.eq.s $f0, $f22
/* 422778 802A9778 00000000 */ nop
.L802A977C:
/* 42277C 802A977C 45000007 */ bc1f .L802A979C
/* 422780 802A9780 00101027 */ nor $v0, $zero, $s0
.L802A9784:
/* 422784 802A9784 82220062 */ lb $v0, 0x62($s1)
/* 422788 802A9788 10400004 */ beqz $v0, .L802A979C
/* 42278C 802A978C 00101027 */ nor $v0, $zero, $s0
/* 422790 802A9790 0C05272D */ jal play_sound
/* 422794 802A9794 24040233 */ addiu $a0, $zero, 0x233
.L802A9798:
/* 422798 802A9798 00101027 */ nor $v0, $zero, $s0
.L802A979C:
/* 42279C 802A979C 86230052 */ lh $v1, 0x52($s1)
/* 4227A0 802A97A0 86240054 */ lh $a0, 0x54($s1)
/* 4227A4 802A97A4 00431021 */ addu $v0, $v0, $v1
/* 4227A8 802A97A8 14820019 */ bne $a0, $v0, .L802A9810
/* 4227AC 802A97AC 24020003 */ addiu $v0, $zero, 3
/* 4227B0 802A97B0 3C058029 */ lui $a1, %hi(D_80292788)
/* 4227B4 802A97B4 24A52788 */ addiu $a1, $a1, %lo(D_80292788)
/* 4227B8 802A97B8 8E240008 */ lw $a0, 8($s1)
/* 4227BC 802A97BC 0C0511FF */ jal set_menu_icon_script
/* 4227C0 802A97C0 A2420084 */ sb $v0, 0x84($s2)
/* 4227C4 802A97C4 8E240018 */ lw $a0, 0x18($s1)
/* 4227C8 802A97C8 3C058011 */ lui $a1, %hi(D_80108FF0)
/* 4227CC 802A97CC 24A58FF0 */ addiu $a1, $a1, %lo(D_80108FF0)
/* 4227D0 802A97D0 0C0511FF */ jal set_menu_icon_script
/* 4227D4 802A97D4 00000000 */ nop
/* 4227D8 802A97D8 82220062 */ lb $v0, 0x62($s1)
/* 4227DC 802A97DC 10400003 */ beqz $v0, .L802A97EC
/* 4227E0 802A97E0 00000000 */ nop
/* 4227E4 802A97E4 0C05272D */ jal play_sound
/* 4227E8 802A97E8 24040234 */ addiu $a0, $zero, 0x234
.L802A97EC:
/* 4227EC 802A97EC 8222005E */ lb $v0, 0x5e($s1)
/* 4227F0 802A97F0 10400007 */ beqz $v0, .L802A9810
/* 4227F4 802A97F4 24030002 */ addiu $v1, $zero, 2
/* 4227F8 802A97F8 10430005 */ beq $v0, $v1, .L802A9810
/* 4227FC 802A97FC 00000000 */ nop
/* 422800 802A9800 96220052 */ lhu $v0, 0x52($s1)
/* 422804 802A9804 A223005E */ sb $v1, 0x5e($s1)
/* 422808 802A9808 2442FFFC */ addiu $v0, $v0, -4
/* 42280C 802A980C A6220054 */ sh $v0, 0x54($s1)
.L802A9810:
/* 422810 802A9810 86220050 */ lh $v0, 0x50($s1)
/* 422814 802A9814 8E430434 */ lw $v1, 0x434($s2)
/* 422818 802A9818 86240054 */ lh $a0, 0x54($s1)
/* 42281C 802A981C 00021080 */ sll $v0, $v0, 2
/* 422820 802A9820 00431021 */ addu $v0, $v0, $v1
/* 422824 802A9824 86230052 */ lh $v1, 0x52($s1)
/* 422828 802A9828 8C420000 */ lw $v0, ($v0)
/* 42282C 802A982C 00641823 */ subu $v1, $v1, $a0
/* 422830 802A9830 00431023 */ subu $v0, $v0, $v1
/* 422834 802A9834 24500003 */ addiu $s0, $v0, 3
/* 422838 802A9838 06020001 */ bltzl $s0, .L802A9840
/* 42283C 802A983C 0000802D */ daddu $s0, $zero, $zero
.L802A9840:
/* 422840 802A9840 8E420210 */ lw $v0, 0x210($s2)
/* 422844 802A9844 3C030004 */ lui $v1, 4
/* 422848 802A9848 00431024 */ and $v0, $v0, $v1
/* 42284C 802A984C 1440000D */ bnez $v0, .L802A9884
/* 422850 802A9850 00000000 */ nop
/* 422854 802A9854 1600000B */ bnez $s0, .L802A9884
/* 422858 802A9858 00000000 */ nop
/* 42285C 802A985C 8222005E */ lb $v0, 0x5e($s1)
/* 422860 802A9860 14400008 */ bnez $v0, .L802A9884
/* 422864 802A9864 00000000 */ nop
/* 422868 802A9868 82420083 */ lb $v0, 0x83($s2)
/* 42286C 802A986C 28420002 */ slti $v0, $v0, 2
/* 422870 802A9870 10400004 */ beqz $v0, .L802A9884
/* 422874 802A9874 2402FFFF */ addiu $v0, $zero, -1
/* 422878 802A9878 A2420081 */ sb $v0, 0x81($s2)
/* 42287C 802A987C 080AA66B */ j .L802A99AC
/* 422880 802A9880 A2420086 */ sb $v0, 0x86($s2)
.L802A9884:
/* 422884 802A9884 82430431 */ lb $v1, 0x431($s2)
/* 422888 802A9888 00701823 */ subu $v1, $v1, $s0
/* 42288C 802A988C 04620001 */ bltzl $v1, .L802A9894
/* 422890 802A9890 24630040 */ addiu $v1, $v1, 0x40
.L802A9894:
/* 422894 802A9894 82420081 */ lb $v0, 0x81($s2)
/* 422898 802A9898 1440001C */ bnez $v0, .L802A990C
/* 42289C 802A989C 00000000 */ nop
/* 4228A0 802A98A0 1A00001A */ blez $s0, .L802A990C
/* 4228A4 802A98A4 0000202D */ daddu $a0, $zero, $zero
/* 4228A8 802A98A8 3C070004 */ lui $a3, 4
/* 4228AC 802A98AC 24060001 */ addiu $a2, $zero, 1
/* 4228B0 802A98B0 3C05800E */ lui $a1, %hi(gBattleStatus)
/* 4228B4 802A98B4 24A5C070 */ addiu $a1, $a1, %lo(gBattleStatus)
.L802A98B8:
/* 4228B8 802A98B8 28620040 */ slti $v0, $v1, 0x40
/* 4228BC 802A98BC 50400001 */ beql $v0, $zero, .L802A98C4
/* 4228C0 802A98C0 2463FFC0 */ addiu $v1, $v1, -0x40
.L802A98C4:
/* 4228C4 802A98C4 00031080 */ sll $v0, $v1, 2
/* 4228C8 802A98C8 02421021 */ addu $v0, $s2, $v0
/* 4228CC 802A98CC 8C420230 */ lw $v0, 0x230($v0)
/* 4228D0 802A98D0 00471024 */ and $v0, $v0, $a3
/* 4228D4 802A98D4 10400004 */ beqz $v0, .L802A98E8
/* 4228D8 802A98D8 00000000 */ nop
/* 4228DC 802A98DC 8222005E */ lb $v0, 0x5e($s1)
/* 4228E0 802A98E0 50400007 */ beql $v0, $zero, .L802A9900
/* 4228E4 802A98E4 24840001 */ addiu $a0, $a0, 1
.L802A98E8:
/* 4228E8 802A98E8 8CA20000 */ lw $v0, ($a1)
/* 4228EC 802A98EC A2460081 */ sb $a2, 0x81($s2)
/* 4228F0 802A98F0 A2460086 */ sb $a2, 0x86($s2)
/* 4228F4 802A98F4 34422000 */ ori $v0, $v0, 0x2000
/* 4228F8 802A98F8 ACA20000 */ sw $v0, ($a1)
/* 4228FC 802A98FC 24840001 */ addiu $a0, $a0, 1
.L802A9900:
/* 422900 802A9900 0090102A */ slt $v0, $a0, $s0
/* 422904 802A9904 1440FFEC */ bnez $v0, .L802A98B8
/* 422908 802A9908 24630001 */ addiu $v1, $v1, 1
.L802A990C:
/* 42290C 802A990C 82420083 */ lb $v0, 0x83($s2)
/* 422910 802A9910 28420002 */ slti $v0, $v0, 2
/* 422914 802A9914 14400005 */ bnez $v0, .L802A992C
/* 422918 802A9918 00000000 */ nop
/* 42291C 802A991C 86230054 */ lh $v1, 0x54($s1)
/* 422920 802A9920 86220052 */ lh $v0, 0x52($s1)
/* 422924 802A9924 10620023 */ beq $v1, $v0, .L802A99B4
/* 422928 802A9928 00000000 */ nop
.L802A992C:
/* 42292C 802A992C 96220054 */ lhu $v0, 0x54($s1)
/* 422930 802A9930 86230052 */ lh $v1, 0x52($s1)
/* 422934 802A9934 24420001 */ addiu $v0, $v0, 1
/* 422938 802A9938 A6220054 */ sh $v0, 0x54($s1)
/* 42293C 802A993C 00021400 */ sll $v0, $v0, 0x10
/* 422940 802A9940 00021403 */ sra $v0, $v0, 0x10
/* 422944 802A9944 0062182A */ slt $v1, $v1, $v0
/* 422948 802A9948 1060001A */ beqz $v1, .L802A99B4
/* 42294C 802A994C 00000000 */ nop
/* 422950 802A9950 82420081 */ lb $v0, 0x81($s2)
/* 422954 802A9954 14400002 */ bnez $v0, .L802A9960
/* 422958 802A9958 2402FFFF */ addiu $v0, $zero, -1
/* 42295C 802A995C A2420081 */ sb $v0, 0x81($s2)
.L802A9960:
/* 422960 802A9960 82430081 */ lb $v1, 0x81($s2)
/* 422964 802A9964 24020001 */ addiu $v0, $zero, 1
/* 422968 802A9968 14620003 */ bne $v1, $v0, .L802A9978
/* 42296C 802A996C 00000000 */ nop
/* 422970 802A9970 0C09A458 */ jal func_80269160
/* 422974 802A9974 00000000 */ nop
.L802A9978:
/* 422978 802A9978 0C093EB1 */ jal set_popup_duration
/* 42297C 802A997C 0000202D */ daddu $a0, $zero, $zero
/* 422980 802A9980 24020005 */ addiu $v0, $zero, 5
/* 422984 802A9984 A6220054 */ sh $v0, 0x54($s1)
/* 422988 802A9988 2402000C */ addiu $v0, $zero, 0xc
/* 42298C 802A998C 080AA66D */ j .L802A99B4
/* 422990 802A9990 A622004C */ sh $v0, 0x4c($s1)
/* 422994 802A9994 86220054 */ lh $v0, 0x54($s1)
/* 422998 802A9998 96230054 */ lhu $v1, 0x54($s1)
/* 42299C 802A999C 10400003 */ beqz $v0, .L802A99AC
/* 4229A0 802A99A0 2462FFFF */ addiu $v0, $v1, -1
/* 4229A4 802A99A4 080AA66D */ j .L802A99B4
/* 4229A8 802A99A8 A6220054 */ sh $v0, 0x54($s1)
.L802A99AC:
/* 4229AC 802A99AC 0C09A327 */ jal func_80268C9C
/* 4229B0 802A99B0 00000000 */ nop
.L802A99B4:
/* 4229B4 802A99B4 8FBF001C */ lw $ra, 0x1c($sp)
/* 4229B8 802A99B8 8FB20018 */ lw $s2, 0x18($sp)
/* 4229BC 802A99BC 8FB10014 */ lw $s1, 0x14($sp)
/* 4229C0 802A99C0 8FB00010 */ lw $s0, 0x10($sp)
/* 4229C4 802A99C4 D7B60028 */ ldc1 $f22, 0x28($sp)
/* 4229C8 802A99C8 D7B40020 */ ldc1 $f20, 0x20($sp)
/* 4229CC 802A99CC 03E00008 */ jr $ra
/* 4229D0 802A99D0 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -0,0 +1,27 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A99D4_4229D4
/* 4229D4 802A99D4 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 4229D8 802A99D8 AFB00010 */ sw $s0, 0x10($sp)
/* 4229DC 802A99DC 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 4229E0 802A99E0 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 4229E4 802A99E4 AFBF0014 */ sw $ra, 0x14($sp)
/* 4229E8 802A99E8 0C0511EA */ jal draw_icon_0
/* 4229EC 802A99EC 8E040004 */ lw $a0, 4($s0)
/* 4229F0 802A99F0 0C0511EA */ jal draw_icon_0
/* 4229F4 802A99F4 8E040008 */ lw $a0, 8($s0)
/* 4229F8 802A99F8 0C0511EA */ jal draw_icon_0
/* 4229FC 802A99FC 8E04000C */ lw $a0, 0xc($s0)
/* 422A00 802A9A00 0C0511EA */ jal draw_icon_0
/* 422A04 802A9A04 8E040010 */ lw $a0, 0x10($s0)
/* 422A08 802A9A08 0C0511EA */ jal draw_icon_0
/* 422A0C 802A9A0C 8E040014 */ lw $a0, 0x14($s0)
/* 422A10 802A9A10 0C0511EA */ jal draw_icon_0
/* 422A14 802A9A14 8E040018 */ lw $a0, 0x18($s0)
/* 422A18 802A9A18 0C0511EA */ jal draw_icon_0
/* 422A1C 802A9A1C 8E04001C */ lw $a0, 0x1c($s0)
/* 422A20 802A9A20 8FBF0014 */ lw $ra, 0x14($sp)
/* 422A24 802A9A24 8FB00010 */ lw $s0, 0x10($sp)
/* 422A28 802A9A28 03E00008 */ jr $ra
/* 422A2C 802A9A2C 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,28 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9A30_422A30
/* 422A30 802A9A30 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 422A34 802A9A34 AFB00010 */ sw $s0, 0x10($sp)
/* 422A38 802A9A38 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 422A3C 802A9A3C 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 422A40 802A9A40 AFBF0014 */ sw $ra, 0x14($sp)
/* 422A44 802A9A44 0C05123D */ jal free_icon
/* 422A48 802A9A48 8E040004 */ lw $a0, 4($s0)
/* 422A4C 802A9A4C 0C05123D */ jal free_icon
/* 422A50 802A9A50 8E040008 */ lw $a0, 8($s0)
/* 422A54 802A9A54 0C05123D */ jal free_icon
/* 422A58 802A9A58 8E04000C */ lw $a0, 0xc($s0)
/* 422A5C 802A9A5C 0C05123D */ jal free_icon
/* 422A60 802A9A60 8E040010 */ lw $a0, 0x10($s0)
/* 422A64 802A9A64 0C05123D */ jal free_icon
/* 422A68 802A9A68 8E040014 */ lw $a0, 0x14($s0)
/* 422A6C 802A9A6C 0C05123D */ jal free_icon
/* 422A70 802A9A70 8E040018 */ lw $a0, 0x18($s0)
/* 422A74 802A9A74 0C05123D */ jal free_icon
/* 422A78 802A9A78 8E04001C */ lw $a0, 0x1c($s0)
/* 422A7C 802A9A7C 8FBF0014 */ lw $ra, 0x14($sp)
/* 422A80 802A9A80 8FB00010 */ lw $s0, 0x10($sp)
/* 422A84 802A9A84 03E00008 */ jr $ra
/* 422A88 802A9A88 27BD0018 */ addiu $sp, $sp, 0x18
/* 422A8C 802A9A8C 00000000 */ nop

View File

@ -0,0 +1,172 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_422AD0
/* 422AD0 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 422AD4 802A9004 AFB00010 */ sw $s0, 0x10($sp)
/* 422AD8 802A9008 0080802D */ daddu $s0, $a0, $zero
/* 422ADC 802A900C AFB10014 */ sw $s1, 0x14($sp)
/* 422AE0 802A9010 3C11800E */ lui $s1, %hi(gBattleStatus)
/* 422AE4 802A9014 2631C070 */ addiu $s1, $s1, %lo(gBattleStatus)
/* 422AE8 802A9018 AFBF001C */ sw $ra, 0x1c($sp)
/* 422AEC 802A901C AFB20018 */ sw $s2, 0x18($sp)
/* 422AF0 802A9020 8E12000C */ lw $s2, 0xc($s0)
/* 422AF4 802A9024 3C028029 */ lui $v0, %hi(D_80294200)
/* 422AF8 802A9028 24424200 */ addiu $v0, $v0, %lo(D_80294200)
/* 422AFC 802A902C AE220434 */ sw $v0, 0x434($s1)
/* 422B00 802A9030 2402007F */ addiu $v0, $zero, 0x7f
/* 422B04 802A9034 A2200082 */ sb $zero, 0x82($s1)
/* 422B08 802A9038 0C09A216 */ jal func_80268858
/* 422B0C 802A903C A2220086 */ sb $v0, 0x86($s1)
/* 422B10 802A9040 8E450000 */ lw $a1, ($s2)
/* 422B14 802A9044 0C0B1EAF */ jal get_variable
/* 422B18 802A9048 0200202D */ daddu $a0, $s0, $zero
/* 422B1C 802A904C 24040032 */ addiu $a0, $zero, 0x32
/* 422B20 802A9050 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 422B24 802A9054 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 422B28 802A9058 24030003 */ addiu $v1, $zero, 3
/* 422B2C 802A905C A602005A */ sh $v0, 0x5a($s0)
/* 422B30 802A9060 00021400 */ sll $v0, $v0, 0x10
/* 422B34 802A9064 00021403 */ sra $v0, $v0, 0x10
/* 422B38 802A9068 A603004A */ sh $v1, 0x4a($s0)
/* 422B3C 802A906C 00021840 */ sll $v1, $v0, 1
/* 422B40 802A9070 00621821 */ addu $v1, $v1, $v0
/* 422B44 802A9074 000318C0 */ sll $v1, $v1, 3
/* 422B48 802A9078 00621821 */ addu $v1, $v1, $v0
/* 422B4C 802A907C 00031880 */ sll $v1, $v1, 2
/* 422B50 802A9080 A600004C */ sh $zero, 0x4c($s0)
/* 422B54 802A9084 A2000060 */ sb $zero, 0x60($s0)
/* 422B58 802A9088 0C00A67F */ jal rand_int
/* 422B5C 802A908C A6030044 */ sh $v1, 0x44($s0)
/* 422B60 802A9090 24040001 */ addiu $a0, $zero, 1
/* 422B64 802A9094 A6020046 */ sh $v0, 0x46($s0)
/* 422B68 802A9098 0080102D */ daddu $v0, $a0, $zero
/* 422B6C 802A909C A6000048 */ sh $zero, 0x48($s0)
/* 422B70 802A90A0 0C00A67F */ jal rand_int
/* 422B74 802A90A4 A202005C */ sb $v0, 0x5c($s0)
/* 422B78 802A90A8 3C048011 */ lui $a0, %hi(D_80108B28)
/* 422B7C 802A90AC 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 422B80 802A90B0 A602005A */ sh $v0, 0x5a($s0)
/* 422B84 802A90B4 2402FFD0 */ addiu $v0, $zero, -0x30
/* 422B88 802A90B8 A6000068 */ sh $zero, 0x68($s0)
/* 422B8C 802A90BC A2200081 */ sb $zero, 0x81($s1)
/* 422B90 802A90C0 A6020056 */ sh $v0, 0x56($s0)
/* 422B94 802A90C4 24020050 */ addiu $v0, $zero, 0x50
/* 422B98 802A90C8 3C01802B */ lui $at, %hi(D_802A9920)
/* 422B9C 802A90CC AC209920 */ sw $zero, %lo(D_802A9920)($at)
/* 422BA0 802A90D0 0C050529 */ jal create_icon
/* 422BA4 802A90D4 A6020058 */ sh $v0, 0x58($s0)
/* 422BA8 802A90D8 0040882D */ daddu $s1, $v0, $zero
/* 422BAC 802A90DC 86050056 */ lh $a1, 0x56($s0)
/* 422BB0 802A90E0 86060058 */ lh $a2, 0x58($s0)
/* 422BB4 802A90E4 0220202D */ daddu $a0, $s1, $zero
/* 422BB8 802A90E8 0C051261 */ jal set_icon_render_pos
/* 422BBC 802A90EC AE110004 */ sw $s1, 4($s0)
/* 422BC0 802A90F0 0220202D */ daddu $a0, $s1, $zero
/* 422BC4 802A90F4 0C051277 */ jal func_801449DC
/* 422BC8 802A90F8 0000282D */ daddu $a1, $zero, $zero
/* 422BCC 802A90FC 0220202D */ daddu $a0, $s1, $zero
/* 422BD0 802A9100 0C051280 */ jal set_icon_flags
/* 422BD4 802A9104 24050082 */ addiu $a1, $zero, 0x82
/* 422BD8 802A9108 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 422BDC 802A910C 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 422BE0 802A9110 0C050529 */ jal create_icon
/* 422BE4 802A9114 00000000 */ nop
/* 422BE8 802A9118 0040882D */ daddu $s1, $v0, $zero
/* 422BEC 802A911C 86050056 */ lh $a1, 0x56($s0)
/* 422BF0 802A9120 86060058 */ lh $a2, 0x58($s0)
/* 422BF4 802A9124 0220202D */ daddu $a0, $s1, $zero
/* 422BF8 802A9128 AE110008 */ sw $s1, 8($s0)
/* 422BFC 802A912C 0C051261 */ jal set_icon_render_pos
/* 422C00 802A9130 24C6001C */ addiu $a2, $a2, 0x1c
/* 422C04 802A9134 0220202D */ daddu $a0, $s1, $zero
/* 422C08 802A9138 0C051277 */ jal func_801449DC
/* 422C0C 802A913C 0000282D */ daddu $a1, $zero, $zero
/* 422C10 802A9140 0220202D */ daddu $a0, $s1, $zero
/* 422C14 802A9144 0C051280 */ jal set_icon_flags
/* 422C18 802A9148 24050082 */ addiu $a1, $zero, 0x82
/* 422C1C 802A914C 3C048029 */ lui $a0, %hi(D_802928F8)
/* 422C20 802A9150 248428F8 */ addiu $a0, $a0, %lo(D_802928F8)
/* 422C24 802A9154 0C050529 */ jal create_icon
/* 422C28 802A9158 00000000 */ nop
/* 422C2C 802A915C 0040882D */ daddu $s1, $v0, $zero
/* 422C30 802A9160 86050056 */ lh $a1, 0x56($s0)
/* 422C34 802A9164 86060058 */ lh $a2, 0x58($s0)
/* 422C38 802A9168 0220202D */ daddu $a0, $s1, $zero
/* 422C3C 802A916C AE11000C */ sw $s1, 0xc($s0)
/* 422C40 802A9170 0C051261 */ jal set_icon_render_pos
/* 422C44 802A9174 24C6001C */ addiu $a2, $a2, 0x1c
/* 422C48 802A9178 0220202D */ daddu $a0, $s1, $zero
/* 422C4C 802A917C 0C051277 */ jal func_801449DC
/* 422C50 802A9180 0000282D */ daddu $a1, $zero, $zero
/* 422C54 802A9184 0220202D */ daddu $a0, $s1, $zero
/* 422C58 802A9188 0C051280 */ jal set_icon_flags
/* 422C5C 802A918C 24050082 */ addiu $a1, $zero, 0x82
/* 422C60 802A9190 3C048011 */ lui $a0, %hi(D_80109244)
/* 422C64 802A9194 24849244 */ addiu $a0, $a0, %lo(D_80109244)
/* 422C68 802A9198 0C050529 */ jal create_icon
/* 422C6C 802A919C 00000000 */ nop
/* 422C70 802A91A0 0040882D */ daddu $s1, $v0, $zero
/* 422C74 802A91A4 86050056 */ lh $a1, 0x56($s0)
/* 422C78 802A91A8 86060058 */ lh $a2, 0x58($s0)
/* 422C7C 802A91AC 0220202D */ daddu $a0, $s1, $zero
/* 422C80 802A91B0 AE110010 */ sw $s1, 0x10($s0)
/* 422C84 802A91B4 0C051261 */ jal set_icon_render_pos
/* 422C88 802A91B8 24C6001C */ addiu $a2, $a2, 0x1c
/* 422C8C 802A91BC 0220202D */ daddu $a0, $s1, $zero
/* 422C90 802A91C0 0C051277 */ jal func_801449DC
/* 422C94 802A91C4 0000282D */ daddu $a1, $zero, $zero
/* 422C98 802A91C8 0220202D */ daddu $a0, $s1, $zero
/* 422C9C 802A91CC 0C051280 */ jal set_icon_flags
/* 422CA0 802A91D0 24050082 */ addiu $a1, $zero, 0x82
/* 422CA4 802A91D4 3C0451EB */ lui $a0, 0x51eb
/* 422CA8 802A91D8 3484851F */ ori $a0, $a0, 0x851f
/* 422CAC 802A91DC 24020064 */ addiu $v0, $zero, 0x64
/* 422CB0 802A91E0 2411001D */ addiu $s1, $zero, 0x1d
/* 422CB4 802A91E4 86030046 */ lh $v1, 0x46($s0)
/* 422CB8 802A91E8 86060058 */ lh $a2, 0x58($s0)
/* 422CBC 802A91EC 00431023 */ subu $v0, $v0, $v1
/* 422CC0 802A91F0 00021900 */ sll $v1, $v0, 4
/* 422CC4 802A91F4 00621823 */ subu $v1, $v1, $v0
/* 422CC8 802A91F8 00031880 */ sll $v1, $v1, 2
/* 422CCC 802A91FC 00640018 */ mult $v1, $a0
/* 422CD0 802A9200 86050056 */ lh $a1, 0x56($s0)
/* 422CD4 802A9204 24C60011 */ addiu $a2, $a2, 0x11
/* 422CD8 802A9208 00031FC3 */ sra $v1, $v1, 0x1f
/* 422CDC 802A920C 8E040010 */ lw $a0, 0x10($s0)
/* 422CE0 802A9210 00003810 */ mfhi $a3
/* 422CE4 802A9214 00071143 */ sra $v0, $a3, 5
/* 422CE8 802A9218 00431023 */ subu $v0, $v0, $v1
/* 422CEC 802A921C 02228823 */ subu $s1, $s1, $v0
/* 422CF0 802A9220 0C051261 */ jal set_icon_render_pos
/* 422CF4 802A9224 00B12823 */ subu $a1, $a1, $s1
/* 422CF8 802A9228 8E04000C */ lw $a0, 0xc($s0)
/* 422CFC 802A922C 86050056 */ lh $a1, 0x56($s0)
/* 422D00 802A9230 86060058 */ lh $a2, 0x58($s0)
/* 422D04 802A9234 00B12823 */ subu $a1, $a1, $s1
/* 422D08 802A9238 0C051261 */ jal set_icon_render_pos
/* 422D0C 802A923C 24C6FFFF */ addiu $a2, $a2, -1
/* 422D10 802A9240 3C048029 */ lui $a0, %hi(D_80292974)
/* 422D14 802A9244 24842974 */ addiu $a0, $a0, %lo(D_80292974)
/* 422D18 802A9248 0C050529 */ jal create_icon
/* 422D1C 802A924C 00000000 */ nop
/* 422D20 802A9250 0040882D */ daddu $s1, $v0, $zero
/* 422D24 802A9254 86050056 */ lh $a1, 0x56($s0)
/* 422D28 802A9258 86060058 */ lh $a2, 0x58($s0)
/* 422D2C 802A925C 0220202D */ daddu $a0, $s1, $zero
/* 422D30 802A9260 AE110014 */ sw $s1, 0x14($s0)
/* 422D34 802A9264 0C051261 */ jal set_icon_render_pos
/* 422D38 802A9268 24C6001C */ addiu $a2, $a2, 0x1c
/* 422D3C 802A926C 0220202D */ daddu $a0, $s1, $zero
/* 422D40 802A9270 0C051277 */ jal func_801449DC
/* 422D44 802A9274 0000282D */ daddu $a1, $zero, $zero
/* 422D48 802A9278 0220202D */ daddu $a0, $s1, $zero
/* 422D4C 802A927C 0C051280 */ jal set_icon_flags
/* 422D50 802A9280 24050082 */ addiu $a1, $zero, 0x82
/* 422D54 802A9284 8FBF001C */ lw $ra, 0x1c($sp)
/* 422D58 802A9288 8FB20018 */ lw $s2, 0x18($sp)
/* 422D5C 802A928C 8FB10014 */ lw $s1, 0x14($sp)
/* 422D60 802A9290 8FB00010 */ lw $s0, 0x10($sp)
/* 422D64 802A9294 24020002 */ addiu $v0, $zero, 2
/* 422D68 802A9298 03E00008 */ jr $ra
/* 422D6C 802A929C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,58 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A92A0_422D70
/* 422D70 802A92A0 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 422D74 802A92A4 AFB20018 */ sw $s2, 0x18($sp)
/* 422D78 802A92A8 0080902D */ daddu $s2, $a0, $zero
/* 422D7C 802A92AC AFBF001C */ sw $ra, 0x1c($sp)
/* 422D80 802A92B0 AFB10014 */ sw $s1, 0x14($sp)
/* 422D84 802A92B4 AFB00010 */ sw $s0, 0x10($sp)
/* 422D88 802A92B8 0C09A216 */ jal func_80268858
/* 422D8C 802A92BC 8E50000C */ lw $s0, 0xc($s2)
/* 422D90 802A92C0 0240202D */ daddu $a0, $s2, $zero
/* 422D94 802A92C4 8E050000 */ lw $a1, ($s0)
/* 422D98 802A92C8 0C0B1EAF */ jal get_variable
/* 422D9C 802A92CC 26100004 */ addiu $s0, $s0, 4
/* 422DA0 802A92D0 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 422DA4 802A92D4 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 422DA8 802A92D8 A622004E */ sh $v0, 0x4e($s1)
/* 422DAC 802A92DC 8E050000 */ lw $a1, ($s0)
/* 422DB0 802A92E0 26100004 */ addiu $s0, $s0, 4
/* 422DB4 802A92E4 0C0B1EAF */ jal get_variable
/* 422DB8 802A92E8 0240202D */ daddu $a0, $s2, $zero
/* 422DBC 802A92EC A6220052 */ sh $v0, 0x52($s1)
/* 422DC0 802A92F0 8E050000 */ lw $a1, ($s0)
/* 422DC4 802A92F4 0C0B1EAF */ jal get_variable
/* 422DC8 802A92F8 0240202D */ daddu $a0, $s2, $zero
/* 422DCC 802A92FC 00022400 */ sll $a0, $v0, 0x10
/* 422DD0 802A9300 00042403 */ sra $a0, $a0, 0x10
/* 422DD4 802A9304 0C09A089 */ jal func_80268224
/* 422DD8 802A9308 A6220050 */ sh $v0, 0x50($s1)
/* 422DDC 802A930C 3C07FFFF */ lui $a3, 0xffff
/* 422DE0 802A9310 34E77FFF */ ori $a3, $a3, 0x7fff
/* 422DE4 802A9314 3C05800E */ lui $a1, %hi(gBattleStatus)
/* 422DE8 802A9318 24A5C070 */ addiu $a1, $a1, %lo(gBattleStatus)
/* 422DEC 802A931C A6220050 */ sh $v0, 0x50($s1)
/* 422DF0 802A9320 A2200060 */ sb $zero, 0x60($s1)
/* 422DF4 802A9324 A0A00081 */ sb $zero, 0x81($a1)
/* 422DF8 802A9328 82230080 */ lb $v1, 0x80($s1)
/* 422DFC 802A932C 2404007F */ addiu $a0, $zero, 0x7f
/* 422E00 802A9330 A0A40086 */ sb $a0, 0x86($a1)
/* 422E04 802A9334 8CA40000 */ lw $a0, ($a1)
/* 422E08 802A9338 2463FFFF */ addiu $v1, $v1, -1
/* 422E0C 802A933C 00031840 */ sll $v1, $v1, 1
/* 422E10 802A9340 00711821 */ addu $v1, $v1, $s1
/* 422E14 802A9344 00872024 */ and $a0, $a0, $a3
/* 422E18 802A9348 90660075 */ lbu $a2, 0x75($v1)
/* 422E1C 802A934C 2403000A */ addiu $v1, $zero, 0xa
/* 422E20 802A9350 ACA40000 */ sw $a0, ($a1)
/* 422E24 802A9354 A623004C */ sh $v1, 0x4c($s1)
/* 422E28 802A9358 A0A60082 */ sb $a2, 0x82($a1)
/* 422E2C 802A935C 8FBF001C */ lw $ra, 0x1c($sp)
/* 422E30 802A9360 8FB20018 */ lw $s2, 0x18($sp)
/* 422E34 802A9364 8FB10014 */ lw $s1, 0x14($sp)
/* 422E38 802A9368 8FB00010 */ lw $s0, 0x10($sp)
/* 422E3C 802A936C 24020002 */ addiu $v0, $zero, 2
/* 422E40 802A9370 03E00008 */ jr $ra
/* 422E44 802A9374 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,245 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9378_422E48
/* 422E48 802A9378 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 422E4C 802A937C AFB10014 */ sw $s1, 0x14($sp)
/* 422E50 802A9380 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 422E54 802A9384 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 422E58 802A9388 AFBF001C */ sw $ra, 0x1c($sp)
/* 422E5C 802A938C AFB20018 */ sw $s2, 0x18($sp)
/* 422E60 802A9390 AFB00010 */ sw $s0, 0x10($sp)
/* 422E64 802A9394 8623004C */ lh $v1, 0x4c($s1)
/* 422E68 802A9398 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 422E6C 802A939C 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 422E70 802A93A0 2C62000D */ sltiu $v0, $v1, 0xd
/* 422E74 802A93A4 104000AA */ beqz $v0, .L802A9650
/* 422E78 802A93A8 00031080 */ sll $v0, $v1, 2
/* 422E7C 802A93AC 3C01802B */ lui $at, %hi(func_802A98E0)
/* 422E80 802A93B0 00220821 */ addu $at, $at, $v0
/* 422E84 802A93B4 8C2298E0 */ lw $v0, %lo(func_802A98E0)($at)
/* 422E88 802A93B8 00400008 */ jr $v0
/* 422E8C 802A93BC 00000000 */ nop
/* 422E90 802A93C0 8E300004 */ lw $s0, 4($s1)
/* 422E94 802A93C4 240500FF */ addiu $a1, $zero, 0xff
/* 422E98 802A93C8 0C0513AC */ jal icon_set_opacity
/* 422E9C 802A93CC 0200202D */ daddu $a0, $s0, $zero
/* 422EA0 802A93D0 82220061 */ lb $v0, 0x61($s1)
/* 422EA4 802A93D4 10400003 */ beqz $v0, .L802A93E4
/* 422EA8 802A93D8 0200202D */ daddu $a0, $s0, $zero
/* 422EAC 802A93DC 0C05128B */ jal clear_icon_flags
/* 422EB0 802A93E0 24050002 */ addiu $a1, $zero, 2
.L802A93E4:
/* 422EB4 802A93E4 8E300008 */ lw $s0, 8($s1)
/* 422EB8 802A93E8 240500FF */ addiu $a1, $zero, 0xff
/* 422EBC 802A93EC 0C0513AC */ jal icon_set_opacity
/* 422EC0 802A93F0 0200202D */ daddu $a0, $s0, $zero
/* 422EC4 802A93F4 82220061 */ lb $v0, 0x61($s1)
/* 422EC8 802A93F8 10400003 */ beqz $v0, .L802A9408
/* 422ECC 802A93FC 0200202D */ daddu $a0, $s0, $zero
/* 422ED0 802A9400 0C05128B */ jal clear_icon_flags
/* 422ED4 802A9404 24050002 */ addiu $a1, $zero, 2
.L802A9408:
/* 422ED8 802A9408 8E30000C */ lw $s0, 0xc($s1)
/* 422EDC 802A940C 240500FF */ addiu $a1, $zero, 0xff
/* 422EE0 802A9410 0C0513AC */ jal icon_set_opacity
/* 422EE4 802A9414 0200202D */ daddu $a0, $s0, $zero
/* 422EE8 802A9418 82220061 */ lb $v0, 0x61($s1)
/* 422EEC 802A941C 10400003 */ beqz $v0, .L802A942C
/* 422EF0 802A9420 0200202D */ daddu $a0, $s0, $zero
/* 422EF4 802A9424 0C05128B */ jal clear_icon_flags
/* 422EF8 802A9428 24050002 */ addiu $a1, $zero, 2
.L802A942C:
/* 422EFC 802A942C 8E300010 */ lw $s0, 0x10($s1)
/* 422F00 802A9430 240500FF */ addiu $a1, $zero, 0xff
/* 422F04 802A9434 0C0513AC */ jal icon_set_opacity
/* 422F08 802A9438 0200202D */ daddu $a0, $s0, $zero
/* 422F0C 802A943C 82220061 */ lb $v0, 0x61($s1)
/* 422F10 802A9440 10400003 */ beqz $v0, .L802A9450
/* 422F14 802A9444 0200202D */ daddu $a0, $s0, $zero
/* 422F18 802A9448 0C05128B */ jal clear_icon_flags
/* 422F1C 802A944C 24050002 */ addiu $a1, $zero, 2
.L802A9450:
/* 422F20 802A9450 24020001 */ addiu $v0, $zero, 1
/* 422F24 802A9454 080AA593 */ j .L802A964C
/* 422F28 802A9458 A622004C */ sh $v0, 0x4c($s1)
/* 422F2C 802A945C 96220056 */ lhu $v0, 0x56($s1)
/* 422F30 802A9460 24420014 */ addiu $v0, $v0, 0x14
/* 422F34 802A9464 A6220056 */ sh $v0, 0x56($s1)
/* 422F38 802A9468 00021400 */ sll $v0, $v0, 0x10
/* 422F3C 802A946C 00021403 */ sra $v0, $v0, 0x10
/* 422F40 802A9470 28420033 */ slti $v0, $v0, 0x33
/* 422F44 802A9474 14400002 */ bnez $v0, .L802A9480
/* 422F48 802A9478 24020032 */ addiu $v0, $zero, 0x32
/* 422F4C 802A947C A6220056 */ sh $v0, 0x56($s1)
.L802A9480:
/* 422F50 802A9480 8E240004 */ lw $a0, 4($s1)
/* 422F54 802A9484 86250056 */ lh $a1, 0x56($s1)
/* 422F58 802A9488 0C051261 */ jal set_icon_render_pos
/* 422F5C 802A948C 86260058 */ lh $a2, 0x58($s1)
/* 422F60 802A9490 8E240008 */ lw $a0, 8($s1)
/* 422F64 802A9494 86260058 */ lh $a2, 0x58($s1)
/* 422F68 802A9498 86250056 */ lh $a1, 0x56($s1)
/* 422F6C 802A949C 0C051261 */ jal set_icon_render_pos
/* 422F70 802A94A0 24C6001C */ addiu $a2, $a2, 0x1c
/* 422F74 802A94A4 080AA593 */ j .L802A964C
/* 422F78 802A94A8 00000000 */ nop
/* 422F7C 802A94AC 8622004E */ lh $v0, 0x4e($s1)
/* 422F80 802A94B0 9623004E */ lhu $v1, 0x4e($s1)
/* 422F84 802A94B4 10400003 */ beqz $v0, .L802A94C4
/* 422F88 802A94B8 2462FFFF */ addiu $v0, $v1, -1
/* 422F8C 802A94BC 080AA593 */ j .L802A964C
/* 422F90 802A94C0 A622004E */ sh $v0, 0x4e($s1)
.L802A94C4:
/* 422F94 802A94C4 8E240004 */ lw $a0, 4($s1)
/* 422F98 802A94C8 3C058011 */ lui $a1, %hi(D_80108B80)
/* 422F9C 802A94CC 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80)
/* 422FA0 802A94D0 0C0511FF */ jal set_menu_icon_script
/* 422FA4 802A94D4 00000000 */ nop
/* 422FA8 802A94D8 96230052 */ lhu $v1, 0x52($s1)
/* 422FAC 802A94DC 24020001 */ addiu $v0, $zero, 1
/* 422FB0 802A94E0 3C01802B */ lui $at, %hi(D_802A9920)
/* 422FB4 802A94E4 AC229920 */ sw $v0, %lo(D_802A9920)($at)
/* 422FB8 802A94E8 2402000B */ addiu $v0, $zero, 0xb
/* 422FBC 802A94EC A622004C */ sh $v0, 0x4c($s1)
/* 422FC0 802A94F0 A6230054 */ sh $v1, 0x54($s1)
/* 422FC4 802A94F4 82420083 */ lb $v0, 0x83($s2)
/* 422FC8 802A94F8 10400018 */ beqz $v0, .L802A955C
/* 422FCC 802A94FC 00000000 */ nop
/* 422FD0 802A9500 8E420214 */ lw $v0, 0x214($s2)
/* 422FD4 802A9504 30428000 */ andi $v0, $v0, 0x8000
/* 422FD8 802A9508 10400014 */ beqz $v0, .L802A955C
/* 422FDC 802A950C 3C0451EB */ lui $a0, 0x51eb
/* 422FE0 802A9510 86220050 */ lh $v0, 0x50($s1)
/* 422FE4 802A9514 8E430434 */ lw $v1, 0x434($s2)
/* 422FE8 802A9518 00021080 */ sll $v0, $v0, 2
/* 422FEC 802A951C 00431021 */ addu $v0, $v0, $v1
/* 422FF0 802A9520 8C420000 */ lw $v0, ($v0)
/* 422FF4 802A9524 3484851F */ ori $a0, $a0, 0x851f
/* 422FF8 802A9528 00021840 */ sll $v1, $v0, 1
/* 422FFC 802A952C 00621821 */ addu $v1, $v1, $v0
/* 423000 802A9530 00031100 */ sll $v0, $v1, 4
/* 423004 802A9534 00431023 */ subu $v0, $v0, $v1
/* 423008 802A9538 00021080 */ sll $v0, $v0, 2
/* 42300C 802A953C 00440018 */ mult $v0, $a0
/* 423010 802A9540 000217C3 */ sra $v0, $v0, 0x1f
/* 423014 802A9544 96230044 */ lhu $v1, 0x44($s1)
/* 423018 802A9548 00003810 */ mfhi $a3
/* 42301C 802A954C 00072143 */ sra $a0, $a3, 5
/* 423020 802A9550 00822023 */ subu $a0, $a0, $v0
/* 423024 802A9554 00641821 */ addu $v1, $v1, $a0
/* 423028 802A9558 A6230044 */ sh $v1, 0x44($s1)
.L802A955C:
/* 42302C 802A955C 86220044 */ lh $v0, 0x44($s1)
/* 423030 802A9560 28422710 */ slti $v0, $v0, 0x2710
/* 423034 802A9564 14400010 */ bnez $v0, .L802A95A8
/* 423038 802A9568 3C0451EB */ lui $a0, 0x51eb
/* 42303C 802A956C 8E300014 */ lw $s0, 0x14($s1)
/* 423040 802A9570 86250056 */ lh $a1, 0x56($s1)
/* 423044 802A9574 86260058 */ lh $a2, 0x58($s1)
/* 423048 802A9578 24022710 */ addiu $v0, $zero, 0x2710
/* 42304C 802A957C A6220044 */ sh $v0, 0x44($s1)
/* 423050 802A9580 24020001 */ addiu $v0, $zero, 1
/* 423054 802A9584 A6220068 */ sh $v0, 0x68($s1)
/* 423058 802A9588 0200202D */ daddu $a0, $s0, $zero
/* 42305C 802A958C 24A50032 */ addiu $a1, $a1, 0x32
/* 423060 802A9590 0C051261 */ jal set_icon_render_pos
/* 423064 802A9594 24C6001C */ addiu $a2, $a2, 0x1c
/* 423068 802A9598 0200202D */ daddu $a0, $s0, $zero
/* 42306C 802A959C 0C05128B */ jal clear_icon_flags
/* 423070 802A95A0 24050002 */ addiu $a1, $zero, 2
/* 423074 802A95A4 3C0451EB */ lui $a0, 0x51eb
.L802A95A8:
/* 423078 802A95A8 96230044 */ lhu $v1, 0x44($s1)
/* 42307C 802A95AC 3484851F */ ori $a0, $a0, 0x851f
/* 423080 802A95B0 00031C00 */ sll $v1, $v1, 0x10
/* 423084 802A95B4 00031403 */ sra $v0, $v1, 0x10
/* 423088 802A95B8 00440018 */ mult $v0, $a0
/* 42308C 802A95BC 00031FC3 */ sra $v1, $v1, 0x1f
/* 423090 802A95C0 00003810 */ mfhi $a3
/* 423094 802A95C4 00071143 */ sra $v0, $a3, 5
/* 423098 802A95C8 00432023 */ subu $a0, $v0, $v1
/* 42309C 802A95CC A2440081 */ sb $a0, 0x81($s2)
/* 4230A0 802A95D0 86220054 */ lh $v0, 0x54($s1)
/* 4230A4 802A95D4 96230054 */ lhu $v1, 0x54($s1)
/* 4230A8 802A95D8 14400018 */ bnez $v0, .L802A963C
/* 4230AC 802A95DC 2462FFFF */ addiu $v0, $v1, -1
/* 4230B0 802A95E0 00041600 */ sll $v0, $a0, 0x18
/* 4230B4 802A95E4 00021603 */ sra $v0, $v0, 0x18
/* 4230B8 802A95E8 86240046 */ lh $a0, 0x46($s1)
/* 4230BC 802A95EC 24030064 */ addiu $v1, $zero, 0x64
/* 4230C0 802A95F0 00641823 */ subu $v1, $v1, $a0
/* 4230C4 802A95F4 0043102A */ slt $v0, $v0, $v1
/* 4230C8 802A95F8 14400004 */ bnez $v0, .L802A960C
/* 4230CC 802A95FC 2402FFFE */ addiu $v0, $zero, -2
/* 4230D0 802A9600 24020001 */ addiu $v0, $zero, 1
/* 4230D4 802A9604 080AA585 */ j .L802A9614
/* 4230D8 802A9608 A2420086 */ sb $v0, 0x86($s2)
.L802A960C:
/* 4230DC 802A960C A2420086 */ sb $v0, 0x86($s2)
/* 4230E0 802A9610 2402FFFF */ addiu $v0, $zero, -1
.L802A9614:
/* 4230E4 802A9614 A2420081 */ sb $v0, 0x81($s2)
/* 4230E8 802A9618 24020014 */ addiu $v0, $zero, 0x14
/* 4230EC 802A961C A6220054 */ sh $v0, 0x54($s1)
/* 4230F0 802A9620 2402000C */ addiu $v0, $zero, 0xc
/* 4230F4 802A9624 080AA593 */ j .L802A964C
/* 4230F8 802A9628 A622004C */ sh $v0, 0x4c($s1)
/* 4230FC 802A962C 86220054 */ lh $v0, 0x54($s1)
/* 423100 802A9630 96230054 */ lhu $v1, 0x54($s1)
/* 423104 802A9634 10400003 */ beqz $v0, .L802A9644
/* 423108 802A9638 2462FFFF */ addiu $v0, $v1, -1
.L802A963C:
/* 42310C 802A963C 080AA593 */ j .L802A964C
/* 423110 802A9640 A6220054 */ sh $v0, 0x54($s1)
.L802A9644:
/* 423114 802A9644 0C09A327 */ jal func_80268C9C
/* 423118 802A9648 00000000 */ nop
.L802A964C:
/* 42311C 802A964C 8623004C */ lh $v1, 0x4c($s1)
.L802A9650:
/* 423120 802A9650 24040001 */ addiu $a0, $zero, 1
/* 423124 802A9654 10640007 */ beq $v1, $a0, .L802A9674
/* 423128 802A9658 00000000 */ nop
/* 42312C 802A965C 1860001F */ blez $v1, .L802A96DC
/* 423130 802A9660 2862000C */ slti $v0, $v1, 0xc
/* 423134 802A9664 1040001D */ beqz $v0, .L802A96DC
/* 423138 802A9668 2862000A */ slti $v0, $v1, 0xa
/* 42313C 802A966C 1440001B */ bnez $v0, .L802A96DC
/* 423140 802A9670 00000000 */ nop
.L802A9674:
/* 423144 802A9674 8622005A */ lh $v0, 0x5a($s1)
/* 423148 802A9678 14400002 */ bnez $v0, .L802A9684
/* 42314C 802A967C 24030008 */ addiu $v1, $zero, 8
/* 423150 802A9680 24030007 */ addiu $v1, $zero, 7
.L802A9684:
/* 423154 802A9684 8222005C */ lb $v0, 0x5c($s1)
/* 423158 802A9688 1440000C */ bnez $v0, .L802A96BC
/* 42315C 802A968C 00000000 */ nop
/* 423160 802A9690 96220046 */ lhu $v0, 0x46($s1)
/* 423164 802A9694 00431021 */ addu $v0, $v0, $v1
/* 423168 802A9698 A6220046 */ sh $v0, 0x46($s1)
/* 42316C 802A969C 00021400 */ sll $v0, $v0, 0x10
/* 423170 802A96A0 00021403 */ sra $v0, $v0, 0x10
/* 423174 802A96A4 28420064 */ slti $v0, $v0, 0x64
/* 423178 802A96A8 1440000C */ bnez $v0, .L802A96DC
/* 42317C 802A96AC 24020064 */ addiu $v0, $zero, 0x64
/* 423180 802A96B0 A6220046 */ sh $v0, 0x46($s1)
/* 423184 802A96B4 080AA5B7 */ j .L802A96DC
/* 423188 802A96B8 A224005C */ sb $a0, 0x5c($s1)
.L802A96BC:
/* 42318C 802A96BC 96220046 */ lhu $v0, 0x46($s1)
/* 423190 802A96C0 00431023 */ subu $v0, $v0, $v1
/* 423194 802A96C4 A6220046 */ sh $v0, 0x46($s1)
/* 423198 802A96C8 00021400 */ sll $v0, $v0, 0x10
/* 42319C 802A96CC 1C400003 */ bgtz $v0, .L802A96DC
/* 4231A0 802A96D0 00000000 */ nop
/* 4231A4 802A96D4 A6200046 */ sh $zero, 0x46($s1)
/* 4231A8 802A96D8 A220005C */ sb $zero, 0x5c($s1)
.L802A96DC:
/* 4231AC 802A96DC 8FBF001C */ lw $ra, 0x1c($sp)
/* 4231B0 802A96E0 8FB20018 */ lw $s2, 0x18($sp)
/* 4231B4 802A96E4 8FB10014 */ lw $s1, 0x14($sp)
/* 4231B8 802A96E8 8FB00010 */ lw $s0, 0x10($sp)
/* 4231BC 802A96EC 03E00008 */ jr $ra
/* 4231C0 802A96F0 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,113 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A96F4_4231C4
/* 4231C4 802A96F4 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 4231C8 802A96F8 AFB20020 */ sw $s2, 0x20($sp)
/* 4231CC 802A96FC 3C1251EB */ lui $s2, 0x51eb
/* 4231D0 802A9700 3652851F */ ori $s2, $s2, 0x851f
/* 4231D4 802A9704 AFB1001C */ sw $s1, 0x1c($sp)
/* 4231D8 802A9708 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 4231DC 802A970C 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 4231E0 802A9710 AFBF0024 */ sw $ra, 0x24($sp)
/* 4231E4 802A9714 AFB00018 */ sw $s0, 0x18($sp)
/* 4231E8 802A9718 86230046 */ lh $v1, 0x46($s1)
/* 4231EC 802A971C 24020064 */ addiu $v0, $zero, 0x64
/* 4231F0 802A9720 00431023 */ subu $v0, $v0, $v1
/* 4231F4 802A9724 00021900 */ sll $v1, $v0, 4
/* 4231F8 802A9728 00621823 */ subu $v1, $v1, $v0
/* 4231FC 802A972C 00031880 */ sll $v1, $v1, 2
/* 423200 802A9730 00720018 */ mult $v1, $s2
/* 423204 802A9734 86260058 */ lh $a2, 0x58($s1)
/* 423208 802A9738 8E240010 */ lw $a0, 0x10($s1)
/* 42320C 802A973C 24C60011 */ addiu $a2, $a2, 0x11
/* 423210 802A9740 00031FC3 */ sra $v1, $v1, 0x1f
/* 423214 802A9744 00004010 */ mfhi $t0
/* 423218 802A9748 00081143 */ sra $v0, $t0, 5
/* 42321C 802A974C 00431023 */ subu $v0, $v0, $v1
/* 423220 802A9750 2403003C */ addiu $v1, $zero, 0x3c
/* 423224 802A9754 00621823 */ subu $v1, $v1, $v0
/* 423228 802A9758 86220056 */ lh $v0, 0x56($s1)
/* 42322C 802A975C 2465FFE1 */ addiu $a1, $v1, -0x1f
/* 423230 802A9760 AFA30010 */ sw $v1, 0x10($sp)
/* 423234 802A9764 0C051261 */ jal set_icon_render_pos
/* 423238 802A9768 00452823 */ subu $a1, $v0, $a1
/* 42323C 802A976C 8FA50010 */ lw $a1, 0x10($sp)
/* 423240 802A9770 8E24000C */ lw $a0, 0xc($s1)
/* 423244 802A9774 86220056 */ lh $v0, 0x56($s1)
/* 423248 802A9778 86260058 */ lh $a2, 0x58($s1)
/* 42324C 802A977C 24A5FFE1 */ addiu $a1, $a1, -0x1f
/* 423250 802A9780 00452823 */ subu $a1, $v0, $a1
/* 423254 802A9784 0C051261 */ jal set_icon_render_pos
/* 423258 802A9788 24C6FFFF */ addiu $a2, $a2, -1
/* 42325C 802A978C 3C02800E */ lui $v0, %hi(gBattleStatus+0x83)
/* 423260 802A9790 8042C0F3 */ lb $v0, %lo(gBattleStatus+0x83)($v0)
/* 423264 802A9794 10400003 */ beqz $v0, .L802A97A4
/* 423268 802A9798 00000000 */ nop
/* 42326C 802A979C 0C0511EA */ jal draw_icon_0
/* 423270 802A97A0 8E240004 */ lw $a0, 4($s1)
.L802A97A4:
/* 423274 802A97A4 8E300008 */ lw $s0, 8($s1)
/* 423278 802A97A8 0C0511EA */ jal draw_icon_0
/* 42327C 802A97AC 0200202D */ daddu $a0, $s0, $zero
/* 423280 802A97B0 0200202D */ daddu $a0, $s0, $zero
/* 423284 802A97B4 27A50010 */ addiu $a1, $sp, 0x10
/* 423288 802A97B8 0C05126B */ jal get_icon_render_pos
/* 42328C 802A97BC 27A60014 */ addiu $a2, $sp, 0x14
/* 423290 802A97C0 3C02802B */ lui $v0, %hi(D_802A9920)
/* 423294 802A97C4 8C429920 */ lw $v0, %lo(D_802A9920)($v0)
/* 423298 802A97C8 14400006 */ bnez $v0, .L802A97E4
/* 42329C 802A97CC 24070001 */ addiu $a3, $zero, 1
/* 4232A0 802A97D0 96230044 */ lhu $v1, 0x44($s1)
/* 4232A4 802A97D4 00031C00 */ sll $v1, $v1, 0x10
/* 4232A8 802A97D8 00031403 */ sra $v0, $v1, 0x10
/* 4232AC 802A97DC 080AA600 */ j .L802A9800
/* 4232B0 802A97E0 00520018 */ mult $v0, $s2
.L802A97E4:
/* 4232B4 802A97E4 86220068 */ lh $v0, 0x68($s1)
/* 4232B8 802A97E8 14400010 */ bnez $v0, .L802A982C
/* 4232BC 802A97EC 24070004 */ addiu $a3, $zero, 4
/* 4232C0 802A97F0 96230044 */ lhu $v1, 0x44($s1)
/* 4232C4 802A97F4 00031C00 */ sll $v1, $v1, 0x10
/* 4232C8 802A97F8 00031403 */ sra $v0, $v1, 0x10
/* 4232CC 802A97FC 00520018 */ mult $v0, $s2
.L802A9800:
/* 4232D0 802A9800 8FA40010 */ lw $a0, 0x10($sp)
/* 4232D4 802A9804 8FA50014 */ lw $a1, 0x14($sp)
/* 4232D8 802A9808 00031FC3 */ sra $v1, $v1, 0x1f
/* 4232DC 802A980C 00004010 */ mfhi $t0
/* 4232E0 802A9810 00083143 */ sra $a2, $t0, 5
/* 4232E4 802A9814 00C33023 */ subu $a2, $a2, $v1
/* 4232E8 802A9818 00063400 */ sll $a2, $a2, 0x10
/* 4232EC 802A981C 0C09A1E6 */ jal func_80268798
/* 4232F0 802A9820 00063403 */ sra $a2, $a2, 0x10
/* 4232F4 802A9824 080AA618 */ j .L802A9860
/* 4232F8 802A9828 00000000 */ nop
.L802A982C:
/* 4232FC 802A982C 96230044 */ lhu $v1, 0x44($s1)
/* 423300 802A9830 00031C00 */ sll $v1, $v1, 0x10
/* 423304 802A9834 00031403 */ sra $v0, $v1, 0x10
/* 423308 802A9838 00520018 */ mult $v0, $s2
/* 42330C 802A983C 8FA40010 */ lw $a0, 0x10($sp)
/* 423310 802A9840 8FA50014 */ lw $a1, 0x14($sp)
/* 423314 802A9844 00031FC3 */ sra $v1, $v1, 0x1f
/* 423318 802A9848 00004010 */ mfhi $t0
/* 42331C 802A984C 00083143 */ sra $a2, $t0, 5
/* 423320 802A9850 00C33023 */ subu $a2, $a2, $v1
/* 423324 802A9854 00063400 */ sll $a2, $a2, 0x10
/* 423328 802A9858 0C09A203 */ jal func_8026880C
/* 42332C 802A985C 00063403 */ sra $a2, $a2, 0x10
.L802A9860:
/* 423330 802A9860 8E24000C */ lw $a0, 0xc($s1)
/* 423334 802A9864 0C0511EA */ jal draw_icon_0
/* 423338 802A9868 00000000 */ nop
/* 42333C 802A986C 0C0511EA */ jal draw_icon_0
/* 423340 802A9870 8E240010 */ lw $a0, 0x10($s1)
/* 423344 802A9874 0C0511EA */ jal draw_icon_0
/* 423348 802A9878 8E240014 */ lw $a0, 0x14($s1)
/* 42334C 802A987C 8FBF0024 */ lw $ra, 0x24($sp)
/* 423350 802A9880 8FB20020 */ lw $s2, 0x20($sp)
/* 423354 802A9884 8FB1001C */ lw $s1, 0x1c($sp)
/* 423358 802A9888 8FB00018 */ lw $s0, 0x18($sp)
/* 42335C 802A988C 03E00008 */ jr $ra
/* 423360 802A9890 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,23 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9894_423364
/* 423364 802A9894 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 423368 802A9898 AFB00010 */ sw $s0, 0x10($sp)
/* 42336C 802A989C 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 423370 802A98A0 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 423374 802A98A4 AFBF0014 */ sw $ra, 0x14($sp)
/* 423378 802A98A8 0C05123D */ jal free_icon
/* 42337C 802A98AC 8E040004 */ lw $a0, 4($s0)
/* 423380 802A98B0 0C05123D */ jal free_icon
/* 423384 802A98B4 8E040008 */ lw $a0, 8($s0)
/* 423388 802A98B8 0C05123D */ jal free_icon
/* 42338C 802A98BC 8E04000C */ lw $a0, 0xc($s0)
/* 423390 802A98C0 0C05123D */ jal free_icon
/* 423394 802A98C4 8E040010 */ lw $a0, 0x10($s0)
/* 423398 802A98C8 0C05123D */ jal free_icon
/* 42339C 802A98CC 8E040014 */ lw $a0, 0x14($s0)
/* 4233A0 802A98D0 8FBF0014 */ lw $ra, 0x14($sp)
/* 4233A4 802A98D4 8FB00010 */ lw $s0, 0x10($sp)
/* 4233A8 802A98D8 03E00008 */ jr $ra
/* 4233AC 802A98DC 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,114 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_4233F0
/* 4233F0 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 4233F4 802A9004 AFB00010 */ sw $s0, 0x10($sp)
/* 4233F8 802A9008 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 4233FC 802A900C 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 423400 802A9010 3C028029 */ lui $v0, %hi(D_80294220)
/* 423404 802A9014 24424220 */ addiu $v0, $v0, %lo(D_80294220)
/* 423408 802A9018 AFBF0018 */ sw $ra, 0x18($sp)
/* 42340C 802A901C AFB10014 */ sw $s1, 0x14($sp)
/* 423410 802A9020 AE020434 */ sw $v0, 0x434($s0)
/* 423414 802A9024 2402007F */ addiu $v0, $zero, 0x7f
/* 423418 802A9028 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42341C 802A902C 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 423420 802A9030 A2020086 */ sb $v0, 0x86($s0)
/* 423424 802A9034 82020083 */ lb $v0, 0x83($s0)
/* 423428 802A9038 0200182D */ daddu $v1, $s0, $zero
/* 42342C 802A903C 10400055 */ beqz $v0, .L802A9194
/* 423430 802A9040 A2000082 */ sb $zero, 0x82($s0)
/* 423434 802A9044 0C09A216 */ jal func_80268858
/* 423438 802A9048 00000000 */ nop
/* 42343C 802A904C 3C048011 */ lui $a0, %hi(D_80108B28)
/* 423440 802A9050 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 423444 802A9054 24020004 */ addiu $v0, $zero, 4
/* 423448 802A9058 A622004A */ sh $v0, 0x4a($s1)
/* 42344C 802A905C 24020001 */ addiu $v0, $zero, 1
/* 423450 802A9060 A2220061 */ sb $v0, 0x61($s1)
/* 423454 802A9064 2402FFD0 */ addiu $v0, $zero, -0x30
/* 423458 802A9068 A620004C */ sh $zero, 0x4c($s1)
/* 42345C 802A906C A2200060 */ sb $zero, 0x60($s1)
/* 423460 802A9070 A6200044 */ sh $zero, 0x44($s1)
/* 423464 802A9074 A6200046 */ sh $zero, 0x46($s1)
/* 423468 802A9078 A6200048 */ sh $zero, 0x48($s1)
/* 42346C 802A907C A2000081 */ sb $zero, 0x81($s0)
/* 423470 802A9080 A6220056 */ sh $v0, 0x56($s1)
/* 423474 802A9084 24020050 */ addiu $v0, $zero, 0x50
/* 423478 802A9088 0C050529 */ jal create_icon
/* 42347C 802A908C A6220058 */ sh $v0, 0x58($s1)
/* 423480 802A9090 0040802D */ daddu $s0, $v0, $zero
/* 423484 802A9094 86250056 */ lh $a1, 0x56($s1)
/* 423488 802A9098 86260058 */ lh $a2, 0x58($s1)
/* 42348C 802A909C 0200202D */ daddu $a0, $s0, $zero
/* 423490 802A90A0 0C051261 */ jal set_icon_render_pos
/* 423494 802A90A4 AE300004 */ sw $s0, 4($s1)
/* 423498 802A90A8 0200202D */ daddu $a0, $s0, $zero
/* 42349C 802A90AC 0C051277 */ jal func_801449DC
/* 4234A0 802A90B0 0000282D */ daddu $a1, $zero, $zero
/* 4234A4 802A90B4 0200202D */ daddu $a0, $s0, $zero
/* 4234A8 802A90B8 0C051280 */ jal set_icon_flags
/* 4234AC 802A90BC 24050082 */ addiu $a1, $zero, 0x82
/* 4234B0 802A90C0 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 4234B4 802A90C4 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 4234B8 802A90C8 0C050529 */ jal create_icon
/* 4234BC 802A90CC 00000000 */ nop
/* 4234C0 802A90D0 0040802D */ daddu $s0, $v0, $zero
/* 4234C4 802A90D4 86250056 */ lh $a1, 0x56($s1)
/* 4234C8 802A90D8 86260058 */ lh $a2, 0x58($s1)
/* 4234CC 802A90DC 0200202D */ daddu $a0, $s0, $zero
/* 4234D0 802A90E0 AE300008 */ sw $s0, 8($s1)
/* 4234D4 802A90E4 0C051261 */ jal set_icon_render_pos
/* 4234D8 802A90E8 24C6001C */ addiu $a2, $a2, 0x1c
/* 4234DC 802A90EC 0200202D */ daddu $a0, $s0, $zero
/* 4234E0 802A90F0 0C051277 */ jal func_801449DC
/* 4234E4 802A90F4 0000282D */ daddu $a1, $zero, $zero
/* 4234E8 802A90F8 0200202D */ daddu $a0, $s0, $zero
/* 4234EC 802A90FC 0C051280 */ jal set_icon_flags
/* 4234F0 802A9100 24050082 */ addiu $a1, $zero, 0x82
/* 4234F4 802A9104 3C048029 */ lui $a0, %hi(D_802928F8)
/* 4234F8 802A9108 248428F8 */ addiu $a0, $a0, %lo(D_802928F8)
/* 4234FC 802A910C 0C050529 */ jal create_icon
/* 423500 802A9110 00000000 */ nop
/* 423504 802A9114 0040802D */ daddu $s0, $v0, $zero
/* 423508 802A9118 86250056 */ lh $a1, 0x56($s1)
/* 42350C 802A911C 86260058 */ lh $a2, 0x58($s1)
/* 423510 802A9120 0200202D */ daddu $a0, $s0, $zero
/* 423514 802A9124 AE30000C */ sw $s0, 0xc($s1)
/* 423518 802A9128 0C051261 */ jal set_icon_render_pos
/* 42351C 802A912C 24C6001C */ addiu $a2, $a2, 0x1c
/* 423520 802A9130 0200202D */ daddu $a0, $s0, $zero
/* 423524 802A9134 0C051277 */ jal func_801449DC
/* 423528 802A9138 0000282D */ daddu $a1, $zero, $zero
/* 42352C 802A913C 0200202D */ daddu $a0, $s0, $zero
/* 423530 802A9140 0C051280 */ jal set_icon_flags
/* 423534 802A9144 24050082 */ addiu $a1, $zero, 0x82
/* 423538 802A9148 3C048011 */ lui $a0, %hi(D_80109244)
/* 42353C 802A914C 24849244 */ addiu $a0, $a0, %lo(D_80109244)
/* 423540 802A9150 0C050529 */ jal create_icon
/* 423544 802A9154 00000000 */ nop
/* 423548 802A9158 0040802D */ daddu $s0, $v0, $zero
/* 42354C 802A915C 86250056 */ lh $a1, 0x56($s1)
/* 423550 802A9160 86260058 */ lh $a2, 0x58($s1)
/* 423554 802A9164 0200202D */ daddu $a0, $s0, $zero
/* 423558 802A9168 AE300010 */ sw $s0, 0x10($s1)
/* 42355C 802A916C 0C051261 */ jal set_icon_render_pos
/* 423560 802A9170 24C6001C */ addiu $a2, $a2, 0x1c
/* 423564 802A9174 0200202D */ daddu $a0, $s0, $zero
/* 423568 802A9178 0C051277 */ jal func_801449DC
/* 42356C 802A917C 0000282D */ daddu $a1, $zero, $zero
/* 423570 802A9180 0200202D */ daddu $a0, $s0, $zero
/* 423574 802A9184 0C051280 */ jal set_icon_flags
/* 423578 802A9188 24050082 */ addiu $a1, $zero, 0x82
/* 42357C 802A918C 080AA467 */ j .L802A919C
/* 423580 802A9190 24020002 */ addiu $v0, $zero, 2
.L802A9194:
/* 423584 802A9194 A0600081 */ sb $zero, 0x81($v1)
/* 423588 802A9198 24020002 */ addiu $v0, $zero, 2
.L802A919C:
/* 42358C 802A919C 8FBF0018 */ lw $ra, 0x18($sp)
/* 423590 802A91A0 8FB10014 */ lw $s1, 0x14($sp)
/* 423594 802A91A4 8FB00010 */ lw $s0, 0x10($sp)
/* 423598 802A91A8 03E00008 */ jr $ra
/* 42359C 802A91AC 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,81 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A91B0_4235A0
/* 4235A0 802A91B0 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 4235A4 802A91B4 AFB20018 */ sw $s2, 0x18($sp)
/* 4235A8 802A91B8 0080902D */ daddu $s2, $a0, $zero
/* 4235AC 802A91BC AFB10014 */ sw $s1, 0x14($sp)
/* 4235B0 802A91C0 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 4235B4 802A91C4 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 4235B8 802A91C8 AFB3001C */ sw $s3, 0x1c($sp)
/* 4235BC 802A91CC 3C13800E */ lui $s3, %hi(gBattleStatus)
/* 4235C0 802A91D0 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus)
/* 4235C4 802A91D4 AFBF0020 */ sw $ra, 0x20($sp)
/* 4235C8 802A91D8 AFB00010 */ sw $s0, 0x10($sp)
/* 4235CC 802A91DC 82620083 */ lb $v0, 0x83($s3)
/* 4235D0 802A91E0 8E50000C */ lw $s0, 0xc($s2)
/* 4235D4 802A91E4 10400034 */ beqz $v0, .L802A92B8
/* 4235D8 802A91E8 0260182D */ daddu $v1, $s3, $zero
/* 4235DC 802A91EC 0C09A216 */ jal func_80268858
/* 4235E0 802A91F0 00000000 */ nop
/* 4235E4 802A91F4 8E050000 */ lw $a1, ($s0)
/* 4235E8 802A91F8 26100004 */ addiu $s0, $s0, 4
/* 4235EC 802A91FC 0C0B1EAF */ jal get_variable
/* 4235F0 802A9200 0240202D */ daddu $a0, $s2, $zero
/* 4235F4 802A9204 A622004E */ sh $v0, 0x4e($s1)
/* 4235F8 802A9208 8E050000 */ lw $a1, ($s0)
/* 4235FC 802A920C 26100004 */ addiu $s0, $s0, 4
/* 423600 802A9210 0C0B1EAF */ jal get_variable
/* 423604 802A9214 0240202D */ daddu $a0, $s2, $zero
/* 423608 802A9218 A6220052 */ sh $v0, 0x52($s1)
/* 42360C 802A921C 8E050000 */ lw $a1, ($s0)
/* 423610 802A9220 26100004 */ addiu $s0, $s0, 4
/* 423614 802A9224 0C0B1EAF */ jal get_variable
/* 423618 802A9228 0240202D */ daddu $a0, $s2, $zero
/* 42361C 802A922C A622005A */ sh $v0, 0x5a($s1)
/* 423620 802A9230 8E050000 */ lw $a1, ($s0)
/* 423624 802A9234 0C0B1EAF */ jal get_variable
/* 423628 802A9238 0240202D */ daddu $a0, $s2, $zero
/* 42362C 802A923C 00022400 */ sll $a0, $v0, 0x10
/* 423630 802A9240 00042403 */ sra $a0, $a0, 0x10
/* 423634 802A9244 0C09A089 */ jal func_80268224
/* 423638 802A9248 A6220050 */ sh $v0, 0x50($s1)
/* 42363C 802A924C 8624005A */ lh $a0, 0x5a($s1)
/* 423640 802A9250 A6220050 */ sh $v0, 0x50($s1)
/* 423644 802A9254 A2200060 */ sb $zero, 0x60($s1)
/* 423648 802A9258 A6200044 */ sh $zero, 0x44($s1)
/* 42364C 802A925C A6200046 */ sh $zero, 0x46($s1)
/* 423650 802A9260 A6200048 */ sh $zero, 0x48($s1)
/* 423654 802A9264 A2600081 */ sb $zero, 0x81($s3)
/* 423658 802A9268 82220080 */ lb $v0, 0x80($s1)
/* 42365C 802A926C 2403007F */ addiu $v1, $zero, 0x7f
/* 423660 802A9270 A2630086 */ sb $v1, 0x86($s3)
/* 423664 802A9274 2442FFFF */ addiu $v0, $v0, -1
/* 423668 802A9278 00021040 */ sll $v0, $v0, 1
/* 42366C 802A927C 00511021 */ addu $v0, $v0, $s1
/* 423670 802A9280 90420075 */ lbu $v0, 0x75($v0)
/* 423674 802A9284 0C00A67F */ jal rand_int
/* 423678 802A9288 A2620082 */ sb $v0, 0x82($s3)
/* 42367C 802A928C 3C05FFFF */ lui $a1, 0xffff
/* 423680 802A9290 34A57FFF */ ori $a1, $a1, 0x7fff
/* 423684 802A9294 A6220046 */ sh $v0, 0x46($s1)
/* 423688 802A9298 24020002 */ addiu $v0, $zero, 2
/* 42368C 802A929C A220005C */ sb $zero, 0x5c($s1)
/* 423690 802A92A0 8E630000 */ lw $v1, ($s3)
/* 423694 802A92A4 2404000A */ addiu $a0, $zero, 0xa
/* 423698 802A92A8 A624004C */ sh $a0, 0x4c($s1)
/* 42369C 802A92AC 00651824 */ and $v1, $v1, $a1
/* 4236A0 802A92B0 080AA4B0 */ j .L802A92C0
/* 4236A4 802A92B4 AE630000 */ sw $v1, ($s3)
.L802A92B8:
/* 4236A8 802A92B8 A0600081 */ sb $zero, 0x81($v1)
/* 4236AC 802A92BC 24020002 */ addiu $v0, $zero, 2
.L802A92C0:
/* 4236B0 802A92C0 8FBF0020 */ lw $ra, 0x20($sp)
/* 4236B4 802A92C4 8FB3001C */ lw $s3, 0x1c($sp)
/* 4236B8 802A92C8 8FB20018 */ lw $s2, 0x18($sp)
/* 4236BC 802A92CC 8FB10014 */ lw $s1, 0x14($sp)
/* 4236C0 802A92D0 8FB00010 */ lw $s0, 0x10($sp)
/* 4236C4 802A92D4 03E00008 */ jr $ra
/* 4236C8 802A92D8 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,273 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A92DC_4236CC
/* 4236CC 802A92DC 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 4236D0 802A92E0 AFB10014 */ sw $s1, 0x14($sp)
/* 4236D4 802A92E4 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 4236D8 802A92E8 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 4236DC 802A92EC AFBF0018 */ sw $ra, 0x18($sp)
/* 4236E0 802A92F0 AFB00010 */ sw $s0, 0x10($sp)
/* 4236E4 802A92F4 8623004C */ lh $v1, 0x4c($s1)
/* 4236E8 802A92F8 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 4236EC 802A92FC 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 4236F0 802A9300 2C62000D */ sltiu $v0, $v1, 0xd
/* 4236F4 802A9304 104000E7 */ beqz $v0, .L802A96A4
/* 4236F8 802A9308 00031080 */ sll $v0, $v1, 2
/* 4236FC 802A930C 3C01802B */ lui $at, %hi(D_802A9840)
/* 423700 802A9310 00220821 */ addu $at, $at, $v0
/* 423704 802A9314 8C229840 */ lw $v0, %lo(D_802A9840)($at)
/* 423708 802A9318 00400008 */ jr $v0
/* 42370C 802A931C 00000000 */ nop
/* 423710 802A9320 0C093EB1 */ jal set_popup_duration
/* 423714 802A9324 24040063 */ addiu $a0, $zero, 0x63
/* 423718 802A9328 8E300004 */ lw $s0, 4($s1)
/* 42371C 802A932C 240500FF */ addiu $a1, $zero, 0xff
/* 423720 802A9330 0C0513AC */ jal icon_set_opacity
/* 423724 802A9334 0200202D */ daddu $a0, $s0, $zero
/* 423728 802A9338 82220061 */ lb $v0, 0x61($s1)
/* 42372C 802A933C 10400003 */ beqz $v0, .L802A934C
/* 423730 802A9340 0200202D */ daddu $a0, $s0, $zero
/* 423734 802A9344 0C05128B */ jal clear_icon_flags
/* 423738 802A9348 24050002 */ addiu $a1, $zero, 2
.L802A934C:
/* 42373C 802A934C 8E300008 */ lw $s0, 8($s1)
/* 423740 802A9350 240500FF */ addiu $a1, $zero, 0xff
/* 423744 802A9354 0C0513AC */ jal icon_set_opacity
/* 423748 802A9358 0200202D */ daddu $a0, $s0, $zero
/* 42374C 802A935C 82220061 */ lb $v0, 0x61($s1)
/* 423750 802A9360 10400003 */ beqz $v0, .L802A9370
/* 423754 802A9364 0200202D */ daddu $a0, $s0, $zero
/* 423758 802A9368 0C05128B */ jal clear_icon_flags
/* 42375C 802A936C 24050002 */ addiu $a1, $zero, 2
.L802A9370:
/* 423760 802A9370 8E30000C */ lw $s0, 0xc($s1)
/* 423764 802A9374 240500FF */ addiu $a1, $zero, 0xff
/* 423768 802A9378 0C0513AC */ jal icon_set_opacity
/* 42376C 802A937C 0200202D */ daddu $a0, $s0, $zero
/* 423770 802A9380 82220061 */ lb $v0, 0x61($s1)
/* 423774 802A9384 10400003 */ beqz $v0, .L802A9394
/* 423778 802A9388 0200202D */ daddu $a0, $s0, $zero
/* 42377C 802A938C 0C05128B */ jal clear_icon_flags
/* 423780 802A9390 24050002 */ addiu $a1, $zero, 2
.L802A9394:
/* 423784 802A9394 8E300010 */ lw $s0, 0x10($s1)
/* 423788 802A9398 240500FF */ addiu $a1, $zero, 0xff
/* 42378C 802A939C 0C0513AC */ jal icon_set_opacity
/* 423790 802A93A0 0200202D */ daddu $a0, $s0, $zero
/* 423794 802A93A4 82220061 */ lb $v0, 0x61($s1)
/* 423798 802A93A8 10400003 */ beqz $v0, .L802A93B8
/* 42379C 802A93AC 0200202D */ daddu $a0, $s0, $zero
/* 4237A0 802A93B0 0C05128B */ jal clear_icon_flags
/* 4237A4 802A93B4 24050002 */ addiu $a1, $zero, 2
.L802A93B8:
/* 4237A8 802A93B8 24020001 */ addiu $v0, $zero, 1
/* 4237AC 802A93BC 080AA5A9 */ j .L802A96A4
/* 4237B0 802A93C0 A622004C */ sh $v0, 0x4c($s1)
/* 4237B4 802A93C4 0C093EB1 */ jal set_popup_duration
/* 4237B8 802A93C8 24040063 */ addiu $a0, $zero, 0x63
/* 4237BC 802A93CC 96220056 */ lhu $v0, 0x56($s1)
/* 4237C0 802A93D0 24420014 */ addiu $v0, $v0, 0x14
/* 4237C4 802A93D4 A6220056 */ sh $v0, 0x56($s1)
/* 4237C8 802A93D8 00021400 */ sll $v0, $v0, 0x10
/* 4237CC 802A93DC 00021403 */ sra $v0, $v0, 0x10
/* 4237D0 802A93E0 28420033 */ slti $v0, $v0, 0x33
/* 4237D4 802A93E4 14400002 */ bnez $v0, .L802A93F0
/* 4237D8 802A93E8 24020032 */ addiu $v0, $zero, 0x32
/* 4237DC 802A93EC A6220056 */ sh $v0, 0x56($s1)
.L802A93F0:
/* 4237E0 802A93F0 8E240004 */ lw $a0, 4($s1)
/* 4237E4 802A93F4 86250056 */ lh $a1, 0x56($s1)
/* 4237E8 802A93F8 0C051261 */ jal set_icon_render_pos
/* 4237EC 802A93FC 86260058 */ lh $a2, 0x58($s1)
/* 4237F0 802A9400 8E240008 */ lw $a0, 8($s1)
/* 4237F4 802A9404 86260058 */ lh $a2, 0x58($s1)
/* 4237F8 802A9408 86250056 */ lh $a1, 0x56($s1)
/* 4237FC 802A940C 0C051261 */ jal set_icon_render_pos
/* 423800 802A9410 24C6001C */ addiu $a2, $a2, 0x1c
/* 423804 802A9414 8E24000C */ lw $a0, 0xc($s1)
/* 423808 802A9418 86250056 */ lh $a1, 0x56($s1)
/* 42380C 802A941C 86260058 */ lh $a2, 0x58($s1)
/* 423810 802A9420 24A5001F */ addiu $a1, $a1, 0x1f
/* 423814 802A9424 0C051261 */ jal set_icon_render_pos
/* 423818 802A9428 24C6FFFF */ addiu $a2, $a2, -1
/* 42381C 802A942C 8E240010 */ lw $a0, 0x10($s1)
/* 423820 802A9430 86250056 */ lh $a1, 0x56($s1)
/* 423824 802A9434 86260058 */ lh $a2, 0x58($s1)
/* 423828 802A9438 24A5001F */ addiu $a1, $a1, 0x1f
/* 42382C 802A943C 0C051261 */ jal set_icon_render_pos
/* 423830 802A9440 24C60011 */ addiu $a2, $a2, 0x11
/* 423834 802A9444 080AA5A9 */ j .L802A96A4
/* 423838 802A9448 00000000 */ nop
/* 42383C 802A944C 0C093EB1 */ jal set_popup_duration
/* 423840 802A9450 24040063 */ addiu $a0, $zero, 0x63
/* 423844 802A9454 8622004E */ lh $v0, 0x4e($s1)
/* 423848 802A9458 9623004E */ lhu $v1, 0x4e($s1)
/* 42384C 802A945C 10400003 */ beqz $v0, .L802A946C
/* 423850 802A9460 2462FFFF */ addiu $v0, $v1, -1
/* 423854 802A9464 080AA5A9 */ j .L802A96A4
/* 423858 802A9468 A622004E */ sh $v0, 0x4e($s1)
.L802A946C:
/* 42385C 802A946C 8E240004 */ lw $a0, 4($s1)
/* 423860 802A9470 3C058011 */ lui $a1, %hi(D_80108B80)
/* 423864 802A9474 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80)
/* 423868 802A9478 0C0511FF */ jal set_menu_icon_script
/* 42386C 802A947C 00000000 */ nop
/* 423870 802A9480 96230052 */ lhu $v1, 0x52($s1)
/* 423874 802A9484 2402000B */ addiu $v0, $zero, 0xb
/* 423878 802A9488 A622004C */ sh $v0, 0x4c($s1)
/* 42387C 802A948C A6230054 */ sh $v1, 0x54($s1)
/* 423880 802A9490 0C093EB1 */ jal set_popup_duration
/* 423884 802A9494 24040063 */ addiu $a0, $zero, 0x63
/* 423888 802A9498 8222005C */ lb $v0, 0x5c($s1)
/* 42388C 802A949C 1440000E */ bnez $v0, .L802A94D8
/* 423890 802A94A0 00000000 */ nop
/* 423894 802A94A4 96220046 */ lhu $v0, 0x46($s1)
/* 423898 802A94A8 8623005A */ lh $v1, 0x5a($s1)
/* 42389C 802A94AC 24420001 */ addiu $v0, $v0, 1
/* 4238A0 802A94B0 A6220046 */ sh $v0, 0x46($s1)
/* 4238A4 802A94B4 00021400 */ sll $v0, $v0, 0x10
/* 4238A8 802A94B8 00021403 */ sra $v0, $v0, 0x10
/* 4238AC 802A94BC 0043102A */ slt $v0, $v0, $v1
/* 4238B0 802A94C0 9623005A */ lhu $v1, 0x5a($s1)
/* 4238B4 802A94C4 1440000C */ bnez $v0, .L802A94F8
/* 4238B8 802A94C8 24020001 */ addiu $v0, $zero, 1
/* 4238BC 802A94CC A6230046 */ sh $v1, 0x46($s1)
/* 4238C0 802A94D0 080AA53E */ j .L802A94F8
/* 4238C4 802A94D4 A222005C */ sb $v0, 0x5c($s1)
.L802A94D8:
/* 4238C8 802A94D8 96220046 */ lhu $v0, 0x46($s1)
/* 4238CC 802A94DC 2442FFFF */ addiu $v0, $v0, -1
/* 4238D0 802A94E0 A6220046 */ sh $v0, 0x46($s1)
/* 4238D4 802A94E4 00021400 */ sll $v0, $v0, 0x10
/* 4238D8 802A94E8 1C400003 */ bgtz $v0, .L802A94F8
/* 4238DC 802A94EC 00000000 */ nop
/* 4238E0 802A94F0 A6200046 */ sh $zero, 0x46($s1)
/* 4238E4 802A94F4 A220005C */ sb $zero, 0x5c($s1)
.L802A94F8:
/* 4238E8 802A94F8 8622006A */ lh $v0, 0x6a($s1)
/* 4238EC 802A94FC 14400021 */ bnez $v0, .L802A9584
/* 4238F0 802A9500 00000000 */ nop
/* 4238F4 802A9504 82040431 */ lb $a0, 0x431($s0)
/* 4238F8 802A9508 86230052 */ lh $v1, 0x52($s1)
/* 4238FC 802A950C 86220054 */ lh $v0, 0x54($s1)
/* 423900 802A9510 00623023 */ subu $a2, $v1, $v0
/* 423904 802A9514 00862023 */ subu $a0, $a0, $a2
/* 423908 802A9518 04810002 */ bgez $a0, .L802A9524
/* 42390C 802A951C A6200044 */ sh $zero, 0x44($s1)
/* 423910 802A9520 24840040 */ addiu $a0, $a0, 0x40
.L802A9524:
/* 423914 802A9524 18C0002E */ blez $a2, .L802A95E0
/* 423918 802A9528 0000282D */ daddu $a1, $zero, $zero
.L802A952C:
/* 42391C 802A952C 28820040 */ slti $v0, $a0, 0x40
/* 423920 802A9530 50400001 */ beql $v0, $zero, .L802A9538
/* 423924 802A9534 2484FFC0 */ addiu $a0, $a0, -0x40
.L802A9538:
/* 423928 802A9538 00041080 */ sll $v0, $a0, 2
/* 42392C 802A953C 02021021 */ addu $v0, $s0, $v0
/* 423930 802A9540 8C420330 */ lw $v0, 0x330($v0)
/* 423934 802A9544 30428000 */ andi $v0, $v0, 0x8000
/* 423938 802A9548 10400009 */ beqz $v0, .L802A9570
/* 42393C 802A954C 24A50001 */ addiu $a1, $a1, 1
/* 423940 802A9550 86230050 */ lh $v1, 0x50($s1)
/* 423944 802A9554 8E020434 */ lw $v0, 0x434($s0)
/* 423948 802A9558 00031880 */ sll $v1, $v1, 2
/* 42394C 802A955C 00621821 */ addu $v1, $v1, $v0
/* 423950 802A9560 96220044 */ lhu $v0, 0x44($s1)
/* 423954 802A9564 94630002 */ lhu $v1, 2($v1)
/* 423958 802A9568 00431021 */ addu $v0, $v0, $v1
/* 42395C 802A956C A6220044 */ sh $v0, 0x44($s1)
.L802A9570:
/* 423960 802A9570 00A6102A */ slt $v0, $a1, $a2
/* 423964 802A9574 1440FFED */ bnez $v0, .L802A952C
/* 423968 802A9578 24840001 */ addiu $a0, $a0, 1
/* 42396C 802A957C 080AA579 */ j .L802A95E4
/* 423970 802A9580 3C0451EB */ lui $a0, 0x51eb
.L802A9584:
/* 423974 802A9584 86220050 */ lh $v0, 0x50($s1)
/* 423978 802A9588 8E030434 */ lw $v1, 0x434($s0)
/* 42397C 802A958C 00021080 */ sll $v0, $v0, 2
/* 423980 802A9590 00431021 */ addu $v0, $v0, $v1
/* 423984 802A9594 8C430000 */ lw $v1, ($v0)
/* 423988 802A9598 04620001 */ bltzl $v1, .L802A95A0
/* 42398C 802A959C 24630003 */ addiu $v1, $v1, 3
.L802A95A0:
/* 423990 802A95A0 96220044 */ lhu $v0, 0x44($s1)
/* 423994 802A95A4 00031883 */ sra $v1, $v1, 2
/* 423998 802A95A8 00431021 */ addu $v0, $v0, $v1
/* 42399C 802A95AC A6220044 */ sh $v0, 0x44($s1)
/* 4239A0 802A95B0 86220050 */ lh $v0, 0x50($s1)
/* 4239A4 802A95B4 8E030434 */ lw $v1, 0x434($s0)
/* 4239A8 802A95B8 00021080 */ sll $v0, $v0, 2
/* 4239AC 802A95BC 00431021 */ addu $v0, $v0, $v1
/* 4239B0 802A95C0 8C420000 */ lw $v0, ($v0)
/* 4239B4 802A95C4 04420001 */ bltzl $v0, .L802A95CC
/* 4239B8 802A95C8 24420003 */ addiu $v0, $v0, 3
.L802A95CC:
/* 4239BC 802A95CC 0C00A67F */ jal rand_int
/* 4239C0 802A95D0 00022083 */ sra $a0, $v0, 2
/* 4239C4 802A95D4 96230044 */ lhu $v1, 0x44($s1)
/* 4239C8 802A95D8 00621821 */ addu $v1, $v1, $v0
/* 4239CC 802A95DC A6230044 */ sh $v1, 0x44($s1)
.L802A95E0:
/* 4239D0 802A95E0 3C0451EB */ lui $a0, 0x51eb
.L802A95E4:
/* 4239D4 802A95E4 96230044 */ lhu $v1, 0x44($s1)
/* 4239D8 802A95E8 3484851F */ ori $a0, $a0, 0x851f
/* 4239DC 802A95EC 00031C00 */ sll $v1, $v1, 0x10
/* 4239E0 802A95F0 00031403 */ sra $v0, $v1, 0x10
/* 4239E4 802A95F4 00440018 */ mult $v0, $a0
/* 4239E8 802A95F8 00031FC3 */ sra $v1, $v1, 0x1f
/* 4239EC 802A95FC 00003810 */ mfhi $a3
/* 4239F0 802A9600 00071143 */ sra $v0, $a3, 5
/* 4239F4 802A9604 00431823 */ subu $v1, $v0, $v1
/* 4239F8 802A9608 A2030081 */ sb $v1, 0x81($s0)
/* 4239FC 802A960C 86220054 */ lh $v0, 0x54($s1)
/* 423A00 802A9610 96240054 */ lhu $a0, 0x54($s1)
/* 423A04 802A9614 10400003 */ beqz $v0, .L802A9624
/* 423A08 802A9618 2482FFFF */ addiu $v0, $a0, -1
/* 423A0C 802A961C 080AA5A9 */ j .L802A96A4
/* 423A10 802A9620 A6220054 */ sh $v0, 0x54($s1)
.L802A9624:
/* 423A14 802A9624 00031E00 */ sll $v1, $v1, 0x18
/* 423A18 802A9628 82220080 */ lb $v0, 0x80($s1)
/* 423A1C 802A962C 86240046 */ lh $a0, 0x46($s1)
/* 423A20 802A9630 00021040 */ sll $v0, $v0, 1
/* 423A24 802A9634 02221021 */ addu $v0, $s1, $v0
/* 423A28 802A9638 84420074 */ lh $v0, 0x74($v0)
/* 423A2C 802A963C 00031E03 */ sra $v1, $v1, 0x18
/* 423A30 802A9640 00441023 */ subu $v0, $v0, $a0
/* 423A34 802A9644 0062182A */ slt $v1, $v1, $v0
/* 423A38 802A9648 14600004 */ bnez $v1, .L802A965C
/* 423A3C 802A964C 2402FFFE */ addiu $v0, $zero, -2
/* 423A40 802A9650 24020001 */ addiu $v0, $zero, 1
/* 423A44 802A9654 080AA599 */ j .L802A9664
/* 423A48 802A9658 A2020086 */ sb $v0, 0x86($s0)
.L802A965C:
/* 423A4C 802A965C A2020086 */ sb $v0, 0x86($s0)
/* 423A50 802A9660 2402FFFF */ addiu $v0, $zero, -1
.L802A9664:
/* 423A54 802A9664 A2020081 */ sb $v0, 0x81($s0)
/* 423A58 802A9668 0C093EB1 */ jal set_popup_duration
/* 423A5C 802A966C 0000202D */ daddu $a0, $zero, $zero
/* 423A60 802A9670 24020014 */ addiu $v0, $zero, 0x14
/* 423A64 802A9674 A6220054 */ sh $v0, 0x54($s1)
/* 423A68 802A9678 2402000C */ addiu $v0, $zero, 0xc
/* 423A6C 802A967C 080AA5A9 */ j .L802A96A4
/* 423A70 802A9680 A622004C */ sh $v0, 0x4c($s1)
/* 423A74 802A9684 86220054 */ lh $v0, 0x54($s1)
/* 423A78 802A9688 96230054 */ lhu $v1, 0x54($s1)
/* 423A7C 802A968C 10400003 */ beqz $v0, .L802A969C
/* 423A80 802A9690 2462FFFF */ addiu $v0, $v1, -1
/* 423A84 802A9694 080AA5A9 */ j .L802A96A4
/* 423A88 802A9698 A6220054 */ sh $v0, 0x54($s1)
.L802A969C:
/* 423A8C 802A969C 0C09A327 */ jal func_80268C9C
/* 423A90 802A96A0 00000000 */ nop
.L802A96A4:
/* 423A94 802A96A4 8FBF0018 */ lw $ra, 0x18($sp)
/* 423A98 802A96A8 8FB10014 */ lw $s1, 0x14($sp)
/* 423A9C 802A96AC 8FB00010 */ lw $s0, 0x10($sp)
/* 423AA0 802A96B0 03E00008 */ jr $ra
/* 423AA4 802A96B4 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,88 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A96B8_423AA8
/* 423AA8 802A96B8 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 423AAC 802A96BC AFB00018 */ sw $s0, 0x18($sp)
/* 423AB0 802A96C0 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 423AB4 802A96C4 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 423AB8 802A96C8 AFBF0020 */ sw $ra, 0x20($sp)
/* 423ABC 802A96CC AFB1001C */ sw $s1, 0x1c($sp)
/* 423AC0 802A96D0 82020080 */ lb $v0, 0x80($s0)
/* 423AC4 802A96D4 86030046 */ lh $v1, 0x46($s0)
/* 423AC8 802A96D8 00021040 */ sll $v0, $v0, 1
/* 423ACC 802A96DC 00501021 */ addu $v0, $v0, $s0
/* 423AD0 802A96E0 84440074 */ lh $a0, 0x74($v0)
/* 423AD4 802A96E4 00831823 */ subu $v1, $a0, $v1
/* 423AD8 802A96E8 00031100 */ sll $v0, $v1, 4
/* 423ADC 802A96EC 00431023 */ subu $v0, $v0, $v1
/* 423AE0 802A96F0 00021080 */ sll $v0, $v0, 2
/* 423AE4 802A96F4 14800002 */ bnez $a0, .L802A9700
/* 423AE8 802A96F8 0044001A */ div $zero, $v0, $a0
/* 423AEC 802A96FC 0007000D */ break 7
.L802A9700:
/* 423AF0 802A9700 2401FFFF */ addiu $at, $zero, -1
/* 423AF4 802A9704 14810004 */ bne $a0, $at, .L802A9718
/* 423AF8 802A9708 3C018000 */ lui $at, 0x8000
/* 423AFC 802A970C 14410002 */ bne $v0, $at, .L802A9718
/* 423B00 802A9710 00000000 */ nop
/* 423B04 802A9714 0006000D */ break 6
.L802A9718:
/* 423B08 802A9718 00001012 */ mflo $v0
/* 423B0C 802A971C 86060058 */ lh $a2, 0x58($s0)
/* 423B10 802A9720 24C60011 */ addiu $a2, $a2, 0x11
/* 423B14 802A9724 2403003C */ addiu $v1, $zero, 0x3c
/* 423B18 802A9728 8E040010 */ lw $a0, 0x10($s0)
/* 423B1C 802A972C 00621823 */ subu $v1, $v1, $v0
/* 423B20 802A9730 86020056 */ lh $v0, 0x56($s0)
/* 423B24 802A9734 2465FFE1 */ addiu $a1, $v1, -0x1f
/* 423B28 802A9738 AFA30010 */ sw $v1, 0x10($sp)
/* 423B2C 802A973C 0C051261 */ jal set_icon_render_pos
/* 423B30 802A9740 00452823 */ subu $a1, $v0, $a1
/* 423B34 802A9744 8FA50010 */ lw $a1, 0x10($sp)
/* 423B38 802A9748 8E04000C */ lw $a0, 0xc($s0)
/* 423B3C 802A974C 86020056 */ lh $v0, 0x56($s0)
/* 423B40 802A9750 86060058 */ lh $a2, 0x58($s0)
/* 423B44 802A9754 24A5FFE1 */ addiu $a1, $a1, -0x1f
/* 423B48 802A9758 00452823 */ subu $a1, $v0, $a1
/* 423B4C 802A975C 0C051261 */ jal set_icon_render_pos
/* 423B50 802A9760 24C6FFFF */ addiu $a2, $a2, -1
/* 423B54 802A9764 8602006A */ lh $v0, 0x6a($s0)
/* 423B58 802A9768 14400004 */ bnez $v0, .L802A977C
/* 423B5C 802A976C 0200882D */ daddu $s1, $s0, $zero
/* 423B60 802A9770 8E040004 */ lw $a0, 4($s0)
/* 423B64 802A9774 0C0511EA */ jal draw_icon_0
/* 423B68 802A9778 00000000 */ nop
.L802A977C:
/* 423B6C 802A977C 8E300008 */ lw $s0, 8($s1)
/* 423B70 802A9780 0C0511EA */ jal draw_icon_0
/* 423B74 802A9784 0200202D */ daddu $a0, $s0, $zero
/* 423B78 802A9788 0200202D */ daddu $a0, $s0, $zero
/* 423B7C 802A978C 27A50010 */ addiu $a1, $sp, 0x10
/* 423B80 802A9790 0C05126B */ jal get_icon_render_pos
/* 423B84 802A9794 27A60014 */ addiu $a2, $sp, 0x14
/* 423B88 802A9798 3C0451EB */ lui $a0, 0x51eb
/* 423B8C 802A979C 96230044 */ lhu $v1, 0x44($s1)
/* 423B90 802A97A0 3484851F */ ori $a0, $a0, 0x851f
/* 423B94 802A97A4 00031C00 */ sll $v1, $v1, 0x10
/* 423B98 802A97A8 00031403 */ sra $v0, $v1, 0x10
/* 423B9C 802A97AC 00440018 */ mult $v0, $a0
/* 423BA0 802A97B0 8FA50014 */ lw $a1, 0x14($sp)
/* 423BA4 802A97B4 00031FC3 */ sra $v1, $v1, 0x1f
/* 423BA8 802A97B8 8FA40010 */ lw $a0, 0x10($sp)
/* 423BAC 802A97BC 00003810 */ mfhi $a3
/* 423BB0 802A97C0 00073143 */ sra $a2, $a3, 5
/* 423BB4 802A97C4 00C33023 */ subu $a2, $a2, $v1
/* 423BB8 802A97C8 00063400 */ sll $a2, $a2, 0x10
/* 423BBC 802A97CC 0C09A1DC */ jal func_80268770
/* 423BC0 802A97D0 00063403 */ sra $a2, $a2, 0x10
/* 423BC4 802A97D4 8E24000C */ lw $a0, 0xc($s1)
/* 423BC8 802A97D8 0C0511EA */ jal draw_icon_0
/* 423BCC 802A97DC 00000000 */ nop
/* 423BD0 802A97E0 0C0511EA */ jal draw_icon_0
/* 423BD4 802A97E4 8E240010 */ lw $a0, 0x10($s1)
/* 423BD8 802A97E8 8FBF0020 */ lw $ra, 0x20($sp)
/* 423BDC 802A97EC 8FB1001C */ lw $s1, 0x1c($sp)
/* 423BE0 802A97F0 8FB00018 */ lw $s0, 0x18($sp)
/* 423BE4 802A97F4 03E00008 */ jr $ra
/* 423BE8 802A97F8 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,21 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A97FC_423BEC
/* 423BEC 802A97FC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 423BF0 802A9800 AFB00010 */ sw $s0, 0x10($sp)
/* 423BF4 802A9804 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 423BF8 802A9808 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 423BFC 802A980C AFBF0014 */ sw $ra, 0x14($sp)
/* 423C00 802A9810 0C05123D */ jal free_icon
/* 423C04 802A9814 8E040004 */ lw $a0, 4($s0)
/* 423C08 802A9818 0C05123D */ jal free_icon
/* 423C0C 802A981C 8E040008 */ lw $a0, 8($s0)
/* 423C10 802A9820 0C05123D */ jal free_icon
/* 423C14 802A9824 8E04000C */ lw $a0, 0xc($s0)
/* 423C18 802A9828 0C05123D */ jal free_icon
/* 423C1C 802A982C 8E040010 */ lw $a0, 0x10($s0)
/* 423C20 802A9830 8FBF0014 */ lw $ra, 0x14($sp)
/* 423C24 802A9834 8FB00010 */ lw $s0, 0x10($sp)
/* 423C28 802A9838 03E00008 */ jr $ra
/* 423C2C 802A983C 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,128 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_423C70
/* 423C70 802A9000 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 423C74 802A9004 AFB3001C */ sw $s3, 0x1c($sp)
/* 423C78 802A9008 0080982D */ daddu $s3, $a0, $zero
/* 423C7C 802A900C AFB00010 */ sw $s0, 0x10($sp)
/* 423C80 802A9010 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 423C84 802A9014 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 423C88 802A9018 AFBF0024 */ sw $ra, 0x24($sp)
/* 423C8C 802A901C AFB40020 */ sw $s4, 0x20($sp)
/* 423C90 802A9020 AFB20018 */ sw $s2, 0x18($sp)
/* 423C94 802A9024 AFB10014 */ sw $s1, 0x14($sp)
/* 423C98 802A9028 8E72000C */ lw $s2, 0xc($s3)
/* 423C9C 802A902C 24020005 */ addiu $v0, $zero, 5
/* 423CA0 802A9030 A2020082 */ sb $v0, 0x82($s0)
/* 423CA4 802A9034 3C028029 */ lui $v0, %hi(D_80294240)
/* 423CA8 802A9038 24424240 */ addiu $v0, $v0, %lo(D_80294240)
/* 423CAC 802A903C 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 423CB0 802A9040 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 423CB4 802A9044 AE020434 */ sw $v0, 0x434($s0)
/* 423CB8 802A9048 82020083 */ lb $v0, 0x83($s0)
/* 423CBC 802A904C 14400003 */ bnez $v0, .L802A905C
/* 423CC0 802A9050 0200A02D */ daddu $s4, $s0, $zero
/* 423CC4 802A9054 080AA46F */ j .L802A91BC
/* 423CC8 802A9058 A2000081 */ sb $zero, 0x81($s0)
.L802A905C:
/* 423CCC 802A905C 0C09A216 */ jal func_80268858
/* 423CD0 802A9060 00000000 */ nop
/* 423CD4 802A9064 8E450000 */ lw $a1, ($s2)
/* 423CD8 802A9068 0C0B1EAF */ jal get_variable
/* 423CDC 802A906C 0260202D */ daddu $a0, $s3, $zero
/* 423CE0 802A9070 24030005 */ addiu $v1, $zero, 5
/* 423CE4 802A9074 A6220064 */ sh $v0, 0x64($s1)
/* 423CE8 802A9078 00021400 */ sll $v0, $v0, 0x10
/* 423CEC 802A907C A623004A */ sh $v1, 0x4a($s1)
/* 423CF0 802A9080 A620004C */ sh $zero, 0x4c($s1)
/* 423CF4 802A9084 A2200060 */ sb $zero, 0x60($s1)
/* 423CF8 802A9088 A6200044 */ sh $zero, 0x44($s1)
/* 423CFC 802A908C 14400003 */ bnez $v0, .L802A909C
/* 423D00 802A9090 A6200048 */ sh $zero, 0x48($s1)
/* 423D04 802A9094 080AA429 */ j .L802A90A4
/* 423D08 802A9098 A2000084 */ sb $zero, 0x84($s0)
.L802A909C:
/* 423D0C 802A909C 24020003 */ addiu $v0, $zero, 3
/* 423D10 802A90A0 A2820084 */ sb $v0, 0x84($s4)
.L802A90A4:
/* 423D14 802A90A4 3C048011 */ lui $a0, %hi(D_80108B28)
/* 423D18 802A90A8 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 423D1C 802A90AC 2402FFD0 */ addiu $v0, $zero, -0x30
/* 423D20 802A90B0 A6220056 */ sh $v0, 0x56($s1)
/* 423D24 802A90B4 24020050 */ addiu $v0, $zero, 0x50
/* 423D28 802A90B8 0C050529 */ jal create_icon
/* 423D2C 802A90BC A6220058 */ sh $v0, 0x58($s1)
/* 423D30 802A90C0 0040802D */ daddu $s0, $v0, $zero
/* 423D34 802A90C4 0200202D */ daddu $a0, $s0, $zero
/* 423D38 802A90C8 24050082 */ addiu $a1, $zero, 0x82
/* 423D3C 802A90CC 0C051280 */ jal set_icon_flags
/* 423D40 802A90D0 AE300004 */ sw $s0, 4($s1)
/* 423D44 802A90D4 86250056 */ lh $a1, 0x56($s1)
/* 423D48 802A90D8 86260058 */ lh $a2, 0x58($s1)
/* 423D4C 802A90DC 0C051261 */ jal set_icon_render_pos
/* 423D50 802A90E0 0200202D */ daddu $a0, $s0, $zero
/* 423D54 802A90E4 0200202D */ daddu $a0, $s0, $zero
/* 423D58 802A90E8 0C051277 */ jal func_801449DC
/* 423D5C 802A90EC 0000282D */ daddu $a1, $zero, $zero
/* 423D60 802A90F0 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 423D64 802A90F4 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 423D68 802A90F8 0C050529 */ jal create_icon
/* 423D6C 802A90FC 00000000 */ nop
/* 423D70 802A9100 0040802D */ daddu $s0, $v0, $zero
/* 423D74 802A9104 86250056 */ lh $a1, 0x56($s1)
/* 423D78 802A9108 86260058 */ lh $a2, 0x58($s1)
/* 423D7C 802A910C 0200202D */ daddu $a0, $s0, $zero
/* 423D80 802A9110 AE300008 */ sw $s0, 8($s1)
/* 423D84 802A9114 0C051261 */ jal set_icon_render_pos
/* 423D88 802A9118 24C6001C */ addiu $a2, $a2, 0x1c
/* 423D8C 802A911C 0200202D */ daddu $a0, $s0, $zero
/* 423D90 802A9120 0C051277 */ jal func_801449DC
/* 423D94 802A9124 0000282D */ daddu $a1, $zero, $zero
/* 423D98 802A9128 0200202D */ daddu $a0, $s0, $zero
/* 423D9C 802A912C 0C051280 */ jal set_icon_flags
/* 423DA0 802A9130 24050082 */ addiu $a1, $zero, 0x82
/* 423DA4 802A9134 3C04802B */ lui $a0, %hi(D_802AA7F0)
/* 423DA8 802A9138 0C050529 */ jal create_icon
/* 423DAC 802A913C 2484A7F0 */ addiu $a0, $a0, %lo(D_802AA7F0)
/* 423DB0 802A9140 0040802D */ daddu $s0, $v0, $zero
/* 423DB4 802A9144 86250056 */ lh $a1, 0x56($s1)
/* 423DB8 802A9148 86260058 */ lh $a2, 0x58($s1)
/* 423DBC 802A914C 0200202D */ daddu $a0, $s0, $zero
/* 423DC0 802A9150 AE30000C */ sw $s0, 0xc($s1)
/* 423DC4 802A9154 24A50036 */ addiu $a1, $a1, 0x36
/* 423DC8 802A9158 0C051261 */ jal set_icon_render_pos
/* 423DCC 802A915C 24C6001C */ addiu $a2, $a2, 0x1c
/* 423DD0 802A9160 0200202D */ daddu $a0, $s0, $zero
/* 423DD4 802A9164 0C051277 */ jal func_801449DC
/* 423DD8 802A9168 0000282D */ daddu $a1, $zero, $zero
/* 423DDC 802A916C 0200202D */ daddu $a0, $s0, $zero
/* 423DE0 802A9170 0C051280 */ jal set_icon_flags
/* 423DE4 802A9174 24050082 */ addiu $a1, $zero, 0x82
/* 423DE8 802A9178 3C04802B */ lui $a0, %hi(D_802AA818)
/* 423DEC 802A917C 0C050529 */ jal create_icon
/* 423DF0 802A9180 2484A818 */ addiu $a0, $a0, %lo(D_802AA818)
/* 423DF4 802A9184 0040802D */ daddu $s0, $v0, $zero
/* 423DF8 802A9188 86250056 */ lh $a1, 0x56($s1)
/* 423DFC 802A918C 86260058 */ lh $a2, 0x58($s1)
/* 423E00 802A9190 0200202D */ daddu $a0, $s0, $zero
/* 423E04 802A9194 AE300010 */ sw $s0, 0x10($s1)
/* 423E08 802A9198 24A5003C */ addiu $a1, $a1, 0x3c
/* 423E0C 802A919C 0C051261 */ jal set_icon_render_pos
/* 423E10 802A91A0 24C6001C */ addiu $a2, $a2, 0x1c
/* 423E14 802A91A4 0200202D */ daddu $a0, $s0, $zero
/* 423E18 802A91A8 0C051277 */ jal func_801449DC
/* 423E1C 802A91AC 0000282D */ daddu $a1, $zero, $zero
/* 423E20 802A91B0 0200202D */ daddu $a0, $s0, $zero
/* 423E24 802A91B4 0C051280 */ jal set_icon_flags
/* 423E28 802A91B8 24050082 */ addiu $a1, $zero, 0x82
.L802A91BC:
/* 423E2C 802A91BC 24020002 */ addiu $v0, $zero, 2
/* 423E30 802A91C0 8FBF0024 */ lw $ra, 0x24($sp)
/* 423E34 802A91C4 8FB40020 */ lw $s4, 0x20($sp)
/* 423E38 802A91C8 8FB3001C */ lw $s3, 0x1c($sp)
/* 423E3C 802A91CC 8FB20018 */ lw $s2, 0x18($sp)
/* 423E40 802A91D0 8FB10014 */ lw $s1, 0x14($sp)
/* 423E44 802A91D4 8FB00010 */ lw $s0, 0x10($sp)
/* 423E48 802A91D8 03E00008 */ jr $ra
/* 423E4C 802A91DC 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,76 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A91E0_423E50
/* 423E50 802A91E0 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 423E54 802A91E4 AFB20018 */ sw $s2, 0x18($sp)
/* 423E58 802A91E8 0080902D */ daddu $s2, $a0, $zero
/* 423E5C 802A91EC AFB10014 */ sw $s1, 0x14($sp)
/* 423E60 802A91F0 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 423E64 802A91F4 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 423E68 802A91F8 AFB3001C */ sw $s3, 0x1c($sp)
/* 423E6C 802A91FC 3C13800E */ lui $s3, %hi(gBattleStatus)
/* 423E70 802A9200 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus)
/* 423E74 802A9204 AFB40020 */ sw $s4, 0x20($sp)
/* 423E78 802A9208 AFBF0024 */ sw $ra, 0x24($sp)
/* 423E7C 802A920C AFB00010 */ sw $s0, 0x10($sp)
/* 423E80 802A9210 82620083 */ lb $v0, 0x83($s3)
/* 423E84 802A9214 8E50000C */ lw $s0, 0xc($s2)
/* 423E88 802A9218 14400004 */ bnez $v0, .L802A922C
/* 423E8C 802A921C 0260A02D */ daddu $s4, $s3, $zero
/* 423E90 802A9220 A2600081 */ sb $zero, 0x81($s3)
/* 423E94 802A9224 080AA4B4 */ j .L802A92D0
/* 423E98 802A9228 24020002 */ addiu $v0, $zero, 2
.L802A922C:
/* 423E9C 802A922C 0C09A216 */ jal func_80268858
/* 423EA0 802A9230 00000000 */ nop
/* 423EA4 802A9234 8E050000 */ lw $a1, ($s0)
/* 423EA8 802A9238 26100004 */ addiu $s0, $s0, 4
/* 423EAC 802A923C 0C0B1EAF */ jal get_variable
/* 423EB0 802A9240 0240202D */ daddu $a0, $s2, $zero
/* 423EB4 802A9244 A622004E */ sh $v0, 0x4e($s1)
/* 423EB8 802A9248 8E050000 */ lw $a1, ($s0)
/* 423EBC 802A924C 26100004 */ addiu $s0, $s0, 4
/* 423EC0 802A9250 0C0B1EAF */ jal get_variable
/* 423EC4 802A9254 0240202D */ daddu $a0, $s2, $zero
/* 423EC8 802A9258 A6220052 */ sh $v0, 0x52($s1)
/* 423ECC 802A925C 8E050000 */ lw $a1, ($s0)
/* 423ED0 802A9260 0C0B1EAF */ jal get_variable
/* 423ED4 802A9264 0240202D */ daddu $a0, $s2, $zero
/* 423ED8 802A9268 00022400 */ sll $a0, $v0, 0x10
/* 423EDC 802A926C 00042403 */ sra $a0, $a0, 0x10
/* 423EE0 802A9270 0C09A089 */ jal func_80268224
/* 423EE4 802A9274 A6220050 */ sh $v0, 0x50($s1)
/* 423EE8 802A9278 86230064 */ lh $v1, 0x64($s1)
/* 423EEC 802A927C A6220050 */ sh $v0, 0x50($s1)
/* 423EF0 802A9280 A2200060 */ sb $zero, 0x60($s1)
/* 423EF4 802A9284 A6200044 */ sh $zero, 0x44($s1)
/* 423EF8 802A9288 A6200048 */ sh $zero, 0x48($s1)
/* 423EFC 802A928C A2600081 */ sb $zero, 0x81($s3)
/* 423F00 802A9290 14600003 */ bnez $v1, .L802A92A0
/* 423F04 802A9294 A2600086 */ sb $zero, 0x86($s3)
/* 423F08 802A9298 080AA4AA */ j .L802A92A8
/* 423F0C 802A929C A2600084 */ sb $zero, 0x84($s3)
.L802A92A0:
/* 423F10 802A92A0 24020003 */ addiu $v0, $zero, 3
/* 423F14 802A92A4 A2820084 */ sb $v0, 0x84($s4)
.L802A92A8:
/* 423F18 802A92A8 3C06FFFF */ lui $a2, 0xffff
/* 423F1C 802A92AC 34C67FFF */ ori $a2, $a2, 0x7fff
/* 423F20 802A92B0 24020002 */ addiu $v0, $zero, 2
/* 423F24 802A92B4 3C05800E */ lui $a1, %hi(gBattleStatus)
/* 423F28 802A92B8 24A5C070 */ addiu $a1, $a1, %lo(gBattleStatus)
/* 423F2C 802A92BC 8CA30000 */ lw $v1, ($a1)
/* 423F30 802A92C0 2404000A */ addiu $a0, $zero, 0xa
/* 423F34 802A92C4 A624004C */ sh $a0, 0x4c($s1)
/* 423F38 802A92C8 00661824 */ and $v1, $v1, $a2
/* 423F3C 802A92CC ACA30000 */ sw $v1, ($a1)
.L802A92D0:
/* 423F40 802A92D0 8FBF0024 */ lw $ra, 0x24($sp)
/* 423F44 802A92D4 8FB40020 */ lw $s4, 0x20($sp)
/* 423F48 802A92D8 8FB3001C */ lw $s3, 0x1c($sp)
/* 423F4C 802A92DC 8FB20018 */ lw $s2, 0x18($sp)
/* 423F50 802A92E0 8FB10014 */ lw $s1, 0x14($sp)
/* 423F54 802A92E4 8FB00010 */ lw $s0, 0x10($sp)
/* 423F58 802A92E8 03E00008 */ jr $ra
/* 423F5C 802A92EC 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,304 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A92F0_423F60
/* 423F60 802A92F0 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 423F64 802A92F4 AFB10014 */ sw $s1, 0x14($sp)
/* 423F68 802A92F8 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 423F6C 802A92FC 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 423F70 802A9300 AFBF001C */ sw $ra, 0x1c($sp)
/* 423F74 802A9304 AFB20018 */ sw $s2, 0x18($sp)
/* 423F78 802A9308 AFB00010 */ sw $s0, 0x10($sp)
/* 423F7C 802A930C 8623004C */ lh $v1, 0x4c($s1)
/* 423F80 802A9310 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 423F84 802A9314 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 423F88 802A9318 2C62000D */ sltiu $v0, $v1, 0xd
/* 423F8C 802A931C 10400103 */ beqz $v0, .L802A972C
/* 423F90 802A9320 00031080 */ sll $v0, $v1, 2
/* 423F94 802A9324 3C01802B */ lui $at, %hi(D_802AA8E0)
/* 423F98 802A9328 00220821 */ addu $at, $at, $v0
/* 423F9C 802A932C 8C22A8E0 */ lw $v0, %lo(D_802AA8E0)($at)
/* 423FA0 802A9330 00400008 */ jr $v0
/* 423FA4 802A9334 00000000 */ nop
/* 423FA8 802A9338 0C093EB1 */ jal set_popup_duration
/* 423FAC 802A933C 24040063 */ addiu $a0, $zero, 0x63
/* 423FB0 802A9340 82220061 */ lb $v0, 0x61($s1)
/* 423FB4 802A9344 8E300004 */ lw $s0, 4($s1)
/* 423FB8 802A9348 10400004 */ beqz $v0, .L802A935C
/* 423FBC 802A934C 0200202D */ daddu $a0, $s0, $zero
/* 423FC0 802A9350 0C05128B */ jal clear_icon_flags
/* 423FC4 802A9354 24050002 */ addiu $a1, $zero, 2
/* 423FC8 802A9358 0200202D */ daddu $a0, $s0, $zero
.L802A935C:
/* 423FCC 802A935C 0C0513AC */ jal icon_set_opacity
/* 423FD0 802A9360 240500FF */ addiu $a1, $zero, 0xff
/* 423FD4 802A9364 8E300008 */ lw $s0, 8($s1)
/* 423FD8 802A9368 240500FF */ addiu $a1, $zero, 0xff
/* 423FDC 802A936C 0C0513AC */ jal icon_set_opacity
/* 423FE0 802A9370 0200202D */ daddu $a0, $s0, $zero
/* 423FE4 802A9374 82220061 */ lb $v0, 0x61($s1)
/* 423FE8 802A9378 10400003 */ beqz $v0, .L802A9388
/* 423FEC 802A937C 0200202D */ daddu $a0, $s0, $zero
/* 423FF0 802A9380 0C05128B */ jal clear_icon_flags
/* 423FF4 802A9384 24050002 */ addiu $a1, $zero, 2
.L802A9388:
/* 423FF8 802A9388 8E30000C */ lw $s0, 0xc($s1)
/* 423FFC 802A938C 240500FF */ addiu $a1, $zero, 0xff
/* 424000 802A9390 0C0513AC */ jal icon_set_opacity
/* 424004 802A9394 0200202D */ daddu $a0, $s0, $zero
/* 424008 802A9398 82220061 */ lb $v0, 0x61($s1)
/* 42400C 802A939C 10400003 */ beqz $v0, .L802A93AC
/* 424010 802A93A0 0200202D */ daddu $a0, $s0, $zero
/* 424014 802A93A4 0C05128B */ jal clear_icon_flags
/* 424018 802A93A8 24050002 */ addiu $a1, $zero, 2
.L802A93AC:
/* 42401C 802A93AC 8E300010 */ lw $s0, 0x10($s1)
/* 424020 802A93B0 240500FF */ addiu $a1, $zero, 0xff
/* 424024 802A93B4 0C0513AC */ jal icon_set_opacity
/* 424028 802A93B8 0200202D */ daddu $a0, $s0, $zero
/* 42402C 802A93BC 82220061 */ lb $v0, 0x61($s1)
/* 424030 802A93C0 10400003 */ beqz $v0, .L802A93D0
/* 424034 802A93C4 0200202D */ daddu $a0, $s0, $zero
/* 424038 802A93C8 0C05128B */ jal clear_icon_flags
/* 42403C 802A93CC 24050002 */ addiu $a1, $zero, 2
.L802A93D0:
/* 424040 802A93D0 24020001 */ addiu $v0, $zero, 1
/* 424044 802A93D4 080AA5CB */ j .L802A972C
/* 424048 802A93D8 A622004C */ sh $v0, 0x4c($s1)
/* 42404C 802A93DC 0C093EB1 */ jal set_popup_duration
/* 424050 802A93E0 24040063 */ addiu $a0, $zero, 0x63
/* 424054 802A93E4 96220056 */ lhu $v0, 0x56($s1)
/* 424058 802A93E8 24420014 */ addiu $v0, $v0, 0x14
/* 42405C 802A93EC A6220056 */ sh $v0, 0x56($s1)
/* 424060 802A93F0 00021400 */ sll $v0, $v0, 0x10
/* 424064 802A93F4 00021403 */ sra $v0, $v0, 0x10
/* 424068 802A93F8 28420033 */ slti $v0, $v0, 0x33
/* 42406C 802A93FC 14400002 */ bnez $v0, .L802A9408
/* 424070 802A9400 24020032 */ addiu $v0, $zero, 0x32
/* 424074 802A9404 A6220056 */ sh $v0, 0x56($s1)
.L802A9408:
/* 424078 802A9408 8E240004 */ lw $a0, 4($s1)
/* 42407C 802A940C 86250056 */ lh $a1, 0x56($s1)
/* 424080 802A9410 0C051261 */ jal set_icon_render_pos
/* 424084 802A9414 86260058 */ lh $a2, 0x58($s1)
/* 424088 802A9418 8E240008 */ lw $a0, 8($s1)
/* 42408C 802A941C 86260058 */ lh $a2, 0x58($s1)
/* 424090 802A9420 86250056 */ lh $a1, 0x56($s1)
/* 424094 802A9424 0C051261 */ jal set_icon_render_pos
/* 424098 802A9428 24C6001C */ addiu $a2, $a2, 0x1c
/* 42409C 802A942C 8E24000C */ lw $a0, 0xc($s1)
/* 4240A0 802A9430 86250056 */ lh $a1, 0x56($s1)
/* 4240A4 802A9434 86260058 */ lh $a2, 0x58($s1)
/* 4240A8 802A9438 24A50036 */ addiu $a1, $a1, 0x36
/* 4240AC 802A943C 0C051261 */ jal set_icon_render_pos
/* 4240B0 802A9440 24C60017 */ addiu $a2, $a2, 0x17
/* 4240B4 802A9444 8E240010 */ lw $a0, 0x10($s1)
/* 4240B8 802A9448 86250056 */ lh $a1, 0x56($s1)
/* 4240BC 802A944C 86260058 */ lh $a2, 0x58($s1)
/* 4240C0 802A9450 24A5003C */ addiu $a1, $a1, 0x3c
/* 4240C4 802A9454 0C051261 */ jal set_icon_render_pos
/* 4240C8 802A9458 24C60017 */ addiu $a2, $a2, 0x17
/* 4240CC 802A945C 080AA5CB */ j .L802A972C
/* 4240D0 802A9460 00000000 */ nop
/* 4240D4 802A9464 0C093EB1 */ jal set_popup_duration
/* 4240D8 802A9468 24040063 */ addiu $a0, $zero, 0x63
/* 4240DC 802A946C 8622004E */ lh $v0, 0x4e($s1)
/* 4240E0 802A9470 9623004E */ lhu $v1, 0x4e($s1)
/* 4240E4 802A9474 10400003 */ beqz $v0, .L802A9484
/* 4240E8 802A9478 2462FFFF */ addiu $v0, $v1, -1
/* 4240EC 802A947C 080AA5CB */ j .L802A972C
/* 4240F0 802A9480 A622004E */ sh $v0, 0x4e($s1)
.L802A9484:
/* 4240F4 802A9484 8E240004 */ lw $a0, 4($s1)
/* 4240F8 802A9488 3C058011 */ lui $a1, %hi(D_80108B80)
/* 4240FC 802A948C 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80)
/* 424100 802A9490 0C0511FF */ jal set_menu_icon_script
/* 424104 802A9494 00000000 */ nop
/* 424108 802A9498 96230052 */ lhu $v1, 0x52($s1)
/* 42410C 802A949C 2402000B */ addiu $v0, $zero, 0xb
/* 424110 802A94A0 A6200044 */ sh $zero, 0x44($s1)
/* 424114 802A94A4 A622004C */ sh $v0, 0x4c($s1)
/* 424118 802A94A8 A6230054 */ sh $v1, 0x54($s1)
/* 42411C 802A94AC 0C093EB1 */ jal set_popup_duration
/* 424120 802A94B0 24040063 */ addiu $a0, $zero, 0x63
/* 424124 802A94B4 82220080 */ lb $v0, 0x80($s1)
/* 424128 802A94B8 00021040 */ sll $v0, $v0, 1
/* 42412C 802A94BC 02221021 */ addu $v0, $s1, $v0
/* 424130 802A94C0 84500074 */ lh $s0, 0x74($v0)
/* 424134 802A94C4 86220044 */ lh $v0, 0x44($s1)
/* 424138 802A94C8 86230064 */ lh $v1, 0x64($s1)
/* 42413C 802A94CC 16000002 */ bnez $s0, .L802A94D8
/* 424140 802A94D0 0050001A */ div $zero, $v0, $s0
/* 424144 802A94D4 0007000D */ break 7
.L802A94D8:
/* 424148 802A94D8 2401FFFF */ addiu $at, $zero, -1
/* 42414C 802A94DC 16010004 */ bne $s0, $at, .L802A94F0
/* 424150 802A94E0 3C018000 */ lui $at, 0x8000
/* 424154 802A94E4 14410002 */ bne $v0, $at, .L802A94F0
/* 424158 802A94E8 00000000 */ nop
/* 42415C 802A94EC 0006000D */ break 6
.L802A94F0:
/* 424160 802A94F0 00002012 */ mflo $a0
/* 424164 802A94F4 1460000C */ bnez $v1, .L802A9528
/* 424168 802A94F8 3C026666 */ lui $v0, 0x6666
/* 42416C 802A94FC 34426667 */ ori $v0, $v0, 0x6667
/* 424170 802A9500 00820018 */ mult $a0, $v0
/* 424174 802A9504 00041FC3 */ sra $v1, $a0, 0x1f
/* 424178 802A9508 00003810 */ mfhi $a3
/* 42417C 802A950C 000710C3 */ sra $v0, $a3, 3
/* 424180 802A9510 00431023 */ subu $v0, $v0, $v1
/* 424184 802A9514 00021080 */ sll $v0, $v0, 2
/* 424188 802A9518 3C03802B */ lui $v1, %hi(D_802AA844)
/* 42418C 802A951C 00621821 */ addu $v1, $v1, $v0
/* 424190 802A9520 080AA554 */ j .L802A9550
/* 424194 802A9524 8C63A844 */ lw $v1, %lo(D_802AA844)($v1)
.L802A9528:
/* 424198 802A9528 34426667 */ ori $v0, $v0, 0x6667
/* 42419C 802A952C 00820018 */ mult $a0, $v0
/* 4241A0 802A9530 00041FC3 */ sra $v1, $a0, 0x1f
/* 4241A4 802A9534 00003810 */ mfhi $a3
/* 4241A8 802A9538 00071083 */ sra $v0, $a3, 2
/* 4241AC 802A953C 00431023 */ subu $v0, $v0, $v1
/* 4241B0 802A9540 00021080 */ sll $v0, $v0, 2
/* 4241B4 802A9544 3C03802B */ lui $v1, %hi(D_802AA85C)
/* 4241B8 802A9548 00621821 */ addu $v1, $v1, $v0
/* 4241BC 802A954C 8C63A85C */ lw $v1, %lo(D_802AA85C)($v1)
.L802A9550:
/* 4241C0 802A9550 96220044 */ lhu $v0, 0x44($s1)
/* 4241C4 802A9554 00431023 */ subu $v0, $v0, $v1
/* 4241C8 802A9558 A6220044 */ sh $v0, 0x44($s1)
/* 4241CC 802A955C 00021400 */ sll $v0, $v0, 0x10
/* 4241D0 802A9560 04420001 */ bltzl $v0, .L802A9568
/* 4241D4 802A9564 A6200044 */ sh $zero, 0x44($s1)
.L802A9568:
/* 4241D8 802A9568 8622006A */ lh $v0, 0x6a($s1)
/* 4241DC 802A956C 1440001C */ bnez $v0, .L802A95E0
/* 4241E0 802A9570 00000000 */ nop
/* 4241E4 802A9574 8E420214 */ lw $v0, 0x214($s2)
/* 4241E8 802A9578 30428000 */ andi $v0, $v0, 0x8000
/* 4241EC 802A957C 1040002F */ beqz $v0, .L802A963C
/* 4241F0 802A9580 00000000 */ nop
/* 4241F4 802A9584 86220064 */ lh $v0, 0x64($s1)
/* 4241F8 802A9588 14400009 */ bnez $v0, .L802A95B0
/* 4241FC 802A958C 00000000 */ nop
/* 424200 802A9590 86220050 */ lh $v0, 0x50($s1)
/* 424204 802A9594 8E430434 */ lw $v1, 0x434($s2)
/* 424208 802A9598 00021080 */ sll $v0, $v0, 2
/* 42420C 802A959C 00431021 */ addu $v0, $v0, $v1
/* 424210 802A95A0 8C430000 */ lw $v1, ($v0)
/* 424214 802A95A4 00031080 */ sll $v0, $v1, 2
/* 424218 802A95A8 080AA574 */ j .L802A95D0
/* 42421C 802A95AC 00431821 */ addu $v1, $v0, $v1
.L802A95B0:
/* 424220 802A95B0 86220050 */ lh $v0, 0x50($s1)
/* 424224 802A95B4 8E430434 */ lw $v1, 0x434($s2)
/* 424228 802A95B8 00021080 */ sll $v0, $v0, 2
/* 42422C 802A95BC 00431021 */ addu $v0, $v0, $v1
/* 424230 802A95C0 8C430000 */ lw $v1, ($v0)
/* 424234 802A95C4 00031040 */ sll $v0, $v1, 1
/* 424238 802A95C8 00431021 */ addu $v0, $v0, $v1
/* 42423C 802A95CC 00021840 */ sll $v1, $v0, 1
.L802A95D0:
/* 424240 802A95D0 96220044 */ lhu $v0, 0x44($s1)
/* 424244 802A95D4 00431021 */ addu $v0, $v0, $v1
/* 424248 802A95D8 080AA58F */ j .L802A963C
/* 42424C 802A95DC A6220044 */ sh $v0, 0x44($s1)
.L802A95E0:
/* 424250 802A95E0 86220050 */ lh $v0, 0x50($s1)
/* 424254 802A95E4 8E430434 */ lw $v1, 0x434($s2)
/* 424258 802A95E8 00021080 */ sll $v0, $v0, 2
/* 42425C 802A95EC 00431021 */ addu $v0, $v0, $v1
/* 424260 802A95F0 8C430000 */ lw $v1, ($v0)
/* 424264 802A95F4 04620001 */ bltzl $v1, .L802A95FC
/* 424268 802A95F8 24630003 */ addiu $v1, $v1, 3
.L802A95FC:
/* 42426C 802A95FC 96220044 */ lhu $v0, 0x44($s1)
/* 424270 802A9600 00031883 */ sra $v1, $v1, 2
/* 424274 802A9604 00431021 */ addu $v0, $v0, $v1
/* 424278 802A9608 A6220044 */ sh $v0, 0x44($s1)
/* 42427C 802A960C 86220050 */ lh $v0, 0x50($s1)
/* 424280 802A9610 8E430434 */ lw $v1, 0x434($s2)
/* 424284 802A9614 00021080 */ sll $v0, $v0, 2
/* 424288 802A9618 00431021 */ addu $v0, $v0, $v1
/* 42428C 802A961C 8C420000 */ lw $v0, ($v0)
/* 424290 802A9620 04420001 */ bltzl $v0, .L802A9628
/* 424294 802A9624 24420003 */ addiu $v0, $v0, 3
.L802A9628:
/* 424298 802A9628 0C00A67F */ jal rand_int
/* 42429C 802A962C 00022083 */ sra $a0, $v0, 2
/* 4242A0 802A9630 96230044 */ lhu $v1, 0x44($s1)
/* 4242A4 802A9634 00621821 */ addu $v1, $v1, $v0
/* 4242A8 802A9638 A6230044 */ sh $v1, 0x44($s1)
.L802A963C:
/* 4242AC 802A963C 86230044 */ lh $v1, 0x44($s1)
/* 4242B0 802A9640 00101040 */ sll $v0, $s0, 1
/* 4242B4 802A9644 00501021 */ addu $v0, $v0, $s0
/* 4242B8 802A9648 000210C0 */ sll $v0, $v0, 3
/* 4242BC 802A964C 00501021 */ addu $v0, $v0, $s0
/* 4242C0 802A9650 00021080 */ sll $v0, $v0, 2
/* 4242C4 802A9654 0043182A */ slt $v1, $v0, $v1
/* 4242C8 802A9658 54600001 */ bnel $v1, $zero, .L802A9660
/* 4242CC 802A965C A6220044 */ sh $v0, 0x44($s1)
.L802A9660:
/* 4242D0 802A9660 86220064 */ lh $v0, 0x64($s1)
/* 4242D4 802A9664 1440000B */ bnez $v0, .L802A9694
/* 4242D8 802A9668 3C041062 */ lui $a0, 0x1062
/* 4242DC 802A966C 96230044 */ lhu $v1, 0x44($s1)
/* 4242E0 802A9670 34844DD3 */ ori $a0, $a0, 0x4dd3
/* 4242E4 802A9674 00031C00 */ sll $v1, $v1, 0x10
/* 4242E8 802A9678 00031403 */ sra $v0, $v1, 0x10
/* 4242EC 802A967C 00440018 */ mult $v0, $a0
/* 4242F0 802A9680 00031FC3 */ sra $v1, $v1, 0x1f
/* 4242F4 802A9684 00003810 */ mfhi $a3
/* 4242F8 802A9688 000711C3 */ sra $v0, $a3, 7
/* 4242FC 802A968C 080AA5B3 */ j .L802A96CC
/* 424300 802A9690 00431023 */ subu $v0, $v0, $v1
.L802A9694:
/* 424304 802A9694 96230044 */ lhu $v1, 0x44($s1)
/* 424308 802A9698 34844DD3 */ ori $a0, $a0, 0x4dd3
/* 42430C 802A969C 00031C00 */ sll $v1, $v1, 0x10
/* 424310 802A96A0 00031403 */ sra $v0, $v1, 0x10
/* 424314 802A96A4 00440018 */ mult $v0, $a0
/* 424318 802A96A8 00031FC3 */ sra $v1, $v1, 0x1f
/* 42431C 802A96AC 00003810 */ mfhi $a3
/* 424320 802A96B0 00071183 */ sra $v0, $a3, 6
/* 424324 802A96B4 00431023 */ subu $v0, $v0, $v1
/* 424328 802A96B8 00021400 */ sll $v0, $v0, 0x10
/* 42432C 802A96BC 00021383 */ sra $v0, $v0, 0xe
/* 424330 802A96C0 3C01802B */ lui $at, %hi(D_802AA8B7)
/* 424334 802A96C4 00220821 */ addu $at, $at, $v0
/* 424338 802A96C8 9022A8B7 */ lbu $v0, %lo(D_802AA8B7)($at)
.L802A96CC:
/* 42433C 802A96CC A2420084 */ sb $v0, 0x84($s2)
/* 424340 802A96D0 86220054 */ lh $v0, 0x54($s1)
/* 424344 802A96D4 96230054 */ lhu $v1, 0x54($s1)
/* 424348 802A96D8 14400010 */ bnez $v0, .L802A971C
/* 42434C 802A96DC 2462FFFF */ addiu $v0, $v1, -1
/* 424350 802A96E0 0000202D */ daddu $a0, $zero, $zero
/* 424354 802A96E4 92430084 */ lbu $v1, 0x84($s2)
/* 424358 802A96E8 2402007F */ addiu $v0, $zero, 0x7f
/* 42435C 802A96EC A2420086 */ sb $v0, 0x86($s2)
/* 424360 802A96F0 0C093EB1 */ jal set_popup_duration
/* 424364 802A96F4 A2430081 */ sb $v1, 0x81($s2)
/* 424368 802A96F8 24020005 */ addiu $v0, $zero, 5
/* 42436C 802A96FC A6220054 */ sh $v0, 0x54($s1)
/* 424370 802A9700 2402000C */ addiu $v0, $zero, 0xc
/* 424374 802A9704 080AA5CB */ j .L802A972C
/* 424378 802A9708 A622004C */ sh $v0, 0x4c($s1)
/* 42437C 802A970C 86220054 */ lh $v0, 0x54($s1)
/* 424380 802A9710 96230054 */ lhu $v1, 0x54($s1)
/* 424384 802A9714 10400003 */ beqz $v0, .L802A9724
/* 424388 802A9718 2462FFFF */ addiu $v0, $v1, -1
.L802A971C:
/* 42438C 802A971C 080AA5CB */ j .L802A972C
/* 424390 802A9720 A6220054 */ sh $v0, 0x54($s1)
.L802A9724:
/* 424394 802A9724 0C09A327 */ jal func_80268C9C
/* 424398 802A9728 00000000 */ nop
.L802A972C:
/* 42439C 802A972C 8FBF001C */ lw $ra, 0x1c($sp)
/* 4243A0 802A9730 8FB20018 */ lw $s2, 0x18($sp)
/* 4243A4 802A9734 8FB10014 */ lw $s1, 0x14($sp)
/* 4243A8 802A9738 8FB00010 */ lw $s0, 0x10($sp)
/* 4243AC 802A973C 03E00008 */ jr $ra
/* 4243B0 802A9740 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,93 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9744_4243B4
/* 4243B4 802A9744 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 4243B8 802A9748 3C03802A */ lui $v1, %hi(D_8029FBE0)
/* 4243BC 802A974C 2463FBE0 */ addiu $v1, $v1, %lo(D_8029FBE0)
/* 4243C0 802A9750 AFB00018 */ sw $s0, 0x18($sp)
/* 4243C4 802A9754 0060802D */ daddu $s0, $v1, $zero
/* 4243C8 802A9758 AFB30024 */ sw $s3, 0x24($sp)
/* 4243CC 802A975C 3C13800E */ lui $s3, %hi(gBattleStatus)
/* 4243D0 802A9760 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus)
/* 4243D4 802A9764 AFBF002C */ sw $ra, 0x2c($sp)
/* 4243D8 802A9768 AFB40028 */ sw $s4, 0x28($sp)
/* 4243DC 802A976C AFB20020 */ sw $s2, 0x20($sp)
/* 4243E0 802A9770 AFB1001C */ sw $s1, 0x1c($sp)
/* 4243E4 802A9774 8462006A */ lh $v0, 0x6a($v1)
/* 4243E8 802A9778 14400004 */ bnez $v0, .L802A978C
/* 4243EC 802A977C 0260A02D */ daddu $s4, $s3, $zero
/* 4243F0 802A9780 8C640004 */ lw $a0, 4($v1)
/* 4243F4 802A9784 0C0511EA */ jal draw_icon_0
/* 4243F8 802A9788 00000000 */ nop
.L802A978C:
/* 4243FC 802A978C 8E110008 */ lw $s1, 8($s0)
/* 424400 802A9790 0C0511EA */ jal draw_icon_0
/* 424404 802A9794 0220202D */ daddu $a0, $s1, $zero
/* 424408 802A9798 0220202D */ daddu $a0, $s1, $zero
/* 42440C 802A979C 27A50010 */ addiu $a1, $sp, 0x10
/* 424410 802A97A0 0C05126B */ jal get_icon_render_pos
/* 424414 802A97A4 27A60014 */ addiu $a2, $sp, 0x14
/* 424418 802A97A8 3C0451EB */ lui $a0, 0x51eb
/* 42441C 802A97AC 96030044 */ lhu $v1, 0x44($s0)
/* 424420 802A97B0 3484851F */ ori $a0, $a0, 0x851f
/* 424424 802A97B4 00031C00 */ sll $v1, $v1, 0x10
/* 424428 802A97B8 00031403 */ sra $v0, $v1, 0x10
/* 42442C 802A97BC 00440018 */ mult $v0, $a0
/* 424430 802A97C0 24070001 */ addiu $a3, $zero, 1
/* 424434 802A97C4 8FA50014 */ lw $a1, 0x14($sp)
/* 424438 802A97C8 00031FC3 */ sra $v1, $v1, 0x1f
/* 42443C 802A97CC 8FA40010 */ lw $a0, 0x10($sp)
/* 424440 802A97D0 00004010 */ mfhi $t0
/* 424444 802A97D4 00083143 */ sra $a2, $t0, 5
/* 424448 802A97D8 00C33023 */ subu $a2, $a2, $v1
/* 42444C 802A97DC 00063400 */ sll $a2, $a2, 0x10
/* 424450 802A97E0 0C09A1E6 */ jal func_80268798
/* 424454 802A97E4 00063403 */ sra $a2, $a2, 0x10
/* 424458 802A97E8 8E040010 */ lw $a0, 0x10($s0)
/* 42445C 802A97EC 0C0511EA */ jal draw_icon_0
/* 424460 802A97F0 00000000 */ nop
/* 424464 802A97F4 86020064 */ lh $v0, 0x64($s0)
/* 424468 802A97F8 8E11000C */ lw $s1, 0xc($s0)
/* 42446C 802A97FC 1440000D */ bnez $v0, .L802A9834
/* 424470 802A9800 0220202D */ daddu $a0, $s1, $zero
/* 424474 802A9804 82700084 */ lb $s0, 0x84($s3)
/* 424478 802A9808 3C12802B */ lui $s2, %hi(D_802AA888)
/* 42447C 802A980C 2652A888 */ addiu $s2, $s2, %lo(D_802AA888)
/* 424480 802A9810 00108080 */ sll $s0, $s0, 2
/* 424484 802A9814 0C05122C */ jal get_menu_icon_script
/* 424488 802A9818 02128021 */ addu $s0, $s0, $s2
/* 42448C 802A981C 8E030000 */ lw $v1, ($s0)
/* 424490 802A9820 10620013 */ beq $v1, $v0, .L802A9870
/* 424494 802A9824 00000000 */ nop
/* 424498 802A9828 82620084 */ lb $v0, 0x84($s3)
/* 42449C 802A982C 080AA618 */ j .L802A9860
/* 4244A0 802A9830 00021080 */ sll $v0, $v0, 2
.L802A9834:
/* 4244A4 802A9834 82900084 */ lb $s0, 0x84($s4)
/* 4244A8 802A9838 3C12802B */ lui $s2, %hi(D_802AA8A0)
/* 4244AC 802A983C 2652A8A0 */ addiu $s2, $s2, %lo(D_802AA8A0)
/* 4244B0 802A9840 00108080 */ sll $s0, $s0, 2
/* 4244B4 802A9844 0C05122C */ jal get_menu_icon_script
/* 4244B8 802A9848 02128021 */ addu $s0, $s0, $s2
/* 4244BC 802A984C 8E030000 */ lw $v1, ($s0)
/* 4244C0 802A9850 10620007 */ beq $v1, $v0, .L802A9870
/* 4244C4 802A9854 00000000 */ nop
/* 4244C8 802A9858 82820084 */ lb $v0, 0x84($s4)
/* 4244CC 802A985C 00021080 */ sll $v0, $v0, 2
.L802A9860:
/* 4244D0 802A9860 00521021 */ addu $v0, $v0, $s2
/* 4244D4 802A9864 8C450000 */ lw $a1, ($v0)
/* 4244D8 802A9868 0C0511FF */ jal set_menu_icon_script
/* 4244DC 802A986C 0220202D */ daddu $a0, $s1, $zero
.L802A9870:
/* 4244E0 802A9870 0C0511EA */ jal draw_icon_0
/* 4244E4 802A9874 0220202D */ daddu $a0, $s1, $zero
/* 4244E8 802A9878 8FBF002C */ lw $ra, 0x2c($sp)
/* 4244EC 802A987C 8FB40028 */ lw $s4, 0x28($sp)
/* 4244F0 802A9880 8FB30024 */ lw $s3, 0x24($sp)
/* 4244F4 802A9884 8FB20020 */ lw $s2, 0x20($sp)
/* 4244F8 802A9888 8FB1001C */ lw $s1, 0x1c($sp)
/* 4244FC 802A988C 8FB00018 */ lw $s0, 0x18($sp)
/* 424500 802A9890 03E00008 */ jr $ra
/* 424504 802A9894 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -0,0 +1,22 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9898_424508
/* 424508 802A9898 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 42450C 802A989C AFB00010 */ sw $s0, 0x10($sp)
/* 424510 802A98A0 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 424514 802A98A4 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 424518 802A98A8 AFBF0014 */ sw $ra, 0x14($sp)
/* 42451C 802A98AC 0C05123D */ jal free_icon
/* 424520 802A98B0 8E040004 */ lw $a0, 4($s0)
/* 424524 802A98B4 0C05123D */ jal free_icon
/* 424528 802A98B8 8E040008 */ lw $a0, 8($s0)
/* 42452C 802A98BC 0C05123D */ jal free_icon
/* 424530 802A98C0 8E04000C */ lw $a0, 0xc($s0)
/* 424534 802A98C4 0C05123D */ jal free_icon
/* 424538 802A98C8 8E040010 */ lw $a0, 0x10($s0)
/* 42453C 802A98CC 8FBF0014 */ lw $ra, 0x14($sp)
/* 424540 802A98D0 8FB00010 */ lw $s0, 0x10($sp)
/* 424544 802A98D4 03E00008 */ jr $ra
/* 424548 802A98D8 27BD0018 */ addiu $sp, $sp, 0x18
/* 42454C 802A98DC 00000000 */ nop

View File

@ -0,0 +1,74 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_425590
/* 425590 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 425594 802A9004 3C03800E */ lui $v1, %hi(gBattleStatus)
/* 425598 802A9008 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus)
/* 42559C 802A900C 24020005 */ addiu $v0, $zero, 5
/* 4255A0 802A9010 AFBF0018 */ sw $ra, 0x18($sp)
/* 4255A4 802A9014 AFB10014 */ sw $s1, 0x14($sp)
/* 4255A8 802A9018 AFB00010 */ sw $s0, 0x10($sp)
/* 4255AC 802A901C A0620082 */ sb $v0, 0x82($v1)
/* 4255B0 802A9020 3C028029 */ lui $v0, %hi(D_80294260)
/* 4255B4 802A9024 24424260 */ addiu $v0, $v0, %lo(D_80294260)
/* 4255B8 802A9028 AC620434 */ sw $v0, 0x434($v1)
/* 4255BC 802A902C 80620083 */ lb $v0, 0x83($v1)
/* 4255C0 802A9030 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 4255C4 802A9034 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 4255C8 802A9038 5040002F */ beql $v0, $zero, .L802A90F8
/* 4255CC 802A903C A0600081 */ sb $zero, 0x81($v1)
/* 4255D0 802A9040 0C09A216 */ jal func_80268858
/* 4255D4 802A9044 00000000 */ nop
/* 4255D8 802A9048 3C048011 */ lui $a0, %hi(D_80108B28)
/* 4255DC 802A904C 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 4255E0 802A9050 24020006 */ addiu $v0, $zero, 6
/* 4255E4 802A9054 A622004A */ sh $v0, 0x4a($s1)
/* 4255E8 802A9058 2402FFD0 */ addiu $v0, $zero, -0x30
/* 4255EC 802A905C A6220056 */ sh $v0, 0x56($s1)
/* 4255F0 802A9060 24020050 */ addiu $v0, $zero, 0x50
/* 4255F4 802A9064 A620004C */ sh $zero, 0x4c($s1)
/* 4255F8 802A9068 A2200060 */ sb $zero, 0x60($s1)
/* 4255FC 802A906C A6200044 */ sh $zero, 0x44($s1)
/* 425600 802A9070 A6200048 */ sh $zero, 0x48($s1)
/* 425604 802A9074 0C050529 */ jal create_icon
/* 425608 802A9078 A6220058 */ sh $v0, 0x58($s1)
/* 42560C 802A907C 0040802D */ daddu $s0, $v0, $zero
/* 425610 802A9080 0200202D */ daddu $a0, $s0, $zero
/* 425614 802A9084 24050082 */ addiu $a1, $zero, 0x82
/* 425618 802A9088 0C051280 */ jal set_icon_flags
/* 42561C 802A908C AE300004 */ sw $s0, 4($s1)
/* 425620 802A9090 86250056 */ lh $a1, 0x56($s1)
/* 425624 802A9094 86260058 */ lh $a2, 0x58($s1)
/* 425628 802A9098 0C051261 */ jal set_icon_render_pos
/* 42562C 802A909C 0200202D */ daddu $a0, $s0, $zero
/* 425630 802A90A0 0200202D */ daddu $a0, $s0, $zero
/* 425634 802A90A4 0C051277 */ jal func_801449DC
/* 425638 802A90A8 0000282D */ daddu $a1, $zero, $zero
/* 42563C 802A90AC 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 425640 802A90B0 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 425644 802A90B4 0C050529 */ jal create_icon
/* 425648 802A90B8 00000000 */ nop
/* 42564C 802A90BC 0040802D */ daddu $s0, $v0, $zero
/* 425650 802A90C0 86250056 */ lh $a1, 0x56($s1)
/* 425654 802A90C4 86260058 */ lh $a2, 0x58($s1)
/* 425658 802A90C8 0200202D */ daddu $a0, $s0, $zero
/* 42565C 802A90CC AE300008 */ sw $s0, 8($s1)
/* 425660 802A90D0 0C051261 */ jal set_icon_render_pos
/* 425664 802A90D4 24C6001C */ addiu $a2, $a2, 0x1c
/* 425668 802A90D8 0200202D */ daddu $a0, $s0, $zero
/* 42566C 802A90DC 0C051277 */ jal func_801449DC
/* 425670 802A90E0 0000282D */ daddu $a1, $zero, $zero
/* 425674 802A90E4 0200202D */ daddu $a0, $s0, $zero
/* 425678 802A90E8 0C051280 */ jal set_icon_flags
/* 42567C 802A90EC 24050082 */ addiu $a1, $zero, 0x82
/* 425680 802A90F0 080AA43F */ j .L802A90FC
/* 425684 802A90F4 24020002 */ addiu $v0, $zero, 2
.L802A90F8:
/* 425688 802A90F8 24020002 */ addiu $v0, $zero, 2
.L802A90FC:
/* 42568C 802A90FC 8FBF0018 */ lw $ra, 0x18($sp)
/* 425690 802A9100 8FB10014 */ lw $s1, 0x14($sp)
/* 425694 802A9104 8FB00010 */ lw $s0, 0x10($sp)
/* 425698 802A9108 03E00008 */ jr $ra
/* 42569C 802A910C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,64 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9110_4256A0
/* 4256A0 802A9110 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 4256A4 802A9114 AFB20018 */ sw $s2, 0x18($sp)
/* 4256A8 802A9118 0080902D */ daddu $s2, $a0, $zero
/* 4256AC 802A911C AFB10014 */ sw $s1, 0x14($sp)
/* 4256B0 802A9120 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 4256B4 802A9124 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 4256B8 802A9128 AFB3001C */ sw $s3, 0x1c($sp)
/* 4256BC 802A912C 3C13800E */ lui $s3, %hi(gBattleStatus)
/* 4256C0 802A9130 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus)
/* 4256C4 802A9134 AFBF0020 */ sw $ra, 0x20($sp)
/* 4256C8 802A9138 AFB00010 */ sw $s0, 0x10($sp)
/* 4256CC 802A913C 82620083 */ lb $v0, 0x83($s3)
/* 4256D0 802A9140 8E50000C */ lw $s0, 0xc($s2)
/* 4256D4 802A9144 10400023 */ beqz $v0, .L802A91D4
/* 4256D8 802A9148 0260182D */ daddu $v1, $s3, $zero
/* 4256DC 802A914C 0C09A216 */ jal func_80268858
/* 4256E0 802A9150 00000000 */ nop
/* 4256E4 802A9154 8E050000 */ lw $a1, ($s0)
/* 4256E8 802A9158 26100004 */ addiu $s0, $s0, 4
/* 4256EC 802A915C 0C0B1EAF */ jal get_variable
/* 4256F0 802A9160 0240202D */ daddu $a0, $s2, $zero
/* 4256F4 802A9164 A622004E */ sh $v0, 0x4e($s1)
/* 4256F8 802A9168 8E050000 */ lw $a1, ($s0)
/* 4256FC 802A916C 26100004 */ addiu $s0, $s0, 4
/* 425700 802A9170 0C0B1EAF */ jal get_variable
/* 425704 802A9174 0240202D */ daddu $a0, $s2, $zero
/* 425708 802A9178 A6220052 */ sh $v0, 0x52($s1)
/* 42570C 802A917C 8E050000 */ lw $a1, ($s0)
/* 425710 802A9180 0C0B1EAF */ jal get_variable
/* 425714 802A9184 0240202D */ daddu $a0, $s2, $zero
/* 425718 802A9188 00022400 */ sll $a0, $v0, 0x10
/* 42571C 802A918C 00042403 */ sra $a0, $a0, 0x10
/* 425720 802A9190 0C09A089 */ jal func_80268224
/* 425724 802A9194 A6220050 */ sh $v0, 0x50($s1)
/* 425728 802A9198 3C05FFFF */ lui $a1, 0xffff
/* 42572C 802A919C 34A57FFF */ ori $a1, $a1, 0x7fff
/* 425730 802A91A0 A6220050 */ sh $v0, 0x50($s1)
/* 425734 802A91A4 24020002 */ addiu $v0, $zero, 2
/* 425738 802A91A8 A2200060 */ sb $zero, 0x60($s1)
/* 42573C 802A91AC A6200044 */ sh $zero, 0x44($s1)
/* 425740 802A91B0 A6200048 */ sh $zero, 0x48($s1)
/* 425744 802A91B4 8E630000 */ lw $v1, ($s3)
/* 425748 802A91B8 2404000A */ addiu $a0, $zero, 0xa
/* 42574C 802A91BC A2600081 */ sb $zero, 0x81($s3)
/* 425750 802A91C0 A2600086 */ sb $zero, 0x86($s3)
/* 425754 802A91C4 A624004C */ sh $a0, 0x4c($s1)
/* 425758 802A91C8 00651824 */ and $v1, $v1, $a1
/* 42575C 802A91CC 080AA477 */ j .L802A91DC
/* 425760 802A91D0 AE630000 */ sw $v1, ($s3)
.L802A91D4:
/* 425764 802A91D4 A0600081 */ sb $zero, 0x81($v1)
/* 425768 802A91D8 24020002 */ addiu $v0, $zero, 2
.L802A91DC:
/* 42576C 802A91DC 8FBF0020 */ lw $ra, 0x20($sp)
/* 425770 802A91E0 8FB3001C */ lw $s3, 0x1c($sp)
/* 425774 802A91E4 8FB20018 */ lw $s2, 0x18($sp)
/* 425778 802A91E8 8FB10014 */ lw $s1, 0x14($sp)
/* 42577C 802A91EC 8FB00010 */ lw $s0, 0x10($sp)
/* 425780 802A91F0 03E00008 */ jr $ra
/* 425784 802A91F4 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,186 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A91F8_425788
/* 425788 802A91F8 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 42578C 802A91FC AFB10014 */ sw $s1, 0x14($sp)
/* 425790 802A9200 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 425794 802A9204 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 425798 802A9208 AFBF0018 */ sw $ra, 0x18($sp)
/* 42579C 802A920C AFB00010 */ sw $s0, 0x10($sp)
/* 4257A0 802A9210 8623004C */ lh $v1, 0x4c($s1)
/* 4257A4 802A9214 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 4257A8 802A9218 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 4257AC 802A921C 2C62000D */ sltiu $v0, $v1, 0xd
/* 4257B0 802A9220 1040009B */ beqz $v0, .L802A9490
/* 4257B4 802A9224 00031080 */ sll $v0, $v1, 2
/* 4257B8 802A9228 3C01802B */ lui $at, %hi(D_802A9580)
/* 4257BC 802A922C 00220821 */ addu $at, $at, $v0
/* 4257C0 802A9230 8C229580 */ lw $v0, %lo(D_802A9580)($at)
/* 4257C4 802A9234 00400008 */ jr $v0
/* 4257C8 802A9238 00000000 */ nop
/* 4257CC 802A923C 0C093EB1 */ jal set_popup_duration
/* 4257D0 802A9240 24040063 */ addiu $a0, $zero, 0x63
/* 4257D4 802A9244 82220061 */ lb $v0, 0x61($s1)
/* 4257D8 802A9248 8E300004 */ lw $s0, 4($s1)
/* 4257DC 802A924C 10400004 */ beqz $v0, .L802A9260
/* 4257E0 802A9250 0200202D */ daddu $a0, $s0, $zero
/* 4257E4 802A9254 0C05128B */ jal clear_icon_flags
/* 4257E8 802A9258 24050002 */ addiu $a1, $zero, 2
/* 4257EC 802A925C 0200202D */ daddu $a0, $s0, $zero
.L802A9260:
/* 4257F0 802A9260 0C0513AC */ jal icon_set_opacity
/* 4257F4 802A9264 240500FF */ addiu $a1, $zero, 0xff
/* 4257F8 802A9268 8E300008 */ lw $s0, 8($s1)
/* 4257FC 802A926C 240500FF */ addiu $a1, $zero, 0xff
/* 425800 802A9270 0C0513AC */ jal icon_set_opacity
/* 425804 802A9274 0200202D */ daddu $a0, $s0, $zero
/* 425808 802A9278 82220061 */ lb $v0, 0x61($s1)
/* 42580C 802A927C 10400003 */ beqz $v0, .L802A928C
/* 425810 802A9280 0200202D */ daddu $a0, $s0, $zero
/* 425814 802A9284 0C05128B */ jal clear_icon_flags
/* 425818 802A9288 24050002 */ addiu $a1, $zero, 2
.L802A928C:
/* 42581C 802A928C 24020001 */ addiu $v0, $zero, 1
/* 425820 802A9290 080AA524 */ j .L802A9490
/* 425824 802A9294 A622004C */ sh $v0, 0x4c($s1)
/* 425828 802A9298 0C093EB1 */ jal set_popup_duration
/* 42582C 802A929C 24040063 */ addiu $a0, $zero, 0x63
/* 425830 802A92A0 96220056 */ lhu $v0, 0x56($s1)
/* 425834 802A92A4 24420014 */ addiu $v0, $v0, 0x14
/* 425838 802A92A8 A6220056 */ sh $v0, 0x56($s1)
/* 42583C 802A92AC 00021400 */ sll $v0, $v0, 0x10
/* 425840 802A92B0 00021403 */ sra $v0, $v0, 0x10
/* 425844 802A92B4 28420033 */ slti $v0, $v0, 0x33
/* 425848 802A92B8 14400002 */ bnez $v0, .L802A92C4
/* 42584C 802A92BC 24020032 */ addiu $v0, $zero, 0x32
/* 425850 802A92C0 A6220056 */ sh $v0, 0x56($s1)
.L802A92C4:
/* 425854 802A92C4 8E240004 */ lw $a0, 4($s1)
/* 425858 802A92C8 86250056 */ lh $a1, 0x56($s1)
/* 42585C 802A92CC 0C051261 */ jal set_icon_render_pos
/* 425860 802A92D0 86260058 */ lh $a2, 0x58($s1)
/* 425864 802A92D4 8E240008 */ lw $a0, 8($s1)
/* 425868 802A92D8 86260058 */ lh $a2, 0x58($s1)
/* 42586C 802A92DC 86250056 */ lh $a1, 0x56($s1)
/* 425870 802A92E0 0C051261 */ jal set_icon_render_pos
/* 425874 802A92E4 24C6001C */ addiu $a2, $a2, 0x1c
/* 425878 802A92E8 080AA524 */ j .L802A9490
/* 42587C 802A92EC 00000000 */ nop
/* 425880 802A92F0 0C093EB1 */ jal set_popup_duration
/* 425884 802A92F4 24040063 */ addiu $a0, $zero, 0x63
/* 425888 802A92F8 8622004E */ lh $v0, 0x4e($s1)
/* 42588C 802A92FC 9623004E */ lhu $v1, 0x4e($s1)
/* 425890 802A9300 10400003 */ beqz $v0, .L802A9310
/* 425894 802A9304 2462FFFF */ addiu $v0, $v1, -1
/* 425898 802A9308 080AA524 */ j .L802A9490
/* 42589C 802A930C A622004E */ sh $v0, 0x4e($s1)
.L802A9310:
/* 4258A0 802A9310 8E240004 */ lw $a0, 4($s1)
/* 4258A4 802A9314 3C058011 */ lui $a1, %hi(D_80108B80)
/* 4258A8 802A9318 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80)
/* 4258AC 802A931C 0C0511FF */ jal set_menu_icon_script
/* 4258B0 802A9320 00000000 */ nop
/* 4258B4 802A9324 96230052 */ lhu $v1, 0x52($s1)
/* 4258B8 802A9328 2402000B */ addiu $v0, $zero, 0xb
/* 4258BC 802A932C A6200044 */ sh $zero, 0x44($s1)
/* 4258C0 802A9330 A622004C */ sh $v0, 0x4c($s1)
/* 4258C4 802A9334 A6230054 */ sh $v1, 0x54($s1)
/* 4258C8 802A9338 0C093EB1 */ jal set_popup_duration
/* 4258CC 802A933C 24040063 */ addiu $a0, $zero, 0x63
/* 4258D0 802A9340 8622006A */ lh $v0, 0x6a($s1)
/* 4258D4 802A9344 1440000E */ bnez $v0, .L802A9380
/* 4258D8 802A9348 3C052AAA */ lui $a1, 0x2aaa
/* 4258DC 802A934C 8E020214 */ lw $v0, 0x214($s0)
/* 4258E0 802A9350 30428000 */ andi $v0, $v0, 0x8000
/* 4258E4 802A9354 10400025 */ beqz $v0, .L802A93EC
/* 4258E8 802A9358 3C0351EB */ lui $v1, 0x51eb
/* 4258EC 802A935C 86230050 */ lh $v1, 0x50($s1)
/* 4258F0 802A9360 8E020434 */ lw $v0, 0x434($s0)
/* 4258F4 802A9364 00031880 */ sll $v1, $v1, 2
/* 4258F8 802A9368 00621821 */ addu $v1, $v1, $v0
/* 4258FC 802A936C 96220044 */ lhu $v0, 0x44($s1)
/* 425900 802A9370 94630002 */ lhu $v1, 2($v1)
/* 425904 802A9374 00431021 */ addu $v0, $v0, $v1
/* 425908 802A9378 080AA4FA */ j .L802A93E8
/* 42590C 802A937C A6220044 */ sh $v0, 0x44($s1)
.L802A9380:
/* 425910 802A9380 86220050 */ lh $v0, 0x50($s1)
/* 425914 802A9384 8E030434 */ lw $v1, 0x434($s0)
/* 425918 802A9388 00021080 */ sll $v0, $v0, 2
/* 42591C 802A938C 00431021 */ addu $v0, $v0, $v1
/* 425920 802A9390 8C430000 */ lw $v1, ($v0)
/* 425924 802A9394 34A5AAAB */ ori $a1, $a1, 0xaaab
/* 425928 802A9398 00650018 */ mult $v1, $a1
/* 42592C 802A939C 96220044 */ lhu $v0, 0x44($s1)
/* 425930 802A93A0 00031FC3 */ sra $v1, $v1, 0x1f
/* 425934 802A93A4 00003810 */ mfhi $a3
/* 425938 802A93A8 00E31823 */ subu $v1, $a3, $v1
/* 42593C 802A93AC 00431021 */ addu $v0, $v0, $v1
/* 425940 802A93B0 A6220044 */ sh $v0, 0x44($s1)
/* 425944 802A93B4 86220050 */ lh $v0, 0x50($s1)
/* 425948 802A93B8 8E030434 */ lw $v1, 0x434($s0)
/* 42594C 802A93BC 00021080 */ sll $v0, $v0, 2
/* 425950 802A93C0 00431021 */ addu $v0, $v0, $v1
/* 425954 802A93C4 8C440000 */ lw $a0, ($v0)
/* 425958 802A93C8 00850018 */ mult $a0, $a1
/* 42595C 802A93CC 000427C3 */ sra $a0, $a0, 0x1f
/* 425960 802A93D0 00003810 */ mfhi $a3
/* 425964 802A93D4 0C00A67F */ jal rand_int
/* 425968 802A93D8 00E42023 */ subu $a0, $a3, $a0
/* 42596C 802A93DC 96230044 */ lhu $v1, 0x44($s1)
/* 425970 802A93E0 00621821 */ addu $v1, $v1, $v0
/* 425974 802A93E4 A6230044 */ sh $v1, 0x44($s1)
.L802A93E8:
/* 425978 802A93E8 3C0351EB */ lui $v1, 0x51eb
.L802A93EC:
/* 42597C 802A93EC 96240044 */ lhu $a0, 0x44($s1)
/* 425980 802A93F0 3463851F */ ori $v1, $v1, 0x851f
/* 425984 802A93F4 00042400 */ sll $a0, $a0, 0x10
/* 425988 802A93F8 00041403 */ sra $v0, $a0, 0x10
/* 42598C 802A93FC 00430018 */ mult $v0, $v1
/* 425990 802A9400 82230080 */ lb $v1, 0x80($s1)
/* 425994 802A9404 000427C3 */ sra $a0, $a0, 0x1f
/* 425998 802A9408 00031840 */ sll $v1, $v1, 1
/* 42599C 802A940C 02231821 */ addu $v1, $s1, $v1
/* 4259A0 802A9410 00003810 */ mfhi $a3
/* 4259A4 802A9414 00071143 */ sra $v0, $a3, 5
/* 4259A8 802A9418 00441023 */ subu $v0, $v0, $a0
/* 4259AC 802A941C A2020084 */ sb $v0, 0x84($s0)
/* 4259B0 802A9420 00021600 */ sll $v0, $v0, 0x18
/* 4259B4 802A9424 84630074 */ lh $v1, 0x74($v1)
/* 4259B8 802A9428 00021603 */ sra $v0, $v0, 0x18
/* 4259BC 802A942C 0043102A */ slt $v0, $v0, $v1
/* 4259C0 802A9430 50400001 */ beql $v0, $zero, .L802A9438
/* 4259C4 802A9434 A6200054 */ sh $zero, 0x54($s1)
.L802A9438:
/* 4259C8 802A9438 86220054 */ lh $v0, 0x54($s1)
/* 4259CC 802A943C 96230054 */ lhu $v1, 0x54($s1)
/* 4259D0 802A9440 1440000C */ bnez $v0, .L802A9474
/* 4259D4 802A9444 2462FFFF */ addiu $v0, $v1, -1
/* 4259D8 802A9448 0C093EB1 */ jal set_popup_duration
/* 4259DC 802A944C 0000202D */ daddu $a0, $zero, $zero
/* 4259E0 802A9450 24020005 */ addiu $v0, $zero, 5
/* 4259E4 802A9454 A6220054 */ sh $v0, 0x54($s1)
/* 4259E8 802A9458 2402000C */ addiu $v0, $zero, 0xc
/* 4259EC 802A945C 080AA524 */ j .L802A9490
/* 4259F0 802A9460 A622004C */ sh $v0, 0x4c($s1)
/* 4259F4 802A9464 86220054 */ lh $v0, 0x54($s1)
/* 4259F8 802A9468 96230054 */ lhu $v1, 0x54($s1)
/* 4259FC 802A946C 10400003 */ beqz $v0, .L802A947C
/* 425A00 802A9470 2462FFFF */ addiu $v0, $v1, -1
.L802A9474:
/* 425A04 802A9474 080AA524 */ j .L802A9490
/* 425A08 802A9478 A6220054 */ sh $v0, 0x54($s1)
.L802A947C:
/* 425A0C 802A947C 24020001 */ addiu $v0, $zero, 1
/* 425A10 802A9480 A2020081 */ sb $v0, 0x81($s0)
/* 425A14 802A9484 2402007F */ addiu $v0, $zero, 0x7f
/* 425A18 802A9488 0C09A327 */ jal func_80268C9C
/* 425A1C 802A948C A2020086 */ sb $v0, 0x86($s0)
.L802A9490:
/* 425A20 802A9490 8FBF0018 */ lw $ra, 0x18($sp)
/* 425A24 802A9494 8FB10014 */ lw $s1, 0x14($sp)
/* 425A28 802A9498 8FB00010 */ lw $s0, 0x10($sp)
/* 425A2C 802A949C 03E00008 */ jr $ra
/* 425A30 802A94A0 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,45 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A94A4_425A34
/* 425A34 802A94A4 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 425A38 802A94A8 3C03802A */ lui $v1, %hi(D_8029FBE0)
/* 425A3C 802A94AC 2463FBE0 */ addiu $v1, $v1, %lo(D_8029FBE0)
/* 425A40 802A94B0 AFBF0020 */ sw $ra, 0x20($sp)
/* 425A44 802A94B4 AFB1001C */ sw $s1, 0x1c($sp)
/* 425A48 802A94B8 AFB00018 */ sw $s0, 0x18($sp)
/* 425A4C 802A94BC 8462006A */ lh $v0, 0x6a($v1)
/* 425A50 802A94C0 14400004 */ bnez $v0, .L802A94D4
/* 425A54 802A94C4 0060882D */ daddu $s1, $v1, $zero
/* 425A58 802A94C8 8C640004 */ lw $a0, 4($v1)
/* 425A5C 802A94CC 0C0511EA */ jal draw_icon_0
/* 425A60 802A94D0 00000000 */ nop
.L802A94D4:
/* 425A64 802A94D4 8E300008 */ lw $s0, 8($s1)
/* 425A68 802A94D8 0C0511EA */ jal draw_icon_0
/* 425A6C 802A94DC 0200202D */ daddu $a0, $s0, $zero
/* 425A70 802A94E0 0200202D */ daddu $a0, $s0, $zero
/* 425A74 802A94E4 27A50010 */ addiu $a1, $sp, 0x10
/* 425A78 802A94E8 0C05126B */ jal get_icon_render_pos
/* 425A7C 802A94EC 27A60014 */ addiu $a2, $sp, 0x14
/* 425A80 802A94F0 3C0451EB */ lui $a0, 0x51eb
/* 425A84 802A94F4 96230044 */ lhu $v1, 0x44($s1)
/* 425A88 802A94F8 3484851F */ ori $a0, $a0, 0x851f
/* 425A8C 802A94FC 00031C00 */ sll $v1, $v1, 0x10
/* 425A90 802A9500 00031403 */ sra $v0, $v1, 0x10
/* 425A94 802A9504 00440018 */ mult $v0, $a0
/* 425A98 802A9508 24070002 */ addiu $a3, $zero, 2
/* 425A9C 802A950C 8FA50014 */ lw $a1, 0x14($sp)
/* 425AA0 802A9510 00031FC3 */ sra $v1, $v1, 0x1f
/* 425AA4 802A9514 8FA40010 */ lw $a0, 0x10($sp)
/* 425AA8 802A9518 00004010 */ mfhi $t0
/* 425AAC 802A951C 00083143 */ sra $a2, $t0, 5
/* 425AB0 802A9520 00C33023 */ subu $a2, $a2, $v1
/* 425AB4 802A9524 00063400 */ sll $a2, $a2, 0x10
/* 425AB8 802A9528 0C09A1E6 */ jal func_80268798
/* 425ABC 802A952C 00063403 */ sra $a2, $a2, 0x10
/* 425AC0 802A9530 8FBF0020 */ lw $ra, 0x20($sp)
/* 425AC4 802A9534 8FB1001C */ lw $s1, 0x1c($sp)
/* 425AC8 802A9538 8FB00018 */ lw $s0, 0x18($sp)
/* 425ACC 802A953C 03E00008 */ jr $ra
/* 425AD0 802A9540 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,19 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9544_425AD4
/* 425AD4 802A9544 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 425AD8 802A9548 AFB00010 */ sw $s0, 0x10($sp)
/* 425ADC 802A954C 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 425AE0 802A9550 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 425AE4 802A9554 AFBF0014 */ sw $ra, 0x14($sp)
/* 425AE8 802A9558 0C05123D */ jal free_icon
/* 425AEC 802A955C 8E040004 */ lw $a0, 4($s0)
/* 425AF0 802A9560 0C05123D */ jal free_icon
/* 425AF4 802A9564 8E040008 */ lw $a0, 8($s0)
/* 425AF8 802A9568 8FBF0014 */ lw $ra, 0x14($sp)
/* 425AFC 802A956C 8FB00010 */ lw $s0, 0x10($sp)
/* 425B00 802A9570 03E00008 */ jr $ra
/* 425B04 802A9574 27BD0018 */ addiu $sp, $sp, 0x18
/* 425B08 802A9578 00000000 */ nop
/* 425B0C 802A957C 00000000 */ nop

View File

@ -0,0 +1,95 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_425B50
/* 425B50 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 425B54 802A9004 AFB20018 */ sw $s2, 0x18($sp)
/* 425B58 802A9008 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 425B5C 802A900C 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 425B60 802A9010 AFBF001C */ sw $ra, 0x1c($sp)
/* 425B64 802A9014 AFB10014 */ sw $s1, 0x14($sp)
/* 425B68 802A9018 AFB00010 */ sw $s0, 0x10($sp)
/* 425B6C 802A901C 8C83000C */ lw $v1, 0xc($a0)
/* 425B70 802A9020 24020005 */ addiu $v0, $zero, 5
/* 425B74 802A9024 A2420082 */ sb $v0, 0x82($s2)
/* 425B78 802A9028 3C028029 */ lui $v0, %hi(D_80294280)
/* 425B7C 802A902C 24424280 */ addiu $v0, $v0, %lo(D_80294280)
/* 425B80 802A9030 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 425B84 802A9034 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 425B88 802A9038 AE420434 */ sw $v0, 0x434($s2)
/* 425B8C 802A903C 24020007 */ addiu $v0, $zero, 7
/* 425B90 802A9040 A200005E */ sb $zero, 0x5e($s0)
/* 425B94 802A9044 A602004A */ sh $v0, 0x4a($s0)
/* 425B98 802A9048 A600004C */ sh $zero, 0x4c($s0)
/* 425B9C 802A904C A2000060 */ sb $zero, 0x60($s0)
/* 425BA0 802A9050 0C0B1EAF */ jal get_variable
/* 425BA4 802A9054 8C650000 */ lw $a1, ($v1)
/* 425BA8 802A9058 3C048011 */ lui $a0, %hi(D_80108B28)
/* 425BAC 802A905C 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 425BB0 802A9060 A6020044 */ sh $v0, 0x44($s0)
/* 425BB4 802A9064 2402FFD0 */ addiu $v0, $zero, -0x30
/* 425BB8 802A9068 A6020056 */ sh $v0, 0x56($s0)
/* 425BBC 802A906C 24020050 */ addiu $v0, $zero, 0x50
/* 425BC0 802A9070 A6000048 */ sh $zero, 0x48($s0)
/* 425BC4 802A9074 3C01802B */ lui $at, %hi(D_802A9620)
/* 425BC8 802A9078 AC209620 */ sw $zero, %lo(D_802A9620)($at)
/* 425BCC 802A907C 0C050529 */ jal create_icon
/* 425BD0 802A9080 A6020058 */ sh $v0, 0x58($s0)
/* 425BD4 802A9084 0040882D */ daddu $s1, $v0, $zero
/* 425BD8 802A9088 0220202D */ daddu $a0, $s1, $zero
/* 425BDC 802A908C 24050082 */ addiu $a1, $zero, 0x82
/* 425BE0 802A9090 0C051280 */ jal set_icon_flags
/* 425BE4 802A9094 AE110004 */ sw $s1, 4($s0)
/* 425BE8 802A9098 86050056 */ lh $a1, 0x56($s0)
/* 425BEC 802A909C 86060058 */ lh $a2, 0x58($s0)
/* 425BF0 802A90A0 0C051261 */ jal set_icon_render_pos
/* 425BF4 802A90A4 0220202D */ daddu $a0, $s1, $zero
/* 425BF8 802A90A8 0220202D */ daddu $a0, $s1, $zero
/* 425BFC 802A90AC 0C051277 */ jal func_801449DC
/* 425C00 802A90B0 0000282D */ daddu $a1, $zero, $zero
/* 425C04 802A90B4 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 425C08 802A90B8 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 425C0C 802A90BC 0C050529 */ jal create_icon
/* 425C10 802A90C0 00000000 */ nop
/* 425C14 802A90C4 0040882D */ daddu $s1, $v0, $zero
/* 425C18 802A90C8 86050056 */ lh $a1, 0x56($s0)
/* 425C1C 802A90CC 86060058 */ lh $a2, 0x58($s0)
/* 425C20 802A90D0 0220202D */ daddu $a0, $s1, $zero
/* 425C24 802A90D4 AE110008 */ sw $s1, 8($s0)
/* 425C28 802A90D8 0C051261 */ jal set_icon_render_pos
/* 425C2C 802A90DC 24C6001C */ addiu $a2, $a2, 0x1c
/* 425C30 802A90E0 0220202D */ daddu $a0, $s1, $zero
/* 425C34 802A90E4 0C051277 */ jal func_801449DC
/* 425C38 802A90E8 0000282D */ daddu $a1, $zero, $zero
/* 425C3C 802A90EC 0220202D */ daddu $a0, $s1, $zero
/* 425C40 802A90F0 0C051280 */ jal set_icon_flags
/* 425C44 802A90F4 24050082 */ addiu $a1, $zero, 0x82
/* 425C48 802A90F8 3C048011 */ lui $a0, %hi(D_80109244)
/* 425C4C 802A90FC 24849244 */ addiu $a0, $a0, %lo(D_80109244)
/* 425C50 802A9100 0C050529 */ jal create_icon
/* 425C54 802A9104 00000000 */ nop
/* 425C58 802A9108 0040882D */ daddu $s1, $v0, $zero
/* 425C5C 802A910C 86050056 */ lh $a1, 0x56($s0)
/* 425C60 802A9110 86060058 */ lh $a2, 0x58($s0)
/* 425C64 802A9114 0220202D */ daddu $a0, $s1, $zero
/* 425C68 802A9118 AE11000C */ sw $s1, 0xc($s0)
/* 425C6C 802A911C 0C051261 */ jal set_icon_render_pos
/* 425C70 802A9120 24C6001C */ addiu $a2, $a2, 0x1c
/* 425C74 802A9124 0220202D */ daddu $a0, $s1, $zero
/* 425C78 802A9128 0C051277 */ jal func_801449DC
/* 425C7C 802A912C 0000282D */ daddu $a1, $zero, $zero
/* 425C80 802A9130 0220202D */ daddu $a0, $s1, $zero
/* 425C84 802A9134 0C051280 */ jal set_icon_flags
/* 425C88 802A9138 24050082 */ addiu $a1, $zero, 0x82
/* 425C8C 802A913C 3C04FFFF */ lui $a0, 0xffff
/* 425C90 802A9140 8E430000 */ lw $v1, ($s2)
/* 425C94 802A9144 34847FFF */ ori $a0, $a0, 0x7fff
/* 425C98 802A9148 00641824 */ and $v1, $v1, $a0
/* 425C9C 802A914C AE430000 */ sw $v1, ($s2)
/* 425CA0 802A9150 8FBF001C */ lw $ra, 0x1c($sp)
/* 425CA4 802A9154 8FB20018 */ lw $s2, 0x18($sp)
/* 425CA8 802A9158 8FB10014 */ lw $s1, 0x14($sp)
/* 425CAC 802A915C 8FB00010 */ lw $s0, 0x10($sp)
/* 425CB0 802A9160 24020002 */ addiu $v0, $zero, 2
/* 425CB4 802A9164 03E00008 */ jr $ra
/* 425CB8 802A9168 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,51 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A916C_425CBC
/* 425CBC 802A916C 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 425CC0 802A9170 AFB20018 */ sw $s2, 0x18($sp)
/* 425CC4 802A9174 0080902D */ daddu $s2, $a0, $zero
/* 425CC8 802A9178 AFBF001C */ sw $ra, 0x1c($sp)
/* 425CCC 802A917C AFB10014 */ sw $s1, 0x14($sp)
/* 425CD0 802A9180 AFB00010 */ sw $s0, 0x10($sp)
/* 425CD4 802A9184 8E50000C */ lw $s0, 0xc($s2)
/* 425CD8 802A9188 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 425CDC 802A918C 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 425CE0 802A9190 A220005E */ sb $zero, 0x5e($s1)
/* 425CE4 802A9194 8E050000 */ lw $a1, ($s0)
/* 425CE8 802A9198 0C0B1EAF */ jal get_variable
/* 425CEC 802A919C 26100004 */ addiu $s0, $s0, 4
/* 425CF0 802A91A0 A622004E */ sh $v0, 0x4e($s1)
/* 425CF4 802A91A4 8E050000 */ lw $a1, ($s0)
/* 425CF8 802A91A8 26100004 */ addiu $s0, $s0, 4
/* 425CFC 802A91AC 0C0B1EAF */ jal get_variable
/* 425D00 802A91B0 0240202D */ daddu $a0, $s2, $zero
/* 425D04 802A91B4 A6220052 */ sh $v0, 0x52($s1)
/* 425D08 802A91B8 8E050000 */ lw $a1, ($s0)
/* 425D0C 802A91BC 0C0B1EAF */ jal get_variable
/* 425D10 802A91C0 0240202D */ daddu $a0, $s2, $zero
/* 425D14 802A91C4 00022400 */ sll $a0, $v0, 0x10
/* 425D18 802A91C8 00042403 */ sra $a0, $a0, 0x10
/* 425D1C 802A91CC 0C09A089 */ jal func_80268224
/* 425D20 802A91D0 A6220050 */ sh $v0, 0x50($s1)
/* 425D24 802A91D4 3C05FFFF */ lui $a1, 0xffff
/* 425D28 802A91D8 3C03800E */ lui $v1, %hi(gBattleStatus)
/* 425D2C 802A91DC 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus)
/* 425D30 802A91E0 8C640000 */ lw $a0, ($v1)
/* 425D34 802A91E4 34A57FFF */ ori $a1, $a1, 0x7fff
/* 425D38 802A91E8 A6220050 */ sh $v0, 0x50($s1)
/* 425D3C 802A91EC A2200060 */ sb $zero, 0x60($s1)
/* 425D40 802A91F0 A0600081 */ sb $zero, 0x81($v1)
/* 425D44 802A91F4 A0600086 */ sb $zero, 0x86($v1)
/* 425D48 802A91F8 00852024 */ and $a0, $a0, $a1
/* 425D4C 802A91FC 0C093EBF */ jal func_8024FAFC
/* 425D50 802A9200 AC640000 */ sw $a0, ($v1)
/* 425D54 802A9204 2403000A */ addiu $v1, $zero, 0xa
/* 425D58 802A9208 A623004C */ sh $v1, 0x4c($s1)
/* 425D5C 802A920C 8FBF001C */ lw $ra, 0x1c($sp)
/* 425D60 802A9210 8FB20018 */ lw $s2, 0x18($sp)
/* 425D64 802A9214 8FB10014 */ lw $s1, 0x14($sp)
/* 425D68 802A9218 8FB00010 */ lw $s0, 0x10($sp)
/* 425D6C 802A921C 24020002 */ addiu $v0, $zero, 2
/* 425D70 802A9220 03E00008 */ jr $ra
/* 425D74 802A9224 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,188 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9228_425D78
/* 425D78 802A9228 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 425D7C 802A922C AFB10014 */ sw $s1, 0x14($sp)
/* 425D80 802A9230 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 425D84 802A9234 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 425D88 802A9238 AFBF0018 */ sw $ra, 0x18($sp)
/* 425D8C 802A923C AFB00010 */ sw $s0, 0x10($sp)
/* 425D90 802A9240 8623004C */ lh $v1, 0x4c($s1)
/* 425D94 802A9244 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 425D98 802A9248 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 425D9C 802A924C 2C62000D */ sltiu $v0, $v1, 0xd
/* 425DA0 802A9250 1040009C */ beqz $v0, .L802A94C4
/* 425DA4 802A9254 00031080 */ sll $v0, $v1, 2
/* 425DA8 802A9258 3C01802B */ lui $at, %hi(D_802A95E0)
/* 425DAC 802A925C 00220821 */ addu $at, $at, $v0
/* 425DB0 802A9260 8C2295E0 */ lw $v0, %lo(D_802A95E0)($at)
/* 425DB4 802A9264 00400008 */ jr $v0
/* 425DB8 802A9268 00000000 */ nop
/* 425DBC 802A926C 0C093EB1 */ jal set_popup_duration
/* 425DC0 802A9270 24040063 */ addiu $a0, $zero, 0x63
/* 425DC4 802A9274 82220061 */ lb $v0, 0x61($s1)
/* 425DC8 802A9278 8E300004 */ lw $s0, 4($s1)
/* 425DCC 802A927C 10400004 */ beqz $v0, .L802A9290
/* 425DD0 802A9280 0200202D */ daddu $a0, $s0, $zero
/* 425DD4 802A9284 0C05128B */ jal clear_icon_flags
/* 425DD8 802A9288 24050002 */ addiu $a1, $zero, 2
/* 425DDC 802A928C 0200202D */ daddu $a0, $s0, $zero
.L802A9290:
/* 425DE0 802A9290 0C0513AC */ jal icon_set_opacity
/* 425DE4 802A9294 240500FF */ addiu $a1, $zero, 0xff
/* 425DE8 802A9298 8E300008 */ lw $s0, 8($s1)
/* 425DEC 802A929C 240500FF */ addiu $a1, $zero, 0xff
/* 425DF0 802A92A0 0C0513AC */ jal icon_set_opacity
/* 425DF4 802A92A4 0200202D */ daddu $a0, $s0, $zero
/* 425DF8 802A92A8 82220061 */ lb $v0, 0x61($s1)
/* 425DFC 802A92AC 10400003 */ beqz $v0, .L802A92BC
/* 425E00 802A92B0 0200202D */ daddu $a0, $s0, $zero
/* 425E04 802A92B4 0C05128B */ jal clear_icon_flags
/* 425E08 802A92B8 24050002 */ addiu $a1, $zero, 2
.L802A92BC:
/* 425E0C 802A92BC 8E30000C */ lw $s0, 0xc($s1)
/* 425E10 802A92C0 240500FF */ addiu $a1, $zero, 0xff
/* 425E14 802A92C4 0C0513AC */ jal icon_set_opacity
/* 425E18 802A92C8 0200202D */ daddu $a0, $s0, $zero
/* 425E1C 802A92CC 82220061 */ lb $v0, 0x61($s1)
/* 425E20 802A92D0 10400003 */ beqz $v0, .L802A92E0
/* 425E24 802A92D4 0200202D */ daddu $a0, $s0, $zero
/* 425E28 802A92D8 0C05128B */ jal clear_icon_flags
/* 425E2C 802A92DC 24050002 */ addiu $a1, $zero, 2
.L802A92E0:
/* 425E30 802A92E0 24020001 */ addiu $v0, $zero, 1
/* 425E34 802A92E4 080AA531 */ j .L802A94C4
/* 425E38 802A92E8 A622004C */ sh $v0, 0x4c($s1)
/* 425E3C 802A92EC 0C093EB1 */ jal set_popup_duration
/* 425E40 802A92F0 24040063 */ addiu $a0, $zero, 0x63
/* 425E44 802A92F4 96220056 */ lhu $v0, 0x56($s1)
/* 425E48 802A92F8 24420014 */ addiu $v0, $v0, 0x14
/* 425E4C 802A92FC A6220056 */ sh $v0, 0x56($s1)
/* 425E50 802A9300 00021400 */ sll $v0, $v0, 0x10
/* 425E54 802A9304 00021403 */ sra $v0, $v0, 0x10
/* 425E58 802A9308 28420033 */ slti $v0, $v0, 0x33
/* 425E5C 802A930C 14400002 */ bnez $v0, .L802A9318
/* 425E60 802A9310 24020032 */ addiu $v0, $zero, 0x32
/* 425E64 802A9314 A6220056 */ sh $v0, 0x56($s1)
.L802A9318:
/* 425E68 802A9318 8E240004 */ lw $a0, 4($s1)
/* 425E6C 802A931C 86250056 */ lh $a1, 0x56($s1)
/* 425E70 802A9320 0C051261 */ jal set_icon_render_pos
/* 425E74 802A9324 86260058 */ lh $a2, 0x58($s1)
/* 425E78 802A9328 8E240008 */ lw $a0, 8($s1)
/* 425E7C 802A932C 86260058 */ lh $a2, 0x58($s1)
/* 425E80 802A9330 86250056 */ lh $a1, 0x56($s1)
/* 425E84 802A9334 0C051261 */ jal set_icon_render_pos
/* 425E88 802A9338 24C6001C */ addiu $a2, $a2, 0x1c
/* 425E8C 802A933C 8E24000C */ lw $a0, 0xc($s1)
/* 425E90 802A9340 86250056 */ lh $a1, 0x56($s1)
/* 425E94 802A9344 86260058 */ lh $a2, 0x58($s1)
/* 425E98 802A9348 24A5001F */ addiu $a1, $a1, 0x1f
/* 425E9C 802A934C 0C051261 */ jal set_icon_render_pos
/* 425EA0 802A9350 24C6000E */ addiu $a2, $a2, 0xe
/* 425EA4 802A9354 080AA531 */ j .L802A94C4
/* 425EA8 802A9358 00000000 */ nop
/* 425EAC 802A935C 0C093EB1 */ jal set_popup_duration
/* 425EB0 802A9360 24040063 */ addiu $a0, $zero, 0x63
/* 425EB4 802A9364 8622004E */ lh $v0, 0x4e($s1)
/* 425EB8 802A9368 9623004E */ lhu $v1, 0x4e($s1)
/* 425EBC 802A936C 10400003 */ beqz $v0, .L802A937C
/* 425EC0 802A9370 2462FFFF */ addiu $v0, $v1, -1
/* 425EC4 802A9374 080AA531 */ j .L802A94C4
/* 425EC8 802A9378 A622004E */ sh $v0, 0x4e($s1)
.L802A937C:
/* 425ECC 802A937C 8E240004 */ lw $a0, 4($s1)
/* 425ED0 802A9380 3C058011 */ lui $a1, %hi(D_80108B80)
/* 425ED4 802A9384 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80)
/* 425ED8 802A9388 0C0511FF */ jal set_menu_icon_script
/* 425EDC 802A938C 00000000 */ nop
/* 425EE0 802A9390 A2000081 */ sb $zero, 0x81($s0)
/* 425EE4 802A9394 96230052 */ lhu $v1, 0x52($s1)
/* 425EE8 802A9398 24020001 */ addiu $v0, $zero, 1
/* 425EEC 802A939C 3C01802B */ lui $at, %hi(D_802A9620)
/* 425EF0 802A93A0 AC229620 */ sw $v0, %lo(D_802A9620)($at)
/* 425EF4 802A93A4 2402000B */ addiu $v0, $zero, 0xb
/* 425EF8 802A93A8 A220005D */ sb $zero, 0x5d($s1)
/* 425EFC 802A93AC A622004C */ sh $v0, 0x4c($s1)
/* 425F00 802A93B0 A6230054 */ sh $v1, 0x54($s1)
/* 425F04 802A93B4 0C093EB1 */ jal set_popup_duration
/* 425F08 802A93B8 24040063 */ addiu $a0, $zero, 0x63
/* 425F0C 802A93BC 8E020214 */ lw $v0, 0x214($s0)
/* 425F10 802A93C0 30428000 */ andi $v0, $v0, 0x8000
/* 425F14 802A93C4 1040000E */ beqz $v0, .L802A9400
/* 425F18 802A93C8 00000000 */ nop
/* 425F1C 802A93CC 86220050 */ lh $v0, 0x50($s1)
/* 425F20 802A93D0 8E030434 */ lw $v1, 0x434($s0)
/* 425F24 802A93D4 00021080 */ sll $v0, $v0, 2
/* 425F28 802A93D8 00431021 */ addu $v0, $v0, $v1
/* 425F2C 802A93DC 8C430000 */ lw $v1, ($v0)
/* 425F30 802A93E0 00031040 */ sll $v0, $v1, 1
/* 425F34 802A93E4 00431021 */ addu $v0, $v0, $v1
/* 425F38 802A93E8 8223005D */ lb $v1, 0x5d($s1)
/* 425F3C 802A93EC 14600004 */ bnez $v1, .L802A9400
/* 425F40 802A93F0 00022040 */ sll $a0, $v0, 1
/* 425F44 802A93F4 96220044 */ lhu $v0, 0x44($s1)
/* 425F48 802A93F8 00441021 */ addu $v0, $v0, $a0
/* 425F4C 802A93FC A6220044 */ sh $v0, 0x44($s1)
.L802A9400:
/* 425F50 802A9400 86220044 */ lh $v0, 0x44($s1)
/* 425F54 802A9404 28422711 */ slti $v0, $v0, 0x2711
/* 425F58 802A9408 14400004 */ bnez $v0, .L802A941C
/* 425F5C 802A940C 24022710 */ addiu $v0, $zero, 0x2710
/* 425F60 802A9410 A6220044 */ sh $v0, 0x44($s1)
/* 425F64 802A9414 24020003 */ addiu $v0, $zero, 3
/* 425F68 802A9418 A222005D */ sb $v0, 0x5d($s1)
.L802A941C:
/* 425F6C 802A941C 8222005D */ lb $v0, 0x5d($s1)
/* 425F70 802A9420 9223005D */ lbu $v1, 0x5d($s1)
/* 425F74 802A9424 10400009 */ beqz $v0, .L802A944C
/* 425F78 802A9428 2462FFFF */ addiu $v0, $v1, -1
/* 425F7C 802A942C A222005D */ sb $v0, 0x5d($s1)
/* 425F80 802A9430 00021600 */ sll $v0, $v0, 0x18
/* 425F84 802A9434 14400006 */ bnez $v0, .L802A9450
/* 425F88 802A9438 3C0451EB */ lui $a0, 0x51eb
/* 425F8C 802A943C 92020081 */ lbu $v0, 0x81($s0)
/* 425F90 802A9440 A6200044 */ sh $zero, 0x44($s1)
/* 425F94 802A9444 24420001 */ addiu $v0, $v0, 1
/* 425F98 802A9448 A2020081 */ sb $v0, 0x81($s0)
.L802A944C:
/* 425F9C 802A944C 3C0451EB */ lui $a0, 0x51eb
.L802A9450:
/* 425FA0 802A9450 96230044 */ lhu $v1, 0x44($s1)
/* 425FA4 802A9454 3484851F */ ori $a0, $a0, 0x851f
/* 425FA8 802A9458 00031C00 */ sll $v1, $v1, 0x10
/* 425FAC 802A945C 00031403 */ sra $v0, $v1, 0x10
/* 425FB0 802A9460 00440018 */ mult $v0, $a0
/* 425FB4 802A9464 00031FC3 */ sra $v1, $v1, 0x1f
/* 425FB8 802A9468 00003810 */ mfhi $a3
/* 425FBC 802A946C 00071143 */ sra $v0, $a3, 5
/* 425FC0 802A9470 00431023 */ subu $v0, $v0, $v1
/* 425FC4 802A9474 A2020084 */ sb $v0, 0x84($s0)
/* 425FC8 802A9478 86220054 */ lh $v0, 0x54($s1)
/* 425FCC 802A947C 96230054 */ lhu $v1, 0x54($s1)
/* 425FD0 802A9480 1440000C */ bnez $v0, .L802A94B4
/* 425FD4 802A9484 2462FFFF */ addiu $v0, $v1, -1
/* 425FD8 802A9488 0C093EB1 */ jal set_popup_duration
/* 425FDC 802A948C 0000202D */ daddu $a0, $zero, $zero
/* 425FE0 802A9490 24020005 */ addiu $v0, $zero, 5
/* 425FE4 802A9494 A6220054 */ sh $v0, 0x54($s1)
/* 425FE8 802A9498 2402000C */ addiu $v0, $zero, 0xc
/* 425FEC 802A949C 080AA531 */ j .L802A94C4
/* 425FF0 802A94A0 A622004C */ sh $v0, 0x4c($s1)
/* 425FF4 802A94A4 86220054 */ lh $v0, 0x54($s1)
/* 425FF8 802A94A8 96230054 */ lhu $v1, 0x54($s1)
/* 425FFC 802A94AC 10400003 */ beqz $v0, .L802A94BC
/* 426000 802A94B0 2462FFFF */ addiu $v0, $v1, -1
.L802A94B4:
/* 426004 802A94B4 080AA531 */ j .L802A94C4
/* 426008 802A94B8 A6220054 */ sh $v0, 0x54($s1)
.L802A94BC:
/* 42600C 802A94BC 0C09A327 */ jal func_80268C9C
/* 426010 802A94C0 00000000 */ nop
.L802A94C4:
/* 426014 802A94C4 8FBF0018 */ lw $ra, 0x18($sp)
/* 426018 802A94C8 8FB10014 */ lw $s1, 0x14($sp)
/* 42601C 802A94CC 8FB00010 */ lw $s0, 0x10($sp)
/* 426020 802A94D0 03E00008 */ jr $ra
/* 426024 802A94D4 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,55 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A94D8_426028
/* 426028 802A94D8 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42602C 802A94DC AFB1001C */ sw $s1, 0x1c($sp)
/* 426030 802A94E0 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 426034 802A94E4 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 426038 802A94E8 AFBF0020 */ sw $ra, 0x20($sp)
/* 42603C 802A94EC AFB00018 */ sw $s0, 0x18($sp)
/* 426040 802A94F0 0C0511EA */ jal draw_icon_0
/* 426044 802A94F4 8E240004 */ lw $a0, 4($s1)
/* 426048 802A94F8 8E300008 */ lw $s0, 8($s1)
/* 42604C 802A94FC 0C0511EA */ jal draw_icon_0
/* 426050 802A9500 0200202D */ daddu $a0, $s0, $zero
/* 426054 802A9504 0200202D */ daddu $a0, $s0, $zero
/* 426058 802A9508 27A50010 */ addiu $a1, $sp, 0x10
/* 42605C 802A950C 0C05126B */ jal get_icon_render_pos
/* 426060 802A9510 27A60014 */ addiu $a2, $sp, 0x14
/* 426064 802A9514 3C02802B */ lui $v0, %hi(D_802A9620)
/* 426068 802A9518 8C429620 */ lw $v0, %lo(D_802A9620)($v0)
/* 42606C 802A951C 14400008 */ bnez $v0, .L802A9540
/* 426070 802A9520 3C0451EB */ lui $a0, 0x51eb
/* 426074 802A9524 96230044 */ lhu $v1, 0x44($s1)
/* 426078 802A9528 3484851F */ ori $a0, $a0, 0x851f
/* 42607C 802A952C 00031C00 */ sll $v1, $v1, 0x10
/* 426080 802A9530 00031403 */ sra $v0, $v1, 0x10
/* 426084 802A9534 00440018 */ mult $v0, $a0
/* 426088 802A9538 080AA556 */ j .L802A9558
/* 42608C 802A953C 24070001 */ addiu $a3, $zero, 1
.L802A9540:
/* 426090 802A9540 96230044 */ lhu $v1, 0x44($s1)
/* 426094 802A9544 3484851F */ ori $a0, $a0, 0x851f
/* 426098 802A9548 00031C00 */ sll $v1, $v1, 0x10
/* 42609C 802A954C 00031403 */ sra $v0, $v1, 0x10
/* 4260A0 802A9550 00440018 */ mult $v0, $a0
/* 4260A4 802A9554 24070002 */ addiu $a3, $zero, 2
.L802A9558:
/* 4260A8 802A9558 8FA50014 */ lw $a1, 0x14($sp)
/* 4260AC 802A955C 00031FC3 */ sra $v1, $v1, 0x1f
/* 4260B0 802A9560 8FA40010 */ lw $a0, 0x10($sp)
/* 4260B4 802A9564 00004010 */ mfhi $t0
/* 4260B8 802A9568 00083143 */ sra $a2, $t0, 5
/* 4260BC 802A956C 00C33023 */ subu $a2, $a2, $v1
/* 4260C0 802A9570 00063400 */ sll $a2, $a2, 0x10
/* 4260C4 802A9574 0C09A1E6 */ jal func_80268798
/* 4260C8 802A9578 00063403 */ sra $a2, $a2, 0x10
/* 4260CC 802A957C 8E24000C */ lw $a0, 0xc($s1)
/* 4260D0 802A9580 0C0511EA */ jal draw_icon_0
/* 4260D4 802A9584 00000000 */ nop
/* 4260D8 802A9588 8FBF0020 */ lw $ra, 0x20($sp)
/* 4260DC 802A958C 8FB1001C */ lw $s1, 0x1c($sp)
/* 4260E0 802A9590 8FB00018 */ lw $s0, 0x18($sp)
/* 4260E4 802A9594 03E00008 */ jr $ra
/* 4260E8 802A9598 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,21 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A959C_4260EC
/* 4260EC 802A959C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 4260F0 802A95A0 AFB00010 */ sw $s0, 0x10($sp)
/* 4260F4 802A95A4 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 4260F8 802A95A8 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 4260FC 802A95AC AFBF0014 */ sw $ra, 0x14($sp)
/* 426100 802A95B0 0C05123D */ jal free_icon
/* 426104 802A95B4 8E040004 */ lw $a0, 4($s0)
/* 426108 802A95B8 0C05123D */ jal free_icon
/* 42610C 802A95BC 8E040008 */ lw $a0, 8($s0)
/* 426110 802A95C0 0C05123D */ jal free_icon
/* 426114 802A95C4 8E04000C */ lw $a0, 0xc($s0)
/* 426118 802A95C8 8FBF0014 */ lw $ra, 0x14($sp)
/* 42611C 802A95CC 8FB00010 */ lw $s0, 0x10($sp)
/* 426120 802A95D0 03E00008 */ jr $ra
/* 426124 802A95D4 27BD0018 */ addiu $sp, $sp, 0x18
/* 426128 802A95D8 00000000 */ nop
/* 42612C 802A95DC 00000000 */ nop

View File

@ -0,0 +1,98 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_426170
/* 426170 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 426174 802A9004 AFB00010 */ sw $s0, 0x10($sp)
/* 426178 802A9008 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 42617C 802A900C 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 426180 802A9010 24020064 */ addiu $v0, $zero, 0x64
/* 426184 802A9014 AFBF0018 */ sw $ra, 0x18($sp)
/* 426188 802A9018 AFB10014 */ sw $s1, 0x14($sp)
/* 42618C 802A901C A2020082 */ sb $v0, 0x82($s0)
/* 426190 802A9020 3C028029 */ lui $v0, %hi(D_802942A0)
/* 426194 802A9024 244242A0 */ addiu $v0, $v0, %lo(D_802942A0)
/* 426198 802A9028 AE020434 */ sw $v0, 0x434($s0)
/* 42619C 802A902C 2402007F */ addiu $v0, $zero, 0x7f
/* 4261A0 802A9030 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 4261A4 802A9034 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 4261A8 802A9038 A2020086 */ sb $v0, 0x86($s0)
/* 4261AC 802A903C 82020083 */ lb $v0, 0x83($s0)
/* 4261B0 802A9040 10400044 */ beqz $v0, .L802A9154
/* 4261B4 802A9044 0200182D */ daddu $v1, $s0, $zero
/* 4261B8 802A9048 0C09A216 */ jal func_80268858
/* 4261BC 802A904C 00000000 */ nop
/* 4261C0 802A9050 3C048011 */ lui $a0, %hi(D_80108B28)
/* 4261C4 802A9054 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 4261C8 802A9058 24020008 */ addiu $v0, $zero, 8
/* 4261CC 802A905C A622004A */ sh $v0, 0x4a($s1)
/* 4261D0 802A9060 24020001 */ addiu $v0, $zero, 1
/* 4261D4 802A9064 A2220061 */ sb $v0, 0x61($s1)
/* 4261D8 802A9068 2402FFD0 */ addiu $v0, $zero, -0x30
/* 4261DC 802A906C A620004C */ sh $zero, 0x4c($s1)
/* 4261E0 802A9070 A2200060 */ sb $zero, 0x60($s1)
/* 4261E4 802A9074 A6200044 */ sh $zero, 0x44($s1)
/* 4261E8 802A9078 A6200048 */ sh $zero, 0x48($s1)
/* 4261EC 802A907C A6200068 */ sh $zero, 0x68($s1)
/* 4261F0 802A9080 A2000081 */ sb $zero, 0x81($s0)
/* 4261F4 802A9084 A6220056 */ sh $v0, 0x56($s1)
/* 4261F8 802A9088 24020050 */ addiu $v0, $zero, 0x50
/* 4261FC 802A908C 0C050529 */ jal create_icon
/* 426200 802A9090 A6220058 */ sh $v0, 0x58($s1)
/* 426204 802A9094 0040802D */ daddu $s0, $v0, $zero
/* 426208 802A9098 86250056 */ lh $a1, 0x56($s1)
/* 42620C 802A909C 86260058 */ lh $a2, 0x58($s1)
/* 426210 802A90A0 0200202D */ daddu $a0, $s0, $zero
/* 426214 802A90A4 0C051261 */ jal set_icon_render_pos
/* 426218 802A90A8 AE300004 */ sw $s0, 4($s1)
/* 42621C 802A90AC 0200202D */ daddu $a0, $s0, $zero
/* 426220 802A90B0 0C051277 */ jal func_801449DC
/* 426224 802A90B4 0000282D */ daddu $a1, $zero, $zero
/* 426228 802A90B8 0200202D */ daddu $a0, $s0, $zero
/* 42622C 802A90BC 0C051280 */ jal set_icon_flags
/* 426230 802A90C0 24050082 */ addiu $a1, $zero, 0x82
/* 426234 802A90C4 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 426238 802A90C8 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 42623C 802A90CC 0C050529 */ jal create_icon
/* 426240 802A90D0 00000000 */ nop
/* 426244 802A90D4 0040802D */ daddu $s0, $v0, $zero
/* 426248 802A90D8 86250056 */ lh $a1, 0x56($s1)
/* 42624C 802A90DC 86260058 */ lh $a2, 0x58($s1)
/* 426250 802A90E0 0200202D */ daddu $a0, $s0, $zero
/* 426254 802A90E4 AE300008 */ sw $s0, 8($s1)
/* 426258 802A90E8 0C051261 */ jal set_icon_render_pos
/* 42625C 802A90EC 24C6001C */ addiu $a2, $a2, 0x1c
/* 426260 802A90F0 0200202D */ daddu $a0, $s0, $zero
/* 426264 802A90F4 0C051277 */ jal func_801449DC
/* 426268 802A90F8 0000282D */ daddu $a1, $zero, $zero
/* 42626C 802A90FC 0200202D */ daddu $a0, $s0, $zero
/* 426270 802A9100 0C051280 */ jal set_icon_flags
/* 426274 802A9104 24050082 */ addiu $a1, $zero, 0x82
/* 426278 802A9108 3C048029 */ lui $a0, %hi(D_80292974)
/* 42627C 802A910C 24842974 */ addiu $a0, $a0, %lo(D_80292974)
/* 426280 802A9110 0C050529 */ jal create_icon
/* 426284 802A9114 00000000 */ nop
/* 426288 802A9118 0040802D */ daddu $s0, $v0, $zero
/* 42628C 802A911C 86250056 */ lh $a1, 0x56($s1)
/* 426290 802A9120 86260058 */ lh $a2, 0x58($s1)
/* 426294 802A9124 0200202D */ daddu $a0, $s0, $zero
/* 426298 802A9128 AE30000C */ sw $s0, 0xc($s1)
/* 42629C 802A912C 0C051261 */ jal set_icon_render_pos
/* 4262A0 802A9130 24C6001C */ addiu $a2, $a2, 0x1c
/* 4262A4 802A9134 0200202D */ daddu $a0, $s0, $zero
/* 4262A8 802A9138 0C051277 */ jal func_801449DC
/* 4262AC 802A913C 0000282D */ daddu $a1, $zero, $zero
/* 4262B0 802A9140 0200202D */ daddu $a0, $s0, $zero
/* 4262B4 802A9144 0C051280 */ jal set_icon_flags
/* 4262B8 802A9148 24050082 */ addiu $a1, $zero, 0x82
/* 4262BC 802A914C 080AA457 */ j .L802A915C
/* 4262C0 802A9150 24020002 */ addiu $v0, $zero, 2
.L802A9154:
/* 4262C4 802A9154 A0600081 */ sb $zero, 0x81($v1)
/* 4262C8 802A9158 24020002 */ addiu $v0, $zero, 2
.L802A915C:
/* 4262CC 802A915C 8FBF0018 */ lw $ra, 0x18($sp)
/* 4262D0 802A9160 8FB10014 */ lw $s1, 0x14($sp)
/* 4262D4 802A9164 8FB00010 */ lw $s0, 0x10($sp)
/* 4262D8 802A9168 03E00008 */ jr $ra
/* 4262DC 802A916C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,77 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9170_4262E0
/* 4262E0 802A9170 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 4262E4 802A9174 AFB3001C */ sw $s3, 0x1c($sp)
/* 4262E8 802A9178 0080982D */ daddu $s3, $a0, $zero
/* 4262EC 802A917C AFB10014 */ sw $s1, 0x14($sp)
/* 4262F0 802A9180 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 4262F4 802A9184 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 4262F8 802A9188 AFB20018 */ sw $s2, 0x18($sp)
/* 4262FC 802A918C 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 426300 802A9190 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 426304 802A9194 AFBF0020 */ sw $ra, 0x20($sp)
/* 426308 802A9198 AFB00010 */ sw $s0, 0x10($sp)
/* 42630C 802A919C 82420083 */ lb $v0, 0x83($s2)
/* 426310 802A91A0 8E70000C */ lw $s0, 0xc($s3)
/* 426314 802A91A4 10400030 */ beqz $v0, .L802A9268
/* 426318 802A91A8 0240182D */ daddu $v1, $s2, $zero
/* 42631C 802A91AC 0C09A216 */ jal func_80268858
/* 426320 802A91B0 00000000 */ nop
/* 426324 802A91B4 8E050000 */ lw $a1, ($s0)
/* 426328 802A91B8 26100004 */ addiu $s0, $s0, 4
/* 42632C 802A91BC 0C0B1EAF */ jal get_variable
/* 426330 802A91C0 0260202D */ daddu $a0, $s3, $zero
/* 426334 802A91C4 A622004E */ sh $v0, 0x4e($s1)
/* 426338 802A91C8 8E050000 */ lw $a1, ($s0)
/* 42633C 802A91CC 26100004 */ addiu $s0, $s0, 4
/* 426340 802A91D0 0C0B1EAF */ jal get_variable
/* 426344 802A91D4 0260202D */ daddu $a0, $s3, $zero
/* 426348 802A91D8 A6220052 */ sh $v0, 0x52($s1)
/* 42634C 802A91DC 8E050000 */ lw $a1, ($s0)
/* 426350 802A91E0 26100004 */ addiu $s0, $s0, 4
/* 426354 802A91E4 0C0B1EAF */ jal get_variable
/* 426358 802A91E8 0260202D */ daddu $a0, $s3, $zero
/* 42635C 802A91EC 00022400 */ sll $a0, $v0, 0x10
/* 426360 802A91F0 00042403 */ sra $a0, $a0, 0x10
/* 426364 802A91F4 0C09A089 */ jal func_80268224
/* 426368 802A91F8 A6220050 */ sh $v0, 0x50($s1)
/* 42636C 802A91FC A6220050 */ sh $v0, 0x50($s1)
/* 426370 802A9200 8E050000 */ lw $a1, ($s0)
/* 426374 802A9204 0C0B1EAF */ jal get_variable
/* 426378 802A9208 0260202D */ daddu $a0, $s3, $zero
/* 42637C 802A920C 3C05FFFF */ lui $a1, 0xffff
/* 426380 802A9210 34A57FFF */ ori $a1, $a1, 0x7fff
/* 426384 802A9214 A6220064 */ sh $v0, 0x64($s1)
/* 426388 802A9218 A2200060 */ sb $zero, 0x60($s1)
/* 42638C 802A921C A6200044 */ sh $zero, 0x44($s1)
/* 426390 802A9220 A6200048 */ sh $zero, 0x48($s1)
/* 426394 802A9224 A2400081 */ sb $zero, 0x81($s2)
/* 426398 802A9228 82220080 */ lb $v0, 0x80($s1)
/* 42639C 802A922C 2403007F */ addiu $v1, $zero, 0x7f
/* 4263A0 802A9230 A2430086 */ sb $v1, 0x86($s2)
/* 4263A4 802A9234 8E430000 */ lw $v1, ($s2)
/* 4263A8 802A9238 2442FFFF */ addiu $v0, $v0, -1
/* 4263AC 802A923C 00021040 */ sll $v0, $v0, 1
/* 4263B0 802A9240 00511021 */ addu $v0, $v0, $s1
/* 4263B4 802A9244 00651824 */ and $v1, $v1, $a1
/* 4263B8 802A9248 90440075 */ lbu $a0, 0x75($v0)
/* 4263BC 802A924C 2402000A */ addiu $v0, $zero, 0xa
/* 4263C0 802A9250 AE430000 */ sw $v1, ($s2)
/* 4263C4 802A9254 A622004C */ sh $v0, 0x4c($s1)
/* 4263C8 802A9258 0C09A446 */ jal func_80269118
/* 4263CC 802A925C A2440082 */ sb $a0, 0x82($s2)
/* 4263D0 802A9260 080AA49C */ j .L802A9270
/* 4263D4 802A9264 24020002 */ addiu $v0, $zero, 2
.L802A9268:
/* 4263D8 802A9268 A0600081 */ sb $zero, 0x81($v1)
/* 4263DC 802A926C 24020002 */ addiu $v0, $zero, 2
.L802A9270:
/* 4263E0 802A9270 8FBF0020 */ lw $ra, 0x20($sp)
/* 4263E4 802A9274 8FB3001C */ lw $s3, 0x1c($sp)
/* 4263E8 802A9278 8FB20018 */ lw $s2, 0x18($sp)
/* 4263EC 802A927C 8FB10014 */ lw $s1, 0x14($sp)
/* 4263F0 802A9280 8FB00010 */ lw $s0, 0x10($sp)
/* 4263F4 802A9284 03E00008 */ jr $ra
/* 4263F8 802A9288 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,302 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A928C_4263FC
/* 4263FC 802A928C 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 426400 802A9290 AFB10014 */ sw $s1, 0x14($sp)
/* 426404 802A9294 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 426408 802A9298 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42640C 802A929C AFBF001C */ sw $ra, 0x1c($sp)
/* 426410 802A92A0 AFB20018 */ sw $s2, 0x18($sp)
/* 426414 802A92A4 AFB00010 */ sw $s0, 0x10($sp)
/* 426418 802A92A8 8623004C */ lh $v1, 0x4c($s1)
/* 42641C 802A92AC 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 426420 802A92B0 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 426424 802A92B4 2C62000D */ sltiu $v0, $v1, 0xd
/* 426428 802A92B8 10400102 */ beqz $v0, .L802A96C4
/* 42642C 802A92BC 00031080 */ sll $v0, $v1, 2
/* 426430 802A92C0 3C01802B */ lui $at, %hi(D_802A9820)
/* 426434 802A92C4 00220821 */ addu $at, $at, $v0
/* 426438 802A92C8 8C229820 */ lw $v0, %lo(D_802A9820)($at)
/* 42643C 802A92CC 00400008 */ jr $v0
/* 426440 802A92D0 00000000 */ nop
/* 426444 802A92D4 0C093EB1 */ jal set_popup_duration
/* 426448 802A92D8 24040063 */ addiu $a0, $zero, 0x63
/* 42644C 802A92DC 8E300004 */ lw $s0, 4($s1)
/* 426450 802A92E0 240500FF */ addiu $a1, $zero, 0xff
/* 426454 802A92E4 0C0513AC */ jal icon_set_opacity
/* 426458 802A92E8 0200202D */ daddu $a0, $s0, $zero
/* 42645C 802A92EC 82220061 */ lb $v0, 0x61($s1)
/* 426460 802A92F0 10400003 */ beqz $v0, .L802A9300
/* 426464 802A92F4 0200202D */ daddu $a0, $s0, $zero
/* 426468 802A92F8 0C05128B */ jal clear_icon_flags
/* 42646C 802A92FC 24050002 */ addiu $a1, $zero, 2
.L802A9300:
/* 426470 802A9300 8E300008 */ lw $s0, 8($s1)
/* 426474 802A9304 240500FF */ addiu $a1, $zero, 0xff
/* 426478 802A9308 0C0513AC */ jal icon_set_opacity
/* 42647C 802A930C 0200202D */ daddu $a0, $s0, $zero
/* 426480 802A9310 82220061 */ lb $v0, 0x61($s1)
/* 426484 802A9314 10400003 */ beqz $v0, .L802A9324
/* 426488 802A9318 0200202D */ daddu $a0, $s0, $zero
/* 42648C 802A931C 0C05128B */ jal clear_icon_flags
/* 426490 802A9320 24050002 */ addiu $a1, $zero, 2
.L802A9324:
/* 426494 802A9324 24020001 */ addiu $v0, $zero, 1
/* 426498 802A9328 080AA5B1 */ j .L802A96C4
/* 42649C 802A932C A622004C */ sh $v0, 0x4c($s1)
/* 4264A0 802A9330 0C093EB1 */ jal set_popup_duration
/* 4264A4 802A9334 24040063 */ addiu $a0, $zero, 0x63
/* 4264A8 802A9338 96220056 */ lhu $v0, 0x56($s1)
/* 4264AC 802A933C 24420014 */ addiu $v0, $v0, 0x14
/* 4264B0 802A9340 A6220056 */ sh $v0, 0x56($s1)
/* 4264B4 802A9344 00021400 */ sll $v0, $v0, 0x10
/* 4264B8 802A9348 00021403 */ sra $v0, $v0, 0x10
/* 4264BC 802A934C 28420033 */ slti $v0, $v0, 0x33
/* 4264C0 802A9350 14400002 */ bnez $v0, .L802A935C
/* 4264C4 802A9354 24020032 */ addiu $v0, $zero, 0x32
/* 4264C8 802A9358 A6220056 */ sh $v0, 0x56($s1)
.L802A935C:
/* 4264CC 802A935C 8E240004 */ lw $a0, 4($s1)
/* 4264D0 802A9360 86250056 */ lh $a1, 0x56($s1)
/* 4264D4 802A9364 0C051261 */ jal set_icon_render_pos
/* 4264D8 802A9368 86260058 */ lh $a2, 0x58($s1)
/* 4264DC 802A936C 8E240008 */ lw $a0, 8($s1)
/* 4264E0 802A9370 86260058 */ lh $a2, 0x58($s1)
/* 4264E4 802A9374 86250056 */ lh $a1, 0x56($s1)
/* 4264E8 802A9378 0C051261 */ jal set_icon_render_pos
/* 4264EC 802A937C 24C6001C */ addiu $a2, $a2, 0x1c
/* 4264F0 802A9380 080AA5B1 */ j .L802A96C4
/* 4264F4 802A9384 00000000 */ nop
/* 4264F8 802A9388 0C093EB1 */ jal set_popup_duration
/* 4264FC 802A938C 24040063 */ addiu $a0, $zero, 0x63
/* 426500 802A9390 8622004E */ lh $v0, 0x4e($s1)
/* 426504 802A9394 9623004E */ lhu $v1, 0x4e($s1)
/* 426508 802A9398 10400003 */ beqz $v0, .L802A93A8
/* 42650C 802A939C 2462FFFF */ addiu $v0, $v1, -1
/* 426510 802A93A0 080AA5B1 */ j .L802A96C4
/* 426514 802A93A4 A622004E */ sh $v0, 0x4e($s1)
.L802A93A8:
/* 426518 802A93A8 8E240004 */ lw $a0, 4($s1)
/* 42651C 802A93AC 3C058011 */ lui $a1, %hi(D_80108B80)
/* 426520 802A93B0 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80)
/* 426524 802A93B4 0C0511FF */ jal set_menu_icon_script
/* 426528 802A93B8 00000000 */ nop
/* 42652C 802A93BC 3C048000 */ lui $a0, 0x8000
/* 426530 802A93C0 34840041 */ ori $a0, $a0, 0x41
/* 426534 802A93C4 0000282D */ daddu $a1, $zero, $zero
/* 426538 802A93C8 00A0302D */ daddu $a2, $a1, $zero
/* 42653C 802A93CC 96220052 */ lhu $v0, 0x52($s1)
/* 426540 802A93D0 00A0382D */ daddu $a3, $a1, $zero
/* 426544 802A93D4 A6200044 */ sh $zero, 0x44($s1)
/* 426548 802A93D8 0C0526AE */ jal _play_sound
/* 42654C 802A93DC A6220054 */ sh $v0, 0x54($s1)
/* 426550 802A93E0 2402000B */ addiu $v0, $zero, 0xb
/* 426554 802A93E4 A622004C */ sh $v0, 0x4c($s1)
/* 426558 802A93E8 0C093EB1 */ jal set_popup_duration
/* 42655C 802A93EC 24040063 */ addiu $a0, $zero, 0x63
/* 426560 802A93F0 86220068 */ lh $v0, 0x68($s1)
/* 426564 802A93F4 14400027 */ bnez $v0, .L802A9494
/* 426568 802A93F8 00000000 */ nop
/* 42656C 802A93FC 86220064 */ lh $v0, 0x64($s1)
/* 426570 802A9400 1040001E */ beqz $v0, .L802A947C
/* 426574 802A9404 00000000 */ nop
/* 426578 802A9408 82220080 */ lb $v0, 0x80($s1)
/* 42657C 802A940C 00021040 */ sll $v0, $v0, 1
/* 426580 802A9410 02221021 */ addu $v0, $s1, $v0
/* 426584 802A9414 84430074 */ lh $v1, 0x74($v0)
/* 426588 802A9418 86220044 */ lh $v0, 0x44($s1)
/* 42658C 802A941C 14600002 */ bnez $v1, .L802A9428
/* 426590 802A9420 0043001A */ div $zero, $v0, $v1
/* 426594 802A9424 0007000D */ break 7
.L802A9428:
/* 426598 802A9428 2401FFFF */ addiu $at, $zero, -1
/* 42659C 802A942C 14610004 */ bne $v1, $at, .L802A9440
/* 4265A0 802A9430 3C018000 */ lui $at, 0x8000
/* 4265A4 802A9434 14410002 */ bne $v0, $at, .L802A9440
/* 4265A8 802A9438 00000000 */ nop
/* 4265AC 802A943C 0006000D */ break 6
.L802A9440:
/* 4265B0 802A9440 00001012 */ mflo $v0
/* 4265B4 802A9444 3C036666 */ lui $v1, 0x6666
/* 4265B8 802A9448 34636667 */ ori $v1, $v1, 0x6667
/* 4265BC 802A944C 00430018 */ mult $v0, $v1
/* 4265C0 802A9450 000217C3 */ sra $v0, $v0, 0x1f
/* 4265C4 802A9454 00001810 */ mfhi $v1
/* 4265C8 802A9458 000318C3 */ sra $v1, $v1, 3
/* 4265CC 802A945C 00621823 */ subu $v1, $v1, $v0
/* 4265D0 802A9460 00031880 */ sll $v1, $v1, 2
/* 4265D4 802A9464 96220044 */ lhu $v0, 0x44($s1)
/* 4265D8 802A9468 3C01802B */ lui $at, %hi(D_802A9802)
/* 4265DC 802A946C 00230821 */ addu $at, $at, $v1
/* 4265E0 802A9470 94239802 */ lhu $v1, %lo(D_802A9802)($at)
/* 4265E4 802A9474 080AA521 */ j .L802A9484
/* 4265E8 802A9478 00431023 */ subu $v0, $v0, $v1
.L802A947C:
/* 4265EC 802A947C 96220044 */ lhu $v0, 0x44($s1)
/* 4265F0 802A9480 2442FFF6 */ addiu $v0, $v0, -0xa
.L802A9484:
/* 4265F4 802A9484 A6220044 */ sh $v0, 0x44($s1)
/* 4265F8 802A9488 00021400 */ sll $v0, $v0, 0x10
/* 4265FC 802A948C 04420001 */ bltzl $v0, .L802A9494
/* 426600 802A9490 A6200044 */ sh $zero, 0x44($s1)
.L802A9494:
/* 426604 802A9494 8E420214 */ lw $v0, 0x214($s2)
/* 426608 802A9498 30428000 */ andi $v0, $v0, 0x8000
/* 42660C 802A949C 10400025 */ beqz $v0, .L802A9534
/* 426610 802A94A0 00000000 */ nop
/* 426614 802A94A4 86240050 */ lh $a0, 0x50($s1)
/* 426618 802A94A8 8E420434 */ lw $v0, 0x434($s2)
/* 42661C 802A94AC 86230064 */ lh $v1, 0x64($s1)
/* 426620 802A94B0 00042080 */ sll $a0, $a0, 2
/* 426624 802A94B4 00822021 */ addu $a0, $a0, $v0
/* 426628 802A94B8 00031040 */ sll $v0, $v1, 1
/* 42662C 802A94BC 00431021 */ addu $v0, $v0, $v1
/* 426630 802A94C0 000210C0 */ sll $v0, $v0, 3
/* 426634 802A94C4 00431021 */ addu $v0, $v0, $v1
/* 426638 802A94C8 00021900 */ sll $v1, $v0, 4
/* 42663C 802A94CC 00431021 */ addu $v0, $v0, $v1
/* 426640 802A94D0 8C830000 */ lw $v1, ($a0)
/* 426644 802A94D4 00021040 */ sll $v0, $v0, 1
/* 426648 802A94D8 00620018 */ mult $v1, $v0
/* 42664C 802A94DC 00001812 */ mflo $v1
/* 426650 802A94E0 3C0268DB */ lui $v0, 0x68db
/* 426654 802A94E4 34428BAD */ ori $v0, $v0, 0x8bad
/* 426658 802A94E8 00620018 */ mult $v1, $v0
/* 42665C 802A94EC 00031FC3 */ sra $v1, $v1, 0x1f
/* 426660 802A94F0 00001010 */ mfhi $v0
/* 426664 802A94F4 00021303 */ sra $v0, $v0, 0xc
/* 426668 802A94F8 00431823 */ subu $v1, $v0, $v1
/* 42666C 802A94FC 10600004 */ beqz $v1, .L802A9510
/* 426670 802A9500 00000000 */ nop
/* 426674 802A9504 96220044 */ lhu $v0, 0x44($s1)
/* 426678 802A9508 080AA54C */ j .L802A9530
/* 42667C 802A950C 00431021 */ addu $v0, $v0, $v1
.L802A9510:
/* 426680 802A9510 96220044 */ lhu $v0, 0x44($s1)
/* 426684 802A9514 24420064 */ addiu $v0, $v0, 0x64
/* 426688 802A9518 A6220044 */ sh $v0, 0x44($s1)
/* 42668C 802A951C 00021400 */ sll $v0, $v0, 0x10
/* 426690 802A9520 00021403 */ sra $v0, $v0, 0x10
/* 426694 802A9524 284201F4 */ slti $v0, $v0, 0x1f4
/* 426698 802A9528 14400002 */ bnez $v0, .L802A9534
/* 42669C 802A952C 240201F4 */ addiu $v0, $zero, 0x1f4
.L802A9530:
/* 4266A0 802A9530 A6220044 */ sh $v0, 0x44($s1)
.L802A9534:
/* 4266A4 802A9534 86220044 */ lh $v0, 0x44($s1)
/* 4266A8 802A9538 28422710 */ slti $v0, $v0, 0x2710
/* 4266AC 802A953C 14400010 */ bnez $v0, .L802A9580
/* 4266B0 802A9540 3C1051EB */ lui $s0, 0x51eb
/* 4266B4 802A9544 8E30000C */ lw $s0, 0xc($s1)
/* 4266B8 802A9548 86250056 */ lh $a1, 0x56($s1)
/* 4266BC 802A954C 86260058 */ lh $a2, 0x58($s1)
/* 4266C0 802A9550 24022710 */ addiu $v0, $zero, 0x2710
/* 4266C4 802A9554 A6220044 */ sh $v0, 0x44($s1)
/* 4266C8 802A9558 24020001 */ addiu $v0, $zero, 1
/* 4266CC 802A955C A6220068 */ sh $v0, 0x68($s1)
/* 4266D0 802A9560 0200202D */ daddu $a0, $s0, $zero
/* 4266D4 802A9564 24A50032 */ addiu $a1, $a1, 0x32
/* 4266D8 802A9568 0C051261 */ jal set_icon_render_pos
/* 4266DC 802A956C 24C6001C */ addiu $a2, $a2, 0x1c
/* 4266E0 802A9570 0200202D */ daddu $a0, $s0, $zero
/* 4266E4 802A9574 0C05128B */ jal clear_icon_flags
/* 4266E8 802A9578 24050002 */ addiu $a1, $zero, 2
/* 4266EC 802A957C 3C1051EB */ lui $s0, 0x51eb
.L802A9580:
/* 4266F0 802A9580 3610851F */ ori $s0, $s0, 0x851f
/* 4266F4 802A9584 96230044 */ lhu $v1, 0x44($s1)
/* 4266F8 802A9588 3C048000 */ lui $a0, 0x8000
/* 4266FC 802A958C 00031C00 */ sll $v1, $v1, 0x10
/* 426700 802A9590 00031403 */ sra $v0, $v1, 0x10
/* 426704 802A9594 00500018 */ mult $v0, $s0
/* 426708 802A9598 34840041 */ ori $a0, $a0, 0x41
/* 42670C 802A959C 0000282D */ daddu $a1, $zero, $zero
/* 426710 802A95A0 00A0302D */ daddu $a2, $a1, $zero
/* 426714 802A95A4 00031FC3 */ sra $v1, $v1, 0x1f
/* 426718 802A95A8 00004810 */ mfhi $t1
/* 42671C 802A95AC 00094143 */ sra $t0, $t1, 5
/* 426720 802A95B0 01034023 */ subu $t0, $t0, $v1
/* 426724 802A95B4 00081600 */ sll $v0, $t0, 0x18
/* 426728 802A95B8 00021603 */ sra $v0, $v0, 0x18
/* 42672C 802A95BC 00023840 */ sll $a3, $v0, 1
/* 426730 802A95C0 00E23821 */ addu $a3, $a3, $v0
/* 426734 802A95C4 00073880 */ sll $a3, $a3, 2
/* 426738 802A95C8 0C0526F9 */ jal func_80149BE4
/* 42673C 802A95CC A2480084 */ sb $t0, 0x84($s2)
/* 426740 802A95D0 86220054 */ lh $v0, 0x54($s1)
/* 426744 802A95D4 96230054 */ lhu $v1, 0x54($s1)
/* 426748 802A95D8 14400036 */ bnez $v0, .L802A96B4
/* 42674C 802A95DC 2462FFFF */ addiu $v0, $v1, -1
/* 426750 802A95E0 86220064 */ lh $v0, 0x64($s1)
/* 426754 802A95E4 86230044 */ lh $v1, 0x44($s1)
/* 426758 802A95E8 50400001 */ beql $v0, $zero, .L802A95F0
/* 42675C 802A95EC 0000182D */ daddu $v1, $zero, $zero
.L802A95F0:
/* 426760 802A95F0 14600003 */ bnez $v1, .L802A9600
/* 426764 802A95F4 00700018 */ mult $v1, $s0
/* 426768 802A95F8 080AA584 */ j .L802A9610
/* 42676C 802A95FC 2402FFFF */ addiu $v0, $zero, -1
.L802A9600:
/* 426770 802A9600 00031FC3 */ sra $v1, $v1, 0x1f
/* 426774 802A9604 00004810 */ mfhi $t1
/* 426778 802A9608 00091143 */ sra $v0, $t1, 5
/* 42677C 802A960C 00431023 */ subu $v0, $v0, $v1
.L802A9610:
/* 426780 802A9610 A2420081 */ sb $v0, 0x81($s2)
/* 426784 802A9614 82220080 */ lb $v0, 0x80($s1)
/* 426788 802A9618 2442FFFF */ addiu $v0, $v0, -1
/* 42678C 802A961C 00021040 */ sll $v0, $v0, 1
/* 426790 802A9620 02221021 */ addu $v0, $s1, $v0
/* 426794 802A9624 84430074 */ lh $v1, 0x74($v0)
/* 426798 802A9628 82420081 */ lb $v0, 0x81($s2)
/* 42679C 802A962C 0043102A */ slt $v0, $v0, $v1
/* 4267A0 802A9630 14400002 */ bnez $v0, .L802A963C
/* 4267A4 802A9634 2402FFFE */ addiu $v0, $zero, -2
/* 4267A8 802A9638 24020001 */ addiu $v0, $zero, 1
.L802A963C:
/* 4267AC 802A963C A2420086 */ sb $v0, 0x86($s2)
/* 4267B0 802A9640 82430081 */ lb $v1, 0x81($s2)
/* 4267B4 802A9644 24020064 */ addiu $v0, $zero, 0x64
/* 4267B8 802A9648 14620004 */ bne $v1, $v0, .L802A965C
/* 4267BC 802A964C 3C048000 */ lui $a0, 0x8000
/* 4267C0 802A9650 0C09A458 */ jal func_80269160
/* 4267C4 802A9654 00000000 */ nop
/* 4267C8 802A9658 3C048000 */ lui $a0, 0x8000
.L802A965C:
/* 4267CC 802A965C 0C05271B */ jal stop_sound
/* 4267D0 802A9660 34840041 */ ori $a0, $a0, 0x41
/* 4267D4 802A9664 0C093EB1 */ jal set_popup_duration
/* 4267D8 802A9668 0000202D */ daddu $a0, $zero, $zero
/* 4267DC 802A966C 24020005 */ addiu $v0, $zero, 5
/* 4267E0 802A9670 A6220054 */ sh $v0, 0x54($s1)
/* 4267E4 802A9674 2402000C */ addiu $v0, $zero, 0xc
/* 4267E8 802A9678 080AA5B1 */ j .L802A96C4
/* 4267EC 802A967C A622004C */ sh $v0, 0x4c($s1)
/* 4267F0 802A9680 86220064 */ lh $v0, 0x64($s1)
/* 4267F4 802A9684 14400007 */ bnez $v0, .L802A96A4
/* 4267F8 802A9688 00000000 */ nop
/* 4267FC 802A968C 96220044 */ lhu $v0, 0x44($s1)
/* 426800 802A9690 2442FF9C */ addiu $v0, $v0, -0x64
/* 426804 802A9694 A6220044 */ sh $v0, 0x44($s1)
/* 426808 802A9698 00021400 */ sll $v0, $v0, 0x10
/* 42680C 802A969C 04420001 */ bltzl $v0, .L802A96A4
/* 426810 802A96A0 A6200044 */ sh $zero, 0x44($s1)
.L802A96A4:
/* 426814 802A96A4 86220054 */ lh $v0, 0x54($s1)
/* 426818 802A96A8 96230054 */ lhu $v1, 0x54($s1)
/* 42681C 802A96AC 10400003 */ beqz $v0, .L802A96BC
/* 426820 802A96B0 2462FFFF */ addiu $v0, $v1, -1
.L802A96B4:
/* 426824 802A96B4 080AA5B1 */ j .L802A96C4
/* 426828 802A96B8 A6220054 */ sh $v0, 0x54($s1)
.L802A96BC:
/* 42682C 802A96BC 0C09A327 */ jal func_80268C9C
/* 426830 802A96C0 00000000 */ nop
.L802A96C4:
/* 426834 802A96C4 8FBF001C */ lw $ra, 0x1c($sp)
/* 426838 802A96C8 8FB20018 */ lw $s2, 0x18($sp)
/* 42683C 802A96CC 8FB10014 */ lw $s1, 0x14($sp)
/* 426840 802A96D0 8FB00010 */ lw $s0, 0x10($sp)
/* 426844 802A96D4 03E00008 */ jr $ra
/* 426848 802A96D8 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,62 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A96DC_42684C
/* 42684C 802A96DC 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 426850 802A96E0 AFB1001C */ sw $s1, 0x1c($sp)
/* 426854 802A96E4 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 426858 802A96E8 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42685C 802A96EC AFBF0020 */ sw $ra, 0x20($sp)
/* 426860 802A96F0 AFB00018 */ sw $s0, 0x18($sp)
/* 426864 802A96F4 0C0511EA */ jal draw_icon_0
/* 426868 802A96F8 8E240004 */ lw $a0, 4($s1)
/* 42686C 802A96FC 8E300008 */ lw $s0, 8($s1)
/* 426870 802A9700 0C0511EA */ jal draw_icon_0
/* 426874 802A9704 0200202D */ daddu $a0, $s0, $zero
/* 426878 802A9708 0200202D */ daddu $a0, $s0, $zero
/* 42687C 802A970C 27A50010 */ addiu $a1, $sp, 0x10
/* 426880 802A9710 0C05126B */ jal get_icon_render_pos
/* 426884 802A9714 27A60014 */ addiu $a2, $sp, 0x14
/* 426888 802A9718 86220068 */ lh $v0, 0x68($s1)
/* 42688C 802A971C 14400011 */ bnez $v0, .L802A9764
/* 426890 802A9720 3C0451EB */ lui $a0, 0x51eb
/* 426894 802A9724 96230044 */ lhu $v1, 0x44($s1)
/* 426898 802A9728 3484851F */ ori $a0, $a0, 0x851f
/* 42689C 802A972C 00031C00 */ sll $v1, $v1, 0x10
/* 4268A0 802A9730 00031403 */ sra $v0, $v1, 0x10
/* 4268A4 802A9734 00440018 */ mult $v0, $a0
/* 4268A8 802A9738 8FA50014 */ lw $a1, 0x14($sp)
/* 4268AC 802A973C 00031FC3 */ sra $v1, $v1, 0x1f
/* 4268B0 802A9740 8FA40010 */ lw $a0, 0x10($sp)
/* 4268B4 802A9744 00003810 */ mfhi $a3
/* 4268B8 802A9748 00073143 */ sra $a2, $a3, 5
/* 4268BC 802A974C 00C33023 */ subu $a2, $a2, $v1
/* 4268C0 802A9750 00063400 */ sll $a2, $a2, 0x10
/* 4268C4 802A9754 0C09A1DC */ jal func_80268770
/* 4268C8 802A9758 00063403 */ sra $a2, $a2, 0x10
/* 4268CC 802A975C 080AA5E7 */ j .L802A979C
/* 4268D0 802A9760 00000000 */ nop
.L802A9764:
/* 4268D4 802A9764 96230044 */ lhu $v1, 0x44($s1)
/* 4268D8 802A9768 3484851F */ ori $a0, $a0, 0x851f
/* 4268DC 802A976C 00031C00 */ sll $v1, $v1, 0x10
/* 4268E0 802A9770 00031403 */ sra $v0, $v1, 0x10
/* 4268E4 802A9774 00440018 */ mult $v0, $a0
/* 4268E8 802A9778 8FA50014 */ lw $a1, 0x14($sp)
/* 4268EC 802A977C 00031FC3 */ sra $v1, $v1, 0x1f
/* 4268F0 802A9780 8FA40010 */ lw $a0, 0x10($sp)
/* 4268F4 802A9784 00003810 */ mfhi $a3
/* 4268F8 802A9788 00073143 */ sra $a2, $a3, 5
/* 4268FC 802A978C 00C33023 */ subu $a2, $a2, $v1
/* 426900 802A9790 00063400 */ sll $a2, $a2, 0x10
/* 426904 802A9794 0C09A203 */ jal func_8026880C
/* 426908 802A9798 00063403 */ sra $a2, $a2, 0x10
.L802A979C:
/* 42690C 802A979C 8E24000C */ lw $a0, 0xc($s1)
/* 426910 802A97A0 0C0511EA */ jal draw_icon_0
/* 426914 802A97A4 00000000 */ nop
/* 426918 802A97A8 8FBF0020 */ lw $ra, 0x20($sp)
/* 42691C 802A97AC 8FB1001C */ lw $s1, 0x1c($sp)
/* 426920 802A97B0 8FB00018 */ lw $s0, 0x18($sp)
/* 426924 802A97B4 03E00008 */ jr $ra
/* 426928 802A97B8 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,21 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A97BC_42692C
/* 42692C 802A97BC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 426930 802A97C0 AFB00010 */ sw $s0, 0x10($sp)
/* 426934 802A97C4 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 426938 802A97C8 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 42693C 802A97CC AFBF0014 */ sw $ra, 0x14($sp)
/* 426940 802A97D0 0C05123D */ jal free_icon
/* 426944 802A97D4 8E040004 */ lw $a0, 4($s0)
/* 426948 802A97D8 0C05123D */ jal free_icon
/* 42694C 802A97DC 8E040008 */ lw $a0, 8($s0)
/* 426950 802A97E0 0C05123D */ jal free_icon
/* 426954 802A97E4 8E04000C */ lw $a0, 0xc($s0)
/* 426958 802A97E8 8FBF0014 */ lw $ra, 0x14($sp)
/* 42695C 802A97EC 8FB00010 */ lw $s0, 0x10($sp)
/* 426960 802A97F0 03E00008 */ jr $ra
/* 426964 802A97F4 27BD0018 */ addiu $sp, $sp, 0x18
/* 426968 802A97F8 00000000 */ nop
/* 42696C 802A97FC 00000000 */ nop

View File

@ -0,0 +1,100 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_4269D0
/* 4269D0 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 4269D4 802A9004 AFB00010 */ sw $s0, 0x10($sp)
/* 4269D8 802A9008 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 4269DC 802A900C 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 4269E0 802A9010 24020064 */ addiu $v0, $zero, 0x64
/* 4269E4 802A9014 AFBF0018 */ sw $ra, 0x18($sp)
/* 4269E8 802A9018 AFB10014 */ sw $s1, 0x14($sp)
/* 4269EC 802A901C A2020082 */ sb $v0, 0x82($s0)
/* 4269F0 802A9020 3C028029 */ lui $v0, %hi(D_802942C0)
/* 4269F4 802A9024 244242C0 */ addiu $v0, $v0, %lo(D_802942C0)
/* 4269F8 802A9028 AE020434 */ sw $v0, 0x434($s0)
/* 4269FC 802A902C 2402007F */ addiu $v0, $zero, 0x7f
/* 426A00 802A9030 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 426A04 802A9034 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 426A08 802A9038 A2020086 */ sb $v0, 0x86($s0)
/* 426A0C 802A903C 82020083 */ lb $v0, 0x83($s0)
/* 426A10 802A9040 10400046 */ beqz $v0, .L802A915C
/* 426A14 802A9044 0200182D */ daddu $v1, $s0, $zero
/* 426A18 802A9048 0C09A216 */ jal func_80268858
/* 426A1C 802A904C 00000000 */ nop
/* 426A20 802A9050 3C048011 */ lui $a0, %hi(D_80108E1C)
/* 426A24 802A9054 24848E1C */ addiu $a0, $a0, %lo(D_80108E1C)
/* 426A28 802A9058 24020009 */ addiu $v0, $zero, 9
/* 426A2C 802A905C A622004A */ sh $v0, 0x4a($s1)
/* 426A30 802A9060 24020001 */ addiu $v0, $zero, 1
/* 426A34 802A9064 A2220061 */ sb $v0, 0x61($s1)
/* 426A38 802A9068 2402001E */ addiu $v0, $zero, 0x1e
/* 426A3C 802A906C A622006C */ sh $v0, 0x6c($s1)
/* 426A40 802A9070 2402FFD0 */ addiu $v0, $zero, -0x30
/* 426A44 802A9074 A620004C */ sh $zero, 0x4c($s1)
/* 426A48 802A9078 A2200060 */ sb $zero, 0x60($s1)
/* 426A4C 802A907C A6200044 */ sh $zero, 0x44($s1)
/* 426A50 802A9080 A6200048 */ sh $zero, 0x48($s1)
/* 426A54 802A9084 A6200068 */ sh $zero, 0x68($s1)
/* 426A58 802A9088 A2000081 */ sb $zero, 0x81($s0)
/* 426A5C 802A908C A6220056 */ sh $v0, 0x56($s1)
/* 426A60 802A9090 24020050 */ addiu $v0, $zero, 0x50
/* 426A64 802A9094 0C050529 */ jal create_icon
/* 426A68 802A9098 A6220058 */ sh $v0, 0x58($s1)
/* 426A6C 802A909C 0040802D */ daddu $s0, $v0, $zero
/* 426A70 802A90A0 86250056 */ lh $a1, 0x56($s1)
/* 426A74 802A90A4 86260058 */ lh $a2, 0x58($s1)
/* 426A78 802A90A8 0200202D */ daddu $a0, $s0, $zero
/* 426A7C 802A90AC 0C051261 */ jal set_icon_render_pos
/* 426A80 802A90B0 AE300004 */ sw $s0, 4($s1)
/* 426A84 802A90B4 0200202D */ daddu $a0, $s0, $zero
/* 426A88 802A90B8 0C051277 */ jal func_801449DC
/* 426A8C 802A90BC 0000282D */ daddu $a1, $zero, $zero
/* 426A90 802A90C0 0200202D */ daddu $a0, $s0, $zero
/* 426A94 802A90C4 0C051280 */ jal set_icon_flags
/* 426A98 802A90C8 24050082 */ addiu $a1, $zero, 0x82
/* 426A9C 802A90CC 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 426AA0 802A90D0 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 426AA4 802A90D4 0C050529 */ jal create_icon
/* 426AA8 802A90D8 00000000 */ nop
/* 426AAC 802A90DC 0040802D */ daddu $s0, $v0, $zero
/* 426AB0 802A90E0 86250056 */ lh $a1, 0x56($s1)
/* 426AB4 802A90E4 86260058 */ lh $a2, 0x58($s1)
/* 426AB8 802A90E8 0200202D */ daddu $a0, $s0, $zero
/* 426ABC 802A90EC AE300008 */ sw $s0, 8($s1)
/* 426AC0 802A90F0 0C051261 */ jal set_icon_render_pos
/* 426AC4 802A90F4 24C6001C */ addiu $a2, $a2, 0x1c
/* 426AC8 802A90F8 0200202D */ daddu $a0, $s0, $zero
/* 426ACC 802A90FC 0C051277 */ jal func_801449DC
/* 426AD0 802A9100 0000282D */ daddu $a1, $zero, $zero
/* 426AD4 802A9104 0200202D */ daddu $a0, $s0, $zero
/* 426AD8 802A9108 0C051280 */ jal set_icon_flags
/* 426ADC 802A910C 24050082 */ addiu $a1, $zero, 0x82
/* 426AE0 802A9110 3C048029 */ lui $a0, %hi(D_80292974)
/* 426AE4 802A9114 24842974 */ addiu $a0, $a0, %lo(D_80292974)
/* 426AE8 802A9118 0C050529 */ jal create_icon
/* 426AEC 802A911C 00000000 */ nop
/* 426AF0 802A9120 0040802D */ daddu $s0, $v0, $zero
/* 426AF4 802A9124 86250056 */ lh $a1, 0x56($s1)
/* 426AF8 802A9128 86260058 */ lh $a2, 0x58($s1)
/* 426AFC 802A912C 0200202D */ daddu $a0, $s0, $zero
/* 426B00 802A9130 AE30000C */ sw $s0, 0xc($s1)
/* 426B04 802A9134 0C051261 */ jal set_icon_render_pos
/* 426B08 802A9138 24C6001C */ addiu $a2, $a2, 0x1c
/* 426B0C 802A913C 0200202D */ daddu $a0, $s0, $zero
/* 426B10 802A9140 0C051277 */ jal func_801449DC
/* 426B14 802A9144 0000282D */ daddu $a1, $zero, $zero
/* 426B18 802A9148 0200202D */ daddu $a0, $s0, $zero
/* 426B1C 802A914C 0C051280 */ jal set_icon_flags
/* 426B20 802A9150 24050082 */ addiu $a1, $zero, 0x82
/* 426B24 802A9154 080AA459 */ j .L802A9164
/* 426B28 802A9158 24020002 */ addiu $v0, $zero, 2
.L802A915C:
/* 426B2C 802A915C A0600081 */ sb $zero, 0x81($v1)
/* 426B30 802A9160 24020002 */ addiu $v0, $zero, 2
.L802A9164:
/* 426B34 802A9164 8FBF0018 */ lw $ra, 0x18($sp)
/* 426B38 802A9168 8FB10014 */ lw $s1, 0x14($sp)
/* 426B3C 802A916C 8FB00010 */ lw $s0, 0x10($sp)
/* 426B40 802A9170 03E00008 */ jr $ra
/* 426B44 802A9174 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,77 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9178_426B48
/* 426B48 802A9178 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 426B4C 802A917C AFB3001C */ sw $s3, 0x1c($sp)
/* 426B50 802A9180 0080982D */ daddu $s3, $a0, $zero
/* 426B54 802A9184 AFB10014 */ sw $s1, 0x14($sp)
/* 426B58 802A9188 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 426B5C 802A918C 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 426B60 802A9190 AFB20018 */ sw $s2, 0x18($sp)
/* 426B64 802A9194 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 426B68 802A9198 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 426B6C 802A919C AFBF0020 */ sw $ra, 0x20($sp)
/* 426B70 802A91A0 AFB00010 */ sw $s0, 0x10($sp)
/* 426B74 802A91A4 82420083 */ lb $v0, 0x83($s2)
/* 426B78 802A91A8 8E70000C */ lw $s0, 0xc($s3)
/* 426B7C 802A91AC 10400030 */ beqz $v0, .L802A9270
/* 426B80 802A91B0 0240182D */ daddu $v1, $s2, $zero
/* 426B84 802A91B4 0C09A216 */ jal func_80268858
/* 426B88 802A91B8 00000000 */ nop
/* 426B8C 802A91BC 8E050000 */ lw $a1, ($s0)
/* 426B90 802A91C0 26100004 */ addiu $s0, $s0, 4
/* 426B94 802A91C4 0C0B1EAF */ jal get_variable
/* 426B98 802A91C8 0260202D */ daddu $a0, $s3, $zero
/* 426B9C 802A91CC A622004E */ sh $v0, 0x4e($s1)
/* 426BA0 802A91D0 8E050000 */ lw $a1, ($s0)
/* 426BA4 802A91D4 26100004 */ addiu $s0, $s0, 4
/* 426BA8 802A91D8 0C0B1EAF */ jal get_variable
/* 426BAC 802A91DC 0260202D */ daddu $a0, $s3, $zero
/* 426BB0 802A91E0 A6220052 */ sh $v0, 0x52($s1)
/* 426BB4 802A91E4 8E050000 */ lw $a1, ($s0)
/* 426BB8 802A91E8 26100004 */ addiu $s0, $s0, 4
/* 426BBC 802A91EC 0C0B1EAF */ jal get_variable
/* 426BC0 802A91F0 0260202D */ daddu $a0, $s3, $zero
/* 426BC4 802A91F4 00022400 */ sll $a0, $v0, 0x10
/* 426BC8 802A91F8 00042403 */ sra $a0, $a0, 0x10
/* 426BCC 802A91FC 0C09A089 */ jal func_80268224
/* 426BD0 802A9200 A6220050 */ sh $v0, 0x50($s1)
/* 426BD4 802A9204 A6220050 */ sh $v0, 0x50($s1)
/* 426BD8 802A9208 8E050000 */ lw $a1, ($s0)
/* 426BDC 802A920C 0C0B1EAF */ jal get_variable
/* 426BE0 802A9210 0260202D */ daddu $a0, $s3, $zero
/* 426BE4 802A9214 3C05FFFF */ lui $a1, 0xffff
/* 426BE8 802A9218 34A57FFF */ ori $a1, $a1, 0x7fff
/* 426BEC 802A921C A6220064 */ sh $v0, 0x64($s1)
/* 426BF0 802A9220 A2200060 */ sb $zero, 0x60($s1)
/* 426BF4 802A9224 A6200044 */ sh $zero, 0x44($s1)
/* 426BF8 802A9228 A6200048 */ sh $zero, 0x48($s1)
/* 426BFC 802A922C A2400081 */ sb $zero, 0x81($s2)
/* 426C00 802A9230 82220080 */ lb $v0, 0x80($s1)
/* 426C04 802A9234 2403007F */ addiu $v1, $zero, 0x7f
/* 426C08 802A9238 A2430086 */ sb $v1, 0x86($s2)
/* 426C0C 802A923C 8E430000 */ lw $v1, ($s2)
/* 426C10 802A9240 2442FFFF */ addiu $v0, $v0, -1
/* 426C14 802A9244 00021040 */ sll $v0, $v0, 1
/* 426C18 802A9248 00511021 */ addu $v0, $v0, $s1
/* 426C1C 802A924C 00651824 */ and $v1, $v1, $a1
/* 426C20 802A9250 90440075 */ lbu $a0, 0x75($v0)
/* 426C24 802A9254 2402000A */ addiu $v0, $zero, 0xa
/* 426C28 802A9258 AE430000 */ sw $v1, ($s2)
/* 426C2C 802A925C A622004C */ sh $v0, 0x4c($s1)
/* 426C30 802A9260 0C09A446 */ jal func_80269118
/* 426C34 802A9264 A2440082 */ sb $a0, 0x82($s2)
/* 426C38 802A9268 080AA49E */ j .L802A9278
/* 426C3C 802A926C 24020002 */ addiu $v0, $zero, 2
.L802A9270:
/* 426C40 802A9270 A0600081 */ sb $zero, 0x81($v1)
/* 426C44 802A9274 24020002 */ addiu $v0, $zero, 2
.L802A9278:
/* 426C48 802A9278 8FBF0020 */ lw $ra, 0x20($sp)
/* 426C4C 802A927C 8FB3001C */ lw $s3, 0x1c($sp)
/* 426C50 802A9280 8FB20018 */ lw $s2, 0x18($sp)
/* 426C54 802A9284 8FB10014 */ lw $s1, 0x14($sp)
/* 426C58 802A9288 8FB00010 */ lw $s0, 0x10($sp)
/* 426C5C 802A928C 03E00008 */ jr $ra
/* 426C60 802A9290 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,389 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9294_426C64
/* 426C64 802A9294 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 426C68 802A9298 AFB10014 */ sw $s1, 0x14($sp)
/* 426C6C 802A929C 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 426C70 802A92A0 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 426C74 802A92A4 AFB20018 */ sw $s2, 0x18($sp)
/* 426C78 802A92A8 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 426C7C 802A92AC 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 426C80 802A92B0 AFBF0020 */ sw $ra, 0x20($sp)
/* 426C84 802A92B4 AFB3001C */ sw $s3, 0x1c($sp)
/* 426C88 802A92B8 AFB00010 */ sw $s0, 0x10($sp)
/* 426C8C 802A92BC 8623004C */ lh $v1, 0x4c($s1)
/* 426C90 802A92C0 8E5300DC */ lw $s3, 0xdc($s2)
/* 426C94 802A92C4 2C62000D */ sltiu $v0, $v1, 0xd
/* 426C98 802A92C8 10400153 */ beqz $v0, .L802A9818
/* 426C9C 802A92CC 00031080 */ sll $v0, $v1, 2
/* 426CA0 802A92D0 3C01802B */ lui $at, %hi(D_802A99A0)
/* 426CA4 802A92D4 00220821 */ addu $at, $at, $v0
/* 426CA8 802A92D8 8C2299A0 */ lw $v0, %lo(D_802A99A0)($at)
/* 426CAC 802A92DC 00400008 */ jr $v0
/* 426CB0 802A92E0 00000000 */ nop
/* 426CB4 802A92E4 0C093EB1 */ jal set_popup_duration
/* 426CB8 802A92E8 24040063 */ addiu $a0, $zero, 0x63
/* 426CBC 802A92EC 8E300004 */ lw $s0, 4($s1)
/* 426CC0 802A92F0 240500FF */ addiu $a1, $zero, 0xff
/* 426CC4 802A92F4 0C0513AC */ jal icon_set_opacity
/* 426CC8 802A92F8 0200202D */ daddu $a0, $s0, $zero
/* 426CCC 802A92FC 82220061 */ lb $v0, 0x61($s1)
/* 426CD0 802A9300 10400003 */ beqz $v0, .L802A9310
/* 426CD4 802A9304 0200202D */ daddu $a0, $s0, $zero
/* 426CD8 802A9308 0C05128B */ jal clear_icon_flags
/* 426CDC 802A930C 24050002 */ addiu $a1, $zero, 2
.L802A9310:
/* 426CE0 802A9310 8E300008 */ lw $s0, 8($s1)
/* 426CE4 802A9314 240500FF */ addiu $a1, $zero, 0xff
/* 426CE8 802A9318 0C0513AC */ jal icon_set_opacity
/* 426CEC 802A931C 0200202D */ daddu $a0, $s0, $zero
/* 426CF0 802A9320 82220061 */ lb $v0, 0x61($s1)
/* 426CF4 802A9324 10400003 */ beqz $v0, .L802A9334
/* 426CF8 802A9328 0200202D */ daddu $a0, $s0, $zero
/* 426CFC 802A932C 0C05128B */ jal clear_icon_flags
/* 426D00 802A9330 24050002 */ addiu $a1, $zero, 2
.L802A9334:
/* 426D04 802A9334 24020001 */ addiu $v0, $zero, 1
/* 426D08 802A9338 080AA606 */ j .L802A9818
/* 426D0C 802A933C A622004C */ sh $v0, 0x4c($s1)
/* 426D10 802A9340 0C093EB1 */ jal set_popup_duration
/* 426D14 802A9344 24040063 */ addiu $a0, $zero, 0x63
/* 426D18 802A9348 96220056 */ lhu $v0, 0x56($s1)
/* 426D1C 802A934C 24420014 */ addiu $v0, $v0, 0x14
/* 426D20 802A9350 A6220056 */ sh $v0, 0x56($s1)
/* 426D24 802A9354 00021400 */ sll $v0, $v0, 0x10
/* 426D28 802A9358 00021403 */ sra $v0, $v0, 0x10
/* 426D2C 802A935C 28420033 */ slti $v0, $v0, 0x33
/* 426D30 802A9360 14400002 */ bnez $v0, .L802A936C
/* 426D34 802A9364 24020032 */ addiu $v0, $zero, 0x32
/* 426D38 802A9368 A6220056 */ sh $v0, 0x56($s1)
.L802A936C:
/* 426D3C 802A936C 8E240004 */ lw $a0, 4($s1)
/* 426D40 802A9370 86250056 */ lh $a1, 0x56($s1)
/* 426D44 802A9374 0C051261 */ jal set_icon_render_pos
/* 426D48 802A9378 86260058 */ lh $a2, 0x58($s1)
/* 426D4C 802A937C 8E240008 */ lw $a0, 8($s1)
/* 426D50 802A9380 86260058 */ lh $a2, 0x58($s1)
/* 426D54 802A9384 86250056 */ lh $a1, 0x56($s1)
/* 426D58 802A9388 0C051261 */ jal set_icon_render_pos
/* 426D5C 802A938C 24C6001C */ addiu $a2, $a2, 0x1c
/* 426D60 802A9390 080AA606 */ j .L802A9818
/* 426D64 802A9394 00000000 */ nop
/* 426D68 802A9398 0C093EB1 */ jal set_popup_duration
/* 426D6C 802A939C 24040063 */ addiu $a0, $zero, 0x63
/* 426D70 802A93A0 8622004E */ lh $v0, 0x4e($s1)
/* 426D74 802A93A4 9623004E */ lhu $v1, 0x4e($s1)
/* 426D78 802A93A8 10400003 */ beqz $v0, .L802A93B8
/* 426D7C 802A93AC 2462FFFF */ addiu $v0, $v1, -1
/* 426D80 802A93B0 080AA606 */ j .L802A9818
/* 426D84 802A93B4 A622004E */ sh $v0, 0x4e($s1)
.L802A93B8:
/* 426D88 802A93B8 8E240004 */ lw $a0, 4($s1)
/* 426D8C 802A93BC 3C058011 */ lui $a1, %hi(D_80108F30)
/* 426D90 802A93C0 24A58F30 */ addiu $a1, $a1, %lo(D_80108F30)
/* 426D94 802A93C4 0C0511FF */ jal set_menu_icon_script
/* 426D98 802A93C8 00000000 */ nop
/* 426D9C 802A93CC 3C048000 */ lui $a0, 0x8000
/* 426DA0 802A93D0 34840041 */ ori $a0, $a0, 0x41
/* 426DA4 802A93D4 0000282D */ daddu $a1, $zero, $zero
/* 426DA8 802A93D8 00A0302D */ daddu $a2, $a1, $zero
/* 426DAC 802A93DC 96220052 */ lhu $v0, 0x52($s1)
/* 426DB0 802A93E0 00A0382D */ daddu $a3, $a1, $zero
/* 426DB4 802A93E4 A6200044 */ sh $zero, 0x44($s1)
/* 426DB8 802A93E8 A2400085 */ sb $zero, 0x85($s2)
/* 426DBC 802A93EC A220005C */ sb $zero, 0x5c($s1)
/* 426DC0 802A93F0 0C0526AE */ jal _play_sound
/* 426DC4 802A93F4 A6220054 */ sh $v0, 0x54($s1)
/* 426DC8 802A93F8 2402000B */ addiu $v0, $zero, 0xb
/* 426DCC 802A93FC A622004C */ sh $v0, 0x4c($s1)
/* 426DD0 802A9400 0C093EB1 */ jal set_popup_duration
/* 426DD4 802A9404 24040063 */ addiu $a0, $zero, 0x63
/* 426DD8 802A9408 86220068 */ lh $v0, 0x68($s1)
/* 426DDC 802A940C 1440005F */ bnez $v0, .L802A958C
/* 426DE0 802A9410 00000000 */ nop
/* 426DE4 802A9414 82220080 */ lb $v0, 0x80($s1)
/* 426DE8 802A9418 00021040 */ sll $v0, $v0, 1
/* 426DEC 802A941C 02221021 */ addu $v0, $s1, $v0
/* 426DF0 802A9420 84430074 */ lh $v1, 0x74($v0)
/* 426DF4 802A9424 86220044 */ lh $v0, 0x44($s1)
/* 426DF8 802A9428 14600002 */ bnez $v1, .L802A9434
/* 426DFC 802A942C 0043001A */ div $zero, $v0, $v1
/* 426E00 802A9430 0007000D */ break 7
.L802A9434:
/* 426E04 802A9434 2401FFFF */ addiu $at, $zero, -1
/* 426E08 802A9438 14610004 */ bne $v1, $at, .L802A944C
/* 426E0C 802A943C 3C018000 */ lui $at, 0x8000
/* 426E10 802A9440 14410002 */ bne $v0, $at, .L802A944C
/* 426E14 802A9444 00000000 */ nop
/* 426E18 802A9448 0006000D */ break 6
.L802A944C:
/* 426E1C 802A944C 00001012 */ mflo $v0
/* 426E20 802A9450 3C036666 */ lui $v1, 0x6666
/* 426E24 802A9454 34636667 */ ori $v1, $v1, 0x6667
/* 426E28 802A9458 00430018 */ mult $v0, $v1
/* 426E2C 802A945C 000217C3 */ sra $v0, $v0, 0x1f
/* 426E30 802A9460 00001810 */ mfhi $v1
/* 426E34 802A9464 000318C3 */ sra $v1, $v1, 3
/* 426E38 802A9468 00621823 */ subu $v1, $v1, $v0
/* 426E3C 802A946C 00031880 */ sll $v1, $v1, 2
/* 426E40 802A9470 96220044 */ lhu $v0, 0x44($s1)
/* 426E44 802A9474 3C01802B */ lui $at, %hi(D_802A9952)
/* 426E48 802A9478 00230821 */ addu $at, $at, $v1
/* 426E4C 802A947C 94239952 */ lhu $v1, %lo(D_802A9952)($at)
/* 426E50 802A9480 00431023 */ subu $v0, $v0, $v1
/* 426E54 802A9484 A6220044 */ sh $v0, 0x44($s1)
/* 426E58 802A9488 00021400 */ sll $v0, $v0, 0x10
/* 426E5C 802A948C 04420001 */ bltzl $v0, .L802A9494
/* 426E60 802A9490 A6200044 */ sh $zero, 0x44($s1)
.L802A9494:
/* 426E64 802A9494 86220068 */ lh $v0, 0x68($s1)
/* 426E68 802A9498 1440003C */ bnez $v0, .L802A958C
/* 426E6C 802A949C 3C040004 */ lui $a0, 4
/* 426E70 802A94A0 8E420210 */ lw $v0, 0x210($s2)
/* 426E74 802A94A4 00441024 */ and $v0, $v0, $a0
/* 426E78 802A94A8 10400005 */ beqz $v0, .L802A94C0
/* 426E7C 802A94AC 24030001 */ addiu $v1, $zero, 1
/* 426E80 802A94B0 8E420210 */ lw $v0, 0x210($s2)
/* 426E84 802A94B4 00441024 */ and $v0, $v0, $a0
/* 426E88 802A94B8 1440001A */ bnez $v0, .L802A9524
/* 426E8C 802A94BC A223005C */ sb $v1, 0x5c($s1)
.L802A94C0:
/* 426E90 802A94C0 8222005C */ lb $v0, 0x5c($s1)
/* 426E94 802A94C4 10400017 */ beqz $v0, .L802A9524
/* 426E98 802A94C8 3C0451EB */ lui $a0, 0x51eb
/* 426E9C 802A94CC 86220050 */ lh $v0, 0x50($s1)
/* 426EA0 802A94D0 8E430434 */ lw $v1, 0x434($s2)
/* 426EA4 802A94D4 00021080 */ sll $v0, $v0, 2
/* 426EA8 802A94D8 00431021 */ addu $v0, $v0, $v1
/* 426EAC 802A94DC 8C430000 */ lw $v1, ($v0)
/* 426EB0 802A94E0 3484851F */ ori $a0, $a0, 0x851f
/* 426EB4 802A94E4 00031100 */ sll $v0, $v1, 4
/* 426EB8 802A94E8 00431023 */ subu $v0, $v0, $v1
/* 426EBC 802A94EC 000210C0 */ sll $v0, $v0, 3
/* 426EC0 802A94F0 00431023 */ subu $v0, $v0, $v1
/* 426EC4 802A94F4 00021080 */ sll $v0, $v0, 2
/* 426EC8 802A94F8 00431023 */ subu $v0, $v0, $v1
/* 426ECC 802A94FC 00021040 */ sll $v0, $v0, 1
/* 426ED0 802A9500 00440018 */ mult $v0, $a0
/* 426ED4 802A9504 A220005C */ sb $zero, 0x5c($s1)
/* 426ED8 802A9508 000217C3 */ sra $v0, $v0, 0x1f
/* 426EDC 802A950C 96230044 */ lhu $v1, 0x44($s1)
/* 426EE0 802A9510 00004810 */ mfhi $t1
/* 426EE4 802A9514 00092143 */ sra $a0, $t1, 5
/* 426EE8 802A9518 00822023 */ subu $a0, $a0, $v0
/* 426EEC 802A951C 00641821 */ addu $v1, $v1, $a0
/* 426EF0 802A9520 A6230044 */ sh $v1, 0x44($s1)
.L802A9524:
/* 426EF4 802A9524 8E420214 */ lw $v0, 0x214($s2)
/* 426EF8 802A9528 3C030008 */ lui $v1, 8
/* 426EFC 802A952C 00431024 */ and $v0, $v0, $v1
/* 426F00 802A9530 10400016 */ beqz $v0, .L802A958C
/* 426F04 802A9534 3C0451EB */ lui $a0, 0x51eb
/* 426F08 802A9538 86220050 */ lh $v0, 0x50($s1)
/* 426F0C 802A953C 8E430434 */ lw $v1, 0x434($s2)
/* 426F10 802A9540 00021080 */ sll $v0, $v0, 2
/* 426F14 802A9544 00431021 */ addu $v0, $v0, $v1
/* 426F18 802A9548 8C430000 */ lw $v1, ($v0)
/* 426F1C 802A954C 3484851F */ ori $a0, $a0, 0x851f
/* 426F20 802A9550 00031100 */ sll $v0, $v1, 4
/* 426F24 802A9554 00431023 */ subu $v0, $v0, $v1
/* 426F28 802A9558 000210C0 */ sll $v0, $v0, 3
/* 426F2C 802A955C 00431023 */ subu $v0, $v0, $v1
/* 426F30 802A9560 00021080 */ sll $v0, $v0, 2
/* 426F34 802A9564 00431023 */ subu $v0, $v0, $v1
/* 426F38 802A9568 00021040 */ sll $v0, $v0, 1
/* 426F3C 802A956C 00440018 */ mult $v0, $a0
/* 426F40 802A9570 000217C3 */ sra $v0, $v0, 0x1f
/* 426F44 802A9574 96230044 */ lhu $v1, 0x44($s1)
/* 426F48 802A9578 00004810 */ mfhi $t1
/* 426F4C 802A957C 00092143 */ sra $a0, $t1, 5
/* 426F50 802A9580 00822023 */ subu $a0, $a0, $v0
/* 426F54 802A9584 00641823 */ subu $v1, $v1, $a0
/* 426F58 802A9588 A6230044 */ sh $v1, 0x44($s1)
.L802A958C:
/* 426F5C 802A958C 86220044 */ lh $v0, 0x44($s1)
/* 426F60 802A9590 04420001 */ bltzl $v0, .L802A9598
/* 426F64 802A9594 A6200044 */ sh $zero, 0x44($s1)
.L802A9598:
/* 426F68 802A9598 86220044 */ lh $v0, 0x44($s1)
/* 426F6C 802A959C 28422711 */ slti $v0, $v0, 0x2711
/* 426F70 802A95A0 14400010 */ bnez $v0, .L802A95E4
/* 426F74 802A95A4 3C0451EB */ lui $a0, 0x51eb
/* 426F78 802A95A8 8E30000C */ lw $s0, 0xc($s1)
/* 426F7C 802A95AC 86250056 */ lh $a1, 0x56($s1)
/* 426F80 802A95B0 86260058 */ lh $a2, 0x58($s1)
/* 426F84 802A95B4 24022710 */ addiu $v0, $zero, 0x2710
/* 426F88 802A95B8 A6220044 */ sh $v0, 0x44($s1)
/* 426F8C 802A95BC 24020001 */ addiu $v0, $zero, 1
/* 426F90 802A95C0 A6220068 */ sh $v0, 0x68($s1)
/* 426F94 802A95C4 0200202D */ daddu $a0, $s0, $zero
/* 426F98 802A95C8 24A50032 */ addiu $a1, $a1, 0x32
/* 426F9C 802A95CC 0C051261 */ jal set_icon_render_pos
/* 426FA0 802A95D0 24C6001C */ addiu $a2, $a2, 0x1c
/* 426FA4 802A95D4 0200202D */ daddu $a0, $s0, $zero
/* 426FA8 802A95D8 0C05128B */ jal clear_icon_flags
/* 426FAC 802A95DC 24050002 */ addiu $a1, $zero, 2
/* 426FB0 802A95E0 3C0451EB */ lui $a0, 0x51eb
.L802A95E4:
/* 426FB4 802A95E4 3484851F */ ori $a0, $a0, 0x851f
/* 426FB8 802A95E8 96230044 */ lhu $v1, 0x44($s1)
/* 426FBC 802A95EC 0000282D */ daddu $a1, $zero, $zero
/* 426FC0 802A95F0 00031C00 */ sll $v1, $v1, 0x10
/* 426FC4 802A95F4 00031403 */ sra $v0, $v1, 0x10
/* 426FC8 802A95F8 00440018 */ mult $v0, $a0
/* 426FCC 802A95FC 00A0302D */ daddu $a2, $a1, $zero
/* 426FD0 802A9600 3C048000 */ lui $a0, 0x8000
/* 426FD4 802A9604 34840041 */ ori $a0, $a0, 0x41
/* 426FD8 802A9608 00031FC3 */ sra $v1, $v1, 0x1f
/* 426FDC 802A960C 00004810 */ mfhi $t1
/* 426FE0 802A9610 00094143 */ sra $t0, $t1, 5
/* 426FE4 802A9614 01034023 */ subu $t0, $t0, $v1
/* 426FE8 802A9618 00081600 */ sll $v0, $t0, 0x18
/* 426FEC 802A961C 00021603 */ sra $v0, $v0, 0x18
/* 426FF0 802A9620 00023840 */ sll $a3, $v0, 1
/* 426FF4 802A9624 00E23821 */ addu $a3, $a3, $v0
/* 426FF8 802A9628 00073880 */ sll $a3, $a3, 2
/* 426FFC 802A962C 0C0526F9 */ jal func_80149BE4
/* 427000 802A9630 A2480084 */ sb $t0, 0x84($s2)
/* 427004 802A9634 8E620008 */ lw $v0, 8($s3)
/* 427008 802A9638 90430006 */ lbu $v1, 6($v0)
/* 42700C 802A963C 24020001 */ addiu $v0, $zero, 1
/* 427010 802A9640 10620019 */ beq $v1, $v0, .L802A96A8
/* 427014 802A9644 28620002 */ slti $v0, $v1, 2
/* 427018 802A9648 10400005 */ beqz $v0, .L802A9660
/* 42701C 802A964C 24020002 */ addiu $v0, $zero, 2
/* 427020 802A9650 10600007 */ beqz $v1, .L802A9670
/* 427024 802A9654 00000000 */ nop
/* 427028 802A9658 080AA5D1 */ j .L802A9744
/* 42702C 802A965C 00000000 */ nop
.L802A9660:
/* 427030 802A9660 1062001F */ beq $v1, $v0, .L802A96E0
/* 427034 802A9664 00000000 */ nop
/* 427038 802A9668 080AA5D1 */ j .L802A9744
/* 42703C 802A966C 00000000 */ nop
.L802A9670:
/* 427040 802A9670 82420085 */ lb $v0, 0x85($s2)
/* 427044 802A9674 82430084 */ lb $v1, 0x84($s2)
/* 427048 802A9678 00021080 */ sll $v0, $v0, 2
/* 42704C 802A967C 3C01802B */ lui $at, %hi(D_802A9964)
/* 427050 802A9680 00220821 */ addu $at, $at, $v0
/* 427054 802A9684 8C229964 */ lw $v0, %lo(D_802A9964)($at)
/* 427058 802A9688 3C05802B */ lui $a1, %hi(D_802A9964)
/* 42705C 802A968C 24A59964 */ addiu $a1, $a1, %lo(D_802A9964)
/* 427060 802A9690 0062182A */ slt $v1, $v1, $v0
/* 427064 802A9694 92420085 */ lbu $v0, 0x85($s2)
/* 427068 802A9698 1460001E */ bnez $v1, .L802A9714
/* 42706C 802A969C 24420001 */ addiu $v0, $v0, 1
/* 427070 802A96A0 080AA5C5 */ j .L802A9714
/* 427074 802A96A4 A2420085 */ sb $v0, 0x85($s2)
.L802A96A8:
/* 427078 802A96A8 82420085 */ lb $v0, 0x85($s2)
/* 42707C 802A96AC 82430084 */ lb $v1, 0x84($s2)
/* 427080 802A96B0 00021080 */ sll $v0, $v0, 2
/* 427084 802A96B4 3C01802B */ lui $at, %hi(D_802A9974)
/* 427088 802A96B8 00220821 */ addu $at, $at, $v0
/* 42708C 802A96BC 8C229974 */ lw $v0, %lo(D_802A9974)($at)
/* 427090 802A96C0 3C05802B */ lui $a1, %hi(D_802A9974)
/* 427094 802A96C4 24A59974 */ addiu $a1, $a1, %lo(D_802A9974)
/* 427098 802A96C8 0062182A */ slt $v1, $v1, $v0
/* 42709C 802A96CC 92420085 */ lbu $v0, 0x85($s2)
/* 4270A0 802A96D0 14600010 */ bnez $v1, .L802A9714
/* 4270A4 802A96D4 24420001 */ addiu $v0, $v0, 1
/* 4270A8 802A96D8 080AA5C5 */ j .L802A9714
/* 4270AC 802A96DC A2420085 */ sb $v0, 0x85($s2)
.L802A96E0:
/* 4270B0 802A96E0 82420085 */ lb $v0, 0x85($s2)
/* 4270B4 802A96E4 82430084 */ lb $v1, 0x84($s2)
/* 4270B8 802A96E8 00021080 */ sll $v0, $v0, 2
/* 4270BC 802A96EC 3C01802B */ lui $at, %hi(D_802A9988)
/* 4270C0 802A96F0 00220821 */ addu $at, $at, $v0
/* 4270C4 802A96F4 8C229988 */ lw $v0, %lo(D_802A9988)($at)
/* 4270C8 802A96F8 3C05802B */ lui $a1, %hi(D_802A9988)
/* 4270CC 802A96FC 24A59988 */ addiu $a1, $a1, %lo(D_802A9988)
/* 4270D0 802A9700 0062182A */ slt $v1, $v1, $v0
/* 4270D4 802A9704 92420085 */ lbu $v0, 0x85($s2)
/* 4270D8 802A9708 14600002 */ bnez $v1, .L802A9714
/* 4270DC 802A970C 24420001 */ addiu $v0, $v0, 1
/* 4270E0 802A9710 A2420085 */ sb $v0, 0x85($s2)
.L802A9714:
/* 4270E4 802A9714 82420085 */ lb $v0, 0x85($s2)
/* 4270E8 802A9718 92440085 */ lbu $a0, 0x85($s2)
/* 4270EC 802A971C 18400009 */ blez $v0, .L802A9744
/* 4270F0 802A9720 2442FFFF */ addiu $v0, $v0, -1
/* 4270F4 802A9724 00021080 */ sll $v0, $v0, 2
/* 4270F8 802A9728 00451021 */ addu $v0, $v0, $a1
/* 4270FC 802A972C 82430084 */ lb $v1, 0x84($s2)
/* 427100 802A9730 8C420000 */ lw $v0, ($v0)
/* 427104 802A9734 0062182A */ slt $v1, $v1, $v0
/* 427108 802A9738 10600002 */ beqz $v1, .L802A9744
/* 42710C 802A973C 2482FFFF */ addiu $v0, $a0, -1
/* 427110 802A9740 A2420085 */ sb $v0, 0x85($s2)
.L802A9744:
/* 427114 802A9744 86220054 */ lh $v0, 0x54($s1)
/* 427118 802A9748 96230054 */ lhu $v1, 0x54($s1)
/* 42711C 802A974C 1440002E */ bnez $v0, .L802A9808
/* 427120 802A9750 2462FFFF */ addiu $v0, $v1, -1
/* 427124 802A9754 96220044 */ lhu $v0, 0x44($s1)
/* 427128 802A9758 00021C00 */ sll $v1, $v0, 0x10
/* 42712C 802A975C 00032403 */ sra $a0, $v1, 0x10
/* 427130 802A9760 14800003 */ bnez $a0, .L802A9770
/* 427134 802A9764 3C0251EB */ lui $v0, 0x51eb
/* 427138 802A9768 080AA5E2 */ j .L802A9788
/* 42713C 802A976C 2402FFFF */ addiu $v0, $zero, -1
.L802A9770:
/* 427140 802A9770 3442851F */ ori $v0, $v0, 0x851f
/* 427144 802A9774 00820018 */ mult $a0, $v0
/* 427148 802A9778 00031FC3 */ sra $v1, $v1, 0x1f
/* 42714C 802A977C 00004810 */ mfhi $t1
/* 427150 802A9780 00091143 */ sra $v0, $t1, 5
/* 427154 802A9784 00431023 */ subu $v0, $v0, $v1
.L802A9788:
/* 427158 802A9788 A2420081 */ sb $v0, 0x81($s2)
/* 42715C 802A978C 82220080 */ lb $v0, 0x80($s1)
/* 427160 802A9790 2442FFFF */ addiu $v0, $v0, -1
/* 427164 802A9794 00021040 */ sll $v0, $v0, 1
/* 427168 802A9798 02221021 */ addu $v0, $s1, $v0
/* 42716C 802A979C 84430074 */ lh $v1, 0x74($v0)
/* 427170 802A97A0 82420081 */ lb $v0, 0x81($s2)
/* 427174 802A97A4 0062102A */ slt $v0, $v1, $v0
/* 427178 802A97A8 14400002 */ bnez $v0, .L802A97B4
/* 42717C 802A97AC 24020001 */ addiu $v0, $zero, 1
/* 427180 802A97B0 2402FFFE */ addiu $v0, $zero, -2
.L802A97B4:
/* 427184 802A97B4 A2420086 */ sb $v0, 0x86($s2)
/* 427188 802A97B8 82430081 */ lb $v1, 0x81($s2)
/* 42718C 802A97BC 24020064 */ addiu $v0, $zero, 0x64
/* 427190 802A97C0 14620004 */ bne $v1, $v0, .L802A97D4
/* 427194 802A97C4 3C048000 */ lui $a0, 0x8000
/* 427198 802A97C8 0C09A458 */ jal func_80269160
/* 42719C 802A97CC 00000000 */ nop
/* 4271A0 802A97D0 3C048000 */ lui $a0, 0x8000
.L802A97D4:
/* 4271A4 802A97D4 0C05271B */ jal stop_sound
/* 4271A8 802A97D8 34840041 */ ori $a0, $a0, 0x41
/* 4271AC 802A97DC 0C093EB1 */ jal set_popup_duration
/* 4271B0 802A97E0 0000202D */ daddu $a0, $zero, $zero
/* 4271B4 802A97E4 24020005 */ addiu $v0, $zero, 5
/* 4271B8 802A97E8 A6220054 */ sh $v0, 0x54($s1)
/* 4271BC 802A97EC 2402000C */ addiu $v0, $zero, 0xc
/* 4271C0 802A97F0 080AA606 */ j .L802A9818
/* 4271C4 802A97F4 A622004C */ sh $v0, 0x4c($s1)
/* 4271C8 802A97F8 86220054 */ lh $v0, 0x54($s1)
/* 4271CC 802A97FC 96230054 */ lhu $v1, 0x54($s1)
/* 4271D0 802A9800 10400003 */ beqz $v0, .L802A9810
/* 4271D4 802A9804 2462FFFF */ addiu $v0, $v1, -1
.L802A9808:
/* 4271D8 802A9808 080AA606 */ j .L802A9818
/* 4271DC 802A980C A6220054 */ sh $v0, 0x54($s1)
.L802A9810:
/* 4271E0 802A9810 0C09A327 */ jal func_80268C9C
/* 4271E4 802A9814 00000000 */ nop
.L802A9818:
/* 4271E8 802A9818 8FBF0020 */ lw $ra, 0x20($sp)
/* 4271EC 802A981C 8FB3001C */ lw $s3, 0x1c($sp)
/* 4271F0 802A9820 8FB20018 */ lw $s2, 0x18($sp)
/* 4271F4 802A9824 8FB10014 */ lw $s1, 0x14($sp)
/* 4271F8 802A9828 8FB00010 */ lw $s0, 0x10($sp)
/* 4271FC 802A982C 03E00008 */ jr $ra
/* 427200 802A9830 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,62 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9834_427204
/* 427204 802A9834 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 427208 802A9838 AFB1001C */ sw $s1, 0x1c($sp)
/* 42720C 802A983C 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 427210 802A9840 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 427214 802A9844 AFBF0020 */ sw $ra, 0x20($sp)
/* 427218 802A9848 AFB00018 */ sw $s0, 0x18($sp)
/* 42721C 802A984C 0C0511EA */ jal draw_icon_0
/* 427220 802A9850 8E240004 */ lw $a0, 4($s1)
/* 427224 802A9854 8E300008 */ lw $s0, 8($s1)
/* 427228 802A9858 0C0511EA */ jal draw_icon_0
/* 42722C 802A985C 0200202D */ daddu $a0, $s0, $zero
/* 427230 802A9860 0200202D */ daddu $a0, $s0, $zero
/* 427234 802A9864 27A50010 */ addiu $a1, $sp, 0x10
/* 427238 802A9868 0C05126B */ jal get_icon_render_pos
/* 42723C 802A986C 27A60014 */ addiu $a2, $sp, 0x14
/* 427240 802A9870 86220068 */ lh $v0, 0x68($s1)
/* 427244 802A9874 14400011 */ bnez $v0, .L802A98BC
/* 427248 802A9878 3C0451EB */ lui $a0, 0x51eb
/* 42724C 802A987C 96230044 */ lhu $v1, 0x44($s1)
/* 427250 802A9880 3484851F */ ori $a0, $a0, 0x851f
/* 427254 802A9884 00031C00 */ sll $v1, $v1, 0x10
/* 427258 802A9888 00031403 */ sra $v0, $v1, 0x10
/* 42725C 802A988C 00440018 */ mult $v0, $a0
/* 427260 802A9890 8FA50014 */ lw $a1, 0x14($sp)
/* 427264 802A9894 00031FC3 */ sra $v1, $v1, 0x1f
/* 427268 802A9898 8FA40010 */ lw $a0, 0x10($sp)
/* 42726C 802A989C 00003810 */ mfhi $a3
/* 427270 802A98A0 00073143 */ sra $a2, $a3, 5
/* 427274 802A98A4 00C33023 */ subu $a2, $a2, $v1
/* 427278 802A98A8 00063400 */ sll $a2, $a2, 0x10
/* 42727C 802A98AC 0C09A1DC */ jal func_80268770
/* 427280 802A98B0 00063403 */ sra $a2, $a2, 0x10
/* 427284 802A98B4 080AA63D */ j .L802A98F4
/* 427288 802A98B8 00000000 */ nop
.L802A98BC:
/* 42728C 802A98BC 96230044 */ lhu $v1, 0x44($s1)
/* 427290 802A98C0 3484851F */ ori $a0, $a0, 0x851f
/* 427294 802A98C4 00031C00 */ sll $v1, $v1, 0x10
/* 427298 802A98C8 00031403 */ sra $v0, $v1, 0x10
/* 42729C 802A98CC 00440018 */ mult $v0, $a0
/* 4272A0 802A98D0 8FA50014 */ lw $a1, 0x14($sp)
/* 4272A4 802A98D4 00031FC3 */ sra $v1, $v1, 0x1f
/* 4272A8 802A98D8 8FA40010 */ lw $a0, 0x10($sp)
/* 4272AC 802A98DC 00003810 */ mfhi $a3
/* 4272B0 802A98E0 00073143 */ sra $a2, $a3, 5
/* 4272B4 802A98E4 00C33023 */ subu $a2, $a2, $v1
/* 4272B8 802A98E8 00063400 */ sll $a2, $a2, 0x10
/* 4272BC 802A98EC 0C09A203 */ jal func_8026880C
/* 4272C0 802A98F0 00063403 */ sra $a2, $a2, 0x10
.L802A98F4:
/* 4272C4 802A98F4 8E24000C */ lw $a0, 0xc($s1)
/* 4272C8 802A98F8 0C0511EA */ jal draw_icon_0
/* 4272CC 802A98FC 00000000 */ nop
/* 4272D0 802A9900 8FBF0020 */ lw $ra, 0x20($sp)
/* 4272D4 802A9904 8FB1001C */ lw $s1, 0x1c($sp)
/* 4272D8 802A9908 8FB00018 */ lw $s0, 0x18($sp)
/* 4272DC 802A990C 03E00008 */ jr $ra
/* 4272E0 802A9910 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,19 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9914_4272E4
/* 4272E4 802A9914 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 4272E8 802A9918 AFB00010 */ sw $s0, 0x10($sp)
/* 4272EC 802A991C 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 4272F0 802A9920 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 4272F4 802A9924 AFBF0014 */ sw $ra, 0x14($sp)
/* 4272F8 802A9928 0C05123D */ jal free_icon
/* 4272FC 802A992C 8E040004 */ lw $a0, 4($s0)
/* 427300 802A9930 0C05123D */ jal free_icon
/* 427304 802A9934 8E040008 */ lw $a0, 8($s0)
/* 427308 802A9938 0C05123D */ jal free_icon
/* 42730C 802A993C 8E04000C */ lw $a0, 0xc($s0)
/* 427310 802A9940 8FBF0014 */ lw $ra, 0x14($sp)
/* 427314 802A9944 8FB00010 */ lw $s0, 0x10($sp)
/* 427318 802A9948 03E00008 */ jr $ra
/* 42731C 802A994C 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,98 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_4273B0
/* 4273B0 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 4273B4 802A9004 AFB00010 */ sw $s0, 0x10($sp)
/* 4273B8 802A9008 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 4273BC 802A900C 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 4273C0 802A9010 24020064 */ addiu $v0, $zero, 0x64
/* 4273C4 802A9014 AFBF0018 */ sw $ra, 0x18($sp)
/* 4273C8 802A9018 AFB10014 */ sw $s1, 0x14($sp)
/* 4273CC 802A901C A2020082 */ sb $v0, 0x82($s0)
/* 4273D0 802A9020 3C028029 */ lui $v0, %hi(D_802942E0)
/* 4273D4 802A9024 244242E0 */ addiu $v0, $v0, %lo(D_802942E0)
/* 4273D8 802A9028 AE020434 */ sw $v0, 0x434($s0)
/* 4273DC 802A902C 2402007F */ addiu $v0, $zero, 0x7f
/* 4273E0 802A9030 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 4273E4 802A9034 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 4273E8 802A9038 A2020086 */ sb $v0, 0x86($s0)
/* 4273EC 802A903C 82020083 */ lb $v0, 0x83($s0)
/* 4273F0 802A9040 10400044 */ beqz $v0, .L802A9154
/* 4273F4 802A9044 0200182D */ daddu $v1, $s0, $zero
/* 4273F8 802A9048 0C09A216 */ jal func_80268858
/* 4273FC 802A904C 00000000 */ nop
/* 427400 802A9050 3C048011 */ lui $a0, %hi(D_80108B28)
/* 427404 802A9054 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 427408 802A9058 2402000A */ addiu $v0, $zero, 0xa
/* 42740C 802A905C A622004A */ sh $v0, 0x4a($s1)
/* 427410 802A9060 24020001 */ addiu $v0, $zero, 1
/* 427414 802A9064 A2220061 */ sb $v0, 0x61($s1)
/* 427418 802A9068 2402FFD0 */ addiu $v0, $zero, -0x30
/* 42741C 802A906C A620004C */ sh $zero, 0x4c($s1)
/* 427420 802A9070 A2200060 */ sb $zero, 0x60($s1)
/* 427424 802A9074 A6200044 */ sh $zero, 0x44($s1)
/* 427428 802A9078 A6200048 */ sh $zero, 0x48($s1)
/* 42742C 802A907C A6200068 */ sh $zero, 0x68($s1)
/* 427430 802A9080 A2000081 */ sb $zero, 0x81($s0)
/* 427434 802A9084 A6220056 */ sh $v0, 0x56($s1)
/* 427438 802A9088 24020050 */ addiu $v0, $zero, 0x50
/* 42743C 802A908C 0C050529 */ jal create_icon
/* 427440 802A9090 A6220058 */ sh $v0, 0x58($s1)
/* 427444 802A9094 0040802D */ daddu $s0, $v0, $zero
/* 427448 802A9098 86250056 */ lh $a1, 0x56($s1)
/* 42744C 802A909C 86260058 */ lh $a2, 0x58($s1)
/* 427450 802A90A0 0200202D */ daddu $a0, $s0, $zero
/* 427454 802A90A4 0C051261 */ jal set_icon_render_pos
/* 427458 802A90A8 AE300004 */ sw $s0, 4($s1)
/* 42745C 802A90AC 0200202D */ daddu $a0, $s0, $zero
/* 427460 802A90B0 0C051277 */ jal func_801449DC
/* 427464 802A90B4 0000282D */ daddu $a1, $zero, $zero
/* 427468 802A90B8 0200202D */ daddu $a0, $s0, $zero
/* 42746C 802A90BC 0C051280 */ jal set_icon_flags
/* 427470 802A90C0 24050082 */ addiu $a1, $zero, 0x82
/* 427474 802A90C4 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 427478 802A90C8 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 42747C 802A90CC 0C050529 */ jal create_icon
/* 427480 802A90D0 00000000 */ nop
/* 427484 802A90D4 0040802D */ daddu $s0, $v0, $zero
/* 427488 802A90D8 86250056 */ lh $a1, 0x56($s1)
/* 42748C 802A90DC 86260058 */ lh $a2, 0x58($s1)
/* 427490 802A90E0 0200202D */ daddu $a0, $s0, $zero
/* 427494 802A90E4 AE300008 */ sw $s0, 8($s1)
/* 427498 802A90E8 0C051261 */ jal set_icon_render_pos
/* 42749C 802A90EC 24C6001C */ addiu $a2, $a2, 0x1c
/* 4274A0 802A90F0 0200202D */ daddu $a0, $s0, $zero
/* 4274A4 802A90F4 0C051277 */ jal func_801449DC
/* 4274A8 802A90F8 0000282D */ daddu $a1, $zero, $zero
/* 4274AC 802A90FC 0200202D */ daddu $a0, $s0, $zero
/* 4274B0 802A9100 0C051280 */ jal set_icon_flags
/* 4274B4 802A9104 24050082 */ addiu $a1, $zero, 0x82
/* 4274B8 802A9108 3C048029 */ lui $a0, %hi(D_80292974)
/* 4274BC 802A910C 24842974 */ addiu $a0, $a0, %lo(D_80292974)
/* 4274C0 802A9110 0C050529 */ jal create_icon
/* 4274C4 802A9114 00000000 */ nop
/* 4274C8 802A9118 0040802D */ daddu $s0, $v0, $zero
/* 4274CC 802A911C 86250056 */ lh $a1, 0x56($s1)
/* 4274D0 802A9120 86260058 */ lh $a2, 0x58($s1)
/* 4274D4 802A9124 0200202D */ daddu $a0, $s0, $zero
/* 4274D8 802A9128 AE30000C */ sw $s0, 0xc($s1)
/* 4274DC 802A912C 0C051261 */ jal set_icon_render_pos
/* 4274E0 802A9130 24C6001C */ addiu $a2, $a2, 0x1c
/* 4274E4 802A9134 0200202D */ daddu $a0, $s0, $zero
/* 4274E8 802A9138 0C051277 */ jal func_801449DC
/* 4274EC 802A913C 0000282D */ daddu $a1, $zero, $zero
/* 4274F0 802A9140 0200202D */ daddu $a0, $s0, $zero
/* 4274F4 802A9144 0C051280 */ jal set_icon_flags
/* 4274F8 802A9148 24050082 */ addiu $a1, $zero, 0x82
/* 4274FC 802A914C 080AA457 */ j .L802A915C
/* 427500 802A9150 24020002 */ addiu $v0, $zero, 2
.L802A9154:
/* 427504 802A9154 A0600081 */ sb $zero, 0x81($v1)
/* 427508 802A9158 24020002 */ addiu $v0, $zero, 2
.L802A915C:
/* 42750C 802A915C 8FBF0018 */ lw $ra, 0x18($sp)
/* 427510 802A9160 8FB10014 */ lw $s1, 0x14($sp)
/* 427514 802A9164 8FB00010 */ lw $s0, 0x10($sp)
/* 427518 802A9168 03E00008 */ jr $ra
/* 42751C 802A916C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,77 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9170_427520
/* 427520 802A9170 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 427524 802A9174 AFB3001C */ sw $s3, 0x1c($sp)
/* 427528 802A9178 0080982D */ daddu $s3, $a0, $zero
/* 42752C 802A917C AFB10014 */ sw $s1, 0x14($sp)
/* 427530 802A9180 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 427534 802A9184 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 427538 802A9188 AFB20018 */ sw $s2, 0x18($sp)
/* 42753C 802A918C 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 427540 802A9190 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 427544 802A9194 AFBF0020 */ sw $ra, 0x20($sp)
/* 427548 802A9198 AFB00010 */ sw $s0, 0x10($sp)
/* 42754C 802A919C 82420083 */ lb $v0, 0x83($s2)
/* 427550 802A91A0 8E70000C */ lw $s0, 0xc($s3)
/* 427554 802A91A4 10400030 */ beqz $v0, .L802A9268
/* 427558 802A91A8 0240182D */ daddu $v1, $s2, $zero
/* 42755C 802A91AC 0C09A216 */ jal func_80268858
/* 427560 802A91B0 00000000 */ nop
/* 427564 802A91B4 8E050000 */ lw $a1, ($s0)
/* 427568 802A91B8 26100004 */ addiu $s0, $s0, 4
/* 42756C 802A91BC 0C0B1EAF */ jal get_variable
/* 427570 802A91C0 0260202D */ daddu $a0, $s3, $zero
/* 427574 802A91C4 A622004E */ sh $v0, 0x4e($s1)
/* 427578 802A91C8 8E050000 */ lw $a1, ($s0)
/* 42757C 802A91CC 26100004 */ addiu $s0, $s0, 4
/* 427580 802A91D0 0C0B1EAF */ jal get_variable
/* 427584 802A91D4 0260202D */ daddu $a0, $s3, $zero
/* 427588 802A91D8 A6220052 */ sh $v0, 0x52($s1)
/* 42758C 802A91DC 8E050000 */ lw $a1, ($s0)
/* 427590 802A91E0 26100004 */ addiu $s0, $s0, 4
/* 427594 802A91E4 0C0B1EAF */ jal get_variable
/* 427598 802A91E8 0260202D */ daddu $a0, $s3, $zero
/* 42759C 802A91EC 00022400 */ sll $a0, $v0, 0x10
/* 4275A0 802A91F0 00042403 */ sra $a0, $a0, 0x10
/* 4275A4 802A91F4 0C09A089 */ jal func_80268224
/* 4275A8 802A91F8 A6220050 */ sh $v0, 0x50($s1)
/* 4275AC 802A91FC A6220050 */ sh $v0, 0x50($s1)
/* 4275B0 802A9200 8E050000 */ lw $a1, ($s0)
/* 4275B4 802A9204 0C0B1EAF */ jal get_variable
/* 4275B8 802A9208 0260202D */ daddu $a0, $s3, $zero
/* 4275BC 802A920C 3C05FFFF */ lui $a1, 0xffff
/* 4275C0 802A9210 34A57FFF */ ori $a1, $a1, 0x7fff
/* 4275C4 802A9214 A6220064 */ sh $v0, 0x64($s1)
/* 4275C8 802A9218 A2200060 */ sb $zero, 0x60($s1)
/* 4275CC 802A921C A6200044 */ sh $zero, 0x44($s1)
/* 4275D0 802A9220 A6200048 */ sh $zero, 0x48($s1)
/* 4275D4 802A9224 A2400081 */ sb $zero, 0x81($s2)
/* 4275D8 802A9228 82220080 */ lb $v0, 0x80($s1)
/* 4275DC 802A922C 2403007F */ addiu $v1, $zero, 0x7f
/* 4275E0 802A9230 A2430086 */ sb $v1, 0x86($s2)
/* 4275E4 802A9234 8E430000 */ lw $v1, ($s2)
/* 4275E8 802A9238 2442FFFF */ addiu $v0, $v0, -1
/* 4275EC 802A923C 00021040 */ sll $v0, $v0, 1
/* 4275F0 802A9240 00511021 */ addu $v0, $v0, $s1
/* 4275F4 802A9244 00651824 */ and $v1, $v1, $a1
/* 4275F8 802A9248 90440075 */ lbu $a0, 0x75($v0)
/* 4275FC 802A924C 2402000A */ addiu $v0, $zero, 0xa
/* 427600 802A9250 AE430000 */ sw $v1, ($s2)
/* 427604 802A9254 A622004C */ sh $v0, 0x4c($s1)
/* 427608 802A9258 0C09A446 */ jal func_80269118
/* 42760C 802A925C A2440082 */ sb $a0, 0x82($s2)
/* 427610 802A9260 080AA49C */ j .L802A9270
/* 427614 802A9264 24020002 */ addiu $v0, $zero, 2
.L802A9268:
/* 427618 802A9268 A0600081 */ sb $zero, 0x81($v1)
/* 42761C 802A926C 24020002 */ addiu $v0, $zero, 2
.L802A9270:
/* 427620 802A9270 8FBF0020 */ lw $ra, 0x20($sp)
/* 427624 802A9274 8FB3001C */ lw $s3, 0x1c($sp)
/* 427628 802A9278 8FB20018 */ lw $s2, 0x18($sp)
/* 42762C 802A927C 8FB10014 */ lw $s1, 0x14($sp)
/* 427630 802A9280 8FB00010 */ lw $s0, 0x10($sp)
/* 427634 802A9284 03E00008 */ jr $ra
/* 427638 802A9288 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,197 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A928C_42763C
/* 42763C 802A928C 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 427640 802A9290 AFB10014 */ sw $s1, 0x14($sp)
/* 427644 802A9294 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 427648 802A9298 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42764C 802A929C AFBF001C */ sw $ra, 0x1c($sp)
/* 427650 802A92A0 AFB20018 */ sw $s2, 0x18($sp)
/* 427654 802A92A4 AFB00010 */ sw $s0, 0x10($sp)
/* 427658 802A92A8 8623004C */ lh $v1, 0x4c($s1)
/* 42765C 802A92AC 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 427660 802A92B0 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 427664 802A92B4 2C62000D */ sltiu $v0, $v1, 0xd
/* 427668 802A92B8 104000A2 */ beqz $v0, .L802A9544
/* 42766C 802A92BC 00031080 */ sll $v0, $v1, 2
/* 427670 802A92C0 3C01802B */ lui $at, %hi(D_802A9680)
/* 427674 802A92C4 00220821 */ addu $at, $at, $v0
/* 427678 802A92C8 8C229680 */ lw $v0, %lo(D_802A9680)($at)
/* 42767C 802A92CC 00400008 */ jr $v0
/* 427680 802A92D0 00000000 */ nop
/* 427684 802A92D4 0C093EB1 */ jal set_popup_duration
/* 427688 802A92D8 24040063 */ addiu $a0, $zero, 0x63
/* 42768C 802A92DC 8E300004 */ lw $s0, 4($s1)
/* 427690 802A92E0 240500FF */ addiu $a1, $zero, 0xff
/* 427694 802A92E4 0C0513AC */ jal icon_set_opacity
/* 427698 802A92E8 0200202D */ daddu $a0, $s0, $zero
/* 42769C 802A92EC 82220061 */ lb $v0, 0x61($s1)
/* 4276A0 802A92F0 10400003 */ beqz $v0, .L802A9300
/* 4276A4 802A92F4 0200202D */ daddu $a0, $s0, $zero
/* 4276A8 802A92F8 0C05128B */ jal clear_icon_flags
/* 4276AC 802A92FC 24050002 */ addiu $a1, $zero, 2
.L802A9300:
/* 4276B0 802A9300 8E300008 */ lw $s0, 8($s1)
/* 4276B4 802A9304 240500FF */ addiu $a1, $zero, 0xff
/* 4276B8 802A9308 0C0513AC */ jal icon_set_opacity
/* 4276BC 802A930C 0200202D */ daddu $a0, $s0, $zero
/* 4276C0 802A9310 82220061 */ lb $v0, 0x61($s1)
/* 4276C4 802A9314 10400003 */ beqz $v0, .L802A9324
/* 4276C8 802A9318 0200202D */ daddu $a0, $s0, $zero
/* 4276CC 802A931C 0C05128B */ jal clear_icon_flags
/* 4276D0 802A9320 24050002 */ addiu $a1, $zero, 2
.L802A9324:
/* 4276D4 802A9324 24020001 */ addiu $v0, $zero, 1
/* 4276D8 802A9328 080AA551 */ j .L802A9544
/* 4276DC 802A932C A622004C */ sh $v0, 0x4c($s1)
/* 4276E0 802A9330 0C093EB1 */ jal set_popup_duration
/* 4276E4 802A9334 24040063 */ addiu $a0, $zero, 0x63
/* 4276E8 802A9338 96220056 */ lhu $v0, 0x56($s1)
/* 4276EC 802A933C 24420014 */ addiu $v0, $v0, 0x14
/* 4276F0 802A9340 A6220056 */ sh $v0, 0x56($s1)
/* 4276F4 802A9344 00021400 */ sll $v0, $v0, 0x10
/* 4276F8 802A9348 00021403 */ sra $v0, $v0, 0x10
/* 4276FC 802A934C 28420033 */ slti $v0, $v0, 0x33
/* 427700 802A9350 14400002 */ bnez $v0, .L802A935C
/* 427704 802A9354 24020032 */ addiu $v0, $zero, 0x32
/* 427708 802A9358 A6220056 */ sh $v0, 0x56($s1)
.L802A935C:
/* 42770C 802A935C 8E240004 */ lw $a0, 4($s1)
/* 427710 802A9360 86250056 */ lh $a1, 0x56($s1)
/* 427714 802A9364 0C051261 */ jal set_icon_render_pos
/* 427718 802A9368 86260058 */ lh $a2, 0x58($s1)
/* 42771C 802A936C 8E240008 */ lw $a0, 8($s1)
/* 427720 802A9370 86260058 */ lh $a2, 0x58($s1)
/* 427724 802A9374 86250056 */ lh $a1, 0x56($s1)
/* 427728 802A9378 0C051261 */ jal set_icon_render_pos
/* 42772C 802A937C 24C6001C */ addiu $a2, $a2, 0x1c
/* 427730 802A9380 080AA551 */ j .L802A9544
/* 427734 802A9384 00000000 */ nop
/* 427738 802A9388 0C093EB1 */ jal set_popup_duration
/* 42773C 802A938C 24040063 */ addiu $a0, $zero, 0x63
/* 427740 802A9390 8622004E */ lh $v0, 0x4e($s1)
/* 427744 802A9394 9623004E */ lhu $v1, 0x4e($s1)
/* 427748 802A9398 10400003 */ beqz $v0, .L802A93A8
/* 42774C 802A939C 2462FFFF */ addiu $v0, $v1, -1
/* 427750 802A93A0 080AA551 */ j .L802A9544
/* 427754 802A93A4 A622004E */ sh $v0, 0x4e($s1)
.L802A93A8:
/* 427758 802A93A8 8E240004 */ lw $a0, 4($s1)
/* 42775C 802A93AC 3C058011 */ lui $a1, %hi(D_80108B80)
/* 427760 802A93B0 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80)
/* 427764 802A93B4 0C0511FF */ jal set_menu_icon_script
/* 427768 802A93B8 00000000 */ nop
/* 42776C 802A93BC 96230052 */ lhu $v1, 0x52($s1)
/* 427770 802A93C0 2402000B */ addiu $v0, $zero, 0xb
/* 427774 802A93C4 A6200044 */ sh $zero, 0x44($s1)
/* 427778 802A93C8 A622004C */ sh $v0, 0x4c($s1)
/* 42777C 802A93CC A6230054 */ sh $v1, 0x54($s1)
/* 427780 802A93D0 0C093EB1 */ jal set_popup_duration
/* 427784 802A93D4 24040063 */ addiu $a0, $zero, 0x63
/* 427788 802A93D8 8E420214 */ lw $v0, 0x214($s2)
/* 42778C 802A93DC 30428000 */ andi $v0, $v0, 0x8000
/* 427790 802A93E0 1040000B */ beqz $v0, .L802A9410
/* 427794 802A93E4 00000000 */ nop
/* 427798 802A93E8 86220050 */ lh $v0, 0x50($s1)
/* 42779C 802A93EC 8E430434 */ lw $v1, 0x434($s2)
/* 4277A0 802A93F0 00021080 */ sll $v0, $v0, 2
/* 4277A4 802A93F4 00431021 */ addu $v0, $v0, $v1
/* 4277A8 802A93F8 8C440000 */ lw $a0, ($v0)
/* 4277AC 802A93FC 96230044 */ lhu $v1, 0x44($s1)
/* 4277B0 802A9400 00041100 */ sll $v0, $a0, 4
/* 4277B4 802A9404 00441023 */ subu $v0, $v0, $a0
/* 4277B8 802A9408 00621821 */ addu $v1, $v1, $v0
/* 4277BC 802A940C A6230044 */ sh $v1, 0x44($s1)
.L802A9410:
/* 4277C0 802A9410 86220044 */ lh $v0, 0x44($s1)
/* 4277C4 802A9414 28422710 */ slti $v0, $v0, 0x2710
/* 4277C8 802A9418 14400010 */ bnez $v0, .L802A945C
/* 4277CC 802A941C 3C0451EB */ lui $a0, 0x51eb
/* 4277D0 802A9420 8E30000C */ lw $s0, 0xc($s1)
/* 4277D4 802A9424 86250056 */ lh $a1, 0x56($s1)
/* 4277D8 802A9428 86260058 */ lh $a2, 0x58($s1)
/* 4277DC 802A942C 24022710 */ addiu $v0, $zero, 0x2710
/* 4277E0 802A9430 A6220044 */ sh $v0, 0x44($s1)
/* 4277E4 802A9434 24020001 */ addiu $v0, $zero, 1
/* 4277E8 802A9438 A6220068 */ sh $v0, 0x68($s1)
/* 4277EC 802A943C 0200202D */ daddu $a0, $s0, $zero
/* 4277F0 802A9440 24A50032 */ addiu $a1, $a1, 0x32
/* 4277F4 802A9444 0C051261 */ jal set_icon_render_pos
/* 4277F8 802A9448 24C6001C */ addiu $a2, $a2, 0x1c
/* 4277FC 802A944C 0200202D */ daddu $a0, $s0, $zero
/* 427800 802A9450 0C05128B */ jal clear_icon_flags
/* 427804 802A9454 24050002 */ addiu $a1, $zero, 2
/* 427808 802A9458 3C0451EB */ lui $a0, 0x51eb
.L802A945C:
/* 42780C 802A945C 96230044 */ lhu $v1, 0x44($s1)
/* 427810 802A9460 3484851F */ ori $a0, $a0, 0x851f
/* 427814 802A9464 00031C00 */ sll $v1, $v1, 0x10
/* 427818 802A9468 00031403 */ sra $v0, $v1, 0x10
/* 42781C 802A946C 00440018 */ mult $v0, $a0
/* 427820 802A9470 00031FC3 */ sra $v1, $v1, 0x1f
/* 427824 802A9474 00003810 */ mfhi $a3
/* 427828 802A9478 00071143 */ sra $v0, $a3, 5
/* 42782C 802A947C 00431023 */ subu $v0, $v0, $v1
/* 427830 802A9480 A2420084 */ sb $v0, 0x84($s2)
/* 427834 802A9484 86220054 */ lh $v0, 0x54($s1)
/* 427838 802A9488 96230054 */ lhu $v1, 0x54($s1)
/* 42783C 802A948C 14400029 */ bnez $v0, .L802A9534
/* 427840 802A9490 2462FFFF */ addiu $v0, $v1, -1
/* 427844 802A9494 96220044 */ lhu $v0, 0x44($s1)
/* 427848 802A9498 00021C00 */ sll $v1, $v0, 0x10
/* 42784C 802A949C 00031403 */ sra $v0, $v1, 0x10
/* 427850 802A94A0 14400003 */ bnez $v0, .L802A94B0
/* 427854 802A94A4 00440018 */ mult $v0, $a0
/* 427858 802A94A8 080AA530 */ j .L802A94C0
/* 42785C 802A94AC 2402FFFF */ addiu $v0, $zero, -1
.L802A94B0:
/* 427860 802A94B0 00031FC3 */ sra $v1, $v1, 0x1f
/* 427864 802A94B4 00003810 */ mfhi $a3
/* 427868 802A94B8 00071143 */ sra $v0, $a3, 5
/* 42786C 802A94BC 00431023 */ subu $v0, $v0, $v1
.L802A94C0:
/* 427870 802A94C0 A2420081 */ sb $v0, 0x81($s2)
/* 427874 802A94C4 82220080 */ lb $v0, 0x80($s1)
/* 427878 802A94C8 2442FFFF */ addiu $v0, $v0, -1
/* 42787C 802A94CC 00021040 */ sll $v0, $v0, 1
/* 427880 802A94D0 02221021 */ addu $v0, $s1, $v0
/* 427884 802A94D4 84430074 */ lh $v1, 0x74($v0)
/* 427888 802A94D8 82420081 */ lb $v0, 0x81($s2)
/* 42788C 802A94DC 0043102A */ slt $v0, $v0, $v1
/* 427890 802A94E0 14400002 */ bnez $v0, .L802A94EC
/* 427894 802A94E4 2402FFFE */ addiu $v0, $zero, -2
/* 427898 802A94E8 24020001 */ addiu $v0, $zero, 1
.L802A94EC:
/* 42789C 802A94EC A2420086 */ sb $v0, 0x86($s2)
/* 4278A0 802A94F0 82430081 */ lb $v1, 0x81($s2)
/* 4278A4 802A94F4 24020064 */ addiu $v0, $zero, 0x64
/* 4278A8 802A94F8 14620003 */ bne $v1, $v0, .L802A9508
/* 4278AC 802A94FC 00000000 */ nop
/* 4278B0 802A9500 0C09A458 */ jal func_80269160
/* 4278B4 802A9504 00000000 */ nop
.L802A9508:
/* 4278B8 802A9508 0C093EB1 */ jal set_popup_duration
/* 4278BC 802A950C 0000202D */ daddu $a0, $zero, $zero
/* 4278C0 802A9510 24020005 */ addiu $v0, $zero, 5
/* 4278C4 802A9514 A6220054 */ sh $v0, 0x54($s1)
/* 4278C8 802A9518 2402000C */ addiu $v0, $zero, 0xc
/* 4278CC 802A951C 080AA551 */ j .L802A9544
/* 4278D0 802A9520 A622004C */ sh $v0, 0x4c($s1)
/* 4278D4 802A9524 86220054 */ lh $v0, 0x54($s1)
/* 4278D8 802A9528 96230054 */ lhu $v1, 0x54($s1)
/* 4278DC 802A952C 10400003 */ beqz $v0, .L802A953C
/* 4278E0 802A9530 2462FFFF */ addiu $v0, $v1, -1
.L802A9534:
/* 4278E4 802A9534 080AA551 */ j .L802A9544
/* 4278E8 802A9538 A6220054 */ sh $v0, 0x54($s1)
.L802A953C:
/* 4278EC 802A953C 0C09A327 */ jal func_80268C9C
/* 4278F0 802A9540 00000000 */ nop
.L802A9544:
/* 4278F4 802A9544 8FBF001C */ lw $ra, 0x1c($sp)
/* 4278F8 802A9548 8FB20018 */ lw $s2, 0x18($sp)
/* 4278FC 802A954C 8FB10014 */ lw $s1, 0x14($sp)
/* 427900 802A9550 8FB00010 */ lw $s0, 0x10($sp)
/* 427904 802A9554 03E00008 */ jr $ra
/* 427908 802A9558 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,62 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A955C_42790C
/* 42790C 802A955C 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 427910 802A9560 AFB1001C */ sw $s1, 0x1c($sp)
/* 427914 802A9564 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 427918 802A9568 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42791C 802A956C AFBF0020 */ sw $ra, 0x20($sp)
/* 427920 802A9570 AFB00018 */ sw $s0, 0x18($sp)
/* 427924 802A9574 0C0511EA */ jal draw_icon_0
/* 427928 802A9578 8E240004 */ lw $a0, 4($s1)
/* 42792C 802A957C 8E300008 */ lw $s0, 8($s1)
/* 427930 802A9580 0C0511EA */ jal draw_icon_0
/* 427934 802A9584 0200202D */ daddu $a0, $s0, $zero
/* 427938 802A9588 0200202D */ daddu $a0, $s0, $zero
/* 42793C 802A958C 27A50010 */ addiu $a1, $sp, 0x10
/* 427940 802A9590 0C05126B */ jal get_icon_render_pos
/* 427944 802A9594 27A60014 */ addiu $a2, $sp, 0x14
/* 427948 802A9598 86220068 */ lh $v0, 0x68($s1)
/* 42794C 802A959C 14400011 */ bnez $v0, .L802A95E4
/* 427950 802A95A0 3C0451EB */ lui $a0, 0x51eb
/* 427954 802A95A4 96230044 */ lhu $v1, 0x44($s1)
/* 427958 802A95A8 3484851F */ ori $a0, $a0, 0x851f
/* 42795C 802A95AC 00031C00 */ sll $v1, $v1, 0x10
/* 427960 802A95B0 00031403 */ sra $v0, $v1, 0x10
/* 427964 802A95B4 00440018 */ mult $v0, $a0
/* 427968 802A95B8 8FA50014 */ lw $a1, 0x14($sp)
/* 42796C 802A95BC 00031FC3 */ sra $v1, $v1, 0x1f
/* 427970 802A95C0 8FA40010 */ lw $a0, 0x10($sp)
/* 427974 802A95C4 00003810 */ mfhi $a3
/* 427978 802A95C8 00073143 */ sra $a2, $a3, 5
/* 42797C 802A95CC 00C33023 */ subu $a2, $a2, $v1
/* 427980 802A95D0 00063400 */ sll $a2, $a2, 0x10
/* 427984 802A95D4 0C09A1DC */ jal func_80268770
/* 427988 802A95D8 00063403 */ sra $a2, $a2, 0x10
/* 42798C 802A95DC 080AA587 */ j .L802A961C
/* 427990 802A95E0 00000000 */ nop
.L802A95E4:
/* 427994 802A95E4 96230044 */ lhu $v1, 0x44($s1)
/* 427998 802A95E8 3484851F */ ori $a0, $a0, 0x851f
/* 42799C 802A95EC 00031C00 */ sll $v1, $v1, 0x10
/* 4279A0 802A95F0 00031403 */ sra $v0, $v1, 0x10
/* 4279A4 802A95F4 00440018 */ mult $v0, $a0
/* 4279A8 802A95F8 8FA50014 */ lw $a1, 0x14($sp)
/* 4279AC 802A95FC 00031FC3 */ sra $v1, $v1, 0x1f
/* 4279B0 802A9600 8FA40010 */ lw $a0, 0x10($sp)
/* 4279B4 802A9604 00003810 */ mfhi $a3
/* 4279B8 802A9608 00073143 */ sra $a2, $a3, 5
/* 4279BC 802A960C 00C33023 */ subu $a2, $a2, $v1
/* 4279C0 802A9610 00063400 */ sll $a2, $a2, 0x10
/* 4279C4 802A9614 0C09A203 */ jal func_8026880C
/* 4279C8 802A9618 00063403 */ sra $a2, $a2, 0x10
.L802A961C:
/* 4279CC 802A961C 8E24000C */ lw $a0, 0xc($s1)
/* 4279D0 802A9620 0C0511EA */ jal draw_icon_0
/* 4279D4 802A9624 00000000 */ nop
/* 4279D8 802A9628 8FBF0020 */ lw $ra, 0x20($sp)
/* 4279DC 802A962C 8FB1001C */ lw $s1, 0x1c($sp)
/* 4279E0 802A9630 8FB00018 */ lw $s0, 0x18($sp)
/* 4279E4 802A9634 03E00008 */ jr $ra
/* 4279E8 802A9638 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,21 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A963C_4279EC
/* 4279EC 802A963C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 4279F0 802A9640 AFB00010 */ sw $s0, 0x10($sp)
/* 4279F4 802A9644 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 4279F8 802A9648 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 4279FC 802A964C AFBF0014 */ sw $ra, 0x14($sp)
/* 427A00 802A9650 0C05123D */ jal free_icon
/* 427A04 802A9654 8E040004 */ lw $a0, 4($s0)
/* 427A08 802A9658 0C05123D */ jal free_icon
/* 427A0C 802A965C 8E040008 */ lw $a0, 8($s0)
/* 427A10 802A9660 0C05123D */ jal free_icon
/* 427A14 802A9664 8E04000C */ lw $a0, 0xc($s0)
/* 427A18 802A9668 8FBF0014 */ lw $ra, 0x14($sp)
/* 427A1C 802A966C 8FB00010 */ lw $s0, 0x10($sp)
/* 427A20 802A9670 03E00008 */ jr $ra
/* 427A24 802A9674 27BD0018 */ addiu $sp, $sp, 0x18
/* 427A28 802A9678 00000000 */ nop
/* 427A2C 802A967C 00000000 */ nop

View File

@ -0,0 +1,98 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_427A70
/* 427A70 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 427A74 802A9004 AFB00010 */ sw $s0, 0x10($sp)
/* 427A78 802A9008 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 427A7C 802A900C 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 427A80 802A9010 24020064 */ addiu $v0, $zero, 0x64
/* 427A84 802A9014 AFBF0018 */ sw $ra, 0x18($sp)
/* 427A88 802A9018 AFB10014 */ sw $s1, 0x14($sp)
/* 427A8C 802A901C A2020082 */ sb $v0, 0x82($s0)
/* 427A90 802A9020 3C028029 */ lui $v0, %hi(D_80294300)
/* 427A94 802A9024 24424300 */ addiu $v0, $v0, %lo(D_80294300)
/* 427A98 802A9028 AE020434 */ sw $v0, 0x434($s0)
/* 427A9C 802A902C 2402007F */ addiu $v0, $zero, 0x7f
/* 427AA0 802A9030 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 427AA4 802A9034 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 427AA8 802A9038 A2020086 */ sb $v0, 0x86($s0)
/* 427AAC 802A903C 82020083 */ lb $v0, 0x83($s0)
/* 427AB0 802A9040 10400044 */ beqz $v0, .L802A9154
/* 427AB4 802A9044 0200182D */ daddu $v1, $s0, $zero
/* 427AB8 802A9048 0C09A216 */ jal func_80268858
/* 427ABC 802A904C 00000000 */ nop
/* 427AC0 802A9050 3C048011 */ lui $a0, %hi(D_80108B28)
/* 427AC4 802A9054 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 427AC8 802A9058 2402000B */ addiu $v0, $zero, 0xb
/* 427ACC 802A905C A622004A */ sh $v0, 0x4a($s1)
/* 427AD0 802A9060 24020001 */ addiu $v0, $zero, 1
/* 427AD4 802A9064 A2220061 */ sb $v0, 0x61($s1)
/* 427AD8 802A9068 2402FFD0 */ addiu $v0, $zero, -0x30
/* 427ADC 802A906C A620004C */ sh $zero, 0x4c($s1)
/* 427AE0 802A9070 A2200060 */ sb $zero, 0x60($s1)
/* 427AE4 802A9074 A6200044 */ sh $zero, 0x44($s1)
/* 427AE8 802A9078 A6200048 */ sh $zero, 0x48($s1)
/* 427AEC 802A907C A6200068 */ sh $zero, 0x68($s1)
/* 427AF0 802A9080 A2000081 */ sb $zero, 0x81($s0)
/* 427AF4 802A9084 A6220056 */ sh $v0, 0x56($s1)
/* 427AF8 802A9088 24020050 */ addiu $v0, $zero, 0x50
/* 427AFC 802A908C 0C050529 */ jal create_icon
/* 427B00 802A9090 A6220058 */ sh $v0, 0x58($s1)
/* 427B04 802A9094 0040802D */ daddu $s0, $v0, $zero
/* 427B08 802A9098 86250056 */ lh $a1, 0x56($s1)
/* 427B0C 802A909C 86260058 */ lh $a2, 0x58($s1)
/* 427B10 802A90A0 0200202D */ daddu $a0, $s0, $zero
/* 427B14 802A90A4 0C051261 */ jal set_icon_render_pos
/* 427B18 802A90A8 AE300004 */ sw $s0, 4($s1)
/* 427B1C 802A90AC 0200202D */ daddu $a0, $s0, $zero
/* 427B20 802A90B0 0C051277 */ jal func_801449DC
/* 427B24 802A90B4 0000282D */ daddu $a1, $zero, $zero
/* 427B28 802A90B8 0200202D */ daddu $a0, $s0, $zero
/* 427B2C 802A90BC 0C051280 */ jal set_icon_flags
/* 427B30 802A90C0 24050082 */ addiu $a1, $zero, 0x82
/* 427B34 802A90C4 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 427B38 802A90C8 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 427B3C 802A90CC 0C050529 */ jal create_icon
/* 427B40 802A90D0 00000000 */ nop
/* 427B44 802A90D4 0040802D */ daddu $s0, $v0, $zero
/* 427B48 802A90D8 86250056 */ lh $a1, 0x56($s1)
/* 427B4C 802A90DC 86260058 */ lh $a2, 0x58($s1)
/* 427B50 802A90E0 0200202D */ daddu $a0, $s0, $zero
/* 427B54 802A90E4 AE300008 */ sw $s0, 8($s1)
/* 427B58 802A90E8 0C051261 */ jal set_icon_render_pos
/* 427B5C 802A90EC 24C6001C */ addiu $a2, $a2, 0x1c
/* 427B60 802A90F0 0200202D */ daddu $a0, $s0, $zero
/* 427B64 802A90F4 0C051277 */ jal func_801449DC
/* 427B68 802A90F8 0000282D */ daddu $a1, $zero, $zero
/* 427B6C 802A90FC 0200202D */ daddu $a0, $s0, $zero
/* 427B70 802A9100 0C051280 */ jal set_icon_flags
/* 427B74 802A9104 24050082 */ addiu $a1, $zero, 0x82
/* 427B78 802A9108 3C048029 */ lui $a0, %hi(D_80292974)
/* 427B7C 802A910C 24842974 */ addiu $a0, $a0, %lo(D_80292974)
/* 427B80 802A9110 0C050529 */ jal create_icon
/* 427B84 802A9114 00000000 */ nop
/* 427B88 802A9118 0040802D */ daddu $s0, $v0, $zero
/* 427B8C 802A911C 86250056 */ lh $a1, 0x56($s1)
/* 427B90 802A9120 86260058 */ lh $a2, 0x58($s1)
/* 427B94 802A9124 0200202D */ daddu $a0, $s0, $zero
/* 427B98 802A9128 AE30000C */ sw $s0, 0xc($s1)
/* 427B9C 802A912C 0C051261 */ jal set_icon_render_pos
/* 427BA0 802A9130 24C6001C */ addiu $a2, $a2, 0x1c
/* 427BA4 802A9134 0200202D */ daddu $a0, $s0, $zero
/* 427BA8 802A9138 0C051277 */ jal func_801449DC
/* 427BAC 802A913C 0000282D */ daddu $a1, $zero, $zero
/* 427BB0 802A9140 0200202D */ daddu $a0, $s0, $zero
/* 427BB4 802A9144 0C051280 */ jal set_icon_flags
/* 427BB8 802A9148 24050082 */ addiu $a1, $zero, 0x82
/* 427BBC 802A914C 080AA457 */ j .L802A915C
/* 427BC0 802A9150 24020002 */ addiu $v0, $zero, 2
.L802A9154:
/* 427BC4 802A9154 A0600081 */ sb $zero, 0x81($v1)
/* 427BC8 802A9158 24020002 */ addiu $v0, $zero, 2
.L802A915C:
/* 427BCC 802A915C 8FBF0018 */ lw $ra, 0x18($sp)
/* 427BD0 802A9160 8FB10014 */ lw $s1, 0x14($sp)
/* 427BD4 802A9164 8FB00010 */ lw $s0, 0x10($sp)
/* 427BD8 802A9168 03E00008 */ jr $ra
/* 427BDC 802A916C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,77 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9170_427BE0
/* 427BE0 802A9170 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 427BE4 802A9174 AFB3001C */ sw $s3, 0x1c($sp)
/* 427BE8 802A9178 0080982D */ daddu $s3, $a0, $zero
/* 427BEC 802A917C AFB10014 */ sw $s1, 0x14($sp)
/* 427BF0 802A9180 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 427BF4 802A9184 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 427BF8 802A9188 AFB20018 */ sw $s2, 0x18($sp)
/* 427BFC 802A918C 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 427C00 802A9190 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 427C04 802A9194 AFBF0020 */ sw $ra, 0x20($sp)
/* 427C08 802A9198 AFB00010 */ sw $s0, 0x10($sp)
/* 427C0C 802A919C 82420083 */ lb $v0, 0x83($s2)
/* 427C10 802A91A0 8E70000C */ lw $s0, 0xc($s3)
/* 427C14 802A91A4 10400030 */ beqz $v0, .L802A9268
/* 427C18 802A91A8 0240182D */ daddu $v1, $s2, $zero
/* 427C1C 802A91AC 0C09A216 */ jal func_80268858
/* 427C20 802A91B0 00000000 */ nop
/* 427C24 802A91B4 8E050000 */ lw $a1, ($s0)
/* 427C28 802A91B8 26100004 */ addiu $s0, $s0, 4
/* 427C2C 802A91BC 0C0B1EAF */ jal get_variable
/* 427C30 802A91C0 0260202D */ daddu $a0, $s3, $zero
/* 427C34 802A91C4 A622004E */ sh $v0, 0x4e($s1)
/* 427C38 802A91C8 8E050000 */ lw $a1, ($s0)
/* 427C3C 802A91CC 26100004 */ addiu $s0, $s0, 4
/* 427C40 802A91D0 0C0B1EAF */ jal get_variable
/* 427C44 802A91D4 0260202D */ daddu $a0, $s3, $zero
/* 427C48 802A91D8 A6220052 */ sh $v0, 0x52($s1)
/* 427C4C 802A91DC 8E050000 */ lw $a1, ($s0)
/* 427C50 802A91E0 26100004 */ addiu $s0, $s0, 4
/* 427C54 802A91E4 0C0B1EAF */ jal get_variable
/* 427C58 802A91E8 0260202D */ daddu $a0, $s3, $zero
/* 427C5C 802A91EC 00022400 */ sll $a0, $v0, 0x10
/* 427C60 802A91F0 00042403 */ sra $a0, $a0, 0x10
/* 427C64 802A91F4 0C09A089 */ jal func_80268224
/* 427C68 802A91F8 A6220050 */ sh $v0, 0x50($s1)
/* 427C6C 802A91FC A6220050 */ sh $v0, 0x50($s1)
/* 427C70 802A9200 8E050000 */ lw $a1, ($s0)
/* 427C74 802A9204 0C0B1EAF */ jal get_variable
/* 427C78 802A9208 0260202D */ daddu $a0, $s3, $zero
/* 427C7C 802A920C 3C05FFFF */ lui $a1, 0xffff
/* 427C80 802A9210 34A57FFF */ ori $a1, $a1, 0x7fff
/* 427C84 802A9214 A6220064 */ sh $v0, 0x64($s1)
/* 427C88 802A9218 A2200060 */ sb $zero, 0x60($s1)
/* 427C8C 802A921C A6200044 */ sh $zero, 0x44($s1)
/* 427C90 802A9220 A6200048 */ sh $zero, 0x48($s1)
/* 427C94 802A9224 A2400081 */ sb $zero, 0x81($s2)
/* 427C98 802A9228 82220080 */ lb $v0, 0x80($s1)
/* 427C9C 802A922C 2403007F */ addiu $v1, $zero, 0x7f
/* 427CA0 802A9230 A2430086 */ sb $v1, 0x86($s2)
/* 427CA4 802A9234 8E430000 */ lw $v1, ($s2)
/* 427CA8 802A9238 2442FFFF */ addiu $v0, $v0, -1
/* 427CAC 802A923C 00021040 */ sll $v0, $v0, 1
/* 427CB0 802A9240 00511021 */ addu $v0, $v0, $s1
/* 427CB4 802A9244 00651824 */ and $v1, $v1, $a1
/* 427CB8 802A9248 90440075 */ lbu $a0, 0x75($v0)
/* 427CBC 802A924C 2402000A */ addiu $v0, $zero, 0xa
/* 427CC0 802A9250 AE430000 */ sw $v1, ($s2)
/* 427CC4 802A9254 A622004C */ sh $v0, 0x4c($s1)
/* 427CC8 802A9258 0C09A446 */ jal func_80269118
/* 427CCC 802A925C A2440082 */ sb $a0, 0x82($s2)
/* 427CD0 802A9260 080AA49C */ j .L802A9270
/* 427CD4 802A9264 24020002 */ addiu $v0, $zero, 2
.L802A9268:
/* 427CD8 802A9268 A0600081 */ sb $zero, 0x81($v1)
/* 427CDC 802A926C 24020002 */ addiu $v0, $zero, 2
.L802A9270:
/* 427CE0 802A9270 8FBF0020 */ lw $ra, 0x20($sp)
/* 427CE4 802A9274 8FB3001C */ lw $s3, 0x1c($sp)
/* 427CE8 802A9278 8FB20018 */ lw $s2, 0x18($sp)
/* 427CEC 802A927C 8FB10014 */ lw $s1, 0x14($sp)
/* 427CF0 802A9280 8FB00010 */ lw $s0, 0x10($sp)
/* 427CF4 802A9284 03E00008 */ jr $ra
/* 427CF8 802A9288 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,306 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A928C_427CFC
/* 427CFC 802A928C 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 427D00 802A9290 AFB10014 */ sw $s1, 0x14($sp)
/* 427D04 802A9294 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 427D08 802A9298 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 427D0C 802A929C AFBF001C */ sw $ra, 0x1c($sp)
/* 427D10 802A92A0 AFB20018 */ sw $s2, 0x18($sp)
/* 427D14 802A92A4 AFB00010 */ sw $s0, 0x10($sp)
/* 427D18 802A92A8 8623004C */ lh $v1, 0x4c($s1)
/* 427D1C 802A92AC 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 427D20 802A92B0 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 427D24 802A92B4 2C62000D */ sltiu $v0, $v1, 0xd
/* 427D28 802A92B8 10400106 */ beqz $v0, .L802A96D4
/* 427D2C 802A92BC 00031080 */ sll $v0, $v1, 2
/* 427D30 802A92C0 3C01802B */ lui $at, %hi(D_802A9830)
/* 427D34 802A92C4 00220821 */ addu $at, $at, $v0
/* 427D38 802A92C8 8C229830 */ lw $v0, %lo(D_802A9830)($at)
/* 427D3C 802A92CC 00400008 */ jr $v0
/* 427D40 802A92D0 00000000 */ nop
/* 427D44 802A92D4 0C093EB1 */ jal set_popup_duration
/* 427D48 802A92D8 24040063 */ addiu $a0, $zero, 0x63
/* 427D4C 802A92DC 8E300004 */ lw $s0, 4($s1)
/* 427D50 802A92E0 240500FF */ addiu $a1, $zero, 0xff
/* 427D54 802A92E4 0C0513AC */ jal icon_set_opacity
/* 427D58 802A92E8 0200202D */ daddu $a0, $s0, $zero
/* 427D5C 802A92EC 82220061 */ lb $v0, 0x61($s1)
/* 427D60 802A92F0 10400003 */ beqz $v0, .L802A9300
/* 427D64 802A92F4 0200202D */ daddu $a0, $s0, $zero
/* 427D68 802A92F8 0C05128B */ jal clear_icon_flags
/* 427D6C 802A92FC 24050002 */ addiu $a1, $zero, 2
.L802A9300:
/* 427D70 802A9300 8E300008 */ lw $s0, 8($s1)
/* 427D74 802A9304 240500FF */ addiu $a1, $zero, 0xff
/* 427D78 802A9308 0C0513AC */ jal icon_set_opacity
/* 427D7C 802A930C 0200202D */ daddu $a0, $s0, $zero
/* 427D80 802A9310 82220061 */ lb $v0, 0x61($s1)
/* 427D84 802A9314 10400003 */ beqz $v0, .L802A9324
/* 427D88 802A9318 0200202D */ daddu $a0, $s0, $zero
/* 427D8C 802A931C 0C05128B */ jal clear_icon_flags
/* 427D90 802A9320 24050002 */ addiu $a1, $zero, 2
.L802A9324:
/* 427D94 802A9324 24020001 */ addiu $v0, $zero, 1
/* 427D98 802A9328 080AA5B5 */ j .L802A96D4
/* 427D9C 802A932C A622004C */ sh $v0, 0x4c($s1)
/* 427DA0 802A9330 0C093EB1 */ jal set_popup_duration
/* 427DA4 802A9334 24040063 */ addiu $a0, $zero, 0x63
/* 427DA8 802A9338 96220056 */ lhu $v0, 0x56($s1)
/* 427DAC 802A933C 24420014 */ addiu $v0, $v0, 0x14
/* 427DB0 802A9340 A6220056 */ sh $v0, 0x56($s1)
/* 427DB4 802A9344 00021400 */ sll $v0, $v0, 0x10
/* 427DB8 802A9348 00021403 */ sra $v0, $v0, 0x10
/* 427DBC 802A934C 28420033 */ slti $v0, $v0, 0x33
/* 427DC0 802A9350 14400002 */ bnez $v0, .L802A935C
/* 427DC4 802A9354 24020032 */ addiu $v0, $zero, 0x32
/* 427DC8 802A9358 A6220056 */ sh $v0, 0x56($s1)
.L802A935C:
/* 427DCC 802A935C 8E240004 */ lw $a0, 4($s1)
/* 427DD0 802A9360 86250056 */ lh $a1, 0x56($s1)
/* 427DD4 802A9364 0C051261 */ jal set_icon_render_pos
/* 427DD8 802A9368 86260058 */ lh $a2, 0x58($s1)
/* 427DDC 802A936C 8E240008 */ lw $a0, 8($s1)
/* 427DE0 802A9370 86260058 */ lh $a2, 0x58($s1)
/* 427DE4 802A9374 86250056 */ lh $a1, 0x56($s1)
/* 427DE8 802A9378 0C051261 */ jal set_icon_render_pos
/* 427DEC 802A937C 24C6001C */ addiu $a2, $a2, 0x1c
/* 427DF0 802A9380 080AA5B5 */ j .L802A96D4
/* 427DF4 802A9384 00000000 */ nop
/* 427DF8 802A9388 0C093EB1 */ jal set_popup_duration
/* 427DFC 802A938C 24040063 */ addiu $a0, $zero, 0x63
/* 427E00 802A9390 8622004E */ lh $v0, 0x4e($s1)
/* 427E04 802A9394 9623004E */ lhu $v1, 0x4e($s1)
/* 427E08 802A9398 10400003 */ beqz $v0, .L802A93A8
/* 427E0C 802A939C 2462FFFF */ addiu $v0, $v1, -1
/* 427E10 802A93A0 080AA5B5 */ j .L802A96D4
/* 427E14 802A93A4 A622004E */ sh $v0, 0x4e($s1)
.L802A93A8:
/* 427E18 802A93A8 8E240004 */ lw $a0, 4($s1)
/* 427E1C 802A93AC 3C058011 */ lui $a1, %hi(D_80108B80)
/* 427E20 802A93B0 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80)
/* 427E24 802A93B4 0C0511FF */ jal set_menu_icon_script
/* 427E28 802A93B8 00000000 */ nop
/* 427E2C 802A93BC 3C048000 */ lui $a0, 0x8000
/* 427E30 802A93C0 34840041 */ ori $a0, $a0, 0x41
/* 427E34 802A93C4 0000282D */ daddu $a1, $zero, $zero
/* 427E38 802A93C8 00A0302D */ daddu $a2, $a1, $zero
/* 427E3C 802A93CC 96220052 */ lhu $v0, 0x52($s1)
/* 427E40 802A93D0 00A0382D */ daddu $a3, $a1, $zero
/* 427E44 802A93D4 A6200044 */ sh $zero, 0x44($s1)
/* 427E48 802A93D8 0C0526AE */ jal _play_sound
/* 427E4C 802A93DC A6220054 */ sh $v0, 0x54($s1)
/* 427E50 802A93E0 2402000B */ addiu $v0, $zero, 0xb
/* 427E54 802A93E4 A622004C */ sh $v0, 0x4c($s1)
/* 427E58 802A93E8 0C093EB1 */ jal set_popup_duration
/* 427E5C 802A93EC 24040063 */ addiu $a0, $zero, 0x63
/* 427E60 802A93F0 86220068 */ lh $v0, 0x68($s1)
/* 427E64 802A93F4 14400021 */ bnez $v0, .L802A947C
/* 427E68 802A93F8 00000000 */ nop
/* 427E6C 802A93FC 82220080 */ lb $v0, 0x80($s1)
/* 427E70 802A9400 00021040 */ sll $v0, $v0, 1
/* 427E74 802A9404 02221021 */ addu $v0, $s1, $v0
/* 427E78 802A9408 84430074 */ lh $v1, 0x74($v0)
/* 427E7C 802A940C 86220044 */ lh $v0, 0x44($s1)
/* 427E80 802A9410 14600002 */ bnez $v1, .L802A941C
/* 427E84 802A9414 0043001A */ div $zero, $v0, $v1
/* 427E88 802A9418 0007000D */ break 7
.L802A941C:
/* 427E8C 802A941C 2401FFFF */ addiu $at, $zero, -1
/* 427E90 802A9420 14610004 */ bne $v1, $at, .L802A9434
/* 427E94 802A9424 3C018000 */ lui $at, 0x8000
/* 427E98 802A9428 14410002 */ bne $v0, $at, .L802A9434
/* 427E9C 802A942C 00000000 */ nop
/* 427EA0 802A9430 0006000D */ break 6
.L802A9434:
/* 427EA4 802A9434 00001012 */ mflo $v0
/* 427EA8 802A9438 3C036666 */ lui $v1, 0x6666
/* 427EAC 802A943C 34636667 */ ori $v1, $v1, 0x6667
/* 427EB0 802A9440 00430018 */ mult $v0, $v1
/* 427EB4 802A9444 000217C3 */ sra $v0, $v0, 0x1f
/* 427EB8 802A9448 00001810 */ mfhi $v1
/* 427EBC 802A944C 000318C3 */ sra $v1, $v1, 3
/* 427EC0 802A9450 00621823 */ subu $v1, $v1, $v0
/* 427EC4 802A9454 00031880 */ sll $v1, $v1, 2
/* 427EC8 802A9458 96220044 */ lhu $v0, 0x44($s1)
/* 427ECC 802A945C 3C01802B */ lui $at, %hi(D_802A9812)
/* 427ED0 802A9460 00230821 */ addu $at, $at, $v1
/* 427ED4 802A9464 94239812 */ lhu $v1, %lo(D_802A9812)($at)
/* 427ED8 802A9468 00431023 */ subu $v0, $v0, $v1
/* 427EDC 802A946C A6220044 */ sh $v0, 0x44($s1)
/* 427EE0 802A9470 00021400 */ sll $v0, $v0, 0x10
/* 427EE4 802A9474 04420001 */ bltzl $v0, .L802A947C
/* 427EE8 802A9478 A6200044 */ sh $zero, 0x44($s1)
.L802A947C:
/* 427EEC 802A947C 8E420214 */ lw $v0, 0x214($s2)
/* 427EF0 802A9480 30428000 */ andi $v0, $v0, 0x8000
/* 427EF4 802A9484 10400039 */ beqz $v0, .L802A956C
/* 427EF8 802A9488 24020001 */ addiu $v0, $zero, 1
/* 427EFC 802A948C 86230064 */ lh $v1, 0x64($s1)
/* 427F00 802A9490 10620018 */ beq $v1, $v0, .L802A94F4
/* 427F04 802A9494 28620002 */ slti $v0, $v1, 2
/* 427F08 802A9498 50400005 */ beql $v0, $zero, .L802A94B0
/* 427F0C 802A949C 24020002 */ addiu $v0, $zero, 2
/* 427F10 802A94A0 10600007 */ beqz $v1, .L802A94C0
/* 427F14 802A94A4 3C0451EB */ lui $a0, 0x51eb
/* 427F18 802A94A8 080AA55B */ j .L802A956C
/* 427F1C 802A94AC 00000000 */ nop
.L802A94B0:
/* 427F20 802A94B0 10620019 */ beq $v1, $v0, .L802A9518
/* 427F24 802A94B4 3C0451EB */ lui $a0, 0x51eb
/* 427F28 802A94B8 080AA55B */ j .L802A956C
/* 427F2C 802A94BC 00000000 */ nop
.L802A94C0:
/* 427F30 802A94C0 86220050 */ lh $v0, 0x50($s1)
/* 427F34 802A94C4 8E430434 */ lw $v1, 0x434($s2)
/* 427F38 802A94C8 00021080 */ sll $v0, $v0, 2
/* 427F3C 802A94CC 00431021 */ addu $v0, $v0, $v1
/* 427F40 802A94D0 8C430000 */ lw $v1, ($v0)
/* 427F44 802A94D4 3484851F */ ori $a0, $a0, 0x851f
/* 427F48 802A94D8 00031100 */ sll $v0, $v1, 4
/* 427F4C 802A94DC 00431023 */ subu $v0, $v0, $v1
/* 427F50 802A94E0 00021080 */ sll $v0, $v0, 2
/* 427F54 802A94E4 00431023 */ subu $v0, $v0, $v1
/* 427F58 802A94E8 00021080 */ sll $v0, $v0, 2
/* 427F5C 802A94EC 080AA552 */ j .L802A9548
/* 427F60 802A94F0 00431023 */ subu $v0, $v0, $v1
.L802A94F4:
/* 427F64 802A94F4 86220050 */ lh $v0, 0x50($s1)
/* 427F68 802A94F8 8E430434 */ lw $v1, 0x434($s2)
/* 427F6C 802A94FC 00021080 */ sll $v0, $v0, 2
/* 427F70 802A9500 00431021 */ addu $v0, $v0, $v1
/* 427F74 802A9504 8C420000 */ lw $v0, ($v0)
/* 427F78 802A9508 96230044 */ lhu $v1, 0x44($s1)
/* 427F7C 802A950C 000210C0 */ sll $v0, $v0, 3
/* 427F80 802A9510 080AA55A */ j .L802A9568
/* 427F84 802A9514 00621821 */ addu $v1, $v1, $v0
.L802A9518:
/* 427F88 802A9518 86220050 */ lh $v0, 0x50($s1)
/* 427F8C 802A951C 8E430434 */ lw $v1, 0x434($s2)
/* 427F90 802A9520 00021080 */ sll $v0, $v0, 2
/* 427F94 802A9524 00431021 */ addu $v0, $v0, $v1
/* 427F98 802A9528 8C430000 */ lw $v1, ($v0)
/* 427F9C 802A952C 3484851F */ ori $a0, $a0, 0x851f
/* 427FA0 802A9530 00031040 */ sll $v0, $v1, 1
/* 427FA4 802A9534 00431021 */ addu $v0, $v0, $v1
/* 427FA8 802A9538 000210C0 */ sll $v0, $v0, 3
/* 427FAC 802A953C 00431023 */ subu $v0, $v0, $v1
/* 427FB0 802A9540 000210C0 */ sll $v0, $v0, 3
/* 427FB4 802A9544 00431021 */ addu $v0, $v0, $v1
.L802A9548:
/* 427FB8 802A9548 00021080 */ sll $v0, $v0, 2
/* 427FBC 802A954C 00440018 */ mult $v0, $a0
/* 427FC0 802A9550 000217C3 */ sra $v0, $v0, 0x1f
/* 427FC4 802A9554 96230044 */ lhu $v1, 0x44($s1)
/* 427FC8 802A9558 00004810 */ mfhi $t1
/* 427FCC 802A955C 00092143 */ sra $a0, $t1, 5
/* 427FD0 802A9560 00822023 */ subu $a0, $a0, $v0
/* 427FD4 802A9564 00641821 */ addu $v1, $v1, $a0
.L802A9568:
/* 427FD8 802A9568 A6230044 */ sh $v1, 0x44($s1)
.L802A956C:
/* 427FDC 802A956C 86220044 */ lh $v0, 0x44($s1)
/* 427FE0 802A9570 28422711 */ slti $v0, $v0, 0x2711
/* 427FE4 802A9574 14400010 */ bnez $v0, .L802A95B8
/* 427FE8 802A9578 3C1051EB */ lui $s0, 0x51eb
/* 427FEC 802A957C 8E30000C */ lw $s0, 0xc($s1)
/* 427FF0 802A9580 86250056 */ lh $a1, 0x56($s1)
/* 427FF4 802A9584 86260058 */ lh $a2, 0x58($s1)
/* 427FF8 802A9588 24022710 */ addiu $v0, $zero, 0x2710
/* 427FFC 802A958C A6220044 */ sh $v0, 0x44($s1)
/* 428000 802A9590 24020001 */ addiu $v0, $zero, 1
/* 428004 802A9594 A6220068 */ sh $v0, 0x68($s1)
/* 428008 802A9598 0200202D */ daddu $a0, $s0, $zero
/* 42800C 802A959C 24A50032 */ addiu $a1, $a1, 0x32
/* 428010 802A95A0 0C051261 */ jal set_icon_render_pos
/* 428014 802A95A4 24C6001C */ addiu $a2, $a2, 0x1c
/* 428018 802A95A8 0200202D */ daddu $a0, $s0, $zero
/* 42801C 802A95AC 0C05128B */ jal clear_icon_flags
/* 428020 802A95B0 24050002 */ addiu $a1, $zero, 2
/* 428024 802A95B4 3C1051EB */ lui $s0, 0x51eb
.L802A95B8:
/* 428028 802A95B8 3610851F */ ori $s0, $s0, 0x851f
/* 42802C 802A95BC 96230044 */ lhu $v1, 0x44($s1)
/* 428030 802A95C0 3C048000 */ lui $a0, 0x8000
/* 428034 802A95C4 00031C00 */ sll $v1, $v1, 0x10
/* 428038 802A95C8 00031403 */ sra $v0, $v1, 0x10
/* 42803C 802A95CC 00500018 */ mult $v0, $s0
/* 428040 802A95D0 34840041 */ ori $a0, $a0, 0x41
/* 428044 802A95D4 0000282D */ daddu $a1, $zero, $zero
/* 428048 802A95D8 00A0302D */ daddu $a2, $a1, $zero
/* 42804C 802A95DC 00031FC3 */ sra $v1, $v1, 0x1f
/* 428050 802A95E0 00004810 */ mfhi $t1
/* 428054 802A95E4 00094143 */ sra $t0, $t1, 5
/* 428058 802A95E8 01034023 */ subu $t0, $t0, $v1
/* 42805C 802A95EC 00081600 */ sll $v0, $t0, 0x18
/* 428060 802A95F0 00021603 */ sra $v0, $v0, 0x18
/* 428064 802A95F4 00023840 */ sll $a3, $v0, 1
/* 428068 802A95F8 00E23821 */ addu $a3, $a3, $v0
/* 42806C 802A95FC 00073880 */ sll $a3, $a3, 2
/* 428070 802A9600 0C0526F9 */ jal func_80149BE4
/* 428074 802A9604 A2480084 */ sb $t0, 0x84($s2)
/* 428078 802A9608 86220054 */ lh $v0, 0x54($s1)
/* 42807C 802A960C 96230054 */ lhu $v1, 0x54($s1)
/* 428080 802A9610 1440002C */ bnez $v0, .L802A96C4
/* 428084 802A9614 2462FFFF */ addiu $v0, $v1, -1
/* 428088 802A9618 96220044 */ lhu $v0, 0x44($s1)
/* 42808C 802A961C 00021C00 */ sll $v1, $v0, 0x10
/* 428090 802A9620 00031403 */ sra $v0, $v1, 0x10
/* 428094 802A9624 14400003 */ bnez $v0, .L802A9634
/* 428098 802A9628 00500018 */ mult $v0, $s0
/* 42809C 802A962C 080AA591 */ j .L802A9644
/* 4280A0 802A9630 2402FFFF */ addiu $v0, $zero, -1
.L802A9634:
/* 4280A4 802A9634 00031FC3 */ sra $v1, $v1, 0x1f
/* 4280A8 802A9638 00004810 */ mfhi $t1
/* 4280AC 802A963C 00091143 */ sra $v0, $t1, 5
/* 4280B0 802A9640 00431023 */ subu $v0, $v0, $v1
.L802A9644:
/* 4280B4 802A9644 A2420081 */ sb $v0, 0x81($s2)
/* 4280B8 802A9648 82220080 */ lb $v0, 0x80($s1)
/* 4280BC 802A964C 2442FFFF */ addiu $v0, $v0, -1
/* 4280C0 802A9650 00021040 */ sll $v0, $v0, 1
/* 4280C4 802A9654 02221021 */ addu $v0, $s1, $v0
/* 4280C8 802A9658 84430074 */ lh $v1, 0x74($v0)
/* 4280CC 802A965C 82420081 */ lb $v0, 0x81($s2)
/* 4280D0 802A9660 0062102A */ slt $v0, $v1, $v0
/* 4280D4 802A9664 14400002 */ bnez $v0, .L802A9670
/* 4280D8 802A9668 24020001 */ addiu $v0, $zero, 1
/* 4280DC 802A966C 2402FFFE */ addiu $v0, $zero, -2
.L802A9670:
/* 4280E0 802A9670 A2420086 */ sb $v0, 0x86($s2)
/* 4280E4 802A9674 82430081 */ lb $v1, 0x81($s2)
/* 4280E8 802A9678 24020064 */ addiu $v0, $zero, 0x64
/* 4280EC 802A967C 14620004 */ bne $v1, $v0, .L802A9690
/* 4280F0 802A9680 3C048000 */ lui $a0, 0x8000
/* 4280F4 802A9684 0C09A458 */ jal func_80269160
/* 4280F8 802A9688 00000000 */ nop
/* 4280FC 802A968C 3C048000 */ lui $a0, 0x8000
.L802A9690:
/* 428100 802A9690 0C05271B */ jal stop_sound
/* 428104 802A9694 34840041 */ ori $a0, $a0, 0x41
/* 428108 802A9698 0C093EB1 */ jal set_popup_duration
/* 42810C 802A969C 0000202D */ daddu $a0, $zero, $zero
/* 428110 802A96A0 24020005 */ addiu $v0, $zero, 5
/* 428114 802A96A4 A6220054 */ sh $v0, 0x54($s1)
/* 428118 802A96A8 2402000C */ addiu $v0, $zero, 0xc
/* 42811C 802A96AC 080AA5B5 */ j .L802A96D4
/* 428120 802A96B0 A622004C */ sh $v0, 0x4c($s1)
/* 428124 802A96B4 86220054 */ lh $v0, 0x54($s1)
/* 428128 802A96B8 96230054 */ lhu $v1, 0x54($s1)
/* 42812C 802A96BC 10400003 */ beqz $v0, .L802A96CC
/* 428130 802A96C0 2462FFFF */ addiu $v0, $v1, -1
.L802A96C4:
/* 428134 802A96C4 080AA5B5 */ j .L802A96D4
/* 428138 802A96C8 A6220054 */ sh $v0, 0x54($s1)
.L802A96CC:
/* 42813C 802A96CC 0C09A327 */ jal func_80268C9C
/* 428140 802A96D0 00000000 */ nop
.L802A96D4:
/* 428144 802A96D4 8FBF001C */ lw $ra, 0x1c($sp)
/* 428148 802A96D8 8FB20018 */ lw $s2, 0x18($sp)
/* 42814C 802A96DC 8FB10014 */ lw $s1, 0x14($sp)
/* 428150 802A96E0 8FB00010 */ lw $s0, 0x10($sp)
/* 428154 802A96E4 03E00008 */ jr $ra
/* 428158 802A96E8 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,62 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A96EC_42815C
/* 42815C 802A96EC 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 428160 802A96F0 AFB1001C */ sw $s1, 0x1c($sp)
/* 428164 802A96F4 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 428168 802A96F8 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42816C 802A96FC AFBF0020 */ sw $ra, 0x20($sp)
/* 428170 802A9700 AFB00018 */ sw $s0, 0x18($sp)
/* 428174 802A9704 0C0511EA */ jal draw_icon_0
/* 428178 802A9708 8E240004 */ lw $a0, 4($s1)
/* 42817C 802A970C 8E300008 */ lw $s0, 8($s1)
/* 428180 802A9710 0C0511EA */ jal draw_icon_0
/* 428184 802A9714 0200202D */ daddu $a0, $s0, $zero
/* 428188 802A9718 0200202D */ daddu $a0, $s0, $zero
/* 42818C 802A971C 27A50010 */ addiu $a1, $sp, 0x10
/* 428190 802A9720 0C05126B */ jal get_icon_render_pos
/* 428194 802A9724 27A60014 */ addiu $a2, $sp, 0x14
/* 428198 802A9728 86220068 */ lh $v0, 0x68($s1)
/* 42819C 802A972C 14400011 */ bnez $v0, .L802A9774
/* 4281A0 802A9730 3C0451EB */ lui $a0, 0x51eb
/* 4281A4 802A9734 96230044 */ lhu $v1, 0x44($s1)
/* 4281A8 802A9738 3484851F */ ori $a0, $a0, 0x851f
/* 4281AC 802A973C 00031C00 */ sll $v1, $v1, 0x10
/* 4281B0 802A9740 00031403 */ sra $v0, $v1, 0x10
/* 4281B4 802A9744 00440018 */ mult $v0, $a0
/* 4281B8 802A9748 8FA50014 */ lw $a1, 0x14($sp)
/* 4281BC 802A974C 00031FC3 */ sra $v1, $v1, 0x1f
/* 4281C0 802A9750 8FA40010 */ lw $a0, 0x10($sp)
/* 4281C4 802A9754 00003810 */ mfhi $a3
/* 4281C8 802A9758 00073143 */ sra $a2, $a3, 5
/* 4281CC 802A975C 00C33023 */ subu $a2, $a2, $v1
/* 4281D0 802A9760 00063400 */ sll $a2, $a2, 0x10
/* 4281D4 802A9764 0C09A1DC */ jal func_80268770
/* 4281D8 802A9768 00063403 */ sra $a2, $a2, 0x10
/* 4281DC 802A976C 080AA5EB */ j .L802A97AC
/* 4281E0 802A9770 00000000 */ nop
.L802A9774:
/* 4281E4 802A9774 96230044 */ lhu $v1, 0x44($s1)
/* 4281E8 802A9778 3484851F */ ori $a0, $a0, 0x851f
/* 4281EC 802A977C 00031C00 */ sll $v1, $v1, 0x10
/* 4281F0 802A9780 00031403 */ sra $v0, $v1, 0x10
/* 4281F4 802A9784 00440018 */ mult $v0, $a0
/* 4281F8 802A9788 8FA50014 */ lw $a1, 0x14($sp)
/* 4281FC 802A978C 00031FC3 */ sra $v1, $v1, 0x1f
/* 428200 802A9790 8FA40010 */ lw $a0, 0x10($sp)
/* 428204 802A9794 00003810 */ mfhi $a3
/* 428208 802A9798 00073143 */ sra $a2, $a3, 5
/* 42820C 802A979C 00C33023 */ subu $a2, $a2, $v1
/* 428210 802A97A0 00063400 */ sll $a2, $a2, 0x10
/* 428214 802A97A4 0C09A203 */ jal func_8026880C
/* 428218 802A97A8 00063403 */ sra $a2, $a2, 0x10
.L802A97AC:
/* 42821C 802A97AC 8E24000C */ lw $a0, 0xc($s1)
/* 428220 802A97B0 0C0511EA */ jal draw_icon_0
/* 428224 802A97B4 00000000 */ nop
/* 428228 802A97B8 8FBF0020 */ lw $ra, 0x20($sp)
/* 42822C 802A97BC 8FB1001C */ lw $s1, 0x1c($sp)
/* 428230 802A97C0 8FB00018 */ lw $s0, 0x18($sp)
/* 428234 802A97C4 03E00008 */ jr $ra
/* 428238 802A97C8 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,21 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A97CC_42823C
/* 42823C 802A97CC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 428240 802A97D0 AFB00010 */ sw $s0, 0x10($sp)
/* 428244 802A97D4 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 428248 802A97D8 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 42824C 802A97DC AFBF0014 */ sw $ra, 0x14($sp)
/* 428250 802A97E0 0C05123D */ jal free_icon
/* 428254 802A97E4 8E040004 */ lw $a0, 4($s0)
/* 428258 802A97E8 0C05123D */ jal free_icon
/* 42825C 802A97EC 8E040008 */ lw $a0, 8($s0)
/* 428260 802A97F0 0C05123D */ jal free_icon
/* 428264 802A97F4 8E04000C */ lw $a0, 0xc($s0)
/* 428268 802A97F8 8FBF0014 */ lw $ra, 0x14($sp)
/* 42826C 802A97FC 8FB00010 */ lw $s0, 0x10($sp)
/* 428270 802A9800 03E00008 */ jr $ra
/* 428274 802A9804 27BD0018 */ addiu $sp, $sp, 0x18
/* 428278 802A9808 00000000 */ nop
/* 42827C 802A980C 00000000 */ nop

View File

@ -0,0 +1,116 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_4282E0
/* 4282E0 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 4282E4 802A9004 AFB00010 */ sw $s0, 0x10($sp)
/* 4282E8 802A9008 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 4282EC 802A900C 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 4282F0 802A9010 24020064 */ addiu $v0, $zero, 0x64
/* 4282F4 802A9014 AFBF0018 */ sw $ra, 0x18($sp)
/* 4282F8 802A9018 AFB10014 */ sw $s1, 0x14($sp)
/* 4282FC 802A901C A2020082 */ sb $v0, 0x82($s0)
/* 428300 802A9020 3C028029 */ lui $v0, %hi(D_80294320)
/* 428304 802A9024 24424320 */ addiu $v0, $v0, %lo(D_80294320)
/* 428308 802A9028 AE020434 */ sw $v0, 0x434($s0)
/* 42830C 802A902C 2402007F */ addiu $v0, $zero, 0x7f
/* 428310 802A9030 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 428314 802A9034 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 428318 802A9038 A2020086 */ sb $v0, 0x86($s0)
/* 42831C 802A903C 82020083 */ lb $v0, 0x83($s0)
/* 428320 802A9040 10400056 */ beqz $v0, .L802A919C
/* 428324 802A9044 0200182D */ daddu $v1, $s0, $zero
/* 428328 802A9048 0C09A216 */ jal func_80268858
/* 42832C 802A904C 00000000 */ nop
/* 428330 802A9050 3C048011 */ lui $a0, %hi(D_80108B28)
/* 428334 802A9054 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 428338 802A9058 2402000C */ addiu $v0, $zero, 0xc
/* 42833C 802A905C A622004A */ sh $v0, 0x4a($s1)
/* 428340 802A9060 24020001 */ addiu $v0, $zero, 1
/* 428344 802A9064 A2220061 */ sb $v0, 0x61($s1)
/* 428348 802A9068 2402FFD0 */ addiu $v0, $zero, -0x30
/* 42834C 802A906C A620004C */ sh $zero, 0x4c($s1)
/* 428350 802A9070 A2200060 */ sb $zero, 0x60($s1)
/* 428354 802A9074 A6200044 */ sh $zero, 0x44($s1)
/* 428358 802A9078 A6200048 */ sh $zero, 0x48($s1)
/* 42835C 802A907C A6200068 */ sh $zero, 0x68($s1)
/* 428360 802A9080 A2000081 */ sb $zero, 0x81($s0)
/* 428364 802A9084 A6220056 */ sh $v0, 0x56($s1)
/* 428368 802A9088 24020050 */ addiu $v0, $zero, 0x50
/* 42836C 802A908C 0C050529 */ jal create_icon
/* 428370 802A9090 A6220058 */ sh $v0, 0x58($s1)
/* 428374 802A9094 0040802D */ daddu $s0, $v0, $zero
/* 428378 802A9098 86250056 */ lh $a1, 0x56($s1)
/* 42837C 802A909C 86260058 */ lh $a2, 0x58($s1)
/* 428380 802A90A0 0200202D */ daddu $a0, $s0, $zero
/* 428384 802A90A4 0C051261 */ jal set_icon_render_pos
/* 428388 802A90A8 AE300004 */ sw $s0, 4($s1)
/* 42838C 802A90AC 0200202D */ daddu $a0, $s0, $zero
/* 428390 802A90B0 0C051277 */ jal func_801449DC
/* 428394 802A90B4 0000282D */ daddu $a1, $zero, $zero
/* 428398 802A90B8 0200202D */ daddu $a0, $s0, $zero
/* 42839C 802A90BC 0C051280 */ jal set_icon_flags
/* 4283A0 802A90C0 24050082 */ addiu $a1, $zero, 0x82
/* 4283A4 802A90C4 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 4283A8 802A90C8 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 4283AC 802A90CC 0C050529 */ jal create_icon
/* 4283B0 802A90D0 00000000 */ nop
/* 4283B4 802A90D4 0040802D */ daddu $s0, $v0, $zero
/* 4283B8 802A90D8 86250056 */ lh $a1, 0x56($s1)
/* 4283BC 802A90DC 86260058 */ lh $a2, 0x58($s1)
/* 4283C0 802A90E0 0200202D */ daddu $a0, $s0, $zero
/* 4283C4 802A90E4 AE300008 */ sw $s0, 8($s1)
/* 4283C8 802A90E8 0C051261 */ jal set_icon_render_pos
/* 4283CC 802A90EC 24C6001C */ addiu $a2, $a2, 0x1c
/* 4283D0 802A90F0 0200202D */ daddu $a0, $s0, $zero
/* 4283D4 802A90F4 0C051277 */ jal func_801449DC
/* 4283D8 802A90F8 0000282D */ daddu $a1, $zero, $zero
/* 4283DC 802A90FC 0200202D */ daddu $a0, $s0, $zero
/* 4283E0 802A9100 0C051280 */ jal set_icon_flags
/* 4283E4 802A9104 24050082 */ addiu $a1, $zero, 0x82
/* 4283E8 802A9108 3C048029 */ lui $a0, %hi(D_80292BAC)
/* 4283EC 802A910C 24842BAC */ addiu $a0, $a0, %lo(D_80292BAC)
/* 4283F0 802A9110 0C050529 */ jal create_icon
/* 4283F4 802A9114 00000000 */ nop
/* 4283F8 802A9118 0040802D */ daddu $s0, $v0, $zero
/* 4283FC 802A911C 86250056 */ lh $a1, 0x56($s1)
/* 428400 802A9120 86260058 */ lh $a2, 0x58($s1)
/* 428404 802A9124 0200202D */ daddu $a0, $s0, $zero
/* 428408 802A9128 AE300010 */ sw $s0, 0x10($s1)
/* 42840C 802A912C 0C051261 */ jal set_icon_render_pos
/* 428410 802A9130 24C6001C */ addiu $a2, $a2, 0x1c
/* 428414 802A9134 0200202D */ daddu $a0, $s0, $zero
/* 428418 802A9138 0C051277 */ jal func_801449DC
/* 42841C 802A913C 0000282D */ daddu $a1, $zero, $zero
/* 428420 802A9140 0200202D */ daddu $a0, $s0, $zero
/* 428424 802A9144 0C051280 */ jal set_icon_flags
/* 428428 802A9148 24050082 */ addiu $a1, $zero, 0x82
/* 42842C 802A914C 3C048029 */ lui $a0, %hi(D_8029275C)
/* 428430 802A9150 2484275C */ addiu $a0, $a0, %lo(D_8029275C)
/* 428434 802A9154 0C050529 */ jal create_icon
/* 428438 802A9158 00000000 */ nop
/* 42843C 802A915C 0040802D */ daddu $s0, $v0, $zero
/* 428440 802A9160 86250056 */ lh $a1, 0x56($s1)
/* 428444 802A9164 86260058 */ lh $a2, 0x58($s1)
/* 428448 802A9168 0200202D */ daddu $a0, $s0, $zero
/* 42844C 802A916C AE30000C */ sw $s0, 0xc($s1)
/* 428450 802A9170 24A50029 */ addiu $a1, $a1, 0x29
/* 428454 802A9174 0C051261 */ jal set_icon_render_pos
/* 428458 802A9178 24C60016 */ addiu $a2, $a2, 0x16
/* 42845C 802A917C 0200202D */ daddu $a0, $s0, $zero
/* 428460 802A9180 0C051277 */ jal func_801449DC
/* 428464 802A9184 0000282D */ daddu $a1, $zero, $zero
/* 428468 802A9188 0200202D */ daddu $a0, $s0, $zero
/* 42846C 802A918C 0C051280 */ jal set_icon_flags
/* 428470 802A9190 24050080 */ addiu $a1, $zero, 0x80
/* 428474 802A9194 080AA469 */ j .L802A91A4
/* 428478 802A9198 24020002 */ addiu $v0, $zero, 2
.L802A919C:
/* 42847C 802A919C A0600081 */ sb $zero, 0x81($v1)
/* 428480 802A91A0 24020002 */ addiu $v0, $zero, 2
.L802A91A4:
/* 428484 802A91A4 8FBF0018 */ lw $ra, 0x18($sp)
/* 428488 802A91A8 8FB10014 */ lw $s1, 0x14($sp)
/* 42848C 802A91AC 8FB00010 */ lw $s0, 0x10($sp)
/* 428490 802A91B0 03E00008 */ jr $ra
/* 428494 802A91B4 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,77 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A91B8_428498
/* 428498 802A91B8 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42849C 802A91BC AFB3001C */ sw $s3, 0x1c($sp)
/* 4284A0 802A91C0 0080982D */ daddu $s3, $a0, $zero
/* 4284A4 802A91C4 AFB10014 */ sw $s1, 0x14($sp)
/* 4284A8 802A91C8 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 4284AC 802A91CC 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 4284B0 802A91D0 AFB20018 */ sw $s2, 0x18($sp)
/* 4284B4 802A91D4 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 4284B8 802A91D8 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 4284BC 802A91DC AFBF0020 */ sw $ra, 0x20($sp)
/* 4284C0 802A91E0 AFB00010 */ sw $s0, 0x10($sp)
/* 4284C4 802A91E4 82420083 */ lb $v0, 0x83($s2)
/* 4284C8 802A91E8 8E70000C */ lw $s0, 0xc($s3)
/* 4284CC 802A91EC 10400030 */ beqz $v0, .L802A92B0
/* 4284D0 802A91F0 0240182D */ daddu $v1, $s2, $zero
/* 4284D4 802A91F4 0C09A216 */ jal func_80268858
/* 4284D8 802A91F8 00000000 */ nop
/* 4284DC 802A91FC 8E050000 */ lw $a1, ($s0)
/* 4284E0 802A9200 26100004 */ addiu $s0, $s0, 4
/* 4284E4 802A9204 0C0B1EAF */ jal get_variable
/* 4284E8 802A9208 0260202D */ daddu $a0, $s3, $zero
/* 4284EC 802A920C A622004E */ sh $v0, 0x4e($s1)
/* 4284F0 802A9210 8E050000 */ lw $a1, ($s0)
/* 4284F4 802A9214 26100004 */ addiu $s0, $s0, 4
/* 4284F8 802A9218 0C0B1EAF */ jal get_variable
/* 4284FC 802A921C 0260202D */ daddu $a0, $s3, $zero
/* 428500 802A9220 A6220052 */ sh $v0, 0x52($s1)
/* 428504 802A9224 8E050000 */ lw $a1, ($s0)
/* 428508 802A9228 26100004 */ addiu $s0, $s0, 4
/* 42850C 802A922C 0C0B1EAF */ jal get_variable
/* 428510 802A9230 0260202D */ daddu $a0, $s3, $zero
/* 428514 802A9234 00022400 */ sll $a0, $v0, 0x10
/* 428518 802A9238 00042403 */ sra $a0, $a0, 0x10
/* 42851C 802A923C 0C09A089 */ jal func_80268224
/* 428520 802A9240 A6220050 */ sh $v0, 0x50($s1)
/* 428524 802A9244 A6220050 */ sh $v0, 0x50($s1)
/* 428528 802A9248 8E050000 */ lw $a1, ($s0)
/* 42852C 802A924C 0C0B1EAF */ jal get_variable
/* 428530 802A9250 0260202D */ daddu $a0, $s3, $zero
/* 428534 802A9254 3C05FFFF */ lui $a1, 0xffff
/* 428538 802A9258 34A57FFF */ ori $a1, $a1, 0x7fff
/* 42853C 802A925C A6220064 */ sh $v0, 0x64($s1)
/* 428540 802A9260 A2200060 */ sb $zero, 0x60($s1)
/* 428544 802A9264 A6200044 */ sh $zero, 0x44($s1)
/* 428548 802A9268 A6200048 */ sh $zero, 0x48($s1)
/* 42854C 802A926C A2400081 */ sb $zero, 0x81($s2)
/* 428550 802A9270 82220080 */ lb $v0, 0x80($s1)
/* 428554 802A9274 2403007F */ addiu $v1, $zero, 0x7f
/* 428558 802A9278 A2430086 */ sb $v1, 0x86($s2)
/* 42855C 802A927C 8E430000 */ lw $v1, ($s2)
/* 428560 802A9280 2442FFFF */ addiu $v0, $v0, -1
/* 428564 802A9284 00021040 */ sll $v0, $v0, 1
/* 428568 802A9288 00511021 */ addu $v0, $v0, $s1
/* 42856C 802A928C 00651824 */ and $v1, $v1, $a1
/* 428570 802A9290 90440075 */ lbu $a0, 0x75($v0)
/* 428574 802A9294 2402000A */ addiu $v0, $zero, 0xa
/* 428578 802A9298 AE430000 */ sw $v1, ($s2)
/* 42857C 802A929C A622004C */ sh $v0, 0x4c($s1)
/* 428580 802A92A0 0C09A446 */ jal func_80269118
/* 428584 802A92A4 A2440082 */ sb $a0, 0x82($s2)
/* 428588 802A92A8 080AA4AE */ j .L802A92B8
/* 42858C 802A92AC 24020002 */ addiu $v0, $zero, 2
.L802A92B0:
/* 428590 802A92B0 A0600081 */ sb $zero, 0x81($v1)
/* 428594 802A92B4 24020002 */ addiu $v0, $zero, 2
.L802A92B8:
/* 428598 802A92B8 8FBF0020 */ lw $ra, 0x20($sp)
/* 42859C 802A92BC 8FB3001C */ lw $s3, 0x1c($sp)
/* 4285A0 802A92C0 8FB20018 */ lw $s2, 0x18($sp)
/* 4285A4 802A92C4 8FB10014 */ lw $s1, 0x14($sp)
/* 4285A8 802A92C8 8FB00010 */ lw $s0, 0x10($sp)
/* 4285AC 802A92CC 03E00008 */ jr $ra
/* 4285B0 802A92D0 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,246 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A92D4_4285B4
/* 4285B4 802A92D4 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 4285B8 802A92D8 AFB10014 */ sw $s1, 0x14($sp)
/* 4285BC 802A92DC 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 4285C0 802A92E0 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 4285C4 802A92E4 AFBF0018 */ sw $ra, 0x18($sp)
/* 4285C8 802A92E8 AFB00010 */ sw $s0, 0x10($sp)
/* 4285CC 802A92EC 8623004C */ lh $v1, 0x4c($s1)
/* 4285D0 802A92F0 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 4285D4 802A92F4 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 4285D8 802A92F8 2C62000D */ sltiu $v0, $v1, 0xd
/* 4285DC 802A92FC 104000D4 */ beqz $v0, .L802A9650
/* 4285E0 802A9300 00031080 */ sll $v0, $v1, 2
/* 4285E4 802A9304 3C01802B */ lui $at, %hi(D_802A9750)
/* 4285E8 802A9308 00220821 */ addu $at, $at, $v0
/* 4285EC 802A930C 8C229750 */ lw $v0, %lo(D_802A9750)($at)
/* 4285F0 802A9310 00400008 */ jr $v0
/* 4285F4 802A9314 00000000 */ nop
/* 4285F8 802A9318 0C093EB1 */ jal set_popup_duration
/* 4285FC 802A931C 24040063 */ addiu $a0, $zero, 0x63
/* 428600 802A9320 8E300004 */ lw $s0, 4($s1)
/* 428604 802A9324 240500FF */ addiu $a1, $zero, 0xff
/* 428608 802A9328 0C0513AC */ jal icon_set_opacity
/* 42860C 802A932C 0200202D */ daddu $a0, $s0, $zero
/* 428610 802A9330 82220061 */ lb $v0, 0x61($s1)
/* 428614 802A9334 10400003 */ beqz $v0, .L802A9344
/* 428618 802A9338 0200202D */ daddu $a0, $s0, $zero
/* 42861C 802A933C 0C05128B */ jal clear_icon_flags
/* 428620 802A9340 24050002 */ addiu $a1, $zero, 2
.L802A9344:
/* 428624 802A9344 8E300008 */ lw $s0, 8($s1)
/* 428628 802A9348 240500FF */ addiu $a1, $zero, 0xff
/* 42862C 802A934C 0C0513AC */ jal icon_set_opacity
/* 428630 802A9350 0200202D */ daddu $a0, $s0, $zero
/* 428634 802A9354 82220061 */ lb $v0, 0x61($s1)
/* 428638 802A9358 10400003 */ beqz $v0, .L802A9368
/* 42863C 802A935C 0200202D */ daddu $a0, $s0, $zero
/* 428640 802A9360 0C05128B */ jal clear_icon_flags
/* 428644 802A9364 24050002 */ addiu $a1, $zero, 2
.L802A9368:
/* 428648 802A9368 8E30000C */ lw $s0, 0xc($s1)
/* 42864C 802A936C 240500FF */ addiu $a1, $zero, 0xff
/* 428650 802A9370 0C0513AC */ jal icon_set_opacity
/* 428654 802A9374 0200202D */ daddu $a0, $s0, $zero
/* 428658 802A9378 82220061 */ lb $v0, 0x61($s1)
/* 42865C 802A937C 10400003 */ beqz $v0, .L802A938C
/* 428660 802A9380 0200202D */ daddu $a0, $s0, $zero
/* 428664 802A9384 0C05128B */ jal clear_icon_flags
/* 428668 802A9388 24050002 */ addiu $a1, $zero, 2
.L802A938C:
/* 42866C 802A938C 8E300010 */ lw $s0, 0x10($s1)
/* 428670 802A9390 240500FF */ addiu $a1, $zero, 0xff
/* 428674 802A9394 0C0513AC */ jal icon_set_opacity
/* 428678 802A9398 0200202D */ daddu $a0, $s0, $zero
/* 42867C 802A939C 82220061 */ lb $v0, 0x61($s1)
/* 428680 802A93A0 10400003 */ beqz $v0, .L802A93B0
/* 428684 802A93A4 0200202D */ daddu $a0, $s0, $zero
/* 428688 802A93A8 0C05128B */ jal clear_icon_flags
/* 42868C 802A93AC 24050002 */ addiu $a1, $zero, 2
.L802A93B0:
/* 428690 802A93B0 24020001 */ addiu $v0, $zero, 1
/* 428694 802A93B4 080AA594 */ j .L802A9650
/* 428698 802A93B8 A622004C */ sh $v0, 0x4c($s1)
/* 42869C 802A93BC 0C093EB1 */ jal set_popup_duration
/* 4286A0 802A93C0 24040063 */ addiu $a0, $zero, 0x63
/* 4286A4 802A93C4 96220056 */ lhu $v0, 0x56($s1)
/* 4286A8 802A93C8 24420014 */ addiu $v0, $v0, 0x14
/* 4286AC 802A93CC A6220056 */ sh $v0, 0x56($s1)
/* 4286B0 802A93D0 00021400 */ sll $v0, $v0, 0x10
/* 4286B4 802A93D4 00021403 */ sra $v0, $v0, 0x10
/* 4286B8 802A93D8 28420033 */ slti $v0, $v0, 0x33
/* 4286BC 802A93DC 14400002 */ bnez $v0, .L802A93E8
/* 4286C0 802A93E0 24020032 */ addiu $v0, $zero, 0x32
/* 4286C4 802A93E4 A6220056 */ sh $v0, 0x56($s1)
.L802A93E8:
/* 4286C8 802A93E8 8E240004 */ lw $a0, 4($s1)
/* 4286CC 802A93EC 86250056 */ lh $a1, 0x56($s1)
/* 4286D0 802A93F0 0C051261 */ jal set_icon_render_pos
/* 4286D4 802A93F4 86260058 */ lh $a2, 0x58($s1)
/* 4286D8 802A93F8 8E240008 */ lw $a0, 8($s1)
/* 4286DC 802A93FC 86260058 */ lh $a2, 0x58($s1)
/* 4286E0 802A9400 86250056 */ lh $a1, 0x56($s1)
/* 4286E4 802A9404 0C051261 */ jal set_icon_render_pos
/* 4286E8 802A9408 24C6001C */ addiu $a2, $a2, 0x1c
/* 4286EC 802A940C 8E24000C */ lw $a0, 0xc($s1)
/* 4286F0 802A9410 86250056 */ lh $a1, 0x56($s1)
/* 4286F4 802A9414 86260058 */ lh $a2, 0x58($s1)
/* 4286F8 802A9418 24A50029 */ addiu $a1, $a1, 0x29
/* 4286FC 802A941C 0C051261 */ jal set_icon_render_pos
/* 428700 802A9420 24C60016 */ addiu $a2, $a2, 0x16
/* 428704 802A9424 8E240010 */ lw $a0, 0x10($s1)
/* 428708 802A9428 86250056 */ lh $a1, 0x56($s1)
/* 42870C 802A942C 86260058 */ lh $a2, 0x58($s1)
/* 428710 802A9430 24A5002A */ addiu $a1, $a1, 0x2a
/* 428714 802A9434 0C051261 */ jal set_icon_render_pos
/* 428718 802A9438 24C60018 */ addiu $a2, $a2, 0x18
/* 42871C 802A943C 080AA594 */ j .L802A9650
/* 428720 802A9440 00000000 */ nop
/* 428724 802A9444 0C093EB1 */ jal set_popup_duration
/* 428728 802A9448 24040063 */ addiu $a0, $zero, 0x63
/* 42872C 802A944C 8622004E */ lh $v0, 0x4e($s1)
/* 428730 802A9450 9623004E */ lhu $v1, 0x4e($s1)
/* 428734 802A9454 10400003 */ beqz $v0, .L802A9464
/* 428738 802A9458 2462FFFF */ addiu $v0, $v1, -1
/* 42873C 802A945C 080AA594 */ j .L802A9650
/* 428740 802A9460 A622004E */ sh $v0, 0x4e($s1)
.L802A9464:
/* 428744 802A9464 8E240004 */ lw $a0, 4($s1)
/* 428748 802A9468 3C058011 */ lui $a1, %hi(D_80108B54)
/* 42874C 802A946C 24A58B54 */ addiu $a1, $a1, %lo(D_80108B54)
/* 428750 802A9470 0C0511FF */ jal set_menu_icon_script
/* 428754 802A9474 00000000 */ nop
/* 428758 802A9478 3C048000 */ lui $a0, 0x8000
/* 42875C 802A947C 34840041 */ ori $a0, $a0, 0x41
/* 428760 802A9480 0000282D */ daddu $a1, $zero, $zero
/* 428764 802A9484 00A0302D */ daddu $a2, $a1, $zero
/* 428768 802A9488 96220052 */ lhu $v0, 0x52($s1)
/* 42876C 802A948C 00A0382D */ daddu $a3, $a1, $zero
/* 428770 802A9490 A6200044 */ sh $zero, 0x44($s1)
/* 428774 802A9494 A6200046 */ sh $zero, 0x46($s1)
/* 428778 802A9498 0C0526AE */ jal _play_sound
/* 42877C 802A949C A6220054 */ sh $v0, 0x54($s1)
/* 428780 802A94A0 2402000B */ addiu $v0, $zero, 0xb
/* 428784 802A94A4 A622004C */ sh $v0, 0x4c($s1)
/* 428788 802A94A8 0C093EB1 */ jal set_popup_duration
/* 42878C 802A94AC 24040063 */ addiu $a0, $zero, 0x63
/* 428790 802A94B0 8E020210 */ lw $v0, 0x210($s0)
/* 428794 802A94B4 30428000 */ andi $v0, $v0, 0x8000
/* 428798 802A94B8 50400007 */ beql $v0, $zero, .L802A94D8
/* 42879C 802A94BC A6200054 */ sh $zero, 0x54($s1)
/* 4287A0 802A94C0 96220044 */ lhu $v0, 0x44($s1)
/* 4287A4 802A94C4 96230046 */ lhu $v1, 0x46($s1)
/* 4287A8 802A94C8 2442009A */ addiu $v0, $v0, 0x9a
/* 4287AC 802A94CC 2463009A */ addiu $v1, $v1, 0x9a
/* 4287B0 802A94D0 A6220044 */ sh $v0, 0x44($s1)
/* 4287B4 802A94D4 A6230046 */ sh $v1, 0x46($s1)
.L802A94D8:
/* 4287B8 802A94D8 86220044 */ lh $v0, 0x44($s1)
/* 4287BC 802A94DC 28422710 */ slti $v0, $v0, 0x2710
/* 4287C0 802A94E0 14400014 */ bnez $v0, .L802A9534
/* 4287C4 802A94E4 3C0451EB */ lui $a0, 0x51eb
/* 4287C8 802A94E8 3C058029 */ lui $a1, %hi(D_80292788)
/* 4287CC 802A94EC 24A52788 */ addiu $a1, $a1, %lo(D_80292788)
/* 4287D0 802A94F0 8E24000C */ lw $a0, 0xc($s1)
/* 4287D4 802A94F4 24022710 */ addiu $v0, $zero, 0x2710
/* 4287D8 802A94F8 0C0511FF */ jal set_menu_icon_script
/* 4287DC 802A94FC A6220044 */ sh $v0, 0x44($s1)
/* 4287E0 802A9500 8E240004 */ lw $a0, 4($s1)
/* 4287E4 802A9504 3C058011 */ lui $a1, %hi(D_80108B28)
/* 4287E8 802A9508 24A58B28 */ addiu $a1, $a1, %lo(D_80108B28)
/* 4287EC 802A950C 0C0511FF */ jal set_menu_icon_script
/* 4287F0 802A9510 00000000 */ nop
/* 4287F4 802A9514 86220068 */ lh $v0, 0x68($s1)
/* 4287F8 802A9518 14400006 */ bnez $v0, .L802A9534
/* 4287FC 802A951C 3C0451EB */ lui $a0, 0x51eb
/* 428800 802A9520 0C05272D */ jal play_sound
/* 428804 802A9524 24040234 */ addiu $a0, $zero, 0x234
/* 428808 802A9528 24020001 */ addiu $v0, $zero, 1
/* 42880C 802A952C A6220068 */ sh $v0, 0x68($s1)
/* 428810 802A9530 3C0451EB */ lui $a0, 0x51eb
.L802A9534:
/* 428814 802A9534 3484851F */ ori $a0, $a0, 0x851f
/* 428818 802A9538 96230044 */ lhu $v1, 0x44($s1)
/* 42881C 802A953C 0000282D */ daddu $a1, $zero, $zero
/* 428820 802A9540 00031C00 */ sll $v1, $v1, 0x10
/* 428824 802A9544 00031403 */ sra $v0, $v1, 0x10
/* 428828 802A9548 00440018 */ mult $v0, $a0
/* 42882C 802A954C 00A0302D */ daddu $a2, $a1, $zero
/* 428830 802A9550 3C048000 */ lui $a0, 0x8000
/* 428834 802A9554 34840041 */ ori $a0, $a0, 0x41
/* 428838 802A9558 00031FC3 */ sra $v1, $v1, 0x1f
/* 42883C 802A955C 00004810 */ mfhi $t1
/* 428840 802A9560 00094143 */ sra $t0, $t1, 5
/* 428844 802A9564 01034023 */ subu $t0, $t0, $v1
/* 428848 802A9568 00081600 */ sll $v0, $t0, 0x18
/* 42884C 802A956C 00021603 */ sra $v0, $v0, 0x18
/* 428850 802A9570 00023840 */ sll $a3, $v0, 1
/* 428854 802A9574 00E23821 */ addu $a3, $a3, $v0
/* 428858 802A9578 00073880 */ sll $a3, $a3, 2
/* 42885C 802A957C 0C0526F9 */ jal func_80149BE4
/* 428860 802A9580 A2080084 */ sb $t0, 0x84($s0)
/* 428864 802A9584 86220054 */ lh $v0, 0x54($s1)
/* 428868 802A9588 96230054 */ lhu $v1, 0x54($s1)
/* 42886C 802A958C 10400005 */ beqz $v0, .L802A95A4
/* 428870 802A9590 2462FFFF */ addiu $v0, $v1, -1
/* 428874 802A9594 080AA594 */ j .L802A9650
/* 428878 802A9598 A6220054 */ sh $v0, 0x54($s1)
.L802A959C:
/* 42887C 802A959C 080AA57B */ j .L802A95EC
/* 428880 802A95A0 2402FFFF */ addiu $v0, $zero, -1
.L802A95A4:
/* 428884 802A95A4 86250046 */ lh $a1, 0x46($s1)
/* 428888 802A95A8 28A22710 */ slti $v0, $a1, 0x2710
/* 42888C 802A95AC 1440000F */ bnez $v0, .L802A95EC
/* 428890 802A95B0 2402FFFF */ addiu $v0, $zero, -1
/* 428894 802A95B4 86220050 */ lh $v0, 0x50($s1)
/* 428898 802A95B8 8E030434 */ lw $v1, 0x434($s0)
/* 42889C 802A95BC 00021080 */ sll $v0, $v0, 2
/* 4288A0 802A95C0 00431021 */ addu $v0, $v0, $v1
/* 4288A4 802A95C4 8C440000 */ lw $a0, ($v0)
/* 4288A8 802A95C8 000410C0 */ sll $v0, $a0, 3
/* 4288AC 802A95CC 00441021 */ addu $v0, $v0, $a0
/* 4288B0 802A95D0 00021900 */ sll $v1, $v0, 4
/* 4288B4 802A95D4 00431021 */ addu $v0, $v0, $v1
/* 4288B8 802A95D8 00441021 */ addu $v0, $v0, $a0
/* 4288BC 802A95DC 00A21023 */ subu $v0, $a1, $v0
/* 4288C0 802A95E0 28422845 */ slti $v0, $v0, 0x2845
/* 4288C4 802A95E4 1040FFED */ beqz $v0, .L802A959C
/* 4288C8 802A95E8 24020001 */ addiu $v0, $zero, 1
.L802A95EC:
/* 4288CC 802A95EC A2020081 */ sb $v0, 0x81($s0)
/* 4288D0 802A95F0 82030081 */ lb $v1, 0x81($s0)
/* 4288D4 802A95F4 24020001 */ addiu $v0, $zero, 1
/* 4288D8 802A95F8 14620003 */ bne $v1, $v0, .L802A9608
/* 4288DC 802A95FC A2000086 */ sb $zero, 0x86($s0)
/* 4288E0 802A9600 0C09A458 */ jal func_80269160
/* 4288E4 802A9604 00000000 */ nop
.L802A9608:
/* 4288E8 802A9608 0C093EB1 */ jal set_popup_duration
/* 4288EC 802A960C 0000202D */ daddu $a0, $zero, $zero
/* 4288F0 802A9610 3C048000 */ lui $a0, 0x8000
/* 4288F4 802A9614 0C05271B */ jal stop_sound
/* 4288F8 802A9618 34840041 */ ori $a0, $a0, 0x41
/* 4288FC 802A961C 24020005 */ addiu $v0, $zero, 5
/* 428900 802A9620 A6220054 */ sh $v0, 0x54($s1)
/* 428904 802A9624 2402000C */ addiu $v0, $zero, 0xc
/* 428908 802A9628 080AA594 */ j .L802A9650
/* 42890C 802A962C A622004C */ sh $v0, 0x4c($s1)
/* 428910 802A9630 86220054 */ lh $v0, 0x54($s1)
/* 428914 802A9634 96230054 */ lhu $v1, 0x54($s1)
/* 428918 802A9638 10400003 */ beqz $v0, .L802A9648
/* 42891C 802A963C 2462FFFF */ addiu $v0, $v1, -1
/* 428920 802A9640 080AA594 */ j .L802A9650
/* 428924 802A9644 A6220054 */ sh $v0, 0x54($s1)
.L802A9648:
/* 428928 802A9648 0C09A327 */ jal func_80268C9C
/* 42892C 802A964C 00000000 */ nop
.L802A9650:
/* 428930 802A9650 8FBF0018 */ lw $ra, 0x18($sp)
/* 428934 802A9654 8FB10014 */ lw $s1, 0x14($sp)
/* 428938 802A9658 8FB00010 */ lw $s0, 0x10($sp)
/* 42893C 802A965C 03E00008 */ jr $ra
/* 428940 802A9660 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,45 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9664_428944
/* 428944 802A9664 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 428948 802A9668 AFB1001C */ sw $s1, 0x1c($sp)
/* 42894C 802A966C 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 428950 802A9670 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 428954 802A9674 AFBF0020 */ sw $ra, 0x20($sp)
/* 428958 802A9678 AFB00018 */ sw $s0, 0x18($sp)
/* 42895C 802A967C 0C0511EA */ jal draw_icon_0
/* 428960 802A9680 8E240004 */ lw $a0, 4($s1)
/* 428964 802A9684 8E300008 */ lw $s0, 8($s1)
/* 428968 802A9688 0C0511EA */ jal draw_icon_0
/* 42896C 802A968C 0200202D */ daddu $a0, $s0, $zero
/* 428970 802A9690 0200202D */ daddu $a0, $s0, $zero
/* 428974 802A9694 27A50010 */ addiu $a1, $sp, 0x10
/* 428978 802A9698 0C05126B */ jal get_icon_render_pos
/* 42897C 802A969C 27A60014 */ addiu $a2, $sp, 0x14
/* 428980 802A96A0 8E240010 */ lw $a0, 0x10($s1)
/* 428984 802A96A4 0C0511EA */ jal draw_icon_0
/* 428988 802A96A8 00000000 */ nop
/* 42898C 802A96AC 3C0451EB */ lui $a0, 0x51eb
/* 428990 802A96B0 96230044 */ lhu $v1, 0x44($s1)
/* 428994 802A96B4 3484851F */ ori $a0, $a0, 0x851f
/* 428998 802A96B8 00031C00 */ sll $v1, $v1, 0x10
/* 42899C 802A96BC 00031403 */ sra $v0, $v1, 0x10
/* 4289A0 802A96C0 00440018 */ mult $v0, $a0
/* 4289A4 802A96C4 8FA50014 */ lw $a1, 0x14($sp)
/* 4289A8 802A96C8 00031FC3 */ sra $v1, $v1, 0x1f
/* 4289AC 802A96CC 8FA40010 */ lw $a0, 0x10($sp)
/* 4289B0 802A96D0 00003810 */ mfhi $a3
/* 4289B4 802A96D4 00073143 */ sra $a2, $a3, 5
/* 4289B8 802A96D8 00C33023 */ subu $a2, $a2, $v1
/* 4289BC 802A96DC 00063400 */ sll $a2, $a2, 0x10
/* 4289C0 802A96E0 0C09A1DC */ jal func_80268770
/* 4289C4 802A96E4 00063403 */ sra $a2, $a2, 0x10
/* 4289C8 802A96E8 8E24000C */ lw $a0, 0xc($s1)
/* 4289CC 802A96EC 0C0511EA */ jal draw_icon_0
/* 4289D0 802A96F0 00000000 */ nop
/* 4289D4 802A96F4 8FBF0020 */ lw $ra, 0x20($sp)
/* 4289D8 802A96F8 8FB1001C */ lw $s1, 0x1c($sp)
/* 4289DC 802A96FC 8FB00018 */ lw $s0, 0x18($sp)
/* 4289E0 802A9700 03E00008 */ jr $ra
/* 4289E4 802A9704 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,22 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9708_4289E8
/* 4289E8 802A9708 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 4289EC 802A970C AFB00010 */ sw $s0, 0x10($sp)
/* 4289F0 802A9710 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 4289F4 802A9714 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 4289F8 802A9718 AFBF0014 */ sw $ra, 0x14($sp)
/* 4289FC 802A971C 0C05123D */ jal free_icon
/* 428A00 802A9720 8E040004 */ lw $a0, 4($s0)
/* 428A04 802A9724 0C05123D */ jal free_icon
/* 428A08 802A9728 8E040008 */ lw $a0, 8($s0)
/* 428A0C 802A972C 0C05123D */ jal free_icon
/* 428A10 802A9730 8E04000C */ lw $a0, 0xc($s0)
/* 428A14 802A9734 0C05123D */ jal free_icon
/* 428A18 802A9738 8E040010 */ lw $a0, 0x10($s0)
/* 428A1C 802A973C 8FBF0014 */ lw $ra, 0x14($sp)
/* 428A20 802A9740 8FB00010 */ lw $s0, 0x10($sp)
/* 428A24 802A9744 03E00008 */ jr $ra
/* 428A28 802A9748 27BD0018 */ addiu $sp, $sp, 0x18
/* 428A2C 802A974C 00000000 */ nop

View File

@ -0,0 +1,101 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_428A70
/* 428A70 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 428A74 802A9004 AFB00010 */ sw $s0, 0x10($sp)
/* 428A78 802A9008 0080802D */ daddu $s0, $a0, $zero
/* 428A7C 802A900C AFB10014 */ sw $s1, 0x14($sp)
/* 428A80 802A9010 3C11800E */ lui $s1, %hi(gBattleStatus)
/* 428A84 802A9014 2631C070 */ addiu $s1, $s1, %lo(gBattleStatus)
/* 428A88 802A9018 AFBF001C */ sw $ra, 0x1c($sp)
/* 428A8C 802A901C AFB20018 */ sw $s2, 0x18($sp)
/* 428A90 802A9020 8E12000C */ lw $s2, 0xc($s0)
/* 428A94 802A9024 3C028029 */ lui $v0, %hi(D_80294340)
/* 428A98 802A9028 24424340 */ addiu $v0, $v0, %lo(D_80294340)
/* 428A9C 802A902C AE220434 */ sw $v0, 0x434($s1)
/* 428AA0 802A9030 2402007F */ addiu $v0, $zero, 0x7f
/* 428AA4 802A9034 A2200082 */ sb $zero, 0x82($s1)
/* 428AA8 802A9038 0C09A216 */ jal func_80268858
/* 428AAC 802A903C A2220086 */ sb $v0, 0x86($s1)
/* 428AB0 802A9040 8E450000 */ lw $a1, ($s2)
/* 428AB4 802A9044 0C0B1EAF */ jal get_variable
/* 428AB8 802A9048 0200202D */ daddu $a0, $s0, $zero
/* 428ABC 802A904C 3C048011 */ lui $a0, %hi(D_80108B28)
/* 428AC0 802A9050 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 428AC4 802A9054 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 428AC8 802A9058 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 428ACC 802A905C A602005A */ sh $v0, 0x5a($s0)
/* 428AD0 802A9060 2402000D */ addiu $v0, $zero, 0xd
/* 428AD4 802A9064 A602004A */ sh $v0, 0x4a($s0)
/* 428AD8 802A9068 24020001 */ addiu $v0, $zero, 1
/* 428ADC 802A906C A2020061 */ sb $v0, 0x61($s0)
/* 428AE0 802A9070 2402001E */ addiu $v0, $zero, 0x1e
/* 428AE4 802A9074 A600004C */ sh $zero, 0x4c($s0)
/* 428AE8 802A9078 A2000060 */ sb $zero, 0x60($s0)
/* 428AEC 802A907C A6000044 */ sh $zero, 0x44($s0)
/* 428AF0 802A9080 A6000048 */ sh $zero, 0x48($s0)
/* 428AF4 802A9084 A6000068 */ sh $zero, 0x68($s0)
/* 428AF8 802A9088 A2200081 */ sb $zero, 0x81($s1)
/* 428AFC 802A908C A2200084 */ sb $zero, 0x84($s1)
/* 428B00 802A9090 A602006C */ sh $v0, 0x6c($s0)
/* 428B04 802A9094 2402FFD0 */ addiu $v0, $zero, -0x30
/* 428B08 802A9098 A6020056 */ sh $v0, 0x56($s0)
/* 428B0C 802A909C 24020050 */ addiu $v0, $zero, 0x50
/* 428B10 802A90A0 3C01802B */ lui $at, %hi(func_802A98B0)
/* 428B14 802A90A4 AC2098B0 */ sw $zero, %lo(func_802A98B0)($at)
/* 428B18 802A90A8 0C050529 */ jal create_icon
/* 428B1C 802A90AC A6020058 */ sh $v0, 0x58($s0)
/* 428B20 802A90B0 0040882D */ daddu $s1, $v0, $zero
/* 428B24 802A90B4 86050056 */ lh $a1, 0x56($s0)
/* 428B28 802A90B8 86060058 */ lh $a2, 0x58($s0)
/* 428B2C 802A90BC 0220202D */ daddu $a0, $s1, $zero
/* 428B30 802A90C0 0C051261 */ jal set_icon_render_pos
/* 428B34 802A90C4 AE110004 */ sw $s1, 4($s0)
/* 428B38 802A90C8 0220202D */ daddu $a0, $s1, $zero
/* 428B3C 802A90CC 0C051277 */ jal func_801449DC
/* 428B40 802A90D0 0000282D */ daddu $a1, $zero, $zero
/* 428B44 802A90D4 0220202D */ daddu $a0, $s1, $zero
/* 428B48 802A90D8 0C051280 */ jal set_icon_flags
/* 428B4C 802A90DC 24050082 */ addiu $a1, $zero, 0x82
/* 428B50 802A90E0 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 428B54 802A90E4 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 428B58 802A90E8 0C050529 */ jal create_icon
/* 428B5C 802A90EC 00000000 */ nop
/* 428B60 802A90F0 0040882D */ daddu $s1, $v0, $zero
/* 428B64 802A90F4 86050056 */ lh $a1, 0x56($s0)
/* 428B68 802A90F8 86060058 */ lh $a2, 0x58($s0)
/* 428B6C 802A90FC 0220202D */ daddu $a0, $s1, $zero
/* 428B70 802A9100 AE110008 */ sw $s1, 8($s0)
/* 428B74 802A9104 0C051261 */ jal set_icon_render_pos
/* 428B78 802A9108 24C6001C */ addiu $a2, $a2, 0x1c
/* 428B7C 802A910C 0220202D */ daddu $a0, $s1, $zero
/* 428B80 802A9110 0C051277 */ jal func_801449DC
/* 428B84 802A9114 0000282D */ daddu $a1, $zero, $zero
/* 428B88 802A9118 0220202D */ daddu $a0, $s1, $zero
/* 428B8C 802A911C 0C051280 */ jal set_icon_flags
/* 428B90 802A9120 24050082 */ addiu $a1, $zero, 0x82
/* 428B94 802A9124 3C048029 */ lui $a0, %hi(D_80292974)
/* 428B98 802A9128 24842974 */ addiu $a0, $a0, %lo(D_80292974)
/* 428B9C 802A912C 0C050529 */ jal create_icon
/* 428BA0 802A9130 00000000 */ nop
/* 428BA4 802A9134 0040882D */ daddu $s1, $v0, $zero
/* 428BA8 802A9138 86050056 */ lh $a1, 0x56($s0)
/* 428BAC 802A913C 86060058 */ lh $a2, 0x58($s0)
/* 428BB0 802A9140 0220202D */ daddu $a0, $s1, $zero
/* 428BB4 802A9144 AE11000C */ sw $s1, 0xc($s0)
/* 428BB8 802A9148 0C051261 */ jal set_icon_render_pos
/* 428BBC 802A914C 24C6001C */ addiu $a2, $a2, 0x1c
/* 428BC0 802A9150 0220202D */ daddu $a0, $s1, $zero
/* 428BC4 802A9154 0C051277 */ jal func_801449DC
/* 428BC8 802A9158 0000282D */ daddu $a1, $zero, $zero
/* 428BCC 802A915C 0220202D */ daddu $a0, $s1, $zero
/* 428BD0 802A9160 0C051280 */ jal set_icon_flags
/* 428BD4 802A9164 24050082 */ addiu $a1, $zero, 0x82
/* 428BD8 802A9168 8FBF001C */ lw $ra, 0x1c($sp)
/* 428BDC 802A916C 8FB20018 */ lw $s2, 0x18($sp)
/* 428BE0 802A9170 8FB10014 */ lw $s1, 0x14($sp)
/* 428BE4 802A9174 8FB00010 */ lw $s0, 0x10($sp)
/* 428BE8 802A9178 24020002 */ addiu $v0, $zero, 2
/* 428BEC 802A917C 03E00008 */ jr $ra
/* 428BF0 802A9180 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,65 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9184_428BF4
/* 428BF4 802A9184 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 428BF8 802A9188 AFB20018 */ sw $s2, 0x18($sp)
/* 428BFC 802A918C 0080902D */ daddu $s2, $a0, $zero
/* 428C00 802A9190 AFBF001C */ sw $ra, 0x1c($sp)
/* 428C04 802A9194 AFB10014 */ sw $s1, 0x14($sp)
/* 428C08 802A9198 AFB00010 */ sw $s0, 0x10($sp)
/* 428C0C 802A919C 0C09A216 */ jal func_80268858
/* 428C10 802A91A0 8E50000C */ lw $s0, 0xc($s2)
/* 428C14 802A91A4 0240202D */ daddu $a0, $s2, $zero
/* 428C18 802A91A8 8E050000 */ lw $a1, ($s0)
/* 428C1C 802A91AC 0C0B1EAF */ jal get_variable
/* 428C20 802A91B0 26100004 */ addiu $s0, $s0, 4
/* 428C24 802A91B4 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 428C28 802A91B8 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 428C2C 802A91BC A622004E */ sh $v0, 0x4e($s1)
/* 428C30 802A91C0 8E050000 */ lw $a1, ($s0)
/* 428C34 802A91C4 26100004 */ addiu $s0, $s0, 4
/* 428C38 802A91C8 0C0B1EAF */ jal get_variable
/* 428C3C 802A91CC 0240202D */ daddu $a0, $s2, $zero
/* 428C40 802A91D0 A6220052 */ sh $v0, 0x52($s1)
/* 428C44 802A91D4 8E050000 */ lw $a1, ($s0)
/* 428C48 802A91D8 26100004 */ addiu $s0, $s0, 4
/* 428C4C 802A91DC 0C0B1EAF */ jal get_variable
/* 428C50 802A91E0 0240202D */ daddu $a0, $s2, $zero
/* 428C54 802A91E4 00022400 */ sll $a0, $v0, 0x10
/* 428C58 802A91E8 00042403 */ sra $a0, $a0, 0x10
/* 428C5C 802A91EC 0C09A089 */ jal func_80268224
/* 428C60 802A91F0 A6220050 */ sh $v0, 0x50($s1)
/* 428C64 802A91F4 A6220050 */ sh $v0, 0x50($s1)
/* 428C68 802A91F8 8E050000 */ lw $a1, ($s0)
/* 428C6C 802A91FC 0C0B1EAF */ jal get_variable
/* 428C70 802A9200 0240202D */ daddu $a0, $s2, $zero
/* 428C74 802A9204 3C05FFFF */ lui $a1, 0xffff
/* 428C78 802A9208 3C04800E */ lui $a0, %hi(gBattleStatus)
/* 428C7C 802A920C 2484C070 */ addiu $a0, $a0, %lo(gBattleStatus)
/* 428C80 802A9210 A6220064 */ sh $v0, 0x64($s1)
/* 428C84 802A9214 A2200060 */ sb $zero, 0x60($s1)
/* 428C88 802A9218 A0800081 */ sb $zero, 0x81($a0)
/* 428C8C 802A921C 82220080 */ lb $v0, 0x80($s1)
/* 428C90 802A9220 2403007F */ addiu $v1, $zero, 0x7f
/* 428C94 802A9224 A0830086 */ sb $v1, 0x86($a0)
/* 428C98 802A9228 2442FFFF */ addiu $v0, $v0, -1
/* 428C9C 802A922C 00021040 */ sll $v0, $v0, 1
/* 428CA0 802A9230 00511021 */ addu $v0, $v0, $s1
/* 428CA4 802A9234 90430075 */ lbu $v1, 0x75($v0)
/* 428CA8 802A9238 8C820000 */ lw $v0, ($a0)
/* 428CAC 802A923C 34A57FFF */ ori $a1, $a1, 0x7fff
/* 428CB0 802A9240 A220005C */ sb $zero, 0x5c($s1)
/* 428CB4 802A9244 00451024 */ and $v0, $v0, $a1
/* 428CB8 802A9248 AC820000 */ sw $v0, ($a0)
/* 428CBC 802A924C 2402000A */ addiu $v0, $zero, 0xa
/* 428CC0 802A9250 A622004C */ sh $v0, 0x4c($s1)
/* 428CC4 802A9254 0C09A446 */ jal func_80269118
/* 428CC8 802A9258 A0830082 */ sb $v1, 0x82($a0)
/* 428CCC 802A925C 8FBF001C */ lw $ra, 0x1c($sp)
/* 428CD0 802A9260 8FB20018 */ lw $s2, 0x18($sp)
/* 428CD4 802A9264 8FB10014 */ lw $s1, 0x14($sp)
/* 428CD8 802A9268 8FB00010 */ lw $s0, 0x10($sp)
/* 428CDC 802A926C 24020002 */ addiu $v0, $zero, 2
/* 428CE0 802A9270 03E00008 */ jr $ra
/* 428CE4 802A9274 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,312 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9278_428CE8
/* 428CE8 802A9278 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 428CEC 802A927C AFB10014 */ sw $s1, 0x14($sp)
/* 428CF0 802A9280 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 428CF4 802A9284 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 428CF8 802A9288 AFBF001C */ sw $ra, 0x1c($sp)
/* 428CFC 802A928C AFB20018 */ sw $s2, 0x18($sp)
/* 428D00 802A9290 AFB00010 */ sw $s0, 0x10($sp)
/* 428D04 802A9294 8623004C */ lh $v1, 0x4c($s1)
/* 428D08 802A9298 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 428D0C 802A929C 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 428D10 802A92A0 2C62000D */ sltiu $v0, $v1, 0xd
/* 428D14 802A92A4 1040010B */ beqz $v0, .L802A96D4
/* 428D18 802A92A8 00031080 */ sll $v0, $v1, 2
/* 428D1C 802A92AC 3C01802B */ lui $at, %hi(D_802A9870)
/* 428D20 802A92B0 00220821 */ addu $at, $at, $v0
/* 428D24 802A92B4 8C229870 */ lw $v0, %lo(D_802A9870)($at)
/* 428D28 802A92B8 00400008 */ jr $v0
/* 428D2C 802A92BC 00000000 */ nop
/* 428D30 802A92C0 0C093EB1 */ jal set_popup_duration
/* 428D34 802A92C4 24040063 */ addiu $a0, $zero, 0x63
/* 428D38 802A92C8 8E300004 */ lw $s0, 4($s1)
/* 428D3C 802A92CC 240500FF */ addiu $a1, $zero, 0xff
/* 428D40 802A92D0 0C0513AC */ jal icon_set_opacity
/* 428D44 802A92D4 0200202D */ daddu $a0, $s0, $zero
/* 428D48 802A92D8 82220061 */ lb $v0, 0x61($s1)
/* 428D4C 802A92DC 10400003 */ beqz $v0, .L802A92EC
/* 428D50 802A92E0 0200202D */ daddu $a0, $s0, $zero
/* 428D54 802A92E4 0C05128B */ jal clear_icon_flags
/* 428D58 802A92E8 24050002 */ addiu $a1, $zero, 2
.L802A92EC:
/* 428D5C 802A92EC 8E300008 */ lw $s0, 8($s1)
/* 428D60 802A92F0 240500FF */ addiu $a1, $zero, 0xff
/* 428D64 802A92F4 0C0513AC */ jal icon_set_opacity
/* 428D68 802A92F8 0200202D */ daddu $a0, $s0, $zero
/* 428D6C 802A92FC 82220061 */ lb $v0, 0x61($s1)
/* 428D70 802A9300 10400003 */ beqz $v0, .L802A9310
/* 428D74 802A9304 0200202D */ daddu $a0, $s0, $zero
/* 428D78 802A9308 0C05128B */ jal clear_icon_flags
/* 428D7C 802A930C 24050002 */ addiu $a1, $zero, 2
.L802A9310:
/* 428D80 802A9310 24020001 */ addiu $v0, $zero, 1
/* 428D84 802A9314 080AA5B5 */ j .L802A96D4
/* 428D88 802A9318 A622004C */ sh $v0, 0x4c($s1)
/* 428D8C 802A931C 0C093EB1 */ jal set_popup_duration
/* 428D90 802A9320 24040063 */ addiu $a0, $zero, 0x63
/* 428D94 802A9324 8622006C */ lh $v0, 0x6c($s1)
/* 428D98 802A9328 9623006C */ lhu $v1, 0x6c($s1)
/* 428D9C 802A932C 10400003 */ beqz $v0, .L802A933C
/* 428DA0 802A9330 2462FFFF */ addiu $v0, $v1, -1
/* 428DA4 802A9334 080AA5B5 */ j .L802A96D4
/* 428DA8 802A9338 A622006C */ sh $v0, 0x6c($s1)
.L802A933C:
/* 428DAC 802A933C 96220056 */ lhu $v0, 0x56($s1)
/* 428DB0 802A9340 24420014 */ addiu $v0, $v0, 0x14
/* 428DB4 802A9344 A6220056 */ sh $v0, 0x56($s1)
/* 428DB8 802A9348 00021400 */ sll $v0, $v0, 0x10
/* 428DBC 802A934C 00021403 */ sra $v0, $v0, 0x10
/* 428DC0 802A9350 28420033 */ slti $v0, $v0, 0x33
/* 428DC4 802A9354 14400002 */ bnez $v0, .L802A9360
/* 428DC8 802A9358 24020032 */ addiu $v0, $zero, 0x32
/* 428DCC 802A935C A6220056 */ sh $v0, 0x56($s1)
.L802A9360:
/* 428DD0 802A9360 8E240004 */ lw $a0, 4($s1)
/* 428DD4 802A9364 86250056 */ lh $a1, 0x56($s1)
/* 428DD8 802A9368 0C051261 */ jal set_icon_render_pos
/* 428DDC 802A936C 86260058 */ lh $a2, 0x58($s1)
/* 428DE0 802A9370 8E240008 */ lw $a0, 8($s1)
/* 428DE4 802A9374 86260058 */ lh $a2, 0x58($s1)
/* 428DE8 802A9378 86250056 */ lh $a1, 0x56($s1)
/* 428DEC 802A937C 0C051261 */ jal set_icon_render_pos
/* 428DF0 802A9380 24C6001C */ addiu $a2, $a2, 0x1c
/* 428DF4 802A9384 080AA5B5 */ j .L802A96D4
/* 428DF8 802A9388 00000000 */ nop
/* 428DFC 802A938C 0C093EB1 */ jal set_popup_duration
/* 428E00 802A9390 24040063 */ addiu $a0, $zero, 0x63
/* 428E04 802A9394 8622004E */ lh $v0, 0x4e($s1)
/* 428E08 802A9398 9623004E */ lhu $v1, 0x4e($s1)
/* 428E0C 802A939C 10400003 */ beqz $v0, .L802A93AC
/* 428E10 802A93A0 2462FFFF */ addiu $v0, $v1, -1
/* 428E14 802A93A4 080AA5B5 */ j .L802A96D4
/* 428E18 802A93A8 A622004E */ sh $v0, 0x4e($s1)
.L802A93AC:
/* 428E1C 802A93AC 8E240004 */ lw $a0, 4($s1)
/* 428E20 802A93B0 3C058011 */ lui $a1, %hi(D_80108B80)
/* 428E24 802A93B4 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80)
/* 428E28 802A93B8 0C0511FF */ jal set_menu_icon_script
/* 428E2C 802A93BC 00000000 */ nop
/* 428E30 802A93C0 3C048000 */ lui $a0, 0x8000
/* 428E34 802A93C4 34840041 */ ori $a0, $a0, 0x41
/* 428E38 802A93C8 0000282D */ daddu $a1, $zero, $zero
/* 428E3C 802A93CC 00A0302D */ daddu $a2, $a1, $zero
/* 428E40 802A93D0 00A0382D */ daddu $a3, $a1, $zero
/* 428E44 802A93D4 96220052 */ lhu $v0, 0x52($s1)
/* 428E48 802A93D8 24030001 */ addiu $v1, $zero, 1
/* 428E4C 802A93DC 3C01802B */ lui $at, %hi(func_802A98B0)
/* 428E50 802A93E0 AC2398B0 */ sw $v1, %lo(func_802A98B0)($at)
/* 428E54 802A93E4 0C0526AE */ jal _play_sound
/* 428E58 802A93E8 A6220054 */ sh $v0, 0x54($s1)
/* 428E5C 802A93EC 2402000B */ addiu $v0, $zero, 0xb
/* 428E60 802A93F0 A622004C */ sh $v0, 0x4c($s1)
/* 428E64 802A93F4 0C093EB1 */ jal set_popup_duration
/* 428E68 802A93F8 24040063 */ addiu $a0, $zero, 0x63
/* 428E6C 802A93FC 86220068 */ lh $v0, 0x68($s1)
/* 428E70 802A9400 14400027 */ bnez $v0, .L802A94A0
/* 428E74 802A9404 00000000 */ nop
/* 428E78 802A9408 8622005A */ lh $v0, 0x5a($s1)
/* 428E7C 802A940C 1040001E */ beqz $v0, .L802A9488
/* 428E80 802A9410 00000000 */ nop
/* 428E84 802A9414 82220080 */ lb $v0, 0x80($s1)
/* 428E88 802A9418 00021040 */ sll $v0, $v0, 1
/* 428E8C 802A941C 02221021 */ addu $v0, $s1, $v0
/* 428E90 802A9420 84430074 */ lh $v1, 0x74($v0)
/* 428E94 802A9424 86220044 */ lh $v0, 0x44($s1)
/* 428E98 802A9428 14600002 */ bnez $v1, .L802A9434
/* 428E9C 802A942C 0043001A */ div $zero, $v0, $v1
/* 428EA0 802A9430 0007000D */ break 7
.L802A9434:
/* 428EA4 802A9434 2401FFFF */ addiu $at, $zero, -1
/* 428EA8 802A9438 14610004 */ bne $v1, $at, .L802A944C
/* 428EAC 802A943C 3C018000 */ lui $at, 0x8000
/* 428EB0 802A9440 14410002 */ bne $v0, $at, .L802A944C
/* 428EB4 802A9444 00000000 */ nop
/* 428EB8 802A9448 0006000D */ break 6
.L802A944C:
/* 428EBC 802A944C 00001012 */ mflo $v0
/* 428EC0 802A9450 3C036666 */ lui $v1, 0x6666
/* 428EC4 802A9454 34636667 */ ori $v1, $v1, 0x6667
/* 428EC8 802A9458 00430018 */ mult $v0, $v1
/* 428ECC 802A945C 000217C3 */ sra $v0, $v0, 0x1f
/* 428ED0 802A9460 00001810 */ mfhi $v1
/* 428ED4 802A9464 000318C3 */ sra $v1, $v1, 3
/* 428ED8 802A9468 00621823 */ subu $v1, $v1, $v0
/* 428EDC 802A946C 00031880 */ sll $v1, $v1, 2
/* 428EE0 802A9470 96220044 */ lhu $v0, 0x44($s1)
/* 428EE4 802A9474 3C01802B */ lui $at, %hi(D_802A9852)
/* 428EE8 802A9478 00230821 */ addu $at, $at, $v1
/* 428EEC 802A947C 94239852 */ lhu $v1, %lo(D_802A9852)($at)
/* 428EF0 802A9480 080AA524 */ j .L802A9490
/* 428EF4 802A9484 00431023 */ subu $v0, $v0, $v1
.L802A9488:
/* 428EF8 802A9488 96220044 */ lhu $v0, 0x44($s1)
/* 428EFC 802A948C 2442FFF6 */ addiu $v0, $v0, -0xa
.L802A9490:
/* 428F00 802A9490 A6220044 */ sh $v0, 0x44($s1)
/* 428F04 802A9494 00021400 */ sll $v0, $v0, 0x10
/* 428F08 802A9498 04420001 */ bltzl $v0, .L802A94A0
/* 428F0C 802A949C A6200044 */ sh $zero, 0x44($s1)
.L802A94A0:
/* 428F10 802A94A0 82420083 */ lb $v0, 0x83($s2)
/* 428F14 802A94A4 10400029 */ beqz $v0, .L802A954C
/* 428F18 802A94A8 00000000 */ nop
/* 428F1C 802A94AC 8E420214 */ lw $v0, 0x214($s2)
/* 428F20 802A94B0 30428000 */ andi $v0, $v0, 0x8000
/* 428F24 802A94B4 10400025 */ beqz $v0, .L802A954C
/* 428F28 802A94B8 00000000 */ nop
/* 428F2C 802A94BC 8625005A */ lh $a1, 0x5a($s1)
/* 428F30 802A94C0 10A00019 */ beqz $a1, .L802A9528
/* 428F34 802A94C4 00000000 */ nop
/* 428F38 802A94C8 86240050 */ lh $a0, 0x50($s1)
/* 428F3C 802A94CC 8E420434 */ lw $v0, 0x434($s2)
/* 428F40 802A94D0 00042080 */ sll $a0, $a0, 2
/* 428F44 802A94D4 00822021 */ addu $a0, $a0, $v0
/* 428F48 802A94D8 00051040 */ sll $v0, $a1, 1
/* 428F4C 802A94DC 00451021 */ addu $v0, $v0, $a1
/* 428F50 802A94E0 00021900 */ sll $v1, $v0, 4
/* 428F54 802A94E4 00431021 */ addu $v0, $v0, $v1
/* 428F58 802A94E8 00021080 */ sll $v0, $v0, 2
/* 428F5C 802A94EC 00451021 */ addu $v0, $v0, $a1
/* 428F60 802A94F0 8C840000 */ lw $a0, ($a0)
/* 428F64 802A94F4 00021080 */ sll $v0, $v0, 2
/* 428F68 802A94F8 00820018 */ mult $a0, $v0
/* 428F6C 802A94FC 00002012 */ mflo $a0
/* 428F70 802A9500 3C0268DB */ lui $v0, 0x68db
/* 428F74 802A9504 34428BAD */ ori $v0, $v0, 0x8bad
/* 428F78 802A9508 00820018 */ mult $a0, $v0
/* 428F7C 802A950C 000427C3 */ sra $a0, $a0, 0x1f
/* 428F80 802A9510 96220044 */ lhu $v0, 0x44($s1)
/* 428F84 802A9514 00001810 */ mfhi $v1
/* 428F88 802A9518 00031B03 */ sra $v1, $v1, 0xc
/* 428F8C 802A951C 00641823 */ subu $v1, $v1, $a0
/* 428F90 802A9520 080AA552 */ j .L802A9548
/* 428F94 802A9524 00431021 */ addu $v0, $v0, $v1
.L802A9528:
/* 428F98 802A9528 96220044 */ lhu $v0, 0x44($s1)
/* 428F9C 802A952C 24420064 */ addiu $v0, $v0, 0x64
/* 428FA0 802A9530 A6220044 */ sh $v0, 0x44($s1)
/* 428FA4 802A9534 00021400 */ sll $v0, $v0, 0x10
/* 428FA8 802A9538 00021403 */ sra $v0, $v0, 0x10
/* 428FAC 802A953C 284201F4 */ slti $v0, $v0, 0x1f4
/* 428FB0 802A9540 14400002 */ bnez $v0, .L802A954C
/* 428FB4 802A9544 240201F4 */ addiu $v0, $zero, 0x1f4
.L802A9548:
/* 428FB8 802A9548 A6220044 */ sh $v0, 0x44($s1)
.L802A954C:
/* 428FBC 802A954C 86220044 */ lh $v0, 0x44($s1)
/* 428FC0 802A9550 28422711 */ slti $v0, $v0, 0x2711
/* 428FC4 802A9554 14400010 */ bnez $v0, .L802A9598
/* 428FC8 802A9558 3C0451EB */ lui $a0, 0x51eb
/* 428FCC 802A955C 8E30000C */ lw $s0, 0xc($s1)
/* 428FD0 802A9560 86250056 */ lh $a1, 0x56($s1)
/* 428FD4 802A9564 86260058 */ lh $a2, 0x58($s1)
/* 428FD8 802A9568 24022710 */ addiu $v0, $zero, 0x2710
/* 428FDC 802A956C A6220044 */ sh $v0, 0x44($s1)
/* 428FE0 802A9570 24020001 */ addiu $v0, $zero, 1
/* 428FE4 802A9574 A6220068 */ sh $v0, 0x68($s1)
/* 428FE8 802A9578 0200202D */ daddu $a0, $s0, $zero
/* 428FEC 802A957C 24A50032 */ addiu $a1, $a1, 0x32
/* 428FF0 802A9580 0C051261 */ jal set_icon_render_pos
/* 428FF4 802A9584 24C6001C */ addiu $a2, $a2, 0x1c
/* 428FF8 802A9588 0200202D */ daddu $a0, $s0, $zero
/* 428FFC 802A958C 0C05128B */ jal clear_icon_flags
/* 429000 802A9590 24050002 */ addiu $a1, $zero, 2
/* 429004 802A9594 3C0451EB */ lui $a0, 0x51eb
.L802A9598:
/* 429008 802A9598 96220044 */ lhu $v0, 0x44($s1)
/* 42900C 802A959C 3484851F */ ori $a0, $a0, 0x851f
/* 429010 802A95A0 00021400 */ sll $v0, $v0, 0x10
/* 429014 802A95A4 00021C03 */ sra $v1, $v0, 0x10
/* 429018 802A95A8 00640018 */ mult $v1, $a0
/* 42901C 802A95AC 000217C3 */ sra $v0, $v0, 0x1f
/* 429020 802A95B0 00004010 */ mfhi $t0
/* 429024 802A95B4 00081943 */ sra $v1, $t0, 5
/* 429028 802A95B8 00622023 */ subu $a0, $v1, $v0
/* 42902C 802A95BC 00041600 */ sll $v0, $a0, 0x18
/* 429030 802A95C0 82430084 */ lb $v1, 0x84($s2)
/* 429034 802A95C4 00021603 */ sra $v0, $v0, 0x18
/* 429038 802A95C8 0062182A */ slt $v1, $v1, $v0
/* 42903C 802A95CC 10600002 */ beqz $v1, .L802A95D8
/* 429040 802A95D0 A2440081 */ sb $a0, 0x81($s2)
/* 429044 802A95D4 A2440084 */ sb $a0, 0x84($s2)
.L802A95D8:
/* 429048 802A95D8 3C048000 */ lui $a0, 0x8000
/* 42904C 802A95DC 34840041 */ ori $a0, $a0, 0x41
/* 429050 802A95E0 0000282D */ daddu $a1, $zero, $zero
/* 429054 802A95E4 82420081 */ lb $v0, 0x81($s2)
/* 429058 802A95E8 00A0302D */ daddu $a2, $a1, $zero
/* 42905C 802A95EC 00023840 */ sll $a3, $v0, 1
/* 429060 802A95F0 00E23821 */ addu $a3, $a3, $v0
/* 429064 802A95F4 0C0526F9 */ jal func_80149BE4
/* 429068 802A95F8 00073880 */ sll $a3, $a3, 2
/* 42906C 802A95FC 86220054 */ lh $v0, 0x54($s1)
/* 429070 802A9600 96230054 */ lhu $v1, 0x54($s1)
/* 429074 802A9604 1440002F */ bnez $v0, .L802A96C4
/* 429078 802A9608 2462FFFF */ addiu $v0, $v1, -1
/* 42907C 802A960C 8622005A */ lh $v0, 0x5a($s1)
/* 429080 802A9610 50400001 */ beql $v0, $zero, .L802A9618
/* 429084 802A9614 A2400084 */ sb $zero, 0x84($s2)
.L802A9618:
/* 429088 802A9618 92420084 */ lbu $v0, 0x84($s2)
/* 42908C 802A961C 24040063 */ addiu $a0, $zero, 0x63
/* 429090 802A9620 0C00A67F */ jal rand_int
/* 429094 802A9624 A2420081 */ sb $v0, 0x81($s2)
/* 429098 802A9628 82430081 */ lb $v1, 0x81($s2)
/* 42909C 802A962C 0043102A */ slt $v0, $v0, $v1
/* 4290A0 802A9630 10400003 */ beqz $v0, .L802A9640
/* 4290A4 802A9634 24020001 */ addiu $v0, $zero, 1
/* 4290A8 802A9638 080AA593 */ j .L802A964C
/* 4290AC 802A963C A2420086 */ sb $v0, 0x86($s2)
.L802A9640:
/* 4290B0 802A9640 2402FFFE */ addiu $v0, $zero, -2
/* 4290B4 802A9644 A2420086 */ sb $v0, 0x86($s2)
/* 4290B8 802A9648 2402FFFF */ addiu $v0, $zero, -1
.L802A964C:
/* 4290BC 802A964C A2420081 */ sb $v0, 0x81($s2)
/* 4290C0 802A9650 82430081 */ lb $v1, 0x81($s2)
/* 4290C4 802A9654 24020001 */ addiu $v0, $zero, 1
/* 4290C8 802A9658 14620003 */ bne $v1, $v0, .L802A9668
/* 4290CC 802A965C 00000000 */ nop
/* 4290D0 802A9660 0C09A458 */ jal func_80269160
/* 4290D4 802A9664 00000000 */ nop
.L802A9668:
/* 4290D8 802A9668 0C093EB1 */ jal set_popup_duration
/* 4290DC 802A966C 0000202D */ daddu $a0, $zero, $zero
/* 4290E0 802A9670 3C048000 */ lui $a0, 0x8000
/* 4290E4 802A9674 0C05271B */ jal stop_sound
/* 4290E8 802A9678 34840041 */ ori $a0, $a0, 0x41
/* 4290EC 802A967C 24020014 */ addiu $v0, $zero, 0x14
/* 4290F0 802A9680 A6220054 */ sh $v0, 0x54($s1)
/* 4290F4 802A9684 2402000C */ addiu $v0, $zero, 0xc
/* 4290F8 802A9688 080AA5B5 */ j .L802A96D4
/* 4290FC 802A968C A622004C */ sh $v0, 0x4c($s1)
/* 429100 802A9690 8622005A */ lh $v0, 0x5a($s1)
/* 429104 802A9694 14400007 */ bnez $v0, .L802A96B4
/* 429108 802A9698 00000000 */ nop
/* 42910C 802A969C 96220044 */ lhu $v0, 0x44($s1)
/* 429110 802A96A0 2442FF9C */ addiu $v0, $v0, -0x64
/* 429114 802A96A4 A6220044 */ sh $v0, 0x44($s1)
/* 429118 802A96A8 00021400 */ sll $v0, $v0, 0x10
/* 42911C 802A96AC 04420001 */ bltzl $v0, .L802A96B4
/* 429120 802A96B0 A6200044 */ sh $zero, 0x44($s1)
.L802A96B4:
/* 429124 802A96B4 86220054 */ lh $v0, 0x54($s1)
/* 429128 802A96B8 96230054 */ lhu $v1, 0x54($s1)
/* 42912C 802A96BC 10400003 */ beqz $v0, .L802A96CC
/* 429130 802A96C0 2462FFFF */ addiu $v0, $v1, -1
.L802A96C4:
/* 429134 802A96C4 080AA5B5 */ j .L802A96D4
/* 429138 802A96C8 A6220054 */ sh $v0, 0x54($s1)
.L802A96CC:
/* 42913C 802A96CC 0C09A327 */ jal func_80268C9C
/* 429140 802A96D0 00000000 */ nop
.L802A96D4:
/* 429144 802A96D4 8FBF001C */ lw $ra, 0x1c($sp)
/* 429148 802A96D8 8FB20018 */ lw $s2, 0x18($sp)
/* 42914C 802A96DC 8FB10014 */ lw $s1, 0x14($sp)
/* 429150 802A96E0 8FB00010 */ lw $s0, 0x10($sp)
/* 429154 802A96E4 03E00008 */ jr $ra
/* 429158 802A96E8 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,82 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A96EC_42915C
/* 42915C 802A96EC 3C02800E */ lui $v0, %hi(gBattleStatus+0x83)
/* 429160 802A96F0 8042C0F3 */ lb $v0, %lo(gBattleStatus+0x83)($v0)
/* 429164 802A96F4 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 429168 802A96F8 AFB1001C */ sw $s1, 0x1c($sp)
/* 42916C 802A96FC 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 429170 802A9700 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 429174 802A9704 AFBF0020 */ sw $ra, 0x20($sp)
/* 429178 802A9708 10400004 */ beqz $v0, .L802A971C
/* 42917C 802A970C AFB00018 */ sw $s0, 0x18($sp)
/* 429180 802A9710 8E240004 */ lw $a0, 4($s1)
/* 429184 802A9714 0C0511EA */ jal draw_icon_0
/* 429188 802A9718 00000000 */ nop
.L802A971C:
/* 42918C 802A971C 8E300008 */ lw $s0, 8($s1)
/* 429190 802A9720 0C0511EA */ jal draw_icon_0
/* 429194 802A9724 0200202D */ daddu $a0, $s0, $zero
/* 429198 802A9728 0200202D */ daddu $a0, $s0, $zero
/* 42919C 802A972C 27A50010 */ addiu $a1, $sp, 0x10
/* 4291A0 802A9730 0C05126B */ jal get_icon_render_pos
/* 4291A4 802A9734 27A60014 */ addiu $a2, $sp, 0x14
/* 4291A8 802A9738 3C02802B */ lui $v0, %hi(func_802A98B0)
/* 4291AC 802A973C 8C4298B0 */ lw $v0, %lo(func_802A98B0)($v0)
/* 4291B0 802A9740 14400008 */ bnez $v0, .L802A9764
/* 4291B4 802A9744 3C0451EB */ lui $a0, 0x51eb
/* 4291B8 802A9748 96230044 */ lhu $v1, 0x44($s1)
/* 4291BC 802A974C 3484851F */ ori $a0, $a0, 0x851f
/* 4291C0 802A9750 00031C00 */ sll $v1, $v1, 0x10
/* 4291C4 802A9754 00031403 */ sra $v0, $v1, 0x10
/* 4291C8 802A9758 00440018 */ mult $v0, $a0
/* 4291CC 802A975C 080AA5E3 */ j .L802A978C
/* 4291D0 802A9760 24070001 */ addiu $a3, $zero, 1
.L802A9764:
/* 4291D4 802A9764 86220068 */ lh $v0, 0x68($s1)
/* 4291D8 802A9768 14400013 */ bnez $v0, .L802A97B8
/* 4291DC 802A976C 3484851F */ ori $a0, $a0, 0x851f
/* 4291E0 802A9770 3C0451EB */ lui $a0, 0x51eb
/* 4291E4 802A9774 96230044 */ lhu $v1, 0x44($s1)
/* 4291E8 802A9778 3484851F */ ori $a0, $a0, 0x851f
/* 4291EC 802A977C 00031C00 */ sll $v1, $v1, 0x10
/* 4291F0 802A9780 00031403 */ sra $v0, $v1, 0x10
/* 4291F4 802A9784 00440018 */ mult $v0, $a0
/* 4291F8 802A9788 24070004 */ addiu $a3, $zero, 4
.L802A978C:
/* 4291FC 802A978C 8FA50014 */ lw $a1, 0x14($sp)
/* 429200 802A9790 00031FC3 */ sra $v1, $v1, 0x1f
/* 429204 802A9794 8FA40010 */ lw $a0, 0x10($sp)
/* 429208 802A9798 00004010 */ mfhi $t0
/* 42920C 802A979C 00083143 */ sra $a2, $t0, 5
/* 429210 802A97A0 00C33023 */ subu $a2, $a2, $v1
/* 429214 802A97A4 00063400 */ sll $a2, $a2, 0x10
/* 429218 802A97A8 0C09A1E6 */ jal func_80268798
/* 42921C 802A97AC 00063403 */ sra $a2, $a2, 0x10
/* 429220 802A97B0 080AA5FC */ j .L802A97F0
/* 429224 802A97B4 00000000 */ nop
.L802A97B8:
/* 429228 802A97B8 96230044 */ lhu $v1, 0x44($s1)
/* 42922C 802A97BC 00031C00 */ sll $v1, $v1, 0x10
/* 429230 802A97C0 00031403 */ sra $v0, $v1, 0x10
/* 429234 802A97C4 00440018 */ mult $v0, $a0
/* 429238 802A97C8 24070004 */ addiu $a3, $zero, 4
/* 42923C 802A97CC 8FA50014 */ lw $a1, 0x14($sp)
/* 429240 802A97D0 00031FC3 */ sra $v1, $v1, 0x1f
/* 429244 802A97D4 8FA40010 */ lw $a0, 0x10($sp)
/* 429248 802A97D8 00004010 */ mfhi $t0
/* 42924C 802A97DC 00083143 */ sra $a2, $t0, 5
/* 429250 802A97E0 00C33023 */ subu $a2, $a2, $v1
/* 429254 802A97E4 00063400 */ sll $a2, $a2, 0x10
/* 429258 802A97E8 0C09A20D */ jal func_80268834
/* 42925C 802A97EC 00063403 */ sra $a2, $a2, 0x10
.L802A97F0:
/* 429260 802A97F0 8E24000C */ lw $a0, 0xc($s1)
/* 429264 802A97F4 0C0511EA */ jal draw_icon_0
/* 429268 802A97F8 00000000 */ nop
/* 42926C 802A97FC 8FBF0020 */ lw $ra, 0x20($sp)
/* 429270 802A9800 8FB1001C */ lw $s1, 0x1c($sp)
/* 429274 802A9804 8FB00018 */ lw $s0, 0x18($sp)
/* 429278 802A9808 03E00008 */ jr $ra
/* 42927C 802A980C 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,20 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9810_429280
/* 429280 802A9810 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 429284 802A9814 AFB00010 */ sw $s0, 0x10($sp)
/* 429288 802A9818 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 42928C 802A981C 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 429290 802A9820 AFBF0014 */ sw $ra, 0x14($sp)
/* 429294 802A9824 0C05123D */ jal free_icon
/* 429298 802A9828 8E040004 */ lw $a0, 4($s0)
/* 42929C 802A982C 0C05123D */ jal free_icon
/* 4292A0 802A9830 8E040008 */ lw $a0, 8($s0)
/* 4292A4 802A9834 0C05123D */ jal free_icon
/* 4292A8 802A9838 8E04000C */ lw $a0, 0xc($s0)
/* 4292AC 802A983C 8FBF0014 */ lw $ra, 0x14($sp)
/* 4292B0 802A9840 8FB00010 */ lw $s0, 0x10($sp)
/* 4292B4 802A9844 03E00008 */ jr $ra
/* 4292B8 802A9848 27BD0018 */ addiu $sp, $sp, 0x18
/* 4292BC 802A984C 00000000 */ nop

View File

@ -0,0 +1,100 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_429320
/* 429320 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 429324 802A9004 AFB00010 */ sw $s0, 0x10($sp)
/* 429328 802A9008 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 42932C 802A900C 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 429330 802A9010 24020064 */ addiu $v0, $zero, 0x64
/* 429334 802A9014 AFBF0018 */ sw $ra, 0x18($sp)
/* 429338 802A9018 AFB10014 */ sw $s1, 0x14($sp)
/* 42933C 802A901C A2020082 */ sb $v0, 0x82($s0)
/* 429340 802A9020 3C028029 */ lui $v0, %hi(D_80294360)
/* 429344 802A9024 24424360 */ addiu $v0, $v0, %lo(D_80294360)
/* 429348 802A9028 AE020434 */ sw $v0, 0x434($s0)
/* 42934C 802A902C 2402007F */ addiu $v0, $zero, 0x7f
/* 429350 802A9030 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 429354 802A9034 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 429358 802A9038 A2020086 */ sb $v0, 0x86($s0)
/* 42935C 802A903C 82020083 */ lb $v0, 0x83($s0)
/* 429360 802A9040 10400046 */ beqz $v0, .L802A915C
/* 429364 802A9044 0200182D */ daddu $v1, $s0, $zero
/* 429368 802A9048 0C09A216 */ jal func_80268858
/* 42936C 802A904C 00000000 */ nop
/* 429370 802A9050 3C048011 */ lui $a0, %hi(D_80108E1C)
/* 429374 802A9054 24848E1C */ addiu $a0, $a0, %lo(D_80108E1C)
/* 429378 802A9058 2402000E */ addiu $v0, $zero, 0xe
/* 42937C 802A905C A622004A */ sh $v0, 0x4a($s1)
/* 429380 802A9060 24020001 */ addiu $v0, $zero, 1
/* 429384 802A9064 A2220061 */ sb $v0, 0x61($s1)
/* 429388 802A9068 2402001E */ addiu $v0, $zero, 0x1e
/* 42938C 802A906C A622006C */ sh $v0, 0x6c($s1)
/* 429390 802A9070 2402FFD0 */ addiu $v0, $zero, -0x30
/* 429394 802A9074 A620004C */ sh $zero, 0x4c($s1)
/* 429398 802A9078 A2200060 */ sb $zero, 0x60($s1)
/* 42939C 802A907C A6200044 */ sh $zero, 0x44($s1)
/* 4293A0 802A9080 A6200048 */ sh $zero, 0x48($s1)
/* 4293A4 802A9084 A6200068 */ sh $zero, 0x68($s1)
/* 4293A8 802A9088 A2000081 */ sb $zero, 0x81($s0)
/* 4293AC 802A908C A6220056 */ sh $v0, 0x56($s1)
/* 4293B0 802A9090 24020050 */ addiu $v0, $zero, 0x50
/* 4293B4 802A9094 0C050529 */ jal create_icon
/* 4293B8 802A9098 A6220058 */ sh $v0, 0x58($s1)
/* 4293BC 802A909C 0040802D */ daddu $s0, $v0, $zero
/* 4293C0 802A90A0 86250056 */ lh $a1, 0x56($s1)
/* 4293C4 802A90A4 86260058 */ lh $a2, 0x58($s1)
/* 4293C8 802A90A8 0200202D */ daddu $a0, $s0, $zero
/* 4293CC 802A90AC 0C051261 */ jal set_icon_render_pos
/* 4293D0 802A90B0 AE300004 */ sw $s0, 4($s1)
/* 4293D4 802A90B4 0200202D */ daddu $a0, $s0, $zero
/* 4293D8 802A90B8 0C051277 */ jal func_801449DC
/* 4293DC 802A90BC 0000282D */ daddu $a1, $zero, $zero
/* 4293E0 802A90C0 0200202D */ daddu $a0, $s0, $zero
/* 4293E4 802A90C4 0C051280 */ jal set_icon_flags
/* 4293E8 802A90C8 24050082 */ addiu $a1, $zero, 0x82
/* 4293EC 802A90CC 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 4293F0 802A90D0 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 4293F4 802A90D4 0C050529 */ jal create_icon
/* 4293F8 802A90D8 00000000 */ nop
/* 4293FC 802A90DC 0040802D */ daddu $s0, $v0, $zero
/* 429400 802A90E0 86250056 */ lh $a1, 0x56($s1)
/* 429404 802A90E4 86260058 */ lh $a2, 0x58($s1)
/* 429408 802A90E8 0200202D */ daddu $a0, $s0, $zero
/* 42940C 802A90EC AE300008 */ sw $s0, 8($s1)
/* 429410 802A90F0 0C051261 */ jal set_icon_render_pos
/* 429414 802A90F4 24C6001C */ addiu $a2, $a2, 0x1c
/* 429418 802A90F8 0200202D */ daddu $a0, $s0, $zero
/* 42941C 802A90FC 0C051277 */ jal func_801449DC
/* 429420 802A9100 0000282D */ daddu $a1, $zero, $zero
/* 429424 802A9104 0200202D */ daddu $a0, $s0, $zero
/* 429428 802A9108 0C051280 */ jal set_icon_flags
/* 42942C 802A910C 24050082 */ addiu $a1, $zero, 0x82
/* 429430 802A9110 3C048029 */ lui $a0, %hi(D_80292974)
/* 429434 802A9114 24842974 */ addiu $a0, $a0, %lo(D_80292974)
/* 429438 802A9118 0C050529 */ jal create_icon
/* 42943C 802A911C 00000000 */ nop
/* 429440 802A9120 0040802D */ daddu $s0, $v0, $zero
/* 429444 802A9124 86250056 */ lh $a1, 0x56($s1)
/* 429448 802A9128 86260058 */ lh $a2, 0x58($s1)
/* 42944C 802A912C 0200202D */ daddu $a0, $s0, $zero
/* 429450 802A9130 AE30000C */ sw $s0, 0xc($s1)
/* 429454 802A9134 0C051261 */ jal set_icon_render_pos
/* 429458 802A9138 24C6001C */ addiu $a2, $a2, 0x1c
/* 42945C 802A913C 0200202D */ daddu $a0, $s0, $zero
/* 429460 802A9140 0C051277 */ jal func_801449DC
/* 429464 802A9144 0000282D */ daddu $a1, $zero, $zero
/* 429468 802A9148 0200202D */ daddu $a0, $s0, $zero
/* 42946C 802A914C 0C051280 */ jal set_icon_flags
/* 429470 802A9150 24050082 */ addiu $a1, $zero, 0x82
/* 429474 802A9154 080AA459 */ j .L802A9164
/* 429478 802A9158 24020002 */ addiu $v0, $zero, 2
.L802A915C:
/* 42947C 802A915C A0600081 */ sb $zero, 0x81($v1)
/* 429480 802A9160 24020002 */ addiu $v0, $zero, 2
.L802A9164:
/* 429484 802A9164 8FBF0018 */ lw $ra, 0x18($sp)
/* 429488 802A9168 8FB10014 */ lw $s1, 0x14($sp)
/* 42948C 802A916C 8FB00010 */ lw $s0, 0x10($sp)
/* 429490 802A9170 03E00008 */ jr $ra
/* 429494 802A9174 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,77 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9178_429498
/* 429498 802A9178 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42949C 802A917C AFB3001C */ sw $s3, 0x1c($sp)
/* 4294A0 802A9180 0080982D */ daddu $s3, $a0, $zero
/* 4294A4 802A9184 AFB10014 */ sw $s1, 0x14($sp)
/* 4294A8 802A9188 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 4294AC 802A918C 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 4294B0 802A9190 AFB20018 */ sw $s2, 0x18($sp)
/* 4294B4 802A9194 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 4294B8 802A9198 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 4294BC 802A919C AFBF0020 */ sw $ra, 0x20($sp)
/* 4294C0 802A91A0 AFB00010 */ sw $s0, 0x10($sp)
/* 4294C4 802A91A4 82420083 */ lb $v0, 0x83($s2)
/* 4294C8 802A91A8 8E70000C */ lw $s0, 0xc($s3)
/* 4294CC 802A91AC 10400030 */ beqz $v0, .L802A9270
/* 4294D0 802A91B0 0240182D */ daddu $v1, $s2, $zero
/* 4294D4 802A91B4 0C09A216 */ jal func_80268858
/* 4294D8 802A91B8 00000000 */ nop
/* 4294DC 802A91BC 8E050000 */ lw $a1, ($s0)
/* 4294E0 802A91C0 26100004 */ addiu $s0, $s0, 4
/* 4294E4 802A91C4 0C0B1EAF */ jal get_variable
/* 4294E8 802A91C8 0260202D */ daddu $a0, $s3, $zero
/* 4294EC 802A91CC A622004E */ sh $v0, 0x4e($s1)
/* 4294F0 802A91D0 8E050000 */ lw $a1, ($s0)
/* 4294F4 802A91D4 26100004 */ addiu $s0, $s0, 4
/* 4294F8 802A91D8 0C0B1EAF */ jal get_variable
/* 4294FC 802A91DC 0260202D */ daddu $a0, $s3, $zero
/* 429500 802A91E0 A6220052 */ sh $v0, 0x52($s1)
/* 429504 802A91E4 8E050000 */ lw $a1, ($s0)
/* 429508 802A91E8 26100004 */ addiu $s0, $s0, 4
/* 42950C 802A91EC 0C0B1EAF */ jal get_variable
/* 429510 802A91F0 0260202D */ daddu $a0, $s3, $zero
/* 429514 802A91F4 00022400 */ sll $a0, $v0, 0x10
/* 429518 802A91F8 00042403 */ sra $a0, $a0, 0x10
/* 42951C 802A91FC 0C09A089 */ jal func_80268224
/* 429520 802A9200 A6220050 */ sh $v0, 0x50($s1)
/* 429524 802A9204 A6220050 */ sh $v0, 0x50($s1)
/* 429528 802A9208 8E050000 */ lw $a1, ($s0)
/* 42952C 802A920C 0C0B1EAF */ jal get_variable
/* 429530 802A9210 0260202D */ daddu $a0, $s3, $zero
/* 429534 802A9214 3C05FFFF */ lui $a1, 0xffff
/* 429538 802A9218 34A57FFF */ ori $a1, $a1, 0x7fff
/* 42953C 802A921C A6220064 */ sh $v0, 0x64($s1)
/* 429540 802A9220 A2200060 */ sb $zero, 0x60($s1)
/* 429544 802A9224 A6200044 */ sh $zero, 0x44($s1)
/* 429548 802A9228 A6200048 */ sh $zero, 0x48($s1)
/* 42954C 802A922C A2400081 */ sb $zero, 0x81($s2)
/* 429550 802A9230 82220080 */ lb $v0, 0x80($s1)
/* 429554 802A9234 2403007F */ addiu $v1, $zero, 0x7f
/* 429558 802A9238 A2430086 */ sb $v1, 0x86($s2)
/* 42955C 802A923C 8E430000 */ lw $v1, ($s2)
/* 429560 802A9240 2442FFFF */ addiu $v0, $v0, -1
/* 429564 802A9244 00021040 */ sll $v0, $v0, 1
/* 429568 802A9248 00511021 */ addu $v0, $v0, $s1
/* 42956C 802A924C 00651824 */ and $v1, $v1, $a1
/* 429570 802A9250 90440075 */ lbu $a0, 0x75($v0)
/* 429574 802A9254 2402000A */ addiu $v0, $zero, 0xa
/* 429578 802A9258 AE430000 */ sw $v1, ($s2)
/* 42957C 802A925C A622004C */ sh $v0, 0x4c($s1)
/* 429580 802A9260 0C09A446 */ jal func_80269118
/* 429584 802A9264 A2440082 */ sb $a0, 0x82($s2)
/* 429588 802A9268 080AA49E */ j .L802A9278
/* 42958C 802A926C 24020002 */ addiu $v0, $zero, 2
.L802A9270:
/* 429590 802A9270 A0600081 */ sb $zero, 0x81($v1)
/* 429594 802A9274 24020002 */ addiu $v0, $zero, 2
.L802A9278:
/* 429598 802A9278 8FBF0020 */ lw $ra, 0x20($sp)
/* 42959C 802A927C 8FB3001C */ lw $s3, 0x1c($sp)
/* 4295A0 802A9280 8FB20018 */ lw $s2, 0x18($sp)
/* 4295A4 802A9284 8FB10014 */ lw $s1, 0x14($sp)
/* 4295A8 802A9288 8FB00010 */ lw $s0, 0x10($sp)
/* 4295AC 802A928C 03E00008 */ jr $ra
/* 4295B0 802A9290 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,396 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9294_4295B4
/* 4295B4 802A9294 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 4295B8 802A9298 AFB10014 */ sw $s1, 0x14($sp)
/* 4295BC 802A929C 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 4295C0 802A92A0 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 4295C4 802A92A4 AFB20018 */ sw $s2, 0x18($sp)
/* 4295C8 802A92A8 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 4295CC 802A92AC 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 4295D0 802A92B0 AFBF0020 */ sw $ra, 0x20($sp)
/* 4295D4 802A92B4 AFB3001C */ sw $s3, 0x1c($sp)
/* 4295D8 802A92B8 AFB00010 */ sw $s0, 0x10($sp)
/* 4295DC 802A92BC 8623004C */ lh $v1, 0x4c($s1)
/* 4295E0 802A92C0 8E5300DC */ lw $s3, 0xdc($s2)
/* 4295E4 802A92C4 2C62000D */ sltiu $v0, $v1, 0xd
/* 4295E8 802A92C8 10400159 */ beqz $v0, .L802A9830
/* 4295EC 802A92CC 00031080 */ sll $v0, $v1, 2
/* 4295F0 802A92D0 3C01802B */ lui $at, %hi(D_802A99C0)
/* 4295F4 802A92D4 00220821 */ addu $at, $at, $v0
/* 4295F8 802A92D8 8C2299C0 */ lw $v0, %lo(D_802A99C0)($at)
/* 4295FC 802A92DC 00400008 */ jr $v0
/* 429600 802A92E0 00000000 */ nop
/* 429604 802A92E4 0C093EB1 */ jal set_popup_duration
/* 429608 802A92E8 24040063 */ addiu $a0, $zero, 0x63
/* 42960C 802A92EC 8E300004 */ lw $s0, 4($s1)
/* 429610 802A92F0 240500FF */ addiu $a1, $zero, 0xff
/* 429614 802A92F4 0C0513AC */ jal icon_set_opacity
/* 429618 802A92F8 0200202D */ daddu $a0, $s0, $zero
/* 42961C 802A92FC 82220061 */ lb $v0, 0x61($s1)
/* 429620 802A9300 10400003 */ beqz $v0, .L802A9310
/* 429624 802A9304 0200202D */ daddu $a0, $s0, $zero
/* 429628 802A9308 0C05128B */ jal clear_icon_flags
/* 42962C 802A930C 24050002 */ addiu $a1, $zero, 2
.L802A9310:
/* 429630 802A9310 8E300008 */ lw $s0, 8($s1)
/* 429634 802A9314 240500FF */ addiu $a1, $zero, 0xff
/* 429638 802A9318 0C0513AC */ jal icon_set_opacity
/* 42963C 802A931C 0200202D */ daddu $a0, $s0, $zero
/* 429640 802A9320 82220061 */ lb $v0, 0x61($s1)
/* 429644 802A9324 10400003 */ beqz $v0, .L802A9334
/* 429648 802A9328 0200202D */ daddu $a0, $s0, $zero
/* 42964C 802A932C 0C05128B */ jal clear_icon_flags
/* 429650 802A9330 24050002 */ addiu $a1, $zero, 2
.L802A9334:
/* 429654 802A9334 24020001 */ addiu $v0, $zero, 1
/* 429658 802A9338 080AA60C */ j .L802A9830
/* 42965C 802A933C A622004C */ sh $v0, 0x4c($s1)
/* 429660 802A9340 0C093EB1 */ jal set_popup_duration
/* 429664 802A9344 24040063 */ addiu $a0, $zero, 0x63
/* 429668 802A9348 8622006C */ lh $v0, 0x6c($s1)
/* 42966C 802A934C 9623006C */ lhu $v1, 0x6c($s1)
/* 429670 802A9350 10400003 */ beqz $v0, .L802A9360
/* 429674 802A9354 2462FFFF */ addiu $v0, $v1, -1
/* 429678 802A9358 080AA60C */ j .L802A9830
/* 42967C 802A935C A622006C */ sh $v0, 0x6c($s1)
.L802A9360:
/* 429680 802A9360 96220056 */ lhu $v0, 0x56($s1)
/* 429684 802A9364 24420014 */ addiu $v0, $v0, 0x14
/* 429688 802A9368 A6220056 */ sh $v0, 0x56($s1)
/* 42968C 802A936C 00021400 */ sll $v0, $v0, 0x10
/* 429690 802A9370 00021403 */ sra $v0, $v0, 0x10
/* 429694 802A9374 28420033 */ slti $v0, $v0, 0x33
/* 429698 802A9378 14400002 */ bnez $v0, .L802A9384
/* 42969C 802A937C 24020032 */ addiu $v0, $zero, 0x32
/* 4296A0 802A9380 A6220056 */ sh $v0, 0x56($s1)
.L802A9384:
/* 4296A4 802A9384 8E240004 */ lw $a0, 4($s1)
/* 4296A8 802A9388 86250056 */ lh $a1, 0x56($s1)
/* 4296AC 802A938C 0C051261 */ jal set_icon_render_pos
/* 4296B0 802A9390 86260058 */ lh $a2, 0x58($s1)
/* 4296B4 802A9394 8E240008 */ lw $a0, 8($s1)
/* 4296B8 802A9398 86260058 */ lh $a2, 0x58($s1)
/* 4296BC 802A939C 86250056 */ lh $a1, 0x56($s1)
/* 4296C0 802A93A0 0C051261 */ jal set_icon_render_pos
/* 4296C4 802A93A4 24C6001C */ addiu $a2, $a2, 0x1c
/* 4296C8 802A93A8 080AA60C */ j .L802A9830
/* 4296CC 802A93AC 00000000 */ nop
/* 4296D0 802A93B0 0C093EB1 */ jal set_popup_duration
/* 4296D4 802A93B4 24040063 */ addiu $a0, $zero, 0x63
/* 4296D8 802A93B8 8622004E */ lh $v0, 0x4e($s1)
/* 4296DC 802A93BC 9623004E */ lhu $v1, 0x4e($s1)
/* 4296E0 802A93C0 10400003 */ beqz $v0, .L802A93D0
/* 4296E4 802A93C4 2462FFFF */ addiu $v0, $v1, -1
/* 4296E8 802A93C8 080AA60C */ j .L802A9830
/* 4296EC 802A93CC A622004E */ sh $v0, 0x4e($s1)
.L802A93D0:
/* 4296F0 802A93D0 8E240004 */ lw $a0, 4($s1)
/* 4296F4 802A93D4 3C058011 */ lui $a1, %hi(D_80108F30)
/* 4296F8 802A93D8 24A58F30 */ addiu $a1, $a1, %lo(D_80108F30)
/* 4296FC 802A93DC 0C0511FF */ jal set_menu_icon_script
/* 429700 802A93E0 00000000 */ nop
/* 429704 802A93E4 3C048000 */ lui $a0, 0x8000
/* 429708 802A93E8 34840041 */ ori $a0, $a0, 0x41
/* 42970C 802A93EC 0000282D */ daddu $a1, $zero, $zero
/* 429710 802A93F0 00A0302D */ daddu $a2, $a1, $zero
/* 429714 802A93F4 96220052 */ lhu $v0, 0x52($s1)
/* 429718 802A93F8 00A0382D */ daddu $a3, $a1, $zero
/* 42971C 802A93FC A6200044 */ sh $zero, 0x44($s1)
/* 429720 802A9400 A2400085 */ sb $zero, 0x85($s2)
/* 429724 802A9404 A220005C */ sb $zero, 0x5c($s1)
/* 429728 802A9408 0C0526AE */ jal _play_sound
/* 42972C 802A940C A6220054 */ sh $v0, 0x54($s1)
/* 429730 802A9410 2402000B */ addiu $v0, $zero, 0xb
/* 429734 802A9414 A622004C */ sh $v0, 0x4c($s1)
/* 429738 802A9418 0C093EB1 */ jal set_popup_duration
/* 42973C 802A941C 24040063 */ addiu $a0, $zero, 0x63
/* 429740 802A9420 86220068 */ lh $v0, 0x68($s1)
/* 429744 802A9424 1440005F */ bnez $v0, .L802A95A4
/* 429748 802A9428 00000000 */ nop
/* 42974C 802A942C 82220080 */ lb $v0, 0x80($s1)
/* 429750 802A9430 00021040 */ sll $v0, $v0, 1
/* 429754 802A9434 02221021 */ addu $v0, $s1, $v0
/* 429758 802A9438 84430074 */ lh $v1, 0x74($v0)
/* 42975C 802A943C 86220044 */ lh $v0, 0x44($s1)
/* 429760 802A9440 14600002 */ bnez $v1, .L802A944C
/* 429764 802A9444 0043001A */ div $zero, $v0, $v1
/* 429768 802A9448 0007000D */ break 7
.L802A944C:
/* 42976C 802A944C 2401FFFF */ addiu $at, $zero, -1
/* 429770 802A9450 14610004 */ bne $v1, $at, .L802A9464
/* 429774 802A9454 3C018000 */ lui $at, 0x8000
/* 429778 802A9458 14410002 */ bne $v0, $at, .L802A9464
/* 42977C 802A945C 00000000 */ nop
/* 429780 802A9460 0006000D */ break 6
.L802A9464:
/* 429784 802A9464 00001012 */ mflo $v0
/* 429788 802A9468 3C036666 */ lui $v1, 0x6666
/* 42978C 802A946C 34636667 */ ori $v1, $v1, 0x6667
/* 429790 802A9470 00430018 */ mult $v0, $v1
/* 429794 802A9474 000217C3 */ sra $v0, $v0, 0x1f
/* 429798 802A9478 00001810 */ mfhi $v1
/* 42979C 802A947C 000318C3 */ sra $v1, $v1, 3
/* 4297A0 802A9480 00621823 */ subu $v1, $v1, $v0
/* 4297A4 802A9484 00031880 */ sll $v1, $v1, 2
/* 4297A8 802A9488 96220044 */ lhu $v0, 0x44($s1)
/* 4297AC 802A948C 3C01802B */ lui $at, %hi(D_802A9972)
/* 4297B0 802A9490 00230821 */ addu $at, $at, $v1
/* 4297B4 802A9494 94239972 */ lhu $v1, %lo(D_802A9972)($at)
/* 4297B8 802A9498 00431023 */ subu $v0, $v0, $v1
/* 4297BC 802A949C A6220044 */ sh $v0, 0x44($s1)
/* 4297C0 802A94A0 00021400 */ sll $v0, $v0, 0x10
/* 4297C4 802A94A4 04420001 */ bltzl $v0, .L802A94AC
/* 4297C8 802A94A8 A6200044 */ sh $zero, 0x44($s1)
.L802A94AC:
/* 4297CC 802A94AC 86220068 */ lh $v0, 0x68($s1)
/* 4297D0 802A94B0 1440003C */ bnez $v0, .L802A95A4
/* 4297D4 802A94B4 3C040004 */ lui $a0, 4
/* 4297D8 802A94B8 8E420210 */ lw $v0, 0x210($s2)
/* 4297DC 802A94BC 00441024 */ and $v0, $v0, $a0
/* 4297E0 802A94C0 10400005 */ beqz $v0, .L802A94D8
/* 4297E4 802A94C4 24030001 */ addiu $v1, $zero, 1
/* 4297E8 802A94C8 8E420210 */ lw $v0, 0x210($s2)
/* 4297EC 802A94CC 00441024 */ and $v0, $v0, $a0
/* 4297F0 802A94D0 1440001A */ bnez $v0, .L802A953C
/* 4297F4 802A94D4 A223005C */ sb $v1, 0x5c($s1)
.L802A94D8:
/* 4297F8 802A94D8 8222005C */ lb $v0, 0x5c($s1)
/* 4297FC 802A94DC 10400017 */ beqz $v0, .L802A953C
/* 429800 802A94E0 3C0451EB */ lui $a0, 0x51eb
/* 429804 802A94E4 86220050 */ lh $v0, 0x50($s1)
/* 429808 802A94E8 8E430434 */ lw $v1, 0x434($s2)
/* 42980C 802A94EC 00021080 */ sll $v0, $v0, 2
/* 429810 802A94F0 00431021 */ addu $v0, $v0, $v1
/* 429814 802A94F4 8C430000 */ lw $v1, ($v0)
/* 429818 802A94F8 3484851F */ ori $a0, $a0, 0x851f
/* 42981C 802A94FC 00031040 */ sll $v0, $v1, 1
/* 429820 802A9500 00431021 */ addu $v0, $v0, $v1
/* 429824 802A9504 000210C0 */ sll $v0, $v0, 3
/* 429828 802A9508 00431021 */ addu $v0, $v0, $v1
/* 42982C 802A950C 00021900 */ sll $v1, $v0, 4
/* 429830 802A9510 00431021 */ addu $v0, $v0, $v1
/* 429834 802A9514 00021040 */ sll $v0, $v0, 1
/* 429838 802A9518 00440018 */ mult $v0, $a0
/* 42983C 802A951C A220005C */ sb $zero, 0x5c($s1)
/* 429840 802A9520 000217C3 */ sra $v0, $v0, 0x1f
/* 429844 802A9524 96230044 */ lhu $v1, 0x44($s1)
/* 429848 802A9528 00004810 */ mfhi $t1
/* 42984C 802A952C 00092143 */ sra $a0, $t1, 5
/* 429850 802A9530 00822023 */ subu $a0, $a0, $v0
/* 429854 802A9534 00641821 */ addu $v1, $v1, $a0
/* 429858 802A9538 A6230044 */ sh $v1, 0x44($s1)
.L802A953C:
/* 42985C 802A953C 8E420214 */ lw $v0, 0x214($s2)
/* 429860 802A9540 3C030008 */ lui $v1, 8
/* 429864 802A9544 00431024 */ and $v0, $v0, $v1
/* 429868 802A9548 10400016 */ beqz $v0, .L802A95A4
/* 42986C 802A954C 3C0451EB */ lui $a0, 0x51eb
/* 429870 802A9550 86220050 */ lh $v0, 0x50($s1)
/* 429874 802A9554 8E430434 */ lw $v1, 0x434($s2)
/* 429878 802A9558 00021080 */ sll $v0, $v0, 2
/* 42987C 802A955C 00431021 */ addu $v0, $v0, $v1
/* 429880 802A9560 8C430000 */ lw $v1, ($v0)
/* 429884 802A9564 3484851F */ ori $a0, $a0, 0x851f
/* 429888 802A9568 00031040 */ sll $v0, $v1, 1
/* 42988C 802A956C 00431021 */ addu $v0, $v0, $v1
/* 429890 802A9570 000210C0 */ sll $v0, $v0, 3
/* 429894 802A9574 00431021 */ addu $v0, $v0, $v1
/* 429898 802A9578 00021900 */ sll $v1, $v0, 4
/* 42989C 802A957C 00431021 */ addu $v0, $v0, $v1
/* 4298A0 802A9580 00021040 */ sll $v0, $v0, 1
/* 4298A4 802A9584 00440018 */ mult $v0, $a0
/* 4298A8 802A9588 000217C3 */ sra $v0, $v0, 0x1f
/* 4298AC 802A958C 96230044 */ lhu $v1, 0x44($s1)
/* 4298B0 802A9590 00004810 */ mfhi $t1
/* 4298B4 802A9594 00092143 */ sra $a0, $t1, 5
/* 4298B8 802A9598 00822023 */ subu $a0, $a0, $v0
/* 4298BC 802A959C 00641823 */ subu $v1, $v1, $a0
/* 4298C0 802A95A0 A6230044 */ sh $v1, 0x44($s1)
.L802A95A4:
/* 4298C4 802A95A4 86220044 */ lh $v0, 0x44($s1)
/* 4298C8 802A95A8 04420001 */ bltzl $v0, .L802A95B0
/* 4298CC 802A95AC A6200044 */ sh $zero, 0x44($s1)
.L802A95B0:
/* 4298D0 802A95B0 86220044 */ lh $v0, 0x44($s1)
/* 4298D4 802A95B4 28422711 */ slti $v0, $v0, 0x2711
/* 4298D8 802A95B8 14400010 */ bnez $v0, .L802A95FC
/* 4298DC 802A95BC 3C0451EB */ lui $a0, 0x51eb
/* 4298E0 802A95C0 8E30000C */ lw $s0, 0xc($s1)
/* 4298E4 802A95C4 86250056 */ lh $a1, 0x56($s1)
/* 4298E8 802A95C8 86260058 */ lh $a2, 0x58($s1)
/* 4298EC 802A95CC 24022710 */ addiu $v0, $zero, 0x2710
/* 4298F0 802A95D0 A6220044 */ sh $v0, 0x44($s1)
/* 4298F4 802A95D4 24020001 */ addiu $v0, $zero, 1
/* 4298F8 802A95D8 A6220068 */ sh $v0, 0x68($s1)
/* 4298FC 802A95DC 0200202D */ daddu $a0, $s0, $zero
/* 429900 802A95E0 24A50032 */ addiu $a1, $a1, 0x32
/* 429904 802A95E4 0C051261 */ jal set_icon_render_pos
/* 429908 802A95E8 24C6001C */ addiu $a2, $a2, 0x1c
/* 42990C 802A95EC 0200202D */ daddu $a0, $s0, $zero
/* 429910 802A95F0 0C05128B */ jal clear_icon_flags
/* 429914 802A95F4 24050002 */ addiu $a1, $zero, 2
/* 429918 802A95F8 3C0451EB */ lui $a0, 0x51eb
.L802A95FC:
/* 42991C 802A95FC 3484851F */ ori $a0, $a0, 0x851f
/* 429920 802A9600 96230044 */ lhu $v1, 0x44($s1)
/* 429924 802A9604 0000282D */ daddu $a1, $zero, $zero
/* 429928 802A9608 00031C00 */ sll $v1, $v1, 0x10
/* 42992C 802A960C 00031403 */ sra $v0, $v1, 0x10
/* 429930 802A9610 00440018 */ mult $v0, $a0
/* 429934 802A9614 00A0302D */ daddu $a2, $a1, $zero
/* 429938 802A9618 3C048000 */ lui $a0, 0x8000
/* 42993C 802A961C 34840041 */ ori $a0, $a0, 0x41
/* 429940 802A9620 00031FC3 */ sra $v1, $v1, 0x1f
/* 429944 802A9624 00004810 */ mfhi $t1
/* 429948 802A9628 00094143 */ sra $t0, $t1, 5
/* 42994C 802A962C 01034023 */ subu $t0, $t0, $v1
/* 429950 802A9630 00081600 */ sll $v0, $t0, 0x18
/* 429954 802A9634 00021603 */ sra $v0, $v0, 0x18
/* 429958 802A9638 00023840 */ sll $a3, $v0, 1
/* 42995C 802A963C 00E23821 */ addu $a3, $a3, $v0
/* 429960 802A9640 00073880 */ sll $a3, $a3, 2
/* 429964 802A9644 0C0526F9 */ jal func_80149BE4
/* 429968 802A9648 A2480084 */ sb $t0, 0x84($s2)
/* 42996C 802A964C 8E620008 */ lw $v0, 8($s3)
/* 429970 802A9650 90430006 */ lbu $v1, 6($v0)
/* 429974 802A9654 24020001 */ addiu $v0, $zero, 1
/* 429978 802A9658 10620019 */ beq $v1, $v0, .L802A96C0
/* 42997C 802A965C 28620002 */ slti $v0, $v1, 2
/* 429980 802A9660 10400005 */ beqz $v0, .L802A9678
/* 429984 802A9664 24020002 */ addiu $v0, $zero, 2
/* 429988 802A9668 10600007 */ beqz $v1, .L802A9688
/* 42998C 802A966C 00000000 */ nop
/* 429990 802A9670 080AA5D7 */ j .L802A975C
/* 429994 802A9674 00000000 */ nop
.L802A9678:
/* 429998 802A9678 1062001F */ beq $v1, $v0, .L802A96F8
/* 42999C 802A967C 00000000 */ nop
/* 4299A0 802A9680 080AA5D7 */ j .L802A975C
/* 4299A4 802A9684 00000000 */ nop
.L802A9688:
/* 4299A8 802A9688 82420085 */ lb $v0, 0x85($s2)
/* 4299AC 802A968C 82430084 */ lb $v1, 0x84($s2)
/* 4299B0 802A9690 00021080 */ sll $v0, $v0, 2
/* 4299B4 802A9694 3C01802B */ lui $at, %hi(D_802A9984)
/* 4299B8 802A9698 00220821 */ addu $at, $at, $v0
/* 4299BC 802A969C 8C229984 */ lw $v0, %lo(D_802A9984)($at)
/* 4299C0 802A96A0 3C05802B */ lui $a1, %hi(D_802A9984)
/* 4299C4 802A96A4 24A59984 */ addiu $a1, $a1, %lo(D_802A9984)
/* 4299C8 802A96A8 0062182A */ slt $v1, $v1, $v0
/* 4299CC 802A96AC 92420085 */ lbu $v0, 0x85($s2)
/* 4299D0 802A96B0 1460001E */ bnez $v1, .L802A972C
/* 4299D4 802A96B4 24420001 */ addiu $v0, $v0, 1
/* 4299D8 802A96B8 080AA5CB */ j .L802A972C
/* 4299DC 802A96BC A2420085 */ sb $v0, 0x85($s2)
.L802A96C0:
/* 4299E0 802A96C0 82420085 */ lb $v0, 0x85($s2)
/* 4299E4 802A96C4 82430084 */ lb $v1, 0x84($s2)
/* 4299E8 802A96C8 00021080 */ sll $v0, $v0, 2
/* 4299EC 802A96CC 3C01802B */ lui $at, %hi(D_802A9994)
/* 4299F0 802A96D0 00220821 */ addu $at, $at, $v0
/* 4299F4 802A96D4 8C229994 */ lw $v0, %lo(D_802A9994)($at)
/* 4299F8 802A96D8 3C05802B */ lui $a1, %hi(D_802A9994)
/* 4299FC 802A96DC 24A59994 */ addiu $a1, $a1, %lo(D_802A9994)
/* 429A00 802A96E0 0062182A */ slt $v1, $v1, $v0
/* 429A04 802A96E4 92420085 */ lbu $v0, 0x85($s2)
/* 429A08 802A96E8 14600010 */ bnez $v1, .L802A972C
/* 429A0C 802A96EC 24420001 */ addiu $v0, $v0, 1
/* 429A10 802A96F0 080AA5CB */ j .L802A972C
/* 429A14 802A96F4 A2420085 */ sb $v0, 0x85($s2)
.L802A96F8:
/* 429A18 802A96F8 82420085 */ lb $v0, 0x85($s2)
/* 429A1C 802A96FC 82430084 */ lb $v1, 0x84($s2)
/* 429A20 802A9700 00021080 */ sll $v0, $v0, 2
/* 429A24 802A9704 3C01802B */ lui $at, %hi(D_802A99A8)
/* 429A28 802A9708 00220821 */ addu $at, $at, $v0
/* 429A2C 802A970C 8C2299A8 */ lw $v0, %lo(D_802A99A8)($at)
/* 429A30 802A9710 3C05802B */ lui $a1, %hi(D_802A99A8)
/* 429A34 802A9714 24A599A8 */ addiu $a1, $a1, %lo(D_802A99A8)
/* 429A38 802A9718 0062182A */ slt $v1, $v1, $v0
/* 429A3C 802A971C 92420085 */ lbu $v0, 0x85($s2)
/* 429A40 802A9720 14600002 */ bnez $v1, .L802A972C
/* 429A44 802A9724 24420001 */ addiu $v0, $v0, 1
/* 429A48 802A9728 A2420085 */ sb $v0, 0x85($s2)
.L802A972C:
/* 429A4C 802A972C 82420085 */ lb $v0, 0x85($s2)
/* 429A50 802A9730 92440085 */ lbu $a0, 0x85($s2)
/* 429A54 802A9734 18400009 */ blez $v0, .L802A975C
/* 429A58 802A9738 2442FFFF */ addiu $v0, $v0, -1
/* 429A5C 802A973C 00021080 */ sll $v0, $v0, 2
/* 429A60 802A9740 00451021 */ addu $v0, $v0, $a1
/* 429A64 802A9744 82430084 */ lb $v1, 0x84($s2)
/* 429A68 802A9748 8C420000 */ lw $v0, ($v0)
/* 429A6C 802A974C 0062182A */ slt $v1, $v1, $v0
/* 429A70 802A9750 10600002 */ beqz $v1, .L802A975C
/* 429A74 802A9754 2482FFFF */ addiu $v0, $a0, -1
/* 429A78 802A9758 A2420085 */ sb $v0, 0x85($s2)
.L802A975C:
/* 429A7C 802A975C 86220054 */ lh $v0, 0x54($s1)
/* 429A80 802A9760 96230054 */ lhu $v1, 0x54($s1)
/* 429A84 802A9764 1440002E */ bnez $v0, .L802A9820
/* 429A88 802A9768 2462FFFF */ addiu $v0, $v1, -1
/* 429A8C 802A976C 96220044 */ lhu $v0, 0x44($s1)
/* 429A90 802A9770 00021C00 */ sll $v1, $v0, 0x10
/* 429A94 802A9774 00032403 */ sra $a0, $v1, 0x10
/* 429A98 802A9778 14800003 */ bnez $a0, .L802A9788
/* 429A9C 802A977C 3C0251EB */ lui $v0, 0x51eb
/* 429AA0 802A9780 080AA5E8 */ j .L802A97A0
/* 429AA4 802A9784 2402FFFF */ addiu $v0, $zero, -1
.L802A9788:
/* 429AA8 802A9788 3442851F */ ori $v0, $v0, 0x851f
/* 429AAC 802A978C 00820018 */ mult $a0, $v0
/* 429AB0 802A9790 00031FC3 */ sra $v1, $v1, 0x1f
/* 429AB4 802A9794 00004810 */ mfhi $t1
/* 429AB8 802A9798 00091143 */ sra $v0, $t1, 5
/* 429ABC 802A979C 00431023 */ subu $v0, $v0, $v1
.L802A97A0:
/* 429AC0 802A97A0 A2420081 */ sb $v0, 0x81($s2)
/* 429AC4 802A97A4 82220080 */ lb $v0, 0x80($s1)
/* 429AC8 802A97A8 2442FFFF */ addiu $v0, $v0, -1
/* 429ACC 802A97AC 00021040 */ sll $v0, $v0, 1
/* 429AD0 802A97B0 02221021 */ addu $v0, $s1, $v0
/* 429AD4 802A97B4 84430074 */ lh $v1, 0x74($v0)
/* 429AD8 802A97B8 82420081 */ lb $v0, 0x81($s2)
/* 429ADC 802A97BC 0062102A */ slt $v0, $v1, $v0
/* 429AE0 802A97C0 14400002 */ bnez $v0, .L802A97CC
/* 429AE4 802A97C4 24020001 */ addiu $v0, $zero, 1
/* 429AE8 802A97C8 2402FFFE */ addiu $v0, $zero, -2
.L802A97CC:
/* 429AEC 802A97CC A2420086 */ sb $v0, 0x86($s2)
/* 429AF0 802A97D0 82430081 */ lb $v1, 0x81($s2)
/* 429AF4 802A97D4 24020064 */ addiu $v0, $zero, 0x64
/* 429AF8 802A97D8 14620003 */ bne $v1, $v0, .L802A97E8
/* 429AFC 802A97DC 00000000 */ nop
/* 429B00 802A97E0 0C09A458 */ jal func_80269160
/* 429B04 802A97E4 00000000 */ nop
.L802A97E8:
/* 429B08 802A97E8 0C093EB1 */ jal set_popup_duration
/* 429B0C 802A97EC 0000202D */ daddu $a0, $zero, $zero
/* 429B10 802A97F0 3C048000 */ lui $a0, 0x8000
/* 429B14 802A97F4 0C05271B */ jal stop_sound
/* 429B18 802A97F8 34840041 */ ori $a0, $a0, 0x41
/* 429B1C 802A97FC 24020005 */ addiu $v0, $zero, 5
/* 429B20 802A9800 A6220054 */ sh $v0, 0x54($s1)
/* 429B24 802A9804 2402000C */ addiu $v0, $zero, 0xc
/* 429B28 802A9808 080AA60C */ j .L802A9830
/* 429B2C 802A980C A622004C */ sh $v0, 0x4c($s1)
/* 429B30 802A9810 86220054 */ lh $v0, 0x54($s1)
/* 429B34 802A9814 96230054 */ lhu $v1, 0x54($s1)
/* 429B38 802A9818 10400003 */ beqz $v0, .L802A9828
/* 429B3C 802A981C 2462FFFF */ addiu $v0, $v1, -1
.L802A9820:
/* 429B40 802A9820 080AA60C */ j .L802A9830
/* 429B44 802A9824 A6220054 */ sh $v0, 0x54($s1)
.L802A9828:
/* 429B48 802A9828 0C09A327 */ jal func_80268C9C
/* 429B4C 802A982C 00000000 */ nop
.L802A9830:
/* 429B50 802A9830 8FBF0020 */ lw $ra, 0x20($sp)
/* 429B54 802A9834 8FB3001C */ lw $s3, 0x1c($sp)
/* 429B58 802A9838 8FB20018 */ lw $s2, 0x18($sp)
/* 429B5C 802A983C 8FB10014 */ lw $s1, 0x14($sp)
/* 429B60 802A9840 8FB00010 */ lw $s0, 0x10($sp)
/* 429B64 802A9844 03E00008 */ jr $ra
/* 429B68 802A9848 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,62 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A984C_429B6C
/* 429B6C 802A984C 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 429B70 802A9850 AFB1001C */ sw $s1, 0x1c($sp)
/* 429B74 802A9854 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 429B78 802A9858 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 429B7C 802A985C AFBF0020 */ sw $ra, 0x20($sp)
/* 429B80 802A9860 AFB00018 */ sw $s0, 0x18($sp)
/* 429B84 802A9864 0C0511EA */ jal draw_icon_0
/* 429B88 802A9868 8E240004 */ lw $a0, 4($s1)
/* 429B8C 802A986C 8E300008 */ lw $s0, 8($s1)
/* 429B90 802A9870 0C0511EA */ jal draw_icon_0
/* 429B94 802A9874 0200202D */ daddu $a0, $s0, $zero
/* 429B98 802A9878 0200202D */ daddu $a0, $s0, $zero
/* 429B9C 802A987C 27A50010 */ addiu $a1, $sp, 0x10
/* 429BA0 802A9880 0C05126B */ jal get_icon_render_pos
/* 429BA4 802A9884 27A60014 */ addiu $a2, $sp, 0x14
/* 429BA8 802A9888 86220068 */ lh $v0, 0x68($s1)
/* 429BAC 802A988C 14400011 */ bnez $v0, .L802A98D4
/* 429BB0 802A9890 3C0451EB */ lui $a0, 0x51eb
/* 429BB4 802A9894 96230044 */ lhu $v1, 0x44($s1)
/* 429BB8 802A9898 3484851F */ ori $a0, $a0, 0x851f
/* 429BBC 802A989C 00031C00 */ sll $v1, $v1, 0x10
/* 429BC0 802A98A0 00031403 */ sra $v0, $v1, 0x10
/* 429BC4 802A98A4 00440018 */ mult $v0, $a0
/* 429BC8 802A98A8 8FA50014 */ lw $a1, 0x14($sp)
/* 429BCC 802A98AC 00031FC3 */ sra $v1, $v1, 0x1f
/* 429BD0 802A98B0 8FA40010 */ lw $a0, 0x10($sp)
/* 429BD4 802A98B4 00003810 */ mfhi $a3
/* 429BD8 802A98B8 00073143 */ sra $a2, $a3, 5
/* 429BDC 802A98BC 00C33023 */ subu $a2, $a2, $v1
/* 429BE0 802A98C0 00063400 */ sll $a2, $a2, 0x10
/* 429BE4 802A98C4 0C09A1DC */ jal func_80268770
/* 429BE8 802A98C8 00063403 */ sra $a2, $a2, 0x10
/* 429BEC 802A98CC 080AA643 */ j .L802A990C
/* 429BF0 802A98D0 00000000 */ nop
.L802A98D4:
/* 429BF4 802A98D4 96230044 */ lhu $v1, 0x44($s1)
/* 429BF8 802A98D8 3484851F */ ori $a0, $a0, 0x851f
/* 429BFC 802A98DC 00031C00 */ sll $v1, $v1, 0x10
/* 429C00 802A98E0 00031403 */ sra $v0, $v1, 0x10
/* 429C04 802A98E4 00440018 */ mult $v0, $a0
/* 429C08 802A98E8 8FA50014 */ lw $a1, 0x14($sp)
/* 429C0C 802A98EC 00031FC3 */ sra $v1, $v1, 0x1f
/* 429C10 802A98F0 8FA40010 */ lw $a0, 0x10($sp)
/* 429C14 802A98F4 00003810 */ mfhi $a3
/* 429C18 802A98F8 00073143 */ sra $a2, $a3, 5
/* 429C1C 802A98FC 00C33023 */ subu $a2, $a2, $v1
/* 429C20 802A9900 00063400 */ sll $a2, $a2, 0x10
/* 429C24 802A9904 0C09A203 */ jal func_8026880C
/* 429C28 802A9908 00063403 */ sra $a2, $a2, 0x10
.L802A990C:
/* 429C2C 802A990C 8E24000C */ lw $a0, 0xc($s1)
/* 429C30 802A9910 0C0511EA */ jal draw_icon_0
/* 429C34 802A9914 00000000 */ nop
/* 429C38 802A9918 8FBF0020 */ lw $ra, 0x20($sp)
/* 429C3C 802A991C 8FB1001C */ lw $s1, 0x1c($sp)
/* 429C40 802A9920 8FB00018 */ lw $s0, 0x18($sp)
/* 429C44 802A9924 03E00008 */ jr $ra
/* 429C48 802A9928 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,21 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A992C_429C4C
/* 429C4C 802A992C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 429C50 802A9930 AFB00010 */ sw $s0, 0x10($sp)
/* 429C54 802A9934 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 429C58 802A9938 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 429C5C 802A993C AFBF0014 */ sw $ra, 0x14($sp)
/* 429C60 802A9940 0C05123D */ jal free_icon
/* 429C64 802A9944 8E040004 */ lw $a0, 4($s0)
/* 429C68 802A9948 0C05123D */ jal free_icon
/* 429C6C 802A994C 8E040008 */ lw $a0, 8($s0)
/* 429C70 802A9950 0C05123D */ jal free_icon
/* 429C74 802A9954 8E04000C */ lw $a0, 0xc($s0)
/* 429C78 802A9958 8FBF0014 */ lw $ra, 0x14($sp)
/* 429C7C 802A995C 8FB00010 */ lw $s0, 0x10($sp)
/* 429C80 802A9960 03E00008 */ jr $ra
/* 429C84 802A9964 27BD0018 */ addiu $sp, $sp, 0x18
/* 429C88 802A9968 00000000 */ nop
/* 429C8C 802A996C 00000000 */ nop

View File

@ -0,0 +1,77 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_429D20
/* 429D20 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 429D24 802A9004 AFB00010 */ sw $s0, 0x10($sp)
/* 429D28 802A9008 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 429D2C 802A900C 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 429D30 802A9010 24020005 */ addiu $v0, $zero, 5
/* 429D34 802A9014 AFBF0018 */ sw $ra, 0x18($sp)
/* 429D38 802A9018 AFB10014 */ sw $s1, 0x14($sp)
/* 429D3C 802A901C A2020082 */ sb $v0, 0x82($s0)
/* 429D40 802A9020 3C028029 */ lui $v0, %hi(D_80294380)
/* 429D44 802A9024 24424380 */ addiu $v0, $v0, %lo(D_80294380)
/* 429D48 802A9028 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 429D4C 802A902C 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 429D50 802A9030 AE020434 */ sw $v0, 0x434($s0)
/* 429D54 802A9034 82020083 */ lb $v0, 0x83($s0)
/* 429D58 802A9038 10400031 */ beqz $v0, .L802A9100
/* 429D5C 802A903C 0200182D */ daddu $v1, $s0, $zero
/* 429D60 802A9040 0C09A216 */ jal func_80268858
/* 429D64 802A9044 00000000 */ nop
/* 429D68 802A9048 3C048011 */ lui $a0, %hi(D_80108B28)
/* 429D6C 802A904C 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 429D70 802A9050 2402000F */ addiu $v0, $zero, 0xf
/* 429D74 802A9054 A622004A */ sh $v0, 0x4a($s1)
/* 429D78 802A9058 2402FFD0 */ addiu $v0, $zero, -0x30
/* 429D7C 802A905C A620004C */ sh $zero, 0x4c($s1)
/* 429D80 802A9060 A2200060 */ sb $zero, 0x60($s1)
/* 429D84 802A9064 A6200044 */ sh $zero, 0x44($s1)
/* 429D88 802A9068 A6200048 */ sh $zero, 0x48($s1)
/* 429D8C 802A906C A2000084 */ sb $zero, 0x84($s0)
/* 429D90 802A9070 A6220056 */ sh $v0, 0x56($s1)
/* 429D94 802A9074 24020050 */ addiu $v0, $zero, 0x50
/* 429D98 802A9078 A220005C */ sb $zero, 0x5c($s1)
/* 429D9C 802A907C 0C050529 */ jal create_icon
/* 429DA0 802A9080 A6220058 */ sh $v0, 0x58($s1)
/* 429DA4 802A9084 0040802D */ daddu $s0, $v0, $zero
/* 429DA8 802A9088 0200202D */ daddu $a0, $s0, $zero
/* 429DAC 802A908C 24050082 */ addiu $a1, $zero, 0x82
/* 429DB0 802A9090 0C051280 */ jal set_icon_flags
/* 429DB4 802A9094 AE300004 */ sw $s0, 4($s1)
/* 429DB8 802A9098 86250056 */ lh $a1, 0x56($s1)
/* 429DBC 802A909C 86260058 */ lh $a2, 0x58($s1)
/* 429DC0 802A90A0 0C051261 */ jal set_icon_render_pos
/* 429DC4 802A90A4 0200202D */ daddu $a0, $s0, $zero
/* 429DC8 802A90A8 0200202D */ daddu $a0, $s0, $zero
/* 429DCC 802A90AC 0C051277 */ jal func_801449DC
/* 429DD0 802A90B0 0000282D */ daddu $a1, $zero, $zero
/* 429DD4 802A90B4 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 429DD8 802A90B8 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 429DDC 802A90BC 0C050529 */ jal create_icon
/* 429DE0 802A90C0 00000000 */ nop
/* 429DE4 802A90C4 0040802D */ daddu $s0, $v0, $zero
/* 429DE8 802A90C8 86250056 */ lh $a1, 0x56($s1)
/* 429DEC 802A90CC 86260058 */ lh $a2, 0x58($s1)
/* 429DF0 802A90D0 0200202D */ daddu $a0, $s0, $zero
/* 429DF4 802A90D4 AE300008 */ sw $s0, 8($s1)
/* 429DF8 802A90D8 0C051261 */ jal set_icon_render_pos
/* 429DFC 802A90DC 24C6001C */ addiu $a2, $a2, 0x1c
/* 429E00 802A90E0 0200202D */ daddu $a0, $s0, $zero
/* 429E04 802A90E4 0C051277 */ jal func_801449DC
/* 429E08 802A90E8 0000282D */ daddu $a1, $zero, $zero
/* 429E0C 802A90EC 0200202D */ daddu $a0, $s0, $zero
/* 429E10 802A90F0 0C051280 */ jal set_icon_flags
/* 429E14 802A90F4 24050082 */ addiu $a1, $zero, 0x82
/* 429E18 802A90F8 080AA442 */ j .L802A9108
/* 429E1C 802A90FC 24020002 */ addiu $v0, $zero, 2
.L802A9100:
/* 429E20 802A9100 A0600081 */ sb $zero, 0x81($v1)
/* 429E24 802A9104 24020002 */ addiu $v0, $zero, 2
.L802A9108:
/* 429E28 802A9108 8FBF0018 */ lw $ra, 0x18($sp)
/* 429E2C 802A910C 8FB10014 */ lw $s1, 0x14($sp)
/* 429E30 802A9110 8FB00010 */ lw $s0, 0x10($sp)
/* 429E34 802A9114 03E00008 */ jr $ra
/* 429E38 802A9118 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,65 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A911C_429E3C
/* 429E3C 802A911C 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 429E40 802A9120 AFB20018 */ sw $s2, 0x18($sp)
/* 429E44 802A9124 0080902D */ daddu $s2, $a0, $zero
/* 429E48 802A9128 AFB10014 */ sw $s1, 0x14($sp)
/* 429E4C 802A912C 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 429E50 802A9130 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 429E54 802A9134 AFB3001C */ sw $s3, 0x1c($sp)
/* 429E58 802A9138 3C13800E */ lui $s3, %hi(gBattleStatus)
/* 429E5C 802A913C 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus)
/* 429E60 802A9140 AFBF0020 */ sw $ra, 0x20($sp)
/* 429E64 802A9144 AFB00010 */ sw $s0, 0x10($sp)
/* 429E68 802A9148 82620083 */ lb $v0, 0x83($s3)
/* 429E6C 802A914C 8E50000C */ lw $s0, 0xc($s2)
/* 429E70 802A9150 10400024 */ beqz $v0, .L802A91E4
/* 429E74 802A9154 0260182D */ daddu $v1, $s3, $zero
/* 429E78 802A9158 0C09A216 */ jal func_80268858
/* 429E7C 802A915C 00000000 */ nop
/* 429E80 802A9160 8E050000 */ lw $a1, ($s0)
/* 429E84 802A9164 26100004 */ addiu $s0, $s0, 4
/* 429E88 802A9168 0C0B1EAF */ jal get_variable
/* 429E8C 802A916C 0240202D */ daddu $a0, $s2, $zero
/* 429E90 802A9170 A622004E */ sh $v0, 0x4e($s1)
/* 429E94 802A9174 8E050000 */ lw $a1, ($s0)
/* 429E98 802A9178 26100004 */ addiu $s0, $s0, 4
/* 429E9C 802A917C 0C0B1EAF */ jal get_variable
/* 429EA0 802A9180 0240202D */ daddu $a0, $s2, $zero
/* 429EA4 802A9184 A6220052 */ sh $v0, 0x52($s1)
/* 429EA8 802A9188 8E050000 */ lw $a1, ($s0)
/* 429EAC 802A918C 0C0B1EAF */ jal get_variable
/* 429EB0 802A9190 0240202D */ daddu $a0, $s2, $zero
/* 429EB4 802A9194 00022400 */ sll $a0, $v0, 0x10
/* 429EB8 802A9198 00042403 */ sra $a0, $a0, 0x10
/* 429EBC 802A919C 0C09A089 */ jal func_80268224
/* 429EC0 802A91A0 A6220050 */ sh $v0, 0x50($s1)
/* 429EC4 802A91A4 3C04FFFF */ lui $a0, 0xffff
/* 429EC8 802A91A8 34847FFF */ ori $a0, $a0, 0x7fff
/* 429ECC 802A91AC A6220050 */ sh $v0, 0x50($s1)
/* 429ED0 802A91B0 A2200060 */ sb $zero, 0x60($s1)
/* 429ED4 802A91B4 A6200044 */ sh $zero, 0x44($s1)
/* 429ED8 802A91B8 A6200048 */ sh $zero, 0x48($s1)
/* 429EDC 802A91BC 8E620000 */ lw $v0, ($s3)
/* 429EE0 802A91C0 2403000A */ addiu $v1, $zero, 0xa
/* 429EE4 802A91C4 A2600081 */ sb $zero, 0x81($s3)
/* 429EE8 802A91C8 A2600086 */ sb $zero, 0x86($s3)
/* 429EEC 802A91CC A623004C */ sh $v1, 0x4c($s1)
/* 429EF0 802A91D0 00441024 */ and $v0, $v0, $a0
/* 429EF4 802A91D4 0C09A446 */ jal func_80269118
/* 429EF8 802A91D8 AE620000 */ sw $v0, ($s3)
/* 429EFC 802A91DC 080AA47B */ j .L802A91EC
/* 429F00 802A91E0 24020002 */ addiu $v0, $zero, 2
.L802A91E4:
/* 429F04 802A91E4 A0600081 */ sb $zero, 0x81($v1)
/* 429F08 802A91E8 24020002 */ addiu $v0, $zero, 2
.L802A91EC:
/* 429F0C 802A91EC 8FBF0020 */ lw $ra, 0x20($sp)
/* 429F10 802A91F0 8FB3001C */ lw $s3, 0x1c($sp)
/* 429F14 802A91F4 8FB20018 */ lw $s2, 0x18($sp)
/* 429F18 802A91F8 8FB10014 */ lw $s1, 0x14($sp)
/* 429F1C 802A91FC 8FB00010 */ lw $s0, 0x10($sp)
/* 429F20 802A9200 03E00008 */ jr $ra
/* 429F24 802A9204 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,290 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9208_429F28
/* 429F28 802A9208 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 429F2C 802A920C AFB10014 */ sw $s1, 0x14($sp)
/* 429F30 802A9210 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 429F34 802A9214 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 429F38 802A9218 AFBF0020 */ sw $ra, 0x20($sp)
/* 429F3C 802A921C AFB3001C */ sw $s3, 0x1c($sp)
/* 429F40 802A9220 AFB20018 */ sw $s2, 0x18($sp)
/* 429F44 802A9224 AFB00010 */ sw $s0, 0x10($sp)
/* 429F48 802A9228 8623004C */ lh $v1, 0x4c($s1)
/* 429F4C 802A922C 3C13800E */ lui $s3, %hi(gBattleStatus)
/* 429F50 802A9230 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus)
/* 429F54 802A9234 2C62000D */ sltiu $v0, $v1, 0xd
/* 429F58 802A9238 104000F7 */ beqz $v0, .L802A9618
/* 429F5C 802A923C 00031080 */ sll $v0, $v1, 2
/* 429F60 802A9240 3C01802B */ lui $at, %hi(D_802A9790)
/* 429F64 802A9244 00220821 */ addu $at, $at, $v0
/* 429F68 802A9248 8C229790 */ lw $v0, %lo(D_802A9790)($at)
/* 429F6C 802A924C 00400008 */ jr $v0
/* 429F70 802A9250 00000000 */ nop
/* 429F74 802A9254 0C093EB1 */ jal set_popup_duration
/* 429F78 802A9258 24040063 */ addiu $a0, $zero, 0x63
/* 429F7C 802A925C 82220061 */ lb $v0, 0x61($s1)
/* 429F80 802A9260 8E300004 */ lw $s0, 4($s1)
/* 429F84 802A9264 10400004 */ beqz $v0, .L802A9278
/* 429F88 802A9268 0200202D */ daddu $a0, $s0, $zero
/* 429F8C 802A926C 0C05128B */ jal clear_icon_flags
/* 429F90 802A9270 24050002 */ addiu $a1, $zero, 2
/* 429F94 802A9274 0200202D */ daddu $a0, $s0, $zero
.L802A9278:
/* 429F98 802A9278 0C0513AC */ jal icon_set_opacity
/* 429F9C 802A927C 240500FF */ addiu $a1, $zero, 0xff
/* 429FA0 802A9280 8E300008 */ lw $s0, 8($s1)
/* 429FA4 802A9284 240500FF */ addiu $a1, $zero, 0xff
/* 429FA8 802A9288 0C0513AC */ jal icon_set_opacity
/* 429FAC 802A928C 0200202D */ daddu $a0, $s0, $zero
/* 429FB0 802A9290 82220061 */ lb $v0, 0x61($s1)
/* 429FB4 802A9294 10400003 */ beqz $v0, .L802A92A4
/* 429FB8 802A9298 0200202D */ daddu $a0, $s0, $zero
/* 429FBC 802A929C 0C05128B */ jal clear_icon_flags
/* 429FC0 802A92A0 24050002 */ addiu $a1, $zero, 2
.L802A92A4:
/* 429FC4 802A92A4 24020001 */ addiu $v0, $zero, 1
/* 429FC8 802A92A8 080AA586 */ j .L802A9618
/* 429FCC 802A92AC A622004C */ sh $v0, 0x4c($s1)
/* 429FD0 802A92B0 0C093EB1 */ jal set_popup_duration
/* 429FD4 802A92B4 24040063 */ addiu $a0, $zero, 0x63
/* 429FD8 802A92B8 96220056 */ lhu $v0, 0x56($s1)
/* 429FDC 802A92BC 24420014 */ addiu $v0, $v0, 0x14
/* 429FE0 802A92C0 A6220056 */ sh $v0, 0x56($s1)
/* 429FE4 802A92C4 00021400 */ sll $v0, $v0, 0x10
/* 429FE8 802A92C8 00021403 */ sra $v0, $v0, 0x10
/* 429FEC 802A92CC 28420033 */ slti $v0, $v0, 0x33
/* 429FF0 802A92D0 14400002 */ bnez $v0, .L802A92DC
/* 429FF4 802A92D4 24020032 */ addiu $v0, $zero, 0x32
/* 429FF8 802A92D8 A6220056 */ sh $v0, 0x56($s1)
.L802A92DC:
/* 429FFC 802A92DC 8E240004 */ lw $a0, 4($s1)
/* 42A000 802A92E0 86250056 */ lh $a1, 0x56($s1)
/* 42A004 802A92E4 0C051261 */ jal set_icon_render_pos
/* 42A008 802A92E8 86260058 */ lh $a2, 0x58($s1)
/* 42A00C 802A92EC 8E240008 */ lw $a0, 8($s1)
/* 42A010 802A92F0 86260058 */ lh $a2, 0x58($s1)
/* 42A014 802A92F4 86250056 */ lh $a1, 0x56($s1)
/* 42A018 802A92F8 0C051261 */ jal set_icon_render_pos
/* 42A01C 802A92FC 24C6001C */ addiu $a2, $a2, 0x1c
/* 42A020 802A9300 080AA586 */ j .L802A9618
/* 42A024 802A9304 00000000 */ nop
/* 42A028 802A9308 0C093EB1 */ jal set_popup_duration
/* 42A02C 802A930C 24040063 */ addiu $a0, $zero, 0x63
/* 42A030 802A9310 8622004E */ lh $v0, 0x4e($s1)
/* 42A034 802A9314 9623004E */ lhu $v1, 0x4e($s1)
/* 42A038 802A9318 10400003 */ beqz $v0, .L802A9328
/* 42A03C 802A931C 2462FFFF */ addiu $v0, $v1, -1
/* 42A040 802A9320 080AA586 */ j .L802A9618
/* 42A044 802A9324 A622004E */ sh $v0, 0x4e($s1)
.L802A9328:
/* 42A048 802A9328 8E240004 */ lw $a0, 4($s1)
/* 42A04C 802A932C 3C058011 */ lui $a1, %hi(D_80108B54)
/* 42A050 802A9330 24A58B54 */ addiu $a1, $a1, %lo(D_80108B54)
/* 42A054 802A9334 0C0511FF */ jal set_menu_icon_script
/* 42A058 802A9338 00000000 */ nop
/* 42A05C 802A933C 3C048000 */ lui $a0, 0x8000
/* 42A060 802A9340 34840041 */ ori $a0, $a0, 0x41
/* 42A064 802A9344 0000282D */ daddu $a1, $zero, $zero
/* 42A068 802A9348 00A0302D */ daddu $a2, $a1, $zero
/* 42A06C 802A934C 96220052 */ lhu $v0, 0x52($s1)
/* 42A070 802A9350 00A0382D */ daddu $a3, $a1, $zero
/* 42A074 802A9354 A6200044 */ sh $zero, 0x44($s1)
/* 42A078 802A9358 A220005C */ sb $zero, 0x5c($s1)
/* 42A07C 802A935C 0C0526AE */ jal _play_sound
/* 42A080 802A9360 A6220054 */ sh $v0, 0x54($s1)
/* 42A084 802A9364 2402000B */ addiu $v0, $zero, 0xb
/* 42A088 802A9368 A622004C */ sh $v0, 0x4c($s1)
/* 42A08C 802A936C 0C093EB1 */ jal set_popup_duration
/* 42A090 802A9370 24040063 */ addiu $a0, $zero, 0x63
/* 42A094 802A9374 82220080 */ lb $v0, 0x80($s1)
/* 42A098 802A9378 00021040 */ sll $v0, $v0, 1
/* 42A09C 802A937C 02221021 */ addu $v0, $s1, $v0
/* 42A0A0 802A9380 84430074 */ lh $v1, 0x74($v0)
/* 42A0A4 802A9384 86220044 */ lh $v0, 0x44($s1)
/* 42A0A8 802A9388 14600002 */ bnez $v1, .L802A9394
/* 42A0AC 802A938C 0043001A */ div $zero, $v0, $v1
/* 42A0B0 802A9390 0007000D */ break 7
.L802A9394:
/* 42A0B4 802A9394 2401FFFF */ addiu $at, $zero, -1
/* 42A0B8 802A9398 14610004 */ bne $v1, $at, .L802A93AC
/* 42A0BC 802A939C 3C018000 */ lui $at, 0x8000
/* 42A0C0 802A93A0 14410002 */ bne $v0, $at, .L802A93AC
/* 42A0C4 802A93A4 00000000 */ nop
/* 42A0C8 802A93A8 0006000D */ break 6
.L802A93AC:
/* 42A0CC 802A93AC 00009012 */ mflo $s2
/* 42A0D0 802A93B0 8222005C */ lb $v0, 0x5c($s1)
/* 42A0D4 802A93B4 96250044 */ lhu $a1, 0x44($s1)
/* 42A0D8 802A93B8 1440003A */ bnez $v0, .L802A94A4
/* 42A0DC 802A93BC 24A2FF06 */ addiu $v0, $a1, -0xfa
/* 42A0E0 802A93C0 8E620210 */ lw $v0, 0x210($s3)
/* 42A0E4 802A93C4 30428000 */ andi $v0, $v0, 0x8000
/* 42A0E8 802A93C8 14400012 */ bnez $v0, .L802A9414
/* 42A0EC 802A93CC 3C026666 */ lui $v0, 0x6666
/* 42A0F0 802A93D0 34426667 */ ori $v0, $v0, 0x6667
/* 42A0F4 802A93D4 02420018 */ mult $s2, $v0
/* 42A0F8 802A93D8 00121FC3 */ sra $v1, $s2, 0x1f
/* 42A0FC 802A93DC 00004810 */ mfhi $t1
/* 42A100 802A93E0 000910C3 */ sra $v0, $t1, 3
/* 42A104 802A93E4 00431023 */ subu $v0, $v0, $v1
/* 42A108 802A93E8 00021080 */ sll $v0, $v0, 2
/* 42A10C 802A93EC 3C01802B */ lui $at, %hi(D_802A9762)
/* 42A110 802A93F0 00220821 */ addu $at, $at, $v0
/* 42A114 802A93F4 94229762 */ lhu $v0, %lo(D_802A9762)($at)
/* 42A118 802A93F8 00A21023 */ subu $v0, $a1, $v0
/* 42A11C 802A93FC A6220044 */ sh $v0, 0x44($s1)
/* 42A120 802A9400 00021400 */ sll $v0, $v0, 0x10
/* 42A124 802A9404 0442002D */ bltzl $v0, .L802A94BC
/* 42A128 802A9408 A6200044 */ sh $zero, 0x44($s1)
/* 42A12C 802A940C 080AA530 */ j .L802A94C0
/* 42A130 802A9410 3C0451EB */ lui $a0, 0x51eb
.L802A9414:
/* 42A134 802A9414 34426667 */ ori $v0, $v0, 0x6667
/* 42A138 802A9418 02420018 */ mult $s2, $v0
/* 42A13C 802A941C 001217C3 */ sra $v0, $s2, 0x1f
/* 42A140 802A9420 8E640434 */ lw $a0, 0x434($s3)
/* 42A144 802A9424 00001810 */ mfhi $v1
/* 42A148 802A9428 000318C3 */ sra $v1, $v1, 3
/* 42A14C 802A942C 00621823 */ subu $v1, $v1, $v0
/* 42A150 802A9430 00031880 */ sll $v1, $v1, 2
/* 42A154 802A9434 86220050 */ lh $v0, 0x50($s1)
/* 42A158 802A9438 3C01802B */ lui $at, %hi(D_802A9778)
/* 42A15C 802A943C 00230821 */ addu $at, $at, $v1
/* 42A160 802A9440 8C239778 */ lw $v1, %lo(D_802A9778)($at)
/* 42A164 802A9444 00021080 */ sll $v0, $v0, 2
/* 42A168 802A9448 00441021 */ addu $v0, $v0, $a0
/* 42A16C 802A944C 8C420000 */ lw $v0, ($v0)
/* 42A170 802A9450 00620018 */ mult $v1, $v0
/* 42A174 802A9454 00001812 */ mflo $v1
/* 42A178 802A9458 3C0251EB */ lui $v0, 0x51eb
/* 42A17C 802A945C 3442851F */ ori $v0, $v0, 0x851f
/* 42A180 802A9460 00620018 */ mult $v1, $v0
/* 42A184 802A9464 00031FC3 */ sra $v1, $v1, 0x1f
/* 42A188 802A9468 00004010 */ mfhi $t0
/* 42A18C 802A946C 00081143 */ sra $v0, $t0, 5
/* 42A190 802A9470 00431023 */ subu $v0, $v0, $v1
/* 42A194 802A9474 00A21021 */ addu $v0, $a1, $v0
/* 42A198 802A9478 A6220044 */ sh $v0, 0x44($s1)
/* 42A19C 802A947C 00021400 */ sll $v0, $v0, 0x10
/* 42A1A0 802A9480 00021403 */ sra $v0, $v0, 0x10
/* 42A1A4 802A9484 28422711 */ slti $v0, $v0, 0x2711
/* 42A1A8 802A9488 1440000D */ bnez $v0, .L802A94C0
/* 42A1AC 802A948C 3C0451EB */ lui $a0, 0x51eb
/* 42A1B0 802A9490 24022710 */ addiu $v0, $zero, 0x2710
/* 42A1B4 802A9494 A6220044 */ sh $v0, 0x44($s1)
/* 42A1B8 802A9498 24020001 */ addiu $v0, $zero, 1
/* 42A1BC 802A949C 080AA530 */ j .L802A94C0
/* 42A1C0 802A94A0 A222005C */ sb $v0, 0x5c($s1)
.L802A94A4:
/* 42A1C4 802A94A4 A6220044 */ sh $v0, 0x44($s1)
/* 42A1C8 802A94A8 00021400 */ sll $v0, $v0, 0x10
/* 42A1CC 802A94AC 1C400004 */ bgtz $v0, .L802A94C0
/* 42A1D0 802A94B0 3C0451EB */ lui $a0, 0x51eb
/* 42A1D4 802A94B4 A6200044 */ sh $zero, 0x44($s1)
/* 42A1D8 802A94B8 A220005C */ sb $zero, 0x5c($s1)
.L802A94BC:
/* 42A1DC 802A94BC 3C0451EB */ lui $a0, 0x51eb
.L802A94C0:
/* 42A1E0 802A94C0 3484851F */ ori $a0, $a0, 0x851f
/* 42A1E4 802A94C4 96230044 */ lhu $v1, 0x44($s1)
/* 42A1E8 802A94C8 0000282D */ daddu $a1, $zero, $zero
/* 42A1EC 802A94CC 00031C00 */ sll $v1, $v1, 0x10
/* 42A1F0 802A94D0 00031403 */ sra $v0, $v1, 0x10
/* 42A1F4 802A94D4 00440018 */ mult $v0, $a0
/* 42A1F8 802A94D8 00A0302D */ daddu $a2, $a1, $zero
/* 42A1FC 802A94DC 3C048000 */ lui $a0, 0x8000
/* 42A200 802A94E0 34840041 */ ori $a0, $a0, 0x41
/* 42A204 802A94E4 00031FC3 */ sra $v1, $v1, 0x1f
/* 42A208 802A94E8 00004810 */ mfhi $t1
/* 42A20C 802A94EC 00094143 */ sra $t0, $t1, 5
/* 42A210 802A94F0 01034023 */ subu $t0, $t0, $v1
/* 42A214 802A94F4 00081600 */ sll $v0, $t0, 0x18
/* 42A218 802A94F8 00021603 */ sra $v0, $v0, 0x18
/* 42A21C 802A94FC 00023840 */ sll $a3, $v0, 1
/* 42A220 802A9500 00E23821 */ addu $a3, $a3, $v0
/* 42A224 802A9504 00073880 */ sll $a3, $a3, 2
/* 42A228 802A9508 0C0526F9 */ jal func_80149BE4
/* 42A22C 802A950C A2680084 */ sb $t0, 0x84($s3)
/* 42A230 802A9510 2A420050 */ slti $v0, $s2, 0x50
/* 42A234 802A9514 10400007 */ beqz $v0, .L802A9534
/* 42A238 802A9518 8E300004 */ lw $s0, 4($s1)
/* 42A23C 802A951C 0C05122C */ jal get_menu_icon_script
/* 42A240 802A9520 0200202D */ daddu $a0, $s0, $zero
/* 42A244 802A9524 3C058011 */ lui $a1, %hi(D_80108B54)
/* 42A248 802A9528 24A58B54 */ addiu $a1, $a1, %lo(D_80108B54)
/* 42A24C 802A952C 080AA551 */ j .L802A9544
/* 42A250 802A9530 00000000 */ nop
.L802A9534:
/* 42A254 802A9534 0C05122C */ jal get_menu_icon_script
/* 42A258 802A9538 0200202D */ daddu $a0, $s0, $zero
/* 42A25C 802A953C 3C058011 */ lui $a1, %hi(D_80108BBC)
/* 42A260 802A9540 24A58BBC */ addiu $a1, $a1, %lo(D_80108BBC)
.L802A9544:
/* 42A264 802A9544 10450003 */ beq $v0, $a1, .L802A9554
/* 42A268 802A9548 00000000 */ nop
/* 42A26C 802A954C 0C0511FF */ jal set_menu_icon_script
/* 42A270 802A9550 0200202D */ daddu $a0, $s0, $zero
.L802A9554:
/* 42A274 802A9554 86220054 */ lh $v0, 0x54($s1)
/* 42A278 802A9558 96230054 */ lhu $v1, 0x54($s1)
/* 42A27C 802A955C 1440002A */ bnez $v0, .L802A9608
/* 42A280 802A9560 2462FFFF */ addiu $v0, $v1, -1
/* 42A284 802A9564 86220044 */ lh $v0, 0x44($s1)
/* 42A288 802A9568 10400002 */ beqz $v0, .L802A9574
/* 42A28C 802A956C 2402FFFF */ addiu $v0, $zero, -1
/* 42A290 802A9570 92620084 */ lbu $v0, 0x84($s3)
.L802A9574:
/* 42A294 802A9574 A2620081 */ sb $v0, 0x81($s3)
/* 42A298 802A9578 82220080 */ lb $v0, 0x80($s1)
/* 42A29C 802A957C 2442FFFF */ addiu $v0, $v0, -1
/* 42A2A0 802A9580 00021040 */ sll $v0, $v0, 1
/* 42A2A4 802A9584 02221021 */ addu $v0, $s1, $v0
/* 42A2A8 802A9588 94420074 */ lhu $v0, 0x74($v0)
/* 42A2AC 802A958C 00021400 */ sll $v0, $v0, 0x10
/* 42A2B0 802A9590 00021C03 */ sra $v1, $v0, 0x10
/* 42A2B4 802A9594 000217C2 */ srl $v0, $v0, 0x1f
/* 42A2B8 802A9598 00621021 */ addu $v0, $v1, $v0
/* 42A2BC 802A959C 82630084 */ lb $v1, 0x84($s3)
/* 42A2C0 802A95A0 00021043 */ sra $v0, $v0, 1
/* 42A2C4 802A95A4 0043102A */ slt $v0, $v0, $v1
/* 42A2C8 802A95A8 14400002 */ bnez $v0, .L802A95B4
/* 42A2CC 802A95AC 24020001 */ addiu $v0, $zero, 1
/* 42A2D0 802A95B0 2402FFFC */ addiu $v0, $zero, -4
.L802A95B4:
/* 42A2D4 802A95B4 A2620086 */ sb $v0, 0x86($s3)
/* 42A2D8 802A95B8 82630081 */ lb $v1, 0x81($s3)
/* 42A2DC 802A95BC 24020064 */ addiu $v0, $zero, 0x64
/* 42A2E0 802A95C0 14620003 */ bne $v1, $v0, .L802A95D0
/* 42A2E4 802A95C4 00000000 */ nop
/* 42A2E8 802A95C8 0C09A458 */ jal func_80269160
/* 42A2EC 802A95CC 00000000 */ nop
.L802A95D0:
/* 42A2F0 802A95D0 0C093EB1 */ jal set_popup_duration
/* 42A2F4 802A95D4 0000202D */ daddu $a0, $zero, $zero
/* 42A2F8 802A95D8 3C048000 */ lui $a0, 0x8000
/* 42A2FC 802A95DC 0C05271B */ jal stop_sound
/* 42A300 802A95E0 34840041 */ ori $a0, $a0, 0x41
/* 42A304 802A95E4 24020005 */ addiu $v0, $zero, 5
/* 42A308 802A95E8 A6220054 */ sh $v0, 0x54($s1)
/* 42A30C 802A95EC 2402000C */ addiu $v0, $zero, 0xc
/* 42A310 802A95F0 080AA586 */ j .L802A9618
/* 42A314 802A95F4 A622004C */ sh $v0, 0x4c($s1)
/* 42A318 802A95F8 86220054 */ lh $v0, 0x54($s1)
/* 42A31C 802A95FC 96230054 */ lhu $v1, 0x54($s1)
/* 42A320 802A9600 10400003 */ beqz $v0, .L802A9610
/* 42A324 802A9604 2462FFFF */ addiu $v0, $v1, -1
.L802A9608:
/* 42A328 802A9608 080AA586 */ j .L802A9618
/* 42A32C 802A960C A6220054 */ sh $v0, 0x54($s1)
.L802A9610:
/* 42A330 802A9610 0C09A327 */ jal func_80268C9C
/* 42A334 802A9614 00000000 */ nop
.L802A9618:
/* 42A338 802A9618 8FBF0020 */ lw $ra, 0x20($sp)
/* 42A33C 802A961C 8FB3001C */ lw $s3, 0x1c($sp)
/* 42A340 802A9620 8FB20018 */ lw $s2, 0x18($sp)
/* 42A344 802A9624 8FB10014 */ lw $s1, 0x14($sp)
/* 42A348 802A9628 8FB00010 */ lw $s0, 0x10($sp)
/* 42A34C 802A962C 03E00008 */ jr $ra
/* 42A350 802A9630 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,65 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9634_42A354
/* 42A354 802A9634 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 42A358 802A9638 AFB10024 */ sw $s1, 0x24($sp)
/* 42A35C 802A963C 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42A360 802A9640 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42A364 802A9644 AFBF0028 */ sw $ra, 0x28($sp)
/* 42A368 802A9648 AFB00020 */ sw $s0, 0x20($sp)
/* 42A36C 802A964C 0C0511EA */ jal draw_icon_0
/* 42A370 802A9650 8E240004 */ lw $a0, 4($s1)
/* 42A374 802A9654 8E300008 */ lw $s0, 8($s1)
/* 42A378 802A9658 0C0511EA */ jal draw_icon_0
/* 42A37C 802A965C 0200202D */ daddu $a0, $s0, $zero
/* 42A380 802A9660 0200202D */ daddu $a0, $s0, $zero
/* 42A384 802A9664 27A50018 */ addiu $a1, $sp, 0x18
/* 42A388 802A9668 0C05126B */ jal get_icon_render_pos
/* 42A38C 802A966C 27A6001C */ addiu $a2, $sp, 0x1c
/* 42A390 802A9670 8222005C */ lb $v0, 0x5c($s1)
/* 42A394 802A9674 14400013 */ bnez $v0, .L802A96C4
/* 42A398 802A9678 0220802D */ daddu $s0, $s1, $zero
/* 42A39C 802A967C 3C0451EB */ lui $a0, 0x51eb
/* 42A3A0 802A9680 96230044 */ lhu $v1, 0x44($s1)
/* 42A3A4 802A9684 3484851F */ ori $a0, $a0, 0x851f
/* 42A3A8 802A9688 00031C00 */ sll $v1, $v1, 0x10
/* 42A3AC 802A968C 00031403 */ sra $v0, $v1, 0x10
/* 42A3B0 802A9690 00440018 */ mult $v0, $a0
/* 42A3B4 802A9694 24070001 */ addiu $a3, $zero, 1
/* 42A3B8 802A9698 8FA5001C */ lw $a1, 0x1c($sp)
/* 42A3BC 802A969C 00031FC3 */ sra $v1, $v1, 0x1f
/* 42A3C0 802A96A0 8FA40018 */ lw $a0, 0x18($sp)
/* 42A3C4 802A96A4 00004010 */ mfhi $t0
/* 42A3C8 802A96A8 00083143 */ sra $a2, $t0, 5
/* 42A3CC 802A96AC 00C33023 */ subu $a2, $a2, $v1
/* 42A3D0 802A96B0 00063400 */ sll $a2, $a2, 0x10
/* 42A3D4 802A96B4 0C09A1E6 */ jal func_80268798
/* 42A3D8 802A96B8 00063403 */ sra $a2, $a2, 0x10
/* 42A3DC 802A96BC 080AA5C3 */ j .L802A970C
/* 42A3E0 802A96C0 00000000 */ nop
.L802A96C4:
/* 42A3E4 802A96C4 3C0451EB */ lui $a0, 0x51eb
/* 42A3E8 802A96C8 3484851F */ ori $a0, $a0, 0x851f
/* 42A3EC 802A96CC 24070001 */ addiu $a3, $zero, 1
/* 42A3F0 802A96D0 96030044 */ lhu $v1, 0x44($s0)
/* 42A3F4 802A96D4 8FA5001C */ lw $a1, 0x1c($sp)
/* 42A3F8 802A96D8 00031C00 */ sll $v1, $v1, 0x10
/* 42A3FC 802A96DC 00031403 */ sra $v0, $v1, 0x10
/* 42A400 802A96E0 00440018 */ mult $v0, $a0
/* 42A404 802A96E4 00E0102D */ daddu $v0, $a3, $zero
/* 42A408 802A96E8 8FA40018 */ lw $a0, 0x18($sp)
/* 42A40C 802A96EC 00031FC3 */ sra $v1, $v1, 0x1f
/* 42A410 802A96F0 AFA20010 */ sw $v0, 0x10($sp)
/* 42A414 802A96F4 00004010 */ mfhi $t0
/* 42A418 802A96F8 00083143 */ sra $a2, $t0, 5
/* 42A41C 802A96FC 00C33023 */ subu $a2, $a2, $v1
/* 42A420 802A9700 00063400 */ sll $a2, $a2, 0x10
/* 42A424 802A9704 0C09A1F9 */ jal func_802687E4
/* 42A428 802A9708 00063403 */ sra $a2, $a2, 0x10
.L802A970C:
/* 42A42C 802A970C 8FBF0028 */ lw $ra, 0x28($sp)
/* 42A430 802A9710 8FB10024 */ lw $s1, 0x24($sp)
/* 42A434 802A9714 8FB00020 */ lw $s0, 0x20($sp)
/* 42A438 802A9718 03E00008 */ jr $ra
/* 42A43C 802A971C 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -0,0 +1,20 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9720_42A440
/* 42A440 802A9720 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 42A444 802A9724 3C048000 */ lui $a0, 0x8000
/* 42A448 802A9728 34840041 */ ori $a0, $a0, 0x41
/* 42A44C 802A972C AFBF0014 */ sw $ra, 0x14($sp)
/* 42A450 802A9730 0C05271B */ jal stop_sound
/* 42A454 802A9734 AFB00010 */ sw $s0, 0x10($sp)
/* 42A458 802A9738 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 42A45C 802A973C 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 42A460 802A9740 0C05123D */ jal free_icon
/* 42A464 802A9744 8E040004 */ lw $a0, 4($s0)
/* 42A468 802A9748 0C05123D */ jal free_icon
/* 42A46C 802A974C 8E040008 */ lw $a0, 8($s0)
/* 42A470 802A9750 8FBF0014 */ lw $ra, 0x14($sp)
/* 42A474 802A9754 8FB00010 */ lw $s0, 0x10($sp)
/* 42A478 802A9758 03E00008 */ jr $ra
/* 42A47C 802A975C 27BD0018 */ addiu $sp, $sp, 0x18

View File

@ -0,0 +1,242 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_42A4F0
/* 42A4F0 802A9000 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42A4F4 802A9004 AFB10014 */ sw $s1, 0x14($sp)
/* 42A4F8 802A9008 0080882D */ daddu $s1, $a0, $zero
/* 42A4FC 802A900C 3C03800E */ lui $v1, %hi(gBattleStatus)
/* 42A500 802A9010 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus)
/* 42A504 802A9014 AFBF0020 */ sw $ra, 0x20($sp)
/* 42A508 802A9018 AFB3001C */ sw $s3, 0x1c($sp)
/* 42A50C 802A901C AFB20018 */ sw $s2, 0x18($sp)
/* 42A510 802A9020 AFB00010 */ sw $s0, 0x10($sp)
/* 42A514 802A9024 8E30000C */ lw $s0, 0xc($s1)
/* 42A518 802A9028 24020005 */ addiu $v0, $zero, 5
/* 42A51C 802A902C A0620082 */ sb $v0, 0x82($v1)
/* 42A520 802A9030 3C028029 */ lui $v0, %hi(D_80294460)
/* 42A524 802A9034 24424460 */ addiu $v0, $v0, %lo(D_80294460)
/* 42A528 802A9038 3C12802A */ lui $s2, %hi(D_8029FBE0)
/* 42A52C 802A903C 2652FBE0 */ addiu $s2, $s2, %lo(D_8029FBE0)
/* 42A530 802A9040 AC620434 */ sw $v0, 0x434($v1)
/* 42A534 802A9044 80620083 */ lb $v0, 0x83($v1)
/* 42A538 802A9048 14400003 */ bnez $v0, .L802A9058
/* 42A53C 802A904C 0060982D */ daddu $s3, $v1, $zero
/* 42A540 802A9050 080AA4DE */ j .L802A9378
/* 42A544 802A9054 A0600081 */ sb $zero, 0x81($v1)
.L802A9058:
/* 42A548 802A9058 0C09A216 */ jal func_80268858
/* 42A54C 802A905C 00000000 */ nop
/* 42A550 802A9060 24020016 */ addiu $v0, $zero, 0x16
/* 42A554 802A9064 A642004A */ sh $v0, 0x4a($s2)
/* 42A558 802A9068 A640004C */ sh $zero, 0x4c($s2)
/* 42A55C 802A906C A2400060 */ sb $zero, 0x60($s2)
/* 42A560 802A9070 A6400044 */ sh $zero, 0x44($s2)
/* 42A564 802A9074 A6400048 */ sh $zero, 0x48($s2)
/* 42A568 802A9078 8E050000 */ lw $a1, ($s0)
/* 42A56C 802A907C 0C0B1EAF */ jal get_variable
/* 42A570 802A9080 0220202D */ daddu $a0, $s1, $zero
/* 42A574 802A9084 3C048011 */ lui $a0, %hi(D_80108B28)
/* 42A578 802A9088 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 42A57C 802A908C A6420064 */ sh $v0, 0x64($s2)
/* 42A580 802A9090 24020001 */ addiu $v0, $zero, 1
/* 42A584 802A9094 A2620084 */ sb $v0, 0x84($s3)
/* 42A588 802A9098 2402001E */ addiu $v0, $zero, 0x1e
/* 42A58C 802A909C A642006C */ sh $v0, 0x6c($s2)
/* 42A590 802A90A0 2402FFD0 */ addiu $v0, $zero, -0x30
/* 42A594 802A90A4 A6420056 */ sh $v0, 0x56($s2)
/* 42A598 802A90A8 24020050 */ addiu $v0, $zero, 0x50
/* 42A59C 802A90AC 0C050529 */ jal create_icon
/* 42A5A0 802A90B0 A6420058 */ sh $v0, 0x58($s2)
/* 42A5A4 802A90B4 0040882D */ daddu $s1, $v0, $zero
/* 42A5A8 802A90B8 0220202D */ daddu $a0, $s1, $zero
/* 42A5AC 802A90BC 24050082 */ addiu $a1, $zero, 0x82
/* 42A5B0 802A90C0 0C051280 */ jal set_icon_flags
/* 42A5B4 802A90C4 AE510004 */ sw $s1, 4($s2)
/* 42A5B8 802A90C8 86450056 */ lh $a1, 0x56($s2)
/* 42A5BC 802A90CC 86460058 */ lh $a2, 0x58($s2)
/* 42A5C0 802A90D0 0C051261 */ jal set_icon_render_pos
/* 42A5C4 802A90D4 0220202D */ daddu $a0, $s1, $zero
/* 42A5C8 802A90D8 0220202D */ daddu $a0, $s1, $zero
/* 42A5CC 802A90DC 0C051277 */ jal func_801449DC
/* 42A5D0 802A90E0 0000282D */ daddu $a1, $zero, $zero
/* 42A5D4 802A90E4 3C048029 */ lui $a0, %hi(D_80292AFC)
/* 42A5D8 802A90E8 24842AFC */ addiu $a0, $a0, %lo(D_80292AFC)
/* 42A5DC 802A90EC 0C050529 */ jal create_icon
/* 42A5E0 802A90F0 00000000 */ nop
/* 42A5E4 802A90F4 0040882D */ daddu $s1, $v0, $zero
/* 42A5E8 802A90F8 86450056 */ lh $a1, 0x56($s2)
/* 42A5EC 802A90FC 86460058 */ lh $a2, 0x58($s2)
/* 42A5F0 802A9100 0220202D */ daddu $a0, $s1, $zero
/* 42A5F4 802A9104 AE510008 */ sw $s1, 8($s2)
/* 42A5F8 802A9108 0C051261 */ jal set_icon_render_pos
/* 42A5FC 802A910C 24C6001C */ addiu $a2, $a2, 0x1c
/* 42A600 802A9110 0220202D */ daddu $a0, $s1, $zero
/* 42A604 802A9114 0C051277 */ jal func_801449DC
/* 42A608 802A9118 0000282D */ daddu $a1, $zero, $zero
/* 42A60C 802A911C 0220202D */ daddu $a0, $s1, $zero
/* 42A610 802A9120 0C051280 */ jal set_icon_flags
/* 42A614 802A9124 24050082 */ addiu $a1, $zero, 0x82
/* 42A618 802A9128 3C108029 */ lui $s0, %hi(D_8029275C)
/* 42A61C 802A912C 2610275C */ addiu $s0, $s0, %lo(D_8029275C)
/* 42A620 802A9130 0C050529 */ jal create_icon
/* 42A624 802A9134 0200202D */ daddu $a0, $s0, $zero
/* 42A628 802A9138 0040882D */ daddu $s1, $v0, $zero
/* 42A62C 802A913C 86450056 */ lh $a1, 0x56($s2)
/* 42A630 802A9140 86460058 */ lh $a2, 0x58($s2)
/* 42A634 802A9144 0220202D */ daddu $a0, $s1, $zero
/* 42A638 802A9148 AE51000C */ sw $s1, 0xc($s2)
/* 42A63C 802A914C 0C051261 */ jal set_icon_render_pos
/* 42A640 802A9150 24C6001C */ addiu $a2, $a2, 0x1c
/* 42A644 802A9154 0220202D */ daddu $a0, $s1, $zero
/* 42A648 802A9158 0C051277 */ jal func_801449DC
/* 42A64C 802A915C 0000282D */ daddu $a1, $zero, $zero
/* 42A650 802A9160 0220202D */ daddu $a0, $s1, $zero
/* 42A654 802A9164 0C051280 */ jal set_icon_flags
/* 42A658 802A9168 24050082 */ addiu $a1, $zero, 0x82
/* 42A65C 802A916C 0C050529 */ jal create_icon
/* 42A660 802A9170 0200202D */ daddu $a0, $s0, $zero
/* 42A664 802A9174 0040882D */ daddu $s1, $v0, $zero
/* 42A668 802A9178 86450056 */ lh $a1, 0x56($s2)
/* 42A66C 802A917C 86460058 */ lh $a2, 0x58($s2)
/* 42A670 802A9180 0220202D */ daddu $a0, $s1, $zero
/* 42A674 802A9184 AE510010 */ sw $s1, 0x10($s2)
/* 42A678 802A9188 0C051261 */ jal set_icon_render_pos
/* 42A67C 802A918C 24C6001C */ addiu $a2, $a2, 0x1c
/* 42A680 802A9190 0220202D */ daddu $a0, $s1, $zero
/* 42A684 802A9194 0C051277 */ jal func_801449DC
/* 42A688 802A9198 0000282D */ daddu $a1, $zero, $zero
/* 42A68C 802A919C 0220202D */ daddu $a0, $s1, $zero
/* 42A690 802A91A0 0C051280 */ jal set_icon_flags
/* 42A694 802A91A4 24050082 */ addiu $a1, $zero, 0x82
/* 42A698 802A91A8 0C050529 */ jal create_icon
/* 42A69C 802A91AC 0200202D */ daddu $a0, $s0, $zero
/* 42A6A0 802A91B0 0040882D */ daddu $s1, $v0, $zero
/* 42A6A4 802A91B4 86450056 */ lh $a1, 0x56($s2)
/* 42A6A8 802A91B8 86460058 */ lh $a2, 0x58($s2)
/* 42A6AC 802A91BC 0220202D */ daddu $a0, $s1, $zero
/* 42A6B0 802A91C0 AE510014 */ sw $s1, 0x14($s2)
/* 42A6B4 802A91C4 0C051261 */ jal set_icon_render_pos
/* 42A6B8 802A91C8 24C6001C */ addiu $a2, $a2, 0x1c
/* 42A6BC 802A91CC 0220202D */ daddu $a0, $s1, $zero
/* 42A6C0 802A91D0 0C051277 */ jal func_801449DC
/* 42A6C4 802A91D4 0000282D */ daddu $a1, $zero, $zero
/* 42A6C8 802A91D8 0220202D */ daddu $a0, $s1, $zero
/* 42A6CC 802A91DC 0C051280 */ jal set_icon_flags
/* 42A6D0 802A91E0 24050082 */ addiu $a1, $zero, 0x82
/* 42A6D4 802A91E4 3C108029 */ lui $s0, %hi(D_80292B54)
/* 42A6D8 802A91E8 26102B54 */ addiu $s0, $s0, %lo(D_80292B54)
/* 42A6DC 802A91EC 0C050529 */ jal create_icon
/* 42A6E0 802A91F0 0200202D */ daddu $a0, $s0, $zero
/* 42A6E4 802A91F4 0040882D */ daddu $s1, $v0, $zero
/* 42A6E8 802A91F8 86450056 */ lh $a1, 0x56($s2)
/* 42A6EC 802A91FC 86460058 */ lh $a2, 0x58($s2)
/* 42A6F0 802A9200 0220202D */ daddu $a0, $s1, $zero
/* 42A6F4 802A9204 0C051261 */ jal set_icon_render_pos
/* 42A6F8 802A9208 AE51001C */ sw $s1, 0x1c($s2)
/* 42A6FC 802A920C 0220202D */ daddu $a0, $s1, $zero
/* 42A700 802A9210 0C051277 */ jal func_801449DC
/* 42A704 802A9214 0000282D */ daddu $a1, $zero, $zero
/* 42A708 802A9218 0220202D */ daddu $a0, $s1, $zero
/* 42A70C 802A921C 0C051280 */ jal set_icon_flags
/* 42A710 802A9220 24050082 */ addiu $a1, $zero, 0x82
/* 42A714 802A9224 0C050529 */ jal create_icon
/* 42A718 802A9228 0200202D */ daddu $a0, $s0, $zero
/* 42A71C 802A922C 0040882D */ daddu $s1, $v0, $zero
/* 42A720 802A9230 86450056 */ lh $a1, 0x56($s2)
/* 42A724 802A9234 86460058 */ lh $a2, 0x58($s2)
/* 42A728 802A9238 0220202D */ daddu $a0, $s1, $zero
/* 42A72C 802A923C 0C051261 */ jal set_icon_render_pos
/* 42A730 802A9240 AE510020 */ sw $s1, 0x20($s2)
/* 42A734 802A9244 0220202D */ daddu $a0, $s1, $zero
/* 42A738 802A9248 0C051277 */ jal func_801449DC
/* 42A73C 802A924C 0000282D */ daddu $a1, $zero, $zero
/* 42A740 802A9250 0220202D */ daddu $a0, $s1, $zero
/* 42A744 802A9254 0C051280 */ jal set_icon_flags
/* 42A748 802A9258 24050082 */ addiu $a1, $zero, 0x82
/* 42A74C 802A925C 0C050529 */ jal create_icon
/* 42A750 802A9260 0200202D */ daddu $a0, $s0, $zero
/* 42A754 802A9264 0040882D */ daddu $s1, $v0, $zero
/* 42A758 802A9268 86450056 */ lh $a1, 0x56($s2)
/* 42A75C 802A926C 86460058 */ lh $a2, 0x58($s2)
/* 42A760 802A9270 0220202D */ daddu $a0, $s1, $zero
/* 42A764 802A9274 0C051261 */ jal set_icon_render_pos
/* 42A768 802A9278 AE510024 */ sw $s1, 0x24($s2)
/* 42A76C 802A927C 0220202D */ daddu $a0, $s1, $zero
/* 42A770 802A9280 0C051277 */ jal func_801449DC
/* 42A774 802A9284 0000282D */ daddu $a1, $zero, $zero
/* 42A778 802A9288 0220202D */ daddu $a0, $s1, $zero
/* 42A77C 802A928C 0C051280 */ jal set_icon_flags
/* 42A780 802A9290 24050082 */ addiu $a1, $zero, 0x82
/* 42A784 802A9294 3C04802B */ lui $a0, %hi(D_802AB184)
/* 42A788 802A9298 0C050529 */ jal create_icon
/* 42A78C 802A929C 8C84B184 */ lw $a0, %lo(D_802AB184)($a0)
/* 42A790 802A92A0 86450056 */ lh $a1, 0x56($s2)
/* 42A794 802A92A4 86460058 */ lh $a2, 0x58($s2)
/* 42A798 802A92A8 0040202D */ daddu $a0, $v0, $zero
/* 42A79C 802A92AC 0C051261 */ jal set_icon_render_pos
/* 42A7A0 802A92B0 AE44002C */ sw $a0, 0x2c($s2)
/* 42A7A4 802A92B4 3C048029 */ lui $a0, %hi(D_802928A0)
/* 42A7A8 802A92B8 248428A0 */ addiu $a0, $a0, %lo(D_802928A0)
/* 42A7AC 802A92BC 0C050529 */ jal create_icon
/* 42A7B0 802A92C0 00000000 */ nop
/* 42A7B4 802A92C4 86450056 */ lh $a1, 0x56($s2)
/* 42A7B8 802A92C8 86460058 */ lh $a2, 0x58($s2)
/* 42A7BC 802A92CC 0040202D */ daddu $a0, $v0, $zero
/* 42A7C0 802A92D0 0C051261 */ jal set_icon_render_pos
/* 42A7C4 802A92D4 AE440030 */ sw $a0, 0x30($s2)
/* 42A7C8 802A92D8 3C048029 */ lui $a0, %hi(D_80292848)
/* 42A7CC 802A92DC 24842848 */ addiu $a0, $a0, %lo(D_80292848)
/* 42A7D0 802A92E0 0C050529 */ jal create_icon
/* 42A7D4 802A92E4 00000000 */ nop
/* 42A7D8 802A92E8 0040882D */ daddu $s1, $v0, $zero
/* 42A7DC 802A92EC 86450056 */ lh $a1, 0x56($s2)
/* 42A7E0 802A92F0 86460058 */ lh $a2, 0x58($s2)
/* 42A7E4 802A92F4 0220202D */ daddu $a0, $s1, $zero
/* 42A7E8 802A92F8 0C051261 */ jal set_icon_render_pos
/* 42A7EC 802A92FC AE510034 */ sw $s1, 0x34($s2)
/* 42A7F0 802A9300 86430064 */ lh $v1, 0x64($s2)
/* 42A7F4 802A9304 24020001 */ addiu $v0, $zero, 1
/* 42A7F8 802A9308 1062000E */ beq $v1, $v0, .L802A9344
/* 42A7FC 802A930C 28620002 */ slti $v0, $v1, 2
/* 42A800 802A9310 10400005 */ beqz $v0, .L802A9328
/* 42A804 802A9314 24020002 */ addiu $v0, $zero, 2
/* 42A808 802A9318 10600007 */ beqz $v1, .L802A9338
/* 42A80C 802A931C 00000000 */ nop
/* 42A810 802A9320 080AA4DA */ j .L802A9368
/* 42A814 802A9324 00000000 */ nop
.L802A9328:
/* 42A818 802A9328 10620009 */ beq $v1, $v0, .L802A9350
/* 42A81C 802A932C 00000000 */ nop
/* 42A820 802A9330 080AA4DA */ j .L802A9368
/* 42A824 802A9334 00000000 */ nop
.L802A9338:
/* 42A828 802A9338 3C04802B */ lui $a0, %hi(D_802AB108)
/* 42A82C 802A933C 080AA4D6 */ j .L802A9358
/* 42A830 802A9340 2484B108 */ addiu $a0, $a0, %lo(D_802AB108)
.L802A9344:
/* 42A834 802A9344 3C04802B */ lui $a0, %hi(D_802AB130)
/* 42A838 802A9348 080AA4D6 */ j .L802A9358
/* 42A83C 802A934C 2484B130 */ addiu $a0, $a0, %lo(D_802AB130)
.L802A9350:
/* 42A840 802A9350 3C04802B */ lui $a0, %hi(D_802AB158)
/* 42A844 802A9354 2484B158 */ addiu $a0, $a0, %lo(D_802AB158)
.L802A9358:
/* 42A848 802A9358 0C050529 */ jal create_icon
/* 42A84C 802A935C 00000000 */ nop
/* 42A850 802A9360 AE420038 */ sw $v0, 0x38($s2)
/* 42A854 802A9364 0040882D */ daddu $s1, $v0, $zero
.L802A9368:
/* 42A858 802A9368 86450056 */ lh $a1, 0x56($s2)
/* 42A85C 802A936C 86460058 */ lh $a2, 0x58($s2)
/* 42A860 802A9370 0C051261 */ jal set_icon_render_pos
/* 42A864 802A9374 0220202D */ daddu $a0, $s1, $zero
.L802A9378:
/* 42A868 802A9378 24020002 */ addiu $v0, $zero, 2
/* 42A86C 802A937C 8FBF0020 */ lw $ra, 0x20($sp)
/* 42A870 802A9380 8FB3001C */ lw $s3, 0x1c($sp)
/* 42A874 802A9384 8FB20018 */ lw $s2, 0x18($sp)
/* 42A878 802A9388 8FB10014 */ lw $s1, 0x14($sp)
/* 42A87C 802A938C 8FB00010 */ lw $s0, 0x10($sp)
/* 42A880 802A9390 03E00008 */ jr $ra
/* 42A884 802A9394 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,67 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9398_42A888
/* 42A888 802A9398 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42A88C 802A939C AFB3001C */ sw $s3, 0x1c($sp)
/* 42A890 802A93A0 0080982D */ daddu $s3, $a0, $zero
/* 42A894 802A93A4 AFB10014 */ sw $s1, 0x14($sp)
/* 42A898 802A93A8 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42A89C 802A93AC 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42A8A0 802A93B0 AFB20018 */ sw $s2, 0x18($sp)
/* 42A8A4 802A93B4 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 42A8A8 802A93B8 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 42A8AC 802A93BC AFBF0020 */ sw $ra, 0x20($sp)
/* 42A8B0 802A93C0 AFB00010 */ sw $s0, 0x10($sp)
/* 42A8B4 802A93C4 82420083 */ lb $v0, 0x83($s2)
/* 42A8B8 802A93C8 8E70000C */ lw $s0, 0xc($s3)
/* 42A8BC 802A93CC 10400026 */ beqz $v0, .L802A9468
/* 42A8C0 802A93D0 0240182D */ daddu $v1, $s2, $zero
/* 42A8C4 802A93D4 0C09A216 */ jal func_80268858
/* 42A8C8 802A93D8 00000000 */ nop
/* 42A8CC 802A93DC 8E050000 */ lw $a1, ($s0)
/* 42A8D0 802A93E0 26100004 */ addiu $s0, $s0, 4
/* 42A8D4 802A93E4 0C0B1EAF */ jal get_variable
/* 42A8D8 802A93E8 0260202D */ daddu $a0, $s3, $zero
/* 42A8DC 802A93EC A622004E */ sh $v0, 0x4e($s1)
/* 42A8E0 802A93F0 8E050000 */ lw $a1, ($s0)
/* 42A8E4 802A93F4 26100004 */ addiu $s0, $s0, 4
/* 42A8E8 802A93F8 0C0B1EAF */ jal get_variable
/* 42A8EC 802A93FC 0260202D */ daddu $a0, $s3, $zero
/* 42A8F0 802A9400 A6220052 */ sh $v0, 0x52($s1)
/* 42A8F4 802A9404 8E050000 */ lw $a1, ($s0)
/* 42A8F8 802A9408 0C0B1EAF */ jal get_variable
/* 42A8FC 802A940C 0260202D */ daddu $a0, $s3, $zero
/* 42A900 802A9410 00022400 */ sll $a0, $v0, 0x10
/* 42A904 802A9414 00042403 */ sra $a0, $a0, 0x10
/* 42A908 802A9418 0C09A089 */ jal func_80268224
/* 42A90C 802A941C A6220050 */ sh $v0, 0x50($s1)
/* 42A910 802A9420 3C04FFFF */ lui $a0, 0xffff
/* 42A914 802A9424 34847FFF */ ori $a0, $a0, 0x7fff
/* 42A918 802A9428 A6220050 */ sh $v0, 0x50($s1)
/* 42A91C 802A942C 24020001 */ addiu $v0, $zero, 1
/* 42A920 802A9430 A2200060 */ sb $zero, 0x60($s1)
/* 42A924 802A9434 A6200044 */ sh $zero, 0x44($s1)
/* 42A928 802A9438 A6200048 */ sh $zero, 0x48($s1)
/* 42A92C 802A943C A2420084 */ sb $v0, 0x84($s2)
/* 42A930 802A9440 8E420000 */ lw $v0, ($s2)
/* 42A934 802A9444 2403000A */ addiu $v1, $zero, 0xa
/* 42A938 802A9448 A2400081 */ sb $zero, 0x81($s2)
/* 42A93C 802A944C A2400086 */ sb $zero, 0x86($s2)
/* 42A940 802A9450 A623004C */ sh $v1, 0x4c($s1)
/* 42A944 802A9454 00441024 */ and $v0, $v0, $a0
/* 42A948 802A9458 0C09A446 */ jal func_80269118
/* 42A94C 802A945C AE420000 */ sw $v0, ($s2)
/* 42A950 802A9460 080AA51C */ j .L802A9470
/* 42A954 802A9464 24020002 */ addiu $v0, $zero, 2
.L802A9468:
/* 42A958 802A9468 A0600081 */ sb $zero, 0x81($v1)
/* 42A95C 802A946C 24020002 */ addiu $v0, $zero, 2
.L802A9470:
/* 42A960 802A9470 8FBF0020 */ lw $ra, 0x20($sp)
/* 42A964 802A9474 8FB3001C */ lw $s3, 0x1c($sp)
/* 42A968 802A9478 8FB20018 */ lw $s2, 0x18($sp)
/* 42A96C 802A947C 8FB10014 */ lw $s1, 0x14($sp)
/* 42A970 802A9480 8FB00010 */ lw $s0, 0x10($sp)
/* 42A974 802A9484 03E00008 */ jr $ra
/* 42A978 802A9488 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,821 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A948C_42A97C
/* 42A97C 802A948C 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 42A980 802A9490 AFB10014 */ sw $s1, 0x14($sp)
/* 42A984 802A9494 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42A988 802A9498 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42A98C 802A949C AFBF0018 */ sw $ra, 0x18($sp)
/* 42A990 802A94A0 AFB00010 */ sw $s0, 0x10($sp)
/* 42A994 802A94A4 8623004C */ lh $v1, 0x4c($s1)
/* 42A998 802A94A8 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 42A99C 802A94AC 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 42A9A0 802A94B0 2C620012 */ sltiu $v0, $v1, 0x12
/* 42A9A4 802A94B4 104002D2 */ beqz $v0, .L802AA000
/* 42A9A8 802A94B8 00031080 */ sll $v0, $v1, 2
/* 42A9AC 802A94BC 3C01802B */ lui $at, %hi(D_802AB1B0)
/* 42A9B0 802A94C0 00220821 */ addu $at, $at, $v0
/* 42A9B4 802A94C4 8C22B1B0 */ lw $v0, %lo(D_802AB1B0)($at)
/* 42A9B8 802A94C8 00400008 */ jr $v0
/* 42A9BC 802A94CC 00000000 */ nop
/* 42A9C0 802A94D0 0C093EB1 */ jal set_popup_duration
/* 42A9C4 802A94D4 24040063 */ addiu $a0, $zero, 0x63
/* 42A9C8 802A94D8 82220061 */ lb $v0, 0x61($s1)
/* 42A9CC 802A94DC 8E300004 */ lw $s0, 4($s1)
/* 42A9D0 802A94E0 10400004 */ beqz $v0, .L802A94F4
/* 42A9D4 802A94E4 0200202D */ daddu $a0, $s0, $zero
/* 42A9D8 802A94E8 0C05128B */ jal clear_icon_flags
/* 42A9DC 802A94EC 24050002 */ addiu $a1, $zero, 2
/* 42A9E0 802A94F0 0200202D */ daddu $a0, $s0, $zero
.L802A94F4:
/* 42A9E4 802A94F4 0C0513AC */ jal icon_set_opacity
/* 42A9E8 802A94F8 240500FF */ addiu $a1, $zero, 0xff
/* 42A9EC 802A94FC 8E300008 */ lw $s0, 8($s1)
/* 42A9F0 802A9500 240500FF */ addiu $a1, $zero, 0xff
/* 42A9F4 802A9504 0C0513AC */ jal icon_set_opacity
/* 42A9F8 802A9508 0200202D */ daddu $a0, $s0, $zero
/* 42A9FC 802A950C 82220061 */ lb $v0, 0x61($s1)
/* 42AA00 802A9510 10400003 */ beqz $v0, .L802A9520
/* 42AA04 802A9514 0200202D */ daddu $a0, $s0, $zero
/* 42AA08 802A9518 0C05128B */ jal clear_icon_flags
/* 42AA0C 802A951C 24050002 */ addiu $a1, $zero, 2
.L802A9520:
/* 42AA10 802A9520 8E30000C */ lw $s0, 0xc($s1)
/* 42AA14 802A9524 240500FF */ addiu $a1, $zero, 0xff
/* 42AA18 802A9528 0C0513AC */ jal icon_set_opacity
/* 42AA1C 802A952C 0200202D */ daddu $a0, $s0, $zero
/* 42AA20 802A9530 82220061 */ lb $v0, 0x61($s1)
/* 42AA24 802A9534 10400003 */ beqz $v0, .L802A9544
/* 42AA28 802A9538 0200202D */ daddu $a0, $s0, $zero
/* 42AA2C 802A953C 0C05128B */ jal clear_icon_flags
/* 42AA30 802A9540 24050002 */ addiu $a1, $zero, 2
.L802A9544:
/* 42AA34 802A9544 8E300010 */ lw $s0, 0x10($s1)
/* 42AA38 802A9548 240500FF */ addiu $a1, $zero, 0xff
/* 42AA3C 802A954C 0C0513AC */ jal icon_set_opacity
/* 42AA40 802A9550 0200202D */ daddu $a0, $s0, $zero
/* 42AA44 802A9554 82220061 */ lb $v0, 0x61($s1)
/* 42AA48 802A9558 10400003 */ beqz $v0, .L802A9568
/* 42AA4C 802A955C 0200202D */ daddu $a0, $s0, $zero
/* 42AA50 802A9560 0C05128B */ jal clear_icon_flags
/* 42AA54 802A9564 24050002 */ addiu $a1, $zero, 2
.L802A9568:
/* 42AA58 802A9568 8E300014 */ lw $s0, 0x14($s1)
/* 42AA5C 802A956C 240500FF */ addiu $a1, $zero, 0xff
/* 42AA60 802A9570 0C0513AC */ jal icon_set_opacity
/* 42AA64 802A9574 0200202D */ daddu $a0, $s0, $zero
/* 42AA68 802A9578 82220061 */ lb $v0, 0x61($s1)
/* 42AA6C 802A957C 10400003 */ beqz $v0, .L802A958C
/* 42AA70 802A9580 0200202D */ daddu $a0, $s0, $zero
/* 42AA74 802A9584 0C05128B */ jal clear_icon_flags
/* 42AA78 802A9588 24050002 */ addiu $a1, $zero, 2
.L802A958C:
/* 42AA7C 802A958C 8E30002C */ lw $s0, 0x2c($s1)
/* 42AA80 802A9590 240500FF */ addiu $a1, $zero, 0xff
/* 42AA84 802A9594 0C0513AC */ jal icon_set_opacity
/* 42AA88 802A9598 0200202D */ daddu $a0, $s0, $zero
/* 42AA8C 802A959C 82220061 */ lb $v0, 0x61($s1)
/* 42AA90 802A95A0 10400003 */ beqz $v0, .L802A95B0
/* 42AA94 802A95A4 0200202D */ daddu $a0, $s0, $zero
/* 42AA98 802A95A8 0C05128B */ jal clear_icon_flags
/* 42AA9C 802A95AC 24050002 */ addiu $a1, $zero, 2
.L802A95B0:
/* 42AAA0 802A95B0 8E300030 */ lw $s0, 0x30($s1)
/* 42AAA4 802A95B4 240500FF */ addiu $a1, $zero, 0xff
/* 42AAA8 802A95B8 0C0513AC */ jal icon_set_opacity
/* 42AAAC 802A95BC 0200202D */ daddu $a0, $s0, $zero
/* 42AAB0 802A95C0 82220061 */ lb $v0, 0x61($s1)
/* 42AAB4 802A95C4 10400003 */ beqz $v0, .L802A95D4
/* 42AAB8 802A95C8 0200202D */ daddu $a0, $s0, $zero
/* 42AABC 802A95CC 0C05128B */ jal clear_icon_flags
/* 42AAC0 802A95D0 24050002 */ addiu $a1, $zero, 2
.L802A95D4:
/* 42AAC4 802A95D4 8E300034 */ lw $s0, 0x34($s1)
/* 42AAC8 802A95D8 240500FF */ addiu $a1, $zero, 0xff
/* 42AACC 802A95DC 0C0513AC */ jal icon_set_opacity
/* 42AAD0 802A95E0 0200202D */ daddu $a0, $s0, $zero
/* 42AAD4 802A95E4 82220061 */ lb $v0, 0x61($s1)
/* 42AAD8 802A95E8 10400003 */ beqz $v0, .L802A95F8
/* 42AADC 802A95EC 0200202D */ daddu $a0, $s0, $zero
/* 42AAE0 802A95F0 0C05128B */ jal clear_icon_flags
/* 42AAE4 802A95F4 24050002 */ addiu $a1, $zero, 2
.L802A95F8:
/* 42AAE8 802A95F8 8E300038 */ lw $s0, 0x38($s1)
/* 42AAEC 802A95FC 240500FF */ addiu $a1, $zero, 0xff
/* 42AAF0 802A9600 0C0513AC */ jal icon_set_opacity
/* 42AAF4 802A9604 0200202D */ daddu $a0, $s0, $zero
/* 42AAF8 802A9608 82220061 */ lb $v0, 0x61($s1)
/* 42AAFC 802A960C 10400003 */ beqz $v0, .L802A961C
/* 42AB00 802A9610 0200202D */ daddu $a0, $s0, $zero
/* 42AB04 802A9614 0C05128B */ jal clear_icon_flags
/* 42AB08 802A9618 24050002 */ addiu $a1, $zero, 2
.L802A961C:
/* 42AB0C 802A961C 24020001 */ addiu $v0, $zero, 1
/* 42AB10 802A9620 080AA800 */ j .L802AA000
/* 42AB14 802A9624 A622004C */ sh $v0, 0x4c($s1)
/* 42AB18 802A9628 0C093EB1 */ jal set_popup_duration
/* 42AB1C 802A962C 24040063 */ addiu $a0, $zero, 0x63
/* 42AB20 802A9630 8622006C */ lh $v0, 0x6c($s1)
/* 42AB24 802A9634 9623006C */ lhu $v1, 0x6c($s1)
/* 42AB28 802A9638 10400003 */ beqz $v0, .L802A9648
/* 42AB2C 802A963C 2462FFFF */ addiu $v0, $v1, -1
/* 42AB30 802A9640 080AA800 */ j .L802AA000
/* 42AB34 802A9644 A622006C */ sh $v0, 0x6c($s1)
.L802A9648:
/* 42AB38 802A9648 96220056 */ lhu $v0, 0x56($s1)
/* 42AB3C 802A964C 24420014 */ addiu $v0, $v0, 0x14
/* 42AB40 802A9650 A6220056 */ sh $v0, 0x56($s1)
/* 42AB44 802A9654 00021400 */ sll $v0, $v0, 0x10
/* 42AB48 802A9658 00021403 */ sra $v0, $v0, 0x10
/* 42AB4C 802A965C 28420033 */ slti $v0, $v0, 0x33
/* 42AB50 802A9660 14400002 */ bnez $v0, .L802A966C
/* 42AB54 802A9664 24020032 */ addiu $v0, $zero, 0x32
/* 42AB58 802A9668 A6220056 */ sh $v0, 0x56($s1)
.L802A966C:
/* 42AB5C 802A966C 8E240004 */ lw $a0, 4($s1)
/* 42AB60 802A9670 86250056 */ lh $a1, 0x56($s1)
/* 42AB64 802A9674 0C051261 */ jal set_icon_render_pos
/* 42AB68 802A9678 86260058 */ lh $a2, 0x58($s1)
/* 42AB6C 802A967C 8E240008 */ lw $a0, 8($s1)
/* 42AB70 802A9680 86250056 */ lh $a1, 0x56($s1)
/* 42AB74 802A9684 86260058 */ lh $a2, 0x58($s1)
/* 42AB78 802A9688 24A5001C */ addiu $a1, $a1, 0x1c
/* 42AB7C 802A968C 0C051261 */ jal set_icon_render_pos
/* 42AB80 802A9690 24C6001C */ addiu $a2, $a2, 0x1c
/* 42AB84 802A9694 8E24000C */ lw $a0, 0xc($s1)
/* 42AB88 802A9698 86250056 */ lh $a1, 0x56($s1)
/* 42AB8C 802A969C 86260058 */ lh $a2, 0x58($s1)
/* 42AB90 802A96A0 24A50015 */ addiu $a1, $a1, 0x15
/* 42AB94 802A96A4 0C051261 */ jal set_icon_render_pos
/* 42AB98 802A96A8 24C60018 */ addiu $a2, $a2, 0x18
/* 42AB9C 802A96AC 8E240010 */ lw $a0, 0x10($s1)
/* 42ABA0 802A96B0 86250056 */ lh $a1, 0x56($s1)
/* 42ABA4 802A96B4 86260058 */ lh $a2, 0x58($s1)
/* 42ABA8 802A96B8 24A50029 */ addiu $a1, $a1, 0x29
/* 42ABAC 802A96BC 0C051261 */ jal set_icon_render_pos
/* 42ABB0 802A96C0 24C60018 */ addiu $a2, $a2, 0x18
/* 42ABB4 802A96C4 8E240014 */ lw $a0, 0x14($s1)
/* 42ABB8 802A96C8 86250056 */ lh $a1, 0x56($s1)
/* 42ABBC 802A96CC 86260058 */ lh $a2, 0x58($s1)
/* 42ABC0 802A96D0 24A5003D */ addiu $a1, $a1, 0x3d
/* 42ABC4 802A96D4 0C051261 */ jal set_icon_render_pos
/* 42ABC8 802A96D8 24C60018 */ addiu $a2, $a2, 0x18
/* 42ABCC 802A96DC 24020001 */ addiu $v0, $zero, 1
/* 42ABD0 802A96E0 86230064 */ lh $v1, 0x64($s1)
/* 42ABD4 802A96E4 8E30002C */ lw $s0, 0x2c($s1)
/* 42ABD8 802A96E8 10620010 */ beq $v1, $v0, .L802A972C
/* 42ABDC 802A96EC 28620002 */ slti $v0, $v1, 2
/* 42ABE0 802A96F0 10400005 */ beqz $v0, .L802A9708
/* 42ABE4 802A96F4 24020002 */ addiu $v0, $zero, 2
/* 42ABE8 802A96F8 10600007 */ beqz $v1, .L802A9718
/* 42ABEC 802A96FC 0200202D */ daddu $a0, $s0, $zero
/* 42ABF0 802A9700 080AA5D2 */ j .L802A9748
/* 42ABF4 802A9704 00000000 */ nop
.L802A9708:
/* 42ABF8 802A9708 10620009 */ beq $v1, $v0, .L802A9730
/* 42ABFC 802A970C 0200202D */ daddu $a0, $s0, $zero
/* 42AC00 802A9710 080AA5D2 */ j .L802A9748
/* 42AC04 802A9714 00000000 */ nop
.L802A9718:
/* 42AC08 802A9718 86250056 */ lh $a1, 0x56($s1)
/* 42AC0C 802A971C 86260058 */ lh $a2, 0x58($s1)
/* 42AC10 802A9720 24A5005B */ addiu $a1, $a1, 0x5b
/* 42AC14 802A9724 080AA5D0 */ j .L802A9740
/* 42AC18 802A9728 24C60007 */ addiu $a2, $a2, 7
.L802A972C:
/* 42AC1C 802A972C 0200202D */ daddu $a0, $s0, $zero
.L802A9730:
/* 42AC20 802A9730 86250056 */ lh $a1, 0x56($s1)
/* 42AC24 802A9734 86260058 */ lh $a2, 0x58($s1)
/* 42AC28 802A9738 24A5005B */ addiu $a1, $a1, 0x5b
/* 42AC2C 802A973C 24C6000D */ addiu $a2, $a2, 0xd
.L802A9740:
/* 42AC30 802A9740 0C051261 */ jal set_icon_render_pos
/* 42AC34 802A9744 00000000 */ nop
.L802A9748:
/* 42AC38 802A9748 8E240030 */ lw $a0, 0x30($s1)
/* 42AC3C 802A974C 86250056 */ lh $a1, 0x56($s1)
/* 42AC40 802A9750 86260058 */ lh $a2, 0x58($s1)
/* 42AC44 802A9754 24A5FFFB */ addiu $a1, $a1, -5
/* 42AC48 802A9758 0C051261 */ jal set_icon_render_pos
/* 42AC4C 802A975C 24C6001D */ addiu $a2, $a2, 0x1d
/* 42AC50 802A9760 8E240034 */ lw $a0, 0x34($s1)
/* 42AC54 802A9764 86250056 */ lh $a1, 0x56($s1)
/* 42AC58 802A9768 86260058 */ lh $a2, 0x58($s1)
/* 42AC5C 802A976C 24A50007 */ addiu $a1, $a1, 7
/* 42AC60 802A9770 0C051261 */ jal set_icon_render_pos
/* 42AC64 802A9774 24C6001D */ addiu $a2, $a2, 0x1d
/* 42AC68 802A9778 8E240038 */ lw $a0, 0x38($s1)
/* 42AC6C 802A977C 86250056 */ lh $a1, 0x56($s1)
/* 42AC70 802A9780 86260058 */ lh $a2, 0x58($s1)
/* 42AC74 802A9784 24A5005C */ addiu $a1, $a1, 0x5c
/* 42AC78 802A9788 0C051261 */ jal set_icon_render_pos
/* 42AC7C 802A978C 24C60017 */ addiu $a2, $a2, 0x17
/* 42AC80 802A9790 080AA800 */ j .L802AA000
/* 42AC84 802A9794 00000000 */ nop
/* 42AC88 802A9798 0C093EB1 */ jal set_popup_duration
/* 42AC8C 802A979C 24040063 */ addiu $a0, $zero, 0x63
/* 42AC90 802A97A0 8622004E */ lh $v0, 0x4e($s1)
/* 42AC94 802A97A4 9623004E */ lhu $v1, 0x4e($s1)
/* 42AC98 802A97A8 10400003 */ beqz $v0, .L802A97B8
/* 42AC9C 802A97AC 2462FFFF */ addiu $v0, $v1, -1
/* 42ACA0 802A97B0 080AA800 */ j .L802AA000
/* 42ACA4 802A97B4 A622004E */ sh $v0, 0x4e($s1)
.L802A97B8:
/* 42ACA8 802A97B8 96220052 */ lhu $v0, 0x52($s1)
/* 42ACAC 802A97BC 2442FFC4 */ addiu $v0, $v0, -0x3c
/* 42ACB0 802A97C0 A6220054 */ sh $v0, 0x54($s1)
/* 42ACB4 802A97C4 00021400 */ sll $v0, $v0, 0x10
/* 42ACB8 802A97C8 00021403 */ sra $v0, $v0, 0x10
/* 42ACBC 802A97CC 2842002A */ slti $v0, $v0, 0x2a
/* 42ACC0 802A97D0 10400002 */ beqz $v0, .L802A97DC
/* 42ACC4 802A97D4 2402002A */ addiu $v0, $zero, 0x2a
/* 42ACC8 802A97D8 A6220054 */ sh $v0, 0x54($s1)
.L802A97DC:
/* 42ACCC 802A97DC 2402000B */ addiu $v0, $zero, 0xb
/* 42ACD0 802A97E0 A622004C */ sh $v0, 0x4c($s1)
/* 42ACD4 802A97E4 0C093EB1 */ jal set_popup_duration
/* 42ACD8 802A97E8 24040063 */ addiu $a0, $zero, 0x63
/* 42ACDC 802A97EC 86230054 */ lh $v1, 0x54($s1)
/* 42ACE0 802A97F0 2402002A */ addiu $v0, $zero, 0x2a
/* 42ACE4 802A97F4 1462000A */ bne $v1, $v0, .L802A9820
/* 42ACE8 802A97F8 24020016 */ addiu $v0, $zero, 0x16
/* 42ACEC 802A97FC 8E240030 */ lw $a0, 0x30($s1)
/* 42ACF0 802A9800 3C058029 */ lui $a1, %hi(D_802928CC)
/* 42ACF4 802A9804 24A528CC */ addiu $a1, $a1, %lo(D_802928CC)
/* 42ACF8 802A9808 0C0511FF */ jal set_menu_icon_script
/* 42ACFC 802A980C 00000000 */ nop
/* 42AD00 802A9810 0C05272D */ jal play_sound
/* 42AD04 802A9814 24040233 */ addiu $a0, $zero, 0x233
/* 42AD08 802A9818 86230054 */ lh $v1, 0x54($s1)
/* 42AD0C 802A981C 24020016 */ addiu $v0, $zero, 0x16
.L802A9820:
/* 42AD10 802A9820 14620008 */ bne $v1, $v0, .L802A9844
/* 42AD14 802A9824 00000000 */ nop
/* 42AD18 802A9828 8E240034 */ lw $a0, 0x34($s1)
/* 42AD1C 802A982C 3C058029 */ lui $a1, %hi(D_80292874)
/* 42AD20 802A9830 24A52874 */ addiu $a1, $a1, %lo(D_80292874)
/* 42AD24 802A9834 0C0511FF */ jal set_menu_icon_script
/* 42AD28 802A9838 00000000 */ nop
/* 42AD2C 802A983C 0C05272D */ jal play_sound
/* 42AD30 802A9840 24040233 */ addiu $a0, $zero, 0x233
.L802A9844:
/* 42AD34 802A9844 86230054 */ lh $v1, 0x54($s1)
/* 42AD38 802A9848 24020002 */ addiu $v0, $zero, 2
/* 42AD3C 802A984C 1462000D */ bne $v1, $v0, .L802A9884
/* 42AD40 802A9850 00000000 */ nop
/* 42AD44 802A9854 8E24000C */ lw $a0, 0xc($s1)
/* 42AD48 802A9858 3C058029 */ lui $a1, %hi(D_80292788)
/* 42AD4C 802A985C 24A52788 */ addiu $a1, $a1, %lo(D_80292788)
/* 42AD50 802A9860 0C0511FF */ jal set_menu_icon_script
/* 42AD54 802A9864 00000000 */ nop
/* 42AD58 802A9868 8E240004 */ lw $a0, 4($s1)
/* 42AD5C 802A986C 3C058011 */ lui $a1, %hi(D_80108B54)
/* 42AD60 802A9870 24A58B54 */ addiu $a1, $a1, %lo(D_80108B54)
/* 42AD64 802A9874 0C0511FF */ jal set_menu_icon_script
/* 42AD68 802A9878 00000000 */ nop
/* 42AD6C 802A987C 0C05272D */ jal play_sound
/* 42AD70 802A9880 24040234 */ addiu $a0, $zero, 0x234
.L802A9884:
/* 42AD74 802A9884 96220054 */ lhu $v0, 0x54($s1)
/* 42AD78 802A9888 2442FFFF */ addiu $v0, $v0, -1
/* 42AD7C 802A988C A6220054 */ sh $v0, 0x54($s1)
/* 42AD80 802A9890 00021400 */ sll $v0, $v0, 0x10
/* 42AD84 802A9894 144001DA */ bnez $v0, .L802AA000
/* 42AD88 802A9898 24020014 */ addiu $v0, $zero, 0x14
/* 42AD8C 802A989C A6220054 */ sh $v0, 0x54($s1)
/* 42AD90 802A98A0 080AA75A */ j .L802A9D68
/* 42AD94 802A98A4 2402000C */ addiu $v0, $zero, 0xc
/* 42AD98 802A98A8 0C093EB1 */ jal set_popup_duration
/* 42AD9C 802A98AC 24040063 */ addiu $a0, $zero, 0x63
/* 42ADA0 802A98B0 82220060 */ lb $v0, 0x60($s1)
/* 42ADA4 802A98B4 1440003A */ bnez $v0, .L802A99A0
/* 42ADA8 802A98B8 00000000 */ nop
/* 42ADAC 802A98BC 8222005C */ lb $v0, 0x5c($s1)
/* 42ADB0 802A98C0 14400037 */ bnez $v0, .L802A99A0
/* 42ADB4 802A98C4 00000000 */ nop
/* 42ADB8 802A98C8 8222005D */ lb $v0, 0x5d($s1)
/* 42ADBC 802A98CC 2842FFFB */ slti $v0, $v0, -5
/* 42ADC0 802A98D0 14400033 */ bnez $v0, .L802A99A0
/* 42ADC4 802A98D4 00000000 */ nop
/* 42ADC8 802A98D8 86220050 */ lh $v0, 0x50($s1)
/* 42ADCC 802A98DC 8E030434 */ lw $v1, 0x434($s0)
/* 42ADD0 802A98E0 000210C0 */ sll $v0, $v0, 3
/* 42ADD4 802A98E4 00431021 */ addu $v0, $v0, $v1
/* 42ADD8 802A98E8 8C430000 */ lw $v1, ($v0)
/* 42ADDC 802A98EC 8C420004 */ lw $v0, 4($v0)
/* 42ADE0 802A98F0 82040431 */ lb $a0, 0x431($s0)
/* 42ADE4 802A98F4 00621821 */ addu $v1, $v1, $v0
/* 42ADE8 802A98F8 24630005 */ addiu $v1, $v1, 5
/* 42ADEC 802A98FC 00832023 */ subu $a0, $a0, $v1
/* 42ADF0 802A9900 04820001 */ bltzl $a0, .L802A9908
/* 42ADF4 802A9904 24840040 */ addiu $a0, $a0, 0x40
.L802A9908:
/* 42ADF8 802A9908 50600001 */ beql $v1, $zero, .L802A9910
/* 42ADFC 802A990C 24030001 */ addiu $v1, $zero, 1
.L802A9910:
/* 42AE00 802A9910 18600023 */ blez $v1, .L802A99A0
/* 42AE04 802A9914 0000302D */ daddu $a2, $zero, $zero
/* 42AE08 802A9918 24070001 */ addiu $a3, $zero, 1
/* 42AE0C 802A991C 00041080 */ sll $v0, $a0, 2
/* 42AE10 802A9920 00502821 */ addu $a1, $v0, $s0
.L802A9924:
/* 42AE14 802A9924 28820040 */ slti $v0, $a0, 0x40
/* 42AE18 802A9928 14400003 */ bnez $v0, .L802A9938
/* 42AE1C 802A992C 28C20005 */ slti $v0, $a2, 5
/* 42AE20 802A9930 24A5FF00 */ addiu $a1, $a1, -0x100
/* 42AE24 802A9934 2484FFC0 */ addiu $a0, $a0, -0x40
.L802A9938:
/* 42AE28 802A9938 10400006 */ beqz $v0, .L802A9954
/* 42AE2C 802A993C 00000000 */ nop
/* 42AE30 802A9940 8CA20330 */ lw $v0, 0x330($a1)
/* 42AE34 802A9944 30428000 */ andi $v0, $v0, 0x8000
/* 42AE38 802A9948 10400009 */ beqz $v0, .L802A9970
/* 42AE3C 802A994C 00000000 */ nop
/* 42AE40 802A9950 A2270060 */ sb $a3, 0x60($s1)
.L802A9954:
/* 42AE44 802A9954 8CA20330 */ lw $v0, 0x330($a1)
/* 42AE48 802A9958 30428000 */ andi $v0, $v0, 0x8000
/* 42AE4C 802A995C 10400004 */ beqz $v0, .L802A9970
/* 42AE50 802A9960 00000000 */ nop
/* 42AE54 802A9964 82220060 */ lb $v0, 0x60($s1)
/* 42AE58 802A9968 10400004 */ beqz $v0, .L802A997C
/* 42AE5C 802A996C 00000000 */ nop
.L802A9970:
/* 42AE60 802A9970 8222005E */ lb $v0, 0x5e($s1)
/* 42AE64 802A9974 50400006 */ beql $v0, $zero, .L802A9990
/* 42AE68 802A9978 24A50004 */ addiu $a1, $a1, 4
.L802A997C:
/* 42AE6C 802A997C 92020084 */ lbu $v0, 0x84($s0)
/* 42AE70 802A9980 A227005C */ sb $a3, 0x5c($s1)
/* 42AE74 802A9984 24420001 */ addiu $v0, $v0, 1
/* 42AE78 802A9988 080AA668 */ j .L802A99A0
/* 42AE7C 802A998C A2020084 */ sb $v0, 0x84($s0)
.L802A9990:
/* 42AE80 802A9990 24C60001 */ addiu $a2, $a2, 1
/* 42AE84 802A9994 00C3102A */ slt $v0, $a2, $v1
/* 42AE88 802A9998 1440FFE2 */ bnez $v0, .L802A9924
/* 42AE8C 802A999C 24840001 */ addiu $a0, $a0, 1
.L802A99A0:
/* 42AE90 802A99A0 8222005D */ lb $v0, 0x5d($s1)
/* 42AE94 802A99A4 2842FFFC */ slti $v0, $v0, -4
/* 42AE98 802A99A8 1440001C */ bnez $v0, .L802A9A1C
/* 42AE9C 802A99AC 00000000 */ nop
/* 42AEA0 802A99B0 82220060 */ lb $v0, 0x60($s1)
/* 42AEA4 802A99B4 14400004 */ bnez $v0, .L802A99C8
/* 42AEA8 802A99B8 00000000 */ nop
/* 42AEAC 802A99BC 8222005C */ lb $v0, 0x5c($s1)
/* 42AEB0 802A99C0 10400016 */ beqz $v0, .L802A9A1C
/* 42AEB4 802A99C4 00000000 */ nop
.L802A99C8:
/* 42AEB8 802A99C8 8222005C */ lb $v0, 0x5c($s1)
/* 42AEBC 802A99CC 8E30001C */ lw $s0, 0x1c($s1)
/* 42AEC0 802A99D0 10400005 */ beqz $v0, .L802A99E8
/* 42AEC4 802A99D4 0200202D */ daddu $a0, $s0, $zero
/* 42AEC8 802A99D8 3C058029 */ lui $a1, %hi(D_80292B54)
/* 42AECC 802A99DC 24A52B54 */ addiu $a1, $a1, %lo(D_80292B54)
/* 42AED0 802A99E0 080AA67C */ j .L802A99F0
/* 42AED4 802A99E4 00000000 */ nop
.L802A99E8:
/* 42AED8 802A99E8 3C058029 */ lui $a1, %hi(D_80292B80)
/* 42AEDC 802A99EC 24A52B80 */ addiu $a1, $a1, %lo(D_80292B80)
.L802A99F0:
/* 42AEE0 802A99F0 0C0511FF */ jal set_menu_icon_script
/* 42AEE4 802A99F4 00000000 */ nop
/* 42AEE8 802A99F8 0200202D */ daddu $a0, $s0, $zero
/* 42AEEC 802A99FC 86250056 */ lh $a1, 0x56($s1)
/* 42AEF0 802A9A00 86260058 */ lh $a2, 0x58($s1)
/* 42AEF4 802A9A04 24A5001C */ addiu $a1, $a1, 0x1c
/* 42AEF8 802A9A08 0C051261 */ jal set_icon_render_pos
/* 42AEFC 802A9A0C 24C60026 */ addiu $a2, $a2, 0x26
/* 42AF00 802A9A10 0200202D */ daddu $a0, $s0, $zero
/* 42AF04 802A9A14 0C05128B */ jal clear_icon_flags
/* 42AF08 802A9A18 24050002 */ addiu $a1, $zero, 2
.L802A9A1C:
/* 42AF0C 802A9A1C 8223005D */ lb $v1, 0x5d($s1)
/* 42AF10 802A9A20 2402FFFB */ addiu $v0, $zero, -5
/* 42AF14 802A9A24 1462001B */ bne $v1, $v0, .L802A9A94
/* 42AF18 802A9A28 00000000 */ nop
/* 42AF1C 802A9A2C 8222005C */ lb $v0, 0x5c($s1)
/* 42AF20 802A9A30 8E30001C */ lw $s0, 0x1c($s1)
/* 42AF24 802A9A34 10400005 */ beqz $v0, .L802A9A4C
/* 42AF28 802A9A38 0200202D */ daddu $a0, $s0, $zero
/* 42AF2C 802A9A3C 3C058029 */ lui $a1, %hi(D_80292B54)
/* 42AF30 802A9A40 24A52B54 */ addiu $a1, $a1, %lo(D_80292B54)
/* 42AF34 802A9A44 080AA695 */ j .L802A9A54
/* 42AF38 802A9A48 00000000 */ nop
.L802A9A4C:
/* 42AF3C 802A9A4C 3C058029 */ lui $a1, %hi(D_80292B80)
/* 42AF40 802A9A50 24A52B80 */ addiu $a1, $a1, %lo(D_80292B80)
.L802A9A54:
/* 42AF44 802A9A54 0C0511FF */ jal set_menu_icon_script
/* 42AF48 802A9A58 00000000 */ nop
/* 42AF4C 802A9A5C 0200202D */ daddu $a0, $s0, $zero
/* 42AF50 802A9A60 86250056 */ lh $a1, 0x56($s1)
/* 42AF54 802A9A64 86260058 */ lh $a2, 0x58($s1)
/* 42AF58 802A9A68 24A5001C */ addiu $a1, $a1, 0x1c
/* 42AF5C 802A9A6C 0C051261 */ jal set_icon_render_pos
/* 42AF60 802A9A70 24C60026 */ addiu $a2, $a2, 0x26
/* 42AF64 802A9A74 0200202D */ daddu $a0, $s0, $zero
/* 42AF68 802A9A78 0C05128B */ jal clear_icon_flags
/* 42AF6C 802A9A7C 24050002 */ addiu $a1, $zero, 2
/* 42AF70 802A9A80 8E240004 */ lw $a0, 4($s1)
/* 42AF74 802A9A84 3C058011 */ lui $a1, %hi(D_80108B28)
/* 42AF78 802A9A88 24A58B28 */ addiu $a1, $a1, %lo(D_80108B28)
/* 42AF7C 802A9A8C 0C0511FF */ jal set_menu_icon_script
/* 42AF80 802A9A90 00000000 */ nop
.L802A9A94:
/* 42AF84 802A9A94 9222005D */ lbu $v0, 0x5d($s1)
/* 42AF88 802A9A98 86230054 */ lh $v1, 0x54($s1)
/* 42AF8C 802A9A9C 2442FFFF */ addiu $v0, $v0, -1
/* 42AF90 802A9AA0 A222005D */ sb $v0, 0x5d($s1)
/* 42AF94 802A9AA4 24020002 */ addiu $v0, $zero, 2
/* 42AF98 802A9AA8 1462000D */ bne $v1, $v0, .L802A9AE0
/* 42AF9C 802A9AAC 00000000 */ nop
/* 42AFA0 802A9AB0 8E240010 */ lw $a0, 0x10($s1)
/* 42AFA4 802A9AB4 3C058029 */ lui $a1, %hi(D_80292788)
/* 42AFA8 802A9AB8 24A52788 */ addiu $a1, $a1, %lo(D_80292788)
/* 42AFAC 802A9ABC 0C0511FF */ jal set_menu_icon_script
/* 42AFB0 802A9AC0 00000000 */ nop
/* 42AFB4 802A9AC4 8E240004 */ lw $a0, 4($s1)
/* 42AFB8 802A9AC8 3C058011 */ lui $a1, %hi(D_80108B54)
/* 42AFBC 802A9ACC 24A58B54 */ addiu $a1, $a1, %lo(D_80108B54)
/* 42AFC0 802A9AD0 0C0511FF */ jal set_menu_icon_script
/* 42AFC4 802A9AD4 00000000 */ nop
/* 42AFC8 802A9AD8 0C05272D */ jal play_sound
/* 42AFCC 802A9ADC 24040234 */ addiu $a0, $zero, 0x234
.L802A9AE0:
/* 42AFD0 802A9AE0 96220054 */ lhu $v0, 0x54($s1)
/* 42AFD4 802A9AE4 2442FFFF */ addiu $v0, $v0, -1
/* 42AFD8 802A9AE8 A6220054 */ sh $v0, 0x54($s1)
/* 42AFDC 802A9AEC 00021400 */ sll $v0, $v0, 0x10
/* 42AFE0 802A9AF0 14400143 */ bnez $v0, .L802AA000
/* 42AFE4 802A9AF4 24020014 */ addiu $v0, $zero, 0x14
/* 42AFE8 802A9AF8 A6220054 */ sh $v0, 0x54($s1)
/* 42AFEC 802A9AFC 080AA75A */ j .L802A9D68
/* 42AFF0 802A9B00 2402000D */ addiu $v0, $zero, 0xd
/* 42AFF4 802A9B04 0C093EB1 */ jal set_popup_duration
/* 42AFF8 802A9B08 24040063 */ addiu $a0, $zero, 0x63
/* 42AFFC 802A9B0C 82220060 */ lb $v0, 0x60($s1)
/* 42B000 802A9B10 1440003D */ bnez $v0, .L802A9C08
/* 42B004 802A9B14 00000000 */ nop
/* 42B008 802A9B18 8222005C */ lb $v0, 0x5c($s1)
/* 42B00C 802A9B1C 1440003A */ bnez $v0, .L802A9C08
/* 42B010 802A9B20 00000000 */ nop
/* 42B014 802A9B24 8222005D */ lb $v0, 0x5d($s1)
/* 42B018 802A9B28 2842FFFB */ slti $v0, $v0, -5
/* 42B01C 802A9B2C 14400036 */ bnez $v0, .L802A9C08
/* 42B020 802A9B30 00000000 */ nop
/* 42B024 802A9B34 86220050 */ lh $v0, 0x50($s1)
/* 42B028 802A9B38 8E030434 */ lw $v1, 0x434($s0)
/* 42B02C 802A9B3C 000210C0 */ sll $v0, $v0, 3
/* 42B030 802A9B40 00431021 */ addu $v0, $v0, $v1
/* 42B034 802A9B44 8C430000 */ lw $v1, ($v0)
/* 42B038 802A9B48 8C420004 */ lw $v0, 4($v0)
/* 42B03C 802A9B4C 00621821 */ addu $v1, $v1, $v0
/* 42B040 802A9B50 24630004 */ addiu $v1, $v1, 4
/* 42B044 802A9B54 28620006 */ slti $v0, $v1, 6
/* 42B048 802A9B58 54400001 */ bnel $v0, $zero, .L802A9B60
/* 42B04C 802A9B5C 24030006 */ addiu $v1, $zero, 6
.L802A9B60:
/* 42B050 802A9B60 82040431 */ lb $a0, 0x431($s0)
/* 42B054 802A9B64 00832023 */ subu $a0, $a0, $v1
/* 42B058 802A9B68 04820001 */ bltzl $a0, .L802A9B70
/* 42B05C 802A9B6C 24840040 */ addiu $a0, $a0, 0x40
.L802A9B70:
/* 42B060 802A9B70 50600001 */ beql $v1, $zero, .L802A9B78
/* 42B064 802A9B74 24030001 */ addiu $v1, $zero, 1
.L802A9B78:
/* 42B068 802A9B78 18600023 */ blez $v1, .L802A9C08
/* 42B06C 802A9B7C 0000302D */ daddu $a2, $zero, $zero
/* 42B070 802A9B80 24070001 */ addiu $a3, $zero, 1
/* 42B074 802A9B84 00041080 */ sll $v0, $a0, 2
/* 42B078 802A9B88 00502821 */ addu $a1, $v0, $s0
.L802A9B8C:
/* 42B07C 802A9B8C 28820040 */ slti $v0, $a0, 0x40
/* 42B080 802A9B90 14400003 */ bnez $v0, .L802A9BA0
/* 42B084 802A9B94 28C20005 */ slti $v0, $a2, 5
/* 42B088 802A9B98 24A5FF00 */ addiu $a1, $a1, -0x100
/* 42B08C 802A9B9C 2484FFC0 */ addiu $a0, $a0, -0x40
.L802A9BA0:
/* 42B090 802A9BA0 10400006 */ beqz $v0, .L802A9BBC
/* 42B094 802A9BA4 00000000 */ nop
/* 42B098 802A9BA8 8CA20330 */ lw $v0, 0x330($a1)
/* 42B09C 802A9BAC 30428000 */ andi $v0, $v0, 0x8000
/* 42B0A0 802A9BB0 10400009 */ beqz $v0, .L802A9BD8
/* 42B0A4 802A9BB4 00000000 */ nop
/* 42B0A8 802A9BB8 A2270060 */ sb $a3, 0x60($s1)
.L802A9BBC:
/* 42B0AC 802A9BBC 8CA20330 */ lw $v0, 0x330($a1)
/* 42B0B0 802A9BC0 30428000 */ andi $v0, $v0, 0x8000
/* 42B0B4 802A9BC4 10400004 */ beqz $v0, .L802A9BD8
/* 42B0B8 802A9BC8 00000000 */ nop
/* 42B0BC 802A9BCC 82220060 */ lb $v0, 0x60($s1)
/* 42B0C0 802A9BD0 10400004 */ beqz $v0, .L802A9BE4
/* 42B0C4 802A9BD4 00000000 */ nop
.L802A9BD8:
/* 42B0C8 802A9BD8 8222005E */ lb $v0, 0x5e($s1)
/* 42B0CC 802A9BDC 50400006 */ beql $v0, $zero, .L802A9BF8
/* 42B0D0 802A9BE0 24A50004 */ addiu $a1, $a1, 4
.L802A9BE4:
/* 42B0D4 802A9BE4 92020084 */ lbu $v0, 0x84($s0)
/* 42B0D8 802A9BE8 A227005C */ sb $a3, 0x5c($s1)
/* 42B0DC 802A9BEC 24420001 */ addiu $v0, $v0, 1
/* 42B0E0 802A9BF0 080AA702 */ j .L802A9C08
/* 42B0E4 802A9BF4 A2020084 */ sb $v0, 0x84($s0)
.L802A9BF8:
/* 42B0E8 802A9BF8 24C60001 */ addiu $a2, $a2, 1
/* 42B0EC 802A9BFC 00C3102A */ slt $v0, $a2, $v1
/* 42B0F0 802A9C00 1440FFE2 */ bnez $v0, .L802A9B8C
/* 42B0F4 802A9C04 24840001 */ addiu $a0, $a0, 1
.L802A9C08:
/* 42B0F8 802A9C08 8222005D */ lb $v0, 0x5d($s1)
/* 42B0FC 802A9C0C 2842FFFC */ slti $v0, $v0, -4
/* 42B100 802A9C10 1440001C */ bnez $v0, .L802A9C84
/* 42B104 802A9C14 00000000 */ nop
/* 42B108 802A9C18 82220060 */ lb $v0, 0x60($s1)
/* 42B10C 802A9C1C 14400004 */ bnez $v0, .L802A9C30
/* 42B110 802A9C20 00000000 */ nop
/* 42B114 802A9C24 8222005C */ lb $v0, 0x5c($s1)
/* 42B118 802A9C28 10400016 */ beqz $v0, .L802A9C84
/* 42B11C 802A9C2C 00000000 */ nop
.L802A9C30:
/* 42B120 802A9C30 8222005C */ lb $v0, 0x5c($s1)
/* 42B124 802A9C34 8E300020 */ lw $s0, 0x20($s1)
/* 42B128 802A9C38 10400005 */ beqz $v0, .L802A9C50
/* 42B12C 802A9C3C 0200202D */ daddu $a0, $s0, $zero
/* 42B130 802A9C40 3C058029 */ lui $a1, %hi(D_80292B54)
/* 42B134 802A9C44 24A52B54 */ addiu $a1, $a1, %lo(D_80292B54)
/* 42B138 802A9C48 080AA716 */ j .L802A9C58
/* 42B13C 802A9C4C 00000000 */ nop
.L802A9C50:
/* 42B140 802A9C50 3C058029 */ lui $a1, %hi(D_80292B80)
/* 42B144 802A9C54 24A52B80 */ addiu $a1, $a1, %lo(D_80292B80)
.L802A9C58:
/* 42B148 802A9C58 0C0511FF */ jal set_menu_icon_script
/* 42B14C 802A9C5C 00000000 */ nop
/* 42B150 802A9C60 0200202D */ daddu $a0, $s0, $zero
/* 42B154 802A9C64 86250056 */ lh $a1, 0x56($s1)
/* 42B158 802A9C68 86260058 */ lh $a2, 0x58($s1)
/* 42B15C 802A9C6C 24A50030 */ addiu $a1, $a1, 0x30
/* 42B160 802A9C70 0C051261 */ jal set_icon_render_pos
/* 42B164 802A9C74 24C60026 */ addiu $a2, $a2, 0x26
/* 42B168 802A9C78 0200202D */ daddu $a0, $s0, $zero
/* 42B16C 802A9C7C 0C05128B */ jal clear_icon_flags
/* 42B170 802A9C80 24050002 */ addiu $a1, $zero, 2
.L802A9C84:
/* 42B174 802A9C84 8223005D */ lb $v1, 0x5d($s1)
/* 42B178 802A9C88 2402FFFB */ addiu $v0, $zero, -5
/* 42B17C 802A9C8C 1462001B */ bne $v1, $v0, .L802A9CFC
/* 42B180 802A9C90 00000000 */ nop
/* 42B184 802A9C94 8222005C */ lb $v0, 0x5c($s1)
/* 42B188 802A9C98 8E300020 */ lw $s0, 0x20($s1)
/* 42B18C 802A9C9C 10400005 */ beqz $v0, .L802A9CB4
/* 42B190 802A9CA0 0200202D */ daddu $a0, $s0, $zero
/* 42B194 802A9CA4 3C058029 */ lui $a1, %hi(D_80292B54)
/* 42B198 802A9CA8 24A52B54 */ addiu $a1, $a1, %lo(D_80292B54)
/* 42B19C 802A9CAC 080AA72F */ j .L802A9CBC
/* 42B1A0 802A9CB0 00000000 */ nop
.L802A9CB4:
/* 42B1A4 802A9CB4 3C058029 */ lui $a1, %hi(D_80292B80)
/* 42B1A8 802A9CB8 24A52B80 */ addiu $a1, $a1, %lo(D_80292B80)
.L802A9CBC:
/* 42B1AC 802A9CBC 0C0511FF */ jal set_menu_icon_script
/* 42B1B0 802A9CC0 00000000 */ nop
/* 42B1B4 802A9CC4 0200202D */ daddu $a0, $s0, $zero
/* 42B1B8 802A9CC8 86250056 */ lh $a1, 0x56($s1)
/* 42B1BC 802A9CCC 86260058 */ lh $a2, 0x58($s1)
/* 42B1C0 802A9CD0 24A50030 */ addiu $a1, $a1, 0x30
/* 42B1C4 802A9CD4 0C051261 */ jal set_icon_render_pos
/* 42B1C8 802A9CD8 24C60026 */ addiu $a2, $a2, 0x26
/* 42B1CC 802A9CDC 0200202D */ daddu $a0, $s0, $zero
/* 42B1D0 802A9CE0 0C05128B */ jal clear_icon_flags
/* 42B1D4 802A9CE4 24050002 */ addiu $a1, $zero, 2
/* 42B1D8 802A9CE8 8E240004 */ lw $a0, 4($s1)
/* 42B1DC 802A9CEC 3C058011 */ lui $a1, %hi(D_80108B28)
/* 42B1E0 802A9CF0 24A58B28 */ addiu $a1, $a1, %lo(D_80108B28)
/* 42B1E4 802A9CF4 0C0511FF */ jal set_menu_icon_script
/* 42B1E8 802A9CF8 00000000 */ nop
.L802A9CFC:
/* 42B1EC 802A9CFC 9222005D */ lbu $v0, 0x5d($s1)
/* 42B1F0 802A9D00 86230054 */ lh $v1, 0x54($s1)
/* 42B1F4 802A9D04 2442FFFF */ addiu $v0, $v0, -1
/* 42B1F8 802A9D08 A222005D */ sb $v0, 0x5d($s1)
/* 42B1FC 802A9D0C 24020002 */ addiu $v0, $zero, 2
/* 42B200 802A9D10 1462000D */ bne $v1, $v0, .L802A9D48
/* 42B204 802A9D14 00000000 */ nop
/* 42B208 802A9D18 8E240014 */ lw $a0, 0x14($s1)
/* 42B20C 802A9D1C 3C058029 */ lui $a1, %hi(D_80292788)
/* 42B210 802A9D20 24A52788 */ addiu $a1, $a1, %lo(D_80292788)
/* 42B214 802A9D24 0C0511FF */ jal set_menu_icon_script
/* 42B218 802A9D28 00000000 */ nop
/* 42B21C 802A9D2C 8E240004 */ lw $a0, 4($s1)
/* 42B220 802A9D30 3C058011 */ lui $a1, %hi(D_80108B54)
/* 42B224 802A9D34 24A58B54 */ addiu $a1, $a1, %lo(D_80108B54)
/* 42B228 802A9D38 0C0511FF */ jal set_menu_icon_script
/* 42B22C 802A9D3C 00000000 */ nop
/* 42B230 802A9D40 0C05272D */ jal play_sound
/* 42B234 802A9D44 24040234 */ addiu $a0, $zero, 0x234
.L802A9D48:
/* 42B238 802A9D48 96220054 */ lhu $v0, 0x54($s1)
/* 42B23C 802A9D4C 2442FFFF */ addiu $v0, $v0, -1
/* 42B240 802A9D50 A6220054 */ sh $v0, 0x54($s1)
/* 42B244 802A9D54 00021400 */ sll $v0, $v0, 0x10
/* 42B248 802A9D58 144000A9 */ bnez $v0, .L802AA000
/* 42B24C 802A9D5C 24020014 */ addiu $v0, $zero, 0x14
/* 42B250 802A9D60 A6220054 */ sh $v0, 0x54($s1)
/* 42B254 802A9D64 2402000E */ addiu $v0, $zero, 0xe
.L802A9D68:
/* 42B258 802A9D68 A220005D */ sb $zero, 0x5d($s1)
/* 42B25C 802A9D6C A622004C */ sh $v0, 0x4c($s1)
/* 42B260 802A9D70 A220005C */ sb $zero, 0x5c($s1)
/* 42B264 802A9D74 080AA800 */ j .L802AA000
/* 42B268 802A9D78 A2200060 */ sb $zero, 0x60($s1)
/* 42B26C 802A9D7C 0C093EB1 */ jal set_popup_duration
/* 42B270 802A9D80 24040063 */ addiu $a0, $zero, 0x63
/* 42B274 802A9D84 82220060 */ lb $v0, 0x60($s1)
/* 42B278 802A9D88 1440003D */ bnez $v0, .L802A9E80
/* 42B27C 802A9D8C 00000000 */ nop
/* 42B280 802A9D90 8222005C */ lb $v0, 0x5c($s1)
/* 42B284 802A9D94 1440003A */ bnez $v0, .L802A9E80
/* 42B288 802A9D98 00000000 */ nop
/* 42B28C 802A9D9C 8222005D */ lb $v0, 0x5d($s1)
/* 42B290 802A9DA0 2842FFFB */ slti $v0, $v0, -5
/* 42B294 802A9DA4 14400036 */ bnez $v0, .L802A9E80
/* 42B298 802A9DA8 00000000 */ nop
/* 42B29C 802A9DAC 86220050 */ lh $v0, 0x50($s1)
/* 42B2A0 802A9DB0 8E030434 */ lw $v1, 0x434($s0)
/* 42B2A4 802A9DB4 000210C0 */ sll $v0, $v0, 3
/* 42B2A8 802A9DB8 00431021 */ addu $v0, $v0, $v1
/* 42B2AC 802A9DBC 8C430000 */ lw $v1, ($v0)
/* 42B2B0 802A9DC0 8C420004 */ lw $v0, 4($v0)
/* 42B2B4 802A9DC4 00621821 */ addu $v1, $v1, $v0
/* 42B2B8 802A9DC8 24630003 */ addiu $v1, $v1, 3
/* 42B2BC 802A9DCC 28620006 */ slti $v0, $v1, 6
/* 42B2C0 802A9DD0 54400001 */ bnel $v0, $zero, .L802A9DD8
/* 42B2C4 802A9DD4 24030006 */ addiu $v1, $zero, 6
.L802A9DD8:
/* 42B2C8 802A9DD8 82040431 */ lb $a0, 0x431($s0)
/* 42B2CC 802A9DDC 00832023 */ subu $a0, $a0, $v1
/* 42B2D0 802A9DE0 04820001 */ bltzl $a0, .L802A9DE8
/* 42B2D4 802A9DE4 24840040 */ addiu $a0, $a0, 0x40
.L802A9DE8:
/* 42B2D8 802A9DE8 50600001 */ beql $v1, $zero, .L802A9DF0
/* 42B2DC 802A9DEC 24030001 */ addiu $v1, $zero, 1
.L802A9DF0:
/* 42B2E0 802A9DF0 18600023 */ blez $v1, .L802A9E80
/* 42B2E4 802A9DF4 0000302D */ daddu $a2, $zero, $zero
/* 42B2E8 802A9DF8 24070001 */ addiu $a3, $zero, 1
/* 42B2EC 802A9DFC 00041080 */ sll $v0, $a0, 2
/* 42B2F0 802A9E00 00502821 */ addu $a1, $v0, $s0
.L802A9E04:
/* 42B2F4 802A9E04 28820040 */ slti $v0, $a0, 0x40
/* 42B2F8 802A9E08 14400003 */ bnez $v0, .L802A9E18
/* 42B2FC 802A9E0C 28C20005 */ slti $v0, $a2, 5
/* 42B300 802A9E10 24A5FF00 */ addiu $a1, $a1, -0x100
/* 42B304 802A9E14 2484FFC0 */ addiu $a0, $a0, -0x40
.L802A9E18:
/* 42B308 802A9E18 10400006 */ beqz $v0, .L802A9E34
/* 42B30C 802A9E1C 00000000 */ nop
/* 42B310 802A9E20 8CA20330 */ lw $v0, 0x330($a1)
/* 42B314 802A9E24 30428000 */ andi $v0, $v0, 0x8000
/* 42B318 802A9E28 10400009 */ beqz $v0, .L802A9E50
/* 42B31C 802A9E2C 00000000 */ nop
/* 42B320 802A9E30 A2270060 */ sb $a3, 0x60($s1)
.L802A9E34:
/* 42B324 802A9E34 8CA20330 */ lw $v0, 0x330($a1)
/* 42B328 802A9E38 30428000 */ andi $v0, $v0, 0x8000
/* 42B32C 802A9E3C 10400004 */ beqz $v0, .L802A9E50
/* 42B330 802A9E40 00000000 */ nop
/* 42B334 802A9E44 82220060 */ lb $v0, 0x60($s1)
/* 42B338 802A9E48 10400004 */ beqz $v0, .L802A9E5C
/* 42B33C 802A9E4C 00000000 */ nop
.L802A9E50:
/* 42B340 802A9E50 8222005E */ lb $v0, 0x5e($s1)
/* 42B344 802A9E54 50400006 */ beql $v0, $zero, .L802A9E70
/* 42B348 802A9E58 24A50004 */ addiu $a1, $a1, 4
.L802A9E5C:
/* 42B34C 802A9E5C 92020084 */ lbu $v0, 0x84($s0)
/* 42B350 802A9E60 A227005C */ sb $a3, 0x5c($s1)
/* 42B354 802A9E64 24420001 */ addiu $v0, $v0, 1
/* 42B358 802A9E68 080AA7A0 */ j .L802A9E80
/* 42B35C 802A9E6C A2020084 */ sb $v0, 0x84($s0)
.L802A9E70:
/* 42B360 802A9E70 24C60001 */ addiu $a2, $a2, 1
/* 42B364 802A9E74 00C3102A */ slt $v0, $a2, $v1
/* 42B368 802A9E78 1440FFE2 */ bnez $v0, .L802A9E04
/* 42B36C 802A9E7C 24840001 */ addiu $a0, $a0, 1
.L802A9E80:
/* 42B370 802A9E80 8222005D */ lb $v0, 0x5d($s1)
/* 42B374 802A9E84 2842FFFC */ slti $v0, $v0, -4
/* 42B378 802A9E88 5440001D */ bnel $v0, $zero, .L802A9F00
/* 42B37C 802A9E8C 2403FFFB */ addiu $v1, $zero, -5
/* 42B380 802A9E90 82220060 */ lb $v0, 0x60($s1)
/* 42B384 802A9E94 14400004 */ bnez $v0, .L802A9EA8
/* 42B388 802A9E98 00000000 */ nop
/* 42B38C 802A9E9C 8222005C */ lb $v0, 0x5c($s1)
/* 42B390 802A9EA0 10400017 */ beqz $v0, .L802A9F00
/* 42B394 802A9EA4 2403FFFB */ addiu $v1, $zero, -5
.L802A9EA8:
/* 42B398 802A9EA8 8222005C */ lb $v0, 0x5c($s1)
/* 42B39C 802A9EAC 8E300024 */ lw $s0, 0x24($s1)
/* 42B3A0 802A9EB0 10400005 */ beqz $v0, .L802A9EC8
/* 42B3A4 802A9EB4 0200202D */ daddu $a0, $s0, $zero
/* 42B3A8 802A9EB8 3C058029 */ lui $a1, %hi(D_80292B54)
/* 42B3AC 802A9EBC 24A52B54 */ addiu $a1, $a1, %lo(D_80292B54)
/* 42B3B0 802A9EC0 080AA7B4 */ j .L802A9ED0
/* 42B3B4 802A9EC4 00000000 */ nop
.L802A9EC8:
/* 42B3B8 802A9EC8 3C058029 */ lui $a1, %hi(D_80292B80)
/* 42B3BC 802A9ECC 24A52B80 */ addiu $a1, $a1, %lo(D_80292B80)
.L802A9ED0:
/* 42B3C0 802A9ED0 0C0511FF */ jal set_menu_icon_script
/* 42B3C4 802A9ED4 00000000 */ nop
/* 42B3C8 802A9ED8 0200202D */ daddu $a0, $s0, $zero
/* 42B3CC 802A9EDC 86250056 */ lh $a1, 0x56($s1)
/* 42B3D0 802A9EE0 86260058 */ lh $a2, 0x58($s1)
/* 42B3D4 802A9EE4 24A50044 */ addiu $a1, $a1, 0x44
/* 42B3D8 802A9EE8 0C051261 */ jal set_icon_render_pos
/* 42B3DC 802A9EEC 24C60026 */ addiu $a2, $a2, 0x26
/* 42B3E0 802A9EF0 0200202D */ daddu $a0, $s0, $zero
/* 42B3E4 802A9EF4 0C05128B */ jal clear_icon_flags
/* 42B3E8 802A9EF8 24050002 */ addiu $a1, $zero, 2
/* 42B3EC 802A9EFC 2403FFFB */ addiu $v1, $zero, -5
.L802A9F00:
/* 42B3F0 802A9F00 8222005D */ lb $v0, 0x5d($s1)
/* 42B3F4 802A9F04 9224005D */ lbu $a0, 0x5d($s1)
/* 42B3F8 802A9F08 1443001E */ bne $v0, $v1, .L802A9F84
/* 42B3FC 802A9F0C 2482FFFF */ addiu $v0, $a0, -1
/* 42B400 802A9F10 8222005C */ lb $v0, 0x5c($s1)
/* 42B404 802A9F14 8E300024 */ lw $s0, 0x24($s1)
/* 42B408 802A9F18 10400005 */ beqz $v0, .L802A9F30
/* 42B40C 802A9F1C 0200202D */ daddu $a0, $s0, $zero
/* 42B410 802A9F20 3C058029 */ lui $a1, %hi(D_80292B54)
/* 42B414 802A9F24 24A52B54 */ addiu $a1, $a1, %lo(D_80292B54)
/* 42B418 802A9F28 080AA7CE */ j .L802A9F38
/* 42B41C 802A9F2C 00000000 */ nop
.L802A9F30:
/* 42B420 802A9F30 3C058029 */ lui $a1, %hi(D_80292B80)
/* 42B424 802A9F34 24A52B80 */ addiu $a1, $a1, %lo(D_80292B80)
.L802A9F38:
/* 42B428 802A9F38 0C0511FF */ jal set_menu_icon_script
/* 42B42C 802A9F3C 00000000 */ nop
/* 42B430 802A9F40 0200202D */ daddu $a0, $s0, $zero
/* 42B434 802A9F44 86250056 */ lh $a1, 0x56($s1)
/* 42B438 802A9F48 86260058 */ lh $a2, 0x58($s1)
/* 42B43C 802A9F4C 24A50044 */ addiu $a1, $a1, 0x44
/* 42B440 802A9F50 0C051261 */ jal set_icon_render_pos
/* 42B444 802A9F54 24C60026 */ addiu $a2, $a2, 0x26
/* 42B448 802A9F58 0200202D */ daddu $a0, $s0, $zero
/* 42B44C 802A9F5C 0C05128B */ jal clear_icon_flags
/* 42B450 802A9F60 24050002 */ addiu $a1, $zero, 2
/* 42B454 802A9F64 8E240004 */ lw $a0, 4($s1)
/* 42B458 802A9F68 3C058011 */ lui $a1, %hi(D_80108B28)
/* 42B45C 802A9F6C 24A58B28 */ addiu $a1, $a1, %lo(D_80108B28)
/* 42B460 802A9F70 0C0511FF */ jal set_menu_icon_script
/* 42B464 802A9F74 00000000 */ nop
/* 42B468 802A9F78 24020010 */ addiu $v0, $zero, 0x10
/* 42B46C 802A9F7C 080AA800 */ j .L802AA000
/* 42B470 802A9F80 A622004C */ sh $v0, 0x4c($s1)
.L802A9F84:
/* 42B474 802A9F84 080AA800 */ j .L802AA000
/* 42B478 802A9F88 A222005D */ sb $v0, 0x5d($s1)
/* 42B47C 802A9F8C 82020084 */ lb $v0, 0x84($s0)
/* 42B480 802A9F90 92030084 */ lbu $v1, 0x84($s0)
/* 42B484 802A9F94 54400003 */ bnel $v0, $zero, .L802A9FA4
/* 42B488 802A9F98 A2030081 */ sb $v1, 0x81($s0)
/* 42B48C 802A9F9C 2402FFFF */ addiu $v0, $zero, -1
/* 42B490 802A9FA0 A2020081 */ sb $v0, 0x81($s0)
.L802A9FA4:
/* 42B494 802A9FA4 82030081 */ lb $v1, 0x81($s0)
/* 42B498 802A9FA8 24020001 */ addiu $v0, $zero, 1
/* 42B49C 802A9FAC A2020086 */ sb $v0, 0x86($s0)
/* 42B4A0 802A9FB0 24020003 */ addiu $v0, $zero, 3
/* 42B4A4 802A9FB4 14620003 */ bne $v1, $v0, .L802A9FC4
/* 42B4A8 802A9FB8 00000000 */ nop
/* 42B4AC 802A9FBC 0C09A458 */ jal func_80269160
/* 42B4B0 802A9FC0 00000000 */ nop
.L802A9FC4:
/* 42B4B4 802A9FC4 0C093EB1 */ jal set_popup_duration
/* 42B4B8 802A9FC8 0000202D */ daddu $a0, $zero, $zero
/* 42B4BC 802A9FCC 24020005 */ addiu $v0, $zero, 5
/* 42B4C0 802A9FD0 A6220054 */ sh $v0, 0x54($s1)
/* 42B4C4 802A9FD4 24020011 */ addiu $v0, $zero, 0x11
/* 42B4C8 802A9FD8 080AA800 */ j .L802AA000
/* 42B4CC 802A9FDC A622004C */ sh $v0, 0x4c($s1)
/* 42B4D0 802A9FE0 86220054 */ lh $v0, 0x54($s1)
/* 42B4D4 802A9FE4 96230054 */ lhu $v1, 0x54($s1)
/* 42B4D8 802A9FE8 10400003 */ beqz $v0, .L802A9FF8
/* 42B4DC 802A9FEC 2462FFFF */ addiu $v0, $v1, -1
/* 42B4E0 802A9FF0 080AA800 */ j .L802AA000
/* 42B4E4 802A9FF4 A6220054 */ sh $v0, 0x54($s1)
.L802A9FF8:
/* 42B4E8 802A9FF8 0C09A327 */ jal func_80268C9C
/* 42B4EC 802A9FFC 00000000 */ nop
.L802AA000:
/* 42B4F0 802AA000 8FBF0018 */ lw $ra, 0x18($sp)
/* 42B4F4 802AA004 8FB10014 */ lw $s1, 0x14($sp)
/* 42B4F8 802AA008 8FB00010 */ lw $s0, 0x10($sp)
/* 42B4FC 802AA00C 03E00008 */ jr $ra
/* 42B500 802AA010 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,54 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802AA014_42B504
/* 42B504 802AA014 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 42B508 802AA018 AFB00010 */ sw $s0, 0x10($sp)
/* 42B50C 802AA01C 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 42B510 802AA020 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 42B514 802AA024 AFBF0018 */ sw $ra, 0x18($sp)
/* 42B518 802AA028 AFB10014 */ sw $s1, 0x14($sp)
/* 42B51C 802AA02C 0C0511EA */ jal draw_icon_0
/* 42B520 802AA030 8E040004 */ lw $a0, 4($s0)
/* 42B524 802AA034 0C0511EA */ jal draw_icon_0
/* 42B528 802AA038 8E040008 */ lw $a0, 8($s0)
/* 42B52C 802AA03C 0C0511EA */ jal draw_icon_0
/* 42B530 802AA040 8E04000C */ lw $a0, 0xc($s0)
/* 42B534 802AA044 0C0511EA */ jal draw_icon_0
/* 42B538 802AA048 8E040010 */ lw $a0, 0x10($s0)
/* 42B53C 802AA04C 0C0511EA */ jal draw_icon_0
/* 42B540 802AA050 8E040014 */ lw $a0, 0x14($s0)
/* 42B544 802AA054 0C0511EA */ jal draw_icon_0
/* 42B548 802AA058 8E04001C */ lw $a0, 0x1c($s0)
/* 42B54C 802AA05C 0C0511EA */ jal draw_icon_0
/* 42B550 802AA060 8E040020 */ lw $a0, 0x20($s0)
/* 42B554 802AA064 0C0511EA */ jal draw_icon_0
/* 42B558 802AA068 8E040024 */ lw $a0, 0x24($s0)
/* 42B55C 802AA06C 0C0511EA */ jal draw_icon_0
/* 42B560 802AA070 8E040038 */ lw $a0, 0x38($s0)
/* 42B564 802AA074 8E11002C */ lw $s1, 0x2c($s0)
/* 42B568 802AA078 0C05122C */ jal get_menu_icon_script
/* 42B56C 802AA07C 0220202D */ daddu $a0, $s1, $zero
/* 42B570 802AA080 3C03800E */ lui $v1, %hi(gBattleStatus+0x84)
/* 42B574 802AA084 8063C0F4 */ lb $v1, %lo(gBattleStatus+0x84)($v1)
/* 42B578 802AA088 00031880 */ sll $v1, $v1, 2
/* 42B57C 802AA08C 3C05802B */ lui $a1, %hi(D_802AB180)
/* 42B580 802AA090 00A32821 */ addu $a1, $a1, $v1
/* 42B584 802AA094 8CA5B180 */ lw $a1, %lo(D_802AB180)($a1)
/* 42B588 802AA098 10450003 */ beq $v0, $a1, .L802AA0A8
/* 42B58C 802AA09C 00000000 */ nop
/* 42B590 802AA0A0 0C0511FF */ jal set_menu_icon_script
/* 42B594 802AA0A4 0220202D */ daddu $a0, $s1, $zero
.L802AA0A8:
/* 42B598 802AA0A8 0C0511EA */ jal draw_icon_0
/* 42B59C 802AA0AC 0220202D */ daddu $a0, $s1, $zero
/* 42B5A0 802AA0B0 8E040030 */ lw $a0, 0x30($s0)
/* 42B5A4 802AA0B4 0C0511EA */ jal draw_icon_0
/* 42B5A8 802AA0B8 00000000 */ nop
/* 42B5AC 802AA0BC 0C0511EA */ jal draw_icon_0
/* 42B5B0 802AA0C0 8E040034 */ lw $a0, 0x34($s0)
/* 42B5B4 802AA0C4 8FBF0018 */ lw $ra, 0x18($sp)
/* 42B5B8 802AA0C8 8FB10014 */ lw $s1, 0x14($sp)
/* 42B5BC 802AA0CC 8FB00010 */ lw $s0, 0x10($sp)
/* 42B5C0 802AA0D0 03E00008 */ jr $ra
/* 42B5C4 802AA0D4 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,38 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802AA0D8_42B5C8
/* 42B5C8 802AA0D8 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 42B5CC 802AA0DC AFB00010 */ sw $s0, 0x10($sp)
/* 42B5D0 802AA0E0 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 42B5D4 802AA0E4 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 42B5D8 802AA0E8 AFBF0014 */ sw $ra, 0x14($sp)
/* 42B5DC 802AA0EC 0C05123D */ jal free_icon
/* 42B5E0 802AA0F0 8E040004 */ lw $a0, 4($s0)
/* 42B5E4 802AA0F4 0C05123D */ jal free_icon
/* 42B5E8 802AA0F8 8E040008 */ lw $a0, 8($s0)
/* 42B5EC 802AA0FC 0C05123D */ jal free_icon
/* 42B5F0 802AA100 8E04000C */ lw $a0, 0xc($s0)
/* 42B5F4 802AA104 0C05123D */ jal free_icon
/* 42B5F8 802AA108 8E040010 */ lw $a0, 0x10($s0)
/* 42B5FC 802AA10C 0C05123D */ jal free_icon
/* 42B600 802AA110 8E040014 */ lw $a0, 0x14($s0)
/* 42B604 802AA114 0C05123D */ jal free_icon
/* 42B608 802AA118 8E04001C */ lw $a0, 0x1c($s0)
/* 42B60C 802AA11C 0C05123D */ jal free_icon
/* 42B610 802AA120 8E040020 */ lw $a0, 0x20($s0)
/* 42B614 802AA124 0C05123D */ jal free_icon
/* 42B618 802AA128 8E040024 */ lw $a0, 0x24($s0)
/* 42B61C 802AA12C 0C05123D */ jal free_icon
/* 42B620 802AA130 8E04002C */ lw $a0, 0x2c($s0)
/* 42B624 802AA134 0C05123D */ jal free_icon
/* 42B628 802AA138 8E040030 */ lw $a0, 0x30($s0)
/* 42B62C 802AA13C 0C05123D */ jal free_icon
/* 42B630 802AA140 8E040034 */ lw $a0, 0x34($s0)
/* 42B634 802AA144 0C05123D */ jal free_icon
/* 42B638 802AA148 8E040038 */ lw $a0, 0x38($s0)
/* 42B63C 802AA14C 8FBF0014 */ lw $ra, 0x14($sp)
/* 42B640 802AA150 8FB00010 */ lw $s0, 0x10($sp)
/* 42B644 802AA154 03E00008 */ jr $ra
/* 42B648 802AA158 27BD0018 */ addiu $sp, $sp, 0x18
/* 42B64C 802AA15C 00000000 */ nop

View File

@ -0,0 +1,85 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_42C6F0
/* 42C6F0 802A9000 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42C6F4 802A9004 3C03800E */ lui $v1, %hi(gBattleStatus)
/* 42C6F8 802A9008 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus)
/* 42C6FC 802A900C 24020005 */ addiu $v0, $zero, 5
/* 42C700 802A9010 AFBF0020 */ sw $ra, 0x20($sp)
/* 42C704 802A9014 AFB3001C */ sw $s3, 0x1c($sp)
/* 42C708 802A9018 AFB20018 */ sw $s2, 0x18($sp)
/* 42C70C 802A901C AFB10014 */ sw $s1, 0x14($sp)
/* 42C710 802A9020 AFB00010 */ sw $s0, 0x10($sp)
/* 42C714 802A9024 A0620082 */ sb $v0, 0x82($v1)
/* 42C718 802A9028 3C028029 */ lui $v0, %hi(D_802944A0)
/* 42C71C 802A902C 244244A0 */ addiu $v0, $v0, %lo(D_802944A0)
/* 42C720 802A9030 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42C724 802A9034 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42C728 802A9038 AC620434 */ sw $v0, 0x434($v1)
/* 42C72C 802A903C 80620083 */ lb $v0, 0x83($v1)
/* 42C730 802A9040 14400003 */ bnez $v0, .L802A9050
/* 42C734 802A9044 0060802D */ daddu $s0, $v1, $zero
/* 42C738 802A9048 080AA446 */ j .L802A9118
/* 42C73C 802A904C A0600081 */ sb $zero, 0x81($v1)
.L802A9050:
/* 42C740 802A9050 0C09A216 */ jal func_80268858
/* 42C744 802A9054 24130001 */ addiu $s3, $zero, 1
/* 42C748 802A9058 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 42C74C 802A905C 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 42C750 802A9060 24020017 */ addiu $v0, $zero, 0x17
/* 42C754 802A9064 A622004A */ sh $v0, 0x4a($s1)
/* 42C758 802A9068 2402FFD0 */ addiu $v0, $zero, -0x30
/* 42C75C 802A906C A620004C */ sh $zero, 0x4c($s1)
/* 42C760 802A9070 A2200060 */ sb $zero, 0x60($s1)
/* 42C764 802A9074 A6200044 */ sh $zero, 0x44($s1)
/* 42C768 802A9078 A6200048 */ sh $zero, 0x48($s1)
/* 42C76C 802A907C A2000084 */ sb $zero, 0x84($s0)
/* 42C770 802A9080 A6220056 */ sh $v0, 0x56($s1)
/* 42C774 802A9084 24020050 */ addiu $v0, $zero, 0x50
/* 42C778 802A9088 0C050529 */ jal create_icon
/* 42C77C 802A908C A6220058 */ sh $v0, 0x58($s1)
/* 42C780 802A9090 0040802D */ daddu $s0, $v0, $zero
/* 42C784 802A9094 0200202D */ daddu $a0, $s0, $zero
/* 42C788 802A9098 86250056 */ lh $a1, 0x56($s1)
/* 42C78C 802A909C 86260058 */ lh $a2, 0x58($s1)
/* 42C790 802A90A0 26320004 */ addiu $s2, $s1, 4
/* 42C794 802A90A4 AE300004 */ sw $s0, 4($s1)
/* 42C798 802A90A8 0C051261 */ jal set_icon_render_pos
/* 42C79C 802A90AC 24C6001C */ addiu $a2, $a2, 0x1c
/* 42C7A0 802A90B0 0200202D */ daddu $a0, $s0, $zero
/* 42C7A4 802A90B4 0C051277 */ jal func_801449DC
/* 42C7A8 802A90B8 0000282D */ daddu $a1, $zero, $zero
/* 42C7AC 802A90BC 0200202D */ daddu $a0, $s0, $zero
/* 42C7B0 802A90C0 0C051280 */ jal set_icon_flags
/* 42C7B4 802A90C4 24050082 */ addiu $a1, $zero, 0x82
.L802A90C8:
/* 42C7B8 802A90C8 3C048011 */ lui $a0, %hi(D_80108B28)
/* 42C7BC 802A90CC 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 42C7C0 802A90D0 0C050529 */ jal create_icon
/* 42C7C4 802A90D4 26730001 */ addiu $s3, $s3, 1
/* 42C7C8 802A90D8 0040802D */ daddu $s0, $v0, $zero
/* 42C7CC 802A90DC 0200202D */ daddu $a0, $s0, $zero
/* 42C7D0 802A90E0 AE500004 */ sw $s0, 4($s2)
/* 42C7D4 802A90E4 86250056 */ lh $a1, 0x56($s1)
/* 42C7D8 802A90E8 86260058 */ lh $a2, 0x58($s1)
/* 42C7DC 802A90EC 0C051261 */ jal set_icon_render_pos
/* 42C7E0 802A90F0 26520004 */ addiu $s2, $s2, 4
/* 42C7E4 802A90F4 0200202D */ daddu $a0, $s0, $zero
/* 42C7E8 802A90F8 0C051277 */ jal func_801449DC
/* 42C7EC 802A90FC 0000282D */ daddu $a1, $zero, $zero
/* 42C7F0 802A9100 0200202D */ daddu $a0, $s0, $zero
/* 42C7F4 802A9104 0C051280 */ jal set_icon_flags
/* 42C7F8 802A9108 24050082 */ addiu $a1, $zero, 0x82
/* 42C7FC 802A910C 2A62000F */ slti $v0, $s3, 0xf
/* 42C800 802A9110 1440FFED */ bnez $v0, .L802A90C8
/* 42C804 802A9114 00000000 */ nop
.L802A9118:
/* 42C808 802A9118 24020002 */ addiu $v0, $zero, 2
/* 42C80C 802A911C 8FBF0020 */ lw $ra, 0x20($sp)
/* 42C810 802A9120 8FB3001C */ lw $s3, 0x1c($sp)
/* 42C814 802A9124 8FB20018 */ lw $s2, 0x18($sp)
/* 42C818 802A9128 8FB10014 */ lw $s1, 0x14($sp)
/* 42C81C 802A912C 8FB00010 */ lw $s0, 0x10($sp)
/* 42C820 802A9130 03E00008 */ jr $ra
/* 42C824 802A9134 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,66 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9138_42C828
/* 42C828 802A9138 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42C82C 802A913C AFB3001C */ sw $s3, 0x1c($sp)
/* 42C830 802A9140 0080982D */ daddu $s3, $a0, $zero
/* 42C834 802A9144 AFB10014 */ sw $s1, 0x14($sp)
/* 42C838 802A9148 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42C83C 802A914C 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42C840 802A9150 AFB20018 */ sw $s2, 0x18($sp)
/* 42C844 802A9154 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 42C848 802A9158 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 42C84C 802A915C AFBF0020 */ sw $ra, 0x20($sp)
/* 42C850 802A9160 AFB00010 */ sw $s0, 0x10($sp)
/* 42C854 802A9164 82420083 */ lb $v0, 0x83($s2)
/* 42C858 802A9168 8E70000C */ lw $s0, 0xc($s3)
/* 42C85C 802A916C 10400025 */ beqz $v0, .L802A9204
/* 42C860 802A9170 0240182D */ daddu $v1, $s2, $zero
/* 42C864 802A9174 0C09A216 */ jal func_80268858
/* 42C868 802A9178 00000000 */ nop
/* 42C86C 802A917C 8E050000 */ lw $a1, ($s0)
/* 42C870 802A9180 26100004 */ addiu $s0, $s0, 4
/* 42C874 802A9184 0C0B1EAF */ jal get_variable
/* 42C878 802A9188 0260202D */ daddu $a0, $s3, $zero
/* 42C87C 802A918C A622004E */ sh $v0, 0x4e($s1)
/* 42C880 802A9190 8E050000 */ lw $a1, ($s0)
/* 42C884 802A9194 26100004 */ addiu $s0, $s0, 4
/* 42C888 802A9198 0C0B1EAF */ jal get_variable
/* 42C88C 802A919C 0260202D */ daddu $a0, $s3, $zero
/* 42C890 802A91A0 A6220052 */ sh $v0, 0x52($s1)
/* 42C894 802A91A4 8E050000 */ lw $a1, ($s0)
/* 42C898 802A91A8 0C0B1EAF */ jal get_variable
/* 42C89C 802A91AC 0260202D */ daddu $a0, $s3, $zero
/* 42C8A0 802A91B0 00022400 */ sll $a0, $v0, 0x10
/* 42C8A4 802A91B4 00042403 */ sra $a0, $a0, 0x10
/* 42C8A8 802A91B8 0C09A089 */ jal func_80268224
/* 42C8AC 802A91BC A6220050 */ sh $v0, 0x50($s1)
/* 42C8B0 802A91C0 3C04FFFF */ lui $a0, 0xffff
/* 42C8B4 802A91C4 34847FFF */ ori $a0, $a0, 0x7fff
/* 42C8B8 802A91C8 A6220050 */ sh $v0, 0x50($s1)
/* 42C8BC 802A91CC A2200060 */ sb $zero, 0x60($s1)
/* 42C8C0 802A91D0 A6200044 */ sh $zero, 0x44($s1)
/* 42C8C4 802A91D4 A6200048 */ sh $zero, 0x48($s1)
/* 42C8C8 802A91D8 8E420000 */ lw $v0, ($s2)
/* 42C8CC 802A91DC 2403000A */ addiu $v1, $zero, 0xa
/* 42C8D0 802A91E0 A2400081 */ sb $zero, 0x81($s2)
/* 42C8D4 802A91E4 A2400084 */ sb $zero, 0x84($s2)
/* 42C8D8 802A91E8 A2400086 */ sb $zero, 0x86($s2)
/* 42C8DC 802A91EC A623004C */ sh $v1, 0x4c($s1)
/* 42C8E0 802A91F0 00441024 */ and $v0, $v0, $a0
/* 42C8E4 802A91F4 0C09A446 */ jal func_80269118
/* 42C8E8 802A91F8 AE420000 */ sw $v0, ($s2)
/* 42C8EC 802A91FC 080AA483 */ j .L802A920C
/* 42C8F0 802A9200 24020002 */ addiu $v0, $zero, 2
.L802A9204:
/* 42C8F4 802A9204 A0600081 */ sb $zero, 0x81($v1)
/* 42C8F8 802A9208 24020002 */ addiu $v0, $zero, 2
.L802A920C:
/* 42C8FC 802A920C 8FBF0020 */ lw $ra, 0x20($sp)
/* 42C900 802A9210 8FB3001C */ lw $s3, 0x1c($sp)
/* 42C904 802A9214 8FB20018 */ lw $s2, 0x18($sp)
/* 42C908 802A9218 8FB10014 */ lw $s1, 0x14($sp)
/* 42C90C 802A921C 8FB00010 */ lw $s0, 0x10($sp)
/* 42C910 802A9220 03E00008 */ jr $ra
/* 42C914 802A9224 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,344 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9228_42C918
/* 42C918 802A9228 27BDFFC8 */ addiu $sp, $sp, -0x38
/* 42C91C 802A922C AFB10014 */ sw $s1, 0x14($sp)
/* 42C920 802A9230 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42C924 802A9234 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42C928 802A9238 AFBF0034 */ sw $ra, 0x34($sp)
/* 42C92C 802A923C AFBE0030 */ sw $fp, 0x30($sp)
/* 42C930 802A9240 AFB7002C */ sw $s7, 0x2c($sp)
/* 42C934 802A9244 AFB60028 */ sw $s6, 0x28($sp)
/* 42C938 802A9248 AFB50024 */ sw $s5, 0x24($sp)
/* 42C93C 802A924C AFB40020 */ sw $s4, 0x20($sp)
/* 42C940 802A9250 AFB3001C */ sw $s3, 0x1c($sp)
/* 42C944 802A9254 AFB20018 */ sw $s2, 0x18($sp)
/* 42C948 802A9258 AFB00010 */ sw $s0, 0x10($sp)
/* 42C94C 802A925C 8623004C */ lh $v1, 0x4c($s1)
/* 42C950 802A9260 3C17800E */ lui $s7, %hi(gBattleStatus)
/* 42C954 802A9264 26F7C070 */ addiu $s7, $s7, %lo(gBattleStatus)
/* 42C958 802A9268 2C62000F */ sltiu $v0, $v1, 0xf
/* 42C95C 802A926C 1040011E */ beqz $v0, .L802A96E8
/* 42C960 802A9270 00031080 */ sll $v0, $v1, 2
/* 42C964 802A9274 3C01802B */ lui $at, %hi(D_802A97E0)
/* 42C968 802A9278 00220821 */ addu $at, $at, $v0
/* 42C96C 802A927C 8C2297E0 */ lw $v0, %lo(D_802A97E0)($at)
/* 42C970 802A9280 00400008 */ jr $v0
/* 42C974 802A9284 00000000 */ nop
/* 42C978 802A9288 0C093EB1 */ jal set_popup_duration
/* 42C97C 802A928C 24040063 */ addiu $a0, $zero, 0x63
/* 42C980 802A9290 82220061 */ lb $v0, 0x61($s1)
/* 42C984 802A9294 8E300004 */ lw $s0, 4($s1)
/* 42C988 802A9298 10400003 */ beqz $v0, .L802A92A8
/* 42C98C 802A929C 0200202D */ daddu $a0, $s0, $zero
/* 42C990 802A92A0 0C05128B */ jal clear_icon_flags
/* 42C994 802A92A4 24050002 */ addiu $a1, $zero, 2
.L802A92A8:
/* 42C998 802A92A8 0200202D */ daddu $a0, $s0, $zero
/* 42C99C 802A92AC 0C0513AC */ jal icon_set_opacity
/* 42C9A0 802A92B0 240500FF */ addiu $a1, $zero, 0xff
/* 42C9A4 802A92B4 24020001 */ addiu $v0, $zero, 1
/* 42C9A8 802A92B8 080AA5BA */ j .L802A96E8
/* 42C9AC 802A92BC A622004C */ sh $v0, 0x4c($s1)
/* 42C9B0 802A92C0 0C093EB1 */ jal set_popup_duration
/* 42C9B4 802A92C4 24040063 */ addiu $a0, $zero, 0x63
/* 42C9B8 802A92C8 96220056 */ lhu $v0, 0x56($s1)
/* 42C9BC 802A92CC 24420014 */ addiu $v0, $v0, 0x14
/* 42C9C0 802A92D0 A6220056 */ sh $v0, 0x56($s1)
/* 42C9C4 802A92D4 00021400 */ sll $v0, $v0, 0x10
/* 42C9C8 802A92D8 00021403 */ sra $v0, $v0, 0x10
/* 42C9CC 802A92DC 28420033 */ slti $v0, $v0, 0x33
/* 42C9D0 802A92E0 14400002 */ bnez $v0, .L802A92EC
/* 42C9D4 802A92E4 24020032 */ addiu $v0, $zero, 0x32
/* 42C9D8 802A92E8 A6220056 */ sh $v0, 0x56($s1)
.L802A92EC:
/* 42C9DC 802A92EC 8E240004 */ lw $a0, 4($s1)
/* 42C9E0 802A92F0 86250056 */ lh $a1, 0x56($s1)
/* 42C9E4 802A92F4 86260058 */ lh $a2, 0x58($s1)
/* 42C9E8 802A92F8 24A50015 */ addiu $a1, $a1, 0x15
/* 42C9EC 802A92FC 0C051261 */ jal set_icon_render_pos
/* 42C9F0 802A9300 24C6001C */ addiu $a2, $a2, 0x1c
/* 42C9F4 802A9304 080AA5BA */ j .L802A96E8
/* 42C9F8 802A9308 00000000 */ nop
/* 42C9FC 802A930C 0C093EB1 */ jal set_popup_duration
/* 42CA00 802A9310 24040063 */ addiu $a0, $zero, 0x63
/* 42CA04 802A9314 8622004E */ lh $v0, 0x4e($s1)
/* 42CA08 802A9318 9623004E */ lhu $v1, 0x4e($s1)
/* 42CA0C 802A931C 10400003 */ beqz $v0, .L802A932C
/* 42CA10 802A9320 2462FFFF */ addiu $v0, $v1, -1
/* 42CA14 802A9324 080AA5BA */ j .L802A96E8
/* 42CA18 802A9328 A622004E */ sh $v0, 0x4e($s1)
.L802A932C:
/* 42CA1C 802A932C 24040002 */ addiu $a0, $zero, 2
/* 42CA20 802A9330 96220052 */ lhu $v0, 0x52($s1)
/* 42CA24 802A9334 24030001 */ addiu $v1, $zero, 1
/* 42CA28 802A9338 A223005D */ sb $v1, 0x5d($s1)
/* 42CA2C 802A933C 0C00A67F */ jal rand_int
/* 42CA30 802A9340 A6220054 */ sh $v0, 0x54($s1)
/* 42CA34 802A9344 A222005C */ sb $v0, 0x5c($s1)
/* 42CA38 802A9348 2402000B */ addiu $v0, $zero, 0xb
/* 42CA3C 802A934C A622004C */ sh $v0, 0x4c($s1)
/* 42CA40 802A9350 A6200072 */ sh $zero, 0x72($s1)
/* 42CA44 802A9354 0C093EB1 */ jal set_popup_duration
/* 42CA48 802A9358 24040063 */ addiu $a0, $zero, 0x63
/* 42CA4C 802A935C 8230005C */ lb $s0, 0x5c($s1)
.L802A9360:
/* 42CA50 802A9360 0C00A67F */ jal rand_int
/* 42CA54 802A9364 24040002 */ addiu $a0, $zero, 2
/* 42CA58 802A9368 A222005C */ sb $v0, 0x5c($s1)
/* 42CA5C 802A936C 00021600 */ sll $v0, $v0, 0x18
/* 42CA60 802A9370 00021E03 */ sra $v1, $v0, 0x18
/* 42CA64 802A9374 1203FFFA */ beq $s0, $v1, .L802A9360
/* 42CA68 802A9378 00000000 */ nop
/* 42CA6C 802A937C 8222005D */ lb $v0, 0x5d($s1)
/* 42CA70 802A9380 00021080 */ sll $v0, $v0, 2
/* 42CA74 802A9384 02221021 */ addu $v0, $s1, $v0
/* 42CA78 802A9388 8C500004 */ lw $s0, 4($v0)
/* 42CA7C 802A938C 00031080 */ sll $v0, $v1, 2
/* 42CA80 802A9390 3C05802B */ lui $a1, %hi(D_802A97C0)
/* 42CA84 802A9394 00A22821 */ addu $a1, $a1, $v0
/* 42CA88 802A9398 8CA597C0 */ lw $a1, %lo(D_802A97C0)($a1)
/* 42CA8C 802A939C 0C0511FF */ jal set_menu_icon_script
/* 42CA90 802A93A0 0200202D */ daddu $a0, $s0, $zero
/* 42CA94 802A93A4 0200202D */ daddu $a0, $s0, $zero
/* 42CA98 802A93A8 8223005D */ lb $v1, 0x5d($s1)
/* 42CA9C 802A93AC 86260058 */ lh $a2, 0x58($s1)
/* 42CAA0 802A93B0 86250056 */ lh $a1, 0x56($s1)
/* 42CAA4 802A93B4 2463FFFF */ addiu $v1, $v1, -1
/* 42CAA8 802A93B8 00031080 */ sll $v0, $v1, 2
/* 42CAAC 802A93BC 00431021 */ addu $v0, $v0, $v1
/* 42CAB0 802A93C0 00021080 */ sll $v0, $v0, 2
/* 42CAB4 802A93C4 00A22821 */ addu $a1, $a1, $v0
/* 42CAB8 802A93C8 0C051261 */ jal set_icon_render_pos
/* 42CABC 802A93CC 24A50010 */ addiu $a1, $a1, 0x10
/* 42CAC0 802A93D0 0200202D */ daddu $a0, $s0, $zero
/* 42CAC4 802A93D4 0C05128B */ jal clear_icon_flags
/* 42CAC8 802A93D8 24050002 */ addiu $a1, $zero, 2
/* 42CACC 802A93DC 0C05272D */ jal play_sound
/* 42CAD0 802A93E0 24040233 */ addiu $a0, $zero, 0x233
/* 42CAD4 802A93E4 24020001 */ addiu $v0, $zero, 1
/* 42CAD8 802A93E8 A6220070 */ sh $v0, 0x70($s1)
/* 42CADC 802A93EC 2402000C */ addiu $v0, $zero, 0xc
/* 42CAE0 802A93F0 A622004C */ sh $v0, 0x4c($s1)
/* 42CAE4 802A93F4 0C093EB1 */ jal set_popup_duration
/* 42CAE8 802A93F8 24040063 */ addiu $a0, $zero, 0x63
/* 42CAEC 802A93FC 96220054 */ lhu $v0, 0x54($s1)
/* 42CAF0 802A9400 2442FFFF */ addiu $v0, $v0, -1
/* 42CAF4 802A9404 A6220054 */ sh $v0, 0x54($s1)
/* 42CAF8 802A9408 00021400 */ sll $v0, $v0, 0x10
/* 42CAFC 802A940C 14400004 */ bnez $v0, .L802A9420
/* 42CB00 802A9410 2402000F */ addiu $v0, $zero, 0xf
/* 42CB04 802A9414 2402000D */ addiu $v0, $zero, 0xd
/* 42CB08 802A9418 080AA5BA */ j .L802A96E8
/* 42CB0C 802A941C A622004C */ sh $v0, 0x4c($s1)
.L802A9420:
/* 42CB10 802A9420 8223005D */ lb $v1, 0x5d($s1)
/* 42CB14 802A9424 106200B0 */ beq $v1, $v0, .L802A96E8
/* 42CB18 802A9428 00000000 */ nop
/* 42CB1C 802A942C 96220070 */ lhu $v0, 0x70($s1)
/* 42CB20 802A9430 2442FFFF */ addiu $v0, $v0, -1
/* 42CB24 802A9434 A6220070 */ sh $v0, 0x70($s1)
/* 42CB28 802A9438 96220072 */ lhu $v0, 0x72($s1)
/* 42CB2C 802A943C 86230070 */ lh $v1, 0x70($s1)
/* 42CB30 802A9440 2442FFFF */ addiu $v0, $v0, -1
/* 42CB34 802A9444 1C6000A8 */ bgtz $v1, .L802A96E8
/* 42CB38 802A9448 A6220072 */ sh $v0, 0x72($s1)
/* 42CB3C 802A944C 04610002 */ bgez $v1, .L802A9458
/* 42CB40 802A9450 0060A82D */ daddu $s5, $v1, $zero
/* 42CB44 802A9454 0015A823 */ negu $s5, $s5
.L802A9458:
/* 42CB48 802A9458 2AA20015 */ slti $v0, $s5, 0x15
/* 42CB4C 802A945C 50400001 */ beql $v0, $zero, .L802A9464
/* 42CB50 802A9460 24150014 */ addiu $s5, $zero, 0x14
.L802A9464:
/* 42CB54 802A9464 82E20431 */ lb $v0, 0x431($s7)
/* 42CB58 802A9468 00559823 */ subu $s3, $v0, $s5
/* 42CB5C 802A946C 06620001 */ bltzl $s3, .L802A9474
/* 42CB60 802A9470 26730040 */ addiu $s3, $s3, 0x40
.L802A9474:
/* 42CB64 802A9474 52A00001 */ beql $s5, $zero, .L802A947C
/* 42CB68 802A9478 24150001 */ addiu $s5, $zero, 1
.L802A947C:
/* 42CB6C 802A947C 1AA0009A */ blez $s5, .L802A96E8
/* 42CB70 802A9480 0000A02D */ daddu $s4, $zero, $zero
/* 42CB74 802A9484 24160001 */ addiu $s6, $zero, 1
/* 42CB78 802A9488 3C1E802B */ lui $fp, %hi(func_802A97CC_42823C)
/* 42CB7C 802A948C 27DE97CC */ addiu $fp, $fp, %lo(func_802A97CC_42823C)
/* 42CB80 802A9490 00131080 */ sll $v0, $s3, 2
/* 42CB84 802A9494 00579021 */ addu $s2, $v0, $s7
.L802A9498:
/* 42CB88 802A9498 2A620040 */ slti $v0, $s3, 0x40
/* 42CB8C 802A949C 14400003 */ bnez $v0, .L802A94AC
/* 42CB90 802A94A0 00000000 */ nop
/* 42CB94 802A94A4 2652FF00 */ addiu $s2, $s2, -0x100
/* 42CB98 802A94A8 2673FFC0 */ addiu $s3, $s3, -0x40
.L802A94AC:
/* 42CB9C 802A94AC 86220072 */ lh $v0, 0x72($s1)
/* 42CBA0 802A94B0 1C40008D */ bgtz $v0, .L802A96E8
/* 42CBA4 802A94B4 0000802D */ daddu $s0, $zero, $zero
/* 42CBA8 802A94B8 8223005C */ lb $v1, 0x5c($s1)
/* 42CBAC 802A94BC 10760018 */ beq $v1, $s6, .L802A9520
/* 42CBB0 802A94C0 A2200060 */ sb $zero, 0x60($s1)
/* 42CBB4 802A94C4 28620002 */ slti $v0, $v1, 2
/* 42CBB8 802A94C8 10400005 */ beqz $v0, .L802A94E0
/* 42CBBC 802A94CC 24020002 */ addiu $v0, $zero, 2
/* 42CBC0 802A94D0 10600007 */ beqz $v1, .L802A94F0
/* 42CBC4 802A94D4 00000000 */ nop
/* 42CBC8 802A94D8 080AA55A */ j .L802A9568
/* 42CBCC 802A94DC 00000000 */ nop
.L802A94E0:
/* 42CBD0 802A94E0 10620017 */ beq $v1, $v0, .L802A9540
/* 42CBD4 802A94E4 00000000 */ nop
/* 42CBD8 802A94E8 080AA55A */ j .L802A9568
/* 42CBDC 802A94EC 00000000 */ nop
.L802A94F0:
/* 42CBE0 802A94F0 8222005E */ lb $v0, 0x5e($s1)
/* 42CBE4 802A94F4 5440001C */ bnel $v0, $zero, .L802A9568
/* 42CBE8 802A94F8 24100001 */ addiu $s0, $zero, 1
/* 42CBEC 802A94FC 8E430330 */ lw $v1, 0x330($s2)
/* 42CBF0 802A9500 10600019 */ beqz $v1, .L802A9568
/* 42CBF4 802A9504 3C02FFFF */ lui $v0, 0xffff
/* 42CBF8 802A9508 34427FFF */ ori $v0, $v0, 0x7fff
/* 42CBFC 802A950C 00621024 */ and $v0, $v1, $v0
.L802A9510:
/* 42CC00 802A9510 54400015 */ bnel $v0, $zero, .L802A9568
/* 42CC04 802A9514 A2360060 */ sb $s6, 0x60($s1)
/* 42CC08 802A9518 080AA55A */ j .L802A9568
/* 42CC0C 802A951C 24100001 */ addiu $s0, $zero, 1
.L802A9520:
/* 42CC10 802A9520 8222005E */ lb $v0, 0x5e($s1)
/* 42CC14 802A9524 54400010 */ bnel $v0, $zero, .L802A9568
/* 42CC18 802A9528 24100001 */ addiu $s0, $zero, 1
/* 42CC1C 802A952C 8E430330 */ lw $v1, 0x330($s2)
/* 42CC20 802A9530 1060000D */ beqz $v1, .L802A9568
/* 42CC24 802A9534 2402BFFF */ addiu $v0, $zero, -0x4001
/* 42CC28 802A9538 080AA544 */ j .L802A9510
/* 42CC2C 802A953C 00621024 */ and $v0, $v1, $v0
.L802A9540:
/* 42CC30 802A9540 8222005E */ lb $v0, 0x5e($s1)
/* 42CC34 802A9544 54400008 */ bnel $v0, $zero, .L802A9568
/* 42CC38 802A9548 24100001 */ addiu $s0, $zero, 1
/* 42CC3C 802A954C 8E430330 */ lw $v1, 0x330($s2)
/* 42CC40 802A9550 10600005 */ beqz $v1, .L802A9568
/* 42CC44 802A9554 2402FFFB */ addiu $v0, $zero, -5
/* 42CC48 802A9558 00621024 */ and $v0, $v1, $v0
/* 42CC4C 802A955C 50400002 */ beql $v0, $zero, .L802A9568
/* 42CC50 802A9560 24100001 */ addiu $s0, $zero, 1
/* 42CC54 802A9564 A2360060 */ sb $s6, 0x60($s1)
.L802A9568:
/* 42CC58 802A9568 82220060 */ lb $v0, 0x60($s1)
/* 42CC5C 802A956C 10400005 */ beqz $v0, .L802A9584
/* 42CC60 802A9570 2404021D */ addiu $a0, $zero, 0x21d
/* 42CC64 802A9574 2402000A */ addiu $v0, $zero, 0xa
/* 42CC68 802A9578 0C05272D */ jal play_sound
/* 42CC6C 802A957C A6220072 */ sh $v0, 0x72($s1)
/* 42CC70 802A9580 A6200070 */ sh $zero, 0x70($s1)
.L802A9584:
/* 42CC74 802A9584 12000036 */ beqz $s0, .L802A9660
/* 42CC78 802A9588 26520004 */ addiu $s2, $s2, 4
/* 42CC7C 802A958C 8222005D */ lb $v0, 0x5d($s1)
/* 42CC80 802A9590 8223005C */ lb $v1, 0x5c($s1)
/* 42CC84 802A9594 00021080 */ sll $v0, $v0, 2
/* 42CC88 802A9598 02221021 */ addu $v0, $s1, $v0
/* 42CC8C 802A959C 00031880 */ sll $v1, $v1, 2
/* 42CC90 802A95A0 007E1821 */ addu $v1, $v1, $fp
/* 42CC94 802A95A4 8C500004 */ lw $s0, 4($v0)
/* 42CC98 802A95A8 8C650000 */ lw $a1, ($v1)
/* 42CC9C 802A95AC 0C0511FF */ jal set_menu_icon_script
/* 42CCA0 802A95B0 0200202D */ daddu $a0, $s0, $zero
/* 42CCA4 802A95B4 3C053F00 */ lui $a1, 0x3f00
/* 42CCA8 802A95B8 0C051308 */ jal func_80144C20
/* 42CCAC 802A95BC 0200202D */ daddu $a0, $s0, $zero
/* 42CCB0 802A95C0 0200202D */ daddu $a0, $s0, $zero
/* 42CCB4 802A95C4 8222005D */ lb $v0, 0x5d($s1)
/* 42CCB8 802A95C8 86260058 */ lh $a2, 0x58($s1)
/* 42CCBC 802A95CC 2442FFFF */ addiu $v0, $v0, -1
/* 42CCC0 802A95D0 00022880 */ sll $a1, $v0, 2
/* 42CCC4 802A95D4 00A22821 */ addu $a1, $a1, $v0
/* 42CCC8 802A95D8 00052880 */ sll $a1, $a1, 2
/* 42CCCC 802A95DC 86220056 */ lh $v0, 0x56($s1)
/* 42CCD0 802A95E0 24C60007 */ addiu $a2, $a2, 7
/* 42CCD4 802A95E4 0C051261 */ jal set_icon_render_pos
/* 42CCD8 802A95E8 00452821 */ addu $a1, $v0, $a1
/* 42CCDC 802A95EC 9222005D */ lbu $v0, 0x5d($s1)
/* 42CCE0 802A95F0 24420001 */ addiu $v0, $v0, 1
/* 42CCE4 802A95F4 A222005D */ sb $v0, 0x5d($s1)
/* 42CCE8 802A95F8 86220050 */ lh $v0, 0x50($s1)
/* 42CCEC 802A95FC 8EE30434 */ lw $v1, 0x434($s7)
/* 42CCF0 802A9600 00021080 */ sll $v0, $v0, 2
/* 42CCF4 802A9604 00431021 */ addu $v0, $v0, $v1
/* 42CCF8 802A9608 8C420000 */ lw $v0, ($v0)
/* 42CCFC 802A960C 000218C0 */ sll $v1, $v0, 3
/* 42CD00 802A9610 00621821 */ addu $v1, $v1, $v0
/* 42CD04 802A9614 96220044 */ lhu $v0, 0x44($s1)
/* 42CD08 802A9618 00031840 */ sll $v1, $v1, 1
/* 42CD0C 802A961C 00431021 */ addu $v0, $v0, $v1
/* 42CD10 802A9620 A6220044 */ sh $v0, 0x44($s1)
/* 42CD14 802A9624 00021400 */ sll $v0, $v0, 0x10
/* 42CD18 802A9628 00021403 */ sra $v0, $v0, 0x10
/* 42CD1C 802A962C 28422711 */ slti $v0, $v0, 0x2711
/* 42CD20 802A9630 14400003 */ bnez $v0, .L802A9640
/* 42CD24 802A9634 2404021C */ addiu $a0, $zero, 0x21c
/* 42CD28 802A9638 24022710 */ addiu $v0, $zero, 0x2710
/* 42CD2C 802A963C A6220044 */ sh $v0, 0x44($s1)
.L802A9640:
/* 42CD30 802A9640 92E30084 */ lbu $v1, 0x84($s7)
/* 42CD34 802A9644 2402000B */ addiu $v0, $zero, 0xb
/* 42CD38 802A9648 A622004C */ sh $v0, 0x4c($s1)
/* 42CD3C 802A964C 24630001 */ addiu $v1, $v1, 1
/* 42CD40 802A9650 0C05272D */ jal play_sound
/* 42CD44 802A9654 A2E30084 */ sb $v1, 0x84($s7)
/* 42CD48 802A9658 080AA5BA */ j .L802A96E8
/* 42CD4C 802A965C 00000000 */ nop
.L802A9660:
/* 42CD50 802A9660 26940001 */ addiu $s4, $s4, 1
/* 42CD54 802A9664 0295102A */ slt $v0, $s4, $s5
/* 42CD58 802A9668 1440FF8B */ bnez $v0, .L802A9498
/* 42CD5C 802A966C 26730001 */ addiu $s3, $s3, 1
/* 42CD60 802A9670 080AA5BA */ j .L802A96E8
/* 42CD64 802A9674 00000000 */ nop
/* 42CD68 802A9678 82E20084 */ lb $v0, 0x84($s7)
/* 42CD6C 802A967C 92E30084 */ lbu $v1, 0x84($s7)
/* 42CD70 802A9680 54400003 */ bnel $v0, $zero, .L802A9690
/* 42CD74 802A9684 A2E30081 */ sb $v1, 0x81($s7)
/* 42CD78 802A9688 2402FFFF */ addiu $v0, $zero, -1
/* 42CD7C 802A968C A2E20081 */ sb $v0, 0x81($s7)
.L802A9690:
/* 42CD80 802A9690 82E20081 */ lb $v0, 0x81($s7)
/* 42CD84 802A9694 24030001 */ addiu $v1, $zero, 1
/* 42CD88 802A9698 2842000A */ slti $v0, $v0, 0xa
/* 42CD8C 802A969C 14400003 */ bnez $v0, .L802A96AC
/* 42CD90 802A96A0 A2E30086 */ sb $v1, 0x86($s7)
/* 42CD94 802A96A4 0C09A458 */ jal func_80269160
/* 42CD98 802A96A8 00000000 */ nop
.L802A96AC:
/* 42CD9C 802A96AC 0C093EB1 */ jal set_popup_duration
/* 42CDA0 802A96B0 0000202D */ daddu $a0, $zero, $zero
/* 42CDA4 802A96B4 24020005 */ addiu $v0, $zero, 5
/* 42CDA8 802A96B8 A6220054 */ sh $v0, 0x54($s1)
/* 42CDAC 802A96BC 2402000E */ addiu $v0, $zero, 0xe
/* 42CDB0 802A96C0 080AA5BA */ j .L802A96E8
/* 42CDB4 802A96C4 A622004C */ sh $v0, 0x4c($s1)
/* 42CDB8 802A96C8 86220054 */ lh $v0, 0x54($s1)
/* 42CDBC 802A96CC 96230054 */ lhu $v1, 0x54($s1)
/* 42CDC0 802A96D0 10400003 */ beqz $v0, .L802A96E0
/* 42CDC4 802A96D4 2462FFFF */ addiu $v0, $v1, -1
/* 42CDC8 802A96D8 080AA5BA */ j .L802A96E8
/* 42CDCC 802A96DC A6220054 */ sh $v0, 0x54($s1)
.L802A96E0:
/* 42CDD0 802A96E0 0C09A327 */ jal func_80268C9C
/* 42CDD4 802A96E4 00000000 */ nop
.L802A96E8:
/* 42CDD8 802A96E8 8FBF0034 */ lw $ra, 0x34($sp)
/* 42CDDC 802A96EC 8FBE0030 */ lw $fp, 0x30($sp)
/* 42CDE0 802A96F0 8FB7002C */ lw $s7, 0x2c($sp)
/* 42CDE4 802A96F4 8FB60028 */ lw $s6, 0x28($sp)
/* 42CDE8 802A96F8 8FB50024 */ lw $s5, 0x24($sp)
/* 42CDEC 802A96FC 8FB40020 */ lw $s4, 0x20($sp)
/* 42CDF0 802A9700 8FB3001C */ lw $s3, 0x1c($sp)
/* 42CDF4 802A9704 8FB20018 */ lw $s2, 0x18($sp)
/* 42CDF8 802A9708 8FB10014 */ lw $s1, 0x14($sp)
/* 42CDFC 802A970C 8FB00010 */ lw $s0, 0x10($sp)
/* 42CE00 802A9710 03E00008 */ jr $ra
/* 42CE04 802A9714 27BD0038 */ addiu $sp, $sp, 0x38

View File

@ -0,0 +1,24 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9718_42CE08
/* 42CE08 802A9718 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 42CE0C 802A971C AFB10014 */ sw $s1, 0x14($sp)
/* 42CE10 802A9720 24110001 */ addiu $s1, $zero, 1
/* 42CE14 802A9724 AFB00010 */ sw $s0, 0x10($sp)
/* 42CE18 802A9728 3C10802A */ lui $s0, %hi(D_8029FBE4)
/* 42CE1C 802A972C 2610FBE4 */ addiu $s0, $s0, %lo(D_8029FBE4)
/* 42CE20 802A9730 AFBF0018 */ sw $ra, 0x18($sp)
.L802A9734:
/* 42CE24 802A9734 8E040004 */ lw $a0, 4($s0)
/* 42CE28 802A9738 26100004 */ addiu $s0, $s0, 4
/* 42CE2C 802A973C 0C0511EA */ jal draw_icon_0
/* 42CE30 802A9740 26310001 */ addiu $s1, $s1, 1
/* 42CE34 802A9744 2A22000F */ slti $v0, $s1, 0xf
/* 42CE38 802A9748 1440FFFA */ bnez $v0, .L802A9734
/* 42CE3C 802A974C 00000000 */ nop
/* 42CE40 802A9750 8FBF0018 */ lw $ra, 0x18($sp)
/* 42CE44 802A9754 8FB10014 */ lw $s1, 0x14($sp)
/* 42CE48 802A9758 8FB00010 */ lw $s0, 0x10($sp)
/* 42CE4C 802A975C 03E00008 */ jr $ra
/* 42CE50 802A9760 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,28 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9764_42CE54
/* 42CE54 802A9764 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 42CE58 802A9768 3C02802A */ lui $v0, %hi(D_8029FBE0)
/* 42CE5C 802A976C 2442FBE0 */ addiu $v0, $v0, %lo(D_8029FBE0)
/* 42CE60 802A9770 AFB10014 */ sw $s1, 0x14($sp)
/* 42CE64 802A9774 24110001 */ addiu $s1, $zero, 1
/* 42CE68 802A9778 AFBF0018 */ sw $ra, 0x18($sp)
/* 42CE6C 802A977C AFB00010 */ sw $s0, 0x10($sp)
/* 42CE70 802A9780 8C440004 */ lw $a0, 4($v0)
/* 42CE74 802A9784 0C05123D */ jal free_icon
/* 42CE78 802A9788 24500004 */ addiu $s0, $v0, 4
.L802A978C:
/* 42CE7C 802A978C 8E040004 */ lw $a0, 4($s0)
/* 42CE80 802A9790 26100004 */ addiu $s0, $s0, 4
/* 42CE84 802A9794 0C05123D */ jal free_icon
/* 42CE88 802A9798 26310001 */ addiu $s1, $s1, 1
/* 42CE8C 802A979C 2A22000F */ slti $v0, $s1, 0xf
/* 42CE90 802A97A0 1440FFFA */ bnez $v0, .L802A978C
/* 42CE94 802A97A4 00000000 */ nop
/* 42CE98 802A97A8 8FBF0018 */ lw $ra, 0x18($sp)
/* 42CE9C 802A97AC 8FB10014 */ lw $s1, 0x14($sp)
/* 42CEA0 802A97B0 8FB00010 */ lw $s0, 0x10($sp)
/* 42CEA4 802A97B4 03E00008 */ jr $ra
/* 42CEA8 802A97B8 27BD0020 */ addiu $sp, $sp, 0x20
/* 42CEAC 802A97BC 00000000 */ nop

View File

@ -0,0 +1,138 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_42CF10
/* 42CF10 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 42CF14 802A9004 3C03800E */ lui $v1, %hi(gBattleStatus)
/* 42CF18 802A9008 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus)
/* 42CF1C 802A900C 24020064 */ addiu $v0, $zero, 0x64
/* 42CF20 802A9010 AFBF0018 */ sw $ra, 0x18($sp)
/* 42CF24 802A9014 AFB10014 */ sw $s1, 0x14($sp)
/* 42CF28 802A9018 AFB00010 */ sw $s0, 0x10($sp)
/* 42CF2C 802A901C A0620082 */ sb $v0, 0x82($v1)
/* 42CF30 802A9020 3C028029 */ lui $v0, %hi(D_802943A0)
/* 42CF34 802A9024 244243A0 */ addiu $v0, $v0, %lo(D_802943A0)
/* 42CF38 802A9028 AC620434 */ sw $v0, 0x434($v1)
/* 42CF3C 802A902C 80620083 */ lb $v0, 0x83($v1)
/* 42CF40 802A9030 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42CF44 802A9034 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42CF48 802A9038 5040006F */ beql $v0, $zero, .L802A91F8
/* 42CF4C 802A903C A0600081 */ sb $zero, 0x81($v1)
/* 42CF50 802A9040 0C09A216 */ jal func_80268858
/* 42CF54 802A9044 00000000 */ nop
/* 42CF58 802A9048 24040064 */ addiu $a0, $zero, 0x64
/* 42CF5C 802A904C 24020010 */ addiu $v0, $zero, 0x10
/* 42CF60 802A9050 A622004A */ sh $v0, 0x4a($s1)
/* 42CF64 802A9054 A620004C */ sh $zero, 0x4c($s1)
/* 42CF68 802A9058 A2200060 */ sb $zero, 0x60($s1)
/* 42CF6C 802A905C A6200044 */ sh $zero, 0x44($s1)
/* 42CF70 802A9060 0C00A67F */ jal rand_int
/* 42CF74 802A9064 A6200048 */ sh $zero, 0x48($s1)
/* 42CF78 802A9068 3C048011 */ lui $a0, %hi(D_80108B28)
/* 42CF7C 802A906C 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 42CF80 802A9070 A6220046 */ sh $v0, 0x46($s1)
/* 42CF84 802A9074 2402001E */ addiu $v0, $zero, 0x1e
/* 42CF88 802A9078 A622006C */ sh $v0, 0x6c($s1)
/* 42CF8C 802A907C 2402FFD0 */ addiu $v0, $zero, -0x30
/* 42CF90 802A9080 A6220056 */ sh $v0, 0x56($s1)
/* 42CF94 802A9084 24020050 */ addiu $v0, $zero, 0x50
/* 42CF98 802A9088 A6200068 */ sh $zero, 0x68($s1)
/* 42CF9C 802A908C A6200066 */ sh $zero, 0x66($s1)
/* 42CFA0 802A9090 3C01802B */ lui $at, %hi(D_802A9B00)
/* 42CFA4 802A9094 AC209B00 */ sw $zero, %lo(D_802A9B00)($at)
/* 42CFA8 802A9098 0C050529 */ jal create_icon
/* 42CFAC 802A909C A6220058 */ sh $v0, 0x58($s1)
/* 42CFB0 802A90A0 0040802D */ daddu $s0, $v0, $zero
/* 42CFB4 802A90A4 0200202D */ daddu $a0, $s0, $zero
/* 42CFB8 802A90A8 24050082 */ addiu $a1, $zero, 0x82
/* 42CFBC 802A90AC 0C051280 */ jal set_icon_flags
/* 42CFC0 802A90B0 AE300004 */ sw $s0, 4($s1)
/* 42CFC4 802A90B4 86250056 */ lh $a1, 0x56($s1)
/* 42CFC8 802A90B8 86260058 */ lh $a2, 0x58($s1)
/* 42CFCC 802A90BC 0C051261 */ jal set_icon_render_pos
/* 42CFD0 802A90C0 0200202D */ daddu $a0, $s0, $zero
/* 42CFD4 802A90C4 0200202D */ daddu $a0, $s0, $zero
/* 42CFD8 802A90C8 0C051277 */ jal func_801449DC
/* 42CFDC 802A90CC 0000282D */ daddu $a1, $zero, $zero
/* 42CFE0 802A90D0 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 42CFE4 802A90D4 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 42CFE8 802A90D8 0C050529 */ jal create_icon
/* 42CFEC 802A90DC 00000000 */ nop
/* 42CFF0 802A90E0 0040802D */ daddu $s0, $v0, $zero
/* 42CFF4 802A90E4 86250056 */ lh $a1, 0x56($s1)
/* 42CFF8 802A90E8 86260058 */ lh $a2, 0x58($s1)
/* 42CFFC 802A90EC 0200202D */ daddu $a0, $s0, $zero
/* 42D000 802A90F0 AE300008 */ sw $s0, 8($s1)
/* 42D004 802A90F4 0C051261 */ jal set_icon_render_pos
/* 42D008 802A90F8 24C6001C */ addiu $a2, $a2, 0x1c
/* 42D00C 802A90FC 0200202D */ daddu $a0, $s0, $zero
/* 42D010 802A9100 0C051277 */ jal func_801449DC
/* 42D014 802A9104 0000282D */ daddu $a1, $zero, $zero
/* 42D018 802A9108 0200202D */ daddu $a0, $s0, $zero
/* 42D01C 802A910C 0C051280 */ jal set_icon_flags
/* 42D020 802A9110 24050082 */ addiu $a1, $zero, 0x82
/* 42D024 802A9114 3C048029 */ lui $a0, %hi(D_80292974)
/* 42D028 802A9118 24842974 */ addiu $a0, $a0, %lo(D_80292974)
/* 42D02C 802A911C 0C050529 */ jal create_icon
/* 42D030 802A9120 00000000 */ nop
/* 42D034 802A9124 0040802D */ daddu $s0, $v0, $zero
/* 42D038 802A9128 86250056 */ lh $a1, 0x56($s1)
/* 42D03C 802A912C 86260058 */ lh $a2, 0x58($s1)
/* 42D040 802A9130 0200202D */ daddu $a0, $s0, $zero
/* 42D044 802A9134 AE300010 */ sw $s0, 0x10($s1)
/* 42D048 802A9138 0C051261 */ jal set_icon_render_pos
/* 42D04C 802A913C 24C6001C */ addiu $a2, $a2, 0x1c
/* 42D050 802A9140 0200202D */ daddu $a0, $s0, $zero
/* 42D054 802A9144 0C051277 */ jal func_801449DC
/* 42D058 802A9148 0000282D */ daddu $a1, $zero, $zero
/* 42D05C 802A914C 0200202D */ daddu $a0, $s0, $zero
/* 42D060 802A9150 0C051280 */ jal set_icon_flags
/* 42D064 802A9154 24050082 */ addiu $a1, $zero, 0x82
/* 42D068 802A9158 3C048011 */ lui $a0, %hi(D_80109244)
/* 42D06C 802A915C 24849244 */ addiu $a0, $a0, %lo(D_80109244)
/* 42D070 802A9160 0C050529 */ jal create_icon
/* 42D074 802A9164 00000000 */ nop
/* 42D078 802A9168 0040802D */ daddu $s0, $v0, $zero
/* 42D07C 802A916C 86250056 */ lh $a1, 0x56($s1)
/* 42D080 802A9170 86260058 */ lh $a2, 0x58($s1)
/* 42D084 802A9174 0200202D */ daddu $a0, $s0, $zero
/* 42D088 802A9178 AE300014 */ sw $s0, 0x14($s1)
/* 42D08C 802A917C 0C051261 */ jal set_icon_render_pos
/* 42D090 802A9180 24C6001C */ addiu $a2, $a2, 0x1c
/* 42D094 802A9184 0200202D */ daddu $a0, $s0, $zero
/* 42D098 802A9188 0C051277 */ jal func_801449DC
/* 42D09C 802A918C 0000282D */ daddu $a1, $zero, $zero
/* 42D0A0 802A9190 0200202D */ daddu $a0, $s0, $zero
/* 42D0A4 802A9194 0C051280 */ jal set_icon_flags
/* 42D0A8 802A9198 24050082 */ addiu $a1, $zero, 0x82
/* 42D0AC 802A919C 3C0451EB */ lui $a0, 0x51eb
/* 42D0B0 802A91A0 3484851F */ ori $a0, $a0, 0x851f
/* 42D0B4 802A91A4 24020064 */ addiu $v0, $zero, 0x64
/* 42D0B8 802A91A8 86230046 */ lh $v1, 0x46($s1)
/* 42D0BC 802A91AC 86260058 */ lh $a2, 0x58($s1)
/* 42D0C0 802A91B0 00431023 */ subu $v0, $v0, $v1
/* 42D0C4 802A91B4 00021900 */ sll $v1, $v0, 4
/* 42D0C8 802A91B8 00621823 */ subu $v1, $v1, $v0
/* 42D0CC 802A91BC 00031880 */ sll $v1, $v1, 2
/* 42D0D0 802A91C0 00640018 */ mult $v1, $a0
/* 42D0D4 802A91C4 2405001D */ addiu $a1, $zero, 0x1d
/* 42D0D8 802A91C8 24C60011 */ addiu $a2, $a2, 0x11
/* 42D0DC 802A91CC 00031FC3 */ sra $v1, $v1, 0x1f
/* 42D0E0 802A91D0 8E240010 */ lw $a0, 0x10($s1)
/* 42D0E4 802A91D4 00003810 */ mfhi $a3
/* 42D0E8 802A91D8 00071143 */ sra $v0, $a3, 5
/* 42D0EC 802A91DC 00431023 */ subu $v0, $v0, $v1
/* 42D0F0 802A91E0 86230056 */ lh $v1, 0x56($s1)
/* 42D0F4 802A91E4 00A22823 */ subu $a1, $a1, $v0
/* 42D0F8 802A91E8 0C051261 */ jal set_icon_render_pos
/* 42D0FC 802A91EC 00652823 */ subu $a1, $v1, $a1
/* 42D100 802A91F0 080AA47F */ j .L802A91FC
/* 42D104 802A91F4 24020002 */ addiu $v0, $zero, 2
.L802A91F8:
/* 42D108 802A91F8 24020002 */ addiu $v0, $zero, 2
.L802A91FC:
/* 42D10C 802A91FC 8FBF0018 */ lw $ra, 0x18($sp)
/* 42D110 802A9200 8FB10014 */ lw $s1, 0x14($sp)
/* 42D114 802A9204 8FB00010 */ lw $s0, 0x10($sp)
/* 42D118 802A9208 03E00008 */ jr $ra
/* 42D11C 802A920C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,70 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9210_42D120
/* 42D120 802A9210 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42D124 802A9214 AFB20018 */ sw $s2, 0x18($sp)
/* 42D128 802A9218 0080902D */ daddu $s2, $a0, $zero
/* 42D12C 802A921C AFB10014 */ sw $s1, 0x14($sp)
/* 42D130 802A9220 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42D134 802A9224 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42D138 802A9228 AFB3001C */ sw $s3, 0x1c($sp)
/* 42D13C 802A922C 3C13800E */ lui $s3, %hi(gBattleStatus)
/* 42D140 802A9230 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus)
/* 42D144 802A9234 AFBF0020 */ sw $ra, 0x20($sp)
/* 42D148 802A9238 AFB00010 */ sw $s0, 0x10($sp)
/* 42D14C 802A923C 82620083 */ lb $v0, 0x83($s3)
/* 42D150 802A9240 8E50000C */ lw $s0, 0xc($s2)
/* 42D154 802A9244 10400029 */ beqz $v0, .L802A92EC
/* 42D158 802A9248 0260182D */ daddu $v1, $s3, $zero
/* 42D15C 802A924C 0C09A216 */ jal func_80268858
/* 42D160 802A9250 00000000 */ nop
/* 42D164 802A9254 8E050000 */ lw $a1, ($s0)
/* 42D168 802A9258 26100004 */ addiu $s0, $s0, 4
/* 42D16C 802A925C 0C0B1EAF */ jal get_variable
/* 42D170 802A9260 0240202D */ daddu $a0, $s2, $zero
/* 42D174 802A9264 A622004E */ sh $v0, 0x4e($s1)
/* 42D178 802A9268 8E050000 */ lw $a1, ($s0)
/* 42D17C 802A926C 26100004 */ addiu $s0, $s0, 4
/* 42D180 802A9270 0C0B1EAF */ jal get_variable
/* 42D184 802A9274 0240202D */ daddu $a0, $s2, $zero
/* 42D188 802A9278 A6220052 */ sh $v0, 0x52($s1)
/* 42D18C 802A927C 8E050000 */ lw $a1, ($s0)
/* 42D190 802A9280 26100004 */ addiu $s0, $s0, 4
/* 42D194 802A9284 0C0B1EAF */ jal get_variable
/* 42D198 802A9288 0240202D */ daddu $a0, $s2, $zero
/* 42D19C 802A928C 00022400 */ sll $a0, $v0, 0x10
/* 42D1A0 802A9290 00042403 */ sra $a0, $a0, 0x10
/* 42D1A4 802A9294 0C09A089 */ jal func_80268224
/* 42D1A8 802A9298 A6220050 */ sh $v0, 0x50($s1)
/* 42D1AC 802A929C A6220050 */ sh $v0, 0x50($s1)
/* 42D1B0 802A92A0 8E050000 */ lw $a1, ($s0)
/* 42D1B4 802A92A4 0C0B1EAF */ jal get_variable
/* 42D1B8 802A92A8 0240202D */ daddu $a0, $s2, $zero
/* 42D1BC 802A92AC 3C04FFFF */ lui $a0, 0xffff
/* 42D1C0 802A92B0 34847FFF */ ori $a0, $a0, 0x7fff
/* 42D1C4 802A92B4 A6220064 */ sh $v0, 0x64($s1)
/* 42D1C8 802A92B8 A2200060 */ sb $zero, 0x60($s1)
/* 42D1CC 802A92BC A6200044 */ sh $zero, 0x44($s1)
/* 42D1D0 802A92C0 A6200048 */ sh $zero, 0x48($s1)
/* 42D1D4 802A92C4 8E620000 */ lw $v0, ($s3)
/* 42D1D8 802A92C8 2403000A */ addiu $v1, $zero, 0xa
/* 42D1DC 802A92CC A2600081 */ sb $zero, 0x81($s3)
/* 42D1E0 802A92D0 A2600086 */ sb $zero, 0x86($s3)
/* 42D1E4 802A92D4 A623004C */ sh $v1, 0x4c($s1)
/* 42D1E8 802A92D8 00441024 */ and $v0, $v0, $a0
/* 42D1EC 802A92DC 0C09A446 */ jal func_80269118
/* 42D1F0 802A92E0 AE620000 */ sw $v0, ($s3)
/* 42D1F4 802A92E4 080AA4BD */ j .L802A92F4
/* 42D1F8 802A92E8 24020002 */ addiu $v0, $zero, 2
.L802A92EC:
/* 42D1FC 802A92EC A0600081 */ sb $zero, 0x81($v1)
/* 42D200 802A92F0 24020002 */ addiu $v0, $zero, 2
.L802A92F4:
/* 42D204 802A92F4 8FBF0020 */ lw $ra, 0x20($sp)
/* 42D208 802A92F8 8FB3001C */ lw $s3, 0x1c($sp)
/* 42D20C 802A92FC 8FB20018 */ lw $s2, 0x18($sp)
/* 42D210 802A9300 8FB10014 */ lw $s1, 0x14($sp)
/* 42D214 802A9304 8FB00010 */ lw $s0, 0x10($sp)
/* 42D218 802A9308 03E00008 */ jr $ra
/* 42D21C 802A930C 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,400 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9310_42D220
/* 42D220 802A9310 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 42D224 802A9314 AFB10014 */ sw $s1, 0x14($sp)
/* 42D228 802A9318 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42D22C 802A931C 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42D230 802A9320 AFBF001C */ sw $ra, 0x1c($sp)
/* 42D234 802A9324 AFB20018 */ sw $s2, 0x18($sp)
/* 42D238 802A9328 AFB00010 */ sw $s0, 0x10($sp)
/* 42D23C 802A932C 8623004C */ lh $v1, 0x4c($s1)
/* 42D240 802A9330 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 42D244 802A9334 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 42D248 802A9338 2C62000D */ sltiu $v0, $v1, 0xd
/* 42D24C 802A933C 1040013F */ beqz $v0, .L802A983C
/* 42D250 802A9340 00031080 */ sll $v0, $v1, 2
/* 42D254 802A9344 3C01802B */ lui $at, %hi(D_802A9AC0)
/* 42D258 802A9348 00220821 */ addu $at, $at, $v0
/* 42D25C 802A934C 8C229AC0 */ lw $v0, %lo(D_802A9AC0)($at)
/* 42D260 802A9350 00400008 */ jr $v0
/* 42D264 802A9354 00000000 */ nop
/* 42D268 802A9358 0C093EB1 */ jal set_popup_duration
/* 42D26C 802A935C 24040063 */ addiu $a0, $zero, 0x63
/* 42D270 802A9360 82220061 */ lb $v0, 0x61($s1)
/* 42D274 802A9364 8E300004 */ lw $s0, 4($s1)
/* 42D278 802A9368 10400004 */ beqz $v0, .L802A937C
/* 42D27C 802A936C 0200202D */ daddu $a0, $s0, $zero
/* 42D280 802A9370 0C05128B */ jal clear_icon_flags
/* 42D284 802A9374 24050002 */ addiu $a1, $zero, 2
/* 42D288 802A9378 0200202D */ daddu $a0, $s0, $zero
.L802A937C:
/* 42D28C 802A937C 0C0513AC */ jal icon_set_opacity
/* 42D290 802A9380 240500FF */ addiu $a1, $zero, 0xff
/* 42D294 802A9384 8E300008 */ lw $s0, 8($s1)
/* 42D298 802A9388 240500FF */ addiu $a1, $zero, 0xff
/* 42D29C 802A938C 0C0513AC */ jal icon_set_opacity
/* 42D2A0 802A9390 0200202D */ daddu $a0, $s0, $zero
/* 42D2A4 802A9394 82220061 */ lb $v0, 0x61($s1)
/* 42D2A8 802A9398 10400003 */ beqz $v0, .L802A93A8
/* 42D2AC 802A939C 0200202D */ daddu $a0, $s0, $zero
/* 42D2B0 802A93A0 0C05128B */ jal clear_icon_flags
/* 42D2B4 802A93A4 24050002 */ addiu $a1, $zero, 2
.L802A93A8:
/* 42D2B8 802A93A8 8E300014 */ lw $s0, 0x14($s1)
/* 42D2BC 802A93AC 240500FF */ addiu $a1, $zero, 0xff
/* 42D2C0 802A93B0 0C0513AC */ jal icon_set_opacity
/* 42D2C4 802A93B4 0200202D */ daddu $a0, $s0, $zero
/* 42D2C8 802A93B8 82220061 */ lb $v0, 0x61($s1)
/* 42D2CC 802A93BC 10400003 */ beqz $v0, .L802A93CC
/* 42D2D0 802A93C0 0200202D */ daddu $a0, $s0, $zero
/* 42D2D4 802A93C4 0C05128B */ jal clear_icon_flags
/* 42D2D8 802A93C8 24050002 */ addiu $a1, $zero, 2
.L802A93CC:
/* 42D2DC 802A93CC 24020001 */ addiu $v0, $zero, 1
/* 42D2E0 802A93D0 080AA60E */ j .L802A9838
/* 42D2E4 802A93D4 A622004C */ sh $v0, 0x4c($s1)
/* 42D2E8 802A93D8 0C093EB1 */ jal set_popup_duration
/* 42D2EC 802A93DC 24040063 */ addiu $a0, $zero, 0x63
/* 42D2F0 802A93E0 8622006C */ lh $v0, 0x6c($s1)
/* 42D2F4 802A93E4 9623006C */ lhu $v1, 0x6c($s1)
/* 42D2F8 802A93E8 10400003 */ beqz $v0, .L802A93F8
/* 42D2FC 802A93EC 2462FFFF */ addiu $v0, $v1, -1
/* 42D300 802A93F0 080AA60E */ j .L802A9838
/* 42D304 802A93F4 A622006C */ sh $v0, 0x6c($s1)
.L802A93F8:
/* 42D308 802A93F8 96220056 */ lhu $v0, 0x56($s1)
/* 42D30C 802A93FC 24420014 */ addiu $v0, $v0, 0x14
/* 42D310 802A9400 A6220056 */ sh $v0, 0x56($s1)
/* 42D314 802A9404 00021400 */ sll $v0, $v0, 0x10
/* 42D318 802A9408 00021403 */ sra $v0, $v0, 0x10
/* 42D31C 802A940C 28420033 */ slti $v0, $v0, 0x33
/* 42D320 802A9410 14400002 */ bnez $v0, .L802A941C
/* 42D324 802A9414 24020032 */ addiu $v0, $zero, 0x32
/* 42D328 802A9418 A6220056 */ sh $v0, 0x56($s1)
.L802A941C:
/* 42D32C 802A941C 8E240004 */ lw $a0, 4($s1)
/* 42D330 802A9420 86250056 */ lh $a1, 0x56($s1)
/* 42D334 802A9424 0C051261 */ jal set_icon_render_pos
/* 42D338 802A9428 86260058 */ lh $a2, 0x58($s1)
/* 42D33C 802A942C 8E240008 */ lw $a0, 8($s1)
/* 42D340 802A9430 86260058 */ lh $a2, 0x58($s1)
/* 42D344 802A9434 86250056 */ lh $a1, 0x56($s1)
/* 42D348 802A9438 0C051261 */ jal set_icon_render_pos
/* 42D34C 802A943C 24C6001C */ addiu $a2, $a2, 0x1c
/* 42D350 802A9440 3C0451EB */ lui $a0, 0x51eb
/* 42D354 802A9444 3484851F */ ori $a0, $a0, 0x851f
/* 42D358 802A9448 24020064 */ addiu $v0, $zero, 0x64
/* 42D35C 802A944C 86230046 */ lh $v1, 0x46($s1)
/* 42D360 802A9450 86260058 */ lh $a2, 0x58($s1)
/* 42D364 802A9454 00432823 */ subu $a1, $v0, $v1
/* 42D368 802A9458 00051100 */ sll $v0, $a1, 4
/* 42D36C 802A945C 00451023 */ subu $v0, $v0, $a1
/* 42D370 802A9460 00021080 */ sll $v0, $v0, 2
/* 42D374 802A9464 00440018 */ mult $v0, $a0
/* 42D378 802A9468 24C60011 */ addiu $a2, $a2, 0x11
/* 42D37C 802A946C 000217C3 */ sra $v0, $v0, 0x1f
/* 42D380 802A9470 2405001D */ addiu $a1, $zero, 0x1d
/* 42D384 802A9474 8E240014 */ lw $a0, 0x14($s1)
/* 42D388 802A9478 00004810 */ mfhi $t1
/* 42D38C 802A947C 00091943 */ sra $v1, $t1, 5
/* 42D390 802A9480 00621823 */ subu $v1, $v1, $v0
/* 42D394 802A9484 86220056 */ lh $v0, 0x56($s1)
/* 42D398 802A9488 00A32823 */ subu $a1, $a1, $v1
/* 42D39C 802A948C 0C051261 */ jal set_icon_render_pos
/* 42D3A0 802A9490 00452823 */ subu $a1, $v0, $a1
/* 42D3A4 802A9494 080AA60E */ j .L802A9838
/* 42D3A8 802A9498 00000000 */ nop
/* 42D3AC 802A949C 0C093EB1 */ jal set_popup_duration
/* 42D3B0 802A94A0 24040063 */ addiu $a0, $zero, 0x63
/* 42D3B4 802A94A4 8622004E */ lh $v0, 0x4e($s1)
/* 42D3B8 802A94A8 9623004E */ lhu $v1, 0x4e($s1)
/* 42D3BC 802A94AC 10400003 */ beqz $v0, .L802A94BC
/* 42D3C0 802A94B0 2462FFFF */ addiu $v0, $v1, -1
/* 42D3C4 802A94B4 080AA60E */ j .L802A9838
/* 42D3C8 802A94B8 A622004E */ sh $v0, 0x4e($s1)
.L802A94BC:
/* 42D3CC 802A94BC 8E240004 */ lw $a0, 4($s1)
/* 42D3D0 802A94C0 3C058011 */ lui $a1, %hi(D_80108B80)
/* 42D3D4 802A94C4 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80)
/* 42D3D8 802A94C8 0C0511FF */ jal set_menu_icon_script
/* 42D3DC 802A94CC 00000000 */ nop
/* 42D3E0 802A94D0 3C048000 */ lui $a0, 0x8000
/* 42D3E4 802A94D4 34840041 */ ori $a0, $a0, 0x41
/* 42D3E8 802A94D8 0000282D */ daddu $a1, $zero, $zero
/* 42D3EC 802A94DC 00A0302D */ daddu $a2, $a1, $zero
/* 42D3F0 802A94E0 00A0382D */ daddu $a3, $a1, $zero
/* 42D3F4 802A94E4 96220052 */ lhu $v0, 0x52($s1)
/* 42D3F8 802A94E8 24030001 */ addiu $v1, $zero, 1
/* 42D3FC 802A94EC A6200044 */ sh $zero, 0x44($s1)
/* 42D400 802A94F0 A220005C */ sb $zero, 0x5c($s1)
/* 42D404 802A94F4 3C01802B */ lui $at, %hi(D_802A9B00)
/* 42D408 802A94F8 AC239B00 */ sw $v1, %lo(D_802A9B00)($at)
/* 42D40C 802A94FC 0C0526AE */ jal _play_sound
/* 42D410 802A9500 A6220054 */ sh $v0, 0x54($s1)
/* 42D414 802A9504 2402000B */ addiu $v0, $zero, 0xb
/* 42D418 802A9508 A622004C */ sh $v0, 0x4c($s1)
/* 42D41C 802A950C 0C093EB1 */ jal set_popup_duration
/* 42D420 802A9510 24040063 */ addiu $a0, $zero, 0x63
/* 42D424 802A9514 86220068 */ lh $v0, 0x68($s1)
/* 42D428 802A9518 14400027 */ bnez $v0, .L802A95B8
/* 42D42C 802A951C 00000000 */ nop
/* 42D430 802A9520 86220064 */ lh $v0, 0x64($s1)
/* 42D434 802A9524 1040001E */ beqz $v0, .L802A95A0
/* 42D438 802A9528 00000000 */ nop
/* 42D43C 802A952C 82220080 */ lb $v0, 0x80($s1)
/* 42D440 802A9530 00021040 */ sll $v0, $v0, 1
/* 42D444 802A9534 02221021 */ addu $v0, $s1, $v0
/* 42D448 802A9538 84430074 */ lh $v1, 0x74($v0)
/* 42D44C 802A953C 86220044 */ lh $v0, 0x44($s1)
/* 42D450 802A9540 14600002 */ bnez $v1, .L802A954C
/* 42D454 802A9544 0043001A */ div $zero, $v0, $v1
/* 42D458 802A9548 0007000D */ break 7
.L802A954C:
/* 42D45C 802A954C 2401FFFF */ addiu $at, $zero, -1
/* 42D460 802A9550 14610004 */ bne $v1, $at, .L802A9564
/* 42D464 802A9554 3C018000 */ lui $at, 0x8000
/* 42D468 802A9558 14410002 */ bne $v0, $at, .L802A9564
/* 42D46C 802A955C 00000000 */ nop
/* 42D470 802A9560 0006000D */ break 6
.L802A9564:
/* 42D474 802A9564 00001012 */ mflo $v0
/* 42D478 802A9568 3C036666 */ lui $v1, 0x6666
/* 42D47C 802A956C 34636667 */ ori $v1, $v1, 0x6667
/* 42D480 802A9570 00430018 */ mult $v0, $v1
/* 42D484 802A9574 000217C3 */ sra $v0, $v0, 0x1f
/* 42D488 802A9578 00001810 */ mfhi $v1
/* 42D48C 802A957C 000318C3 */ sra $v1, $v1, 3
/* 42D490 802A9580 00621823 */ subu $v1, $v1, $v0
/* 42D494 802A9584 00031880 */ sll $v1, $v1, 2
/* 42D498 802A9588 96220044 */ lhu $v0, 0x44($s1)
/* 42D49C 802A958C 3C01802B */ lui $at, %hi(D_802A9AA2)
/* 42D4A0 802A9590 00230821 */ addu $at, $at, $v1
/* 42D4A4 802A9594 94239AA2 */ lhu $v1, %lo(D_802A9AA2)($at)
/* 42D4A8 802A9598 080AA56A */ j .L802A95A8
/* 42D4AC 802A959C 00431023 */ subu $v0, $v0, $v1
.L802A95A0:
/* 42D4B0 802A95A0 96220044 */ lhu $v0, 0x44($s1)
/* 42D4B4 802A95A4 2442FFF6 */ addiu $v0, $v0, -0xa
.L802A95A8:
/* 42D4B8 802A95A8 A6220044 */ sh $v0, 0x44($s1)
/* 42D4BC 802A95AC 00021400 */ sll $v0, $v0, 0x10
/* 42D4C0 802A95B0 04420001 */ bltzl $v0, .L802A95B8
/* 42D4C4 802A95B4 A6200044 */ sh $zero, 0x44($s1)
.L802A95B8:
/* 42D4C8 802A95B8 8E420214 */ lw $v0, 0x214($s2)
/* 42D4CC 802A95BC 30428000 */ andi $v0, $v0, 0x8000
/* 42D4D0 802A95C0 1040002B */ beqz $v0, .L802A9670
/* 42D4D4 802A95C4 00000000 */ nop
/* 42D4D8 802A95C8 86250064 */ lh $a1, 0x64($s1)
/* 42D4DC 802A95CC 10A0001F */ beqz $a1, .L802A964C
/* 42D4E0 802A95D0 3C0451EB */ lui $a0, 0x51eb
/* 42D4E4 802A95D4 86220050 */ lh $v0, 0x50($s1)
/* 42D4E8 802A95D8 8E430434 */ lw $v1, 0x434($s2)
/* 42D4EC 802A95DC 00021080 */ sll $v0, $v0, 2
/* 42D4F0 802A95E0 00431021 */ addu $v0, $v0, $v1
/* 42D4F4 802A95E4 8C430000 */ lw $v1, ($v0)
/* 42D4F8 802A95E8 3484851F */ ori $a0, $a0, 0x851f
/* 42D4FC 802A95EC 00031040 */ sll $v0, $v1, 1
/* 42D500 802A95F0 00431021 */ addu $v0, $v0, $v1
/* 42D504 802A95F4 000210C0 */ sll $v0, $v0, 3
/* 42D508 802A95F8 00431021 */ addu $v0, $v0, $v1
/* 42D50C 802A95FC 00021900 */ sll $v1, $v0, 4
/* 42D510 802A9600 00431021 */ addu $v0, $v0, $v1
/* 42D514 802A9604 00021040 */ sll $v0, $v0, 1
/* 42D518 802A9608 00440018 */ mult $v0, $a0
/* 42D51C 802A960C 000217C3 */ sra $v0, $v0, 0x1f
/* 42D520 802A9610 00001810 */ mfhi $v1
/* 42D524 802A9614 00031943 */ sra $v1, $v1, 5
/* 42D528 802A9618 00621823 */ subu $v1, $v1, $v0
/* 42D52C 802A961C 00650018 */ mult $v1, $a1
/* 42D530 802A9620 00001812 */ mflo $v1
/* 42D534 802A9624 00000000 */ nop
/* 42D538 802A9628 00000000 */ nop
/* 42D53C 802A962C 00640018 */ mult $v1, $a0
/* 42D540 802A9630 00031FC3 */ sra $v1, $v1, 0x1f
/* 42D544 802A9634 00001010 */ mfhi $v0
/* 42D548 802A9638 00022143 */ sra $a0, $v0, 5
/* 42D54C 802A963C 96220044 */ lhu $v0, 0x44($s1)
/* 42D550 802A9640 00832823 */ subu $a1, $a0, $v1
/* 42D554 802A9644 080AA59B */ j .L802A966C
/* 42D558 802A9648 00451021 */ addu $v0, $v0, $a1
.L802A964C:
/* 42D55C 802A964C 96220044 */ lhu $v0, 0x44($s1)
/* 42D560 802A9650 24420064 */ addiu $v0, $v0, 0x64
/* 42D564 802A9654 A6220044 */ sh $v0, 0x44($s1)
/* 42D568 802A9658 00021400 */ sll $v0, $v0, 0x10
/* 42D56C 802A965C 00021403 */ sra $v0, $v0, 0x10
/* 42D570 802A9660 284201F4 */ slti $v0, $v0, 0x1f4
/* 42D574 802A9664 14400002 */ bnez $v0, .L802A9670
/* 42D578 802A9668 240201F4 */ addiu $v0, $zero, 0x1f4
.L802A966C:
/* 42D57C 802A966C A6220044 */ sh $v0, 0x44($s1)
.L802A9670:
/* 42D580 802A9670 86220044 */ lh $v0, 0x44($s1)
/* 42D584 802A9674 28422711 */ slti $v0, $v0, 0x2711
/* 42D588 802A9678 14400010 */ bnez $v0, .L802A96BC
/* 42D58C 802A967C 3C1051EB */ lui $s0, 0x51eb
/* 42D590 802A9680 8E300010 */ lw $s0, 0x10($s1)
/* 42D594 802A9684 86250056 */ lh $a1, 0x56($s1)
/* 42D598 802A9688 86260058 */ lh $a2, 0x58($s1)
/* 42D59C 802A968C 24022710 */ addiu $v0, $zero, 0x2710
/* 42D5A0 802A9690 A6220044 */ sh $v0, 0x44($s1)
/* 42D5A4 802A9694 24020001 */ addiu $v0, $zero, 1
/* 42D5A8 802A9698 A6220068 */ sh $v0, 0x68($s1)
/* 42D5AC 802A969C 0200202D */ daddu $a0, $s0, $zero
/* 42D5B0 802A96A0 24A50032 */ addiu $a1, $a1, 0x32
/* 42D5B4 802A96A4 0C051261 */ jal set_icon_render_pos
/* 42D5B8 802A96A8 24C6001C */ addiu $a2, $a2, 0x1c
/* 42D5BC 802A96AC 0200202D */ daddu $a0, $s0, $zero
/* 42D5C0 802A96B0 0C05128B */ jal clear_icon_flags
/* 42D5C4 802A96B4 24050002 */ addiu $a1, $zero, 2
/* 42D5C8 802A96B8 3C1051EB */ lui $s0, 0x51eb
.L802A96BC:
/* 42D5CC 802A96BC 3610851F */ ori $s0, $s0, 0x851f
/* 42D5D0 802A96C0 96230044 */ lhu $v1, 0x44($s1)
/* 42D5D4 802A96C4 3C048000 */ lui $a0, 0x8000
/* 42D5D8 802A96C8 00031C00 */ sll $v1, $v1, 0x10
/* 42D5DC 802A96CC 00031403 */ sra $v0, $v1, 0x10
/* 42D5E0 802A96D0 00500018 */ mult $v0, $s0
/* 42D5E4 802A96D4 34840041 */ ori $a0, $a0, 0x41
/* 42D5E8 802A96D8 0000282D */ daddu $a1, $zero, $zero
/* 42D5EC 802A96DC 00A0302D */ daddu $a2, $a1, $zero
/* 42D5F0 802A96E0 00031FC3 */ sra $v1, $v1, 0x1f
/* 42D5F4 802A96E4 00004810 */ mfhi $t1
/* 42D5F8 802A96E8 00094143 */ sra $t0, $t1, 5
/* 42D5FC 802A96EC 01034023 */ subu $t0, $t0, $v1
/* 42D600 802A96F0 00081600 */ sll $v0, $t0, 0x18
/* 42D604 802A96F4 00021603 */ sra $v0, $v0, 0x18
/* 42D608 802A96F8 00023840 */ sll $a3, $v0, 1
/* 42D60C 802A96FC 00E23821 */ addu $a3, $a3, $v0
/* 42D610 802A9700 00073880 */ sll $a3, $a3, 2
/* 42D614 802A9704 0C0526F9 */ jal func_80149BE4
/* 42D618 802A9708 A2480084 */ sb $t0, 0x84($s2)
/* 42D61C 802A970C 86220054 */ lh $v0, 0x54($s1)
/* 42D620 802A9710 96230054 */ lhu $v1, 0x54($s1)
/* 42D624 802A9714 14400044 */ bnez $v0, .L802A9828
/* 42D628 802A9718 2462FFFF */ addiu $v0, $v1, -1
/* 42D62C 802A971C 86220064 */ lh $v0, 0x64($s1)
/* 42D630 802A9720 86250044 */ lh $a1, 0x44($s1)
/* 42D634 802A9724 50400001 */ beql $v0, $zero, .L802A972C
/* 42D638 802A9728 0000282D */ daddu $a1, $zero, $zero
.L802A972C:
/* 42D63C 802A972C 00B00018 */ mult $a1, $s0
/* 42D640 802A9730 000517C3 */ sra $v0, $a1, 0x1f
/* 42D644 802A9734 00004810 */ mfhi $t1
/* 42D648 802A9738 00091943 */ sra $v1, $t1, 5
/* 42D64C 802A973C 00621023 */ subu $v0, $v1, $v0
/* 42D650 802A9740 14A00004 */ bnez $a1, .L802A9754
/* 42D654 802A9744 A2420084 */ sb $v0, 0x84($s2)
/* 42D658 802A9748 2402FFFF */ addiu $v0, $zero, -1
/* 42D65C 802A974C 080AA5DD */ j .L802A9774
/* 42D660 802A9750 A2420081 */ sb $v0, 0x81($s2)
.L802A9754:
/* 42D664 802A9754 00021600 */ sll $v0, $v0, 0x18
/* 42D668 802A9758 86230046 */ lh $v1, 0x46($s1)
/* 42D66C 802A975C 00021603 */ sra $v0, $v0, 0x18
/* 42D670 802A9760 0043102A */ slt $v0, $v0, $v1
/* 42D674 802A9764 54400003 */ bnel $v0, $zero, .L802A9774
/* 42D678 802A9768 A2400081 */ sb $zero, 0x81($s2)
/* 42D67C 802A976C 24020001 */ addiu $v0, $zero, 1
/* 42D680 802A9770 A2420081 */ sb $v0, 0x81($s2)
.L802A9774:
/* 42D684 802A9774 82220080 */ lb $v0, 0x80($s1)
/* 42D688 802A9778 2442FFFF */ addiu $v0, $v0, -1
/* 42D68C 802A977C 00021040 */ sll $v0, $v0, 1
/* 42D690 802A9780 02221021 */ addu $v0, $s1, $v0
/* 42D694 802A9784 94420074 */ lhu $v0, 0x74($v0)
/* 42D698 802A9788 00021400 */ sll $v0, $v0, 0x10
/* 42D69C 802A978C 00021C03 */ sra $v1, $v0, 0x10
/* 42D6A0 802A9790 000217C2 */ srl $v0, $v0, 0x1f
/* 42D6A4 802A9794 00621021 */ addu $v0, $v1, $v0
/* 42D6A8 802A9798 82430084 */ lb $v1, 0x84($s2)
/* 42D6AC 802A979C 00021043 */ sra $v0, $v0, 1
/* 42D6B0 802A97A0 0043102A */ slt $v0, $v0, $v1
/* 42D6B4 802A97A4 14400002 */ bnez $v0, .L802A97B0
/* 42D6B8 802A97A8 24020001 */ addiu $v0, $zero, 1
/* 42D6BC 802A97AC 2402FFFC */ addiu $v0, $zero, -4
.L802A97B0:
/* 42D6C0 802A97B0 A2420086 */ sb $v0, 0x86($s2)
/* 42D6C4 802A97B4 82430081 */ lb $v1, 0x81($s2)
/* 42D6C8 802A97B8 24020001 */ addiu $v0, $zero, 1
/* 42D6CC 802A97BC 14620004 */ bne $v1, $v0, .L802A97D0
/* 42D6D0 802A97C0 3C048000 */ lui $a0, 0x8000
/* 42D6D4 802A97C4 0C09A458 */ jal func_80269160
/* 42D6D8 802A97C8 00000000 */ nop
/* 42D6DC 802A97CC 3C048000 */ lui $a0, 0x8000
.L802A97D0:
/* 42D6E0 802A97D0 0C05271B */ jal stop_sound
/* 42D6E4 802A97D4 34840041 */ ori $a0, $a0, 0x41
/* 42D6E8 802A97D8 0C093EB1 */ jal set_popup_duration
/* 42D6EC 802A97DC 0000202D */ daddu $a0, $zero, $zero
/* 42D6F0 802A97E0 24020005 */ addiu $v0, $zero, 5
/* 42D6F4 802A97E4 A6220054 */ sh $v0, 0x54($s1)
/* 42D6F8 802A97E8 2402000C */ addiu $v0, $zero, 0xc
/* 42D6FC 802A97EC 080AA60E */ j .L802A9838
/* 42D700 802A97F0 A622004C */ sh $v0, 0x4c($s1)
/* 42D704 802A97F4 86220064 */ lh $v0, 0x64($s1)
/* 42D708 802A97F8 14400007 */ bnez $v0, .L802A9818
/* 42D70C 802A97FC 00000000 */ nop
/* 42D710 802A9800 96220044 */ lhu $v0, 0x44($s1)
/* 42D714 802A9804 2442FF9C */ addiu $v0, $v0, -0x64
/* 42D718 802A9808 A6220044 */ sh $v0, 0x44($s1)
/* 42D71C 802A980C 00021400 */ sll $v0, $v0, 0x10
/* 42D720 802A9810 04420001 */ bltzl $v0, .L802A9818
/* 42D724 802A9814 A6200044 */ sh $zero, 0x44($s1)
.L802A9818:
/* 42D728 802A9818 86220054 */ lh $v0, 0x54($s1)
/* 42D72C 802A981C 96230054 */ lhu $v1, 0x54($s1)
/* 42D730 802A9820 10400003 */ beqz $v0, .L802A9830
/* 42D734 802A9824 2462FFFF */ addiu $v0, $v1, -1
.L802A9828:
/* 42D738 802A9828 080AA60E */ j .L802A9838
/* 42D73C 802A982C A6220054 */ sh $v0, 0x54($s1)
.L802A9830:
/* 42D740 802A9830 0C09A327 */ jal func_80268C9C
/* 42D744 802A9834 00000000 */ nop
.L802A9838:
/* 42D748 802A9838 8623004C */ lh $v1, 0x4c($s1)
.L802A983C:
/* 42D74C 802A983C 24040001 */ addiu $a0, $zero, 1
/* 42D750 802A9840 10640007 */ beq $v1, $a0, .L802A9860
/* 42D754 802A9844 00000000 */ nop
/* 42D758 802A9848 1860001B */ blez $v1, .L802A98B8
/* 42D75C 802A984C 2862000C */ slti $v0, $v1, 0xc
/* 42D760 802A9850 10400019 */ beqz $v0, .L802A98B8
/* 42D764 802A9854 2862000A */ slti $v0, $v1, 0xa
/* 42D768 802A9858 14400017 */ bnez $v0, .L802A98B8
/* 42D76C 802A985C 00000000 */ nop
.L802A9860:
/* 42D770 802A9860 86220066 */ lh $v0, 0x66($s1)
/* 42D774 802A9864 1440000C */ bnez $v0, .L802A9898
/* 42D778 802A9868 00000000 */ nop
/* 42D77C 802A986C 96220046 */ lhu $v0, 0x46($s1)
/* 42D780 802A9870 24420007 */ addiu $v0, $v0, 7
/* 42D784 802A9874 A6220046 */ sh $v0, 0x46($s1)
/* 42D788 802A9878 00021400 */ sll $v0, $v0, 0x10
/* 42D78C 802A987C 00021403 */ sra $v0, $v0, 0x10
/* 42D790 802A9880 28420064 */ slti $v0, $v0, 0x64
/* 42D794 802A9884 1440000C */ bnez $v0, .L802A98B8
/* 42D798 802A9888 24020064 */ addiu $v0, $zero, 0x64
/* 42D79C 802A988C A6220046 */ sh $v0, 0x46($s1)
/* 42D7A0 802A9890 080AA62E */ j .L802A98B8
/* 42D7A4 802A9894 A6240066 */ sh $a0, 0x66($s1)
.L802A9898:
/* 42D7A8 802A9898 96220046 */ lhu $v0, 0x46($s1)
/* 42D7AC 802A989C 2442FFF9 */ addiu $v0, $v0, -7
/* 42D7B0 802A98A0 A6220046 */ sh $v0, 0x46($s1)
/* 42D7B4 802A98A4 00021400 */ sll $v0, $v0, 0x10
/* 42D7B8 802A98A8 1C400003 */ bgtz $v0, .L802A98B8
/* 42D7BC 802A98AC 00000000 */ nop
/* 42D7C0 802A98B0 A6200046 */ sh $zero, 0x46($s1)
/* 42D7C4 802A98B4 A6200066 */ sh $zero, 0x66($s1)
.L802A98B8:
/* 42D7C8 802A98B8 8FBF001C */ lw $ra, 0x1c($sp)
/* 42D7CC 802A98BC 8FB20018 */ lw $s2, 0x18($sp)
/* 42D7D0 802A98C0 8FB10014 */ lw $s1, 0x14($sp)
/* 42D7D4 802A98C4 8FB00010 */ lw $s0, 0x10($sp)
/* 42D7D8 802A98C8 03E00008 */ jr $ra
/* 42D7DC 802A98CC 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,105 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A98D0_42D7E0
/* 42D7E0 802A98D0 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 42D7E4 802A98D4 AFB40028 */ sw $s4, 0x28($sp)
/* 42D7E8 802A98D8 3C1451EB */ lui $s4, 0x51eb
/* 42D7EC 802A98DC AFB30024 */ sw $s3, 0x24($sp)
/* 42D7F0 802A98E0 3C13802A */ lui $s3, %hi(D_8029FBE0)
/* 42D7F4 802A98E4 2673FBE0 */ addiu $s3, $s3, %lo(D_8029FBE0)
/* 42D7F8 802A98E8 AFBF002C */ sw $ra, 0x2c($sp)
/* 42D7FC 802A98EC AFB20020 */ sw $s2, 0x20($sp)
/* 42D800 802A98F0 AFB1001C */ sw $s1, 0x1c($sp)
/* 42D804 802A98F4 AFB00018 */ sw $s0, 0x18($sp)
/* 42D808 802A98F8 86630046 */ lh $v1, 0x46($s3)
/* 42D80C 802A98FC 3694851F */ ori $s4, $s4, 0x851f
/* 42D810 802A9900 00031100 */ sll $v0, $v1, 4
/* 42D814 802A9904 00431023 */ subu $v0, $v0, $v1
/* 42D818 802A9908 00021080 */ sll $v0, $v0, 2
/* 42D81C 802A990C 00540018 */ mult $v0, $s4
/* 42D820 802A9910 86660058 */ lh $a2, 0x58($s3)
/* 42D824 802A9914 8E640014 */ lw $a0, 0x14($s3)
/* 42D828 802A9918 24C60011 */ addiu $a2, $a2, 0x11
/* 42D82C 802A991C 000217C3 */ sra $v0, $v0, 0x1f
/* 42D830 802A9920 00004010 */ mfhi $t0
/* 42D834 802A9924 00081943 */ sra $v1, $t0, 5
/* 42D838 802A9928 00621823 */ subu $v1, $v1, $v0
/* 42D83C 802A992C 2402003C */ addiu $v0, $zero, 0x3c
/* 42D840 802A9930 00431023 */ subu $v0, $v0, $v1
/* 42D844 802A9934 86630056 */ lh $v1, 0x56($s3)
/* 42D848 802A9938 2445FFE1 */ addiu $a1, $v0, -0x1f
/* 42D84C 802A993C AFA20010 */ sw $v0, 0x10($sp)
/* 42D850 802A9940 0C051261 */ jal set_icon_render_pos
/* 42D854 802A9944 00652823 */ subu $a1, $v1, $a1
/* 42D858 802A9948 8E640004 */ lw $a0, 4($s3)
/* 42D85C 802A994C 0C0511EA */ jal draw_icon_0
/* 42D860 802A9950 00000000 */ nop
/* 42D864 802A9954 8E720008 */ lw $s2, 8($s3)
/* 42D868 802A9958 0C0511EA */ jal draw_icon_0
/* 42D86C 802A995C 0240202D */ daddu $a0, $s2, $zero
/* 42D870 802A9960 0240202D */ daddu $a0, $s2, $zero
/* 42D874 802A9964 27B10010 */ addiu $s1, $sp, 0x10
/* 42D878 802A9968 0220282D */ daddu $a1, $s1, $zero
/* 42D87C 802A996C 27B00014 */ addiu $s0, $sp, 0x14
/* 42D880 802A9970 0C05126B */ jal get_icon_render_pos
/* 42D884 802A9974 0200302D */ daddu $a2, $s0, $zero
/* 42D888 802A9978 0240202D */ daddu $a0, $s2, $zero
/* 42D88C 802A997C 0220282D */ daddu $a1, $s1, $zero
/* 42D890 802A9980 0C05126B */ jal get_icon_render_pos
/* 42D894 802A9984 0200302D */ daddu $a2, $s0, $zero
/* 42D898 802A9988 3C02802B */ lui $v0, %hi(D_802A9B00)
/* 42D89C 802A998C 8C429B00 */ lw $v0, %lo(D_802A9B00)($v0)
/* 42D8A0 802A9990 14400006 */ bnez $v0, .L802A99AC
/* 42D8A4 802A9994 24070001 */ addiu $a3, $zero, 1
/* 42D8A8 802A9998 96630044 */ lhu $v1, 0x44($s3)
/* 42D8AC 802A999C 00031C00 */ sll $v1, $v1, 0x10
/* 42D8B0 802A99A0 00031403 */ sra $v0, $v1, 0x10
/* 42D8B4 802A99A4 080AA672 */ j .L802A99C8
/* 42D8B8 802A99A8 00540018 */ mult $v0, $s4
.L802A99AC:
/* 42D8BC 802A99AC 86620068 */ lh $v0, 0x68($s3)
/* 42D8C0 802A99B0 14400010 */ bnez $v0, .L802A99F4
/* 42D8C4 802A99B4 24070004 */ addiu $a3, $zero, 4
/* 42D8C8 802A99B8 96630044 */ lhu $v1, 0x44($s3)
/* 42D8CC 802A99BC 00031C00 */ sll $v1, $v1, 0x10
/* 42D8D0 802A99C0 00031403 */ sra $v0, $v1, 0x10
/* 42D8D4 802A99C4 00540018 */ mult $v0, $s4
.L802A99C8:
/* 42D8D8 802A99C8 8FA40010 */ lw $a0, 0x10($sp)
/* 42D8DC 802A99CC 8FA50014 */ lw $a1, 0x14($sp)
/* 42D8E0 802A99D0 00031FC3 */ sra $v1, $v1, 0x1f
/* 42D8E4 802A99D4 00004010 */ mfhi $t0
/* 42D8E8 802A99D8 00083143 */ sra $a2, $t0, 5
/* 42D8EC 802A99DC 00C33023 */ subu $a2, $a2, $v1
/* 42D8F0 802A99E0 00063400 */ sll $a2, $a2, 0x10
/* 42D8F4 802A99E4 0C09A1E6 */ jal func_80268798
/* 42D8F8 802A99E8 00063403 */ sra $a2, $a2, 0x10
/* 42D8FC 802A99EC 080AA68A */ j .L802A9A28
/* 42D900 802A99F0 00000000 */ nop
.L802A99F4:
/* 42D904 802A99F4 96630044 */ lhu $v1, 0x44($s3)
/* 42D908 802A99F8 00031C00 */ sll $v1, $v1, 0x10
/* 42D90C 802A99FC 00031403 */ sra $v0, $v1, 0x10
/* 42D910 802A9A00 00540018 */ mult $v0, $s4
/* 42D914 802A9A04 8FA40010 */ lw $a0, 0x10($sp)
/* 42D918 802A9A08 8FA50014 */ lw $a1, 0x14($sp)
/* 42D91C 802A9A0C 00031FC3 */ sra $v1, $v1, 0x1f
/* 42D920 802A9A10 00004010 */ mfhi $t0
/* 42D924 802A9A14 00083143 */ sra $a2, $t0, 5
/* 42D928 802A9A18 00C33023 */ subu $a2, $a2, $v1
/* 42D92C 802A9A1C 00063400 */ sll $a2, $a2, 0x10
/* 42D930 802A9A20 0C09A20D */ jal func_80268834
/* 42D934 802A9A24 00063403 */ sra $a2, $a2, 0x10
.L802A9A28:
/* 42D938 802A9A28 8E640010 */ lw $a0, 0x10($s3)
/* 42D93C 802A9A2C 0C0511EA */ jal draw_icon_0
/* 42D940 802A9A30 00000000 */ nop
/* 42D944 802A9A34 8FBF002C */ lw $ra, 0x2c($sp)
/* 42D948 802A9A38 8FB40028 */ lw $s4, 0x28($sp)
/* 42D94C 802A9A3C 8FB30024 */ lw $s3, 0x24($sp)
/* 42D950 802A9A40 8FB20020 */ lw $s2, 0x20($sp)
/* 42D954 802A9A44 8FB1001C */ lw $s1, 0x1c($sp)
/* 42D958 802A9A48 8FB00018 */ lw $s0, 0x18($sp)
/* 42D95C 802A9A4C 03E00008 */ jr $ra
/* 42D960 802A9A50 27BD0030 */ addiu $sp, $sp, 0x30

View File

@ -0,0 +1,23 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9A54_42D964
/* 42D964 802A9A54 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 42D968 802A9A58 AFB00010 */ sw $s0, 0x10($sp)
/* 42D96C 802A9A5C 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 42D970 802A9A60 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 42D974 802A9A64 AFBF0014 */ sw $ra, 0x14($sp)
/* 42D978 802A9A68 0C05123D */ jal free_icon
/* 42D97C 802A9A6C 8E040004 */ lw $a0, 4($s0)
/* 42D980 802A9A70 0C05123D */ jal free_icon
/* 42D984 802A9A74 8E040008 */ lw $a0, 8($s0)
/* 42D988 802A9A78 0C05123D */ jal free_icon
/* 42D98C 802A9A7C 8E040010 */ lw $a0, 0x10($s0)
/* 42D990 802A9A80 0C05123D */ jal free_icon
/* 42D994 802A9A84 8E040014 */ lw $a0, 0x14($s0)
/* 42D998 802A9A88 8FBF0014 */ lw $ra, 0x14($sp)
/* 42D99C 802A9A8C 8FB00010 */ lw $s0, 0x10($sp)
/* 42D9A0 802A9A90 03E00008 */ jr $ra
/* 42D9A4 802A9A94 27BD0018 */ addiu $sp, $sp, 0x18
/* 42D9A8 802A9A98 00000000 */ nop
/* 42D9AC 802A9A9C 00000000 */ nop

View File

@ -0,0 +1,110 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_42DA10
/* 42DA10 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 42DA14 802A9004 3C03800E */ lui $v1, %hi(gBattleStatus)
/* 42DA18 802A9008 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus)
/* 42DA1C 802A900C 24020005 */ addiu $v0, $zero, 5
/* 42DA20 802A9010 AFBF0018 */ sw $ra, 0x18($sp)
/* 42DA24 802A9014 AFB10014 */ sw $s1, 0x14($sp)
/* 42DA28 802A9018 AFB00010 */ sw $s0, 0x10($sp)
/* 42DA2C 802A901C A0620082 */ sb $v0, 0x82($v1)
/* 42DA30 802A9020 3C028029 */ lui $v0, %hi(D_802943C0)
/* 42DA34 802A9024 244243C0 */ addiu $v0, $v0, %lo(D_802943C0)
/* 42DA38 802A9028 AC620434 */ sw $v0, 0x434($v1)
/* 42DA3C 802A902C 80620083 */ lb $v0, 0x83($v1)
/* 42DA40 802A9030 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42DA44 802A9034 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42DA48 802A9038 50400053 */ beql $v0, $zero, .L802A9188
/* 42DA4C 802A903C A0600081 */ sb $zero, 0x81($v1)
/* 42DA50 802A9040 0C09A216 */ jal func_80268858
/* 42DA54 802A9044 00000000 */ nop
/* 42DA58 802A9048 3C048011 */ lui $a0, %hi(D_80108B28)
/* 42DA5C 802A904C 24848B28 */ addiu $a0, $a0, %lo(D_80108B28)
/* 42DA60 802A9050 24020011 */ addiu $v0, $zero, 0x11
/* 42DA64 802A9054 A622004A */ sh $v0, 0x4a($s1)
/* 42DA68 802A9058 2402001E */ addiu $v0, $zero, 0x1e
/* 42DA6C 802A905C A622006C */ sh $v0, 0x6c($s1)
/* 42DA70 802A9060 2402FFD0 */ addiu $v0, $zero, -0x30
/* 42DA74 802A9064 A6220056 */ sh $v0, 0x56($s1)
/* 42DA78 802A9068 24020050 */ addiu $v0, $zero, 0x50
/* 42DA7C 802A906C A620004C */ sh $zero, 0x4c($s1)
/* 42DA80 802A9070 A2200060 */ sb $zero, 0x60($s1)
/* 42DA84 802A9074 A6200044 */ sh $zero, 0x44($s1)
/* 42DA88 802A9078 A6200048 */ sh $zero, 0x48($s1)
/* 42DA8C 802A907C A6200068 */ sh $zero, 0x68($s1)
/* 42DA90 802A9080 0C050529 */ jal create_icon
/* 42DA94 802A9084 A6220058 */ sh $v0, 0x58($s1)
/* 42DA98 802A9088 0040802D */ daddu $s0, $v0, $zero
/* 42DA9C 802A908C 0200202D */ daddu $a0, $s0, $zero
/* 42DAA0 802A9090 24050082 */ addiu $a1, $zero, 0x82
/* 42DAA4 802A9094 0C051280 */ jal set_icon_flags
/* 42DAA8 802A9098 AE300004 */ sw $s0, 4($s1)
/* 42DAAC 802A909C 86250056 */ lh $a1, 0x56($s1)
/* 42DAB0 802A90A0 86260058 */ lh $a2, 0x58($s1)
/* 42DAB4 802A90A4 0C051261 */ jal set_icon_render_pos
/* 42DAB8 802A90A8 0200202D */ daddu $a0, $s0, $zero
/* 42DABC 802A90AC 0200202D */ daddu $a0, $s0, $zero
/* 42DAC0 802A90B0 0C051277 */ jal func_801449DC
/* 42DAC4 802A90B4 0000282D */ daddu $a1, $zero, $zero
/* 42DAC8 802A90B8 3C048029 */ lui $a0, %hi(D_8029231C)
/* 42DACC 802A90BC 2484231C */ addiu $a0, $a0, %lo(D_8029231C)
/* 42DAD0 802A90C0 0C050529 */ jal create_icon
/* 42DAD4 802A90C4 00000000 */ nop
/* 42DAD8 802A90C8 0040802D */ daddu $s0, $v0, $zero
/* 42DADC 802A90CC 0200202D */ daddu $a0, $s0, $zero
/* 42DAE0 802A90D0 24050082 */ addiu $a1, $zero, 0x82
/* 42DAE4 802A90D4 0C051280 */ jal set_icon_flags
/* 42DAE8 802A90D8 AE30000C */ sw $s0, 0xc($s1)
/* 42DAEC 802A90DC 86250056 */ lh $a1, 0x56($s1)
/* 42DAF0 802A90E0 86260058 */ lh $a2, 0x58($s1)
/* 42DAF4 802A90E4 0C051261 */ jal set_icon_render_pos
/* 42DAF8 802A90E8 0200202D */ daddu $a0, $s0, $zero
/* 42DAFC 802A90EC 0200202D */ daddu $a0, $s0, $zero
/* 42DB00 802A90F0 0C051277 */ jal func_801449DC
/* 42DB04 802A90F4 0000282D */ daddu $a1, $zero, $zero
/* 42DB08 802A90F8 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 42DB0C 802A90FC 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 42DB10 802A9100 0C050529 */ jal create_icon
/* 42DB14 802A9104 00000000 */ nop
/* 42DB18 802A9108 0040802D */ daddu $s0, $v0, $zero
/* 42DB1C 802A910C 86250056 */ lh $a1, 0x56($s1)
/* 42DB20 802A9110 86260058 */ lh $a2, 0x58($s1)
/* 42DB24 802A9114 0200202D */ daddu $a0, $s0, $zero
/* 42DB28 802A9118 AE300008 */ sw $s0, 8($s1)
/* 42DB2C 802A911C 0C051261 */ jal set_icon_render_pos
/* 42DB30 802A9120 24C6001C */ addiu $a2, $a2, 0x1c
/* 42DB34 802A9124 0200202D */ daddu $a0, $s0, $zero
/* 42DB38 802A9128 0C051277 */ jal func_801449DC
/* 42DB3C 802A912C 0000282D */ daddu $a1, $zero, $zero
/* 42DB40 802A9130 0200202D */ daddu $a0, $s0, $zero
/* 42DB44 802A9134 0C051280 */ jal set_icon_flags
/* 42DB48 802A9138 24050082 */ addiu $a1, $zero, 0x82
/* 42DB4C 802A913C 3C048029 */ lui $a0, %hi(D_80292974)
/* 42DB50 802A9140 24842974 */ addiu $a0, $a0, %lo(D_80292974)
/* 42DB54 802A9144 0C050529 */ jal create_icon
/* 42DB58 802A9148 00000000 */ nop
/* 42DB5C 802A914C 0040802D */ daddu $s0, $v0, $zero
/* 42DB60 802A9150 86250056 */ lh $a1, 0x56($s1)
/* 42DB64 802A9154 86260058 */ lh $a2, 0x58($s1)
/* 42DB68 802A9158 0200202D */ daddu $a0, $s0, $zero
/* 42DB6C 802A915C AE300014 */ sw $s0, 0x14($s1)
/* 42DB70 802A9160 0C051261 */ jal set_icon_render_pos
/* 42DB74 802A9164 24C6001C */ addiu $a2, $a2, 0x1c
/* 42DB78 802A9168 0200202D */ daddu $a0, $s0, $zero
/* 42DB7C 802A916C 0C051277 */ jal func_801449DC
/* 42DB80 802A9170 0000282D */ daddu $a1, $zero, $zero
/* 42DB84 802A9174 0200202D */ daddu $a0, $s0, $zero
/* 42DB88 802A9178 0C051280 */ jal set_icon_flags
/* 42DB8C 802A917C 24050082 */ addiu $a1, $zero, 0x82
/* 42DB90 802A9180 080AA463 */ j .L802A918C
/* 42DB94 802A9184 24020002 */ addiu $v0, $zero, 2
.L802A9188:
/* 42DB98 802A9188 24020002 */ addiu $v0, $zero, 2
.L802A918C:
/* 42DB9C 802A918C 8FBF0018 */ lw $ra, 0x18($sp)
/* 42DBA0 802A9190 8FB10014 */ lw $s1, 0x14($sp)
/* 42DBA4 802A9194 8FB00010 */ lw $s0, 0x10($sp)
/* 42DBA8 802A9198 03E00008 */ jr $ra
/* 42DBAC 802A919C 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,70 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A91A0_42DBB0
/* 42DBB0 802A91A0 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42DBB4 802A91A4 AFB20018 */ sw $s2, 0x18($sp)
/* 42DBB8 802A91A8 0080902D */ daddu $s2, $a0, $zero
/* 42DBBC 802A91AC AFB10014 */ sw $s1, 0x14($sp)
/* 42DBC0 802A91B0 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42DBC4 802A91B4 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42DBC8 802A91B8 AFB3001C */ sw $s3, 0x1c($sp)
/* 42DBCC 802A91BC 3C13800E */ lui $s3, %hi(gBattleStatus)
/* 42DBD0 802A91C0 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus)
/* 42DBD4 802A91C4 AFBF0020 */ sw $ra, 0x20($sp)
/* 42DBD8 802A91C8 AFB00010 */ sw $s0, 0x10($sp)
/* 42DBDC 802A91CC 82620083 */ lb $v0, 0x83($s3)
/* 42DBE0 802A91D0 8E50000C */ lw $s0, 0xc($s2)
/* 42DBE4 802A91D4 10400029 */ beqz $v0, .L802A927C
/* 42DBE8 802A91D8 0260182D */ daddu $v1, $s3, $zero
/* 42DBEC 802A91DC 0C09A216 */ jal func_80268858
/* 42DBF0 802A91E0 00000000 */ nop
/* 42DBF4 802A91E4 8E050000 */ lw $a1, ($s0)
/* 42DBF8 802A91E8 26100004 */ addiu $s0, $s0, 4
/* 42DBFC 802A91EC 0C0B1EAF */ jal get_variable
/* 42DC00 802A91F0 0240202D */ daddu $a0, $s2, $zero
/* 42DC04 802A91F4 A622004E */ sh $v0, 0x4e($s1)
/* 42DC08 802A91F8 8E050000 */ lw $a1, ($s0)
/* 42DC0C 802A91FC 26100004 */ addiu $s0, $s0, 4
/* 42DC10 802A9200 0C0B1EAF */ jal get_variable
/* 42DC14 802A9204 0240202D */ daddu $a0, $s2, $zero
/* 42DC18 802A9208 A6220052 */ sh $v0, 0x52($s1)
/* 42DC1C 802A920C 8E050000 */ lw $a1, ($s0)
/* 42DC20 802A9210 26100004 */ addiu $s0, $s0, 4
/* 42DC24 802A9214 0C0B1EAF */ jal get_variable
/* 42DC28 802A9218 0240202D */ daddu $a0, $s2, $zero
/* 42DC2C 802A921C 00022400 */ sll $a0, $v0, 0x10
/* 42DC30 802A9220 00042403 */ sra $a0, $a0, 0x10
/* 42DC34 802A9224 0C09A089 */ jal func_80268224
/* 42DC38 802A9228 A6220050 */ sh $v0, 0x50($s1)
/* 42DC3C 802A922C A6220050 */ sh $v0, 0x50($s1)
/* 42DC40 802A9230 8E050000 */ lw $a1, ($s0)
/* 42DC44 802A9234 0C0B1EAF */ jal get_variable
/* 42DC48 802A9238 0240202D */ daddu $a0, $s2, $zero
/* 42DC4C 802A923C 3C04FFFF */ lui $a0, 0xffff
/* 42DC50 802A9240 34847FFF */ ori $a0, $a0, 0x7fff
/* 42DC54 802A9244 A6220064 */ sh $v0, 0x64($s1)
/* 42DC58 802A9248 A2200060 */ sb $zero, 0x60($s1)
/* 42DC5C 802A924C A6200044 */ sh $zero, 0x44($s1)
/* 42DC60 802A9250 A6200048 */ sh $zero, 0x48($s1)
/* 42DC64 802A9254 8E620000 */ lw $v0, ($s3)
/* 42DC68 802A9258 2403000A */ addiu $v1, $zero, 0xa
/* 42DC6C 802A925C A2600081 */ sb $zero, 0x81($s3)
/* 42DC70 802A9260 A2600086 */ sb $zero, 0x86($s3)
/* 42DC74 802A9264 A623004C */ sh $v1, 0x4c($s1)
/* 42DC78 802A9268 00441024 */ and $v0, $v0, $a0
/* 42DC7C 802A926C 0C09A446 */ jal func_80269118
/* 42DC80 802A9270 AE620000 */ sw $v0, ($s3)
/* 42DC84 802A9274 080AA4A1 */ j .L802A9284
/* 42DC88 802A9278 24020002 */ addiu $v0, $zero, 2
.L802A927C:
/* 42DC8C 802A927C A0600081 */ sb $zero, 0x81($v1)
/* 42DC90 802A9280 24020002 */ addiu $v0, $zero, 2
.L802A9284:
/* 42DC94 802A9284 8FBF0020 */ lw $ra, 0x20($sp)
/* 42DC98 802A9288 8FB3001C */ lw $s3, 0x1c($sp)
/* 42DC9C 802A928C 8FB20018 */ lw $s2, 0x18($sp)
/* 42DCA0 802A9290 8FB10014 */ lw $s1, 0x14($sp)
/* 42DCA4 802A9294 8FB00010 */ lw $s0, 0x10($sp)
/* 42DCA8 802A9298 03E00008 */ jr $ra
/* 42DCAC 802A929C 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,377 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A92A0_42DCB0
/* 42DCB0 802A92A0 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 42DCB4 802A92A4 AFB10014 */ sw $s1, 0x14($sp)
/* 42DCB8 802A92A8 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42DCBC 802A92AC 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42DCC0 802A92B0 AFBF001C */ sw $ra, 0x1c($sp)
/* 42DCC4 802A92B4 AFB20018 */ sw $s2, 0x18($sp)
/* 42DCC8 802A92B8 AFB00010 */ sw $s0, 0x10($sp)
/* 42DCCC 802A92BC 8623004C */ lh $v1, 0x4c($s1)
/* 42DCD0 802A92C0 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 42DCD4 802A92C4 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 42DCD8 802A92C8 2C62000D */ sltiu $v0, $v1, 0xd
/* 42DCDC 802A92CC 10400144 */ beqz $v0, .L802A97E0
/* 42DCE0 802A92D0 00031080 */ sll $v0, $v1, 2
/* 42DCE4 802A92D4 3C01802B */ lui $at, %hi(D_802A9950)
/* 42DCE8 802A92D8 00220821 */ addu $at, $at, $v0
/* 42DCEC 802A92DC 8C229950 */ lw $v0, %lo(D_802A9950)($at)
/* 42DCF0 802A92E0 00400008 */ jr $v0
/* 42DCF4 802A92E4 00000000 */ nop
/* 42DCF8 802A92E8 0C093EB1 */ jal set_popup_duration
/* 42DCFC 802A92EC 24040063 */ addiu $a0, $zero, 0x63
/* 42DD00 802A92F0 82220061 */ lb $v0, 0x61($s1)
/* 42DD04 802A92F4 8E300004 */ lw $s0, 4($s1)
/* 42DD08 802A92F8 10400003 */ beqz $v0, .L802A9308
/* 42DD0C 802A92FC 0200202D */ daddu $a0, $s0, $zero
/* 42DD10 802A9300 0C05128B */ jal clear_icon_flags
/* 42DD14 802A9304 24050002 */ addiu $a1, $zero, 2
.L802A9308:
/* 42DD18 802A9308 0200202D */ daddu $a0, $s0, $zero
/* 42DD1C 802A930C 0C0513AC */ jal icon_set_opacity
/* 42DD20 802A9310 240500FF */ addiu $a1, $zero, 0xff
/* 42DD24 802A9314 82220061 */ lb $v0, 0x61($s1)
/* 42DD28 802A9318 8E30000C */ lw $s0, 0xc($s1)
/* 42DD2C 802A931C 10400004 */ beqz $v0, .L802A9330
/* 42DD30 802A9320 0200202D */ daddu $a0, $s0, $zero
/* 42DD34 802A9324 0C05128B */ jal clear_icon_flags
/* 42DD38 802A9328 24050002 */ addiu $a1, $zero, 2
/* 42DD3C 802A932C 0200202D */ daddu $a0, $s0, $zero
.L802A9330:
/* 42DD40 802A9330 0C0513AC */ jal icon_set_opacity
/* 42DD44 802A9334 240500FF */ addiu $a1, $zero, 0xff
/* 42DD48 802A9338 8E300008 */ lw $s0, 8($s1)
/* 42DD4C 802A933C 240500FF */ addiu $a1, $zero, 0xff
/* 42DD50 802A9340 0C0513AC */ jal icon_set_opacity
/* 42DD54 802A9344 0200202D */ daddu $a0, $s0, $zero
/* 42DD58 802A9348 82220061 */ lb $v0, 0x61($s1)
/* 42DD5C 802A934C 10400003 */ beqz $v0, .L802A935C
/* 42DD60 802A9350 0200202D */ daddu $a0, $s0, $zero
/* 42DD64 802A9354 0C05128B */ jal clear_icon_flags
/* 42DD68 802A9358 24050002 */ addiu $a1, $zero, 2
.L802A935C:
/* 42DD6C 802A935C 24020001 */ addiu $v0, $zero, 1
/* 42DD70 802A9360 080AA5F8 */ j .L802A97E0
/* 42DD74 802A9364 A622004C */ sh $v0, 0x4c($s1)
/* 42DD78 802A9368 0C093EB1 */ jal set_popup_duration
/* 42DD7C 802A936C 24040063 */ addiu $a0, $zero, 0x63
/* 42DD80 802A9370 8622006C */ lh $v0, 0x6c($s1)
/* 42DD84 802A9374 9623006C */ lhu $v1, 0x6c($s1)
/* 42DD88 802A9378 10400003 */ beqz $v0, .L802A9388
/* 42DD8C 802A937C 2462FFFF */ addiu $v0, $v1, -1
/* 42DD90 802A9380 080AA5F8 */ j .L802A97E0
/* 42DD94 802A9384 A622006C */ sh $v0, 0x6c($s1)
.L802A9388:
/* 42DD98 802A9388 96220056 */ lhu $v0, 0x56($s1)
/* 42DD9C 802A938C 24420014 */ addiu $v0, $v0, 0x14
/* 42DDA0 802A9390 A6220056 */ sh $v0, 0x56($s1)
/* 42DDA4 802A9394 00021400 */ sll $v0, $v0, 0x10
/* 42DDA8 802A9398 00021403 */ sra $v0, $v0, 0x10
/* 42DDAC 802A939C 28420033 */ slti $v0, $v0, 0x33
/* 42DDB0 802A93A0 14400002 */ bnez $v0, .L802A93AC
/* 42DDB4 802A93A4 24020032 */ addiu $v0, $zero, 0x32
/* 42DDB8 802A93A8 A6220056 */ sh $v0, 0x56($s1)
.L802A93AC:
/* 42DDBC 802A93AC 8E240004 */ lw $a0, 4($s1)
/* 42DDC0 802A93B0 86250056 */ lh $a1, 0x56($s1)
/* 42DDC4 802A93B4 86260058 */ lh $a2, 0x58($s1)
/* 42DDC8 802A93B8 0C051261 */ jal set_icon_render_pos
/* 42DDCC 802A93BC 24A5FFEF */ addiu $a1, $a1, -0x11
/* 42DDD0 802A93C0 8E24000C */ lw $a0, 0xc($s1)
/* 42DDD4 802A93C4 86250056 */ lh $a1, 0x56($s1)
/* 42DDD8 802A93C8 86260058 */ lh $a2, 0x58($s1)
/* 42DDDC 802A93CC 0C051261 */ jal set_icon_render_pos
/* 42DDE0 802A93D0 24A50017 */ addiu $a1, $a1, 0x17
/* 42DDE4 802A93D4 8E240008 */ lw $a0, 8($s1)
/* 42DDE8 802A93D8 86260058 */ lh $a2, 0x58($s1)
/* 42DDEC 802A93DC 86250056 */ lh $a1, 0x56($s1)
/* 42DDF0 802A93E0 0C051261 */ jal set_icon_render_pos
/* 42DDF4 802A93E4 24C6001C */ addiu $a2, $a2, 0x1c
/* 42DDF8 802A93E8 080AA5F8 */ j .L802A97E0
/* 42DDFC 802A93EC 00000000 */ nop
/* 42DE00 802A93F0 0C093EB1 */ jal set_popup_duration
/* 42DE04 802A93F4 24040063 */ addiu $a0, $zero, 0x63
/* 42DE08 802A93F8 8622004E */ lh $v0, 0x4e($s1)
/* 42DE0C 802A93FC 9623004E */ lhu $v1, 0x4e($s1)
/* 42DE10 802A9400 10400003 */ beqz $v0, .L802A9410
/* 42DE14 802A9404 2462FFFF */ addiu $v0, $v1, -1
/* 42DE18 802A9408 080AA5F8 */ j .L802A97E0
/* 42DE1C 802A940C A622004E */ sh $v0, 0x4e($s1)
.L802A9410:
/* 42DE20 802A9410 8E240004 */ lw $a0, 4($s1)
/* 42DE24 802A9414 3C058011 */ lui $a1, %hi(D_80108B80)
/* 42DE28 802A9418 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80)
/* 42DE2C 802A941C 0C0511FF */ jal set_menu_icon_script
/* 42DE30 802A9420 00000000 */ nop
/* 42DE34 802A9424 8E24000C */ lw $a0, 0xc($s1)
/* 42DE38 802A9428 3C058029 */ lui $a1, %hi(D_80292374)
/* 42DE3C 802A942C 24A52374 */ addiu $a1, $a1, %lo(D_80292374)
/* 42DE40 802A9430 0C0511FF */ jal set_menu_icon_script
/* 42DE44 802A9434 00000000 */ nop
/* 42DE48 802A9438 3C048000 */ lui $a0, 0x8000
/* 42DE4C 802A943C 34840041 */ ori $a0, $a0, 0x41
/* 42DE50 802A9440 0000282D */ daddu $a1, $zero, $zero
/* 42DE54 802A9444 00A0302D */ daddu $a2, $a1, $zero
/* 42DE58 802A9448 96220052 */ lhu $v0, 0x52($s1)
/* 42DE5C 802A944C 00A0382D */ daddu $a3, $a1, $zero
/* 42DE60 802A9450 A6200044 */ sh $zero, 0x44($s1)
/* 42DE64 802A9454 A220005C */ sb $zero, 0x5c($s1)
/* 42DE68 802A9458 0C0526AE */ jal _play_sound
/* 42DE6C 802A945C A6220054 */ sh $v0, 0x54($s1)
/* 42DE70 802A9460 2402000B */ addiu $v0, $zero, 0xb
/* 42DE74 802A9464 A622004C */ sh $v0, 0x4c($s1)
/* 42DE78 802A9468 0C093EB1 */ jal set_popup_duration
/* 42DE7C 802A946C 24040063 */ addiu $a0, $zero, 0x63
/* 42DE80 802A9470 86220068 */ lh $v0, 0x68($s1)
/* 42DE84 802A9474 14400027 */ bnez $v0, .L802A9514
/* 42DE88 802A9478 00000000 */ nop
/* 42DE8C 802A947C 86220064 */ lh $v0, 0x64($s1)
/* 42DE90 802A9480 1040001E */ beqz $v0, .L802A94FC
/* 42DE94 802A9484 00000000 */ nop
/* 42DE98 802A9488 82220080 */ lb $v0, 0x80($s1)
/* 42DE9C 802A948C 00021040 */ sll $v0, $v0, 1
/* 42DEA0 802A9490 02221021 */ addu $v0, $s1, $v0
/* 42DEA4 802A9494 84430074 */ lh $v1, 0x74($v0)
/* 42DEA8 802A9498 86220044 */ lh $v0, 0x44($s1)
/* 42DEAC 802A949C 14600002 */ bnez $v1, .L802A94A8
/* 42DEB0 802A94A0 0043001A */ div $zero, $v0, $v1
/* 42DEB4 802A94A4 0007000D */ break 7
.L802A94A8:
/* 42DEB8 802A94A8 2401FFFF */ addiu $at, $zero, -1
/* 42DEBC 802A94AC 14610004 */ bne $v1, $at, .L802A94C0
/* 42DEC0 802A94B0 3C018000 */ lui $at, 0x8000
/* 42DEC4 802A94B4 14410002 */ bne $v0, $at, .L802A94C0
/* 42DEC8 802A94B8 00000000 */ nop
/* 42DECC 802A94BC 0006000D */ break 6
.L802A94C0:
/* 42DED0 802A94C0 00001012 */ mflo $v0
/* 42DED4 802A94C4 3C036666 */ lui $v1, 0x6666
/* 42DED8 802A94C8 34636667 */ ori $v1, $v1, 0x6667
/* 42DEDC 802A94CC 00430018 */ mult $v0, $v1
/* 42DEE0 802A94D0 000217C3 */ sra $v0, $v0, 0x1f
/* 42DEE4 802A94D4 00001810 */ mfhi $v1
/* 42DEE8 802A94D8 000318C3 */ sra $v1, $v1, 3
/* 42DEEC 802A94DC 00621823 */ subu $v1, $v1, $v0
/* 42DEF0 802A94E0 00031880 */ sll $v1, $v1, 2
/* 42DEF4 802A94E4 96220044 */ lhu $v0, 0x44($s1)
/* 42DEF8 802A94E8 3C01802B */ lui $at, %hi(D_802A9932)
/* 42DEFC 802A94EC 00230821 */ addu $at, $at, $v1
/* 42DF00 802A94F0 94239932 */ lhu $v1, %lo(D_802A9932)($at)
/* 42DF04 802A94F4 080AA541 */ j .L802A9504
/* 42DF08 802A94F8 00431023 */ subu $v0, $v0, $v1
.L802A94FC:
/* 42DF0C 802A94FC 96220044 */ lhu $v0, 0x44($s1)
/* 42DF10 802A9500 2442FFF6 */ addiu $v0, $v0, -0xa
.L802A9504:
/* 42DF14 802A9504 A6220044 */ sh $v0, 0x44($s1)
/* 42DF18 802A9508 00021400 */ sll $v0, $v0, 0x10
/* 42DF1C 802A950C 04420001 */ bltzl $v0, .L802A9514
/* 42DF20 802A9510 A6200044 */ sh $zero, 0x44($s1)
.L802A9514:
/* 42DF24 802A9514 82430431 */ lb $v1, 0x431($s2)
/* 42DF28 802A9518 2463FFFE */ addiu $v1, $v1, -2
/* 42DF2C 802A951C 04620001 */ bltzl $v1, .L802A9524
/* 42DF30 802A9520 24630040 */ addiu $v1, $v1, 0x40
.L802A9524:
/* 42DF34 802A9524 0000282D */ daddu $a1, $zero, $zero
/* 42DF38 802A9528 24040001 */ addiu $a0, $zero, 1
.L802A952C:
/* 42DF3C 802A952C 28620040 */ slti $v0, $v1, 0x40
/* 42DF40 802A9530 50400001 */ beql $v0, $zero, .L802A9538
/* 42DF44 802A9534 2463FFC0 */ addiu $v1, $v1, -0x40
.L802A9538:
/* 42DF48 802A9538 00031080 */ sll $v0, $v1, 2
/* 42DF4C 802A953C 24630001 */ addiu $v1, $v1, 1
/* 42DF50 802A9540 02421021 */ addu $v0, $s2, $v0
/* 42DF54 802A9544 8C420330 */ lw $v0, 0x330($v0)
/* 42DF58 802A9548 2484FFFF */ addiu $a0, $a0, -1
/* 42DF5C 802A954C 0481FFF7 */ bgez $a0, .L802A952C
/* 42DF60 802A9550 00A22825 */ or $a1, $a1, $v0
/* 42DF64 802A9554 3403C000 */ ori $v1, $zero, 0xc000
/* 42DF68 802A9558 00A31024 */ and $v0, $a1, $v1
/* 42DF6C 802A955C 14430037 */ bne $v0, $v1, .L802A963C
/* 42DF70 802A9560 00000000 */ nop
/* 42DF74 802A9564 86220064 */ lh $v0, 0x64($s1)
/* 42DF78 802A9568 1040001D */ beqz $v0, .L802A95E0
/* 42DF7C 802A956C 3C0651EB */ lui $a2, 0x51eb
/* 42DF80 802A9570 34C6851F */ ori $a2, $a2, 0x851f
/* 42DF84 802A9574 00021840 */ sll $v1, $v0, 1
/* 42DF88 802A9578 00621821 */ addu $v1, $v1, $v0
/* 42DF8C 802A957C 00031180 */ sll $v0, $v1, 6
/* 42DF90 802A9580 00621821 */ addu $v1, $v1, $v0
/* 42DF94 802A9584 00031880 */ sll $v1, $v1, 2
/* 42DF98 802A9588 00660018 */ mult $v1, $a2
/* 42DF9C 802A958C 00031FC3 */ sra $v1, $v1, 0x1f
/* 42DFA0 802A9590 00001010 */ mfhi $v0
/* 42DFA4 802A9594 00022143 */ sra $a0, $v0, 5
/* 42DFA8 802A9598 86220050 */ lh $v0, 0x50($s1)
/* 42DFAC 802A959C 8E450434 */ lw $a1, 0x434($s2)
/* 42DFB0 802A95A0 00021080 */ sll $v0, $v0, 2
/* 42DFB4 802A95A4 00451021 */ addu $v0, $v0, $a1
/* 42DFB8 802A95A8 8C420000 */ lw $v0, ($v0)
/* 42DFBC 802A95AC 00832023 */ subu $a0, $a0, $v1
/* 42DFC0 802A95B0 00820018 */ mult $a0, $v0
/* 42DFC4 802A95B4 00002012 */ mflo $a0
/* 42DFC8 802A95B8 00000000 */ nop
/* 42DFCC 802A95BC 00000000 */ nop
/* 42DFD0 802A95C0 00860018 */ mult $a0, $a2
/* 42DFD4 802A95C4 000427C3 */ sra $a0, $a0, 0x1f
/* 42DFD8 802A95C8 00001010 */ mfhi $v0
/* 42DFDC 802A95CC 00021943 */ sra $v1, $v0, 5
/* 42DFE0 802A95D0 96220044 */ lhu $v0, 0x44($s1)
/* 42DFE4 802A95D4 00642823 */ subu $a1, $v1, $a0
/* 42DFE8 802A95D8 080AA580 */ j .L802A9600
/* 42DFEC 802A95DC 00451021 */ addu $v0, $v0, $a1
.L802A95E0:
/* 42DFF0 802A95E0 96220044 */ lhu $v0, 0x44($s1)
/* 42DFF4 802A95E4 24420064 */ addiu $v0, $v0, 0x64
/* 42DFF8 802A95E8 A6220044 */ sh $v0, 0x44($s1)
/* 42DFFC 802A95EC 00021400 */ sll $v0, $v0, 0x10
/* 42E000 802A95F0 00021403 */ sra $v0, $v0, 0x10
/* 42E004 802A95F4 284201F4 */ slti $v0, $v0, 0x1f4
/* 42E008 802A95F8 14400002 */ bnez $v0, .L802A9604
/* 42E00C 802A95FC 240201F4 */ addiu $v0, $zero, 0x1f4
.L802A9600:
/* 42E010 802A9600 A6220044 */ sh $v0, 0x44($s1)
.L802A9604:
/* 42E014 802A9604 82430431 */ lb $v1, 0x431($s2)
/* 42E018 802A9608 2463FFFE */ addiu $v1, $v1, -2
/* 42E01C 802A960C 04620001 */ bltzl $v1, .L802A9614
/* 42E020 802A9610 24630040 */ addiu $v1, $v1, 0x40
.L802A9614:
/* 42E024 802A9614 24040001 */ addiu $a0, $zero, 1
.L802A9618:
/* 42E028 802A9618 28620040 */ slti $v0, $v1, 0x40
/* 42E02C 802A961C 50400001 */ beql $v0, $zero, .L802A9624
/* 42E030 802A9620 2463FFC0 */ addiu $v1, $v1, -0x40
.L802A9624:
/* 42E034 802A9624 00031080 */ sll $v0, $v1, 2
/* 42E038 802A9628 02421021 */ addu $v0, $s2, $v0
/* 42E03C 802A962C AC400330 */ sw $zero, 0x330($v0)
/* 42E040 802A9630 2484FFFF */ addiu $a0, $a0, -1
/* 42E044 802A9634 0481FFF8 */ bgez $a0, .L802A9618
/* 42E048 802A9638 24630001 */ addiu $v1, $v1, 1
.L802A963C:
/* 42E04C 802A963C 86220044 */ lh $v0, 0x44($s1)
/* 42E050 802A9640 28422711 */ slti $v0, $v0, 0x2711
/* 42E054 802A9644 14400010 */ bnez $v0, .L802A9688
/* 42E058 802A9648 3C1051EB */ lui $s0, 0x51eb
/* 42E05C 802A964C 8E300014 */ lw $s0, 0x14($s1)
/* 42E060 802A9650 86250056 */ lh $a1, 0x56($s1)
/* 42E064 802A9654 86260058 */ lh $a2, 0x58($s1)
/* 42E068 802A9658 24022710 */ addiu $v0, $zero, 0x2710
/* 42E06C 802A965C A6220044 */ sh $v0, 0x44($s1)
/* 42E070 802A9660 24020001 */ addiu $v0, $zero, 1
/* 42E074 802A9664 A6220068 */ sh $v0, 0x68($s1)
/* 42E078 802A9668 0200202D */ daddu $a0, $s0, $zero
/* 42E07C 802A966C 24A50032 */ addiu $a1, $a1, 0x32
/* 42E080 802A9670 0C051261 */ jal set_icon_render_pos
/* 42E084 802A9674 24C6001C */ addiu $a2, $a2, 0x1c
/* 42E088 802A9678 0200202D */ daddu $a0, $s0, $zero
/* 42E08C 802A967C 0C05128B */ jal clear_icon_flags
/* 42E090 802A9680 24050002 */ addiu $a1, $zero, 2
/* 42E094 802A9684 3C1051EB */ lui $s0, 0x51eb
.L802A9688:
/* 42E098 802A9688 3610851F */ ori $s0, $s0, 0x851f
/* 42E09C 802A968C 96230044 */ lhu $v1, 0x44($s1)
/* 42E0A0 802A9690 3C048000 */ lui $a0, 0x8000
/* 42E0A4 802A9694 00031C00 */ sll $v1, $v1, 0x10
/* 42E0A8 802A9698 00031403 */ sra $v0, $v1, 0x10
/* 42E0AC 802A969C 00500018 */ mult $v0, $s0
/* 42E0B0 802A96A0 34840041 */ ori $a0, $a0, 0x41
/* 42E0B4 802A96A4 0000282D */ daddu $a1, $zero, $zero
/* 42E0B8 802A96A8 00A0302D */ daddu $a2, $a1, $zero
/* 42E0BC 802A96AC 00031FC3 */ sra $v1, $v1, 0x1f
/* 42E0C0 802A96B0 00004810 */ mfhi $t1
/* 42E0C4 802A96B4 00094143 */ sra $t0, $t1, 5
/* 42E0C8 802A96B8 01034023 */ subu $t0, $t0, $v1
/* 42E0CC 802A96BC 00081600 */ sll $v0, $t0, 0x18
/* 42E0D0 802A96C0 00021603 */ sra $v0, $v0, 0x18
/* 42E0D4 802A96C4 00023840 */ sll $a3, $v0, 1
/* 42E0D8 802A96C8 00E23821 */ addu $a3, $a3, $v0
/* 42E0DC 802A96CC 00073880 */ sll $a3, $a3, 2
/* 42E0E0 802A96D0 0C0526F9 */ jal func_80149BE4
/* 42E0E4 802A96D4 A2480084 */ sb $t0, 0x84($s2)
/* 42E0E8 802A96D8 86220054 */ lh $v0, 0x54($s1)
/* 42E0EC 802A96DC 96230054 */ lhu $v1, 0x54($s1)
/* 42E0F0 802A96E0 1440003B */ bnez $v0, .L802A97D0
/* 42E0F4 802A96E4 2462FFFF */ addiu $v0, $v1, -1
/* 42E0F8 802A96E8 86220064 */ lh $v0, 0x64($s1)
/* 42E0FC 802A96EC 86250044 */ lh $a1, 0x44($s1)
/* 42E100 802A96F0 50400001 */ beql $v0, $zero, .L802A96F8
/* 42E104 802A96F4 0000282D */ daddu $a1, $zero, $zero
.L802A96F8:
/* 42E108 802A96F8 14A00003 */ bnez $a1, .L802A9708
/* 42E10C 802A96FC 00B00018 */ mult $a1, $s0
/* 42E110 802A9700 080AA5C6 */ j .L802A9718
/* 42E114 802A9704 2402FFFF */ addiu $v0, $zero, -1
.L802A9708:
/* 42E118 802A9708 00051FC3 */ sra $v1, $a1, 0x1f
/* 42E11C 802A970C 00004810 */ mfhi $t1
/* 42E120 802A9710 00091143 */ sra $v0, $t1, 5
/* 42E124 802A9714 00431023 */ subu $v0, $v0, $v1
.L802A9718:
/* 42E128 802A9718 A2420081 */ sb $v0, 0x81($s2)
/* 42E12C 802A971C 82220080 */ lb $v0, 0x80($s1)
/* 42E130 802A9720 2442FFFF */ addiu $v0, $v0, -1
/* 42E134 802A9724 00021040 */ sll $v0, $v0, 1
/* 42E138 802A9728 02221021 */ addu $v0, $s1, $v0
/* 42E13C 802A972C 94420074 */ lhu $v0, 0x74($v0)
/* 42E140 802A9730 00021400 */ sll $v0, $v0, 0x10
/* 42E144 802A9734 00021C03 */ sra $v1, $v0, 0x10
/* 42E148 802A9738 000217C2 */ srl $v0, $v0, 0x1f
/* 42E14C 802A973C 00621021 */ addu $v0, $v1, $v0
/* 42E150 802A9740 82430084 */ lb $v1, 0x84($s2)
/* 42E154 802A9744 00021043 */ sra $v0, $v0, 1
/* 42E158 802A9748 0043102A */ slt $v0, $v0, $v1
/* 42E15C 802A974C 14400002 */ bnez $v0, .L802A9758
/* 42E160 802A9750 24020001 */ addiu $v0, $zero, 1
/* 42E164 802A9754 2402FFFC */ addiu $v0, $zero, -4
.L802A9758:
/* 42E168 802A9758 A2420086 */ sb $v0, 0x86($s2)
/* 42E16C 802A975C 82430081 */ lb $v1, 0x81($s2)
/* 42E170 802A9760 24020064 */ addiu $v0, $zero, 0x64
/* 42E174 802A9764 14620004 */ bne $v1, $v0, .L802A9778
/* 42E178 802A9768 3C048000 */ lui $a0, 0x8000
/* 42E17C 802A976C 0C09A458 */ jal func_80269160
/* 42E180 802A9770 00000000 */ nop
/* 42E184 802A9774 3C048000 */ lui $a0, 0x8000
.L802A9778:
/* 42E188 802A9778 0C05271B */ jal stop_sound
/* 42E18C 802A977C 34840041 */ ori $a0, $a0, 0x41
/* 42E190 802A9780 0C093EB1 */ jal set_popup_duration
/* 42E194 802A9784 0000202D */ daddu $a0, $zero, $zero
/* 42E198 802A9788 24020005 */ addiu $v0, $zero, 5
/* 42E19C 802A978C A6220054 */ sh $v0, 0x54($s1)
/* 42E1A0 802A9790 2402000C */ addiu $v0, $zero, 0xc
/* 42E1A4 802A9794 080AA5F8 */ j .L802A97E0
/* 42E1A8 802A9798 A622004C */ sh $v0, 0x4c($s1)
/* 42E1AC 802A979C 86220064 */ lh $v0, 0x64($s1)
/* 42E1B0 802A97A0 14400007 */ bnez $v0, .L802A97C0
/* 42E1B4 802A97A4 00000000 */ nop
/* 42E1B8 802A97A8 96220044 */ lhu $v0, 0x44($s1)
/* 42E1BC 802A97AC 2442FF9C */ addiu $v0, $v0, -0x64
/* 42E1C0 802A97B0 A6220044 */ sh $v0, 0x44($s1)
/* 42E1C4 802A97B4 00021400 */ sll $v0, $v0, 0x10
/* 42E1C8 802A97B8 04420001 */ bltzl $v0, .L802A97C0
/* 42E1CC 802A97BC A6200044 */ sh $zero, 0x44($s1)
.L802A97C0:
/* 42E1D0 802A97C0 86220054 */ lh $v0, 0x54($s1)
/* 42E1D4 802A97C4 96230054 */ lhu $v1, 0x54($s1)
/* 42E1D8 802A97C8 10400003 */ beqz $v0, .L802A97D8
/* 42E1DC 802A97CC 2462FFFF */ addiu $v0, $v1, -1
.L802A97D0:
/* 42E1E0 802A97D0 080AA5F8 */ j .L802A97E0
/* 42E1E4 802A97D4 A6220054 */ sh $v0, 0x54($s1)
.L802A97D8:
/* 42E1E8 802A97D8 0C09A327 */ jal func_80268C9C
/* 42E1EC 802A97DC 00000000 */ nop
.L802A97E0:
/* 42E1F0 802A97E0 8FBF001C */ lw $ra, 0x1c($sp)
/* 42E1F4 802A97E4 8FB20018 */ lw $s2, 0x18($sp)
/* 42E1F8 802A97E8 8FB10014 */ lw $s1, 0x14($sp)
/* 42E1FC 802A97EC 8FB00010 */ lw $s0, 0x10($sp)
/* 42E200 802A97F0 03E00008 */ jr $ra
/* 42E204 802A97F4 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,64 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A97F8_42E208
/* 42E208 802A97F8 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42E20C 802A97FC AFB1001C */ sw $s1, 0x1c($sp)
/* 42E210 802A9800 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42E214 802A9804 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42E218 802A9808 AFBF0020 */ sw $ra, 0x20($sp)
/* 42E21C 802A980C AFB00018 */ sw $s0, 0x18($sp)
/* 42E220 802A9810 0C0511EA */ jal draw_icon_0
/* 42E224 802A9814 8E240004 */ lw $a0, 4($s1)
/* 42E228 802A9818 0C0511EA */ jal draw_icon_0
/* 42E22C 802A981C 8E24000C */ lw $a0, 0xc($s1)
/* 42E230 802A9820 8E300008 */ lw $s0, 8($s1)
/* 42E234 802A9824 0C0511EA */ jal draw_icon_0
/* 42E238 802A9828 0200202D */ daddu $a0, $s0, $zero
/* 42E23C 802A982C 0200202D */ daddu $a0, $s0, $zero
/* 42E240 802A9830 27A50010 */ addiu $a1, $sp, 0x10
/* 42E244 802A9834 0C05126B */ jal get_icon_render_pos
/* 42E248 802A9838 27A60014 */ addiu $a2, $sp, 0x14
/* 42E24C 802A983C 86220068 */ lh $v0, 0x68($s1)
/* 42E250 802A9840 14400011 */ bnez $v0, .L802A9888
/* 42E254 802A9844 3C0451EB */ lui $a0, 0x51eb
/* 42E258 802A9848 96230044 */ lhu $v1, 0x44($s1)
/* 42E25C 802A984C 3484851F */ ori $a0, $a0, 0x851f
/* 42E260 802A9850 00031C00 */ sll $v1, $v1, 0x10
/* 42E264 802A9854 00031403 */ sra $v0, $v1, 0x10
/* 42E268 802A9858 00440018 */ mult $v0, $a0
/* 42E26C 802A985C 8FA50014 */ lw $a1, 0x14($sp)
/* 42E270 802A9860 00031FC3 */ sra $v1, $v1, 0x1f
/* 42E274 802A9864 8FA40010 */ lw $a0, 0x10($sp)
/* 42E278 802A9868 00003810 */ mfhi $a3
/* 42E27C 802A986C 00073143 */ sra $a2, $a3, 5
/* 42E280 802A9870 00C33023 */ subu $a2, $a2, $v1
/* 42E284 802A9874 00063400 */ sll $a2, $a2, 0x10
/* 42E288 802A9878 0C09A1DC */ jal func_80268770
/* 42E28C 802A987C 00063403 */ sra $a2, $a2, 0x10
/* 42E290 802A9880 080AA630 */ j .L802A98C0
/* 42E294 802A9884 00000000 */ nop
.L802A9888:
/* 42E298 802A9888 96230044 */ lhu $v1, 0x44($s1)
/* 42E29C 802A988C 3484851F */ ori $a0, $a0, 0x851f
/* 42E2A0 802A9890 00031C00 */ sll $v1, $v1, 0x10
/* 42E2A4 802A9894 00031403 */ sra $v0, $v1, 0x10
/* 42E2A8 802A9898 00440018 */ mult $v0, $a0
/* 42E2AC 802A989C 8FA50014 */ lw $a1, 0x14($sp)
/* 42E2B0 802A98A0 00031FC3 */ sra $v1, $v1, 0x1f
/* 42E2B4 802A98A4 8FA40010 */ lw $a0, 0x10($sp)
/* 42E2B8 802A98A8 00003810 */ mfhi $a3
/* 42E2BC 802A98AC 00073143 */ sra $a2, $a3, 5
/* 42E2C0 802A98B0 00C33023 */ subu $a2, $a2, $v1
/* 42E2C4 802A98B4 00063400 */ sll $a2, $a2, 0x10
/* 42E2C8 802A98B8 0C09A203 */ jal func_8026880C
/* 42E2CC 802A98BC 00063403 */ sra $a2, $a2, 0x10
.L802A98C0:
/* 42E2D0 802A98C0 8E240014 */ lw $a0, 0x14($s1)
/* 42E2D4 802A98C4 0C0511EA */ jal draw_icon_0
/* 42E2D8 802A98C8 00000000 */ nop
/* 42E2DC 802A98CC 8FBF0020 */ lw $ra, 0x20($sp)
/* 42E2E0 802A98D0 8FB1001C */ lw $s1, 0x1c($sp)
/* 42E2E4 802A98D4 8FB00018 */ lw $s0, 0x18($sp)
/* 42E2E8 802A98D8 03E00008 */ jr $ra
/* 42E2EC 802A98DC 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,20 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A98E0_42E2F0
/* 42E2F0 802A98E0 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 42E2F4 802A98E4 AFB00010 */ sw $s0, 0x10($sp)
/* 42E2F8 802A98E8 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 42E2FC 802A98EC 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 42E300 802A98F0 AFBF0014 */ sw $ra, 0x14($sp)
/* 42E304 802A98F4 0C05123D */ jal free_icon
/* 42E308 802A98F8 8E040004 */ lw $a0, 4($s0)
/* 42E30C 802A98FC 0C05123D */ jal free_icon
/* 42E310 802A9900 8E040008 */ lw $a0, 8($s0)
/* 42E314 802A9904 0C05123D */ jal free_icon
/* 42E318 802A9908 8E04000C */ lw $a0, 0xc($s0)
/* 42E31C 802A990C 0C05123D */ jal free_icon
/* 42E320 802A9910 8E040014 */ lw $a0, 0x14($s0)
/* 42E324 802A9914 8FBF0014 */ lw $ra, 0x14($sp)
/* 42E328 802A9918 8FB00010 */ lw $s0, 0x10($sp)
/* 42E32C 802A991C 03E00008 */ jr $ra

View File

@ -0,0 +1,101 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_42E3A0
/* 42E3A0 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 42E3A4 802A9004 AFB00010 */ sw $s0, 0x10($sp)
/* 42E3A8 802A9008 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 42E3AC 802A900C 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 42E3B0 802A9010 24020064 */ addiu $v0, $zero, 0x64
/* 42E3B4 802A9014 AFBF0018 */ sw $ra, 0x18($sp)
/* 42E3B8 802A9018 AFB10014 */ sw $s1, 0x14($sp)
/* 42E3BC 802A901C A2020082 */ sb $v0, 0x82($s0)
/* 42E3C0 802A9020 3C028029 */ lui $v0, %hi(D_802943E0)
/* 42E3C4 802A9024 244243E0 */ addiu $v0, $v0, %lo(D_802943E0)
/* 42E3C8 802A9028 AE020434 */ sw $v0, 0x434($s0)
/* 42E3CC 802A902C 2402007F */ addiu $v0, $zero, 0x7f
/* 42E3D0 802A9030 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42E3D4 802A9034 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42E3D8 802A9038 A2020086 */ sb $v0, 0x86($s0)
/* 42E3DC 802A903C 82020083 */ lb $v0, 0x83($s0)
/* 42E3E0 802A9040 10400047 */ beqz $v0, .L802A9160
/* 42E3E4 802A9044 0200182D */ daddu $v1, $s0, $zero
/* 42E3E8 802A9048 0C09A216 */ jal func_80268858
/* 42E3EC 802A904C 00000000 */ nop
/* 42E3F0 802A9050 3C048011 */ lui $a0, %hi(D_80108E1C)
/* 42E3F4 802A9054 24848E1C */ addiu $a0, $a0, %lo(D_80108E1C)
/* 42E3F8 802A9058 24020012 */ addiu $v0, $zero, 0x12
/* 42E3FC 802A905C A622004A */ sh $v0, 0x4a($s1)
/* 42E400 802A9060 24020001 */ addiu $v0, $zero, 1
/* 42E404 802A9064 A2220061 */ sb $v0, 0x61($s1)
/* 42E408 802A9068 2402001E */ addiu $v0, $zero, 0x1e
/* 42E40C 802A906C A622006C */ sh $v0, 0x6c($s1)
/* 42E410 802A9070 2402FFD0 */ addiu $v0, $zero, -0x30
/* 42E414 802A9074 A620004C */ sh $zero, 0x4c($s1)
/* 42E418 802A9078 A2200060 */ sb $zero, 0x60($s1)
/* 42E41C 802A907C A6200044 */ sh $zero, 0x44($s1)
/* 42E420 802A9080 A6200048 */ sh $zero, 0x48($s1)
/* 42E424 802A9084 A6200068 */ sh $zero, 0x68($s1)
/* 42E428 802A9088 A2000081 */ sb $zero, 0x81($s0)
/* 42E42C 802A908C A2000084 */ sb $zero, 0x84($s0)
/* 42E430 802A9090 A6220056 */ sh $v0, 0x56($s1)
/* 42E434 802A9094 24020050 */ addiu $v0, $zero, 0x50
/* 42E438 802A9098 0C050529 */ jal create_icon
/* 42E43C 802A909C A6220058 */ sh $v0, 0x58($s1)
/* 42E440 802A90A0 0040802D */ daddu $s0, $v0, $zero
/* 42E444 802A90A4 86250056 */ lh $a1, 0x56($s1)
/* 42E448 802A90A8 86260058 */ lh $a2, 0x58($s1)
/* 42E44C 802A90AC 0200202D */ daddu $a0, $s0, $zero
/* 42E450 802A90B0 0C051261 */ jal set_icon_render_pos
/* 42E454 802A90B4 AE300004 */ sw $s0, 4($s1)
/* 42E458 802A90B8 0200202D */ daddu $a0, $s0, $zero
/* 42E45C 802A90BC 0C051277 */ jal func_801449DC
/* 42E460 802A90C0 0000282D */ daddu $a1, $zero, $zero
/* 42E464 802A90C4 0200202D */ daddu $a0, $s0, $zero
/* 42E468 802A90C8 0C051280 */ jal set_icon_flags
/* 42E46C 802A90CC 24050082 */ addiu $a1, $zero, 0x82
/* 42E470 802A90D0 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 42E474 802A90D4 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 42E478 802A90D8 0C050529 */ jal create_icon
/* 42E47C 802A90DC 00000000 */ nop
/* 42E480 802A90E0 0040802D */ daddu $s0, $v0, $zero
/* 42E484 802A90E4 86250056 */ lh $a1, 0x56($s1)
/* 42E488 802A90E8 86260058 */ lh $a2, 0x58($s1)
/* 42E48C 802A90EC 0200202D */ daddu $a0, $s0, $zero
/* 42E490 802A90F0 AE300008 */ sw $s0, 8($s1)
/* 42E494 802A90F4 0C051261 */ jal set_icon_render_pos
/* 42E498 802A90F8 24C6001C */ addiu $a2, $a2, 0x1c
/* 42E49C 802A90FC 0200202D */ daddu $a0, $s0, $zero
/* 42E4A0 802A9100 0C051277 */ jal func_801449DC
/* 42E4A4 802A9104 0000282D */ daddu $a1, $zero, $zero
/* 42E4A8 802A9108 0200202D */ daddu $a0, $s0, $zero
/* 42E4AC 802A910C 0C051280 */ jal set_icon_flags
/* 42E4B0 802A9110 24050082 */ addiu $a1, $zero, 0x82
/* 42E4B4 802A9114 3C048029 */ lui $a0, %hi(D_80292974)
/* 42E4B8 802A9118 24842974 */ addiu $a0, $a0, %lo(D_80292974)
/* 42E4BC 802A911C 0C050529 */ jal create_icon
/* 42E4C0 802A9120 00000000 */ nop
/* 42E4C4 802A9124 0040802D */ daddu $s0, $v0, $zero
/* 42E4C8 802A9128 86250056 */ lh $a1, 0x56($s1)
/* 42E4CC 802A912C 86260058 */ lh $a2, 0x58($s1)
/* 42E4D0 802A9130 0200202D */ daddu $a0, $s0, $zero
/* 42E4D4 802A9134 AE30000C */ sw $s0, 0xc($s1)
/* 42E4D8 802A9138 0C051261 */ jal set_icon_render_pos
/* 42E4DC 802A913C 24C6001C */ addiu $a2, $a2, 0x1c
/* 42E4E0 802A9140 0200202D */ daddu $a0, $s0, $zero
/* 42E4E4 802A9144 0C051277 */ jal func_801449DC
/* 42E4E8 802A9148 0000282D */ daddu $a1, $zero, $zero
/* 42E4EC 802A914C 0200202D */ daddu $a0, $s0, $zero
/* 42E4F0 802A9150 0C051280 */ jal set_icon_flags
/* 42E4F4 802A9154 24050082 */ addiu $a1, $zero, 0x82
/* 42E4F8 802A9158 080AA45A */ j .L802A9168
/* 42E4FC 802A915C 24020002 */ addiu $v0, $zero, 2
.L802A9160:
/* 42E500 802A9160 A0600081 */ sb $zero, 0x81($v1)
/* 42E504 802A9164 24020002 */ addiu $v0, $zero, 2
.L802A9168:
/* 42E508 802A9168 8FBF0018 */ lw $ra, 0x18($sp)
/* 42E50C 802A916C 8FB10014 */ lw $s1, 0x14($sp)
/* 42E510 802A9170 8FB00010 */ lw $s0, 0x10($sp)
/* 42E514 802A9174 03E00008 */ jr $ra
/* 42E518 802A9178 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,77 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A917C_42E51C
/* 42E51C 802A917C 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42E520 802A9180 AFB3001C */ sw $s3, 0x1c($sp)
/* 42E524 802A9184 0080982D */ daddu $s3, $a0, $zero
/* 42E528 802A9188 AFB10014 */ sw $s1, 0x14($sp)
/* 42E52C 802A918C 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42E530 802A9190 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42E534 802A9194 AFB20018 */ sw $s2, 0x18($sp)
/* 42E538 802A9198 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 42E53C 802A919C 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 42E540 802A91A0 AFBF0020 */ sw $ra, 0x20($sp)
/* 42E544 802A91A4 AFB00010 */ sw $s0, 0x10($sp)
/* 42E548 802A91A8 82420083 */ lb $v0, 0x83($s2)
/* 42E54C 802A91AC 8E70000C */ lw $s0, 0xc($s3)
/* 42E550 802A91B0 10400030 */ beqz $v0, .L802A9274
/* 42E554 802A91B4 0240182D */ daddu $v1, $s2, $zero
/* 42E558 802A91B8 0C09A216 */ jal func_80268858
/* 42E55C 802A91BC 00000000 */ nop
/* 42E560 802A91C0 8E050000 */ lw $a1, ($s0)
/* 42E564 802A91C4 26100004 */ addiu $s0, $s0, 4
/* 42E568 802A91C8 0C0B1EAF */ jal get_variable
/* 42E56C 802A91CC 0260202D */ daddu $a0, $s3, $zero
/* 42E570 802A91D0 A622004E */ sh $v0, 0x4e($s1)
/* 42E574 802A91D4 8E050000 */ lw $a1, ($s0)
/* 42E578 802A91D8 26100004 */ addiu $s0, $s0, 4
/* 42E57C 802A91DC 0C0B1EAF */ jal get_variable
/* 42E580 802A91E0 0260202D */ daddu $a0, $s3, $zero
/* 42E584 802A91E4 A6220052 */ sh $v0, 0x52($s1)
/* 42E588 802A91E8 8E050000 */ lw $a1, ($s0)
/* 42E58C 802A91EC 26100004 */ addiu $s0, $s0, 4
/* 42E590 802A91F0 0C0B1EAF */ jal get_variable
/* 42E594 802A91F4 0260202D */ daddu $a0, $s3, $zero
/* 42E598 802A91F8 00022400 */ sll $a0, $v0, 0x10
/* 42E59C 802A91FC 00042403 */ sra $a0, $a0, 0x10
/* 42E5A0 802A9200 0C09A089 */ jal func_80268224
/* 42E5A4 802A9204 A6220050 */ sh $v0, 0x50($s1)
/* 42E5A8 802A9208 A6220050 */ sh $v0, 0x50($s1)
/* 42E5AC 802A920C 8E050000 */ lw $a1, ($s0)
/* 42E5B0 802A9210 0C0B1EAF */ jal get_variable
/* 42E5B4 802A9214 0260202D */ daddu $a0, $s3, $zero
/* 42E5B8 802A9218 3C05FFFF */ lui $a1, 0xffff
/* 42E5BC 802A921C 34A57FFF */ ori $a1, $a1, 0x7fff
/* 42E5C0 802A9220 A6220064 */ sh $v0, 0x64($s1)
/* 42E5C4 802A9224 A2200060 */ sb $zero, 0x60($s1)
/* 42E5C8 802A9228 A6200044 */ sh $zero, 0x44($s1)
/* 42E5CC 802A922C A6200048 */ sh $zero, 0x48($s1)
/* 42E5D0 802A9230 A2400081 */ sb $zero, 0x81($s2)
/* 42E5D4 802A9234 82220080 */ lb $v0, 0x80($s1)
/* 42E5D8 802A9238 2403007F */ addiu $v1, $zero, 0x7f
/* 42E5DC 802A923C A2430086 */ sb $v1, 0x86($s2)
/* 42E5E0 802A9240 8E430000 */ lw $v1, ($s2)
/* 42E5E4 802A9244 2442FFFF */ addiu $v0, $v0, -1
/* 42E5E8 802A9248 00021040 */ sll $v0, $v0, 1
/* 42E5EC 802A924C 00511021 */ addu $v0, $v0, $s1
/* 42E5F0 802A9250 00651824 */ and $v1, $v1, $a1
/* 42E5F4 802A9254 90440075 */ lbu $a0, 0x75($v0)
/* 42E5F8 802A9258 2402000A */ addiu $v0, $zero, 0xa
/* 42E5FC 802A925C AE430000 */ sw $v1, ($s2)
/* 42E600 802A9260 A622004C */ sh $v0, 0x4c($s1)
/* 42E604 802A9264 0C09A446 */ jal func_80269118
/* 42E608 802A9268 A2440082 */ sb $a0, 0x82($s2)
/* 42E60C 802A926C 080AA49F */ j .L802A927C
/* 42E610 802A9270 24020002 */ addiu $v0, $zero, 2
.L802A9274:
/* 42E614 802A9274 A0600081 */ sb $zero, 0x81($v1)
/* 42E618 802A9278 24020002 */ addiu $v0, $zero, 2
.L802A927C:
/* 42E61C 802A927C 8FBF0020 */ lw $ra, 0x20($sp)
/* 42E620 802A9280 8FB3001C */ lw $s3, 0x1c($sp)
/* 42E624 802A9284 8FB20018 */ lw $s2, 0x18($sp)
/* 42E628 802A9288 8FB10014 */ lw $s1, 0x14($sp)
/* 42E62C 802A928C 8FB00010 */ lw $s0, 0x10($sp)
/* 42E630 802A9290 03E00008 */ jr $ra
/* 42E634 802A9294 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,423 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9298_42E638
/* 42E638 802A9298 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42E63C 802A929C AFB10014 */ sw $s1, 0x14($sp)
/* 42E640 802A92A0 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42E644 802A92A4 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42E648 802A92A8 AFB20018 */ sw $s2, 0x18($sp)
/* 42E64C 802A92AC 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 42E650 802A92B0 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 42E654 802A92B4 AFBF0020 */ sw $ra, 0x20($sp)
/* 42E658 802A92B8 AFB3001C */ sw $s3, 0x1c($sp)
/* 42E65C 802A92BC AFB00010 */ sw $s0, 0x10($sp)
/* 42E660 802A92C0 8623004C */ lh $v1, 0x4c($s1)
/* 42E664 802A92C4 8E5300DC */ lw $s3, 0xdc($s2)
/* 42E668 802A92C8 2C62000D */ sltiu $v0, $v1, 0xd
/* 42E66C 802A92CC 10400171 */ beqz $v0, .L802A9894
/* 42E670 802A92D0 00031080 */ sll $v0, $v1, 2
/* 42E674 802A92D4 3C01802B */ lui $at, %hi(D_802A9A40)
/* 42E678 802A92D8 00220821 */ addu $at, $at, $v0
/* 42E67C 802A92DC 8C229A40 */ lw $v0, %lo(D_802A9A40)($at)
/* 42E680 802A92E0 00400008 */ jr $v0
/* 42E684 802A92E4 00000000 */ nop
/* 42E688 802A92E8 0C093EB1 */ jal set_popup_duration
/* 42E68C 802A92EC 24040063 */ addiu $a0, $zero, 0x63
/* 42E690 802A92F0 8E300004 */ lw $s0, 4($s1)
/* 42E694 802A92F4 240500FF */ addiu $a1, $zero, 0xff
/* 42E698 802A92F8 0C0513AC */ jal icon_set_opacity
/* 42E69C 802A92FC 0200202D */ daddu $a0, $s0, $zero
/* 42E6A0 802A9300 82220061 */ lb $v0, 0x61($s1)
/* 42E6A4 802A9304 10400003 */ beqz $v0, .L802A9314
/* 42E6A8 802A9308 0200202D */ daddu $a0, $s0, $zero
/* 42E6AC 802A930C 0C05128B */ jal clear_icon_flags
/* 42E6B0 802A9310 24050002 */ addiu $a1, $zero, 2
.L802A9314:
/* 42E6B4 802A9314 8E300008 */ lw $s0, 8($s1)
/* 42E6B8 802A9318 240500FF */ addiu $a1, $zero, 0xff
/* 42E6BC 802A931C 0C0513AC */ jal icon_set_opacity
/* 42E6C0 802A9320 0200202D */ daddu $a0, $s0, $zero
/* 42E6C4 802A9324 82220061 */ lb $v0, 0x61($s1)
/* 42E6C8 802A9328 10400003 */ beqz $v0, .L802A9338
/* 42E6CC 802A932C 0200202D */ daddu $a0, $s0, $zero
/* 42E6D0 802A9330 0C05128B */ jal clear_icon_flags
/* 42E6D4 802A9334 24050002 */ addiu $a1, $zero, 2
.L802A9338:
/* 42E6D8 802A9338 24020001 */ addiu $v0, $zero, 1
/* 42E6DC 802A933C 080AA625 */ j .L802A9894
/* 42E6E0 802A9340 A622004C */ sh $v0, 0x4c($s1)
/* 42E6E4 802A9344 0C093EB1 */ jal set_popup_duration
/* 42E6E8 802A9348 24040063 */ addiu $a0, $zero, 0x63
/* 42E6EC 802A934C 8622006C */ lh $v0, 0x6c($s1)
/* 42E6F0 802A9350 9623006C */ lhu $v1, 0x6c($s1)
/* 42E6F4 802A9354 10400003 */ beqz $v0, .L802A9364
/* 42E6F8 802A9358 2462FFFF */ addiu $v0, $v1, -1
/* 42E6FC 802A935C 080AA625 */ j .L802A9894
/* 42E700 802A9360 A622006C */ sh $v0, 0x6c($s1)
.L802A9364:
/* 42E704 802A9364 96220056 */ lhu $v0, 0x56($s1)
/* 42E708 802A9368 24420014 */ addiu $v0, $v0, 0x14
/* 42E70C 802A936C A6220056 */ sh $v0, 0x56($s1)
/* 42E710 802A9370 00021400 */ sll $v0, $v0, 0x10
/* 42E714 802A9374 00021403 */ sra $v0, $v0, 0x10
/* 42E718 802A9378 28420033 */ slti $v0, $v0, 0x33
/* 42E71C 802A937C 14400002 */ bnez $v0, .L802A9388
/* 42E720 802A9380 24020032 */ addiu $v0, $zero, 0x32
/* 42E724 802A9384 A6220056 */ sh $v0, 0x56($s1)
.L802A9388:
/* 42E728 802A9388 8E240004 */ lw $a0, 4($s1)
/* 42E72C 802A938C 86250056 */ lh $a1, 0x56($s1)
/* 42E730 802A9390 0C051261 */ jal set_icon_render_pos
/* 42E734 802A9394 86260058 */ lh $a2, 0x58($s1)
/* 42E738 802A9398 8E240008 */ lw $a0, 8($s1)
/* 42E73C 802A939C 86260058 */ lh $a2, 0x58($s1)
/* 42E740 802A93A0 86250056 */ lh $a1, 0x56($s1)
/* 42E744 802A93A4 0C051261 */ jal set_icon_render_pos
/* 42E748 802A93A8 24C6001C */ addiu $a2, $a2, 0x1c
/* 42E74C 802A93AC 080AA625 */ j .L802A9894
/* 42E750 802A93B0 00000000 */ nop
/* 42E754 802A93B4 0C093EB1 */ jal set_popup_duration
/* 42E758 802A93B8 24040063 */ addiu $a0, $zero, 0x63
/* 42E75C 802A93BC 8622004E */ lh $v0, 0x4e($s1)
/* 42E760 802A93C0 9623004E */ lhu $v1, 0x4e($s1)
/* 42E764 802A93C4 10400003 */ beqz $v0, .L802A93D4
/* 42E768 802A93C8 2462FFFF */ addiu $v0, $v1, -1
/* 42E76C 802A93CC 080AA625 */ j .L802A9894
/* 42E770 802A93D0 A622004E */ sh $v0, 0x4e($s1)
.L802A93D4:
/* 42E774 802A93D4 8E240004 */ lw $a0, 4($s1)
/* 42E778 802A93D8 3C058011 */ lui $a1, %hi(D_80108F30)
/* 42E77C 802A93DC 24A58F30 */ addiu $a1, $a1, %lo(D_80108F30)
/* 42E780 802A93E0 0C0511FF */ jal set_menu_icon_script
/* 42E784 802A93E4 00000000 */ nop
/* 42E788 802A93E8 3C048000 */ lui $a0, 0x8000
/* 42E78C 802A93EC 34840041 */ ori $a0, $a0, 0x41
/* 42E790 802A93F0 0000282D */ daddu $a1, $zero, $zero
/* 42E794 802A93F4 00A0302D */ daddu $a2, $a1, $zero
/* 42E798 802A93F8 96220052 */ lhu $v0, 0x52($s1)
/* 42E79C 802A93FC 00A0382D */ daddu $a3, $a1, $zero
/* 42E7A0 802A9400 A6200044 */ sh $zero, 0x44($s1)
/* 42E7A4 802A9404 A2400085 */ sb $zero, 0x85($s2)
/* 42E7A8 802A9408 A220005C */ sb $zero, 0x5c($s1)
/* 42E7AC 802A940C 0C0526AE */ jal _play_sound
/* 42E7B0 802A9410 A6220054 */ sh $v0, 0x54($s1)
/* 42E7B4 802A9414 2402000B */ addiu $v0, $zero, 0xb
/* 42E7B8 802A9418 A622004C */ sh $v0, 0x4c($s1)
/* 42E7BC 802A941C 0C093EB1 */ jal set_popup_duration
/* 42E7C0 802A9420 24040063 */ addiu $a0, $zero, 0x63
/* 42E7C4 802A9424 86220068 */ lh $v0, 0x68($s1)
/* 42E7C8 802A9428 14400066 */ bnez $v0, .L802A95C4
/* 42E7CC 802A942C 00000000 */ nop
/* 42E7D0 802A9430 82220080 */ lb $v0, 0x80($s1)
/* 42E7D4 802A9434 00021040 */ sll $v0, $v0, 1
/* 42E7D8 802A9438 02221021 */ addu $v0, $s1, $v0
/* 42E7DC 802A943C 84430074 */ lh $v1, 0x74($v0)
/* 42E7E0 802A9440 86220044 */ lh $v0, 0x44($s1)
/* 42E7E4 802A9444 14600002 */ bnez $v1, .L802A9450
/* 42E7E8 802A9448 0043001A */ div $zero, $v0, $v1
/* 42E7EC 802A944C 0007000D */ break 7
.L802A9450:
/* 42E7F0 802A9450 2401FFFF */ addiu $at, $zero, -1
/* 42E7F4 802A9454 14610004 */ bne $v1, $at, .L802A9468
/* 42E7F8 802A9458 3C018000 */ lui $at, 0x8000
/* 42E7FC 802A945C 14410002 */ bne $v0, $at, .L802A9468
/* 42E800 802A9460 00000000 */ nop
/* 42E804 802A9464 0006000D */ break 6
.L802A9468:
/* 42E808 802A9468 00001012 */ mflo $v0
/* 42E80C 802A946C 3C036666 */ lui $v1, 0x6666
/* 42E810 802A9470 34636667 */ ori $v1, $v1, 0x6667
/* 42E814 802A9474 00430018 */ mult $v0, $v1
/* 42E818 802A9478 000217C3 */ sra $v0, $v0, 0x1f
/* 42E81C 802A947C 00001810 */ mfhi $v1
/* 42E820 802A9480 000318C3 */ sra $v1, $v1, 3
/* 42E824 802A9484 00621823 */ subu $v1, $v1, $v0
/* 42E828 802A9488 00031880 */ sll $v1, $v1, 2
/* 42E82C 802A948C 96220044 */ lhu $v0, 0x44($s1)
/* 42E830 802A9490 3C01802B */ lui $at, %hi(D_802A99D2)
/* 42E834 802A9494 00230821 */ addu $at, $at, $v1
/* 42E838 802A9498 942399D2 */ lhu $v1, %lo(D_802A99D2)($at)
/* 42E83C 802A949C 00431023 */ subu $v0, $v0, $v1
/* 42E840 802A94A0 A6220044 */ sh $v0, 0x44($s1)
/* 42E844 802A94A4 00021400 */ sll $v0, $v0, 0x10
/* 42E848 802A94A8 04420001 */ bltzl $v0, .L802A94B0
/* 42E84C 802A94AC A6200044 */ sh $zero, 0x44($s1)
.L802A94B0:
/* 42E850 802A94B0 86220068 */ lh $v0, 0x68($s1)
/* 42E854 802A94B4 14400043 */ bnez $v0, .L802A95C4
/* 42E858 802A94B8 3C040004 */ lui $a0, 4
/* 42E85C 802A94BC 8E420210 */ lw $v0, 0x210($s2)
/* 42E860 802A94C0 00441024 */ and $v0, $v0, $a0
/* 42E864 802A94C4 10400006 */ beqz $v0, .L802A94E0
/* 42E868 802A94C8 00000000 */ nop
/* 42E86C 802A94CC 8E420210 */ lw $v0, 0x210($s2)
/* 42E870 802A94D0 24030001 */ addiu $v1, $zero, 1
/* 42E874 802A94D4 00441024 */ and $v0, $v0, $a0
/* 42E878 802A94D8 14400029 */ bnez $v0, .L802A9580
/* 42E87C 802A94DC A223005C */ sb $v1, 0x5c($s1)
.L802A94E0:
/* 42E880 802A94E0 8222005C */ lb $v0, 0x5c($s1)
/* 42E884 802A94E4 10400026 */ beqz $v0, .L802A9580
/* 42E888 802A94E8 00000000 */ nop
/* 42E88C 802A94EC 86220064 */ lh $v0, 0x64($s1)
/* 42E890 802A94F0 1440000D */ bnez $v0, .L802A9528
/* 42E894 802A94F4 3C0451EB */ lui $a0, 0x51eb
/* 42E898 802A94F8 86220050 */ lh $v0, 0x50($s1)
/* 42E89C 802A94FC 8E430434 */ lw $v1, 0x434($s2)
/* 42E8A0 802A9500 00021080 */ sll $v0, $v0, 2
/* 42E8A4 802A9504 00431021 */ addu $v0, $v0, $v1
/* 42E8A8 802A9508 8C440000 */ lw $a0, ($v0)
/* 42E8AC 802A950C 96230044 */ lhu $v1, 0x44($s1)
/* 42E8B0 802A9510 00041040 */ sll $v0, $a0, 1
/* 42E8B4 802A9514 00441021 */ addu $v0, $v0, $a0
/* 42E8B8 802A9518 00021080 */ sll $v0, $v0, 2
/* 42E8BC 802A951C 00441021 */ addu $v0, $v0, $a0
/* 42E8C0 802A9520 080AA55E */ j .L802A9578
/* 42E8C4 802A9524 00621821 */ addu $v1, $v1, $v0
.L802A9528:
/* 42E8C8 802A9528 86220050 */ lh $v0, 0x50($s1)
/* 42E8CC 802A952C 8E430434 */ lw $v1, 0x434($s2)
/* 42E8D0 802A9530 00021080 */ sll $v0, $v0, 2
/* 42E8D4 802A9534 00431021 */ addu $v0, $v0, $v1
/* 42E8D8 802A9538 8C430000 */ lw $v1, ($v0)
/* 42E8DC 802A953C 3484851F */ ori $a0, $a0, 0x851f
/* 42E8E0 802A9540 00031040 */ sll $v0, $v1, 1
/* 42E8E4 802A9544 00431021 */ addu $v0, $v0, $v1
/* 42E8E8 802A9548 000210C0 */ sll $v0, $v0, 3
/* 42E8EC 802A954C 00431021 */ addu $v0, $v0, $v1
/* 42E8F0 802A9550 00021900 */ sll $v1, $v0, 4
/* 42E8F4 802A9554 00431021 */ addu $v0, $v0, $v1
/* 42E8F8 802A9558 00021040 */ sll $v0, $v0, 1
/* 42E8FC 802A955C 00440018 */ mult $v0, $a0
/* 42E900 802A9560 000217C3 */ sra $v0, $v0, 0x1f
/* 42E904 802A9564 96230044 */ lhu $v1, 0x44($s1)
/* 42E908 802A9568 00004810 */ mfhi $t1
/* 42E90C 802A956C 00092143 */ sra $a0, $t1, 5
/* 42E910 802A9570 00822023 */ subu $a0, $a0, $v0
/* 42E914 802A9574 00641821 */ addu $v1, $v1, $a0
.L802A9578:
/* 42E918 802A9578 A6230044 */ sh $v1, 0x44($s1)
/* 42E91C 802A957C A220005C */ sb $zero, 0x5c($s1)
.L802A9580:
/* 42E920 802A9580 8E420214 */ lw $v0, 0x214($s2)
/* 42E924 802A9584 3C030008 */ lui $v1, 8
/* 42E928 802A9588 00431024 */ and $v0, $v0, $v1
/* 42E92C 802A958C 1040000D */ beqz $v0, .L802A95C4
/* 42E930 802A9590 00000000 */ nop
/* 42E934 802A9594 86220050 */ lh $v0, 0x50($s1)
/* 42E938 802A9598 8E430434 */ lw $v1, 0x434($s2)
/* 42E93C 802A959C 00021080 */ sll $v0, $v0, 2
/* 42E940 802A95A0 00431021 */ addu $v0, $v0, $v1
/* 42E944 802A95A4 8C440000 */ lw $a0, ($v0)
/* 42E948 802A95A8 96230044 */ lhu $v1, 0x44($s1)
/* 42E94C 802A95AC 00041040 */ sll $v0, $a0, 1
/* 42E950 802A95B0 00441021 */ addu $v0, $v0, $a0
/* 42E954 802A95B4 00021080 */ sll $v0, $v0, 2
/* 42E958 802A95B8 00441023 */ subu $v0, $v0, $a0
/* 42E95C 802A95BC 00621823 */ subu $v1, $v1, $v0
/* 42E960 802A95C0 A6230044 */ sh $v1, 0x44($s1)
.L802A95C4:
/* 42E964 802A95C4 86220044 */ lh $v0, 0x44($s1)
/* 42E968 802A95C8 04420001 */ bltzl $v0, .L802A95D0
/* 42E96C 802A95CC A6200044 */ sh $zero, 0x44($s1)
.L802A95D0:
/* 42E970 802A95D0 86220044 */ lh $v0, 0x44($s1)
/* 42E974 802A95D4 28422711 */ slti $v0, $v0, 0x2711
/* 42E978 802A95D8 14400010 */ bnez $v0, .L802A961C
/* 42E97C 802A95DC 3C0451EB */ lui $a0, 0x51eb
/* 42E980 802A95E0 8E30000C */ lw $s0, 0xc($s1)
/* 42E984 802A95E4 86250056 */ lh $a1, 0x56($s1)
/* 42E988 802A95E8 86260058 */ lh $a2, 0x58($s1)
/* 42E98C 802A95EC 24022710 */ addiu $v0, $zero, 0x2710
/* 42E990 802A95F0 A6220044 */ sh $v0, 0x44($s1)
/* 42E994 802A95F4 24020001 */ addiu $v0, $zero, 1
/* 42E998 802A95F8 A6220068 */ sh $v0, 0x68($s1)
/* 42E99C 802A95FC 0200202D */ daddu $a0, $s0, $zero
/* 42E9A0 802A9600 24A50032 */ addiu $a1, $a1, 0x32
/* 42E9A4 802A9604 0C051261 */ jal set_icon_render_pos
/* 42E9A8 802A9608 24C6001C */ addiu $a2, $a2, 0x1c
/* 42E9AC 802A960C 0200202D */ daddu $a0, $s0, $zero
/* 42E9B0 802A9610 0C05128B */ jal clear_icon_flags
/* 42E9B4 802A9614 24050002 */ addiu $a1, $zero, 2
/* 42E9B8 802A9618 3C0451EB */ lui $a0, 0x51eb
.L802A961C:
/* 42E9BC 802A961C 3484851F */ ori $a0, $a0, 0x851f
/* 42E9C0 802A9620 96230044 */ lhu $v1, 0x44($s1)
/* 42E9C4 802A9624 0000282D */ daddu $a1, $zero, $zero
/* 42E9C8 802A9628 00031C00 */ sll $v1, $v1, 0x10
/* 42E9CC 802A962C 00031403 */ sra $v0, $v1, 0x10
/* 42E9D0 802A9630 00440018 */ mult $v0, $a0
/* 42E9D4 802A9634 00A0302D */ daddu $a2, $a1, $zero
/* 42E9D8 802A9638 3C048000 */ lui $a0, 0x8000
/* 42E9DC 802A963C 34840041 */ ori $a0, $a0, 0x41
/* 42E9E0 802A9640 00031FC3 */ sra $v1, $v1, 0x1f
/* 42E9E4 802A9644 00004810 */ mfhi $t1
/* 42E9E8 802A9648 00094143 */ sra $t0, $t1, 5
/* 42E9EC 802A964C 01034023 */ subu $t0, $t0, $v1
/* 42E9F0 802A9650 00081600 */ sll $v0, $t0, 0x18
/* 42E9F4 802A9654 00021603 */ sra $v0, $v0, 0x18
/* 42E9F8 802A9658 00023840 */ sll $a3, $v0, 1
/* 42E9FC 802A965C 00E23821 */ addu $a3, $a3, $v0
/* 42EA00 802A9660 00073880 */ sll $a3, $a3, 2
/* 42EA04 802A9664 0C0526F9 */ jal func_80149BE4
/* 42EA08 802A9668 A2480084 */ sb $t0, 0x84($s2)
/* 42EA0C 802A966C 8E620008 */ lw $v0, 8($s3)
/* 42EA10 802A9670 90430006 */ lbu $v1, 6($v0)
/* 42EA14 802A9674 24020001 */ addiu $v0, $zero, 1
/* 42EA18 802A9678 10620019 */ beq $v1, $v0, .L802A96E0
/* 42EA1C 802A967C 28620002 */ slti $v0, $v1, 2
/* 42EA20 802A9680 10400005 */ beqz $v0, .L802A9698
/* 42EA24 802A9684 24020002 */ addiu $v0, $zero, 2
/* 42EA28 802A9688 10600007 */ beqz $v1, .L802A96A8
/* 42EA2C 802A968C 00000000 */ nop
/* 42EA30 802A9690 080AA5F0 */ j .L802A97C0
/* 42EA34 802A9694 00000000 */ nop
.L802A9698:
/* 42EA38 802A9698 1062001F */ beq $v1, $v0, .L802A9718
/* 42EA3C 802A969C 00000000 */ nop
/* 42EA40 802A96A0 080AA5F0 */ j .L802A97C0
/* 42EA44 802A96A4 00000000 */ nop
.L802A96A8:
/* 42EA48 802A96A8 82420085 */ lb $v0, 0x85($s2)
/* 42EA4C 802A96AC 82430084 */ lb $v1, 0x84($s2)
/* 42EA50 802A96B0 00021080 */ sll $v0, $v0, 2
/* 42EA54 802A96B4 3C01802B */ lui $at, %hi(D_802A99E4)
/* 42EA58 802A96B8 00220821 */ addu $at, $at, $v0
/* 42EA5C 802A96BC 8C2299E4 */ lw $v0, %lo(D_802A99E4)($at)
/* 42EA60 802A96C0 3C05802B */ lui $a1, %hi(D_802A99E4)
/* 42EA64 802A96C4 24A599E4 */ addiu $a1, $a1, %lo(D_802A99E4)
/* 42EA68 802A96C8 0062182A */ slt $v1, $v1, $v0
/* 42EA6C 802A96CC 92420085 */ lbu $v0, 0x85($s2)
/* 42EA70 802A96D0 1460002F */ bnez $v1, .L802A9790
/* 42EA74 802A96D4 24420001 */ addiu $v0, $v0, 1
/* 42EA78 802A96D8 080AA5E4 */ j .L802A9790
/* 42EA7C 802A96DC A2420085 */ sb $v0, 0x85($s2)
.L802A96E0:
/* 42EA80 802A96E0 82420085 */ lb $v0, 0x85($s2)
/* 42EA84 802A96E4 82430084 */ lb $v1, 0x84($s2)
/* 42EA88 802A96E8 00021080 */ sll $v0, $v0, 2
/* 42EA8C 802A96EC 3C01802B */ lui $at, %hi(D_802A99F4)
/* 42EA90 802A96F0 00220821 */ addu $at, $at, $v0
/* 42EA94 802A96F4 8C2299F4 */ lw $v0, %lo(D_802A99F4)($at)
/* 42EA98 802A96F8 3C05802B */ lui $a1, %hi(D_802A99F4)
/* 42EA9C 802A96FC 24A599F4 */ addiu $a1, $a1, %lo(D_802A99F4)
/* 42EAA0 802A9700 0062182A */ slt $v1, $v1, $v0
/* 42EAA4 802A9704 92420085 */ lbu $v0, 0x85($s2)
/* 42EAA8 802A9708 14600021 */ bnez $v1, .L802A9790
/* 42EAAC 802A970C 24420001 */ addiu $v0, $v0, 1
/* 42EAB0 802A9710 080AA5E4 */ j .L802A9790
/* 42EAB4 802A9714 A2420085 */ sb $v0, 0x85($s2)
.L802A9718:
/* 42EAB8 802A9718 86220064 */ lh $v0, 0x64($s1)
/* 42EABC 802A971C 1440000F */ bnez $v0, .L802A975C
/* 42EAC0 802A9720 00000000 */ nop
/* 42EAC4 802A9724 82420085 */ lb $v0, 0x85($s2)
/* 42EAC8 802A9728 82430084 */ lb $v1, 0x84($s2)
/* 42EACC 802A972C 00021080 */ sll $v0, $v0, 2
/* 42EAD0 802A9730 3C01802B */ lui $at, %hi(D_802A9A08)
/* 42EAD4 802A9734 00220821 */ addu $at, $at, $v0
/* 42EAD8 802A9738 8C229A08 */ lw $v0, %lo(D_802A9A08)($at)
/* 42EADC 802A973C 3C05802B */ lui $a1, %hi(D_802A9A08)
/* 42EAE0 802A9740 24A59A08 */ addiu $a1, $a1, %lo(D_802A9A08)
/* 42EAE4 802A9744 0062182A */ slt $v1, $v1, $v0
/* 42EAE8 802A9748 92420085 */ lbu $v0, 0x85($s2)
/* 42EAEC 802A974C 14600010 */ bnez $v1, .L802A9790
/* 42EAF0 802A9750 24420001 */ addiu $v0, $v0, 1
/* 42EAF4 802A9754 080AA5E4 */ j .L802A9790
/* 42EAF8 802A9758 A2420085 */ sb $v0, 0x85($s2)
.L802A975C:
/* 42EAFC 802A975C 82420085 */ lb $v0, 0x85($s2)
/* 42EB00 802A9760 82430084 */ lb $v1, 0x84($s2)
/* 42EB04 802A9764 00021080 */ sll $v0, $v0, 2
/* 42EB08 802A9768 3C01802B */ lui $at, %hi(D_802A9A20)
/* 42EB0C 802A976C 00220821 */ addu $at, $at, $v0
/* 42EB10 802A9770 8C229A20 */ lw $v0, %lo(D_802A9A20)($at)
/* 42EB14 802A9774 3C05802B */ lui $a1, %hi(D_802A9A20)
/* 42EB18 802A9778 24A59A20 */ addiu $a1, $a1, %lo(D_802A9A20)
/* 42EB1C 802A977C 0062182A */ slt $v1, $v1, $v0
/* 42EB20 802A9780 92420085 */ lbu $v0, 0x85($s2)
/* 42EB24 802A9784 14600002 */ bnez $v1, .L802A9790
/* 42EB28 802A9788 24420001 */ addiu $v0, $v0, 1
/* 42EB2C 802A978C A2420085 */ sb $v0, 0x85($s2)
.L802A9790:
/* 42EB30 802A9790 82420085 */ lb $v0, 0x85($s2)
/* 42EB34 802A9794 92440085 */ lbu $a0, 0x85($s2)
/* 42EB38 802A9798 18400009 */ blez $v0, .L802A97C0
/* 42EB3C 802A979C 2442FFFF */ addiu $v0, $v0, -1
/* 42EB40 802A97A0 00021080 */ sll $v0, $v0, 2
/* 42EB44 802A97A4 00451021 */ addu $v0, $v0, $a1
/* 42EB48 802A97A8 82430084 */ lb $v1, 0x84($s2)
/* 42EB4C 802A97AC 8C420000 */ lw $v0, ($v0)
/* 42EB50 802A97B0 0062182A */ slt $v1, $v1, $v0
/* 42EB54 802A97B4 10600002 */ beqz $v1, .L802A97C0
/* 42EB58 802A97B8 2482FFFF */ addiu $v0, $a0, -1
/* 42EB5C 802A97BC A2420085 */ sb $v0, 0x85($s2)
.L802A97C0:
/* 42EB60 802A97C0 86220054 */ lh $v0, 0x54($s1)
/* 42EB64 802A97C4 96230054 */ lhu $v1, 0x54($s1)
/* 42EB68 802A97C8 1440002E */ bnez $v0, .L802A9884
/* 42EB6C 802A97CC 2462FFFF */ addiu $v0, $v1, -1
/* 42EB70 802A97D0 96220044 */ lhu $v0, 0x44($s1)
/* 42EB74 802A97D4 00021C00 */ sll $v1, $v0, 0x10
/* 42EB78 802A97D8 00032403 */ sra $a0, $v1, 0x10
/* 42EB7C 802A97DC 14800003 */ bnez $a0, .L802A97EC
/* 42EB80 802A97E0 3C0251EB */ lui $v0, 0x51eb
/* 42EB84 802A97E4 080AA601 */ j .L802A9804
/* 42EB88 802A97E8 2402FFFF */ addiu $v0, $zero, -1
.L802A97EC:
/* 42EB8C 802A97EC 3442851F */ ori $v0, $v0, 0x851f
/* 42EB90 802A97F0 00820018 */ mult $a0, $v0
/* 42EB94 802A97F4 00031FC3 */ sra $v1, $v1, 0x1f
/* 42EB98 802A97F8 00004810 */ mfhi $t1
/* 42EB9C 802A97FC 00091143 */ sra $v0, $t1, 5
/* 42EBA0 802A9800 00431023 */ subu $v0, $v0, $v1
.L802A9804:
/* 42EBA4 802A9804 A2420081 */ sb $v0, 0x81($s2)
/* 42EBA8 802A9808 82220080 */ lb $v0, 0x80($s1)
/* 42EBAC 802A980C 2442FFFF */ addiu $v0, $v0, -1
/* 42EBB0 802A9810 00021040 */ sll $v0, $v0, 1
/* 42EBB4 802A9814 02221021 */ addu $v0, $s1, $v0
/* 42EBB8 802A9818 84430074 */ lh $v1, 0x74($v0)
/* 42EBBC 802A981C 82420081 */ lb $v0, 0x81($s2)
/* 42EBC0 802A9820 0062102A */ slt $v0, $v1, $v0
/* 42EBC4 802A9824 14400002 */ bnez $v0, .L802A9830
/* 42EBC8 802A9828 24020001 */ addiu $v0, $zero, 1
/* 42EBCC 802A982C 2402FFFE */ addiu $v0, $zero, -2
.L802A9830:
/* 42EBD0 802A9830 A2420086 */ sb $v0, 0x86($s2)
/* 42EBD4 802A9834 82430081 */ lb $v1, 0x81($s2)
/* 42EBD8 802A9838 24020064 */ addiu $v0, $zero, 0x64
/* 42EBDC 802A983C 14620003 */ bne $v1, $v0, .L802A984C
/* 42EBE0 802A9840 00000000 */ nop
/* 42EBE4 802A9844 0C09A458 */ jal func_80269160
/* 42EBE8 802A9848 00000000 */ nop
.L802A984C:
/* 42EBEC 802A984C 0C093EB1 */ jal set_popup_duration
/* 42EBF0 802A9850 0000202D */ daddu $a0, $zero, $zero
/* 42EBF4 802A9854 3C048000 */ lui $a0, 0x8000
/* 42EBF8 802A9858 0C05271B */ jal stop_sound
/* 42EBFC 802A985C 34840041 */ ori $a0, $a0, 0x41
/* 42EC00 802A9860 24020005 */ addiu $v0, $zero, 5
/* 42EC04 802A9864 A6220054 */ sh $v0, 0x54($s1)
/* 42EC08 802A9868 2402000C */ addiu $v0, $zero, 0xc
/* 42EC0C 802A986C 080AA625 */ j .L802A9894
/* 42EC10 802A9870 A622004C */ sh $v0, 0x4c($s1)
/* 42EC14 802A9874 86220054 */ lh $v0, 0x54($s1)
/* 42EC18 802A9878 96230054 */ lhu $v1, 0x54($s1)
/* 42EC1C 802A987C 10400003 */ beqz $v0, .L802A988C
/* 42EC20 802A9880 2462FFFF */ addiu $v0, $v1, -1
.L802A9884:
/* 42EC24 802A9884 080AA625 */ j .L802A9894
/* 42EC28 802A9888 A6220054 */ sh $v0, 0x54($s1)
.L802A988C:
/* 42EC2C 802A988C 0C09A327 */ jal func_80268C9C
/* 42EC30 802A9890 00000000 */ nop
.L802A9894:
/* 42EC34 802A9894 8FBF0020 */ lw $ra, 0x20($sp)
/* 42EC38 802A9898 8FB3001C */ lw $s3, 0x1c($sp)
/* 42EC3C 802A989C 8FB20018 */ lw $s2, 0x18($sp)
/* 42EC40 802A98A0 8FB10014 */ lw $s1, 0x14($sp)
/* 42EC44 802A98A4 8FB00010 */ lw $s0, 0x10($sp)
/* 42EC48 802A98A8 03E00008 */ jr $ra
/* 42EC4C 802A98AC 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,62 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A98B0_42EC50
/* 42EC50 802A98B0 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42EC54 802A98B4 AFB1001C */ sw $s1, 0x1c($sp)
/* 42EC58 802A98B8 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42EC5C 802A98BC 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42EC60 802A98C0 AFBF0020 */ sw $ra, 0x20($sp)
/* 42EC64 802A98C4 AFB00018 */ sw $s0, 0x18($sp)
/* 42EC68 802A98C8 0C0511EA */ jal draw_icon_0
/* 42EC6C 802A98CC 8E240004 */ lw $a0, 4($s1)
/* 42EC70 802A98D0 8E300008 */ lw $s0, 8($s1)
/* 42EC74 802A98D4 0C0511EA */ jal draw_icon_0
/* 42EC78 802A98D8 0200202D */ daddu $a0, $s0, $zero
/* 42EC7C 802A98DC 0200202D */ daddu $a0, $s0, $zero
/* 42EC80 802A98E0 27A50010 */ addiu $a1, $sp, 0x10
/* 42EC84 802A98E4 0C05126B */ jal get_icon_render_pos
/* 42EC88 802A98E8 27A60014 */ addiu $a2, $sp, 0x14
/* 42EC8C 802A98EC 86220068 */ lh $v0, 0x68($s1)
/* 42EC90 802A98F0 14400011 */ bnez $v0, .L802A9938
/* 42EC94 802A98F4 3C0451EB */ lui $a0, 0x51eb
/* 42EC98 802A98F8 96230044 */ lhu $v1, 0x44($s1)
/* 42EC9C 802A98FC 3484851F */ ori $a0, $a0, 0x851f
/* 42ECA0 802A9900 00031C00 */ sll $v1, $v1, 0x10
/* 42ECA4 802A9904 00031403 */ sra $v0, $v1, 0x10
/* 42ECA8 802A9908 00440018 */ mult $v0, $a0
/* 42ECAC 802A990C 8FA50014 */ lw $a1, 0x14($sp)
/* 42ECB0 802A9910 00031FC3 */ sra $v1, $v1, 0x1f
/* 42ECB4 802A9914 8FA40010 */ lw $a0, 0x10($sp)
/* 42ECB8 802A9918 00003810 */ mfhi $a3
/* 42ECBC 802A991C 00073143 */ sra $a2, $a3, 5
/* 42ECC0 802A9920 00C33023 */ subu $a2, $a2, $v1
/* 42ECC4 802A9924 00063400 */ sll $a2, $a2, 0x10
/* 42ECC8 802A9928 0C09A1DC */ jal func_80268770
/* 42ECCC 802A992C 00063403 */ sra $a2, $a2, 0x10
/* 42ECD0 802A9930 080AA65C */ j .L802A9970
/* 42ECD4 802A9934 00000000 */ nop
.L802A9938:
/* 42ECD8 802A9938 96230044 */ lhu $v1, 0x44($s1)
/* 42ECDC 802A993C 3484851F */ ori $a0, $a0, 0x851f
/* 42ECE0 802A9940 00031C00 */ sll $v1, $v1, 0x10
/* 42ECE4 802A9944 00031403 */ sra $v0, $v1, 0x10
/* 42ECE8 802A9948 00440018 */ mult $v0, $a0
/* 42ECEC 802A994C 8FA50014 */ lw $a1, 0x14($sp)
/* 42ECF0 802A9950 00031FC3 */ sra $v1, $v1, 0x1f
/* 42ECF4 802A9954 8FA40010 */ lw $a0, 0x10($sp)
/* 42ECF8 802A9958 00003810 */ mfhi $a3
/* 42ECFC 802A995C 00073143 */ sra $a2, $a3, 5
/* 42ED00 802A9960 00C33023 */ subu $a2, $a2, $v1
/* 42ED04 802A9964 00063400 */ sll $a2, $a2, 0x10
/* 42ED08 802A9968 0C09A203 */ jal func_8026880C
/* 42ED0C 802A996C 00063403 */ sra $a2, $a2, 0x10
.L802A9970:
/* 42ED10 802A9970 8E24000C */ lw $a0, 0xc($s1)
/* 42ED14 802A9974 0C0511EA */ jal draw_icon_0
/* 42ED18 802A9978 00000000 */ nop
/* 42ED1C 802A997C 8FBF0020 */ lw $ra, 0x20($sp)
/* 42ED20 802A9980 8FB1001C */ lw $s1, 0x1c($sp)
/* 42ED24 802A9984 8FB00018 */ lw $s0, 0x18($sp)
/* 42ED28 802A9988 03E00008 */ jr $ra
/* 42ED2C 802A998C 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,20 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9990_42ED30
/* 42ED30 802A9990 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 42ED34 802A9994 AFB00010 */ sw $s0, 0x10($sp)
/* 42ED38 802A9998 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 42ED3C 802A999C 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 42ED40 802A99A0 AFBF0014 */ sw $ra, 0x14($sp)
/* 42ED44 802A99A4 0C05123D */ jal free_icon
/* 42ED48 802A99A8 8E040004 */ lw $a0, 4($s0)
/* 42ED4C 802A99AC 0C05123D */ jal free_icon
/* 42ED50 802A99B0 8E040008 */ lw $a0, 8($s0)
/* 42ED54 802A99B4 0C05123D */ jal free_icon
/* 42ED58 802A99B8 8E04000C */ lw $a0, 0xc($s0)
/* 42ED5C 802A99BC 8FBF0014 */ lw $ra, 0x14($sp)
/* 42ED60 802A99C0 8FB00010 */ lw $s0, 0x10($sp)
/* 42ED64 802A99C4 03E00008 */ jr $ra
/* 42ED68 802A99C8 27BD0018 */ addiu $sp, $sp, 0x18
/* 42ED6C 802A99CC 00000000 */ nop

View File

@ -0,0 +1,97 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9000_42EE20
/* 42EE20 802A9000 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 42EE24 802A9004 AFB00010 */ sw $s0, 0x10($sp)
/* 42EE28 802A9008 3C10800E */ lui $s0, %hi(gBattleStatus)
/* 42EE2C 802A900C 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
/* 42EE30 802A9010 24020010 */ addiu $v0, $zero, 0x10
/* 42EE34 802A9014 AFBF0018 */ sw $ra, 0x18($sp)
/* 42EE38 802A9018 AFB10014 */ sw $s1, 0x14($sp)
/* 42EE3C 802A901C A2020082 */ sb $v0, 0x82($s0)
/* 42EE40 802A9020 3C028029 */ lui $v0, %hi(D_80294400)
/* 42EE44 802A9024 24424400 */ addiu $v0, $v0, %lo(D_80294400)
/* 42EE48 802A9028 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42EE4C 802A902C 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42EE50 802A9030 AE020434 */ sw $v0, 0x434($s0)
/* 42EE54 802A9034 82020083 */ lb $v0, 0x83($s0)
/* 42EE58 802A9038 10400045 */ beqz $v0, .L802A9150
/* 42EE5C 802A903C 0200182D */ daddu $v1, $s0, $zero
/* 42EE60 802A9040 0C09A216 */ jal func_80268858
/* 42EE64 802A9044 00000000 */ nop
/* 42EE68 802A9048 3C048011 */ lui $a0, %hi(D_80108E1C)
/* 42EE6C 802A904C 24848E1C */ addiu $a0, $a0, %lo(D_80108E1C)
/* 42EE70 802A9050 24020013 */ addiu $v0, $zero, 0x13
/* 42EE74 802A9054 A622004A */ sh $v0, 0x4a($s1)
/* 42EE78 802A9058 2402001E */ addiu $v0, $zero, 0x1e
/* 42EE7C 802A905C A620004C */ sh $zero, 0x4c($s1)
/* 42EE80 802A9060 A2200060 */ sb $zero, 0x60($s1)
/* 42EE84 802A9064 A6200044 */ sh $zero, 0x44($s1)
/* 42EE88 802A9068 A6200048 */ sh $zero, 0x48($s1)
/* 42EE8C 802A906C A6200068 */ sh $zero, 0x68($s1)
/* 42EE90 802A9070 A2000081 */ sb $zero, 0x81($s0)
/* 42EE94 802A9074 A2000086 */ sb $zero, 0x86($s0)
/* 42EE98 802A9078 A622006C */ sh $v0, 0x6c($s1)
/* 42EE9C 802A907C 2402FFD0 */ addiu $v0, $zero, -0x30
/* 42EEA0 802A9080 A6220056 */ sh $v0, 0x56($s1)
/* 42EEA4 802A9084 24020050 */ addiu $v0, $zero, 0x50
/* 42EEA8 802A9088 0C050529 */ jal create_icon
/* 42EEAC 802A908C A6220058 */ sh $v0, 0x58($s1)
/* 42EEB0 802A9090 0040802D */ daddu $s0, $v0, $zero
/* 42EEB4 802A9094 86250056 */ lh $a1, 0x56($s1)
/* 42EEB8 802A9098 86260058 */ lh $a2, 0x58($s1)
/* 42EEBC 802A909C 0200202D */ daddu $a0, $s0, $zero
/* 42EEC0 802A90A0 0C051261 */ jal set_icon_render_pos
/* 42EEC4 802A90A4 AE300004 */ sw $s0, 4($s1)
/* 42EEC8 802A90A8 0200202D */ daddu $a0, $s0, $zero
/* 42EECC 802A90AC 0C051277 */ jal func_801449DC
/* 42EED0 802A90B0 0000282D */ daddu $a1, $zero, $zero
/* 42EED4 802A90B4 0200202D */ daddu $a0, $s0, $zero
/* 42EED8 802A90B8 0C051280 */ jal set_icon_flags
/* 42EEDC 802A90BC 24050082 */ addiu $a1, $zero, 0x82
/* 42EEE0 802A90C0 3C048011 */ lui $a0, %hi(D_80108AFC)
/* 42EEE4 802A90C4 24848AFC */ addiu $a0, $a0, %lo(D_80108AFC)
/* 42EEE8 802A90C8 0C050529 */ jal create_icon
/* 42EEEC 802A90CC 00000000 */ nop
/* 42EEF0 802A90D0 0040802D */ daddu $s0, $v0, $zero
/* 42EEF4 802A90D4 86250056 */ lh $a1, 0x56($s1)
/* 42EEF8 802A90D8 86260058 */ lh $a2, 0x58($s1)
/* 42EEFC 802A90DC 0200202D */ daddu $a0, $s0, $zero
/* 42EF00 802A90E0 AE300008 */ sw $s0, 8($s1)
/* 42EF04 802A90E4 0C051261 */ jal set_icon_render_pos
/* 42EF08 802A90E8 24C6001C */ addiu $a2, $a2, 0x1c
/* 42EF0C 802A90EC 0200202D */ daddu $a0, $s0, $zero
/* 42EF10 802A90F0 0C051277 */ jal func_801449DC
/* 42EF14 802A90F4 0000282D */ daddu $a1, $zero, $zero
/* 42EF18 802A90F8 0200202D */ daddu $a0, $s0, $zero
/* 42EF1C 802A90FC 0C051280 */ jal set_icon_flags
/* 42EF20 802A9100 24050082 */ addiu $a1, $zero, 0x82
/* 42EF24 802A9104 3C048029 */ lui $a0, %hi(D_80292974)
/* 42EF28 802A9108 24842974 */ addiu $a0, $a0, %lo(D_80292974)
/* 42EF2C 802A910C 0C050529 */ jal create_icon
/* 42EF30 802A9110 00000000 */ nop
/* 42EF34 802A9114 0040802D */ daddu $s0, $v0, $zero
/* 42EF38 802A9118 86250056 */ lh $a1, 0x56($s1)
/* 42EF3C 802A911C 86260058 */ lh $a2, 0x58($s1)
/* 42EF40 802A9120 0200202D */ daddu $a0, $s0, $zero
/* 42EF44 802A9124 AE30000C */ sw $s0, 0xc($s1)
/* 42EF48 802A9128 0C051261 */ jal set_icon_render_pos
/* 42EF4C 802A912C 24C6001C */ addiu $a2, $a2, 0x1c
/* 42EF50 802A9130 0200202D */ daddu $a0, $s0, $zero
/* 42EF54 802A9134 0C051277 */ jal func_801449DC
/* 42EF58 802A9138 0000282D */ daddu $a1, $zero, $zero
/* 42EF5C 802A913C 0200202D */ daddu $a0, $s0, $zero
/* 42EF60 802A9140 0C051280 */ jal set_icon_flags
/* 42EF64 802A9144 24050082 */ addiu $a1, $zero, 0x82
/* 42EF68 802A9148 080AA456 */ j .L802A9158
/* 42EF6C 802A914C 24020002 */ addiu $v0, $zero, 2
.L802A9150:
/* 42EF70 802A9150 A0600081 */ sb $zero, 0x81($v1)
/* 42EF74 802A9154 24020002 */ addiu $v0, $zero, 2
.L802A9158:
/* 42EF78 802A9158 8FBF0018 */ lw $ra, 0x18($sp)
/* 42EF7C 802A915C 8FB10014 */ lw $s1, 0x14($sp)
/* 42EF80 802A9160 8FB00010 */ lw $s0, 0x10($sp)
/* 42EF84 802A9164 03E00008 */ jr $ra
/* 42EF88 802A9168 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,64 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A916C_42EF8C
/* 42EF8C 802A916C 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42EF90 802A9170 AFB20018 */ sw $s2, 0x18($sp)
/* 42EF94 802A9174 0080902D */ daddu $s2, $a0, $zero
/* 42EF98 802A9178 AFB10014 */ sw $s1, 0x14($sp)
/* 42EF9C 802A917C 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42EFA0 802A9180 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42EFA4 802A9184 AFB3001C */ sw $s3, 0x1c($sp)
/* 42EFA8 802A9188 3C13800E */ lui $s3, %hi(gBattleStatus)
/* 42EFAC 802A918C 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus)
/* 42EFB0 802A9190 AFBF0020 */ sw $ra, 0x20($sp)
/* 42EFB4 802A9194 AFB00010 */ sw $s0, 0x10($sp)
/* 42EFB8 802A9198 82620083 */ lb $v0, 0x83($s3)
/* 42EFBC 802A919C 8E50000C */ lw $s0, 0xc($s2)
/* 42EFC0 802A91A0 10400023 */ beqz $v0, .L802A9230
/* 42EFC4 802A91A4 0260182D */ daddu $v1, $s3, $zero
/* 42EFC8 802A91A8 0C09A216 */ jal func_80268858
/* 42EFCC 802A91AC 00000000 */ nop
/* 42EFD0 802A91B0 8E050000 */ lw $a1, ($s0)
/* 42EFD4 802A91B4 26100004 */ addiu $s0, $s0, 4
/* 42EFD8 802A91B8 0C0B1EAF */ jal get_variable
/* 42EFDC 802A91BC 0240202D */ daddu $a0, $s2, $zero
/* 42EFE0 802A91C0 A622004E */ sh $v0, 0x4e($s1)
/* 42EFE4 802A91C4 8E050000 */ lw $a1, ($s0)
/* 42EFE8 802A91C8 26100004 */ addiu $s0, $s0, 4
/* 42EFEC 802A91CC 0C0B1EAF */ jal get_variable
/* 42EFF0 802A91D0 0240202D */ daddu $a0, $s2, $zero
/* 42EFF4 802A91D4 A6220052 */ sh $v0, 0x52($s1)
/* 42EFF8 802A91D8 8E050000 */ lw $a1, ($s0)
/* 42EFFC 802A91DC 0C0B1EAF */ jal get_variable
/* 42F000 802A91E0 0240202D */ daddu $a0, $s2, $zero
/* 42F004 802A91E4 00022400 */ sll $a0, $v0, 0x10
/* 42F008 802A91E8 00042403 */ sra $a0, $a0, 0x10
/* 42F00C 802A91EC 0C09A089 */ jal func_80268224
/* 42F010 802A91F0 A6220050 */ sh $v0, 0x50($s1)
/* 42F014 802A91F4 3C04FFFF */ lui $a0, 0xffff
/* 42F018 802A91F8 34847FFF */ ori $a0, $a0, 0x7fff
/* 42F01C 802A91FC A6220050 */ sh $v0, 0x50($s1)
/* 42F020 802A9200 A2200060 */ sb $zero, 0x60($s1)
/* 42F024 802A9204 A6200044 */ sh $zero, 0x44($s1)
/* 42F028 802A9208 A6200048 */ sh $zero, 0x48($s1)
/* 42F02C 802A920C 8E620000 */ lw $v0, ($s3)
/* 42F030 802A9210 2403000A */ addiu $v1, $zero, 0xa
/* 42F034 802A9214 A2600081 */ sb $zero, 0x81($s3)
/* 42F038 802A9218 A623004C */ sh $v1, 0x4c($s1)
/* 42F03C 802A921C 00441024 */ and $v0, $v0, $a0
/* 42F040 802A9220 0C09A446 */ jal func_80269118
/* 42F044 802A9224 AE620000 */ sw $v0, ($s3)
/* 42F048 802A9228 080AA48E */ j .L802A9238
/* 42F04C 802A922C 24020002 */ addiu $v0, $zero, 2
.L802A9230:
/* 42F050 802A9230 A0600081 */ sb $zero, 0x81($v1)
/* 42F054 802A9234 24020002 */ addiu $v0, $zero, 2
.L802A9238:
/* 42F058 802A9238 8FBF0020 */ lw $ra, 0x20($sp)
/* 42F05C 802A923C 8FB3001C */ lw $s3, 0x1c($sp)
/* 42F060 802A9240 8FB20018 */ lw $s2, 0x18($sp)
/* 42F064 802A9244 8FB10014 */ lw $s1, 0x14($sp)
/* 42F068 802A9248 8FB00010 */ lw $s0, 0x10($sp)
/* 42F06C 802A924C 03E00008 */ jr $ra
/* 42F070 802A9250 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,340 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A9254_42F074
/* 42F074 802A9254 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 42F078 802A9258 AFB10014 */ sw $s1, 0x14($sp)
/* 42F07C 802A925C 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42F080 802A9260 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42F084 802A9264 AFBF001C */ sw $ra, 0x1c($sp)
/* 42F088 802A9268 AFB20018 */ sw $s2, 0x18($sp)
/* 42F08C 802A926C AFB00010 */ sw $s0, 0x10($sp)
/* 42F090 802A9270 8623004C */ lh $v1, 0x4c($s1)
/* 42F094 802A9274 3C12800E */ lui $s2, %hi(gBattleStatus)
/* 42F098 802A9278 2652C070 */ addiu $s2, $s2, %lo(gBattleStatus)
/* 42F09C 802A927C 2C62000D */ sltiu $v0, $v1, 0xd
/* 42F0A0 802A9280 10400128 */ beqz $v0, .L802A9724
/* 42F0A4 802A9284 00031080 */ sll $v0, $v1, 2
/* 42F0A8 802A9288 3C01802B */ lui $at, %hi(D_802A9880)
/* 42F0AC 802A928C 00220821 */ addu $at, $at, $v0
/* 42F0B0 802A9290 8C229880 */ lw $v0, %lo(D_802A9880)($at)
/* 42F0B4 802A9294 00400008 */ jr $v0
/* 42F0B8 802A9298 00000000 */ nop
/* 42F0BC 802A929C 0C093EB1 */ jal set_popup_duration
/* 42F0C0 802A92A0 24040063 */ addiu $a0, $zero, 0x63
/* 42F0C4 802A92A4 8E300004 */ lw $s0, 4($s1)
/* 42F0C8 802A92A8 240500FF */ addiu $a1, $zero, 0xff
/* 42F0CC 802A92AC 0C0513AC */ jal icon_set_opacity
/* 42F0D0 802A92B0 0200202D */ daddu $a0, $s0, $zero
/* 42F0D4 802A92B4 82220061 */ lb $v0, 0x61($s1)
/* 42F0D8 802A92B8 10400003 */ beqz $v0, .L802A92C8
/* 42F0DC 802A92BC 0200202D */ daddu $a0, $s0, $zero
/* 42F0E0 802A92C0 0C05128B */ jal clear_icon_flags
/* 42F0E4 802A92C4 24050002 */ addiu $a1, $zero, 2
.L802A92C8:
/* 42F0E8 802A92C8 8E300008 */ lw $s0, 8($s1)
/* 42F0EC 802A92CC 240500FF */ addiu $a1, $zero, 0xff
/* 42F0F0 802A92D0 0C0513AC */ jal icon_set_opacity
/* 42F0F4 802A92D4 0200202D */ daddu $a0, $s0, $zero
/* 42F0F8 802A92D8 82220061 */ lb $v0, 0x61($s1)
/* 42F0FC 802A92DC 10400003 */ beqz $v0, .L802A92EC
/* 42F100 802A92E0 0200202D */ daddu $a0, $s0, $zero
/* 42F104 802A92E4 0C05128B */ jal clear_icon_flags
/* 42F108 802A92E8 24050002 */ addiu $a1, $zero, 2
.L802A92EC:
/* 42F10C 802A92EC 24020001 */ addiu $v0, $zero, 1
/* 42F110 802A92F0 080AA5C9 */ j .L802A9724
/* 42F114 802A92F4 A622004C */ sh $v0, 0x4c($s1)
/* 42F118 802A92F8 0C093EB1 */ jal set_popup_duration
/* 42F11C 802A92FC 24040063 */ addiu $a0, $zero, 0x63
/* 42F120 802A9300 8622006C */ lh $v0, 0x6c($s1)
/* 42F124 802A9304 9623006C */ lhu $v1, 0x6c($s1)
/* 42F128 802A9308 10400003 */ beqz $v0, .L802A9318
/* 42F12C 802A930C 2462FFFF */ addiu $v0, $v1, -1
/* 42F130 802A9310 080AA5C9 */ j .L802A9724
/* 42F134 802A9314 A622006C */ sh $v0, 0x6c($s1)
.L802A9318:
/* 42F138 802A9318 96220056 */ lhu $v0, 0x56($s1)
/* 42F13C 802A931C 24420014 */ addiu $v0, $v0, 0x14
/* 42F140 802A9320 A6220056 */ sh $v0, 0x56($s1)
/* 42F144 802A9324 00021400 */ sll $v0, $v0, 0x10
/* 42F148 802A9328 00021403 */ sra $v0, $v0, 0x10
/* 42F14C 802A932C 28420033 */ slti $v0, $v0, 0x33
/* 42F150 802A9330 14400002 */ bnez $v0, .L802A933C
/* 42F154 802A9334 24020032 */ addiu $v0, $zero, 0x32
/* 42F158 802A9338 A6220056 */ sh $v0, 0x56($s1)
.L802A933C:
/* 42F15C 802A933C 8E240004 */ lw $a0, 4($s1)
/* 42F160 802A9340 86250056 */ lh $a1, 0x56($s1)
/* 42F164 802A9344 0C051261 */ jal set_icon_render_pos
/* 42F168 802A9348 86260058 */ lh $a2, 0x58($s1)
/* 42F16C 802A934C 8E240008 */ lw $a0, 8($s1)
/* 42F170 802A9350 86260058 */ lh $a2, 0x58($s1)
/* 42F174 802A9354 86250056 */ lh $a1, 0x56($s1)
/* 42F178 802A9358 0C051261 */ jal set_icon_render_pos
/* 42F17C 802A935C 24C6001C */ addiu $a2, $a2, 0x1c
/* 42F180 802A9360 080AA5C9 */ j .L802A9724
/* 42F184 802A9364 00000000 */ nop
/* 42F188 802A9368 0C093EB1 */ jal set_popup_duration
/* 42F18C 802A936C 24040063 */ addiu $a0, $zero, 0x63
/* 42F190 802A9370 8622004E */ lh $v0, 0x4e($s1)
/* 42F194 802A9374 9623004E */ lhu $v1, 0x4e($s1)
/* 42F198 802A9378 10400003 */ beqz $v0, .L802A9388
/* 42F19C 802A937C 2462FFFF */ addiu $v0, $v1, -1
/* 42F1A0 802A9380 080AA5C9 */ j .L802A9724
/* 42F1A4 802A9384 A622004E */ sh $v0, 0x4e($s1)
.L802A9388:
/* 42F1A8 802A9388 8E240004 */ lw $a0, 4($s1)
/* 42F1AC 802A938C 3C058011 */ lui $a1, %hi(D_80108F30)
/* 42F1B0 802A9390 24A58F30 */ addiu $a1, $a1, %lo(D_80108F30)
/* 42F1B4 802A9394 0C0511FF */ jal set_menu_icon_script
/* 42F1B8 802A9398 00000000 */ nop
/* 42F1BC 802A939C 3C048000 */ lui $a0, 0x8000
/* 42F1C0 802A93A0 34840041 */ ori $a0, $a0, 0x41
/* 42F1C4 802A93A4 0000282D */ daddu $a1, $zero, $zero
/* 42F1C8 802A93A8 00A0302D */ daddu $a2, $a1, $zero
/* 42F1CC 802A93AC 96220052 */ lhu $v0, 0x52($s1)
/* 42F1D0 802A93B0 00A0382D */ daddu $a3, $a1, $zero
/* 42F1D4 802A93B4 A220005C */ sb $zero, 0x5c($s1)
/* 42F1D8 802A93B8 3C01802B */ lui $at, %hi(D_802A98C0)
/* 42F1DC 802A93BC AC2098C0 */ sw $zero, %lo(D_802A98C0)($at)
/* 42F1E0 802A93C0 0C0526AE */ jal _play_sound
/* 42F1E4 802A93C4 A6220054 */ sh $v0, 0x54($s1)
/* 42F1E8 802A93C8 2402000B */ addiu $v0, $zero, 0xb
/* 42F1EC 802A93CC A622004C */ sh $v0, 0x4c($s1)
/* 42F1F0 802A93D0 0C093EB1 */ jal set_popup_duration
/* 42F1F4 802A93D4 24040063 */ addiu $a0, $zero, 0x63
/* 42F1F8 802A93D8 86220068 */ lh $v0, 0x68($s1)
/* 42F1FC 802A93DC 14400057 */ bnez $v0, .L802A953C
/* 42F200 802A93E0 00000000 */ nop
/* 42F204 802A93E4 82220080 */ lb $v0, 0x80($s1)
/* 42F208 802A93E8 00021040 */ sll $v0, $v0, 1
/* 42F20C 802A93EC 02221021 */ addu $v0, $s1, $v0
/* 42F210 802A93F0 84430074 */ lh $v1, 0x74($v0)
/* 42F214 802A93F4 86220044 */ lh $v0, 0x44($s1)
/* 42F218 802A93F8 14600002 */ bnez $v1, .L802A9404
/* 42F21C 802A93FC 0043001A */ div $zero, $v0, $v1
/* 42F220 802A9400 0007000D */ break 7
.L802A9404:
/* 42F224 802A9404 2401FFFF */ addiu $at, $zero, -1
/* 42F228 802A9408 14610004 */ bne $v1, $at, .L802A941C
/* 42F22C 802A940C 3C018000 */ lui $at, 0x8000
/* 42F230 802A9410 14410002 */ bne $v0, $at, .L802A941C
/* 42F234 802A9414 00000000 */ nop
/* 42F238 802A9418 0006000D */ break 6
.L802A941C:
/* 42F23C 802A941C 00001012 */ mflo $v0
/* 42F240 802A9420 3C036666 */ lui $v1, 0x6666
/* 42F244 802A9424 34636667 */ ori $v1, $v1, 0x6667
/* 42F248 802A9428 00430018 */ mult $v0, $v1
/* 42F24C 802A942C 000217C3 */ sra $v0, $v0, 0x1f
/* 42F250 802A9430 00001810 */ mfhi $v1
/* 42F254 802A9434 000318C3 */ sra $v1, $v1, 3
/* 42F258 802A9438 00621823 */ subu $v1, $v1, $v0
/* 42F25C 802A943C 00031880 */ sll $v1, $v1, 2
/* 42F260 802A9440 96220044 */ lhu $v0, 0x44($s1)
/* 42F264 802A9444 3C01802B */ lui $at, %hi(D_802A9862)
/* 42F268 802A9448 00230821 */ addu $at, $at, $v1
/* 42F26C 802A944C 94239862 */ lhu $v1, %lo(D_802A9862)($at)
/* 42F270 802A9450 00431023 */ subu $v0, $v0, $v1
/* 42F274 802A9454 A6220044 */ sh $v0, 0x44($s1)
/* 42F278 802A9458 00021400 */ sll $v0, $v0, 0x10
/* 42F27C 802A945C 04420001 */ bltzl $v0, .L802A9464
/* 42F280 802A9460 A6200044 */ sh $zero, 0x44($s1)
.L802A9464:
/* 42F284 802A9464 86220068 */ lh $v0, 0x68($s1)
/* 42F288 802A9468 14400034 */ bnez $v0, .L802A953C
/* 42F28C 802A946C 3C030004 */ lui $v1, 4
/* 42F290 802A9470 8E420214 */ lw $v0, 0x214($s2)
/* 42F294 802A9474 00431024 */ and $v0, $v0, $v1
/* 42F298 802A9478 10400016 */ beqz $v0, .L802A94D4
/* 42F29C 802A947C 3C0451EB */ lui $a0, 0x51eb
/* 42F2A0 802A9480 86220050 */ lh $v0, 0x50($s1)
/* 42F2A4 802A9484 8E430434 */ lw $v1, 0x434($s2)
/* 42F2A8 802A9488 00021080 */ sll $v0, $v0, 2
/* 42F2AC 802A948C 00431021 */ addu $v0, $v0, $v1
/* 42F2B0 802A9490 8C430000 */ lw $v1, ($v0)
/* 42F2B4 802A9494 3484851F */ ori $a0, $a0, 0x851f
/* 42F2B8 802A9498 00031080 */ sll $v0, $v1, 2
/* 42F2BC 802A949C 00431021 */ addu $v0, $v0, $v1
/* 42F2C0 802A94A0 000210C0 */ sll $v0, $v0, 3
/* 42F2C4 802A94A4 00431023 */ subu $v0, $v0, $v1
/* 42F2C8 802A94A8 00021100 */ sll $v0, $v0, 4
/* 42F2CC 802A94AC 00431021 */ addu $v0, $v0, $v1
/* 42F2D0 802A94B0 00021040 */ sll $v0, $v0, 1
/* 42F2D4 802A94B4 00440018 */ mult $v0, $a0
/* 42F2D8 802A94B8 000217C3 */ sra $v0, $v0, 0x1f
/* 42F2DC 802A94BC 96230044 */ lhu $v1, 0x44($s1)
/* 42F2E0 802A94C0 00004010 */ mfhi $t0
/* 42F2E4 802A94C4 00082143 */ sra $a0, $t0, 5
/* 42F2E8 802A94C8 00822023 */ subu $a0, $a0, $v0
/* 42F2EC 802A94CC 00641821 */ addu $v1, $v1, $a0
/* 42F2F0 802A94D0 A6230044 */ sh $v1, 0x44($s1)
.L802A94D4:
/* 42F2F4 802A94D4 8E420214 */ lw $v0, 0x214($s2)
/* 42F2F8 802A94D8 3C030008 */ lui $v1, 8
/* 42F2FC 802A94DC 00431024 */ and $v0, $v0, $v1
/* 42F300 802A94E0 10400016 */ beqz $v0, .L802A953C
/* 42F304 802A94E4 3C0451EB */ lui $a0, 0x51eb
/* 42F308 802A94E8 86220050 */ lh $v0, 0x50($s1)
/* 42F30C 802A94EC 8E430434 */ lw $v1, 0x434($s2)
/* 42F310 802A94F0 00021080 */ sll $v0, $v0, 2
/* 42F314 802A94F4 00431021 */ addu $v0, $v0, $v1
/* 42F318 802A94F8 8C430000 */ lw $v1, ($v0)
/* 42F31C 802A94FC 3484851F */ ori $a0, $a0, 0x851f
/* 42F320 802A9500 00031080 */ sll $v0, $v1, 2
/* 42F324 802A9504 00431021 */ addu $v0, $v0, $v1
/* 42F328 802A9508 000210C0 */ sll $v0, $v0, 3
/* 42F32C 802A950C 00431023 */ subu $v0, $v0, $v1
/* 42F330 802A9510 00021100 */ sll $v0, $v0, 4
/* 42F334 802A9514 00431021 */ addu $v0, $v0, $v1
/* 42F338 802A9518 00021040 */ sll $v0, $v0, 1
/* 42F33C 802A951C 00440018 */ mult $v0, $a0
/* 42F340 802A9520 000217C3 */ sra $v0, $v0, 0x1f
/* 42F344 802A9524 96230044 */ lhu $v1, 0x44($s1)
/* 42F348 802A9528 00004010 */ mfhi $t0
/* 42F34C 802A952C 00082143 */ sra $a0, $t0, 5
/* 42F350 802A9530 00822023 */ subu $a0, $a0, $v0
/* 42F354 802A9534 00641823 */ subu $v1, $v1, $a0
/* 42F358 802A9538 A6230044 */ sh $v1, 0x44($s1)
.L802A953C:
/* 42F35C 802A953C 86220044 */ lh $v0, 0x44($s1)
/* 42F360 802A9540 04420001 */ bltzl $v0, .L802A9548
/* 42F364 802A9544 A6200044 */ sh $zero, 0x44($s1)
.L802A9548:
/* 42F368 802A9548 86220044 */ lh $v0, 0x44($s1)
/* 42F36C 802A954C 28422711 */ slti $v0, $v0, 0x2711
/* 42F370 802A9550 1440000E */ bnez $v0, .L802A958C
/* 42F374 802A9554 24022710 */ addiu $v0, $zero, 0x2710
/* 42F378 802A9558 8E30000C */ lw $s0, 0xc($s1)
/* 42F37C 802A955C 86250056 */ lh $a1, 0x56($s1)
/* 42F380 802A9560 86260058 */ lh $a2, 0x58($s1)
/* 42F384 802A9564 A6220044 */ sh $v0, 0x44($s1)
/* 42F388 802A9568 24020001 */ addiu $v0, $zero, 1
/* 42F38C 802A956C A6220068 */ sh $v0, 0x68($s1)
/* 42F390 802A9570 0200202D */ daddu $a0, $s0, $zero
/* 42F394 802A9574 24A50032 */ addiu $a1, $a1, 0x32
/* 42F398 802A9578 0C051261 */ jal set_icon_render_pos
/* 42F39C 802A957C 24C6001C */ addiu $a2, $a2, 0x1c
/* 42F3A0 802A9580 0200202D */ daddu $a0, $s0, $zero
/* 42F3A4 802A9584 0C05128B */ jal clear_icon_flags
/* 42F3A8 802A9588 24050002 */ addiu $a1, $zero, 2
.L802A958C:
/* 42F3AC 802A958C 3C03802B */ lui $v1, %hi(D_802A98C0)
/* 42F3B0 802A9590 246398C0 */ addiu $v1, $v1, %lo(D_802A98C0)
/* 42F3B4 802A9594 8C620000 */ lw $v0, ($v1)
/* 42F3B8 802A9598 3C050004 */ lui $a1, 4
/* 42F3BC 802A959C 00451024 */ and $v0, $v0, $a1
/* 42F3C0 802A95A0 10400002 */ beqz $v0, .L802A95AC
/* 42F3C4 802A95A4 24020001 */ addiu $v0, $zero, 1
/* 42F3C8 802A95A8 A222005C */ sb $v0, 0x5c($s1)
.L802A95AC:
/* 42F3CC 802A95AC 8C620000 */ lw $v0, ($v1)
/* 42F3D0 802A95B0 3C040008 */ lui $a0, 8
/* 42F3D4 802A95B4 00441024 */ and $v0, $v0, $a0
/* 42F3D8 802A95B8 10400002 */ beqz $v0, .L802A95C4
/* 42F3DC 802A95BC 2402FFFF */ addiu $v0, $zero, -1
/* 42F3E0 802A95C0 A222005C */ sb $v0, 0x5c($s1)
.L802A95C4:
/* 42F3E4 802A95C4 8C620000 */ lw $v0, ($v1)
/* 42F3E8 802A95C8 00451024 */ and $v0, $v0, $a1
/* 42F3EC 802A95CC 1440000A */ bnez $v0, .L802A95F8
/* 42F3F0 802A95D0 3C1051EB */ lui $s0, 0x51eb
/* 42F3F4 802A95D4 8E420210 */ lw $v0, 0x210($s2)
/* 42F3F8 802A95D8 00441024 */ and $v0, $v0, $a0
/* 42F3FC 802A95DC 14400006 */ bnez $v0, .L802A95F8
/* 42F400 802A95E0 24020001 */ addiu $v0, $zero, 1
/* 42F404 802A95E4 8223005C */ lb $v1, 0x5c($s1)
/* 42F408 802A95E8 14620003 */ bne $v1, $v0, .L802A95F8
/* 42F40C 802A95EC 24020002 */ addiu $v0, $zero, 2
/* 42F410 802A95F0 A222005C */ sb $v0, 0x5c($s1)
/* 42F414 802A95F4 3C1051EB */ lui $s0, 0x51eb
.L802A95F8:
/* 42F418 802A95F8 96230044 */ lhu $v1, 0x44($s1)
/* 42F41C 802A95FC 3610851F */ ori $s0, $s0, 0x851f
/* 42F420 802A9600 00031C00 */ sll $v1, $v1, 0x10
/* 42F424 802A9604 00031403 */ sra $v0, $v1, 0x10
/* 42F428 802A9608 00500018 */ mult $v0, $s0
/* 42F42C 802A960C 3C048000 */ lui $a0, 0x8000
/* 42F430 802A9610 34840041 */ ori $a0, $a0, 0x41
/* 42F434 802A9614 00031FC3 */ sra $v1, $v1, 0x1f
/* 42F438 802A9618 00004010 */ mfhi $t0
/* 42F43C 802A961C 00081143 */ sra $v0, $t0, 5
/* 42F440 802A9620 00431023 */ subu $v0, $v0, $v1
/* 42F444 802A9624 8E430210 */ lw $v1, 0x210($s2)
/* 42F448 802A9628 0000282D */ daddu $a1, $zero, $zero
/* 42F44C 802A962C A2420081 */ sb $v0, 0x81($s2)
/* 42F450 802A9630 9227005C */ lbu $a3, 0x5c($s1)
/* 42F454 802A9634 82420081 */ lb $v0, 0x81($s2)
/* 42F458 802A9638 00A0302D */ daddu $a2, $a1, $zero
/* 42F45C 802A963C 3C01802B */ lui $at, %hi(D_802A98C0)
/* 42F460 802A9640 AC2398C0 */ sw $v1, %lo(D_802A98C0)($at)
/* 42F464 802A9644 A2470084 */ sb $a3, 0x84($s2)
/* 42F468 802A9648 00023840 */ sll $a3, $v0, 1
/* 42F46C 802A964C 00E23821 */ addu $a3, $a3, $v0
/* 42F470 802A9650 0C0526F9 */ jal func_80149BE4
/* 42F474 802A9654 00073880 */ sll $a3, $a3, 2
/* 42F478 802A9658 86220054 */ lh $v0, 0x54($s1)
/* 42F47C 802A965C 96230054 */ lhu $v1, 0x54($s1)
/* 42F480 802A9660 1440002C */ bnez $v0, .L802A9714
/* 42F484 802A9664 2462FFFF */ addiu $v0, $v1, -1
/* 42F488 802A9668 96220044 */ lhu $v0, 0x44($s1)
/* 42F48C 802A966C 00021C00 */ sll $v1, $v0, 0x10
/* 42F490 802A9670 00031403 */ sra $v0, $v1, 0x10
/* 42F494 802A9674 14400003 */ bnez $v0, .L802A9684
/* 42F498 802A9678 00500018 */ mult $v0, $s0
/* 42F49C 802A967C 080AA5A5 */ j .L802A9694
/* 42F4A0 802A9680 2402FFFF */ addiu $v0, $zero, -1
.L802A9684:
/* 42F4A4 802A9684 00031FC3 */ sra $v1, $v1, 0x1f
/* 42F4A8 802A9688 00004010 */ mfhi $t0
/* 42F4AC 802A968C 00081143 */ sra $v0, $t0, 5
/* 42F4B0 802A9690 00431023 */ subu $v0, $v0, $v1
.L802A9694:
/* 42F4B4 802A9694 A2420081 */ sb $v0, 0x81($s2)
/* 42F4B8 802A9698 82220080 */ lb $v0, 0x80($s1)
/* 42F4BC 802A969C 2442FFFF */ addiu $v0, $v0, -1
/* 42F4C0 802A96A0 00021040 */ sll $v0, $v0, 1
/* 42F4C4 802A96A4 02221021 */ addu $v0, $s1, $v0
/* 42F4C8 802A96A8 84430074 */ lh $v1, 0x74($v0)
/* 42F4CC 802A96AC 82420081 */ lb $v0, 0x81($s2)
/* 42F4D0 802A96B0 0062102A */ slt $v0, $v1, $v0
/* 42F4D4 802A96B4 14400002 */ bnez $v0, .L802A96C0
/* 42F4D8 802A96B8 24020001 */ addiu $v0, $zero, 1
/* 42F4DC 802A96BC 2402FFFE */ addiu $v0, $zero, -2
.L802A96C0:
/* 42F4E0 802A96C0 A2420086 */ sb $v0, 0x86($s2)
/* 42F4E4 802A96C4 82430081 */ lb $v1, 0x81($s2)
/* 42F4E8 802A96C8 24020064 */ addiu $v0, $zero, 0x64
/* 42F4EC 802A96CC 14620003 */ bne $v1, $v0, .L802A96DC
/* 42F4F0 802A96D0 00000000 */ nop
/* 42F4F4 802A96D4 0C09A458 */ jal func_80269160
/* 42F4F8 802A96D8 00000000 */ nop
.L802A96DC:
/* 42F4FC 802A96DC 0C093EB1 */ jal set_popup_duration
/* 42F500 802A96E0 0000202D */ daddu $a0, $zero, $zero
/* 42F504 802A96E4 3C048000 */ lui $a0, 0x8000
/* 42F508 802A96E8 0C05271B */ jal stop_sound
/* 42F50C 802A96EC 34840041 */ ori $a0, $a0, 0x41
/* 42F510 802A96F0 24020005 */ addiu $v0, $zero, 5
/* 42F514 802A96F4 A6220054 */ sh $v0, 0x54($s1)
/* 42F518 802A96F8 2402000C */ addiu $v0, $zero, 0xc
/* 42F51C 802A96FC 080AA5C9 */ j .L802A9724
/* 42F520 802A9700 A622004C */ sh $v0, 0x4c($s1)
/* 42F524 802A9704 86220054 */ lh $v0, 0x54($s1)
/* 42F528 802A9708 96230054 */ lhu $v1, 0x54($s1)
/* 42F52C 802A970C 10400003 */ beqz $v0, .L802A971C
/* 42F530 802A9710 2462FFFF */ addiu $v0, $v1, -1
.L802A9714:
/* 42F534 802A9714 080AA5C9 */ j .L802A9724
/* 42F538 802A9718 A6220054 */ sh $v0, 0x54($s1)
.L802A971C:
/* 42F53C 802A971C 0C09A327 */ jal func_80268C9C
/* 42F540 802A9720 00000000 */ nop
.L802A9724:
/* 42F544 802A9724 8FBF001C */ lw $ra, 0x1c($sp)
/* 42F548 802A9728 8FB20018 */ lw $s2, 0x18($sp)
/* 42F54C 802A972C 8FB10014 */ lw $s1, 0x14($sp)
/* 42F550 802A9730 8FB00010 */ lw $s0, 0x10($sp)
/* 42F554 802A9734 03E00008 */ jr $ra
/* 42F558 802A9738 27BD0020 */ addiu $sp, $sp, 0x20

View File

@ -0,0 +1,62 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A973C_42F55C
/* 42F55C 802A973C 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 42F560 802A9740 AFB1001C */ sw $s1, 0x1c($sp)
/* 42F564 802A9744 3C11802A */ lui $s1, %hi(D_8029FBE0)
/* 42F568 802A9748 2631FBE0 */ addiu $s1, $s1, %lo(D_8029FBE0)
/* 42F56C 802A974C AFBF0020 */ sw $ra, 0x20($sp)
/* 42F570 802A9750 AFB00018 */ sw $s0, 0x18($sp)
/* 42F574 802A9754 0C0511EA */ jal draw_icon_0
/* 42F578 802A9758 8E240004 */ lw $a0, 4($s1)
/* 42F57C 802A975C 8E300008 */ lw $s0, 8($s1)
/* 42F580 802A9760 0C0511EA */ jal draw_icon_0
/* 42F584 802A9764 0200202D */ daddu $a0, $s0, $zero
/* 42F588 802A9768 0200202D */ daddu $a0, $s0, $zero
/* 42F58C 802A976C 27A50010 */ addiu $a1, $sp, 0x10
/* 42F590 802A9770 0C05126B */ jal get_icon_render_pos
/* 42F594 802A9774 27A60014 */ addiu $a2, $sp, 0x14
/* 42F598 802A9778 86220068 */ lh $v0, 0x68($s1)
/* 42F59C 802A977C 14400011 */ bnez $v0, .L802A97C4
/* 42F5A0 802A9780 3C0451EB */ lui $a0, 0x51eb
/* 42F5A4 802A9784 96230044 */ lhu $v1, 0x44($s1)
/* 42F5A8 802A9788 3484851F */ ori $a0, $a0, 0x851f
/* 42F5AC 802A978C 00031C00 */ sll $v1, $v1, 0x10
/* 42F5B0 802A9790 00031403 */ sra $v0, $v1, 0x10
/* 42F5B4 802A9794 00440018 */ mult $v0, $a0
/* 42F5B8 802A9798 8FA50014 */ lw $a1, 0x14($sp)
/* 42F5BC 802A979C 00031FC3 */ sra $v1, $v1, 0x1f
/* 42F5C0 802A97A0 8FA40010 */ lw $a0, 0x10($sp)
/* 42F5C4 802A97A4 00003810 */ mfhi $a3
/* 42F5C8 802A97A8 00073143 */ sra $a2, $a3, 5
/* 42F5CC 802A97AC 00C33023 */ subu $a2, $a2, $v1
/* 42F5D0 802A97B0 00063400 */ sll $a2, $a2, 0x10
/* 42F5D4 802A97B4 0C09A1DC */ jal func_80268770
/* 42F5D8 802A97B8 00063403 */ sra $a2, $a2, 0x10
/* 42F5DC 802A97BC 080AA5FF */ j .L802A97FC
/* 42F5E0 802A97C0 00000000 */ nop
.L802A97C4:
/* 42F5E4 802A97C4 96230044 */ lhu $v1, 0x44($s1)
/* 42F5E8 802A97C8 3484851F */ ori $a0, $a0, 0x851f
/* 42F5EC 802A97CC 00031C00 */ sll $v1, $v1, 0x10
/* 42F5F0 802A97D0 00031403 */ sra $v0, $v1, 0x10
/* 42F5F4 802A97D4 00440018 */ mult $v0, $a0
/* 42F5F8 802A97D8 8FA50014 */ lw $a1, 0x14($sp)
/* 42F5FC 802A97DC 00031FC3 */ sra $v1, $v1, 0x1f
/* 42F600 802A97E0 8FA40010 */ lw $a0, 0x10($sp)
/* 42F604 802A97E4 00003810 */ mfhi $a3
/* 42F608 802A97E8 00073143 */ sra $a2, $a3, 5
/* 42F60C 802A97EC 00C33023 */ subu $a2, $a2, $v1
/* 42F610 802A97F0 00063400 */ sll $a2, $a2, 0x10
/* 42F614 802A97F4 0C09A203 */ jal func_8026880C
/* 42F618 802A97F8 00063403 */ sra $a2, $a2, 0x10
.L802A97FC:
/* 42F61C 802A97FC 8E24000C */ lw $a0, 0xc($s1)
/* 42F620 802A9800 0C0511EA */ jal draw_icon_0
/* 42F624 802A9804 00000000 */ nop
/* 42F628 802A9808 8FBF0020 */ lw $ra, 0x20($sp)
/* 42F62C 802A980C 8FB1001C */ lw $s1, 0x1c($sp)
/* 42F630 802A9810 8FB00018 */ lw $s0, 0x18($sp)
/* 42F634 802A9814 03E00008 */ jr $ra
/* 42F638 802A9818 27BD0028 */ addiu $sp, $sp, 0x28

View File

@ -0,0 +1,21 @@
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A981C_42F63C
/* 42F63C 802A981C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 42F640 802A9820 AFB00010 */ sw $s0, 0x10($sp)
/* 42F644 802A9824 3C10802A */ lui $s0, %hi(D_8029FBE0)
/* 42F648 802A9828 2610FBE0 */ addiu $s0, $s0, %lo(D_8029FBE0)
/* 42F64C 802A982C AFBF0014 */ sw $ra, 0x14($sp)
/* 42F650 802A9830 0C05123D */ jal free_icon
/* 42F654 802A9834 8E040004 */ lw $a0, 4($s0)
/* 42F658 802A9838 0C05123D */ jal free_icon
/* 42F65C 802A983C 8E040008 */ lw $a0, 8($s0)
/* 42F660 802A9840 0C05123D */ jal free_icon
/* 42F664 802A9844 8E04000C */ lw $a0, 0xc($s0)
/* 42F668 802A9848 8FBF0014 */ lw $ra, 0x14($sp)
/* 42F66C 802A984C 8FB00010 */ lw $s0, 0x10($sp)
/* 42F670 802A9850 03E00008 */ jr $ra
/* 42F674 802A9854 27BD0018 */ addiu $sp, $sp, 0x18
/* 42F678 802A9858 00000000 */ nop
/* 42F67C 802A985C 00000000 */ nop

Some files were not shown because too many files have changed in this diff Show More