.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel func_8024FB3C /* 17E41C 8024FB3C 27BDFFE0 */ addiu $sp, $sp, -0x20 /* 17E420 8024FB40 AFB10014 */ sw $s1, 0x14($sp) /* 17E424 8024FB44 0080882D */ daddu $s1, $a0, $zero /* 17E428 8024FB48 AFB20018 */ sw $s2, 0x18($sp) /* 17E42C 8024FB4C AFBF001C */ sw $ra, 0x1c($sp) /* 17E430 8024FB50 AFB00010 */ sw $s0, 0x10($sp) /* 17E434 8024FB54 86230012 */ lh $v1, 0x12($s1) /* 17E438 8024FB58 3C04800E */ lui $a0, %hi(gBattleStatus) /* 17E43C 8024FB5C 2484C070 */ addiu $a0, $a0, %lo(gBattleStatus) /* 17E440 8024FB60 2C620055 */ sltiu $v0, $v1, 0x55 /* 17E444 8024FB64 1040031D */ beqz $v0, .L802507DC /* 17E448 8024FB68 0000902D */ daddu $s2, $zero, $zero /* 17E44C 8024FB6C 00031080 */ sll $v0, $v1, 2 /* 17E450 8024FB70 3C01802A */ lui $at, %hi(jtbl_8029CD98_1CB678) /* 17E454 8024FB74 00220821 */ addu $at, $at, $v0 /* 17E458 8024FB78 8C22CD98 */ lw $v0, %lo(jtbl_8029CD98_1CB678)($at) /* 17E45C 8024FB7C 00400008 */ jr $v0 /* 17E460 8024FB80 00000000 */ nop glabel L8024FB84_17E464 /* 17E464 8024FB84 82230016 */ lb $v1, 0x16($s1) /* 17E468 8024FB88 2C620005 */ sltiu $v0, $v1, 5 /* 17E46C 8024FB8C 10400313 */ beqz $v0, .L802507DC /* 17E470 8024FB90 00031080 */ sll $v0, $v1, 2 /* 17E474 8024FB94 3C01802A */ lui $at, %hi(jtbl_8029CEF0_1CB7D0) /* 17E478 8024FB98 00220821 */ addu $at, $at, $v0 /* 17E47C 8024FB9C 8C22CEF0 */ lw $v0, %lo(jtbl_8029CEF0_1CB7D0)($at) /* 17E480 8024FBA0 00400008 */ jr $v0 /* 17E484 8024FBA4 00000000 */ nop glabel L8024FBA8_17E488 /* 17E488 8024FBA8 8C820214 */ lw $v0, 0x214($a0) /* 17E48C 8024FBAC 3042C000 */ andi $v0, $v0, 0xc000 /* 17E490 8024FBB0 544002B8 */ bnel $v0, $zero, .L80250694 /* 17E494 8024FBB4 A6200014 */ sh $zero, 0x14($s1) /* 17E498 8024FBB8 080941A5 */ j .L80250694 /* 17E49C 8024FBBC 00000000 */ nop glabel L8024FBC0_17E4A0 /* 17E4A0 8024FBC0 3C03802A */ lui $v1, %hi(D_8029F64A) /* 17E4A4 8024FBC4 2463F64A */ addiu $v1, $v1, %lo(D_8029F64A) /* 17E4A8 8024FBC8 80840083 */ lb $a0, 0x83($a0) /* 17E4AC 8024FBCC 24020001 */ addiu $v0, $zero, 1 /* 17E4B0 8024FBD0 14800004 */ bnez $a0, .L8024FBE4 /* 17E4B4 8024FBD4 A4620000 */ sh $v0, ($v1) /* 17E4B8 8024FBD8 A4600000 */ sh $zero, ($v1) glabel L8024FBDC_17E4BC /* 17E4BC 8024FBDC 080941F7 */ j .L802507DC /* 17E4C0 8024FBE0 24120001 */ addiu $s2, $zero, 1 .L8024FBE4: /* 17E4C4 8024FBE4 82230016 */ lb $v1, 0x16($s1) /* 17E4C8 8024FBE8 24020001 */ addiu $v0, $zero, 1 /* 17E4CC 8024FBEC 1062016A */ beq $v1, $v0, .L80250198 /* 17E4D0 8024FBF0 28620002 */ slti $v0, $v1, 2 /* 17E4D4 8024FBF4 50400005 */ beql $v0, $zero, .L8024FC0C /* 17E4D8 8024FBF8 24020002 */ addiu $v0, $zero, 2 /* 17E4DC 8024FBFC 10600007 */ beqz $v1, .L8024FC1C /* 17E4E0 8024FC00 3C04FFFE */ lui $a0, 0xfffe /* 17E4E4 8024FC04 080941F7 */ j .L802507DC /* 17E4E8 8024FC08 00000000 */ nop .L8024FC0C: /* 17E4EC 8024FC0C 10620231 */ beq $v1, $v0, .L802504D4 /* 17E4F0 8024FC10 00000000 */ nop /* 17E4F4 8024FC14 080941F7 */ j .L802507DC /* 17E4F8 8024FC18 00000000 */ nop .L8024FC1C: /* 17E4FC 8024FC1C 3C03800E */ lui $v1, %hi(gBattleStatus) /* 17E500 8024FC20 2463C070 */ addiu $v1, $v1, %lo(gBattleStatus) /* 17E504 8024FC24 8C620000 */ lw $v0, ($v1) /* 17E508 8024FC28 3484FFFF */ ori $a0, $a0, 0xffff /* 17E50C 8024FC2C 34424000 */ ori $v0, $v0, 0x4000 /* 17E510 8024FC30 00441024 */ and $v0, $v0, $a0 /* 17E514 8024FC34 AC620000 */ sw $v0, ($v1) /* 17E518 8024FC38 96220012 */ lhu $v0, 0x12($s1) /* 17E51C 8024FC3C 2442FFD2 */ addiu $v0, $v0, -0x2e /* 17E520 8024FC40 00021400 */ sll $v0, $v0, 0x10 /* 17E524 8024FC44 00021C03 */ sra $v1, $v0, 0x10 /* 17E528 8024FC48 2C620015 */ sltiu $v0, $v1, 0x15 /* 17E52C 8024FC4C 104002D6 */ beqz $v0, .L802507A8 /* 17E530 8024FC50 00031080 */ sll $v0, $v1, 2 /* 17E534 8024FC54 3C01802A */ lui $at, %hi(jtbl_8029CF08_1CB7E8) /* 17E538 8024FC58 00220821 */ addu $at, $at, $v0 /* 17E53C 8024FC5C 8C22CF08 */ lw $v0, %lo(jtbl_8029CF08_1CB7E8)($at) /* 17E540 8024FC60 00400008 */ jr $v0 /* 17E544 8024FC64 00000000 */ nop glabel L8024FC68_17E548 /* 17E548 8024FC68 3C048011 */ lui $a0, %hi(D_80108E1C) /* 17E54C 8024FC6C 24848E1C */ addiu $a0, $a0, %lo(D_80108E1C) /* 17E550 8024FC70 08094060 */ j .L80250180 /* 17E554 8024FC74 00000000 */ nop glabel L8024FC78_17E558 /* 17E558 8024FC78 3C048011 */ lui $a0, %hi(D_80108E1C) /* 17E55C 8024FC7C 24848E1C */ addiu $a0, $a0, %lo(D_80108E1C) /* 17E560 8024FC80 0C050529 */ jal create_icon /* 17E564 8024FC84 00000000 */ nop /* 17E568 8024FC88 00022400 */ sll $a0, $v0, 0x10 /* 17E56C 8024FC8C 00042403 */ sra $a0, $a0, 0x10 /* 17E570 8024FC90 34058080 */ ori $a1, $zero, 0x8080 /* 17E574 8024FC94 3C10802A */ lui $s0, %hi(D_8029F642) /* 17E578 8024FC98 2610F642 */ addiu $s0, $s0, %lo(D_8029F642) /* 17E57C 8024FC9C 0C051280 */ jal set_icon_flags /* 17E580 8024FCA0 A6020000 */ sh $v0, ($s0) /* 17E584 8024FCA4 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E588 8024FCA8 86040000 */ lh $a0, ($s0) /* 17E58C 8024FCAC 0C051261 */ jal set_icon_render_pos /* 17E590 8024FCB0 00A0302D */ daddu $a2, $a1, $zero /* 17E594 8024FCB4 3C048029 */ lui $a0, %hi(D_80292788) /* 17E598 8024FCB8 24842788 */ addiu $a0, $a0, %lo(D_80292788) /* 17E59C 8024FCBC 0C050529 */ jal create_icon /* 17E5A0 8024FCC0 00000000 */ nop /* 17E5A4 8024FCC4 00022400 */ sll $a0, $v0, 0x10 /* 17E5A8 8024FCC8 00042403 */ sra $a0, $a0, 0x10 /* 17E5AC 8024FCCC 3C10802A */ lui $s0, %hi(D_8029F644) /* 17E5B0 8024FCD0 2610F644 */ addiu $s0, $s0, %lo(D_8029F644) /* 17E5B4 8024FCD4 080941E3 */ j .L8025078C /* 17E5B8 8024FCD8 24050080 */ addiu $a1, $zero, 0x80 glabel L8024FCDC_17E5BC /* 17E5BC 8024FCDC 3C048011 */ lui $a0, %hi(D_80108E1C) /* 17E5C0 8024FCE0 24848E1C */ addiu $a0, $a0, %lo(D_80108E1C) /* 17E5C4 8024FCE4 0C050529 */ jal create_icon /* 17E5C8 8024FCE8 00000000 */ nop /* 17E5CC 8024FCEC 00022400 */ sll $a0, $v0, 0x10 /* 17E5D0 8024FCF0 00042403 */ sra $a0, $a0, 0x10 /* 17E5D4 8024FCF4 34058080 */ ori $a1, $zero, 0x8080 /* 17E5D8 8024FCF8 3C10802A */ lui $s0, %hi(D_8029F642) /* 17E5DC 8024FCFC 2610F642 */ addiu $s0, $s0, %lo(D_8029F642) /* 17E5E0 8024FD00 0C051280 */ jal set_icon_flags /* 17E5E4 8024FD04 A6020000 */ sh $v0, ($s0) /* 17E5E8 8024FD08 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E5EC 8024FD0C 86040000 */ lh $a0, ($s0) /* 17E5F0 8024FD10 0C051261 */ jal set_icon_render_pos /* 17E5F4 8024FD14 00A0302D */ daddu $a2, $a1, $zero /* 17E5F8 8024FD18 3C048029 */ lui $a0, %hi(D_802936D4) /* 17E5FC 8024FD1C 248436D4 */ addiu $a0, $a0, %lo(D_802936D4) /* 17E600 8024FD20 0C050529 */ jal create_icon /* 17E604 8024FD24 00000000 */ nop /* 17E608 8024FD28 00022400 */ sll $a0, $v0, 0x10 /* 17E60C 8024FD2C 00042403 */ sra $a0, $a0, 0x10 /* 17E610 8024FD30 3C10802A */ lui $s0, %hi(D_8029F644) /* 17E614 8024FD34 2610F644 */ addiu $s0, $s0, %lo(D_8029F644) /* 17E618 8024FD38 08094044 */ j .L80250110 /* 17E61C 8024FD3C 34058080 */ ori $a1, $zero, 0x8080 glabel L8024FD40_17E620 /* 17E620 8024FD40 3C048029 */ lui $a0, %hi(D_8029259C) /* 17E624 8024FD44 2484259C */ addiu $a0, $a0, %lo(D_8029259C) /* 17E628 8024FD48 0C050529 */ jal create_icon /* 17E62C 8024FD4C 00000000 */ nop /* 17E630 8024FD50 00022400 */ sll $a0, $v0, 0x10 /* 17E634 8024FD54 00042403 */ sra $a0, $a0, 0x10 /* 17E638 8024FD58 34058080 */ ori $a1, $zero, 0x8080 /* 17E63C 8024FD5C 3C10802A */ lui $s0, %hi(D_8029F642) /* 17E640 8024FD60 2610F642 */ addiu $s0, $s0, %lo(D_8029F642) /* 17E644 8024FD64 0C051280 */ jal set_icon_flags /* 17E648 8024FD68 A6020000 */ sh $v0, ($s0) /* 17E64C 8024FD6C 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E650 8024FD70 86040000 */ lh $a0, ($s0) /* 17E654 8024FD74 0C051261 */ jal set_icon_render_pos /* 17E658 8024FD78 00A0302D */ daddu $a2, $a1, $zero /* 17E65C 8024FD7C 3C048029 */ lui $a0, %hi(D_80292630) /* 17E660 8024FD80 24842630 */ addiu $a0, $a0, %lo(D_80292630) /* 17E664 8024FD84 0C050529 */ jal create_icon /* 17E668 8024FD88 00000000 */ nop /* 17E66C 8024FD8C 00022400 */ sll $a0, $v0, 0x10 /* 17E670 8024FD90 00042403 */ sra $a0, $a0, 0x10 /* 17E674 8024FD94 24050080 */ addiu $a1, $zero, 0x80 /* 17E678 8024FD98 3C10802A */ lui $s0, %hi(D_8029F644) /* 17E67C 8024FD9C 2610F644 */ addiu $s0, $s0, %lo(D_8029F644) /* 17E680 8024FDA0 0C051280 */ jal set_icon_flags /* 17E684 8024FDA4 A6020000 */ sh $v0, ($s0) /* 17E688 8024FDA8 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E68C 8024FDAC 86040000 */ lh $a0, ($s0) /* 17E690 8024FDB0 0C051261 */ jal set_icon_render_pos /* 17E694 8024FDB4 00A0302D */ daddu $a2, $a1, $zero /* 17E698 8024FDB8 3C048029 */ lui $a0, %hi(D_80292438) /* 17E69C 8024FDBC 24842438 */ addiu $a0, $a0, %lo(D_80292438) /* 17E6A0 8024FDC0 0C050529 */ jal create_icon /* 17E6A4 8024FDC4 00000000 */ nop /* 17E6A8 8024FDC8 00022400 */ sll $a0, $v0, 0x10 /* 17E6AC 8024FDCC 00042403 */ sra $a0, $a0, 0x10 /* 17E6B0 8024FDD0 24050080 */ addiu $a1, $zero, 0x80 /* 17E6B4 8024FDD4 3C10802A */ lui $s0, %hi(D_8029F646) /* 17E6B8 8024FDD8 2610F646 */ addiu $s0, $s0, %lo(D_8029F646) /* 17E6BC 8024FDDC 0C051280 */ jal set_icon_flags /* 17E6C0 8024FDE0 A6020000 */ sh $v0, ($s0) /* 17E6C4 8024FDE4 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E6C8 8024FDE8 86040000 */ lh $a0, ($s0) /* 17E6CC 8024FDEC 0C051261 */ jal set_icon_render_pos /* 17E6D0 8024FDF0 00A0302D */ daddu $a2, $a1, $zero /* 17E6D4 8024FDF4 3C048029 */ lui $a0, %hi(D_802924CC) /* 17E6D8 8024FDF8 248424CC */ addiu $a0, $a0, %lo(D_802924CC) /* 17E6DC 8024FDFC 0C050529 */ jal create_icon /* 17E6E0 8024FE00 00000000 */ nop /* 17E6E4 8024FE04 00022400 */ sll $a0, $v0, 0x10 /* 17E6E8 8024FE08 00042403 */ sra $a0, $a0, 0x10 /* 17E6EC 8024FE0C 3C10802A */ lui $s0, %hi(D_8029F648) /* 17E6F0 8024FE10 2610F648 */ addiu $s0, $s0, %lo(D_8029F648) /* 17E6F4 8024FE14 080941E3 */ j .L8025078C /* 17E6F8 8024FE18 24050080 */ addiu $a1, $zero, 0x80 glabel L8024FE1C_17E6FC /* 17E6FC 8024FE1C 3C048011 */ lui $a0, %hi(D_80108E1C) /* 17E700 8024FE20 24848E1C */ addiu $a0, $a0, %lo(D_80108E1C) /* 17E704 8024FE24 08094060 */ j .L80250180 /* 17E708 8024FE28 00000000 */ nop glabel L8024FE2C_17E70C /* 17E70C 8024FE2C 3C048011 */ lui $a0, %hi(D_80108B28) /* 17E710 8024FE30 24848B28 */ addiu $a0, $a0, %lo(D_80108B28) /* 17E714 8024FE34 0C050529 */ jal create_icon /* 17E718 8024FE38 00000000 */ nop /* 17E71C 8024FE3C 00022400 */ sll $a0, $v0, 0x10 /* 17E720 8024FE40 00042403 */ sra $a0, $a0, 0x10 /* 17E724 8024FE44 34058080 */ ori $a1, $zero, 0x8080 /* 17E728 8024FE48 3C10802A */ lui $s0, %hi(D_8029F642) /* 17E72C 8024FE4C 2610F642 */ addiu $s0, $s0, %lo(D_8029F642) /* 17E730 8024FE50 0C051280 */ jal set_icon_flags /* 17E734 8024FE54 A6020000 */ sh $v0, ($s0) /* 17E738 8024FE58 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E73C 8024FE5C 86040000 */ lh $a0, ($s0) /* 17E740 8024FE60 0C051261 */ jal set_icon_render_pos /* 17E744 8024FE64 00A0302D */ daddu $a2, $a1, $zero /* 17E748 8024FE68 3C048029 */ lui $a0, %hi(D_8029231C) /* 17E74C 8024FE6C 2484231C */ addiu $a0, $a0, %lo(D_8029231C) /* 17E750 8024FE70 0C050529 */ jal create_icon /* 17E754 8024FE74 00000000 */ nop /* 17E758 8024FE78 00022400 */ sll $a0, $v0, 0x10 /* 17E75C 8024FE7C 00042403 */ sra $a0, $a0, 0x10 /* 17E760 8024FE80 34058080 */ ori $a1, $zero, 0x8080 /* 17E764 8024FE84 3C10802A */ lui $s0, %hi(D_8029F644) /* 17E768 8024FE88 2610F644 */ addiu $s0, $s0, %lo(D_8029F644) /* 17E76C 8024FE8C 0C051280 */ jal set_icon_flags /* 17E770 8024FE90 A6020000 */ sh $v0, ($s0) /* 17E774 8024FE94 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E778 8024FE98 86040000 */ lh $a0, ($s0) /* 17E77C 8024FE9C 0C051261 */ jal set_icon_render_pos /* 17E780 8024FEA0 00A0302D */ daddu $a2, $a1, $zero /* 17E784 8024FEA4 3C048029 */ lui $a0, %hi(D_80292630) /* 17E788 8024FEA8 24842630 */ addiu $a0, $a0, %lo(D_80292630) /* 17E78C 8024FEAC 0C050529 */ jal create_icon /* 17E790 8024FEB0 00000000 */ nop /* 17E794 8024FEB4 00022400 */ sll $a0, $v0, 0x10 /* 17E798 8024FEB8 00042403 */ sra $a0, $a0, 0x10 /* 17E79C 8024FEBC 3C10802A */ lui $s0, %hi(D_8029F646) /* 17E7A0 8024FEC0 2610F646 */ addiu $s0, $s0, %lo(D_8029F646) /* 17E7A4 8024FEC4 080941E3 */ j .L8025078C /* 17E7A8 8024FEC8 34058080 */ ori $a1, $zero, 0x8080 glabel L8024FECC_17E7AC /* 17E7AC 8024FECC 3C048011 */ lui $a0, %hi(D_80108E1C) /* 17E7B0 8024FED0 24848E1C */ addiu $a0, $a0, %lo(D_80108E1C) /* 17E7B4 8024FED4 08094060 */ j .L80250180 /* 17E7B8 8024FED8 00000000 */ nop glabel L8024FEDC_17E7BC /* 17E7BC 8024FEDC 3C048029 */ lui $a0, %hi(D_80292788) /* 17E7C0 8024FEE0 24842788 */ addiu $a0, $a0, %lo(D_80292788) /* 17E7C4 8024FEE4 0C050529 */ jal create_icon /* 17E7C8 8024FEE8 00000000 */ nop /* 17E7CC 8024FEEC 00022400 */ sll $a0, $v0, 0x10 /* 17E7D0 8024FEF0 00042403 */ sra $a0, $a0, 0x10 /* 17E7D4 8024FEF4 24050080 */ addiu $a1, $zero, 0x80 /* 17E7D8 8024FEF8 3C10802A */ lui $s0, %hi(D_8029F642) /* 17E7DC 8024FEFC 2610F642 */ addiu $s0, $s0, %lo(D_8029F642) /* 17E7E0 8024FF00 0C051280 */ jal set_icon_flags /* 17E7E4 8024FF04 A6020000 */ sh $v0, ($s0) /* 17E7E8 8024FF08 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E7EC 8024FF0C 86040000 */ lh $a0, ($s0) /* 17E7F0 8024FF10 0C051261 */ jal set_icon_render_pos /* 17E7F4 8024FF14 00A0302D */ daddu $a2, $a1, $zero /* 17E7F8 8024FF18 3C048011 */ lui $a0, %hi(D_80108B28) /* 17E7FC 8024FF1C 24848B28 */ addiu $a0, $a0, %lo(D_80108B28) /* 17E800 8024FF20 0C050529 */ jal create_icon /* 17E804 8024FF24 00000000 */ nop /* 17E808 8024FF28 00022400 */ sll $a0, $v0, 0x10 /* 17E80C 8024FF2C 00042403 */ sra $a0, $a0, 0x10 /* 17E810 8024FF30 3C10802A */ lui $s0, %hi(D_8029F644) /* 17E814 8024FF34 2610F644 */ addiu $s0, $s0, %lo(D_8029F644) /* 17E818 8024FF38 080941E3 */ j .L8025078C /* 17E81C 8024FF3C 34058080 */ ori $a1, $zero, 0x8080 glabel L8024FF40_17E820 /* 17E820 8024FF40 3C048011 */ lui $a0, %hi(D_80108B28) /* 17E824 8024FF44 24848B28 */ addiu $a0, $a0, %lo(D_80108B28) /* 17E828 8024FF48 0C050529 */ jal create_icon /* 17E82C 8024FF4C 00000000 */ nop /* 17E830 8024FF50 00022400 */ sll $a0, $v0, 0x10 /* 17E834 8024FF54 00042403 */ sra $a0, $a0, 0x10 /* 17E838 8024FF58 34058080 */ ori $a1, $zero, 0x8080 /* 17E83C 8024FF5C 3C10802A */ lui $s0, %hi(D_8029F642) /* 17E840 8024FF60 2610F642 */ addiu $s0, $s0, %lo(D_8029F642) /* 17E844 8024FF64 0C051280 */ jal set_icon_flags /* 17E848 8024FF68 A6020000 */ sh $v0, ($s0) /* 17E84C 8024FF6C 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E850 8024FF70 86040000 */ lh $a0, ($s0) /* 17E854 8024FF74 0C051261 */ jal set_icon_render_pos /* 17E858 8024FF78 00A0302D */ daddu $a2, $a1, $zero /* 17E85C 8024FF7C 3C048029 */ lui $a0, %hi(D_8029231C) /* 17E860 8024FF80 2484231C */ addiu $a0, $a0, %lo(D_8029231C) /* 17E864 8024FF84 0C050529 */ jal create_icon /* 17E868 8024FF88 00000000 */ nop /* 17E86C 8024FF8C 86040000 */ lh $a0, ($s0) /* 17E870 8024FF90 3C01802A */ lui $at, %hi(D_8029F644) /* 17E874 8024FF94 A422F644 */ sh $v0, %lo(D_8029F644)($at) /* 17E878 8024FF98 080941E4 */ j .L80250790 /* 17E87C 8024FF9C 34058080 */ ori $a1, $zero, 0x8080 glabel L8024FFA0_17E880 /* 17E880 8024FFA0 3C048011 */ lui $a0, %hi(D_80108B28) /* 17E884 8024FFA4 24848B28 */ addiu $a0, $a0, %lo(D_80108B28) /* 17E888 8024FFA8 0C050529 */ jal create_icon /* 17E88C 8024FFAC 00000000 */ nop /* 17E890 8024FFB0 00022400 */ sll $a0, $v0, 0x10 /* 17E894 8024FFB4 00042403 */ sra $a0, $a0, 0x10 /* 17E898 8024FFB8 34058080 */ ori $a1, $zero, 0x8080 /* 17E89C 8024FFBC 3C10802A */ lui $s0, %hi(D_8029F642) /* 17E8A0 8024FFC0 2610F642 */ addiu $s0, $s0, %lo(D_8029F642) /* 17E8A4 8024FFC4 0C051280 */ jal set_icon_flags /* 17E8A8 8024FFC8 A6020000 */ sh $v0, ($s0) /* 17E8AC 8024FFCC 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E8B0 8024FFD0 86040000 */ lh $a0, ($s0) /* 17E8B4 8024FFD4 0C051261 */ jal set_icon_render_pos /* 17E8B8 8024FFD8 00A0302D */ daddu $a2, $a1, $zero /* 17E8BC 8024FFDC 3C048029 */ lui $a0, %hi(D_8029231C) /* 17E8C0 8024FFE0 2484231C */ addiu $a0, $a0, %lo(D_8029231C) /* 17E8C4 8024FFE4 0C050529 */ jal create_icon /* 17E8C8 8024FFE8 00000000 */ nop /* 17E8CC 8024FFEC 00022400 */ sll $a0, $v0, 0x10 /* 17E8D0 8024FFF0 00042403 */ sra $a0, $a0, 0x10 /* 17E8D4 8024FFF4 3C10802A */ lui $s0, %hi(D_8029F644) /* 17E8D8 8024FFF8 2610F644 */ addiu $s0, $s0, %lo(D_8029F644) /* 17E8DC 8024FFFC 080941E3 */ j .L8025078C /* 17E8E0 80250000 34058080 */ ori $a1, $zero, 0x8080 glabel L80250004_17E8E4 /* 17E8E4 80250004 3C048029 */ lui $a0, %hi(D_80292788) /* 17E8E8 80250008 24842788 */ addiu $a0, $a0, %lo(D_80292788) /* 17E8EC 8025000C 0C050529 */ jal create_icon /* 17E8F0 80250010 00000000 */ nop /* 17E8F4 80250014 00022400 */ sll $a0, $v0, 0x10 /* 17E8F8 80250018 00042403 */ sra $a0, $a0, 0x10 /* 17E8FC 8025001C 24050080 */ addiu $a1, $zero, 0x80 /* 17E900 80250020 3C10802A */ lui $s0, %hi(D_8029F642) /* 17E904 80250024 2610F642 */ addiu $s0, $s0, %lo(D_8029F642) /* 17E908 80250028 0C051280 */ jal set_icon_flags /* 17E90C 8025002C A6020000 */ sh $v0, ($s0) /* 17E910 80250030 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E914 80250034 86040000 */ lh $a0, ($s0) /* 17E918 80250038 0C051261 */ jal set_icon_render_pos /* 17E91C 8025003C 00A0302D */ daddu $a2, $a1, $zero /* 17E920 80250040 3C048011 */ lui $a0, %hi(D_80108B54) /* 17E924 80250044 24848B54 */ addiu $a0, $a0, %lo(D_80108B54) /* 17E928 80250048 0C050529 */ jal create_icon /* 17E92C 8025004C 00000000 */ nop /* 17E930 80250050 00022400 */ sll $a0, $v0, 0x10 /* 17E934 80250054 00042403 */ sra $a0, $a0, 0x10 /* 17E938 80250058 3C10802A */ lui $s0, %hi(D_8029F644) /* 17E93C 8025005C 2610F644 */ addiu $s0, $s0, %lo(D_8029F644) /* 17E940 80250060 080941E3 */ j .L8025078C /* 17E944 80250064 34058080 */ ori $a1, $zero, 0x8080 glabel L80250068_17E948 /* 17E948 80250068 3C048011 */ lui $a0, %hi(D_80108E1C) /* 17E94C 8025006C 24848E1C */ addiu $a0, $a0, %lo(D_80108E1C) /* 17E950 80250070 0C050529 */ jal create_icon /* 17E954 80250074 00000000 */ nop /* 17E958 80250078 00022400 */ sll $a0, $v0, 0x10 /* 17E95C 8025007C 00042403 */ sra $a0, $a0, 0x10 /* 17E960 80250080 34058080 */ ori $a1, $zero, 0x8080 /* 17E964 80250084 3C10802A */ lui $s0, %hi(D_8029F642) /* 17E968 80250088 2610F642 */ addiu $s0, $s0, %lo(D_8029F642) /* 17E96C 8025008C 0C051280 */ jal set_icon_flags /* 17E970 80250090 A6020000 */ sh $v0, ($s0) /* 17E974 80250094 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E978 80250098 86040000 */ lh $a0, ($s0) /* 17E97C 8025009C 0C051261 */ jal set_icon_render_pos /* 17E980 802500A0 00A0302D */ daddu $a2, $a1, $zero /* 17E984 802500A4 3C048029 */ lui $a0, %hi(D_802936D4) /* 17E988 802500A8 248436D4 */ addiu $a0, $a0, %lo(D_802936D4) /* 17E98C 802500AC 0C050529 */ jal create_icon /* 17E990 802500B0 00000000 */ nop /* 17E994 802500B4 00022400 */ sll $a0, $v0, 0x10 /* 17E998 802500B8 00042403 */ sra $a0, $a0, 0x10 /* 17E99C 802500BC 34058080 */ ori $a1, $zero, 0x8080 /* 17E9A0 802500C0 3C10802A */ lui $s0, %hi(D_8029F644) /* 17E9A4 802500C4 2610F644 */ addiu $s0, $s0, %lo(D_8029F644) /* 17E9A8 802500C8 0C051280 */ jal set_icon_flags /* 17E9AC 802500CC A6020000 */ sh $v0, ($s0) /* 17E9B0 802500D0 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E9B4 802500D4 86040000 */ lh $a0, ($s0) /* 17E9B8 802500D8 0C051261 */ jal set_icon_render_pos /* 17E9BC 802500DC 00A0302D */ daddu $a2, $a1, $zero /* 17E9C0 802500E0 86040000 */ lh $a0, ($s0) /* 17E9C4 802500E4 0C0513F6 */ jal func_80144FD8 /* 17E9C8 802500E8 00000000 */ nop /* 17E9CC 802500EC 3C048029 */ lui $a0, %hi(D_8029369C) /* 17E9D0 802500F0 2484369C */ addiu $a0, $a0, %lo(D_8029369C) /* 17E9D4 802500F4 0C050529 */ jal create_icon /* 17E9D8 802500F8 00000000 */ nop /* 17E9DC 802500FC 00022400 */ sll $a0, $v0, 0x10 /* 17E9E0 80250100 00042403 */ sra $a0, $a0, 0x10 /* 17E9E4 80250104 34058080 */ ori $a1, $zero, 0x8080 /* 17E9E8 80250108 3C10802A */ lui $s0, %hi(D_8029F646) /* 17E9EC 8025010C 2610F646 */ addiu $s0, $s0, %lo(D_8029F646) .L80250110: /* 17E9F0 80250110 0C051280 */ jal set_icon_flags /* 17E9F4 80250114 A6020000 */ sh $v0, ($s0) /* 17E9F8 80250118 2405FF9C */ addiu $a1, $zero, -0x64 /* 17E9FC 8025011C 86040000 */ lh $a0, ($s0) /* 17EA00 80250120 0C051261 */ jal set_icon_render_pos /* 17EA04 80250124 00A0302D */ daddu $a2, $a1, $zero /* 17EA08 80250128 86040000 */ lh $a0, ($s0) /* 17EA0C 8025012C 0C0513F6 */ jal func_80144FD8 /* 17EA10 80250130 00000000 */ nop /* 17EA14 80250134 080941EB */ j .L802507AC /* 17EA18 80250138 24020001 */ addiu $v0, $zero, 1 glabel L8025013C_17EA1C /* 17EA1C 8025013C 3C048011 */ lui $a0, %hi(D_80108B28) /* 17EA20 80250140 24848B28 */ addiu $a0, $a0, %lo(D_80108B28) /* 17EA24 80250144 0C050529 */ jal create_icon /* 17EA28 80250148 00000000 */ nop /* 17EA2C 8025014C 00022400 */ sll $a0, $v0, 0x10 /* 17EA30 80250150 00042403 */ sra $a0, $a0, 0x10 /* 17EA34 80250154 34058080 */ ori $a1, $zero, 0x8080 /* 17EA38 80250158 3C10802A */ lui $s0, %hi(D_8029F642) /* 17EA3C 8025015C 2610F642 */ addiu $s0, $s0, %lo(D_8029F642) /* 17EA40 80250160 0C051280 */ jal set_icon_flags /* 17EA44 80250164 A6020000 */ sh $v0, ($s0) /* 17EA48 80250168 2405FF9C */ addiu $a1, $zero, -0x64 /* 17EA4C 8025016C 86040000 */ lh $a0, ($s0) /* 17EA50 80250170 0C051261 */ jal set_icon_render_pos /* 17EA54 80250174 00A0302D */ daddu $a2, $a1, $zero glabel L80250178_17EA58 /* 17EA58 80250178 3C048011 */ lui $a0, %hi(D_80108B28) /* 17EA5C 8025017C 24848B28 */ addiu $a0, $a0, %lo(D_80108B28) .L80250180: /* 17EA60 80250180 0C050529 */ jal create_icon /* 17EA64 80250184 00000000 */ nop /* 17EA68 80250188 00022400 */ sll $a0, $v0, 0x10 /* 17EA6C 8025018C 00042403 */ sra $a0, $a0, 0x10 /* 17EA70 80250190 080941E1 */ j .L80250784 /* 17EA74 80250194 34058080 */ ori $a1, $zero, 0x8080 .L80250198: /* 17EA78 80250198 3C06800E */ lui $a2, %hi(gBattleStatus) /* 17EA7C 8025019C 24C6C070 */ addiu $a2, $a2, %lo(gBattleStatus) /* 17EA80 802501A0 8CC30000 */ lw $v1, ($a2) /* 17EA84 802501A4 3C020001 */ lui $v0, 1 /* 17EA88 802501A8 00621024 */ and $v0, $v1, $v0 /* 17EA8C 802501AC 1040000A */ beqz $v0, .L802501D8 /* 17EA90 802501B0 24050007 */ addiu $a1, $zero, 7 /* 17EA94 802501B4 24040009 */ addiu $a0, $zero, 9 /* 17EA98 802501B8 2402BFFF */ addiu $v0, $zero, -0x4001 /* 17EA9C 802501BC 00621024 */ and $v0, $v1, $v0 /* 17EAA0 802501C0 0C051F9F */ jal func_80147E7C /* 17EAA4 802501C4 ACC20000 */ sw $v0, ($a2) /* 17EAA8 802501C8 24020002 */ addiu $v0, $zero, 2 /* 17EAAC 802501CC A6200014 */ sh $zero, 0x14($s1) /* 17EAB0 802501D0 080941F7 */ j .L802507DC /* 17EAB4 802501D4 A2220016 */ sb $v0, 0x16($s1) .L802501D8: /* 17EAB8 802501D8 30624000 */ andi $v0, $v1, 0x4000 /* 17EABC 802501DC 1440017F */ bnez $v0, .L802507DC /* 17EAC0 802501E0 24020002 */ addiu $v0, $zero, 2 /* 17EAC4 802501E4 1082017D */ beq $a0, $v0, .L802507DC /* 17EAC8 802501E8 24040009 */ addiu $a0, $zero, 9 /* 17EACC 802501EC 0C051F9F */ jal func_80147E7C /* 17EAD0 802501F0 24050007 */ addiu $a1, $zero, 7 /* 17EAD4 802501F4 96220012 */ lhu $v0, 0x12($s1) /* 17EAD8 802501F8 2442FFD2 */ addiu $v0, $v0, -0x2e /* 17EADC 802501FC 00021400 */ sll $v0, $v0, 0x10 /* 17EAE0 80250200 00021C03 */ sra $v1, $v0, 0x10 /* 17EAE4 80250204 2C620015 */ sltiu $v0, $v1, 0x15 /* 17EAE8 80250208 104000AC */ beqz $v0, .L802504BC /* 17EAEC 8025020C 00031080 */ sll $v0, $v1, 2 /* 17EAF0 80250210 3C01802A */ lui $at, %hi(jtbl_8029CF60_1CB840) /* 17EAF4 80250214 00220821 */ addu $at, $at, $v0 /* 17EAF8 80250218 8C22CF60 */ lw $v0, %lo(jtbl_8029CF60_1CB840)($at) /* 17EAFC 8025021C 00400008 */ jr $v0 /* 17EB00 80250220 00000000 */ nop glabel L80250224_17EB04 /* 17EB04 80250224 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EB08 80250228 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EB0C 8025022C 3C058011 */ lui $a1, %hi(D_80108B80) /* 17EB10 80250230 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80) /* 17EB14 80250234 0809412D */ j .L802504B4 /* 17EB18 80250238 00000000 */ nop glabel L8025023C_17EB1C /* 17EB1C 8025023C 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EB20 80250240 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EB24 80250244 3C058011 */ lui $a1, %hi(D_80108F30) /* 17EB28 80250248 24A58F30 */ addiu $a1, $a1, %lo(D_80108F30) /* 17EB2C 8025024C 0809412D */ j .L802504B4 /* 17EB30 80250250 00000000 */ nop glabel L80250254_17EB34 /* 17EB34 80250254 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EB38 80250258 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EB3C 8025025C 3C058011 */ lui $a1, %hi(D_80108F90) /* 17EB40 80250260 24A58F90 */ addiu $a1, $a1, %lo(D_80108F90) /* 17EB44 80250264 0C0511FF */ jal set_menu_icon_script /* 17EB48 80250268 00000000 */ nop /* 17EB4C 8025026C 3C04802A */ lui $a0, %hi(D_8029F644) /* 17EB50 80250270 8484F644 */ lh $a0, %lo(D_8029F644)($a0) /* 17EB54 80250274 3C058029 */ lui $a1, %hi(D_802927B4) /* 17EB58 80250278 24A527B4 */ addiu $a1, $a1, %lo(D_802927B4) /* 17EB5C 8025027C 0809412D */ j .L802504B4 /* 17EB60 80250280 00000000 */ nop glabel L80250284_17EB64 /* 17EB64 80250284 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EB68 80250288 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EB6C 8025028C 3C058011 */ lui $a1, %hi(D_80108F90) /* 17EB70 80250290 24A58F90 */ addiu $a1, $a1, %lo(D_80108F90) /* 17EB74 80250294 0C0511FF */ jal set_menu_icon_script /* 17EB78 80250298 00000000 */ nop /* 17EB7C 8025029C 3C04802A */ lui $a0, %hi(D_8029F644) /* 17EB80 802502A0 8484F644 */ lh $a0, %lo(D_8029F644)($a0) /* 17EB84 802502A4 3C058029 */ lui $a1, %hi(D_802936D4) /* 17EB88 802502A8 24A536D4 */ addiu $a1, $a1, %lo(D_802936D4) /* 17EB8C 802502AC 0809412D */ j .L802504B4 /* 17EB90 802502B0 00000000 */ nop glabel L802502B4_17EB94 /* 17EB94 802502B4 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EB98 802502B8 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EB9C 802502BC 3C058029 */ lui $a1, %hi(D_802925F4) /* 17EBA0 802502C0 24A525F4 */ addiu $a1, $a1, %lo(D_802925F4) /* 17EBA4 802502C4 0C0511FF */ jal set_menu_icon_script /* 17EBA8 802502C8 00000000 */ nop /* 17EBAC 802502CC 3C04802A */ lui $a0, %hi(D_8029F644) /* 17EBB0 802502D0 8484F644 */ lh $a0, %lo(D_8029F644)($a0) /* 17EBB4 802502D4 3C058029 */ lui $a1, %hi(D_80292688) /* 17EBB8 802502D8 24A52688 */ addiu $a1, $a1, %lo(D_80292688) /* 17EBBC 802502DC 0C0511FF */ jal set_menu_icon_script /* 17EBC0 802502E0 00000000 */ nop /* 17EBC4 802502E4 3C04802A */ lui $a0, %hi(D_8029F646) /* 17EBC8 802502E8 8484F646 */ lh $a0, %lo(D_8029F646)($a0) /* 17EBCC 802502EC 3C058029 */ lui $a1, %hi(D_80292490) /* 17EBD0 802502F0 24A52490 */ addiu $a1, $a1, %lo(D_80292490) /* 17EBD4 802502F4 0C0511FF */ jal set_menu_icon_script /* 17EBD8 802502F8 00000000 */ nop /* 17EBDC 802502FC 3C04802A */ lui $a0, %hi(D_8029F648) /* 17EBE0 80250300 8484F648 */ lh $a0, %lo(D_8029F648)($a0) /* 17EBE4 80250304 3C058029 */ lui $a1, %hi(D_80292524) /* 17EBE8 80250308 24A52524 */ addiu $a1, $a1, %lo(D_80292524) /* 17EBEC 8025030C 0809412D */ j .L802504B4 /* 17EBF0 80250310 00000000 */ nop glabel L80250314_17EBF4 /* 17EBF4 80250314 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EBF8 80250318 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EBFC 8025031C 3C058011 */ lui $a1, %hi(D_80108E80) /* 17EC00 80250320 24A58E80 */ addiu $a1, $a1, %lo(D_80108E80) /* 17EC04 80250324 0809412D */ j .L802504B4 /* 17EC08 80250328 00000000 */ nop glabel L8025032C_17EC0C /* 17EC0C 8025032C 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EC10 80250330 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EC14 80250334 3C058011 */ lui $a1, %hi(D_80108BBC) /* 17EC18 80250338 24A58BBC */ addiu $a1, $a1, %lo(D_80108BBC) /* 17EC1C 8025033C 0C0511FF */ jal set_menu_icon_script /* 17EC20 80250340 00000000 */ nop /* 17EC24 80250344 3C04802A */ lui $a0, %hi(D_8029F644) /* 17EC28 80250348 8484F644 */ lh $a0, %lo(D_8029F644)($a0) /* 17EC2C 8025034C 3C058029 */ lui $a1, %hi(D_802923B0) /* 17EC30 80250350 24A523B0 */ addiu $a1, $a1, %lo(D_802923B0) /* 17EC34 80250354 0C0511FF */ jal set_menu_icon_script /* 17EC38 80250358 00000000 */ nop /* 17EC3C 8025035C 3C04802A */ lui $a0, %hi(D_8029F646) /* 17EC40 80250360 8484F646 */ lh $a0, %lo(D_8029F646)($a0) /* 17EC44 80250364 3C058029 */ lui $a1, %hi(D_802926C4) /* 17EC48 80250368 24A526C4 */ addiu $a1, $a1, %lo(D_802926C4) /* 17EC4C 8025036C 0809412D */ j .L802504B4 /* 17EC50 80250370 00000000 */ nop glabel L80250374_17EC54 /* 17EC54 80250374 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EC58 80250378 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EC5C 8025037C 3C058011 */ lui $a1, %hi(D_80108D6C) /* 17EC60 80250380 24A58D6C */ addiu $a1, $a1, %lo(D_80108D6C) /* 17EC64 80250384 0809412D */ j .L802504B4 /* 17EC68 80250388 00000000 */ nop glabel L8025038C_17EC6C /* 17EC6C 8025038C 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EC70 80250390 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EC74 80250394 3C058029 */ lui $a1, %hi(D_802927B4) /* 17EC78 80250398 24A527B4 */ addiu $a1, $a1, %lo(D_802927B4) /* 17EC7C 8025039C 0C0511FF */ jal set_menu_icon_script /* 17EC80 802503A0 00000000 */ nop /* 17EC84 802503A4 3C04802A */ lui $a0, %hi(D_8029F644) /* 17EC88 802503A8 8484F644 */ lh $a0, %lo(D_8029F644)($a0) /* 17EC8C 802503AC 3C058011 */ lui $a1, %hi(D_80108B80) /* 17EC90 802503B0 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80) /* 17EC94 802503B4 0809412D */ j .L802504B4 /* 17EC98 802503B8 00000000 */ nop glabel L802503BC_17EC9C /* 17EC9C 802503BC 3C04802A */ lui $a0, %hi(D_8029F642) /* 17ECA0 802503C0 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17ECA4 802503C4 3C058011 */ lui $a1, %hi(D_80108B80) /* 17ECA8 802503C8 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80) /* 17ECAC 802503CC 0C0511FF */ jal set_menu_icon_script /* 17ECB0 802503D0 00000000 */ nop /* 17ECB4 802503D4 3C04802A */ lui $a0, %hi(D_8029F644) /* 17ECB8 802503D8 8484F644 */ lh $a0, %lo(D_8029F644)($a0) /* 17ECBC 802503DC 3C058029 */ lui $a1, %hi(D_802923FC) /* 17ECC0 802503E0 24A523FC */ addiu $a1, $a1, %lo(D_802923FC) /* 17ECC4 802503E4 0809412D */ j .L802504B4 /* 17ECC8 802503E8 00000000 */ nop glabel L802503EC_17ECCC /* 17ECCC 802503EC 3C04802A */ lui $a0, %hi(D_8029F642) /* 17ECD0 802503F0 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17ECD4 802503F4 3C058011 */ lui $a1, %hi(D_80108B80) /* 17ECD8 802503F8 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80) /* 17ECDC 802503FC 0C0511FF */ jal set_menu_icon_script /* 17ECE0 80250400 00000000 */ nop /* 17ECE4 80250404 3C04802A */ lui $a0, %hi(D_8029F644) /* 17ECE8 80250408 8484F644 */ lh $a0, %lo(D_8029F644)($a0) /* 17ECEC 8025040C 3C058029 */ lui $a1, %hi(D_80292374) /* 17ECF0 80250410 24A52374 */ addiu $a1, $a1, %lo(D_80292374) /* 17ECF4 80250414 0809412D */ j .L802504B4 /* 17ECF8 80250418 00000000 */ nop glabel L8025041C_17ECFC /* 17ECFC 8025041C 3C04802A */ lui $a0, %hi(D_8029F642) /* 17ED00 80250420 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17ED04 80250424 3C058011 */ lui $a1, %hi(D_80108B80) /* 17ED08 80250428 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80) /* 17ED0C 8025042C 0809412D */ j .L802504B4 /* 17ED10 80250430 00000000 */ nop glabel L80250434_17ED14 /* 17ED14 80250434 3C04802A */ lui $a0, %hi(D_8029F642) /* 17ED18 80250438 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17ED1C 8025043C 3C058029 */ lui $a1, %hi(D_802927B4) /* 17ED20 80250440 24A527B4 */ addiu $a1, $a1, %lo(D_802927B4) /* 17ED24 80250444 0C0511FF */ jal set_menu_icon_script /* 17ED28 80250448 00000000 */ nop /* 17ED2C 8025044C 3C04802A */ lui $a0, %hi(D_8029F644) /* 17ED30 80250450 8484F644 */ lh $a0, %lo(D_8029F644)($a0) /* 17ED34 80250454 0809412B */ j .L802504AC /* 17ED38 80250458 00000000 */ nop glabel L8025045C_17ED3C /* 17ED3C 8025045C 3C04802A */ lui $a0, %hi(D_8029F642) /* 17ED40 80250460 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17ED44 80250464 3C058011 */ lui $a1, %hi(D_801091E4) /* 17ED48 80250468 24A591E4 */ addiu $a1, $a1, %lo(D_801091E4) /* 17ED4C 8025046C 0809412D */ j .L802504B4 /* 17ED50 80250470 00000000 */ nop glabel L80250474_17ED54 /* 17ED54 80250474 3C04802A */ lui $a0, %hi(D_8029F642) /* 17ED58 80250478 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17ED5C 8025047C 3C058011 */ lui $a1, %hi(D_80108B80) /* 17ED60 80250480 24A58B80 */ addiu $a1, $a1, %lo(D_80108B80) /* 17ED64 80250484 0809412D */ j .L802504B4 /* 17ED68 80250488 00000000 */ nop glabel L8025048C_17ED6C /* 17ED6C 8025048C 3C04802A */ lui $a0, %hi(D_8029F642) /* 17ED70 80250490 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17ED74 80250494 3C058011 */ lui $a1, %hi(D_80108BBC) /* 17ED78 80250498 24A58BBC */ addiu $a1, $a1, %lo(D_80108BBC) /* 17ED7C 8025049C 0C0511FF */ jal set_menu_icon_script /* 17ED80 802504A0 00000000 */ nop glabel L802504A4_17ED84 /* 17ED84 802504A4 3C04802A */ lui $a0, %hi(D_8029F642) /* 17ED88 802504A8 8484F642 */ lh $a0, %lo(D_8029F642)($a0) .L802504AC: /* 17ED8C 802504AC 3C058011 */ lui $a1, %hi(D_80108BBC) /* 17ED90 802504B0 24A58BBC */ addiu $a1, $a1, %lo(D_80108BBC) .L802504B4: /* 17ED94 802504B4 0C0511FF */ jal set_menu_icon_script /* 17ED98 802504B8 00000000 */ nop .L802504BC: /* 17ED9C 802504BC 86230014 */ lh $v1, 0x14($s1) /* 17EDA0 802504C0 2402FFFF */ addiu $v0, $zero, -1 /* 17EDA4 802504C4 1062006C */ beq $v1, $v0, .L80250678 /* 17EDA8 802504C8 2402001E */ addiu $v0, $zero, 0x1e /* 17EDAC 802504CC 0809419E */ j .L80250678 /* 17EDB0 802504D0 A6220014 */ sh $v0, 0x14($s1) .L802504D4: /* 17EDB4 802504D4 14830006 */ bne $a0, $v1, .L802504F0 /* 17EDB8 802504D8 3C030001 */ lui $v1, 1 /* 17EDBC 802504DC 3C02800E */ lui $v0, %hi(gBattleStatus) /* 17EDC0 802504E0 8C42C070 */ lw $v0, %lo(gBattleStatus)($v0) /* 17EDC4 802504E4 00431024 */ and $v0, $v0, $v1 /* 17EDC8 802504E8 104000BC */ beqz $v0, .L802507DC /* 17EDCC 802504EC 00000000 */ nop .L802504F0: /* 17EDD0 802504F0 3C04802A */ lui $a0, %hi(D_8029F64E) /* 17EDD4 802504F4 2484F64E */ addiu $a0, $a0, %lo(D_8029F64E) /* 17EDD8 802504F8 84820000 */ lh $v0, ($a0) /* 17EDDC 802504FC 94830000 */ lhu $v1, ($a0) /* 17EDE0 80250500 284200C0 */ slti $v0, $v0, 0xc0 /* 17EDE4 80250504 1040000C */ beqz $v0, .L80250538 /* 17EDE8 80250508 00000000 */ nop /* 17EDEC 8025050C 3C02802A */ lui $v0, %hi(D_8029F64C) /* 17EDF0 80250510 8442F64C */ lh $v0, %lo(D_8029F64C)($v0) /* 17EDF4 80250514 144000B1 */ bnez $v0, .L802507DC /* 17EDF8 80250518 2462000A */ addiu $v0, $v1, 0xa /* 17EDFC 8025051C A4820000 */ sh $v0, ($a0) /* 17EE00 80250520 00021400 */ sll $v0, $v0, 0x10 /* 17EE04 80250524 00021403 */ sra $v0, $v0, 0x10 /* 17EE08 80250528 284200C1 */ slti $v0, $v0, 0xc1 /* 17EE0C 8025052C 14400002 */ bnez $v0, .L80250538 /* 17EE10 80250530 240200C0 */ addiu $v0, $zero, 0xc0 /* 17EE14 80250534 A4820000 */ sh $v0, ($a0) .L80250538: /* 17EE18 80250538 3C02802A */ lui $v0, %hi(D_8029F64E) /* 17EE1C 8025053C 9442F64E */ lhu $v0, %lo(D_8029F64E)($v0) /* 17EE20 80250540 3C03802A */ lui $v1, %hi(D_8029F650) /* 17EE24 80250544 9463F650 */ lhu $v1, %lo(D_8029F650)($v1) /* 17EE28 80250548 00431021 */ addu $v0, $v0, $v1 /* 17EE2C 8025054C 3C018016 */ lui $at, %hi(D_80159E7E) /* 17EE30 80250550 A4229E7E */ sh $v0, %lo(D_80159E7E)($at) /* 17EE34 80250554 2402FFFF */ addiu $v0, $zero, -1 /* 17EE38 80250558 86240014 */ lh $a0, 0x14($s1) /* 17EE3C 8025055C 1082009F */ beq $a0, $v0, .L802507DC /* 17EE40 80250560 96230014 */ lhu $v1, 0x14($s1) /* 17EE44 80250564 10800003 */ beqz $a0, .L80250574 /* 17EE48 80250568 00621021 */ addu $v0, $v1, $v0 /* 17EE4C 8025056C 080941F7 */ j .L802507DC /* 17EE50 80250570 A6220014 */ sh $v0, 0x14($s1) .L80250574: /* 17EE54 80250574 96220012 */ lhu $v0, 0x12($s1) /* 17EE58 80250578 2442FFD2 */ addiu $v0, $v0, -0x2e /* 17EE5C 8025057C 00021400 */ sll $v0, $v0, 0x10 /* 17EE60 80250580 00021C03 */ sra $v1, $v0, 0x10 /* 17EE64 80250584 2C620015 */ sltiu $v0, $v1, 0x15 /* 17EE68 80250588 1040002E */ beqz $v0, .L80250644 /* 17EE6C 8025058C 00031080 */ sll $v0, $v1, 2 /* 17EE70 80250590 3C01802A */ lui $at, %hi(jtbl_8029CFB8_1CB898) /* 17EE74 80250594 00220821 */ addu $at, $at, $v0 /* 17EE78 80250598 8C22CFB8 */ lw $v0, %lo(jtbl_8029CFB8_1CB898)($at) /* 17EE7C 8025059C 00400008 */ jr $v0 /* 17EE80 802505A0 00000000 */ nop glabel L802505A4_17EE84 /* 17EE84 802505A4 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EE88 802505A8 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EE8C 802505AC 0809418F */ j .L8025063C /* 17EE90 802505B0 00000000 */ nop glabel L802505B4_17EE94 /* 17EE94 802505B4 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EE98 802505B8 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EE9C 802505BC 0C05123D */ jal free_icon /* 17EEA0 802505C0 00000000 */ nop /* 17EEA4 802505C4 3C04802A */ lui $a0, %hi(D_8029F644) /* 17EEA8 802505C8 8484F644 */ lh $a0, %lo(D_8029F644)($a0) /* 17EEAC 802505CC 0809418F */ j .L8025063C /* 17EEB0 802505D0 00000000 */ nop glabel L802505D4_17EEB4 /* 17EEB4 802505D4 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EEB8 802505D8 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EEBC 802505DC 0C05123D */ jal free_icon /* 17EEC0 802505E0 00000000 */ nop /* 17EEC4 802505E4 3C04802A */ lui $a0, %hi(D_8029F644) /* 17EEC8 802505E8 8484F644 */ lh $a0, %lo(D_8029F644)($a0) /* 17EECC 802505EC 0C05123D */ jal free_icon /* 17EED0 802505F0 00000000 */ nop /* 17EED4 802505F4 3C04802A */ lui $a0, %hi(D_8029F646) /* 17EED8 802505F8 8484F646 */ lh $a0, %lo(D_8029F646)($a0) /* 17EEDC 802505FC 0809418F */ j .L8025063C /* 17EEE0 80250600 00000000 */ nop glabel L80250604_17EEE4 /* 17EEE4 80250604 3C04802A */ lui $a0, %hi(D_8029F642) /* 17EEE8 80250608 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17EEEC 8025060C 0C05123D */ jal free_icon /* 17EEF0 80250610 00000000 */ nop /* 17EEF4 80250614 3C04802A */ lui $a0, %hi(D_8029F644) /* 17EEF8 80250618 8484F644 */ lh $a0, %lo(D_8029F644)($a0) /* 17EEFC 8025061C 0C05123D */ jal free_icon /* 17EF00 80250620 00000000 */ nop /* 17EF04 80250624 3C04802A */ lui $a0, %hi(D_8029F646) /* 17EF08 80250628 8484F646 */ lh $a0, %lo(D_8029F646)($a0) /* 17EF0C 8025062C 0C05123D */ jal free_icon /* 17EF10 80250630 00000000 */ nop /* 17EF14 80250634 3C04802A */ lui $a0, %hi(D_8029F648) /* 17EF18 80250638 8484F648 */ lh $a0, %lo(D_8029F648)($a0) .L8025063C: /* 17EF1C 8025063C 0C05123D */ jal free_icon /* 17EF20 80250640 00000000 */ nop .L80250644: /* 17EF24 80250644 3C01802A */ lui $at, %hi(D_8029F64A) /* 17EF28 80250648 A420F64A */ sh $zero, %lo(D_8029F64A)($at) /* 17EF2C 8025064C 080941F7 */ j .L802507DC /* 17EF30 80250650 24120001 */ addiu $s2, $zero, 1 glabel L80250654_17EF34 /* 17EF34 80250654 82230016 */ lb $v1, 0x16($s1) /* 17EF38 80250658 2C620005 */ sltiu $v0, $v1, 5 /* 17EF3C 8025065C 1040005F */ beqz $v0, .L802507DC /* 17EF40 80250660 00031080 */ sll $v0, $v1, 2 /* 17EF44 80250664 3C01802A */ lui $at, %hi(jtbl_8029D010_1CB8F0) /* 17EF48 80250668 00220821 */ addu $at, $at, $v0 /* 17EF4C 8025066C 8C22D010 */ lw $v0, %lo(jtbl_8029D010_1CB8F0)($at) /* 17EF50 80250670 00400008 */ jr $v0 /* 17EF54 80250674 00000000 */ nop .L80250678: glabel L80250678_17EF58 /* 17EF58 80250678 24020002 */ addiu $v0, $zero, 2 /* 17EF5C 8025067C 080941F7 */ j .L802507DC /* 17EF60 80250680 A2220016 */ sb $v0, 0x16($s1) glabel L80250684_17EF64 /* 17EF64 80250684 8C820214 */ lw $v0, 0x214($a0) /* 17EF68 80250688 3042C000 */ andi $v0, $v0, 0xc000 /* 17EF6C 8025068C 54400001 */ bnel $v0, $zero, .L80250694 /* 17EF70 80250690 A6200014 */ sh $zero, 0x14($s1) .L80250694: /* 17EF74 80250694 86220014 */ lh $v0, 0x14($s1) /* 17EF78 80250698 96230014 */ lhu $v1, 0x14($s1) /* 17EF7C 8025069C 14400049 */ bnez $v0, .L802507C4 /* 17EF80 802506A0 2462FFFF */ addiu $v0, $v1, -1 /* 17EF84 802506A4 24020003 */ addiu $v0, $zero, 3 /* 17EF88 802506A8 080941F7 */ j .L802507DC /* 17EF8C 802506AC A2220016 */ sb $v0, 0x16($s1) glabel L802506B0_17EF90 /* 17EF90 802506B0 24020004 */ addiu $v0, $zero, 4 /* 17EF94 802506B4 080941F7 */ j .L802507DC /* 17EF98 802506B8 A2220016 */ sb $v0, 0x16($s1) glabel L802506BC_17EF9C /* 17EF9C 802506BC 82230016 */ lb $v1, 0x16($s1) /* 17EFA0 802506C0 10600005 */ beqz $v1, .L802506D8 /* 17EFA4 802506C4 24020001 */ addiu $v0, $zero, 1 /* 17EFA8 802506C8 1062003A */ beq $v1, $v0, .L802507B4 /* 17EFAC 802506CC 00000000 */ nop /* 17EFB0 802506D0 080941F7 */ j .L802507DC /* 17EFB4 802506D4 00000000 */ nop .L802506D8: /* 17EFB8 802506D8 96220012 */ lhu $v0, 0x12($s1) /* 17EFBC 802506DC 2442FFB7 */ addiu $v0, $v0, -0x49 /* 17EFC0 802506E0 00021400 */ sll $v0, $v0, 0x10 /* 17EFC4 802506E4 00021C03 */ sra $v1, $v0, 0x10 /* 17EFC8 802506E8 2C620007 */ sltiu $v0, $v1, 7 /* 17EFCC 802506EC 1040002E */ beqz $v0, .L802507A8 /* 17EFD0 802506F0 00031080 */ sll $v0, $v1, 2 /* 17EFD4 802506F4 3C01802A */ lui $at, %hi(jtbl_8029D028_1CB908) /* 17EFD8 802506F8 00220821 */ addu $at, $at, $v0 /* 17EFDC 802506FC 8C22D028 */ lw $v0, %lo(jtbl_8029D028_1CB908)($at) /* 17EFE0 80250700 00400008 */ jr $v0 /* 17EFE4 80250704 00000000 */ nop glabel L80250708_17EFE8 /* 17EFE8 80250708 3C048008 */ lui $a0, %hi(D_800806A0) /* 17EFEC 8025070C 248406A0 */ addiu $a0, $a0, %lo(D_800806A0) /* 17EFF0 80250710 080941DC */ j .L80250770 /* 17EFF4 80250714 00000000 */ nop glabel L80250718_17EFF8 /* 17EFF8 80250718 3C048008 */ lui $a0, %hi(D_800806D0) /* 17EFFC 8025071C 248406D0 */ addiu $a0, $a0, %lo(D_800806D0) /* 17F000 80250720 080941DC */ j .L80250770 /* 17F004 80250724 00000000 */ nop glabel L80250728_17F008 /* 17F008 80250728 3C048008 */ lui $a0, %hi(D_80080700) /* 17F00C 8025072C 24840700 */ addiu $a0, $a0, %lo(D_80080700) /* 17F010 80250730 080941DC */ j .L80250770 /* 17F014 80250734 00000000 */ nop glabel L80250738_17F018 /* 17F018 80250738 3C048008 */ lui $a0, %hi(D_80080730) /* 17F01C 8025073C 24840730 */ addiu $a0, $a0, %lo(D_80080730) /* 17F020 80250740 080941DC */ j .L80250770 /* 17F024 80250744 00000000 */ nop glabel L80250748_17F028 /* 17F028 80250748 3C048008 */ lui $a0, %hi(D_80080760) /* 17F02C 8025074C 24840760 */ addiu $a0, $a0, %lo(D_80080760) /* 17F030 80250750 080941DC */ j .L80250770 /* 17F034 80250754 00000000 */ nop glabel L80250758_17F038 /* 17F038 80250758 3C048008 */ lui $a0, %hi(D_80080790) /* 17F03C 8025075C 24840790 */ addiu $a0, $a0, %lo(D_80080790) /* 17F040 80250760 080941DC */ j .L80250770 /* 17F044 80250764 00000000 */ nop glabel L80250768_17F048 /* 17F048 80250768 3C048008 */ lui $a0, %hi(D_800807C0) /* 17F04C 8025076C 248407C0 */ addiu $a0, $a0, %lo(D_800807C0) .L80250770: /* 17F050 80250770 0C050529 */ jal create_icon /* 17F054 80250774 00000000 */ nop /* 17F058 80250778 00022400 */ sll $a0, $v0, 0x10 /* 17F05C 8025077C 00042403 */ sra $a0, $a0, 0x10 /* 17F060 80250780 24050080 */ addiu $a1, $zero, 0x80 .L80250784: /* 17F064 80250784 3C10802A */ lui $s0, %hi(D_8029F642) /* 17F068 80250788 2610F642 */ addiu $s0, $s0, %lo(D_8029F642) .L8025078C: /* 17F06C 8025078C A6020000 */ sh $v0, ($s0) .L80250790: /* 17F070 80250790 0C051280 */ jal set_icon_flags /* 17F074 80250794 00000000 */ nop /* 17F078 80250798 2405FF9C */ addiu $a1, $zero, -0x64 /* 17F07C 8025079C 86040000 */ lh $a0, ($s0) /* 17F080 802507A0 0C051261 */ jal set_icon_render_pos /* 17F084 802507A4 00A0302D */ daddu $a2, $a1, $zero .L802507A8: glabel L802507A8_17F088 /* 17F088 802507A8 24020001 */ addiu $v0, $zero, 1 .L802507AC: /* 17F08C 802507AC 080941F7 */ j .L802507DC /* 17F090 802507B0 A2220016 */ sb $v0, 0x16($s1) .L802507B4: /* 17F094 802507B4 86220014 */ lh $v0, 0x14($s1) /* 17F098 802507B8 96230014 */ lhu $v1, 0x14($s1) /* 17F09C 802507BC 10400003 */ beqz $v0, .L802507CC /* 17F0A0 802507C0 2462FFFF */ addiu $v0, $v1, -1 .L802507C4: /* 17F0A4 802507C4 080941F7 */ j .L802507DC /* 17F0A8 802507C8 A6220014 */ sh $v0, 0x14($s1) .L802507CC: /* 17F0AC 802507CC 3C04802A */ lui $a0, %hi(D_8029F642) /* 17F0B0 802507D0 8484F642 */ lh $a0, %lo(D_8029F642)($a0) /* 17F0B4 802507D4 0C05123D */ jal free_icon /* 17F0B8 802507D8 24120001 */ addiu $s2, $zero, 1 .L802507DC: /* 17F0BC 802507DC 12400008 */ beqz $s2, .L80250800 /* 17F0C0 802507E0 00000000 */ nop /* 17F0C4 802507E4 24040009 */ addiu $a0, $zero, 9 /* 17F0C8 802507E8 0C051F9F */ jal func_80147E7C /* 17F0CC 802507EC 24050002 */ addiu $a1, $zero, 2 /* 17F0D0 802507F0 3C018028 */ lui $at, %hi(D_802838F8) /* 17F0D4 802507F4 AC2038F8 */ sw $zero, %lo(D_802838F8)($at) /* 17F0D8 802507F8 0C093BE9 */ jal gPauseMenuCursorOpacity /* 17F0DC 802507FC 0220202D */ daddu $a0, $s1, $zero .L80250800: /* 17F0E0 80250800 8FBF001C */ lw $ra, 0x1c($sp) /* 17F0E4 80250804 8FB20018 */ lw $s2, 0x18($sp) /* 17F0E8 80250808 8FB10014 */ lw $s1, 0x14($sp) /* 17F0EC 8025080C 8FB00010 */ lw $s0, 0x10($sp) /* 17F0F0 80250810 03E00008 */ jr $ra /* 17F0F4 80250814 27BD0020 */ addiu $sp, $sp, 0x20