From 4ecd175bd1d6da1c43d17ab3f09d982096fcf298 Mon Sep 17 00:00:00 2001 From: Synray <31429825+Synray@users.noreply.github.com> Date: Mon, 20 Sep 2021 10:49:20 -0700 Subject: [PATCH] Match KaleidoScope_DrawQuestStatus (#974) * Match KaleidoScope_DrawQuestStatus * Add back the parens --- .../KaleidoScope_DrawQuestStatus.s | 2532 ----------------- data/overlays/actors/z_kaleido_scope.reloc.s | 13 - spec | 4 - .../ovl_kaleido_scope/z_kaleido_collect.c | 116 +- 4 files changed, 28 insertions(+), 2637 deletions(-) delete mode 100644 asm/non_matchings/overlays/actors/ovl_kaleido_scope/KaleidoScope_DrawQuestStatus.s delete mode 100644 data/overlays/actors/z_kaleido_scope.reloc.s diff --git a/asm/non_matchings/overlays/actors/ovl_kaleido_scope/KaleidoScope_DrawQuestStatus.s b/asm/non_matchings/overlays/actors/ovl_kaleido_scope/KaleidoScope_DrawQuestStatus.s deleted file mode 100644 index 0e99374bf3..0000000000 --- a/asm/non_matchings/overlays/actors/ovl_kaleido_scope/KaleidoScope_DrawQuestStatus.s +++ /dev/null @@ -1,2532 +0,0 @@ -.rdata - -glabel D_8082F420 - .asciz "../z_kaleido_collect.c" - .balign 4 - -glabel D_8082F438 - .asciz "000 ccc=%d\n" - .balign 4 - -glabel D_8082F444 - .asciz "111 ccc=%d\n" - .balign 4 - -glabel D_8082F450 - .asciz "222 ccc=%d (%d, %d, %d)\n" - .balign 4 - -glabel D_8082F46C - .asciz "999 ccc=%d (%d, %d)\n" - .balign 4 - -glabel D_8082F484 - .asciz "888 ccc=%d (%d, %d, %x)\n" - .balign 4 - -glabel D_8082F4A0 - .asciz "../z_kaleido_collect.c" - .balign 4 - -.text -glabel KaleidoScope_DrawQuestStatus -/* 00000 80813820 27BDFDD0 */ addiu $sp, $sp, 0xFDD0 ## $sp = FFFFFDD0 -/* 00004 80813824 AFB50034 */ sw $s5, 0x0034($sp) -/* 00008 80813828 0080A825 */ or $s5, $a0, $zero ## $s5 = 00000000 -/* 0000C 8081382C AFBF0044 */ sw $ra, 0x0044($sp) -/* 00010 80813830 AFB10024 */ sw $s1, 0x0024($sp) -/* 00014 80813834 3C068083 */ lui $a2, %hi(D_8082F420) ## $a2 = 80830000 -/* 00018 80813838 00A08825 */ or $s1, $a1, $zero ## $s1 = 00000000 -/* 0001C 8081383C AFBE0040 */ sw $s8, 0x0040($sp) -/* 00020 80813840 AFB7003C */ sw $s7, 0x003C($sp) -/* 00024 80813844 AFB60038 */ sw $s6, 0x0038($sp) -/* 00028 80813848 AFB40030 */ sw $s4, 0x0030($sp) -/* 0002C 8081384C AFB3002C */ sw $s3, 0x002C($sp) -/* 00030 80813850 AFB20028 */ sw $s2, 0x0028($sp) -/* 00034 80813854 AFB00020 */ sw $s0, 0x0020($sp) -/* 00038 80813858 24C6F420 */ addiu $a2, $a2, %lo(D_8082F420) ## $a2 = 8082F420 -/* 0003C 8081385C 27A401F4 */ addiu $a0, $sp, 0x01F4 ## $a0 = FFFFFFC4 -/* 00040 80813860 0C031AB1 */ jal Graph_OpenDisps -/* 00044 80813864 240700F8 */ addiu $a3, $zero, 0x00F8 ## $a3 = 000000F8 -/* 00048 80813868 3C010001 */ lui $at, 0x0001 ## $at = 00010000 -/* 0004C 8081386C 34210760 */ ori $at, $at, 0x0760 ## $at = 00010760 -/* 00050 80813870 02A1A021 */ addu $s4, $s5, $at -/* 00054 80813874 968301E4 */ lhu $v1, 0x01E4($s4) ## 000001E4 -/* 00058 80813878 24010005 */ addiu $at, $zero, 0x0005 ## $at = 00000005 -/* 0005C 8081387C 50600007 */ beql $v1, $zero, .L8081389C -/* 00060 80813880 968E01E8 */ lhu $t6, 0x01E8($s4) ## 000001E8 -/* 00064 80813884 10610004 */ beq $v1, $at, .L80813898 -/* 00068 80813888 00601025 */ or $v0, $v1, $zero ## $v0 = 00000000 -/* 0006C 8081388C 24010008 */ addiu $at, $zero, 0x0008 ## $at = 00000008 -/* 00070 80813890 544101CB */ bnel $v0, $at, .L80813FC0 -/* 00074 80813894 24010009 */ addiu $at, $zero, 0x0009 ## $at = 00000009 -.L80813898: -/* 00078 80813898 968E01E8 */ lhu $t6, 0x01E8($s4) ## 000001E8 -.L8081389C: -/* 0007C 8081389C 24010002 */ addiu $at, $zero, 0x0002 ## $at = 00000002 -/* 00080 808138A0 55C101C7 */ bnel $t6, $at, .L80813FC0 -/* 00084 808138A4 24010009 */ addiu $at, $zero, 0x0009 ## $at = 00000009 -/* 00088 808138A8 86820238 */ lh $v0, 0x0238($s4) ## 00000238 -/* 0008C 808138AC A6800260 */ sh $zero, 0x0260($s4) ## 00000260 -/* 00090 808138B0 2401000A */ addiu $at, $zero, 0x000A ## $at = 0000000A -/* 00094 808138B4 1440014B */ bne $v0, $zero, .L80813DE4 -/* 00098 808138B8 00000000 */ nop -/* 0009C 808138BC 968F01D4 */ lhu $t7, 0x01D4($s4) ## 000001D4 -/* 000A0 808138C0 24010006 */ addiu $at, $zero, 0x0006 ## $at = 00000006 -/* 000A4 808138C4 A680025E */ sh $zero, 0x025E($s4) ## 0000025E -/* 000A8 808138C8 15E10007 */ bne $t7, $at, .L808138E8 -/* 000AC 808138CC 00000000 */ nop -/* 000B0 808138D0 86820214 */ lh $v0, 0x0214($s4) ## 00000214 -/* 000B4 808138D4 14400006 */ bne $v0, $zero, .L808138F0 -/* 000B8 808138D8 2841FFE2 */ slti $at, $v0, 0xFFE2 -/* 000BC 808138DC 86980216 */ lh $t8, 0x0216($s4) ## 00000216 -/* 000C0 808138E0 17000003 */ bne $t8, $zero, .L808138F0 -/* 000C4 808138E4 00000000 */ nop -.L808138E8: -/* 000C8 808138E8 100000BC */ beq $zero, $zero, .L80813BDC -/* 000CC 808138EC 8697024A */ lh $s7, 0x024A($s4) ## 0000024A -.L808138F0: -/* 000D0 808138F0 1020001C */ beq $at, $zero, .L80813964 -/* 000D4 808138F4 8693021C */ lh $s3, 0x021C($s4) ## 0000021C -/* 000D8 808138F8 3C128083 */ lui $s2, %hi(D_8082A1AC) ## $s2 = 80830000 -/* 000DC 808138FC 2652A1AC */ addiu $s2, $s2, %lo(D_8082A1AC) ## $s2 = 8082A1AC -/* 000E0 80813900 0013C880 */ sll $t9, $s3, 2 -/* 000E4 80813904 02597021 */ addu $t6, $s2, $t9 -/* 000E8 80813908 81D00002 */ lb $s0, 0x0002($t6) ## 00000002 -/* 000EC 8081390C 2401FFFD */ addiu $at, $zero, 0xFFFD ## $at = FFFFFFFD -/* 000F0 80813910 02A02025 */ or $a0, $s5, $zero ## $a0 = 00000000 -/* 000F4 80813914 16010005 */ bne $s0, $at, .L8081392C -/* 000F8 80813918 00000000 */ nop -/* 000FC 8081391C 0C207E07 */ jal KaleidoScope_MoveCursorToSpecialPos -/* 00100 80813920 2405000A */ addiu $a1, $zero, 0x000A ## $a1 = 0000000A -/* 00104 80813924 1000002A */ beq $zero, $zero, .L808139D0 -/* 00108 80813928 A68001E4 */ sh $zero, 0x01E4($s4) ## 000001E4 -.L8081392C: -/* 0010C 8081392C 06000028 */ bltz $s0, .L808139D0 -/* 00110 80813930 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -.L80813934: -/* 00114 80813934 0C205732 */ jal KaleidoScope_UpdateQuestStatusPoint -/* 00118 80813938 02002825 */ or $a1, $s0, $zero ## $a1 = 00000000 -/* 0011C 8081393C 00027C00 */ sll $t7, $v0, 16 -/* 00120 80813940 000FC403 */ sra $t8, $t7, 16 -/* 00124 80813944 17000022 */ bne $t8, $zero, .L808139D0 -/* 00128 80813948 0010C880 */ sll $t9, $s0, 2 -/* 0012C 8081394C 02597021 */ addu $t6, $s2, $t9 -/* 00130 80813950 81D00002 */ lb $s0, 0x0002($t6) ## 00000002 -/* 00134 80813954 0603FFF7 */ bgezl $s0, .L80813934 -/* 00138 80813958 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -/* 0013C 8081395C 1000001D */ beq $zero, $zero, .L808139D4 -/* 00140 80813960 86820216 */ lh $v0, 0x0216($s4) ## 00000216 -.L80813964: -/* 00144 80813964 2841001F */ slti $at, $v0, 0x001F -/* 00148 80813968 14200019 */ bne $at, $zero, .L808139D0 -/* 0014C 8081396C 3C128083 */ lui $s2, %hi(D_8082A1AC) ## $s2 = 80830000 -/* 00150 80813970 2652A1AC */ addiu $s2, $s2, %lo(D_8082A1AC) ## $s2 = 8082A1AC -/* 00154 80813974 00137880 */ sll $t7, $s3, 2 -/* 00158 80813978 024FC021 */ addu $t8, $s2, $t7 -/* 0015C 8081397C 83100003 */ lb $s0, 0x0003($t8) ## 00000003 -/* 00160 80813980 2401FFFE */ addiu $at, $zero, 0xFFFE ## $at = FFFFFFFE -/* 00164 80813984 02A02025 */ or $a0, $s5, $zero ## $a0 = 00000000 -/* 00168 80813988 16010005 */ bne $s0, $at, .L808139A0 -/* 0016C 8081398C 00000000 */ nop -/* 00170 80813990 0C207E07 */ jal KaleidoScope_MoveCursorToSpecialPos -/* 00174 80813994 2405000B */ addiu $a1, $zero, 0x000B ## $a1 = 0000000B -/* 00178 80813998 1000000D */ beq $zero, $zero, .L808139D0 -/* 0017C 8081399C A68001E4 */ sh $zero, 0x01E4($s4) ## 000001E4 -.L808139A0: -/* 00180 808139A0 0600000B */ bltz $s0, .L808139D0 -/* 00184 808139A4 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -.L808139A8: -/* 00188 808139A8 0C205732 */ jal KaleidoScope_UpdateQuestStatusPoint -/* 0018C 808139AC 02002825 */ or $a1, $s0, $zero ## $a1 = 00000000 -/* 00190 808139B0 0002CC00 */ sll $t9, $v0, 16 -/* 00194 808139B4 00197403 */ sra $t6, $t9, 16 -/* 00198 808139B8 15C00005 */ bne $t6, $zero, .L808139D0 -/* 0019C 808139BC 00107880 */ sll $t7, $s0, 2 -/* 001A0 808139C0 024FC021 */ addu $t8, $s2, $t7 -/* 001A4 808139C4 83100003 */ lb $s0, 0x0003($t8) ## 00000003 -/* 001A8 808139C8 0603FFF7 */ bgezl $s0, .L808139A8 -/* 001AC 808139CC 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -.L808139D0: -/* 001B0 808139D0 86820216 */ lh $v0, 0x0216($s4) ## 00000216 -.L808139D4: -/* 001B4 808139D4 3C128083 */ lui $s2, %hi(D_8082A1AC) ## $s2 = 80830000 -/* 001B8 808139D8 2652A1AC */ addiu $s2, $s2, %lo(D_8082A1AC) ## $s2 = 8082A1AC -/* 001BC 808139DC 2841FFE2 */ slti $at, $v0, 0xFFE2 -/* 001C0 808139E0 10200011 */ beq $at, $zero, .L80813A28 -/* 001C4 808139E4 0013C880 */ sll $t9, $s3, 2 -/* 001C8 808139E8 02597021 */ addu $t6, $s2, $t9 -/* 001CC 808139EC 81D00001 */ lb $s0, 0x0001($t6) ## 00000001 -/* 001D0 808139F0 0600001E */ bltz $s0, .L80813A6C -/* 001D4 808139F4 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -.L808139F8: -/* 001D8 808139F8 0C205732 */ jal KaleidoScope_UpdateQuestStatusPoint -/* 001DC 808139FC 02002825 */ or $a1, $s0, $zero ## $a1 = 00000000 -/* 001E0 80813A00 00027C00 */ sll $t7, $v0, 16 -/* 001E4 80813A04 000FC403 */ sra $t8, $t7, 16 -/* 001E8 80813A08 17000018 */ bne $t8, $zero, .L80813A6C -/* 001EC 80813A0C 0010C880 */ sll $t9, $s0, 2 -/* 001F0 80813A10 02597021 */ addu $t6, $s2, $t9 -/* 001F4 80813A14 81D00001 */ lb $s0, 0x0001($t6) ## 00000001 -/* 001F8 80813A18 0603FFF7 */ bgezl $s0, .L808139F8 -/* 001FC 80813A1C 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -/* 00200 80813A20 10000013 */ beq $zero, $zero, .L80813A70 -/* 00204 80813A24 8686021C */ lh $a2, 0x021C($s4) ## 0000021C -.L80813A28: -/* 00208 80813A28 2841001F */ slti $at, $v0, 0x001F -/* 0020C 80813A2C 1420000F */ bne $at, $zero, .L80813A6C -/* 00210 80813A30 00137880 */ sll $t7, $s3, 2 -/* 00214 80813A34 024FC021 */ addu $t8, $s2, $t7 -/* 00218 80813A38 83100000 */ lb $s0, 0x0000($t8) ## 00000000 -/* 0021C 80813A3C 0600000B */ bltz $s0, .L80813A6C -/* 00220 80813A40 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -.L80813A44: -/* 00224 80813A44 0C205732 */ jal KaleidoScope_UpdateQuestStatusPoint -/* 00228 80813A48 02002825 */ or $a1, $s0, $zero ## $a1 = 00000000 -/* 0022C 80813A4C 0002CC00 */ sll $t9, $v0, 16 -/* 00230 80813A50 00197403 */ sra $t6, $t9, 16 -/* 00234 80813A54 15C00005 */ bne $t6, $zero, .L80813A6C -/* 00238 80813A58 00107880 */ sll $t7, $s0, 2 -/* 0023C 80813A5C 024FC021 */ addu $t8, $s2, $t7 -/* 00240 80813A60 83100000 */ lb $s0, 0x0000($t8) ## 00000000 -/* 00244 80813A64 0603FFF7 */ bgezl $s0, .L80813A44 -/* 00248 80813A68 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -.L80813A6C: -/* 0024C 80813A6C 8686021C */ lh $a2, 0x021C($s4) ## 0000021C -.L80813A70: -/* 00250 80813A70 3C078013 */ lui $a3, %hi(D_801333E0) -/* 00254 80813A74 24E733E0 */ addiu $a3, %lo(D_801333E0) -/* 00258 80813A78 1266000B */ beq $s3, $a2, .L80813AA8 -/* 0025C 80813A7C 24044809 */ addiu $a0, $zero, 0x4809 ## $a0 = 00004809 -/* 00260 80813A80 3C198013 */ lui $t9, %hi(D_801333E8) -/* 00264 80813A84 A68001E4 */ sh $zero, 0x01E4($s4) ## 000001E4 -/* 00268 80813A88 273933E8 */ addiu $t9, %lo(D_801333E8) -/* 0026C 80813A8C 3C058013 */ lui $a1, %hi(D_801333D4) -/* 00270 80813A90 24A533D4 */ addiu $a1, %lo(D_801333D4) -/* 00274 80813A94 AFB90014 */ sw $t9, 0x0014($sp) -/* 00278 80813A98 AFA70010 */ sw $a3, 0x0010($sp) -/* 0027C 80813A9C 0C03DCE3 */ jal Audio_PlaySoundGeneral - -/* 00280 80813AA0 24060004 */ addiu $a2, $zero, 0x0004 ## $a2 = 00000004 -/* 00284 80813AA4 8686021C */ lh $a2, 0x021C($s4) ## 0000021C -.L80813AA8: -/* 00288 80813AA8 24010018 */ addiu $at, $zero, 0x0018 ## $at = 00000018 -/* 0028C 80813AAC 10C10033 */ beq $a2, $at, .L80813B7C -/* 00290 80813AB0 3C028016 */ lui $v0, %hi(gSaveContext+0xa4) -/* 00294 80813AB4 00067080 */ sll $t6, $a2, 2 -/* 00298 80813AB8 3C0F8012 */ lui $t7, %hi(gBitFlags) -/* 0029C 80813ABC 01EE7821 */ addu $t7, $t7, $t6 -/* 002A0 80813AC0 3C188016 */ lui $t8, %hi(gSaveContext+0xa4) -/* 002A4 80813AC4 8F18E704 */ lw $t8, %lo(gSaveContext+0xa4)($t8) -/* 002A8 80813AC8 8DEF7120 */ lw $t7, %lo(gBitFlags)($t7) -/* 002AC 80813ACC 3C048083 */ lui $a0, %hi(D_8082F46C) ## $a0 = 80830000 -/* 002B0 80813AD0 241003E7 */ addiu $s0, $zero, 0x03E7 ## $s0 = 000003E7 -/* 002B4 80813AD4 01F8C824 */ and $t9, $t7, $t8 -/* 002B8 80813AD8 13200023 */ beq $t9, $zero, .L80813B68 -/* 002BC 80813ADC 2484F46C */ addiu $a0, $a0, %lo(D_8082F46C) ## $a0 = 8082F46C -/* 002C0 80813AE0 28C10006 */ slti $at, $a2, 0x0006 -/* 002C4 80813AE4 10200009 */ beq $at, $zero, .L80813B0C -/* 002C8 80813AE8 24D00066 */ addiu $s0, $a2, 0x0066 ## $s0 = 00000066 -/* 002CC 80813AEC 00108400 */ sll $s0, $s0, 16 -/* 002D0 80813AF0 00108403 */ sra $s0, $s0, 16 -/* 002D4 80813AF4 3C048083 */ lui $a0, %hi(D_8082F438) ## $a0 = 80830000 -/* 002D8 80813AF8 2484F438 */ addiu $a0, $a0, %lo(D_8082F438) ## $a0 = 8082F438 -/* 002DC 80813AFC 0C00084C */ jal osSyncPrintf - -/* 002E0 80813B00 02002825 */ or $a1, $s0, $zero ## $a1 = 00000066 -/* 002E4 80813B04 1000002B */ beq $zero, $zero, .L80813BB4 -/* 002E8 80813B08 968F01E8 */ lhu $t7, 0x01E8($s4) ## 000001E8 -.L80813B0C: -/* 002EC 80813B0C 28C10012 */ slti $at, $a2, 0x0012 -/* 002F0 80813B10 1020000A */ beq $at, $zero, .L80813B3C -/* 002F4 80813B14 24D0005A */ addiu $s0, $a2, 0x005A ## $s0 = 0000005A -/* 002F8 80813B18 24D00054 */ addiu $s0, $a2, 0x0054 ## $s0 = 00000054 -/* 002FC 80813B1C 00108400 */ sll $s0, $s0, 16 -/* 00300 80813B20 00108403 */ sra $s0, $s0, 16 -/* 00304 80813B24 3C048083 */ lui $a0, %hi(D_8082F444) ## $a0 = 80830000 -/* 00308 80813B28 2484F444 */ addiu $a0, $a0, %lo(D_8082F444) ## $a0 = 8082F444 -/* 0030C 80813B2C 0C00084C */ jal osSyncPrintf - -/* 00310 80813B30 02002825 */ or $a1, $s0, $zero ## $a1 = 00000054 -/* 00314 80813B34 1000001F */ beq $zero, $zero, .L80813BB4 -/* 00318 80813B38 968F01E8 */ lhu $t7, 0x01E8($s4) ## 000001E8 -.L80813B3C: -/* 0031C 80813B3C 00108400 */ sll $s0, $s0, 16 -/* 00320 80813B40 00108403 */ sra $s0, $s0, 16 -/* 00324 80813B44 3C048083 */ lui $a0, %hi(D_8082F450) ## $a0 = 80830000 -/* 00328 80813B48 240E006C */ addiu $t6, $zero, 0x006C ## $t6 = 0000006C -/* 0032C 80813B4C AFAE0010 */ sw $t6, 0x0010($sp) -/* 00330 80813B50 2484F450 */ addiu $a0, $a0, %lo(D_8082F450) ## $a0 = 8082F450 -/* 00334 80813B54 02002825 */ or $a1, $s0, $zero ## $a1 = 00000054 -/* 00338 80813B58 0C00084C */ jal osSyncPrintf - -/* 0033C 80813B5C 24070012 */ addiu $a3, $zero, 0x0012 ## $a3 = 00000012 -/* 00340 80813B60 10000014 */ beq $zero, $zero, .L80813BB4 -/* 00344 80813B64 968F01E8 */ lhu $t7, 0x01E8($s4) ## 000001E8 -.L80813B68: -/* 00348 80813B68 240503E7 */ addiu $a1, $zero, 0x03E7 ## $a1 = 000003E7 -/* 0034C 80813B6C 0C00084C */ jal osSyncPrintf - -/* 00350 80813B70 24070018 */ addiu $a3, $zero, 0x0018 ## $a3 = 00000018 -/* 00354 80813B74 1000000F */ beq $zero, $zero, .L80813BB4 -/* 00358 80813B78 968F01E8 */ lhu $t7, 0x01E8($s4) ## 000001E8 -.L80813B7C: -/* 0035C 80813B7C 8C42E704 */ lw $v0, %lo(gSaveContext+0xa4)($v0) -/* 00360 80813B80 3C01F000 */ lui $at, 0xF000 ## $at = F0000000 -/* 00364 80813B84 3C048083 */ lui $a0, %hi(D_8082F484) ## $a0 = 80830000 -/* 00368 80813B88 00411024 */ and $v0, $v0, $at -/* 0036C 80813B8C 10400003 */ beq $v0, $zero, .L80813B9C -/* 00370 80813B90 2484F484 */ addiu $a0, $a0, %lo(D_8082F484) ## $a0 = 8082F484 -/* 00374 80813B94 10000002 */ beq $zero, $zero, .L80813BA0 -/* 00378 80813B98 24100072 */ addiu $s0, $zero, 0x0072 ## $s0 = 00000072 -.L80813B9C: -/* 0037C 80813B9C 241003E7 */ addiu $s0, $zero, 0x03E7 ## $s0 = 000003E7 -.L80813BA0: -/* 00380 80813BA0 02002825 */ or $a1, $s0, $zero ## $a1 = 000003E7 -/* 00384 80813BA4 24070072 */ addiu $a3, $zero, 0x0072 ## $a3 = 00000072 -/* 00388 80813BA8 0C00084C */ jal osSyncPrintf - -/* 0038C 80813BAC AFA20010 */ sw $v0, 0x0010($sp) -/* 00390 80813BB0 968F01E8 */ lhu $t7, 0x01E8($s4) ## 000001E8 -.L80813BB4: -/* 00394 80813BB4 8682021C */ lh $v0, 0x021C($s4) ## 0000021C -/* 00398 80813BB8 000FC040 */ sll $t8, $t7, 1 -/* 0039C 80813BBC 0298C821 */ addu $t9, $s4, $t8 -/* 003A0 80813BC0 A730023E */ sh $s0, 0x023E($t9) ## 0000023E -/* 003A4 80813BC4 968E01E8 */ lhu $t6, 0x01E8($s4) ## 000001E8 -/* 003A8 80813BC8 000E7840 */ sll $t7, $t6, 1 -/* 003AC 80813BCC 028FC021 */ addu $t8, $s4, $t7 -/* 003B0 80813BD0 A7020246 */ sh $v0, 0x0246($t8) ## 00000246 -/* 003B4 80813BD4 A7A20216 */ sh $v0, 0x0216($sp) -/* 003B8 80813BD8 87B70216 */ lh $s7, 0x0216($sp) -.L80813BDC: -/* 003BC 80813BDC 00172880 */ sll $a1, $s7, 2 -/* 003C0 80813BE0 30A5FFFF */ andi $a1, $a1, 0xFFFF ## $a1 = 00000000 -/* 003C4 80813BE4 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -/* 003C8 80813BE8 0C206785 */ jal KaleidoScope_SetCursorVtx -/* 003CC 80813BEC 8E860164 */ lw $a2, 0x0164($s4) ## 00000164 -/* 003D0 80813BF0 969901D4 */ lhu $t9, 0x01D4($s4) ## 000001D4 -/* 003D4 80813BF4 24010006 */ addiu $at, $zero, 0x0006 ## $at = 00000006 -/* 003D8 80813BF8 57210059 */ bnel $t9, $at, .L80813D60 -/* 003DC 80813BFC 968201E4 */ lhu $v0, 0x01E4($s4) ## 000001E4 -/* 003E0 80813C00 968E01E4 */ lhu $t6, 0x01E4($s4) ## 000001E4 -/* 003E4 80813C04 55C00056 */ bnel $t6, $zero, .L80813D60 -/* 003E8 80813C08 968201E4 */ lhu $v0, 0x01E4($s4) ## 000001E4 -/* 003EC 80813C0C 868F0238 */ lh $t7, 0x0238($s4) ## 00000238 -/* 003F0 80813C10 2AE10006 */ slti $at, $s7, 0x0006 -/* 003F4 80813C14 55E00052 */ bnel $t7, $zero, .L80813D60 -/* 003F8 80813C18 968201E4 */ lhu $v0, 0x01E4($s4) ## 000001E4 -/* 003FC 80813C1C 1420004D */ bne $at, $zero, .L80813D54 -/* 00400 80813C20 2AE10012 */ slti $at, $s7, 0x0012 -/* 00404 80813C24 1020004B */ beq $at, $zero, .L80813D54 -/* 00408 80813C28 3C0E8012 */ lui $t6, %hi(gBitFlags) -/* 0040C 80813C2C 8698021C */ lh $t8, 0x021C($s4) ## 0000021C -/* 00410 80813C30 3C0F8016 */ lui $t7, %hi(gSaveContext+0xa4) -/* 00414 80813C34 8DEFE704 */ lw $t7, %lo(gSaveContext+0xa4)($t7) -/* 00418 80813C38 0018C880 */ sll $t9, $t8, 2 -/* 0041C 80813C3C 01D97021 */ addu $t6, $t6, $t9 -/* 00420 80813C40 8DCE7120 */ lw $t6, %lo(gBitFlags)($t6) -/* 00424 80813C44 2402000A */ addiu $v0, $zero, 0x000A ## $v0 = 0000000A -/* 00428 80813C48 00009825 */ or $s3, $zero, $zero ## $s3 = 00000000 -/* 0042C 80813C4C 01CFC024 */ and $t8, $t6, $t7 -/* 00430 80813C50 13000040 */ beq $t8, $zero, .L80813D54 -/* 00434 80813C54 3C0E8015 */ lui $t6, %hi(D_80153960) -/* 00438 80813C58 8697024A */ lh $s7, 0x024A($s4) ## 0000024A -/* 0043C 80813C5C 3C018083 */ lui $at, %hi(D_8082A120) ## $at = 80830000 -/* 00440 80813C60 3C158083 */ lui $s5, %hi(D_8082A150) ## $s5 = 80830000 -/* 00444 80813C64 0017C840 */ sll $t9, $s7, 1 -/* 00448 80813C68 01D97021 */ addu $t6, $t6, $t9 -/* 0044C 80813C6C 85CE3960 */ lh $t6, %lo(D_80153960)($t6) -/* 00450 80813C70 3C128083 */ lui $s2, %hi(D_8082A124) ## $s2 = 80830000 -/* 00454 80813C74 2652A124 */ addiu $s2, $s2, %lo(D_8082A124) ## $s2 = 8082A124 -/* 00458 80813C78 A68E0264 */ sh $t6, 0x0264($s4) ## 00000264 -/* 0045C 80813C7C A422A120 */ sh $v0, %lo(D_8082A120)($at) -/* 00460 80813C80 26B5A150 */ addiu $s5, $s5, %lo(D_8082A150) ## $s5 = 8082A150 -/* 00464 80813C84 241000FF */ addiu $s0, $zero, 0x00FF ## $s0 = 000000FF -.L80813C88: -/* 00468 80813C88 02537821 */ addu $t7, $s2, $s3 -/* 0046C 80813C8C 0013C040 */ sll $t8, $s3, 1 -/* 00470 80813C90 26730001 */ addiu $s3, $s3, 0x0001 ## $s3 = 00000001 -/* 00474 80813C94 00139C00 */ sll $s3, $s3, 16 -/* 00478 80813C98 00139C03 */ sra $s3, $s3, 16 -/* 0047C 80813C9C 2A610008 */ slti $at, $s3, 0x0008 -/* 00480 80813CA0 A1F00000 */ sb $s0, 0x0000($t7) ## 80160000 -/* 00484 80813CA4 02B8C821 */ addu $t9, $s5, $t8 -/* 00488 80813CA8 1420FFF7 */ bne $at, $zero, .L80813C88 -/* 0048C 80813CAC A7200000 */ sh $zero, 0x0000($t9) ## 00000000 -/* 00490 80813CB0 3C018083 */ lui $at, %hi(D_8082A11C) ## $at = 80830000 -/* 00494 80813CB4 A420A11C */ sh $zero, %lo(D_8082A11C)($at) -/* 00498 80813CB8 0C03B616 */ jal func_800ED858 -/* 0049C 80813CBC 24040001 */ addiu $a0, $zero, 0x0001 ## $a0 = 00000001 -/* 004A0 80813CC0 868E0264 */ lh $t6, 0x0264($s4) ## 00000264 -/* 004A4 80813CC4 240F0001 */ addiu $t7, $zero, 0x0001 ## $t7 = 00000001 -/* 004A8 80813CC8 34018000 */ ori $at, $zero, 0x8000 ## $at = 00008000 -/* 004AC 80813CCC 01CF2004 */ sllv $a0, $t7, $t6 -/* 004B0 80813CD0 00812021 */ addu $a0, $a0, $at -/* 004B4 80813CD4 0C03B301 */ jal func_800ECC04 -/* 004B8 80813CD8 3084FFFF */ andi $a0, $a0, 0xFFFF ## $a0 = 00000000 -/* 004BC 80813CDC 0C03B8FE */ jal Audio_OcaGetDisplayStaff -/* 004C0 80813CE0 00000000 */ nop -/* 004C4 80813CE4 AE820194 */ sw $v0, 0x0194($s4) ## 00000194 -/* 004C8 80813CE8 A0400002 */ sb $zero, 0x0002($v0) ## 00000002 -/* 004CC 80813CEC 8E980194 */ lw $t8, 0x0194($s4) ## 00000194 -/* 004D0 80813CF0 3C0F8016 */ lui $t7, %hi(gGameInfo) -/* 004D4 80813CF4 2419FFC2 */ addiu $t9, $zero, 0xFFC2 ## $t9 = FFFFFFC2 -/* 004D8 80813CF8 A3100001 */ sb $s0, 0x0001($t8) ## 00000001 -/* 004DC 80813CFC 8DEFFA90 */ lw $t7, %lo(gGameInfo)($t7) -/* 004E0 80813D00 3C188016 */ lui $t8, %hi(gGameInfo) -/* 004E4 80813D04 240EFFC8 */ addiu $t6, $zero, 0xFFC8 ## $t6 = FFFFFFC8 -/* 004E8 80813D08 A5F90F3E */ sh $t9, 0x0F3E($t7) ## 80160F3E -/* 004EC 80813D0C 8F18FA90 */ lw $t8, %lo(gGameInfo)($t8) -/* 004F0 80813D10 3C0F8016 */ lui $t7, %hi(gGameInfo) -/* 004F4 80813D14 2419FFCF */ addiu $t9, $zero, 0xFFCF ## $t9 = FFFFFFCF -/* 004F8 80813D18 A70E0F40 */ sh $t6, 0x0F40($t8) ## 80160F40 -/* 004FC 80813D1C 8DEFFA90 */ lw $t7, %lo(gGameInfo)($t7) -/* 00500 80813D20 3C188016 */ lui $t8, %hi(gGameInfo) -/* 00504 80813D24 240EFFD2 */ addiu $t6, $zero, 0xFFD2 ## $t6 = FFFFFFD2 -/* 00508 80813D28 A5F90F42 */ sh $t9, 0x0F42($t7) ## 80160F42 -/* 0050C 80813D2C 8F18FA90 */ lw $t8, %lo(gGameInfo)($t8) -/* 00510 80813D30 3C0F8016 */ lui $t7, %hi(gGameInfo) -/* 00514 80813D34 2419FFD7 */ addiu $t9, $zero, 0xFFD7 ## $t9 = FFFFFFD7 -/* 00518 80813D38 A70E0F44 */ sh $t6, 0x0F44($t8) ## 80160F44 -/* 0051C 80813D3C 8DEFFA90 */ lw $t7, %lo(gGameInfo)($t7) -/* 00520 80813D40 240E0008 */ addiu $t6, $zero, 0x0008 ## $t6 = 00000008 -/* 00524 80813D44 00002025 */ or $a0, $zero, $zero ## $a0 = 00000000 -/* 00528 80813D48 A5F90F46 */ sh $t9, 0x0F46($t7) ## 80160F46 -/* 0052C 80813D4C 0C03B616 */ jal func_800ED858 -/* 00530 80813D50 A68E01E4 */ sh $t6, 0x01E4($s4) ## 000001E4 -.L80813D54: -/* 00534 80813D54 10000021 */ beq $zero, $zero, .L80813DDC -/* 00538 80813D58 00000000 */ nop -/* 0053C 80813D5C 968201E4 */ lhu $v0, 0x01E4($s4) ## 000001E4 -.L80813D60: -/* 00540 80813D60 24010005 */ addiu $at, $zero, 0x0005 ## $at = 00000005 -/* 00544 80813D64 5441000D */ bnel $v0, $at, .L80813D9C -/* 00548 80813D68 24010008 */ addiu $at, $zero, 0x0008 ## $at = 00000008 -/* 0054C 80813D6C 86980214 */ lh $t8, 0x0214($s4) ## 00000214 -/* 00550 80813D70 00002025 */ or $a0, $zero, $zero ## $a0 = 00000000 -/* 00554 80813D74 17000004 */ bne $t8, $zero, .L80813D88 -/* 00558 80813D78 00000000 */ nop -/* 0055C 80813D7C 86990216 */ lh $t9, 0x0216($s4) ## 00000216 -/* 00560 80813D80 13200016 */ beq $t9, $zero, .L80813DDC -/* 00564 80813D84 00000000 */ nop -.L80813D88: -/* 00568 80813D88 0C03B616 */ jal func_800ED858 -/* 0056C 80813D8C A68001E4 */ sh $zero, 0x01E4($s4) ## 000001E4 -/* 00570 80813D90 10000012 */ beq $zero, $zero, .L80813DDC -/* 00574 80813D94 00000000 */ nop -/* 00578 80813D98 24010008 */ addiu $at, $zero, 0x0008 ## $at = 00000008 -.L80813D9C: -/* 0057C 80813D9C 1441000F */ bne $v0, $at, .L80813DDC -/* 00580 80813DA0 00000000 */ nop -/* 00584 80813DA4 96AF0020 */ lhu $t7, 0x0020($s5) ## 8082A170 -/* 00588 80813DA8 3C01FFFF */ lui $at, 0xFFFF ## $at = FFFF0000 -/* 0058C 80813DAC 34217FFF */ ori $at, $at, 0x7FFF ## $at = FFFF7FFF -/* 00590 80813DB0 01E17027 */ nor $t6, $t7, $at -/* 00594 80813DB4 15C00009 */ bne $t6, $zero, .L80813DDC -/* 00598 80813DB8 2AE10006 */ slti $at, $s7, 0x0006 -/* 0059C 80813DBC 14200007 */ bne $at, $zero, .L80813DDC -/* 005A0 80813DC0 2AE10012 */ slti $at, $s7, 0x0012 -/* 005A4 80813DC4 10200005 */ beq $at, $zero, .L80813DDC -/* 005A8 80813DC8 24180009 */ addiu $t8, $zero, 0x0009 ## $t8 = 00000009 -/* 005AC 80813DCC A69801E4 */ sh $t8, 0x01E4($s4) ## 000001E4 -/* 005B0 80813DD0 2402000A */ addiu $v0, $zero, 0x000A ## $v0 = 0000000A -/* 005B4 80813DD4 3C018083 */ lui $at, %hi(D_8082A120) ## $at = 80830000 -/* 005B8 80813DD8 A422A120 */ sh $v0, %lo(D_8082A120)($at) -.L80813DDC: -/* 005BC 80813DDC 10000072 */ beq $zero, $zero, .L80813FA8 -/* 005C0 80813DE0 A7B70216 */ sh $s7, 0x0216($sp) -.L80813DE4: -/* 005C4 80813DE4 54410035 */ bnel $v0, $at, .L80813EBC -/* 005C8 80813DE8 86980214 */ lh $t8, 0x0214($s4) ## 00000214 -/* 005CC 80813DEC 86990214 */ lh $t9, 0x0214($s4) ## 00000214 -/* 005D0 80813DF0 240F0015 */ addiu $t7, $zero, 0x0015 ## $t7 = 00000015 -/* 005D4 80813DF4 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -/* 005D8 80813DF8 2B21001F */ slti $at, $t9, 0x001F -/* 005DC 80813DFC 1420006A */ bne $at, $zero, .L80813FA8 -/* 005E0 80813E00 00000000 */ nop -/* 005E4 80813E04 A68F021C */ sh $t7, 0x021C($s4) ## 0000021C -/* 005E8 80813E08 8682021C */ lh $v0, 0x021C($s4) ## 0000021C -/* 005EC 80813E0C A680025C */ sh $zero, 0x025C($s4) ## 0000025C -/* 005F0 80813E10 A6800238 */ sh $zero, 0x0238($s4) ## 00000238 -/* 005F4 80813E14 00022880 */ sll $a1, $v0, 2 -/* 005F8 80813E18 30A5FFFF */ andi $a1, $a1, 0xFFFF ## $a1 = 00000000 -/* 005FC 80813E1C 0C206785 */ jal KaleidoScope_SetCursorVtx -/* 00600 80813E20 8E860164 */ lw $a2, 0x0164($s4) ## 00000164 -/* 00604 80813E24 3C078013 */ lui $a3, %hi(D_801333E0) -/* 00608 80813E28 3C0E8013 */ lui $t6, %hi(D_801333E8) -/* 0060C 80813E2C 24E733E0 */ addiu $a3, %lo(D_801333E0) -/* 00610 80813E30 25CE33E8 */ addiu $t6, %lo(D_801333E8) -/* 00614 80813E34 3C058013 */ lui $a1, %hi(D_801333D4) -/* 00618 80813E38 24A533D4 */ addiu $a1, %lo(D_801333D4) -/* 0061C 80813E3C AFAE0014 */ sw $t6, 0x0014($sp) -/* 00620 80813E40 AFA70010 */ sw $a3, 0x0010($sp) -/* 00624 80813E44 24044809 */ addiu $a0, $zero, 0x4809 ## $a0 = 00004809 -/* 00628 80813E48 0C03DCE3 */ jal Audio_PlaySoundGeneral - -/* 0062C 80813E4C 24060004 */ addiu $a2, $zero, 0x0004 ## $a2 = 00000004 -/* 00630 80813E50 8686021C */ lh $a2, 0x021C($s4) ## 0000021C -/* 00634 80813E54 3C198012 */ lui $t9, %hi(gBitFlags) -/* 00638 80813E58 3C0F8016 */ lui $t7, %hi(gSaveContext+0xa4) -/* 0063C 80813E5C 0006C080 */ sll $t8, $a2, 2 -/* 00640 80813E60 0338C821 */ addu $t9, $t9, $t8 -/* 00644 80813E64 8F397120 */ lw $t9, %lo(gBitFlags)($t9) -/* 00648 80813E68 8DEFE704 */ lw $t7, %lo(gSaveContext+0xa4)($t7) -/* 0064C 80813E6C 241003E7 */ addiu $s0, $zero, 0x03E7 ## $s0 = 000003E7 -/* 00650 80813E70 032F7024 */ and $t6, $t9, $t7 -/* 00654 80813E74 11C00005 */ beq $t6, $zero, .L80813E8C -/* 00658 80813E78 00000000 */ nop -/* 0065C 80813E7C 24D0005A */ addiu $s0, $a2, 0x005A ## $s0 = 0000005A -/* 00660 80813E80 00108400 */ sll $s0, $s0, 16 -/* 00664 80813E84 10000001 */ beq $zero, $zero, .L80813E8C -/* 00668 80813E88 00108403 */ sra $s0, $s0, 16 -.L80813E8C: -/* 0066C 80813E8C A7A60216 */ sh $a2, 0x0216($sp) -/* 00670 80813E90 969801E8 */ lhu $t8, 0x01E8($s4) ## 000001E8 -/* 00674 80813E94 0018C840 */ sll $t9, $t8, 1 -/* 00678 80813E98 02997821 */ addu $t7, $s4, $t9 -/* 0067C 80813E9C A5F0023E */ sh $s0, 0x023E($t7) ## 8016023E -/* 00680 80813EA0 969801E8 */ lhu $t8, 0x01E8($s4) ## 000001E8 -/* 00684 80813EA4 87AE0216 */ lh $t6, 0x0216($sp) -/* 00688 80813EA8 0018C840 */ sll $t9, $t8, 1 -/* 0068C 80813EAC 02997821 */ addu $t7, $s4, $t9 -/* 00690 80813EB0 1000003D */ beq $zero, $zero, .L80813FA8 -/* 00694 80813EB4 A5EE0246 */ sh $t6, 0x0246($t7) ## 80160246 -/* 00698 80813EB8 86980214 */ lh $t8, 0x0214($s4) ## 00000214 -.L80813EBC: -/* 0069C 80813EBC 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -/* 006A0 80813EC0 2B01FFE2 */ slti $at, $t8, 0xFFE2 -/* 006A4 80813EC4 10200038 */ beq $at, $zero, .L80813FA8 -/* 006A8 80813EC8 00000000 */ nop -/* 006AC 80813ECC A680021C */ sh $zero, 0x021C($s4) ## 0000021C -/* 006B0 80813ED0 8682021C */ lh $v0, 0x021C($s4) ## 0000021C -/* 006B4 80813ED4 A680025C */ sh $zero, 0x025C($s4) ## 0000025C -/* 006B8 80813ED8 A6800238 */ sh $zero, 0x0238($s4) ## 00000238 -/* 006BC 80813EDC 00022880 */ sll $a1, $v0, 2 -/* 006C0 80813EE0 30A5FFFF */ andi $a1, $a1, 0xFFFF ## $a1 = 00000000 -/* 006C4 80813EE4 0C206785 */ jal KaleidoScope_SetCursorVtx -/* 006C8 80813EE8 8E860164 */ lw $a2, 0x0164($s4) ## 00000164 -/* 006CC 80813EEC 3C078013 */ lui $a3, %hi(D_801333E0) -/* 006D0 80813EF0 3C198013 */ lui $t9, %hi(D_801333E8) -/* 006D4 80813EF4 24E733E0 */ addiu $a3, %lo(D_801333E0) -/* 006D8 80813EF8 273933E8 */ addiu $t9, %lo(D_801333E8) -/* 006DC 80813EFC 3C058013 */ lui $a1, %hi(D_801333D4) -/* 006E0 80813F00 24A533D4 */ addiu $a1, %lo(D_801333D4) -/* 006E4 80813F04 AFB90014 */ sw $t9, 0x0014($sp) -/* 006E8 80813F08 AFA70010 */ sw $a3, 0x0010($sp) -/* 006EC 80813F0C 24044809 */ addiu $a0, $zero, 0x4809 ## $a0 = 00004809 -/* 006F0 80813F10 0C03DCE3 */ jal Audio_PlaySoundGeneral - -/* 006F4 80813F14 24060004 */ addiu $a2, $zero, 0x0004 ## $a2 = 00000004 -/* 006F8 80813F18 8686021C */ lh $a2, 0x021C($s4) ## 0000021C -/* 006FC 80813F1C 3C0F8012 */ lui $t7, %hi(gBitFlags) -/* 00700 80813F20 3C188016 */ lui $t8, %hi(gSaveContext+0xa4) -/* 00704 80813F24 00067080 */ sll $t6, $a2, 2 -/* 00708 80813F28 01EE7821 */ addu $t7, $t7, $t6 -/* 0070C 80813F2C 8DEF7120 */ lw $t7, %lo(gBitFlags)($t7) -/* 00710 80813F30 8F18E704 */ lw $t8, %lo(gSaveContext+0xa4)($t8) -/* 00714 80813F34 241003E7 */ addiu $s0, $zero, 0x03E7 ## $s0 = 000003E7 -/* 00718 80813F38 28C10006 */ slti $at, $a2, 0x0006 -/* 0071C 80813F3C 01F8C824 */ and $t9, $t7, $t8 -/* 00720 80813F40 13200010 */ beq $t9, $zero, .L80813F84 -/* 00724 80813F44 00000000 */ nop -/* 00728 80813F48 10200004 */ beq $at, $zero, .L80813F5C -/* 0072C 80813F4C 24D00066 */ addiu $s0, $a2, 0x0066 ## $s0 = 00000066 -/* 00730 80813F50 00108400 */ sll $s0, $s0, 16 -/* 00734 80813F54 1000000B */ beq $zero, $zero, .L80813F84 -/* 00738 80813F58 00108403 */ sra $s0, $s0, 16 -.L80813F5C: -/* 0073C 80813F5C 28C1000C */ slti $at, $a2, 0x000C -/* 00740 80813F60 10200005 */ beq $at, $zero, .L80813F78 -/* 00744 80813F64 24D00069 */ addiu $s0, $a2, 0x0069 ## $s0 = 00000069 -/* 00748 80813F68 24D0004E */ addiu $s0, $a2, 0x004E ## $s0 = 0000004E -/* 0074C 80813F6C 00108400 */ sll $s0, $s0, 16 -/* 00750 80813F70 10000004 */ beq $zero, $zero, .L80813F84 -/* 00754 80813F74 00108403 */ sra $s0, $s0, 16 -.L80813F78: -/* 00758 80813F78 00108400 */ sll $s0, $s0, 16 -/* 0075C 80813F7C 10000001 */ beq $zero, $zero, .L80813F84 -/* 00760 80813F80 00108403 */ sra $s0, $s0, 16 -.L80813F84: -/* 00764 80813F84 968E01E8 */ lhu $t6, 0x01E8($s4) ## 000001E8 -/* 00768 80813F88 000E7840 */ sll $t7, $t6, 1 -/* 0076C 80813F8C 028FC021 */ addu $t8, $s4, $t7 -/* 00770 80813F90 A710023E */ sh $s0, 0x023E($t8) ## 8016023E -/* 00774 80813F94 969901E8 */ lhu $t9, 0x01E8($s4) ## 000001E8 -/* 00778 80813F98 00197040 */ sll $t6, $t9, 1 -/* 0077C 80813F9C 028E7821 */ addu $t7, $s4, $t6 -/* 00780 80813FA0 A5E60246 */ sh $a2, 0x0246($t7) ## 80120246 -/* 00784 80813FA4 A7A60216 */ sh $a2, 0x0216($sp) -.L80813FA8: -/* 00788 80813FA8 3C128083 */ lui $s2, %hi(D_8082A124) ## $s2 = 80830000 -/* 0078C 80813FAC 2652A124 */ addiu $s2, $s2, %lo(D_8082A124) ## $s2 = 8082A124 -/* 00790 80813FB0 241000FF */ addiu $s0, $zero, 0x00FF ## $s0 = 000000FF -/* 00794 80813FB4 1000005D */ beq $zero, $zero, .L8081412C -/* 00798 80813FB8 87B70216 */ lh $s7, 0x0216($sp) -/* 0079C 80813FBC 24010009 */ addiu $at, $zero, 0x0009 ## $at = 00000009 -.L80813FC0: -/* 007A0 80813FC0 1461004F */ bne $v1, $at, .L80814100 -/* 007A4 80813FC4 3C028083 */ lui $v0, %hi(D_8082A120) ## $v0 = 80830000 -/* 007A8 80813FC8 8442A120 */ lh $v0, %lo(D_8082A120)($v0) -/* 007AC 80813FCC 24180008 */ addiu $t8, $zero, 0x0008 ## $t8 = 00000008 -/* 007B0 80813FD0 A6980260 */ sh $t8, 0x0260($s4) ## 00000260 -/* 007B4 80813FD4 2442FFFF */ addiu $v0, $v0, 0xFFFF ## $v0 = 8082FFFF -/* 007B8 80813FD8 00021400 */ sll $v0, $v0, 16 -/* 007BC 80813FDC 00021403 */ sra $v0, $v0, 16 -/* 007C0 80813FE0 3C018083 */ lui $at, %hi(D_8082A120) ## $at = 80830000 -/* 007C4 80813FE4 14400041 */ bne $v0, $zero, .L808140EC -/* 007C8 80813FE8 A422A120 */ sh $v0, %lo(D_8082A120)($at) -/* 007CC 80813FEC 3C158083 */ lui $s5, %hi(D_8082A124) ## $s5 = 80830000 -/* 007D0 80813FF0 3C108083 */ lui $s0, %hi(D_8082A150) ## $s0 = 80830000 -/* 007D4 80813FF4 2610A150 */ addiu $s0, $s0, %lo(D_8082A150) ## $s0 = 8082A150 -/* 007D8 80813FF8 26B5A124 */ addiu $s5, $s5, %lo(D_8082A124) ## $s5 = 8082A124 -/* 007DC 80813FFC 00009825 */ or $s3, $zero, $zero ## $s3 = 00000000 -/* 007E0 80814000 241200FF */ addiu $s2, $zero, 0x00FF ## $s2 = 000000FF -.L80814004: -/* 007E4 80814004 02B3C821 */ addu $t9, $s5, $s3 -/* 007E8 80814008 00137040 */ sll $t6, $s3, 1 -/* 007EC 8081400C 26730001 */ addiu $s3, $s3, 0x0001 ## $s3 = 00000001 -/* 007F0 80814010 00139C00 */ sll $s3, $s3, 16 -/* 007F4 80814014 00139C03 */ sra $s3, $s3, 16 -/* 007F8 80814018 2A610008 */ slti $at, $s3, 0x0008 -/* 007FC 8081401C A3320000 */ sb $s2, 0x0000($t9) ## 00000000 -/* 00800 80814020 020E7821 */ addu $t7, $s0, $t6 -/* 00804 80814024 1420FFF7 */ bne $at, $zero, .L80814004 -/* 00808 80814028 A5E00000 */ sh $zero, 0x0000($t7) ## 80120000 -/* 0080C 8081402C 3C138016 */ lui $s3, %hi(gGameInfo) -/* 00810 80814030 3C018083 */ lui $at, %hi(D_8082A11C) ## $at = 80830000 -/* 00814 80814034 2673FA90 */ addiu $s3, %lo(gGameInfo) -/* 00818 80814038 A420A11C */ sh $zero, %lo(D_8082A11C)($at) -/* 0081C 8081403C 8E790000 */ lw $t9, 0x0000($s3) ## 8015FA90 -/* 00820 80814040 2418FFC2 */ addiu $t8, $zero, 0xFFC2 ## $t8 = FFFFFFC2 -/* 00824 80814044 240EFFC8 */ addiu $t6, $zero, 0xFFC8 ## $t6 = FFFFFFC8 -/* 00828 80814048 A7380F3E */ sh $t8, 0x0F3E($t9) ## 00000F3E -/* 0082C 8081404C 8E6F0000 */ lw $t7, 0x0000($s3) ## 8015FA90 -/* 00830 80814050 2418FFCF */ addiu $t8, $zero, 0xFFCF ## $t8 = FFFFFFCF -/* 00834 80814054 24040001 */ addiu $a0, $zero, 0x0001 ## $a0 = 00000001 -/* 00838 80814058 A5EE0F40 */ sh $t6, 0x0F40($t7) ## 80120F40 -/* 0083C 8081405C 8E790000 */ lw $t9, 0x0000($s3) ## 8015FA90 -/* 00840 80814060 240EFFD2 */ addiu $t6, $zero, 0xFFD2 ## $t6 = FFFFFFD2 -/* 00844 80814064 A7380F42 */ sh $t8, 0x0F42($t9) ## 00000F42 -/* 00848 80814068 8E6F0000 */ lw $t7, 0x0000($s3) ## 8015FA90 -/* 0084C 8081406C 2418FFD7 */ addiu $t8, $zero, 0xFFD7 ## $t8 = FFFFFFD7 -/* 00850 80814070 A5EE0F44 */ sh $t6, 0x0F44($t7) ## 80120F44 -/* 00854 80814074 8E790000 */ lw $t9, 0x0000($s3) ## 8015FA90 -/* 00858 80814078 A7380F46 */ sh $t8, 0x0F46($t9) ## 00000F46 -/* 0085C 8081407C 0C03B616 */ jal func_800ED858 -/* 00860 80814080 8696024A */ lh $s6, 0x024A($s4) ## 0000024A -/* 00864 80814084 0C03B616 */ jal func_800ED858 -/* 00868 80814088 24040001 */ addiu $a0, $zero, 0x0001 ## $a0 = 00000001 -/* 0086C 8081408C 00167040 */ sll $t6, $s6, 1 -/* 00870 80814090 3C0F8015 */ lui $t7, %hi(D_80153960) -/* 00874 80814094 01EE7821 */ addu $t7, $t7, $t6 -/* 00878 80814098 85EF3960 */ lh $t7, %lo(D_80153960)($t7) -/* 0087C 8081409C 24050001 */ addiu $a1, $zero, 0x0001 ## $a1 = 00000001 -/* 00880 808140A0 A68F0264 */ sh $t7, 0x0264($s4) ## 00000264 -/* 00884 808140A4 86840264 */ lh $a0, 0x0264($s4) ## 00000264 -/* 00888 808140A8 24840001 */ addiu $a0, $a0, 0x0001 ## $a0 = 00000001 -/* 0088C 808140AC 00042600 */ sll $a0, $a0, 24 -/* 00890 808140B0 0C03B64F */ jal func_800ED93C -/* 00894 808140B4 00042603 */ sra $a0, $a0, 24 -/* 00898 808140B8 24180002 */ addiu $t8, $zero, 0x0002 ## $t8 = 00000002 -/* 0089C 808140BC 0C03B8FE */ jal Audio_OcaGetDisplayStaff -/* 008A0 808140C0 A69801E4 */ sh $t8, 0x01E4($s4) ## 000001E4 -/* 008A4 808140C4 AE820194 */ sw $v0, 0x0194($s4) ## 00000194 -/* 008A8 808140C8 A0400002 */ sb $zero, 0x0002($v0) ## 00000002 -/* 008AC 808140CC 9699024A */ lhu $t9, 0x024A($s4) ## 0000024A -/* 008B0 808140D0 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -/* 008B4 808140D4 A7B90216 */ sh $t9, 0x0216($sp) -/* 008B8 808140D8 87A50216 */ lh $a1, 0x0216($sp) -/* 008BC 808140DC 8E860164 */ lw $a2, 0x0164($s4) ## 00000164 -/* 008C0 808140E0 00052880 */ sll $a1, $a1, 2 -/* 008C4 808140E4 0C206785 */ jal KaleidoScope_SetCursorVtx -/* 008C8 808140E8 30A5FFFF */ andi $a1, $a1, 0xFFFF ## $a1 = 00000000 -.L808140EC: -/* 008CC 808140EC 3C0F8083 */ lui $t7, %hi(D_8082A124) ## $t7 = 80830000 -/* 008D0 808140F0 25F2A124 */ addiu $s2, $t7, %lo(D_8082A124) ## $s2 = 8082A124 -/* 008D4 808140F4 87B70216 */ lh $s7, 0x0216($sp) -/* 008D8 808140F8 1000000C */ beq $zero, $zero, .L8081412C -/* 008DC 808140FC 241000FF */ addiu $s0, $zero, 0x00FF ## $s0 = 000000FF -.L80814100: -/* 008E0 80814100 8690024A */ lh $s0, 0x024A($s4) ## 0000024A -/* 008E4 80814104 02802025 */ or $a0, $s4, $zero ## $a0 = 00000000 -/* 008E8 80814108 8E860164 */ lw $a2, 0x0164($s4) ## 00000164 -/* 008EC 8081410C 00102880 */ sll $a1, $s0, 2 -/* 008F0 80814110 0C206785 */ jal KaleidoScope_SetCursorVtx -/* 008F4 80814114 30A5FFFF */ andi $a1, $a1, 0xFFFF ## $a1 = 00000000 -/* 008F8 80814118 A7B00216 */ sh $s0, 0x0216($sp) -/* 008FC 8081411C 3C128083 */ lui $s2, %hi(D_8082A124) ## $s2 = 80830000 -/* 00900 80814120 2652A124 */ addiu $s2, $s2, %lo(D_8082A124) ## $s2 = 8082A124 -/* 00904 80814124 87B70216 */ lh $s7, 0x0216($sp) -/* 00908 80814128 241000FF */ addiu $s0, $zero, 0x00FF ## $s0 = 000000FF -.L8081412C: -/* 0090C 8081412C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00910 80814130 3C16E700 */ lui $s6, 0xE700 ## $s6 = E7000000 -/* 00914 80814134 3C0EFA00 */ lui $t6, 0xFA00 ## $t6 = FA000000 -/* 00918 80814138 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 0091C 8081413C AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 00920 80814140 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 00924 80814144 ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 00928 80814148 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 0092C 8081414C 2401FF00 */ addiu $at, $zero, 0xFF00 ## $at = FFFFFF00 -/* 00930 80814150 3C138083 */ lui $s3, %hi(D_8082A0FC) ## $s3 = 80830000 -/* 00934 80814154 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 00938 80814158 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 0093C 8081415C ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 00940 80814160 968F0208 */ lhu $t7, 0x0208($s4) ## 00000208 -/* 00944 80814164 3C158083 */ lui $s5, %hi(D_8082A100) ## $s5 = 80830000 -/* 00948 80814168 00004025 */ or $t0, $zero, $zero ## $t0 = 00000000 -/* 0094C 8081416C 31F800FF */ andi $t8, $t7, 0x00FF ## $t8 = 00000000 -/* 00950 80814170 0301C825 */ or $t9, $t8, $at ## $t9 = FFFFFF00 -/* 00954 80814174 ACB90004 */ sw $t9, 0x0004($a1) ## 00000004 -/* 00958 80814178 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 0095C 8081417C 3C18552E */ lui $t8, 0x552E ## $t8 = 552E0000 -/* 00960 80814180 3C0FFC30 */ lui $t7, 0xFC30 ## $t7 = FC300000 -/* 00964 80814184 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 00968 80814188 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 0096C 8081418C 35EF9661 */ ori $t7, $t7, 0x9661 ## $t7 = FC309661 -/* 00970 80814190 3718FF7F */ ori $t8, $t8, 0xFF7F ## $t8 = 552EFF7F -/* 00974 80814194 ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 00978 80814198 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 0097C 8081419C 8673A0FC */ lh $s3, %lo(D_8082A0FC)($s3) -/* 00980 808141A0 A7B70216 */ sh $s7, 0x0216($sp) -/* 00984 808141A4 24170001 */ addiu $s7, $zero, 0x0001 ## $s7 = 00000001 -/* 00988 808141A8 2673FFFF */ addiu $s3, $s3, 0xFFFF ## $s3 = 8082FFFF -/* 0098C 808141AC 00139C00 */ sll $s3, $s3, 16 -/* 00990 808141B0 00139C03 */ sra $s3, $s3, 16 -/* 00994 808141B4 86B5A100 */ lh $s5, %lo(D_8082A100)($s5) -/* 00998 808141B8 00004825 */ or $t1, $zero, $zero ## $t1 = 00000000 -/* 0099C 808141BC 241E0003 */ addiu $s8, $zero, 0x0003 ## $s8 = 00000003 -.L808141C0: -/* 009A0 808141C0 3C198016 */ lui $t9, %hi(gSaveContext+0xa4) -/* 009A4 808141C4 8F39E704 */ lw $t9, %lo(gSaveContext+0xa4)($t9) -/* 009A8 808141C8 12B70094 */ beq $s5, $s7, .L8081441C -/* 009AC 808141CC AFB90078 */ sw $t9, 0x0078($sp) -/* 009B0 808141D0 52BE0093 */ beql $s5, $s8, .L80814420 -/* 009B4 808141D4 00081880 */ sll $v1, $t0, 2 -/* 009B8 808141D8 12A00005 */ beq $s5, $zero, .L808141F0 -/* 009BC 808141DC 00081C00 */ sll $v1, $t0, 16 -/* 009C0 808141E0 25030006 */ addiu $v1, $t0, 0x0006 ## $v1 = 00000006 -/* 009C4 808141E4 00031C00 */ sll $v1, $v1, 16 -/* 009C8 808141E8 10000002 */ beq $zero, $zero, .L808141F4 -/* 009CC 808141EC 00031C03 */ sra $v1, $v1, 16 -.L808141F0: -/* 009D0 808141F0 00031C03 */ sra $v1, $v1, 16 -.L808141F4: -/* 009D4 808141F4 12600077 */ beq $s3, $zero, .L808143D4 -/* 009D8 808141F8 00083040 */ sll $a2, $t0, 1 -/* 009DC 808141FC 00037880 */ sll $t7, $v1, 2 -/* 009E0 80814200 01E37823 */ subu $t7, $t7, $v1 -/* 009E4 80814204 3C0E8083 */ lui $t6, %hi(D_8082A0D8) ## $t6 = 80830000 -/* 009E8 80814208 3C188083 */ lui $t8, %hi(D_8082A090) ## $t8 = 80830000 -/* 009EC 8081420C 2718A090 */ addiu $t8, $t8, %lo(D_8082A090) ## $t8 = 8082A090 -/* 009F0 80814210 25CEA0D8 */ addiu $t6, $t6, %lo(D_8082A0D8) ## $t6 = 8082A0D8 -/* 009F4 80814214 000F7840 */ sll $t7, $t7, 1 -/* 009F8 80814218 00083040 */ sll $a2, $t0, 1 -/* 009FC 8081421C 00CE5821 */ addu $t3, $a2, $t6 -/* 00A00 80814220 01F81021 */ addu $v0, $t7, $t8 -/* 00A04 80814224 845F0000 */ lh $ra, 0x0000($v0) ## 00000000 -/* 00A08 80814228 85650000 */ lh $a1, 0x0000($t3) ## 00000000 -/* 00A0C 8081422C 3C0E8083 */ lui $t6, %hi(D_8082A0E4) ## $t6 = 80830000 -/* 00A10 80814230 25CEA0E4 */ addiu $t6, $t6, %lo(D_8082A0E4) ## $t6 = 8082A0E4 -/* 00A14 80814234 00BF2023 */ subu $a0, $a1, $ra -/* 00A18 80814238 04800003 */ bltz $a0, .L80814248 -/* 00A1C 8081423C 00CE6021 */ addu $t4, $a2, $t6 -/* 00A20 80814240 10000002 */ beq $zero, $zero, .L8081424C -/* 00A24 80814244 00805025 */ or $t2, $a0, $zero ## $t2 = 00000000 -.L80814248: -/* 00A28 80814248 00045023 */ subu $t2, $zero, $a0 -.L8081424C: -/* 00A2C 8081424C 0153001A */ div $zero, $t2, $s3 -/* 00A30 80814250 85840000 */ lh $a0, 0x0000($t4) ## 00000000 -/* 00A34 80814254 84500002 */ lh $s0, 0x0002($v0) ## 00000002 -/* 00A38 80814258 0000C812 */ mflo $t9 -/* 00A3C 8081425C A7B90226 */ sh $t9, 0x0226($sp) -/* 00A40 80814260 16600002 */ bne $s3, $zero, .L8081426C -/* 00A44 80814264 00000000 */ nop -/* 00A48 80814268 0007000D */ break 7 -.L8081426C: -/* 00A4C 8081426C 2401FFFF */ addiu $at, $zero, 0xFFFF ## $at = FFFFFFFF -/* 00A50 80814270 16610004 */ bne $s3, $at, .L80814284 -/* 00A54 80814274 3C018000 */ lui $at, 0x8000 ## $at = 80000000 -/* 00A58 80814278 15410002 */ bne $t2, $at, .L80814284 -/* 00A5C 8081427C 00000000 */ nop -/* 00A60 80814280 0006000D */ break 6 -.L80814284: -/* 00A64 80814284 00901823 */ subu $v1, $a0, $s0 -/* 00A68 80814288 04600003 */ bltz $v1, .L80814298 -/* 00A6C 8081428C 3C188083 */ lui $t8, %hi(D_8082A0F0) ## $t8 = 80830000 -/* 00A70 80814290 10000002 */ beq $zero, $zero, .L8081429C -/* 00A74 80814294 00605025 */ or $t2, $v1, $zero ## $t2 = 00000006 -.L80814298: -/* 00A78 80814298 00035023 */ subu $t2, $zero, $v1 -.L8081429C: -/* 00A7C 8081429C 0153001A */ div $zero, $t2, $s3 -/* 00A80 808142A0 2718A0F0 */ addiu $t8, $t8, %lo(D_8082A0F0) ## $t8 = 8082A0F0 -/* 00A84 808142A4 00D86821 */ addu $t5, $a2, $t8 -/* 00A88 808142A8 85A70000 */ lh $a3, 0x0000($t5) ## 00000000 -/* 00A8C 808142AC 84520004 */ lh $s2, 0x0004($v0) ## 00000004 -/* 00A90 808142B0 16600002 */ bne $s3, $zero, .L808142BC -/* 00A94 808142B4 00000000 */ nop -/* 00A98 808142B8 0007000D */ break 7 -.L808142BC: -/* 00A9C 808142BC 2401FFFF */ addiu $at, $zero, 0xFFFF ## $at = FFFFFFFF -/* 00AA0 808142C0 16610004 */ bne $s3, $at, .L808142D4 -/* 00AA4 808142C4 3C018000 */ lui $at, 0x8000 ## $at = 80000000 -/* 00AA8 808142C8 15410002 */ bne $t2, $at, .L808142D4 -/* 00AAC 808142CC 00000000 */ nop -/* 00AB0 808142D0 0006000D */ break 6 -.L808142D4: -/* 00AB4 808142D4 00007812 */ mflo $t7 -/* 00AB8 808142D8 00F21823 */ subu $v1, $a3, $s2 -/* 00ABC 808142DC A7AF0224 */ sh $t7, 0x0224($sp) -/* 00AC0 808142E0 04600004 */ bltz $v1, .L808142F4 -/* 00AC4 808142E4 00BF082A */ slt $at, $a1, $ra -/* 00AC8 808142E8 87A60224 */ lh $a2, 0x0224($sp) -/* 00ACC 808142EC 10000003 */ beq $zero, $zero, .L808142FC -/* 00AD0 808142F0 00605025 */ or $t2, $v1, $zero ## $t2 = 00000006 -.L808142F4: -/* 00AD4 808142F4 87A60224 */ lh $a2, 0x0224($sp) -/* 00AD8 808142F8 00035023 */ subu $t2, $zero, $v1 -.L808142FC: -/* 00ADC 808142FC 54200006 */ bnel $at, $zero, .L80814318 -/* 00AE0 80814300 87AF0226 */ lh $t7, 0x0226($sp) -/* 00AE4 80814304 87B90226 */ lh $t9, 0x0226($sp) -/* 00AE8 80814308 00B97023 */ subu $t6, $a1, $t9 -/* 00AEC 8081430C 10000004 */ beq $zero, $zero, .L80814320 -/* 00AF0 80814310 A56E0000 */ sh $t6, 0x0000($t3) ## 00000000 -/* 00AF4 80814314 87AF0226 */ lh $t7, 0x0226($sp) -.L80814318: -/* 00AF8 80814318 00AFC021 */ addu $t8, $a1, $t7 -/* 00AFC 8081431C A5780000 */ sh $t8, 0x0000($t3) ## 00000000 -.L80814320: -/* 00B00 80814320 0090082A */ slt $at, $a0, $s0 -/* 00B04 80814324 54200005 */ bnel $at, $zero, .L8081433C -/* 00B08 80814328 00867021 */ addu $t6, $a0, $a2 -/* 00B0C 8081432C 0086C823 */ subu $t9, $a0, $a2 -/* 00B10 80814330 10000003 */ beq $zero, $zero, .L80814340 -/* 00B14 80814334 A5990000 */ sh $t9, 0x0000($t4) ## 00000000 -/* 00B18 80814338 00867021 */ addu $t6, $a0, $a2 -.L8081433C: -/* 00B1C 8081433C A58E0000 */ sh $t6, 0x0000($t4) ## 00000000 -.L80814340: -/* 00B20 80814340 00F2082A */ slt $at, $a3, $s2 -/* 00B24 80814344 14200012 */ bne $at, $zero, .L80814390 -/* 00B28 80814348 00000000 */ nop -/* 00B2C 8081434C 0153001A */ div $zero, $t2, $s3 -/* 00B30 80814350 00007812 */ mflo $t7 -/* 00B34 80814354 000FC400 */ sll $t8, $t7, 16 -/* 00B38 80814358 0018CC03 */ sra $t9, $t8, 16 -/* 00B3C 8081435C 00F97023 */ subu $t6, $a3, $t9 -/* 00B40 80814360 16600002 */ bne $s3, $zero, .L8081436C -/* 00B44 80814364 00000000 */ nop -/* 00B48 80814368 0007000D */ break 7 -.L8081436C: -/* 00B4C 8081436C 2401FFFF */ addiu $at, $zero, 0xFFFF ## $at = FFFFFFFF -/* 00B50 80814370 16610004 */ bne $s3, $at, .L80814384 -/* 00B54 80814374 3C018000 */ lui $at, 0x8000 ## $at = 80000000 -/* 00B58 80814378 15410002 */ bne $t2, $at, .L80814384 -/* 00B5C 8081437C 00000000 */ nop -/* 00B60 80814380 0006000D */ break 6 -.L80814384: -/* 00B64 80814384 A5AE0000 */ sh $t6, 0x0000($t5) ## 00000000 -/* 00B68 80814388 10000025 */ beq $zero, $zero, .L80814420 -/* 00B6C 8081438C 00081880 */ sll $v1, $t0, 2 -.L80814390: -/* 00B70 80814390 0153001A */ div $zero, $t2, $s3 -/* 00B74 80814394 00007812 */ mflo $t7 -/* 00B78 80814398 000FC400 */ sll $t8, $t7, 16 -/* 00B7C 8081439C 0018CC03 */ sra $t9, $t8, 16 -/* 00B80 808143A0 00F97021 */ addu $t6, $a3, $t9 -/* 00B84 808143A4 16600002 */ bne $s3, $zero, .L808143B0 -/* 00B88 808143A8 00000000 */ nop -/* 00B8C 808143AC 0007000D */ break 7 -.L808143B0: -/* 00B90 808143B0 2401FFFF */ addiu $at, $zero, 0xFFFF ## $at = FFFFFFFF -/* 00B94 808143B4 16610004 */ bne $s3, $at, .L808143C8 -/* 00B98 808143B8 3C018000 */ lui $at, 0x8000 ## $at = 80000000 -/* 00B9C 808143BC 15410002 */ bne $t2, $at, .L808143C8 -/* 00BA0 808143C0 00000000 */ nop -/* 00BA4 808143C4 0006000D */ break 6 -.L808143C8: -/* 00BA8 808143C8 A5AE0000 */ sh $t6, 0x0000($t5) ## 00000000 -/* 00BAC 808143CC 10000014 */ beq $zero, $zero, .L80814420 -/* 00BB0 808143D0 00081880 */ sll $v1, $t0, 2 -.L808143D4: -/* 00BB4 808143D4 00037880 */ sll $t7, $v1, 2 -/* 00BB8 808143D8 01E37823 */ subu $t7, $t7, $v1 -/* 00BBC 808143DC 3C188083 */ lui $t8, %hi(D_8082A090) ## $t8 = 80830000 -/* 00BC0 808143E0 2718A090 */ addiu $t8, $t8, %lo(D_8082A090) ## $t8 = 8082A090 -/* 00BC4 808143E4 000F7840 */ sll $t7, $t7, 1 -/* 00BC8 808143E8 01F81021 */ addu $v0, $t7, $t8 -/* 00BCC 808143EC 84590000 */ lh $t9, 0x0000($v0) ## 00000000 -/* 00BD0 808143F0 3C018083 */ lui $at, %hi(D_8082A0D8) ## $at = 80830000 -/* 00BD4 808143F4 00260821 */ addu $at, $at, $a2 -/* 00BD8 808143F8 A439A0D8 */ sh $t9, %lo(D_8082A0D8)($at) -/* 00BDC 808143FC 844E0002 */ lh $t6, 0x0002($v0) ## 00000002 -/* 00BE0 80814400 3C018083 */ lui $at, %hi(D_8082A0E4) ## $at = 80830000 -/* 00BE4 80814404 00260821 */ addu $at, $at, $a2 -/* 00BE8 80814408 A42EA0E4 */ sh $t6, %lo(D_8082A0E4)($at) -/* 00BEC 8081440C 844F0004 */ lh $t7, 0x0004($v0) ## 00000004 -/* 00BF0 80814410 3C018083 */ lui $at, %hi(D_8082A0F0) ## $at = 80830000 -/* 00BF4 80814414 00260821 */ addu $at, $at, $a2 -/* 00BF8 80814418 A42FA0F0 */ sh $t7, %lo(D_8082A0F0)($at) -.L8081441C: -/* 00BFC 8081441C 00081880 */ sll $v1, $t0, 2 -.L80814420: -/* 00C00 80814420 3C188012 */ lui $t8, %hi(gBitFlags) -/* 00C04 80814424 0303C021 */ addu $t8, $t8, $v1 -/* 00C08 80814428 8F187120 */ lw $t8, %lo(gBitFlags)($t8) -/* 00C0C 8081442C 8FB90078 */ lw $t9, 0x0078($sp) -/* 00C10 80814430 3C0F8083 */ lui $t7, %hi(D_8082A0D8) ## $t7 = 80830000 -/* 00C14 80814434 3C018083 */ lui $at, %hi(D_8082A0FC) ## $at = 80830000 -/* 00C18 80814438 03197024 */ and $t6, $t8, $t9 -/* 00C1C 8081443C 11C00043 */ beq $t6, $zero, .L8081454C -/* 00C20 80814440 25EFA0D8 */ addiu $t7, $t7, %lo(D_8082A0D8) ## $t7 = 8082A0D8 -/* 00C24 80814444 A433A0FC */ sh $s3, %lo(D_8082A0FC)($at) -/* 00C28 80814448 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00C2C 8081444C 00083040 */ sll $a2, $t0, 1 -/* 00C30 80814450 3C188083 */ lui $t8, %hi(D_8082A0E4) ## $t8 = 80830000 -/* 00C34 80814454 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 00C38 80814458 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 00C3C 8081445C ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 00C40 80814460 ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 00C44 80814464 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00C48 80814468 2718A0E4 */ addiu $t8, $t8, %lo(D_8082A0E4) ## $t8 = 8082A0E4 -/* 00C4C 8081446C 00CF5821 */ addu $t3, $a2, $t7 -/* 00C50 80814470 00D86021 */ addu $t4, $a2, $t8 -/* 00C54 80814474 3C198083 */ lui $t9, %hi(D_8082A0F0) ## $t9 = 80830000 -/* 00C58 80814478 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 00C5C 8081447C 2739A0F0 */ addiu $t9, $t9, %lo(D_8082A0F0) ## $t9 = 8082A0F0 -/* 00C60 80814480 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 00C64 80814484 3C18FA00 */ lui $t8, 0xFA00 ## $t8 = FA000000 -/* 00C68 80814488 00D96821 */ addu $t5, $a2, $t9 -/* 00C6C 8081448C ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 00C70 80814490 96990208 */ lhu $t9, 0x0208($s4) ## 00000208 -/* 00C74 80814494 2401FF00 */ addiu $at, $zero, 0xFF00 ## $at = FFFFFF00 -/* 00C78 80814498 24060018 */ addiu $a2, $zero, 0x0018 ## $a2 = 00000018 -/* 00C7C 8081449C 332E00FF */ andi $t6, $t9, 0x00FF ## $t6 = 000000F0 -/* 00C80 808144A0 01C17825 */ or $t7, $t6, $at ## $t7 = FFFFFFF0 -/* 00C84 808144A4 ACAF0004 */ sw $t7, 0x0004($a1) ## 00000004 -/* 00C88 808144A8 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00C8C 808144AC 3C19FB00 */ lui $t9, 0xFB00 ## $t9 = FB000000 -/* 00C90 808144B0 02202025 */ or $a0, $s1, $zero ## $a0 = 00000000 -/* 00C94 808144B4 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 00C98 808144B8 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 00C9C 808144BC ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 00CA0 808144C0 85AE0000 */ lh $t6, 0x0000($t5) ## 00000000 -/* 00CA4 808144C4 24070018 */ addiu $a3, $zero, 0x0018 ## $a3 = 00000018 -/* 00CA8 808144C8 31CF00FF */ andi $t7, $t6, 0x00FF ## $t7 = 000000F0 -/* 00CAC 808144CC 856E0000 */ lh $t6, 0x0000($t3) ## 00000000 -/* 00CB0 808144D0 000FC200 */ sll $t8, $t7, 8 -/* 00CB4 808144D4 000E7E00 */ sll $t7, $t6, 24 -/* 00CB8 808144D8 858E0000 */ lh $t6, 0x0000($t4) ## 00000000 -/* 00CBC 808144DC 030FC825 */ or $t9, $t8, $t7 ## $t9 = 000000F8 -/* 00CC0 808144E0 31D800FF */ andi $t8, $t6, 0x00FF ## $t8 = 000000F0 -/* 00CC4 808144E4 00187C00 */ sll $t7, $t8, 16 -/* 00CC8 808144E8 032F7025 */ or $t6, $t9, $t7 ## $t6 = 000000F8 -/* 00CCC 808144EC ACAE0004 */ sw $t6, 0x0004($a1) ## 00000004 -/* 00CD0 808144F0 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00CD4 808144F4 3C190100 */ lui $t9, 0x0100 ## $t9 = 01000000 -/* 00CD8 808144F8 37394008 */ ori $t9, $t9, 0x4008 ## $t9 = 01004008 -/* 00CDC 808144FC 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 00CE0 80814500 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 00CE4 80814504 ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 00CE8 80814508 8E8F0164 */ lw $t7, 0x0164($s4) ## 00000164 -/* 00CEC 8081450C 00097100 */ sll $t6, $t1, 4 -/* 00CF0 80814510 01EEC021 */ addu $t8, $t7, $t6 -/* 00CF4 80814514 ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 00CF8 80814518 3C058012 */ lui $a1, %hi(gItemIcons+0x198) -/* 00CFC 8081451C 00A32821 */ addu $a1, $a1, $v1 -/* 00D00 80814520 8CA573F4 */ lw $a1, %lo(gItemIcons+0x198)($a1) -/* 00D04 80814524 A7A9021A */ sh $t1, 0x021A($sp) -/* 00D08 80814528 A7A80218 */ sh $t0, 0x0218($sp) -/* 00D0C 8081452C 0C207E1F */ jal KaleidoScope_DrawQuadTextureRGBA32 -/* 00D10 80814530 AFA00010 */ sw $zero, 0x0010($sp) -/* 00D14 80814534 3C158083 */ lui $s5, %hi(D_8082A100) ## $s5 = 80830000 -/* 00D18 80814538 3C138083 */ lui $s3, %hi(D_8082A0FC) ## $s3 = 80830000 -/* 00D1C 8081453C 8673A0FC */ lh $s3, %lo(D_8082A0FC)($s3) -/* 00D20 80814540 86B5A100 */ lh $s5, %lo(D_8082A100)($s5) -/* 00D24 80814544 87A80218 */ lh $t0, 0x0218($sp) -/* 00D28 80814548 87A9021A */ lh $t1, 0x021A($sp) -.L8081454C: -/* 00D2C 8081454C 25080001 */ addiu $t0, $t0, 0x0001 ## $t0 = 00000001 -/* 00D30 80814550 00084400 */ sll $t0, $t0, 16 -/* 00D34 80814554 00084403 */ sra $t0, $t0, 16 -/* 00D38 80814558 25290004 */ addiu $t1, $t1, 0x0004 ## $t1 = 00000004 -/* 00D3C 8081455C 00094C00 */ sll $t1, $t1, 16 -/* 00D40 80814560 29010006 */ slti $at, $t0, 0x0006 -/* 00D44 80814564 1420FF16 */ bne $at, $zero, .L808141C0 -/* 00D48 80814568 00094C03 */ sra $t1, $t1, 16 -/* 00D4C 8081456C 3C018083 */ lui $at, %hi(D_8082A0FC) ## $at = 80830000 -/* 00D50 80814570 16600011 */ bne $s3, $zero, .L808145B8 -/* 00D54 80814574 A433A0FC */ sh $s3, %lo(D_8082A0FC)($at) -/* 00D58 80814578 3C198016 */ lui $t9, %hi(gGameInfo) -/* 00D5C 8081457C 8F39FA90 */ lw $t9, %lo(gGameInfo)($t9) -/* 00D60 80814580 00157840 */ sll $t7, $s5, 1 -/* 00D64 80814584 26B50001 */ addiu $s5, $s5, 0x0001 ## $s5 = 80830001 -/* 00D68 80814588 032F7021 */ addu $t6, $t9, $t7 -/* 00D6C 8081458C 85D3080E */ lh $s3, 0x080E($t6) ## 0000080E -/* 00D70 80814590 3C018083 */ lui $at, %hi(D_8082A0FC) ## $at = 80830000 -/* 00D74 80814594 0015AC00 */ sll $s5, $s5, 16 -/* 00D78 80814598 A433A0FC */ sh $s3, %lo(D_8082A0FC)($at) -/* 00D7C 8081459C 3C018083 */ lui $at, %hi(D_8082A100) ## $at = 80830000 -/* 00D80 808145A0 0015AC03 */ sra $s5, $s5, 16 -/* 00D84 808145A4 A435A100 */ sh $s5, %lo(D_8082A100)($at) -/* 00D88 808145A8 2AA10004 */ slti $at, $s5, 0x0004 -/* 00D8C 808145AC 14200002 */ bne $at, $zero, .L808145B8 -/* 00D90 808145B0 3C018083 */ lui $at, %hi(D_8082A100) ## $at = 80830000 -/* 00D94 808145B4 A420A100 */ sh $zero, %lo(D_8082A100)($at) -.L808145B8: -/* 00D98 808145B8 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00D9C 808145BC 3C0FFA00 */ lui $t7, 0xFA00 ## $t7 = FA000000 -/* 00DA0 808145C0 2401FF00 */ addiu $at, $zero, 0xFF00 ## $at = FFFFFF00 -/* 00DA4 808145C4 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 00DA8 808145C8 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 00DAC 808145CC ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 00DB0 808145D0 ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 00DB4 808145D4 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00DB8 808145D8 3C150700 */ lui $s5, 0x0700 ## $s5 = 07000000 -/* 00DBC 808145DC 3C1EE600 */ lui $s8, 0xE600 ## $s8 = E6000000 -/* 00DC0 808145E0 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 00DC4 808145E4 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 00DC8 808145E8 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 00DCC 808145EC 968E0208 */ lhu $t6, 0x0208($s4) ## 00000208 -/* 00DD0 808145F0 3C17F200 */ lui $s7, 0xF200 ## $s7 = F2000000 -/* 00DD4 808145F4 3C0B8083 */ lui $t3, %hi(D_8082A17C) ## $t3 = 80830000 -/* 00DD8 808145F8 31D800FF */ andi $t8, $t6, 0x00FF ## $t8 = 00000000 -/* 00DDC 808145FC 0301C825 */ or $t9, $t8, $at ## $t9 = FFFFFF00 -/* 00DE0 80814600 ACB90004 */ sw $t9, 0x0004($a1) ## 00000004 -/* 00DE4 80814604 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00DE8 80814608 241800FF */ addiu $t8, $zero, 0x00FF ## $t8 = 000000FF -/* 00DEC 8081460C 3C0EFB00 */ lui $t6, 0xFB00 ## $t6 = FB000000 -/* 00DF0 80814610 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 00DF4 80814614 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 00DF8 80814618 ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 00DFC 8081461C ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 00E00 80814620 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00E04 80814624 3C0E0809 */ lui $t6, %hi(gSongNoteTex) ## $t6 = 08090000 -/* 00E08 80814628 25CE9440 */ addiu $t6, %lo(gSongNoteTex) ## $t6 = 08089440 -/* 00E0C 8081462C 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 00E10 80814630 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 00E14 80814634 3C0FFD70 */ lui $t7, 0xFD70 ## $t7 = FD700000 -/* 00E18 80814638 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 00E1C 8081463C ACAE0004 */ sw $t6, 0x0004($a1) ## 00000004 -/* 00E20 80814640 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00E24 80814644 3C19F570 */ lui $t9, 0xF570 ## $t9 = F5700000 -/* 00E28 80814648 3C0A8083 */ lui $t2, %hi(D_8082A164) ## $t2 = 80830000 -/* 00E2C 8081464C 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 00E30 80814650 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 00E34 80814654 ACB50004 */ sw $s5, 0x0004($a1) ## 00000004 -/* 00E38 80814658 ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 00E3C 8081465C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00E40 80814660 3C19070B */ lui $t9, 0x070B ## $t9 = 070B0000 -/* 00E44 80814664 3739F400 */ ori $t9, $t9, 0xF400 ## $t9 = 070BF400 -/* 00E48 80814668 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 00E4C 8081466C AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 00E50 80814670 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 00E54 80814674 ACBE0000 */ sw $s8, 0x0000($a1) ## 00000000 -/* 00E58 80814678 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00E5C 8081467C 3C18F300 */ lui $t8, 0xF300 ## $t8 = F3000000 -/* 00E60 80814680 3C078083 */ lui $a3, %hi(D_8082A194) ## $a3 = 80830000 -/* 00E64 80814684 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 00E68 80814688 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 00E6C 8081468C ACB90004 */ sw $t9, 0x0004($a1) ## 00000004 -/* 00E70 80814690 ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 00E74 80814694 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00E78 80814698 3C18F568 */ lui $t8, 0xF568 ## $t8 = F5680000 -/* 00E7C 8081469C 37180400 */ ori $t8, $t8, 0x0400 ## $t8 = F5680400 -/* 00E80 808146A0 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 00E84 808146A4 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 00E88 808146A8 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 00E8C 808146AC ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 00E90 808146B0 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00E94 808146B4 3C0F0003 */ lui $t7, 0x0003 ## $t7 = 00030000 -/* 00E98 808146B8 35EFC05C */ ori $t7, $t7, 0xC05C ## $t7 = 0003C05C -/* 00E9C 808146BC 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 00EA0 808146C0 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 00EA4 808146C4 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 00EA8 808146C8 ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 00EAC 808146CC 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00EB0 808146D0 24E7A194 */ addiu $a3, $a3, %lo(D_8082A194) ## $a3 = 8082A194 -/* 00EB4 808146D4 254AA164 */ addiu $t2, $t2, %lo(D_8082A164) ## $t2 = 8082A164 -/* 00EB8 808146D8 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 00EBC 808146DC AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 00EC0 808146E0 256BA17C */ addiu $t3, $t3, %lo(D_8082A17C) ## $t3 = 8082A17C -/* 00EC4 808146E4 00004025 */ or $t0, $zero, $zero ## $t0 = 00000000 -/* 00EC8 808146E8 ACAF0004 */ sw $t7, 0x0004($a1) ## 00000004 -/* 00ECC 808146EC ACB70000 */ sw $s7, 0x0000($a1) ## 00000000 -.L808146F0: -/* 00ED0 808146F0 00087080 */ sll $t6, $t0, 2 -/* 00ED4 808146F4 3C188012 */ lui $t8, %hi(gBitFlags+0x18) -/* 00ED8 808146F8 030EC021 */ addu $t8, $t8, $t6 -/* 00EDC 808146FC 3C198016 */ lui $t9, %hi(gSaveContext+0xa4) -/* 00EE0 80814700 8F39E704 */ lw $t9, %lo(gSaveContext+0xa4)($t9) -/* 00EE4 80814704 8F187138 */ lw $t8, %lo(gBitFlags+0x18)($t8) -/* 00EE8 80814708 03197824 */ and $t7, $t8, $t9 -/* 00EEC 8081470C 11E00055 */ beq $t7, $zero, .L80814864 -/* 00EF0 80814710 87B80216 */ lh $t8, 0x0216($sp) -/* 00EF4 80814714 250E0006 */ addiu $t6, $t0, 0x0006 ## $t6 = 00000006 -/* 00EF8 80814718 15D8002A */ bne $t6, $t8, .L808147C4 -/* 00EFC 8081471C 00083040 */ sll $a2, $t0, 1 -/* 00F00 80814720 8E990164 */ lw $t9, 0x0164($s4) ## 00000164 -/* 00F04 80814724 00092100 */ sll $a0, $t1, 4 -/* 00F08 80814728 03241821 */ addu $v1, $t9, $a0 -/* 00F0C 8081472C 84620000 */ lh $v0, 0x0000($v1) ## 00000000 -/* 00F10 80814730 2442FFFE */ addiu $v0, $v0, 0xFFFE ## $v0 = FFFFFFFE -/* 00F14 80814734 00021400 */ sll $v0, $v0, 16 -/* 00F18 80814738 00021403 */ sra $v0, $v0, 16 -/* 00F1C 8081473C A4620020 */ sh $v0, 0x0020($v1) ## 00000020 -/* 00F20 80814740 8E8F0164 */ lw $t7, 0x0164($s4) ## 00000164 -/* 00F24 80814744 01E47021 */ addu $t6, $t7, $a0 -/* 00F28 80814748 A5C20000 */ sh $v0, 0x0000($t6) ## 00000006 -/* 00F2C 8081474C 8E980164 */ lw $t8, 0x0164($s4) ## 00000164 -/* 00F30 80814750 03041821 */ addu $v1, $t8, $a0 -/* 00F34 80814754 84620010 */ lh $v0, 0x0010($v1) ## 00000010 -/* 00F38 80814758 24420004 */ addiu $v0, $v0, 0x0004 ## $v0 = 00000002 -/* 00F3C 8081475C 00021400 */ sll $v0, $v0, 16 -/* 00F40 80814760 00021403 */ sra $v0, $v0, 16 -/* 00F44 80814764 A4620030 */ sh $v0, 0x0030($v1) ## 00000030 -/* 00F48 80814768 8E990164 */ lw $t9, 0x0164($s4) ## 00000164 -/* 00F4C 8081476C 03247821 */ addu $t7, $t9, $a0 -/* 00F50 80814770 A5E20010 */ sh $v0, 0x0010($t7) ## 0003C06C -/* 00F54 80814774 8E8E0164 */ lw $t6, 0x0164($s4) ## 00000164 -/* 00F58 80814778 01C41821 */ addu $v1, $t6, $a0 -/* 00F5C 8081477C 84620002 */ lh $v0, 0x0002($v1) ## 00000002 -/* 00F60 80814780 24420002 */ addiu $v0, $v0, 0x0002 ## $v0 = 00000004 -/* 00F64 80814784 00021400 */ sll $v0, $v0, 16 -/* 00F68 80814788 00021403 */ sra $v0, $v0, 16 -/* 00F6C 8081478C A4620012 */ sh $v0, 0x0012($v1) ## 00000012 -/* 00F70 80814790 8E980164 */ lw $t8, 0x0164($s4) ## 00000164 -/* 00F74 80814794 0304C821 */ addu $t9, $t8, $a0 -/* 00F78 80814798 A7220002 */ sh $v0, 0x0002($t9) ## 80160002 -/* 00F7C 8081479C 8E8F0164 */ lw $t7, 0x0164($s4) ## 00000164 -/* 00F80 808147A0 01E41821 */ addu $v1, $t7, $a0 -/* 00F84 808147A4 84620022 */ lh $v0, 0x0022($v1) ## 00000022 -/* 00F88 808147A8 2442FFFC */ addiu $v0, $v0, 0xFFFC ## $v0 = 00000000 -/* 00F8C 808147AC 00021400 */ sll $v0, $v0, 16 -/* 00F90 808147B0 00021403 */ sra $v0, $v0, 16 -/* 00F94 808147B4 A4620032 */ sh $v0, 0x0032($v1) ## 00000032 -/* 00F98 808147B8 8E8E0164 */ lw $t6, 0x0164($s4) ## 00000164 -/* 00F9C 808147BC 01C4C021 */ addu $t8, $t6, $a0 -/* 00FA0 808147C0 A7020022 */ sh $v0, 0x0022($t8) ## 80120022 -.L808147C4: -/* 00FA4 808147C4 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 00FA8 808147C8 3C0FFA00 */ lui $t7, 0xFA00 ## $t7 = FA000000 -/* 00FAC 808147CC 00E67021 */ addu $t6, $a3, $a2 -/* 00FB0 808147D0 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 00FB4 808147D4 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 00FB8 808147D8 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 00FBC 808147DC 85D80000 */ lh $t8, 0x0000($t6) ## 00000006 -/* 00FC0 808147E0 01467021 */ addu $t6, $t2, $a2 -/* 00FC4 808147E4 00092100 */ sll $a0, $t1, 4 -/* 00FC8 808147E8 331900FF */ andi $t9, $t8, 0x00FF ## $t9 = 00000000 -/* 00FCC 808147EC 00197A00 */ sll $t7, $t9, 8 -/* 00FD0 808147F0 85D90000 */ lh $t9, 0x0000($t6) ## 00000006 -/* 00FD4 808147F4 00197600 */ sll $t6, $t9, 24 -/* 00FD8 808147F8 01EEC025 */ or $t8, $t7, $t6 ## $t8 = FA000006 -/* 00FDC 808147FC 0166C821 */ addu $t9, $t3, $a2 -/* 00FE0 80814800 872F0000 */ lh $t7, 0x0000($t9) ## 00000000 -/* 00FE4 80814804 31EE00FF */ andi $t6, $t7, 0x00FF ## $t6 = 00000000 -/* 00FE8 80814808 000ECC00 */ sll $t9, $t6, 16 -/* 00FEC 8081480C 968E0208 */ lhu $t6, 0x0208($s4) ## 00000208 -/* 00FF0 80814810 03197825 */ or $t7, $t8, $t9 ## $t7 = FA000006 -/* 00FF4 80814814 31D800FF */ andi $t8, $t6, 0x00FF ## $t8 = 00000000 -/* 00FF8 80814818 01F8C825 */ or $t9, $t7, $t8 ## $t9 = FA000006 -/* 00FFC 8081481C ACB90004 */ sw $t9, 0x0004($a1) ## 00000004 -/* 01000 80814820 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01004 80814824 3C0F0100 */ lui $t7, 0x0100 ## $t7 = 01000000 -/* 01008 80814828 35EF4008 */ ori $t7, $t7, 0x4008 ## $t7 = 01004008 -/* 0100C 8081482C 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01010 80814830 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 01014 80814834 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 01018 80814838 8E980164 */ lw $t8, 0x0164($s4) ## 00000164 -/* 0101C 8081483C 3C0F0700 */ lui $t7, 0x0700 ## $t7 = 07000000 -/* 01020 80814840 35EF0406 */ ori $t7, $t7, 0x0406 ## $t7 = 07000406 -/* 01024 80814844 0304C821 */ addu $t9, $t8, $a0 -/* 01028 80814848 ACB90004 */ sw $t9, 0x0004($a1) ## 00000004 -/* 0102C 8081484C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01030 80814850 24180602 */ addiu $t8, $zero, 0x0602 ## $t8 = 00000602 -/* 01034 80814854 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01038 80814858 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 0103C 8081485C ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 01040 80814860 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -.L80814864: -/* 01044 80814864 25080001 */ addiu $t0, $t0, 0x0001 ## $t0 = 00000001 -/* 01048 80814868 00084400 */ sll $t0, $t0, 16 -/* 0104C 8081486C 00084403 */ sra $t0, $t0, 16 -/* 01050 80814870 25290004 */ addiu $t1, $t1, 0x0004 ## $t1 = 00000008 -/* 01054 80814874 00094C00 */ sll $t1, $t1, 16 -/* 01058 80814878 2901000C */ slti $at, $t0, 0x000C -/* 0105C 8081487C 1420FF9C */ bne $at, $zero, .L808146F0 -/* 01060 80814880 00094C03 */ sra $t1, $t1, 16 -/* 01064 80814884 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01068 80814888 3C0FFA00 */ lui $t7, 0xFA00 ## $t7 = FA000000 -/* 0106C 8081488C 2401FF00 */ addiu $at, $zero, 0xFF00 ## $at = FFFFFF00 -/* 01070 80814890 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 01074 80814894 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 01078 80814898 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 0107C 8081489C ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 01080 808148A0 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01084 808148A4 00004025 */ or $t0, $zero, $zero ## $t0 = 00000000 -/* 01088 808148A8 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 0108C 808148AC AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 01090 808148B0 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 01094 808148B4 96980208 */ lhu $t8, 0x0208($s4) ## 00000208 -/* 01098 808148B8 331900FF */ andi $t9, $t8, 0x00FF ## $t9 = 00000002 -/* 0109C 808148BC 03217025 */ or $t6, $t9, $at ## $t6 = FFFFFF02 -/* 010A0 808148C0 ACAE0004 */ sw $t6, 0x0004($a1) ## 00000004 -/* 010A4 808148C4 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 010A8 808148C8 241900FF */ addiu $t9, $zero, 0x00FF ## $t9 = 000000FF -/* 010AC 808148CC 3C18FB00 */ lui $t8, 0xFB00 ## $t8 = FB000000 -/* 010B0 808148D0 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 010B4 808148D4 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 010B8 808148D8 ACB90004 */ sw $t9, 0x0004($a1) ## 00000004 -/* 010BC 808148DC ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -.L808148E0: -/* 010C0 808148E0 00081880 */ sll $v1, $t0, 2 -/* 010C4 808148E4 3C0E8012 */ lui $t6, %hi(gBitFlags+0x48) -/* 010C8 808148E8 01C37021 */ addu $t6, $t6, $v1 -/* 010CC 808148EC 3C0F8016 */ lui $t7, %hi(gSaveContext+0xa4) -/* 010D0 808148F0 8DEFE704 */ lw $t7, %lo(gSaveContext+0xa4)($t7) -/* 010D4 808148F4 8DCE7168 */ lw $t6, %lo(gBitFlags+0x48)($t6) -/* 010D8 808148F8 02202025 */ or $a0, $s1, $zero ## $a0 = 00000000 -/* 010DC 808148FC 01CFC024 */ and $t8, $t6, $t7 -/* 010E0 80814900 13000015 */ beq $t8, $zero, .L80814958 -/* 010E4 80814904 3C0E0100 */ lui $t6, 0x0100 ## $t6 = 01000000 -/* 010E8 80814908 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 010EC 8081490C 35CE4008 */ ori $t6, $t6, 0x4008 ## $t6 = 01004008 -/* 010F0 80814910 0009C100 */ sll $t8, $t1, 4 -/* 010F4 80814914 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 010F8 80814918 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 010FC 8081491C ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 01100 80814920 8E8F0164 */ lw $t7, 0x0164($s4) ## 00000164 -/* 01104 80814924 24060018 */ addiu $a2, $zero, 0x0018 ## $a2 = 00000018 -/* 01108 80814928 24070018 */ addiu $a3, $zero, 0x0018 ## $a3 = 00000018 -/* 0110C 8081492C 01F8C821 */ addu $t9, $t7, $t8 -/* 01110 80814930 ACB90004 */ sw $t9, 0x0004($a1) ## 00000004 -/* 01114 80814934 3C058012 */ lui $a1, %hi(gItemIcons+0x1b0) -/* 01118 80814938 00A32821 */ addu $a1, $a1, $v1 -/* 0111C 8081493C 8CA5740C */ lw $a1, %lo(gItemIcons+0x1b0)($a1) -/* 01120 80814940 A7A9021A */ sh $t1, 0x021A($sp) -/* 01124 80814944 A7A80218 */ sh $t0, 0x0218($sp) -/* 01128 80814948 0C207E1F */ jal KaleidoScope_DrawQuadTextureRGBA32 -/* 0112C 8081494C AFA00010 */ sw $zero, 0x0010($sp) -/* 01130 80814950 87A80218 */ lh $t0, 0x0218($sp) -/* 01134 80814954 87A9021A */ lh $t1, 0x021A($sp) -.L80814958: -/* 01138 80814958 25080001 */ addiu $t0, $t0, 0x0001 ## $t0 = 00000001 -/* 0113C 8081495C 00084400 */ sll $t0, $t0, 16 -/* 01140 80814960 00084403 */ sra $t0, $t0, 16 -/* 01144 80814964 25290004 */ addiu $t1, $t1, 0x0004 ## $t1 = 00000004 -/* 01148 80814968 00094C00 */ sll $t1, $t1, 16 -/* 0114C 8081496C 29010003 */ slti $at, $t0, 0x0003 -/* 01150 80814970 1420FFDB */ bne $at, $zero, .L808148E0 -/* 01154 80814974 00094C03 */ sra $t1, $t1, 16 -/* 01158 80814978 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 0115C 8081497C 3C18FA00 */ lui $t8, 0xFA00 ## $t8 = FA000000 -/* 01160 80814980 2401FF00 */ addiu $at, $zero, 0xFF00 ## $at = FFFFFF00 -/* 01164 80814984 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01168 80814988 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 0116C 8081498C ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01170 80814990 ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 01174 80814994 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01178 80814998 00004025 */ or $t0, $zero, $zero ## $t0 = 00000000 -/* 0117C 8081499C 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 01180 808149A0 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 01184 808149A4 ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 01188 808149A8 96990208 */ lhu $t9, 0x0208($s4) ## 00000208 -/* 0118C 808149AC 3C188016 */ lui $t8, %hi(gSaveContext+0xa4) -/* 01190 808149B0 332E00FF */ andi $t6, $t9, 0x00FF ## $t6 = 00000000 -/* 01194 808149B4 01C17825 */ or $t7, $t6, $at ## $t7 = FFFFFF00 -/* 01198 808149B8 ACAF0004 */ sw $t7, 0x0004($a1) ## 00000004 -/* 0119C 808149BC 8F18E704 */ lw $t8, %lo(gSaveContext+0xa4)($t8) -/* 011A0 808149C0 AFB80078 */ sw $t8, 0x0078($sp) -.L808149C4: -/* 011A4 808149C4 00081880 */ sll $v1, $t0, 2 -/* 011A8 808149C8 3C198012 */ lui $t9, %hi(gBitFlags+0x54) -/* 011AC 808149CC 0323C821 */ addu $t9, $t9, $v1 -/* 011B0 808149D0 8F397174 */ lw $t9, %lo(gBitFlags+0x54)($t9) -/* 011B4 808149D4 8FAE0078 */ lw $t6, 0x0078($sp) -/* 011B8 808149D8 032E7824 */ and $t7, $t9, $t6 -/* 011BC 808149DC 51E00025 */ beql $t7, $zero, .L80814A74 -/* 011C0 808149E0 25080001 */ addiu $t0, $t0, 0x0001 ## $t0 = 00000001 -/* 011C4 808149E4 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 011C8 808149E8 3C190100 */ lui $t9, 0x0100 ## $t9 = 01000000 -/* 011CC 808149EC 37394008 */ ori $t9, $t9, 0x4008 ## $t9 = 01004008 -/* 011D0 808149F0 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 011D4 808149F4 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 011D8 808149F8 ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 011DC 808149FC 8E8E0164 */ lw $t6, 0x0164($s4) ## 00000164 -/* 011E0 80814A00 00097900 */ sll $t7, $t1, 4 -/* 011E4 80814A04 2401FF00 */ addiu $at, $zero, 0xFF00 ## $at = FFFFFF00 -/* 011E8 80814A08 01CFC021 */ addu $t8, $t6, $t7 -/* 011EC 80814A0C ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 011F0 80814A10 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 011F4 80814A14 3C0EFA00 */ lui $t6, 0xFA00 ## $t6 = FA000000 -/* 011F8 80814A18 02202025 */ or $a0, $s1, $zero ## $a0 = 00000000 -/* 011FC 80814A1C 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 01200 80814A20 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 01204 80814A24 ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 01208 80814A28 968F0208 */ lhu $t7, 0x0208($s4) ## 00000208 -/* 0120C 80814A2C 24060018 */ addiu $a2, $zero, 0x0018 ## $a2 = 00000018 -/* 01210 80814A30 24070018 */ addiu $a3, $zero, 0x0018 ## $a3 = 00000018 -/* 01214 80814A34 31F800FF */ andi $t8, $t7, 0x00FF ## $t8 = 00000000 -/* 01218 80814A38 0301C825 */ or $t9, $t8, $at ## $t9 = FFFFFF00 -/* 0121C 80814A3C ACB90004 */ sw $t9, 0x0004($a1) ## 00000004 -/* 01220 80814A40 3C058012 */ lui $a1, %hi(gItemIcons+0x1bc) -/* 01224 80814A44 00A32821 */ addu $a1, $a1, $v1 -/* 01228 80814A48 8CA57418 */ lw $a1, %lo(gItemIcons+0x1bc)($a1) -/* 0122C 80814A4C A7A9021A */ sh $t1, 0x021A($sp) -/* 01230 80814A50 A7A80218 */ sh $t0, 0x0218($sp) -/* 01234 80814A54 0C207E1F */ jal KaleidoScope_DrawQuadTextureRGBA32 -/* 01238 80814A58 AFA00010 */ sw $zero, 0x0010($sp) -/* 0123C 80814A5C 3C0E8016 */ lui $t6, %hi(gSaveContext+0xa4) -/* 01240 80814A60 8DCEE704 */ lw $t6, %lo(gSaveContext+0xa4)($t6) -/* 01244 80814A64 87A80218 */ lh $t0, 0x0218($sp) -/* 01248 80814A68 87A9021A */ lh $t1, 0x021A($sp) -/* 0124C 80814A6C AFAE0078 */ sw $t6, 0x0078($sp) -/* 01250 80814A70 25080001 */ addiu $t0, $t0, 0x0001 ## $t0 = 00000001 -.L80814A74: -/* 01254 80814A74 00084400 */ sll $t0, $t0, 16 -/* 01258 80814A78 00084403 */ sra $t0, $t0, 16 -/* 0125C 80814A7C 25290004 */ addiu $t1, $t1, 0x0004 ## $t1 = 00000004 -/* 01260 80814A80 00094C00 */ sll $t1, $t1, 16 -/* 01264 80814A84 29010003 */ slti $at, $t0, 0x0003 -/* 01268 80814A88 1420FFCE */ bne $at, $zero, .L808149C4 -/* 0126C 80814A8C 00094C03 */ sra $t1, $t1, 16 -/* 01270 80814A90 3C0D8083 */ lui $t5, %hi(D_8082A118) ## $t5 = 80830000 -/* 01274 80814A94 85ADA118 */ lh $t5, %lo(D_8082A118)($t5) -/* 01278 80814A98 3C188083 */ lui $t8, %hi(D_8082A070) ## $t8 = 80830000 -/* 0127C 80814A9C 2718A070 */ addiu $t8, $t8, %lo(D_8082A070) ## $t8 = 8082A070 -/* 01280 80814AA0 000D78C0 */ sll $t7, $t5, 3 -/* 01284 80814AA4 3C138083 */ lui $s3, %hi(D_8082A104) ## $s3 = 80830000 -/* 01288 80814AA8 01F81821 */ addu $v1, $t7, $t8 -/* 0128C 80814AAC 8673A104 */ lh $s3, %lo(D_8082A104)($s3) -/* 01290 80814AB0 846C0000 */ lh $t4, 0x0000($v1) ## 00000000 -/* 01294 80814AB4 3C048083 */ lui $a0, %hi(D_8082A114) ## $a0 = 80830000 -/* 01298 80814AB8 3C108083 */ lui $s0, %hi(D_8082A108) ## $s0 = 80830000 -/* 0129C 80814ABC 026C1023 */ subu $v0, $s3, $t4 -/* 012A0 80814AC0 04400003 */ bltz $v0, .L80814AD0 -/* 012A4 80814AC4 3C128083 */ lui $s2, %hi(D_8082A10C) ## $s2 = 80830000 -/* 012A8 80814AC8 10000002 */ beq $zero, $zero, .L80814AD4 -/* 012AC 80814ACC 00405025 */ or $t2, $v0, $zero ## $t2 = 00000000 -.L80814AD0: -/* 012B0 80814AD0 00025023 */ subu $t2, $zero, $v0 -.L80814AD4: -/* 012B4 80814AD4 8484A114 */ lh $a0, %lo(D_8082A114)($a0) -/* 012B8 80814AD8 8610A108 */ lh $s0, %lo(D_8082A108)($s0) -/* 012BC 80814ADC 846B0002 */ lh $t3, 0x0002($v1) ## 00000002 -/* 012C0 80814AE0 0144001A */ div $zero, $t2, $a0 -/* 012C4 80814AE4 0000C812 */ mflo $t9 -/* 012C8 80814AE8 020B1023 */ subu $v0, $s0, $t3 -/* 012CC 80814AEC 14800002 */ bne $a0, $zero, .L80814AF8 -/* 012D0 80814AF0 00000000 */ nop -/* 012D4 80814AF4 0007000D */ break 7 -.L80814AF8: -/* 012D8 80814AF8 2401FFFF */ addiu $at, $zero, 0xFFFF ## $at = FFFFFFFF -/* 012DC 80814AFC 14810004 */ bne $a0, $at, .L80814B10 -/* 012E0 80814B00 3C018000 */ lui $at, 0x8000 ## $at = 80000000 -/* 012E4 80814B04 15410002 */ bne $t2, $at, .L80814B10 -/* 012E8 80814B08 00000000 */ nop -/* 012EC 80814B0C 0006000D */ break 6 -.L80814B10: -/* 012F0 80814B10 A7B90226 */ sh $t9, 0x0226($sp) -/* 012F4 80814B14 04400003 */ bltz $v0, .L80814B24 -/* 012F8 80814B18 3C1F8083 */ lui $ra, %hi(D_8082A110) ## $ra = 80830000 -/* 012FC 80814B1C 10000002 */ beq $zero, $zero, .L80814B28 -/* 01300 80814B20 00405025 */ or $t2, $v0, $zero ## $t2 = 00000000 -.L80814B24: -/* 01304 80814B24 00025023 */ subu $t2, $zero, $v0 -.L80814B28: -/* 01308 80814B28 0144001A */ div $zero, $t2, $a0 -/* 0130C 80814B2C 8652A10C */ lh $s2, %lo(D_8082A10C)($s2) -/* 01310 80814B30 84680004 */ lh $t0, 0x0004($v1) ## 00000004 -/* 01314 80814B34 00003012 */ mflo $a2 -/* 01318 80814B38 00063400 */ sll $a2, $a2, 16 -/* 0131C 80814B3C 14800002 */ bne $a0, $zero, .L80814B48 -/* 01320 80814B40 00000000 */ nop -/* 01324 80814B44 0007000D */ break 7 -.L80814B48: -/* 01328 80814B48 2401FFFF */ addiu $at, $zero, 0xFFFF ## $at = FFFFFFFF -/* 0132C 80814B4C 14810004 */ bne $a0, $at, .L80814B60 -/* 01330 80814B50 3C018000 */ lui $at, 0x8000 ## $at = 80000000 -/* 01334 80814B54 15410002 */ bne $t2, $at, .L80814B60 -/* 01338 80814B58 00000000 */ nop -/* 0133C 80814B5C 0006000D */ break 6 -.L80814B60: -/* 01340 80814B60 02481023 */ subu $v0, $s2, $t0 -/* 01344 80814B64 04400003 */ bltz $v0, .L80814B74 -/* 01348 80814B68 00063403 */ sra $a2, $a2, 16 -/* 0134C 80814B6C 10000002 */ beq $zero, $zero, .L80814B78 -/* 01350 80814B70 00405025 */ or $t2, $v0, $zero ## $t2 = 00000000 -.L80814B74: -/* 01354 80814B74 00025023 */ subu $t2, $zero, $v0 -.L80814B78: -/* 01358 80814B78 0144001A */ div $zero, $t2, $a0 -/* 0135C 80814B7C 87FFA110 */ lh $ra, %lo(D_8082A110)($ra) -/* 01360 80814B80 84650006 */ lh $a1, 0x0006($v1) ## 00000006 -/* 01364 80814B84 00003812 */ mflo $a3 -/* 01368 80814B88 00073C00 */ sll $a3, $a3, 16 -/* 0136C 80814B8C 14800002 */ bne $a0, $zero, .L80814B98 -/* 01370 80814B90 00000000 */ nop -/* 01374 80814B94 0007000D */ break 7 -.L80814B98: -/* 01378 80814B98 2401FFFF */ addiu $at, $zero, 0xFFFF ## $at = FFFFFFFF -/* 0137C 80814B9C 14810004 */ bne $a0, $at, .L80814BB0 -/* 01380 80814BA0 3C018000 */ lui $at, 0x8000 ## $at = 80000000 -/* 01384 80814BA4 15410002 */ bne $t2, $at, .L80814BB0 -/* 01388 80814BA8 00000000 */ nop -/* 0138C 80814BAC 0006000D */ break 6 -.L80814BB0: -/* 01390 80814BB0 03E51023 */ subu $v0, $ra, $a1 -/* 01394 80814BB4 04400003 */ bltz $v0, .L80814BC4 -/* 01398 80814BB8 00073C03 */ sra $a3, $a3, 16 -/* 0139C 80814BBC 10000002 */ beq $zero, $zero, .L80814BC8 -/* 013A0 80814BC0 00405025 */ or $t2, $v0, $zero ## $t2 = 00000000 -.L80814BC4: -/* 013A4 80814BC4 00025023 */ subu $t2, $zero, $v0 -.L80814BC8: -/* 013A8 80814BC8 026C082A */ slt $at, $s3, $t4 -/* 013AC 80814BCC 54200007 */ bnel $at, $zero, .L80814BEC -/* 013B0 80814BD0 87AF0226 */ lh $t7, 0x0226($sp) -/* 013B4 80814BD4 87AE0226 */ lh $t6, 0x0226($sp) -/* 013B8 80814BD8 026E9823 */ subu $s3, $s3, $t6 -/* 013BC 80814BDC 00139C00 */ sll $s3, $s3, 16 -/* 013C0 80814BE0 10000005 */ beq $zero, $zero, .L80814BF8 -/* 013C4 80814BE4 00139C03 */ sra $s3, $s3, 16 -/* 013C8 80814BE8 87AF0226 */ lh $t7, 0x0226($sp) -.L80814BEC: -/* 013CC 80814BEC 026F9821 */ addu $s3, $s3, $t7 -/* 013D0 80814BF0 00139C00 */ sll $s3, $s3, 16 -/* 013D4 80814BF4 00139C03 */ sra $s3, $s3, 16 -.L80814BF8: -/* 013D8 80814BF8 020B082A */ slt $at, $s0, $t3 -/* 013DC 80814BFC 54200006 */ bnel $at, $zero, .L80814C18 -/* 013E0 80814C00 02068021 */ addu $s0, $s0, $a2 -/* 013E4 80814C04 02068023 */ subu $s0, $s0, $a2 -/* 013E8 80814C08 00108400 */ sll $s0, $s0, 16 -/* 013EC 80814C0C 10000004 */ beq $zero, $zero, .L80814C20 -/* 013F0 80814C10 00108403 */ sra $s0, $s0, 16 -/* 013F4 80814C14 02068021 */ addu $s0, $s0, $a2 -.L80814C18: -/* 013F8 80814C18 00108400 */ sll $s0, $s0, 16 -/* 013FC 80814C1C 00108403 */ sra $s0, $s0, 16 -.L80814C20: -/* 01400 80814C20 0248082A */ slt $at, $s2, $t0 -/* 01404 80814C24 54200006 */ bnel $at, $zero, .L80814C40 -/* 01408 80814C28 02479021 */ addu $s2, $s2, $a3 -/* 0140C 80814C2C 02479023 */ subu $s2, $s2, $a3 -/* 01410 80814C30 00129400 */ sll $s2, $s2, 16 -/* 01414 80814C34 10000004 */ beq $zero, $zero, .L80814C48 -/* 01418 80814C38 00129403 */ sra $s2, $s2, 16 -/* 0141C 80814C3C 02479021 */ addu $s2, $s2, $a3 -.L80814C40: -/* 01420 80814C40 00129400 */ sll $s2, $s2, 16 -/* 01424 80814C44 00129403 */ sra $s2, $s2, 16 -.L80814C48: -/* 01428 80814C48 03E5082A */ slt $at, $ra, $a1 -/* 0142C 80814C4C 14200013 */ bne $at, $zero, .L80814C9C -/* 01430 80814C50 24060030 */ addiu $a2, $zero, 0x0030 ## $a2 = 00000030 -/* 01434 80814C54 0144001A */ div $zero, $t2, $a0 -/* 01438 80814C58 0000C012 */ mflo $t8 -/* 0143C 80814C5C 0018CC00 */ sll $t9, $t8, 16 -/* 01440 80814C60 00197403 */ sra $t6, $t9, 16 -/* 01444 80814C64 03EEF823 */ subu $ra, $ra, $t6 -/* 01448 80814C68 001FFC00 */ sll $ra, $ra, 16 -/* 0144C 80814C6C 14800002 */ bne $a0, $zero, .L80814C78 -/* 01450 80814C70 00000000 */ nop -/* 01454 80814C74 0007000D */ break 7 -.L80814C78: -/* 01458 80814C78 2401FFFF */ addiu $at, $zero, 0xFFFF ## $at = FFFFFFFF -/* 0145C 80814C7C 14810004 */ bne $a0, $at, .L80814C90 -/* 01460 80814C80 3C018000 */ lui $at, 0x8000 ## $at = 80000000 -/* 01464 80814C84 15410002 */ bne $t2, $at, .L80814C90 -/* 01468 80814C88 00000000 */ nop -/* 0146C 80814C8C 0006000D */ break 6 -.L80814C90: -/* 01470 80814C90 001FFC03 */ sra $ra, $ra, 16 -/* 01474 80814C94 10000012 */ beq $zero, $zero, .L80814CE0 -/* 01478 80814C98 2484FFFF */ addiu $a0, $a0, 0xFFFF ## $a0 = 8082FFFF -.L80814C9C: -/* 0147C 80814C9C 0144001A */ div $zero, $t2, $a0 -/* 01480 80814CA0 00007812 */ mflo $t7 -/* 01484 80814CA4 000FC400 */ sll $t8, $t7, 16 -/* 01488 80814CA8 0018CC03 */ sra $t9, $t8, 16 -/* 0148C 80814CAC 03F9F821 */ addu $ra, $ra, $t9 -/* 01490 80814CB0 001FFC00 */ sll $ra, $ra, 16 -/* 01494 80814CB4 001FFC03 */ sra $ra, $ra, 16 -/* 01498 80814CB8 14800002 */ bne $a0, $zero, .L80814CC4 -/* 0149C 80814CBC 00000000 */ nop -/* 014A0 80814CC0 0007000D */ break 7 -.L80814CC4: -/* 014A4 80814CC4 2401FFFF */ addiu $at, $zero, 0xFFFF ## $at = FFFFFFFF -/* 014A8 80814CC8 14810004 */ bne $a0, $at, .L80814CDC -/* 014AC 80814CCC 3C018000 */ lui $at, 0x8000 ## $at = 80000000 -/* 014B0 80814CD0 15410002 */ bne $t2, $at, .L80814CDC -/* 014B4 80814CD4 00000000 */ nop -/* 014B8 80814CD8 0006000D */ break 6 -.L80814CDC: -/* 014BC 80814CDC 2484FFFF */ addiu $a0, $a0, 0xFFFF ## $a0 = 8082FFFE -.L80814CE0: -/* 014C0 80814CE0 00042400 */ sll $a0, $a0, 16 -/* 014C4 80814CE4 00042403 */ sra $a0, $a0, 16 -/* 014C8 80814CE8 3C018083 */ lui $at, %hi(D_8082A114) ## $at = 80830000 -/* 014CC 80814CEC 14800019 */ bne $a0, $zero, .L80814D54 -/* 014D0 80814CF0 A424A114 */ sh $a0, %lo(D_8082A114)($at) -/* 014D4 80814CF4 3C0E8016 */ lui $t6, %hi(gGameInfo) -/* 014D8 80814CF8 8DCEFA90 */ lw $t6, %lo(gGameInfo)($t6) -/* 014DC 80814CFC 000D7840 */ sll $t7, $t5, 1 -/* 014E0 80814D00 25AD0001 */ addiu $t5, $t5, 0x0001 ## $t5 = 80830001 -/* 014E4 80814D04 01CFC021 */ addu $t8, $t6, $t7 -/* 014E8 80814D08 870407C4 */ lh $a0, 0x07C4($t8) ## 8082A834 -/* 014EC 80814D0C 3C018083 */ lui $at, %hi(D_8082A114) ## $at = 80830000 -/* 014F0 80814D10 000D6C00 */ sll $t5, $t5, 16 -/* 014F4 80814D14 A424A114 */ sh $a0, %lo(D_8082A114)($at) -/* 014F8 80814D18 3C018083 */ lui $at, %hi(D_8082A118) ## $at = 80830000 -/* 014FC 80814D1C 000D6C03 */ sra $t5, $t5, 16 -/* 01500 80814D20 A42DA118 */ sh $t5, %lo(D_8082A118)($at) -/* 01504 80814D24 000C9C00 */ sll $s3, $t4, 16 -/* 01508 80814D28 000B8400 */ sll $s0, $t3, 16 -/* 0150C 80814D2C 00089400 */ sll $s2, $t0, 16 -/* 01510 80814D30 0005FC00 */ sll $ra, $a1, 16 -/* 01514 80814D34 29A10004 */ slti $at, $t5, 0x0004 -/* 01518 80814D38 00139C03 */ sra $s3, $s3, 16 -/* 0151C 80814D3C 00108403 */ sra $s0, $s0, 16 -/* 01520 80814D40 00129403 */ sra $s2, $s2, 16 -/* 01524 80814D44 14200003 */ bne $at, $zero, .L80814D54 -/* 01528 80814D48 001FFC03 */ sra $ra, $ra, 16 -/* 0152C 80814D4C 3C018083 */ lui $at, %hi(D_8082A118) ## $at = 80830000 -/* 01530 80814D50 A420A118 */ sh $zero, %lo(D_8082A118)($at) -.L80814D54: -/* 01534 80814D54 3C018083 */ lui $at, %hi(D_8082A110) ## $at = 80830000 -/* 01538 80814D58 A43FA110 */ sh $ra, %lo(D_8082A110)($at) -/* 0153C 80814D5C 3C018083 */ lui $at, %hi(D_8082A108) ## $at = 80830000 -/* 01540 80814D60 8FB90078 */ lw $t9, 0x0078($sp) -/* 01544 80814D64 A430A108 */ sh $s0, %lo(D_8082A108)($at) -/* 01548 80814D68 3C018083 */ lui $at, %hi(D_8082A10C) ## $at = 80830000 -/* 0154C 80814D6C A432A10C */ sh $s2, %lo(D_8082A10C)($at) -/* 01550 80814D70 3C018083 */ lui $at, %hi(D_8082A104) ## $at = 80830000 -/* 01554 80814D74 00197702 */ srl $t6, $t9, 28 -/* 01558 80814D78 11C00073 */ beq $t6, $zero, .L80814F48 -/* 0155C 80814D7C A433A104 */ sh $s3, %lo(D_8082A104)($at) -/* 01560 80814D80 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01564 80814D84 3C19FC30 */ lui $t9, 0xFC30 ## $t9 = FC300000 -/* 01568 80814D88 3C0E552E */ lui $t6, 0x552E ## $t6 = 552E0000 -/* 0156C 80814D8C 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 01570 80814D90 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 01574 80814D94 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01578 80814D98 ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 0157C 80814D9C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01580 80814DA0 35CEFF7F */ ori $t6, $t6, 0xFF7F ## $t6 = 552EFF7F -/* 01584 80814DA4 37399661 */ ori $t9, $t9, 0x9661 ## $t9 = FC309661 -/* 01588 80814DA8 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 0158C 80814DAC AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 01590 80814DB0 ACAE0004 */ sw $t6, 0x0004($a1) ## 00000004 -/* 01594 80814DB4 ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 01598 80814DB8 968201D4 */ lhu $v0, 0x01D4($s4) ## 000001D4 -/* 0159C 80814DBC 3C018083 */ lui $at, %hi(D_8082A110) ## $at = 80830000 -/* 015A0 80814DC0 A43FA110 */ sh $ra, %lo(D_8082A110)($at) -/* 015A4 80814DC4 3C018083 */ lui $at, %hi(D_8082A108) ## $at = 80830000 -/* 015A8 80814DC8 A430A108 */ sh $s0, %lo(D_8082A108)($at) -/* 015AC 80814DCC 3C018083 */ lui $at, %hi(D_8082A10C) ## $at = 80830000 -/* 015B0 80814DD0 A432A10C */ sh $s2, %lo(D_8082A10C)($at) -/* 015B4 80814DD4 3C018083 */ lui $at, %hi(D_8082A104) ## $at = 80830000 -/* 015B8 80814DD8 A433A104 */ sh $s3, %lo(D_8082A104)($at) -/* 015BC 80814DDC 24010004 */ addiu $at, $zero, 0x0004 ## $at = 00000004 -/* 015C0 80814DE0 1041000C */ beq $v0, $at, .L80814E14 -/* 015C4 80814DE4 24070030 */ addiu $a3, $zero, 0x0030 ## $a3 = 00000030 -/* 015C8 80814DE8 24010012 */ addiu $at, $zero, 0x0012 ## $at = 00000012 -/* 015CC 80814DEC 1441001F */ bne $v0, $at, .L80814E6C -/* 015D0 80814DF0 3C19FA00 */ lui $t9, 0xFA00 ## $t9 = FA000000 -/* 015D4 80814DF4 3C018083 */ lui $at, %hi(D_8082A104) ## $at = 80830000 -/* 015D8 80814DF8 A433A104 */ sh $s3, %lo(D_8082A104)($at) -/* 015DC 80814DFC 3C018083 */ lui $at, %hi(D_8082A10C) ## $at = 80830000 -/* 015E0 80814E00 A432A10C */ sh $s2, %lo(D_8082A10C)($at) -/* 015E4 80814E04 3C018083 */ lui $at, %hi(D_8082A108) ## $at = 80830000 -/* 015E8 80814E08 A430A108 */ sh $s0, %lo(D_8082A108)($at) -/* 015EC 80814E0C 3C018083 */ lui $at, %hi(D_8082A110) ## $at = 80830000 -/* 015F0 80814E10 A43FA110 */ sh $ra, %lo(D_8082A110)($at) -.L80814E14: -/* 015F4 80814E14 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 015F8 80814E18 3C038083 */ lui $v1, %hi(D_8082A070) ## $v1 = 80830000 -/* 015FC 80814E1C 3C18FA00 */ lui $t8, 0xFA00 ## $t8 = FA000000 -/* 01600 80814E20 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 01604 80814E24 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 01608 80814E28 2463A070 */ addiu $v1, $v1, %lo(D_8082A070) ## $v1 = 8082A070 -/* 0160C 80814E2C ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 01610 80814E30 84790004 */ lh $t9, 0x0004($v1) ## 8082A074 -/* 01614 80814E34 332E00FF */ andi $t6, $t9, 0x00FF ## $t6 = 00000000 -/* 01618 80814E38 84790000 */ lh $t9, 0x0000($v1) ## 8082A070 -/* 0161C 80814E3C 000E7A00 */ sll $t7, $t6, 8 -/* 01620 80814E40 00197600 */ sll $t6, $t9, 24 -/* 01624 80814E44 84790002 */ lh $t9, 0x0002($v1) ## 8082A072 -/* 01628 80814E48 01EEC025 */ or $t8, $t7, $t6 ## $t8 = 00000008 -/* 0162C 80814E4C 332F00FF */ andi $t7, $t9, 0x00FF ## $t7 = 00000000 -/* 01630 80814E50 000F7400 */ sll $t6, $t7, 16 -/* 01634 80814E54 968F0208 */ lhu $t7, 0x0208($s4) ## 00000208 -/* 01638 80814E58 030EC825 */ or $t9, $t8, $t6 ## $t9 = 00000008 -/* 0163C 80814E5C 31F800FF */ andi $t8, $t7, 0x00FF ## $t8 = 00000000 -/* 01640 80814E60 03387025 */ or $t6, $t9, $t8 ## $t6 = 00000008 -/* 01644 80814E64 10000017 */ beq $zero, $zero, .L80814EC4 -/* 01648 80814E68 ACAE0004 */ sw $t6, 0x0004($a1) ## 00000004 -.L80814E6C: -/* 0164C 80814E6C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01650 80814E70 00137600 */ sll $t6, $s3, 24 -/* 01654 80814E74 3C018083 */ lui $at, %hi(D_8082A110) ## $at = 80830000 -/* 01658 80814E78 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 0165C 80814E7C AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 01660 80814E80 320F00FF */ andi $t7, $s0, 0x00FF ## $t7 = 00000000 -/* 01664 80814E84 ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 01668 80814E88 000FCC00 */ sll $t9, $t7, 16 -/* 0166C 80814E8C 01D9C025 */ or $t8, $t6, $t9 ## $t8 = 00000008 -/* 01670 80814E90 324F00FF */ andi $t7, $s2, 0x00FF ## $t7 = 00000000 -/* 01674 80814E94 000F7200 */ sll $t6, $t7, 8 -/* 01678 80814E98 030EC825 */ or $t9, $t8, $t6 ## $t9 = 00000008 -/* 0167C 80814E9C 33EF00FF */ andi $t7, $ra, 0x00FF ## $t7 = 00000000 -/* 01680 80814EA0 032FC025 */ or $t8, $t9, $t7 ## $t8 = 00000008 -/* 01684 80814EA4 ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 01688 80814EA8 A43FA110 */ sh $ra, %lo(D_8082A110)($at) -/* 0168C 80814EAC 3C018083 */ lui $at, %hi(D_8082A108) ## $at = 80830000 -/* 01690 80814EB0 A430A108 */ sh $s0, %lo(D_8082A108)($at) -/* 01694 80814EB4 3C018083 */ lui $at, %hi(D_8082A10C) ## $at = 80830000 -/* 01698 80814EB8 A432A10C */ sh $s2, %lo(D_8082A10C)($at) -/* 0169C 80814EBC 3C018083 */ lui $at, %hi(D_8082A104) ## $at = 80830000 -/* 016A0 80814EC0 A433A104 */ sh $s3, %lo(D_8082A104)($at) -.L80814EC4: -/* 016A4 80814EC4 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 016A8 80814EC8 3C19FB00 */ lui $t9, 0xFB00 ## $t9 = FB000000 -/* 016AC 80814ECC 240F00FF */ addiu $t7, $zero, 0x00FF ## $t7 = 000000FF -/* 016B0 80814ED0 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 016B4 80814ED4 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 016B8 80814ED8 ACAF0004 */ sw $t7, 0x0004($a1) ## 00000004 -/* 016BC 80814EDC ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 016C0 80814EE0 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 016C4 80814EE4 3C0E0100 */ lui $t6, 0x0100 ## $t6 = 01000000 -/* 016C8 80814EE8 35CE4008 */ ori $t6, $t6, 0x4008 ## $t6 = 01004008 -/* 016CC 80814EEC 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 016D0 80814EF0 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 016D4 80814EF4 ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 016D8 80814EF8 8E990164 */ lw $t9, 0x0164($s4) ## 00000164 -/* 016DC 80814EFC 00097900 */ sll $t7, $t1, 4 -/* 016E0 80814F00 3C0E8016 */ lui $t6, %hi(gSaveContext+0xa4) -/* 016E4 80814F04 032FC021 */ addu $t8, $t9, $t7 -/* 016E8 80814F08 ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 016EC 80814F0C 8DCEE704 */ lw $t6, %lo(gSaveContext+0xa4)($t6) -/* 016F0 80814F10 3C01F000 */ lui $at, 0xF000 ## $at = F0000000 -/* 016F4 80814F14 3C058012 */ lui $a1, %hi(gItemIcons+0x1e4) -/* 016F8 80814F18 01C1C824 */ and $t9, $t6, $at -/* 016FC 80814F1C 03217824 */ and $t7, $t9, $at -/* 01700 80814F20 000FC702 */ srl $t8, $t7, 28 -/* 01704 80814F24 00187080 */ sll $t6, $t8, 2 -/* 01708 80814F28 00AE2821 */ addu $a1, $a1, $t6 -/* 0170C 80814F2C 8E2402C0 */ lw $a0, 0x02C0($s1) ## 000002C0 -/* 01710 80814F30 A7A9021A */ sh $t1, 0x021A($sp) -/* 01714 80814F34 AFA00010 */ sw $zero, 0x0010($sp) -/* 01718 80814F38 0C207D43 */ jal KaleidoScope_QuadTextureIA8 -/* 0171C 80814F3C 8CA57440 */ lw $a1, %lo(gItemIcons+0x1e4)($a1) -/* 01720 80814F40 87A9021A */ lh $t1, 0x021A($sp) -/* 01724 80814F44 AE2202C0 */ sw $v0, 0x02C0($s1) ## 000002C0 -.L80814F48: -/* 01728 80814F48 969901D4 */ lhu $t9, 0x01D4($s4) ## 000001D4 -/* 0172C 80814F4C 24010006 */ addiu $at, $zero, 0x0006 ## $at = 00000006 -/* 01730 80814F50 1721027F */ bne $t9, $at, .L80815950 -/* 01734 80814F54 00000000 */ nop -/* 01738 80814F58 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 0173C 80814F5C 3C0EFC11 */ lui $t6, 0xFC11 ## $t6 = FC110000 -/* 01740 80814F60 3C19FF2F */ lui $t9, 0xFF2F ## $t9 = FF2F0000 -/* 01744 80814F64 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 01748 80814F68 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 0174C 80814F6C ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01750 80814F70 ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 01754 80814F74 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01758 80814F78 3739FFFF */ ori $t9, $t9, 0xFFFF ## $t9 = FF2FFFFF -/* 0175C 80814F7C 35CE9623 */ ori $t6, $t6, 0x9623 ## $t6 = FC119623 -/* 01760 80814F80 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 01764 80814F84 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 01768 80814F88 ACB90004 */ sw $t9, 0x0004($a1) ## 00000004 -/* 0176C 80814F8C ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 01770 80814F90 868F0238 */ lh $t7, 0x0238($s4) ## 00000238 -/* 01774 80814F94 25290004 */ addiu $t1, $t1, 0x0004 ## $t1 = 00000004 -/* 01778 80814F98 00094C00 */ sll $t1, $t1, 16 -/* 0177C 80814F9C 15E0001D */ bne $t7, $zero, .L80815014 -/* 01780 80814FA0 00094C03 */ sra $t1, $t1, 16 -/* 01784 80814FA4 87A20216 */ lh $v0, 0x0216($sp) -/* 01788 80814FA8 28410006 */ slti $at, $v0, 0x0006 -/* 0178C 80814FAC 14200019 */ bne $at, $zero, .L80815014 -/* 01790 80814FB0 28410012 */ slti $at, $v0, 0x0012 -/* 01794 80814FB4 50200018 */ beql $at, $zero, .L80815018 -/* 01798 80814FB8 968201E4 */ lhu $v0, 0x01E4($s4) ## 000001E4 -/* 0179C 80814FBC 968201E4 */ lhu $v0, 0x01E4($s4) ## 000001E4 -/* 017A0 80814FC0 28410003 */ slti $at, $v0, 0x0003 -/* 017A4 80814FC4 14200005 */ bne $at, $zero, .L80814FDC -/* 017A8 80814FC8 24010005 */ addiu $at, $zero, 0x0005 ## $at = 00000005 -/* 017AC 80814FCC 10410003 */ beq $v0, $at, .L80814FDC -/* 017B0 80814FD0 24010008 */ addiu $at, $zero, 0x0008 ## $at = 00000008 -/* 017B4 80814FD4 54410010 */ bnel $v0, $at, .L80815018 -/* 017B8 80814FD8 968201E4 */ lhu $v0, 0x01E4($s4) ## 000001E4 -.L80814FDC: -/* 017BC 80814FDC 969801E8 */ lhu $t8, 0x01E8($s4) ## 000001E8 -/* 017C0 80814FE0 240103E7 */ addiu $at, $zero, 0x03E7 ## $at = 000003E7 -/* 017C4 80814FE4 00187040 */ sll $t6, $t8, 1 -/* 017C8 80814FE8 028EC821 */ addu $t9, $s4, $t6 -/* 017CC 80814FEC 972F023E */ lhu $t7, 0x023E($t9) ## FF30023D -/* 017D0 80814FF0 24180008 */ addiu $t8, $zero, 0x0008 ## $t8 = 00000008 -/* 017D4 80814FF4 11E10007 */ beq $t7, $at, .L80815014 -/* 017D8 80814FF8 28410002 */ slti $at, $v0, 0x0002 -/* 017DC 80814FFC 14200005 */ bne $at, $zero, .L80815014 -/* 017E0 80815000 A6980260 */ sh $t8, 0x0260($s4) ## 00000260 -/* 017E4 80815004 28410007 */ slti $at, $v0, 0x0007 -/* 017E8 80815008 50200003 */ beql $at, $zero, .L80815018 -/* 017EC 8081500C 968201E4 */ lhu $v0, 0x01E4($s4) ## 000001E4 -/* 017F0 80815010 A6800260 */ sh $zero, 0x0260($s4) ## 00000260 -.L80815014: -/* 017F4 80815014 968201E4 */ lhu $v0, 0x01E4($s4) ## 000001E4 -.L80815018: -/* 017F8 80815018 24010002 */ addiu $at, $zero, 0x0002 ## $at = 00000002 -/* 017FC 8081501C 544100B9 */ bnel $v0, $at, .L80815304 -/* 01800 80815020 28410004 */ slti $at, $v0, 0x0004 -/* 01804 80815024 0C03B8FE */ jal Audio_OcaGetDisplayStaff -/* 01808 80815028 A7A9021A */ sh $t1, 0x021A($sp) -/* 0180C 8081502C 87A9021A */ lh $t1, 0x021A($sp) -/* 01810 80815030 AE820194 */ sw $v0, 0x0194($s4) ## 00000194 -/* 01814 80815034 904E0002 */ lbu $t6, 0x0002($v0) ## 00000002 -/* 01818 80815038 3C198083 */ lui $t9, %hi(D_8082A11C) ## $t9 = 80830000 -/* 0181C 8081503C 00004025 */ or $t0, $zero, $zero ## $t0 = 00000000 -/* 01820 80815040 11C00243 */ beq $t6, $zero, .L80815950 -/* 01824 80815044 00009825 */ or $s3, $zero, $zero ## $s3 = 00000000 -/* 01828 80815048 8739A11C */ lh $t9, %lo(D_8082A11C)($t9) -/* 0182C 8081504C 90430002 */ lbu $v1, 0x0002($v0) ## 00000002 -/* 01830 80815050 3C128083 */ lui $s2, %hi(D_8082A130) ## $s2 = 80830000 -/* 01834 80815054 272F0001 */ addiu $t7, $t9, 0x0001 ## $t7 = 80830001 -/* 01838 80815058 15E30007 */ bne $t7, $v1, .L80815078 -/* 0183C 8081505C 2652A130 */ addiu $s2, $s2, %lo(D_8082A130) ## $s2 = 8082A130 -/* 01840 80815060 3C018083 */ lui $at, %hi(D_8082A11C) ## $at = 80830000 -/* 01844 80815064 A42FA11C */ sh $t7, %lo(D_8082A11C)($at) -/* 01848 80815068 90580000 */ lbu $t8, 0x0000($v0) ## 00000000 -/* 0184C 8081506C 3C018083 */ lui $at, %hi(D_8082A124-1) ## $at = 80830000 -/* 01850 80815070 00230821 */ addu $at, $at, $v1 -/* 01854 80815074 A038A123 */ sb $t8, %lo(D_8082A124-1)($at) -.L80815078: -/* 01858 80815078 3C100A0A */ lui $s0, 0x0A0A ## $s0 = 0A0A0000 -/* 0185C 8081507C 3C1F0003 */ lui $ra, 0x0003 ## $ra = 00030000 -/* 01860 80815080 3C0D0707 */ lui $t5, 0x0707 ## $t5 = 07070000 -/* 01864 80815084 3C0CFFFF */ lui $t4, 0xFFFF ## $t4 = FFFF0000 -/* 01868 80815088 3C0B50FF */ lui $t3, 0x50FF ## $t3 = 50FF0000 -/* 0186C 8081508C 356B9600 */ ori $t3, $t3, 0x9600 ## $t3 = 50FF9600 -/* 01870 80815090 358C3200 */ ori $t4, $t4, 0x3200 ## $t4 = FFFF3200 -/* 01874 80815094 35ADF400 */ ori $t5, $t5, 0xF400 ## $t5 = 0707F400 -/* 01878 80815098 37FFC03C */ ori $ra, $ra, 0xC03C ## $ra = 0003C03C -/* 0187C 8081509C 36100A00 */ ori $s0, $s0, 0x0A00 ## $s0 = 0A0A0A00 -/* 01880 808150A0 240A00FF */ addiu $t2, $zero, 0x00FF ## $t2 = 000000FF -.L808150A4: -/* 01884 808150A4 3C0E8083 */ lui $t6, %hi(D_8082A124) ## $t6 = 80830000 -/* 01888 808150A8 25CEA124 */ addiu $t6, $t6, %lo(D_8082A124) ## $t6 = 8082A124 -/* 0188C 808150AC 010E3821 */ addu $a3, $t0, $t6 -/* 01890 808150B0 90E50000 */ lbu $a1, 0x0000($a3) ## 00000000 -/* 01894 808150B4 3C0F8083 */ lui $t7, %hi(D_8082A150) ## $t7 = 80830000 -/* 01898 808150B8 25EFA150 */ addiu $t7, $t7, %lo(D_8082A150) ## $t7 = 8082A150 -/* 0189C 808150BC 11450224 */ beq $t2, $a1, .L80815950 -/* 018A0 808150C0 0008C840 */ sll $t9, $t0, 1 -/* 018A4 808150C4 032F3021 */ addu $a2, $t9, $t7 -/* 018A8 808150C8 84C20000 */ lh $v0, 0x0000($a2) ## 00000000 -/* 018AC 808150CC 3C188016 */ lui $t8, %hi(gGameInfo) -/* 018B0 808150D0 1142000A */ beq $t2, $v0, .L808150FC -/* 018B4 808150D4 00000000 */ nop -/* 018B8 808150D8 8F18FA90 */ lw $t8, %lo(gGameInfo)($t8) -/* 018BC 808150DC 870E0F78 */ lh $t6, 0x0F78($t8) ## 80160F78 -/* 018C0 808150E0 004EC821 */ addu $t9, $v0, $t6 -/* 018C4 808150E4 A4D90000 */ sh $t9, 0x0000($a2) ## 00000000 -/* 018C8 808150E8 84CF0000 */ lh $t7, 0x0000($a2) ## 00000000 -/* 018CC 808150EC 29E100FF */ slti $at, $t7, 0x00FF -/* 018D0 808150F0 14200002 */ bne $at, $zero, .L808150FC -/* 018D4 808150F4 00000000 */ nop -/* 018D8 808150F8 A4CA0000 */ sh $t2, 0x0000($a2) ## 00000000 -.L808150FC: -/* 018DC 808150FC 3C188016 */ lui $t8, %hi(gGameInfo) -/* 018E0 80815100 8F18FA90 */ lw $t8, %lo(gGameInfo)($t8) -/* 018E4 80815104 00057040 */ sll $t6, $a1, 1 -/* 018E8 80815108 8E8F0164 */ lw $t7, 0x0164($s4) ## 00000164 -/* 018EC 8081510C 030EC821 */ addu $t9, $t8, $t6 -/* 018F0 80815110 87220F3E */ lh $v0, 0x0F3E($t9) ## 80830F3E -/* 018F4 80815114 00092100 */ sll $a0, $t1, 4 -/* 018F8 80815118 01E4C021 */ addu $t8, $t7, $a0 -/* 018FC 8081511C A7020012 */ sh $v0, 0x0012($t8) ## 80160012 -/* 01900 80815120 8E8E0164 */ lw $t6, 0x0164($s4) ## 00000164 -/* 01904 80815124 01C4C821 */ addu $t9, $t6, $a0 -/* 01908 80815128 A7220002 */ sh $v0, 0x0002($t9) ## 80830002 -/* 0190C 8081512C 8E8F0164 */ lw $t7, 0x0164($s4) ## 00000164 -/* 01910 80815130 01E41821 */ addu $v1, $t7, $a0 -/* 01914 80815134 84620002 */ lh $v0, 0x0002($v1) ## 00000002 -/* 01918 80815138 2442FFF4 */ addiu $v0, $v0, 0xFFF4 ## $v0 = FFFFFFF4 -/* 0191C 8081513C 00021400 */ sll $v0, $v0, 16 -/* 01920 80815140 00021403 */ sra $v0, $v0, 16 -/* 01924 80815144 A4620032 */ sh $v0, 0x0032($v1) ## 00000032 -/* 01928 80815148 8E980164 */ lw $t8, 0x0164($s4) ## 00000164 -/* 0192C 8081514C 03047021 */ addu $t6, $t8, $a0 -/* 01930 80815150 A5C20022 */ sh $v0, 0x0022($t6) ## 8082A146 -/* 01934 80815154 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01938 80815158 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 0193C 8081515C AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 01940 80815160 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01944 80815164 ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 01948 80815168 90EF0000 */ lbu $t7, 0x0000($a3) ## 00000000 -/* 0194C 8081516C 55E0000C */ bnel $t7, $zero, .L808151A0 -/* 01950 80815170 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01954 80815174 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01958 80815178 3C0EFA00 */ lui $t6, 0xFA00 ## $t6 = FA000000 -/* 0195C 8081517C 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 01960 80815180 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 01964 80815184 ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 01968 80815188 84D90000 */ lh $t9, 0x0000($a2) ## 00000000 -/* 0196C 8081518C 332F00FF */ andi $t7, $t9, 0x00FF ## $t7 = 00000008 -/* 01970 80815190 01EBC025 */ or $t8, $t7, $t3 ## $t8 = 50FF9608 -/* 01974 80815194 1000000A */ beq $zero, $zero, .L808151C0 -/* 01978 80815198 ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 0197C 8081519C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -.L808151A0: -/* 01980 808151A0 3C19FA00 */ lui $t9, 0xFA00 ## $t9 = FA000000 -/* 01984 808151A4 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01988 808151A8 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 0198C 808151AC ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 01990 808151B0 84CF0000 */ lh $t7, 0x0000($a2) ## 00000000 -/* 01994 808151B4 31F800FF */ andi $t8, $t7, 0x00FF ## $t8 = 00000008 -/* 01998 808151B8 030C7025 */ or $t6, $t8, $t4 ## $t6 = FFFF3208 -/* 0199C 808151BC ACAE0004 */ sw $t6, 0x0004($a1) ## 00000004 -.L808151C0: -/* 019A0 808151C0 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 019A4 808151C4 3C0FFB00 */ lui $t7, 0xFB00 ## $t7 = FB000000 -/* 019A8 808151C8 3C0E0100 */ lui $t6, 0x0100 ## $t6 = 01000000 -/* 019AC 808151CC 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 019B0 808151D0 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 019B4 808151D4 ACB00004 */ sw $s0, 0x0004($a1) ## 00000004 -/* 019B8 808151D8 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 019BC 808151DC 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 019C0 808151E0 35CE4008 */ ori $t6, $t6, 0x4008 ## $t6 = 01004008 -/* 019C4 808151E4 25080001 */ addiu $t0, $t0, 0x0001 ## $t0 = 00000001 -/* 019C8 808151E8 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 019CC 808151EC AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 019D0 808151F0 ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 019D4 808151F4 8E990164 */ lw $t9, 0x0164($s4) ## 00000164 -/* 019D8 808151F8 3C0EFD70 */ lui $t6, 0xFD70 ## $t6 = FD700000 -/* 019DC 808151FC 00084400 */ sll $t0, $t0, 16 -/* 019E0 80815200 03247821 */ addu $t7, $t9, $a0 -/* 019E4 80815204 ACAF0004 */ sw $t7, 0x0004($a1) ## 00000004 -/* 019E8 80815208 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 019EC 8081520C 00084403 */ sra $t0, $t0, 16 -/* 019F0 80815210 26730004 */ addiu $s3, $s3, 0x0004 ## $s3 = 00000004 -/* 019F4 80815214 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 019F8 80815218 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 019FC 8081521C ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 01A00 80815220 90F90000 */ lbu $t9, 0x0000($a3) ## 00000000 -/* 01A04 80815224 25290004 */ addiu $t1, $t1, 0x0004 ## $t1 = 00000004 -/* 01A08 80815228 00094C00 */ sll $t1, $t1, 16 -/* 01A0C 8081522C 00197880 */ sll $t7, $t9, 2 -/* 01A10 80815230 024FC021 */ addu $t8, $s2, $t7 -/* 01A14 80815234 8F0E0000 */ lw $t6, 0x0000($t8) ## 00000008 -/* 01A18 80815238 3C0FF570 */ lui $t7, 0xF570 ## $t7 = F5700000 -/* 01A1C 8081523C 00139C00 */ sll $s3, $s3, 16 -/* 01A20 80815240 ACAE0004 */ sw $t6, 0x0004($a1) ## 00000004 -/* 01A24 80815244 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01A28 80815248 29010008 */ slti $at, $t0, 0x0008 -/* 01A2C 8081524C 00139C03 */ sra $s3, $s3, 16 -/* 01A30 80815250 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 01A34 80815254 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 01A38 80815258 ACB50004 */ sw $s5, 0x0004($a1) ## 00000004 -/* 01A3C 8081525C ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 01A40 80815260 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01A44 80815264 3C19F300 */ lui $t9, 0xF300 ## $t9 = F3000000 -/* 01A48 80815268 00094C03 */ sra $t1, $t1, 16 -/* 01A4C 8081526C 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 01A50 80815270 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 01A54 80815274 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01A58 80815278 ACBE0000 */ sw $s8, 0x0000($a1) ## 00000000 -/* 01A5C 8081527C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01A60 80815280 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01A64 80815284 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 01A68 80815288 ACAD0004 */ sw $t5, 0x0004($a1) ## 00000004 -/* 01A6C 8081528C ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 01A70 80815290 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01A74 80815294 3C0EF568 */ lui $t6, 0xF568 ## $t6 = F5680000 -/* 01A78 80815298 35CE0400 */ ori $t6, $t6, 0x0400 ## $t6 = F5680400 -/* 01A7C 8081529C 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 01A80 808152A0 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 01A84 808152A4 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01A88 808152A8 ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 01A8C 808152AC 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01A90 808152B0 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 01A94 808152B4 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 01A98 808152B8 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01A9C 808152BC ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 01AA0 808152C0 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01AA4 808152C4 3C180700 */ lui $t8, 0x0700 ## $t8 = 07000000 -/* 01AA8 808152C8 37180406 */ ori $t8, $t8, 0x0406 ## $t8 = 07000406 -/* 01AAC 808152CC 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 01AB0 808152D0 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 01AB4 808152D4 ACBF0004 */ sw $ra, 0x0004($a1) ## 00000004 -/* 01AB8 808152D8 ACB70000 */ sw $s7, 0x0000($a1) ## 00000000 -/* 01ABC 808152DC 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01AC0 808152E0 240E0602 */ addiu $t6, $zero, 0x0602 ## $t6 = 00000602 -/* 01AC4 808152E4 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 01AC8 808152E8 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 01ACC 808152EC ACAE0004 */ sw $t6, 0x0004($a1) ## 00000004 -/* 01AD0 808152F0 1420FF6C */ bne $at, $zero, .L808150A4 -/* 01AD4 808152F4 ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 01AD8 808152F8 10000195 */ beq $zero, $zero, .L80815950 -/* 01ADC 808152FC 00000000 */ nop -/* 01AE0 80815300 28410004 */ slti $at, $v0, 0x0004 -.L80815304: -/* 01AE4 80815304 14200002 */ bne $at, $zero, .L80815310 -/* 01AE8 80815308 28410007 */ slti $at, $v0, 0x0007 -/* 01AEC 8081530C 14200003 */ bne $at, $zero, .L8081531C -.L80815310: -/* 01AF0 80815310 24010008 */ addiu $at, $zero, 0x0008 ## $at = 00000008 -/* 01AF4 80815314 1441018E */ bne $v0, $at, .L80815950 -/* 01AF8 80815318 00000000 */ nop -.L8081531C: -/* 01AFC 8081531C 86860264 */ lh $a2, 0x0264($s4) ## 00000264 -/* 01B00 80815320 3C0F8013 */ lui $t7, %hi(gOcarinaSongNotes) -/* 01B04 80815324 25EF1C00 */ addiu $t7, %lo(gOcarinaSongNotes) -/* 01B08 80815328 0006C8C0 */ sll $t9, $a2, 3 -/* 01B0C 8081532C 0326C821 */ addu $t9, $t9, $a2 -/* 01B10 80815330 032FC021 */ addu $t8, $t9, $t7 -/* 01B14 80815334 93030000 */ lbu $v1, 0x0000($t8) ## 07000406 -/* 01B18 80815338 00094400 */ sll $t0, $t1, 16 -/* 01B1C 8081533C 00084403 */ sra $t0, $t0, 16 -/* 01B20 80815340 18600099 */ blez $v1, .L808155A8 -/* 01B24 80815344 00009825 */ or $s3, $zero, $zero ## $s3 = 00000000 -/* 01B28 80815348 000670C0 */ sll $t6, $a2, 3 -/* 01B2C 8081534C 01C67021 */ addu $t6, $t6, $a2 -/* 01B30 80815350 3C128083 */ lui $s2, %hi(D_8082A130) ## $s2 = 80830000 -/* 01B34 80815354 3C100A0A */ lui $s0, 0x0A0A ## $s0 = 0A0A0000 -/* 01B38 80815358 3C1F0003 */ lui $ra, 0x0003 ## $ra = 00030000 -/* 01B3C 8081535C 3C0D0707 */ lui $t5, 0x0707 ## $t5 = 07070000 -/* 01B40 80815360 3C0C9696 */ lui $t4, 0x9696 ## $t4 = 96960000 -/* 01B44 80815364 3C0BFFFF */ lui $t3, 0xFFFF ## $t3 = FFFF0000 -/* 01B48 80815368 3C0A50FF */ lui $t2, 0x50FF ## $t2 = 50FF0000 -/* 01B4C 8081536C 354A96C8 */ ori $t2, $t2, 0x96C8 ## $t2 = 50FF96C8 -/* 01B50 80815370 356B32C8 */ ori $t3, $t3, 0x32C8 ## $t3 = FFFF32C8 -/* 01B54 80815374 358C9696 */ ori $t4, $t4, 0x9696 ## $t4 = 96969696 -/* 01B58 80815378 35ADF400 */ ori $t5, $t5, 0xF400 ## $t5 = 0707F400 -/* 01B5C 8081537C 37FFC03C */ ori $ra, $ra, 0xC03C ## $ra = 0003C03C -/* 01B60 80815380 36100A00 */ ori $s0, $s0, 0x0A00 ## $s0 = 0A0A0A00 -/* 01B64 80815384 2652A130 */ addiu $s2, $s2, %lo(D_8082A130) ## $s2 = 8082A130 -/* 01B68 80815388 01CF3821 */ addu $a3, $t6, $t7 -/* 01B6C 8081538C A7A30226 */ sh $v1, 0x0226($sp) -/* 01B70 80815390 00F33021 */ addu $a2, $a3, $s3 -.L80815394: -/* 01B74 80815394 90D80001 */ lbu $t8, 0x0001($a2) ## 00000001 -/* 01B78 80815398 3C198016 */ lui $t9, %hi(gGameInfo) -/* 01B7C 8081539C 8F39FA90 */ lw $t9, %lo(gGameInfo)($t9) -/* 01B80 808153A0 00187040 */ sll $t6, $t8, 1 -/* 01B84 808153A4 8E980164 */ lw $t8, 0x0164($s4) ## 00000164 -/* 01B88 808153A8 032E7821 */ addu $t7, $t9, $t6 -/* 01B8C 808153AC 85E20F3E */ lh $v0, 0x0F3E($t7) ## 80132B3E -/* 01B90 808153B0 00092100 */ sll $a0, $t1, 4 -/* 01B94 808153B4 0304C821 */ addu $t9, $t8, $a0 -/* 01B98 808153B8 A7220012 */ sh $v0, 0x0012($t9) ## 80160012 -/* 01B9C 808153BC 8E8E0164 */ lw $t6, 0x0164($s4) ## 00000164 -/* 01BA0 808153C0 24010008 */ addiu $at, $zero, 0x0008 ## $at = 00000008 -/* 01BA4 808153C4 01C47821 */ addu $t7, $t6, $a0 -/* 01BA8 808153C8 A5E20002 */ sh $v0, 0x0002($t7) ## 80131C02 -/* 01BAC 808153CC 8E980164 */ lw $t8, 0x0164($s4) ## 00000164 -/* 01BB0 808153D0 03041821 */ addu $v1, $t8, $a0 -/* 01BB4 808153D4 84620002 */ lh $v0, 0x0002($v1) ## 00000002 -/* 01BB8 808153D8 2442FFF4 */ addiu $v0, $v0, 0xFFF4 ## $v0 = FFFFFFE8 -/* 01BBC 808153DC 00021400 */ sll $v0, $v0, 16 -/* 01BC0 808153E0 00021403 */ sra $v0, $v0, 16 -/* 01BC4 808153E4 A4620032 */ sh $v0, 0x0032($v1) ## 00000032 -/* 01BC8 808153E8 8E990164 */ lw $t9, 0x0164($s4) ## 00000164 -/* 01BCC 808153EC 03247021 */ addu $t6, $t9, $a0 -/* 01BD0 808153F0 A5C20022 */ sh $v0, 0x0022($t6) ## 00000624 -/* 01BD4 808153F4 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01BD8 808153F8 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 01BDC 808153FC AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 01BE0 80815400 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01BE4 80815404 ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 01BE8 80815408 969801E4 */ lhu $t8, 0x01E4($s4) ## 000001E4 -/* 01BEC 8081540C 57010013 */ bnel $t8, $at, .L8081545C -/* 01BF0 80815410 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01BF4 80815414 90D90001 */ lbu $t9, 0x0001($a2) ## 00000001 -/* 01BF8 80815418 57200009 */ bnel $t9, $zero, .L80815440 -/* 01BFC 8081541C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01C00 80815420 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01C04 80815424 3C0FFA00 */ lui $t7, 0xFA00 ## $t7 = FA000000 -/* 01C08 80815428 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01C0C 8081542C AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 01C10 80815430 ACAA0004 */ sw $t2, 0x0004($a1) ## 00000004 -/* 01C14 80815434 1000000E */ beq $zero, $zero, .L80815470 -/* 01C18 80815438 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 01C1C 8081543C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -.L80815440: -/* 01C20 80815440 3C19FA00 */ lui $t9, 0xFA00 ## $t9 = FA000000 -/* 01C24 80815444 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 01C28 80815448 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 01C2C 8081544C ACAB0004 */ sw $t3, 0x0004($a1) ## 00000004 -/* 01C30 80815450 10000007 */ beq $zero, $zero, .L80815470 -/* 01C34 80815454 ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 01C38 80815458 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -.L8081545C: -/* 01C3C 8081545C 3C0FFA00 */ lui $t7, 0xFA00 ## $t7 = FA000000 -/* 01C40 80815460 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01C44 80815464 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 01C48 80815468 ACAC0004 */ sw $t4, 0x0004($a1) ## 00000004 -/* 01C4C 8081546C ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -.L80815470: -/* 01C50 80815470 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01C54 80815474 3C19FB00 */ lui $t9, 0xFB00 ## $t9 = FB000000 -/* 01C58 80815478 3C0F0100 */ lui $t7, 0x0100 ## $t7 = 01000000 -/* 01C5C 8081547C 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 01C60 80815480 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 01C64 80815484 ACB00004 */ sw $s0, 0x0004($a1) ## 00000004 -/* 01C68 80815488 ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 01C6C 8081548C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01C70 80815490 35EF4008 */ ori $t7, $t7, 0x4008 ## $t7 = 01004008 -/* 01C74 80815494 26730001 */ addiu $s3, $s3, 0x0001 ## $s3 = 00000001 -/* 01C78 80815498 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01C7C 8081549C AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 01C80 808154A0 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 01C84 808154A4 8E980164 */ lw $t8, 0x0164($s4) ## 00000164 -/* 01C88 808154A8 3C0FFD70 */ lui $t7, 0xFD70 ## $t7 = FD700000 -/* 01C8C 808154AC 00139C00 */ sll $s3, $s3, 16 -/* 01C90 808154B0 0304C821 */ addu $t9, $t8, $a0 -/* 01C94 808154B4 ACB90004 */ sw $t9, 0x0004($a1) ## 00000004 -/* 01C98 808154B8 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01C9C 808154BC 00139C03 */ sra $s3, $s3, 16 -/* 01CA0 808154C0 25290004 */ addiu $t1, $t1, 0x0004 ## $t1 = 00000008 -/* 01CA4 808154C4 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01CA8 808154C8 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 01CAC 808154CC ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 01CB0 808154D0 90D80001 */ lbu $t8, 0x0001($a2) ## 00000001 -/* 01CB4 808154D4 00094C00 */ sll $t1, $t1, 16 -/* 01CB8 808154D8 00094C03 */ sra $t1, $t1, 16 -/* 01CBC 808154DC 0018C880 */ sll $t9, $t8, 2 -/* 01CC0 808154E0 02597021 */ addu $t6, $s2, $t9 -/* 01CC4 808154E4 8DCF0000 */ lw $t7, 0x0000($t6) ## 00000008 -/* 01CC8 808154E8 3C19F570 */ lui $t9, 0xF570 ## $t9 = F5700000 -/* 01CCC 808154EC ACAF0004 */ sw $t7, 0x0004($a1) ## 00000004 -/* 01CD0 808154F0 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01CD4 808154F4 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 01CD8 808154F8 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 01CDC 808154FC ACB50004 */ sw $s5, 0x0004($a1) ## 00000004 -/* 01CE0 80815500 ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 01CE4 80815504 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01CE8 80815508 3C18F300 */ lui $t8, 0xF300 ## $t8 = F3000000 -/* 01CEC 8081550C 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01CF0 80815510 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 01CF4 80815514 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01CF8 80815518 ACBE0000 */ sw $s8, 0x0000($a1) ## 00000000 -/* 01CFC 8081551C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01D00 80815520 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 01D04 80815524 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 01D08 80815528 ACAD0004 */ sw $t5, 0x0004($a1) ## 00000004 -/* 01D0C 8081552C ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 01D10 80815530 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01D14 80815534 3C0FF568 */ lui $t7, 0xF568 ## $t7 = F5680000 -/* 01D18 80815538 35EF0400 */ ori $t7, $t7, 0x0400 ## $t7 = F5680400 -/* 01D1C 8081553C 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 01D20 80815540 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 01D24 80815544 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01D28 80815548 ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 01D2C 8081554C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01D30 80815550 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01D34 80815554 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 01D38 80815558 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01D3C 8081555C ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 01D40 80815560 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01D44 80815564 3C0E0700 */ lui $t6, 0x0700 ## $t6 = 07000000 -/* 01D48 80815568 35CE0406 */ ori $t6, $t6, 0x0406 ## $t6 = 07000406 -/* 01D4C 8081556C 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 01D50 80815570 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 01D54 80815574 ACBF0004 */ sw $ra, 0x0004($a1) ## 00000004 -/* 01D58 80815578 ACB70000 */ sw $s7, 0x0000($a1) ## 00000000 -/* 01D5C 8081557C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01D60 80815580 240F0602 */ addiu $t7, $zero, 0x0602 ## $t7 = 00000602 -/* 01D64 80815584 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 01D68 80815588 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 01D6C 8081558C ACAF0004 */ sw $t7, 0x0004($a1) ## 00000004 -/* 01D70 80815590 ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 01D74 80815594 87B80226 */ lh $t8, 0x0226($sp) -/* 01D78 80815598 0278082A */ slt $at, $s3, $t8 -/* 01D7C 8081559C 5420FF7D */ bnel $at, $zero, .L80815394 -/* 01D80 808155A0 00F33021 */ addu $a2, $a3, $s3 -/* 01D84 808155A4 968201E4 */ lhu $v0, 0x01E4($s4) ## 000001E4 -.L808155A8: -/* 01D88 808155A8 3C100A0A */ lui $s0, 0x0A0A ## $s0 = 0A0A0000 -/* 01D8C 808155AC 3C128083 */ lui $s2, %hi(D_8082A130) ## $s2 = 80830000 -/* 01D90 808155B0 24010008 */ addiu $at, $zero, 0x0008 ## $at = 00000008 -/* 01D94 808155B4 2652A130 */ addiu $s2, $s2, %lo(D_8082A130) ## $s2 = 8082A130 -/* 01D98 808155B8 104100E5 */ beq $v0, $at, .L80815950 -/* 01D9C 808155BC 36100A00 */ ori $s0, $s0, 0x0A00 ## $s0 = 0A0A0A00 -/* 01DA0 808155C0 00009825 */ or $s3, $zero, $zero ## $s3 = 00000000 -/* 01DA4 808155C4 0C03B8F5 */ jal func_800EE3D4 -/* 01DA8 808155C8 A7A80218 */ sh $t0, 0x0218($sp) -/* 01DAC 808155CC 87A80218 */ lh $t0, 0x0218($sp) -/* 01DB0 808155D0 AE820194 */ sw $v0, 0x0194($s4) ## 00000194 -/* 01DB4 808155D4 90590002 */ lbu $t9, 0x0002($v0) ## 00000002 -/* 01DB8 808155D8 3C0D0707 */ lui $t5, 0x0707 ## $t5 = 07070000 -/* 01DBC 808155DC 3C1F0003 */ lui $ra, 0x0003 ## $ra = 00030000 -/* 01DC0 808155E0 37FFC03C */ ori $ra, $ra, 0xC03C ## $ra = 0003C03C -/* 01DC4 808155E4 13200019 */ beq $t9, $zero, .L8081564C -/* 01DC8 808155E8 35ADF400 */ ori $t5, $t5, 0xF400 ## $t5 = 0707F400 -/* 01DCC 808155EC 3C0E8083 */ lui $t6, %hi(D_8082A11C) ## $t6 = 80830000 -/* 01DD0 808155F0 85CEA11C */ lh $t6, %lo(D_8082A11C)($t6) -/* 01DD4 808155F4 90430002 */ lbu $v1, 0x0002($v0) ## 00000002 -/* 01DD8 808155F8 25CF0001 */ addiu $t7, $t6, 0x0001 ## $t7 = 80830001 -/* 01DDC 808155FC 55E30014 */ bnel $t7, $v1, .L80815650 -/* 01DE0 80815600 25090020 */ addiu $t1, $t0, 0x0020 ## $t1 = 00000020 -/* 01DE4 80815604 90440000 */ lbu $a0, 0x0000($v0) ## 00000000 -/* 01DE8 80815608 04800010 */ bltz $a0, .L8081564C -/* 01DEC 8081560C 28810005 */ slti $at, $a0, 0x0005 -/* 01DF0 80815610 1020000E */ beq $at, $zero, .L8081564C -/* 01DF4 80815614 241800FF */ addiu $t8, $zero, 0x00FF ## $t8 = 000000FF -/* 01DF8 80815618 3C018083 */ lui $at, %hi(D_8082A124-1) ## $at = 80830000 -/* 01DFC 8081561C 00230821 */ addu $at, $at, $v1 -/* 01E00 80815620 A024A123 */ sb $a0, %lo(D_8082A124-1)($at) -/* 01E04 80815624 8E990194 */ lw $t9, 0x0194($s4) ## 00000194 -/* 01E08 80815628 3C0F8083 */ lui $t7, %hi(D_8082A11C) ## $t7 = 80830000 -/* 01E0C 8081562C 85EFA11C */ lh $t7, %lo(D_8082A11C)($t7) -/* 01E10 80815630 932E0002 */ lbu $t6, 0x0002($t9) ## 00000002 -/* 01E14 80815634 3C018083 */ lui $at, %hi(D_8082A124) ## $at = 80830000 -/* 01E18 80815638 25F90001 */ addiu $t9, $t7, 0x0001 ## $t9 = 80830001 -/* 01E1C 8081563C 002E0821 */ addu $at, $at, $t6 -/* 01E20 80815640 A038A124 */ sb $t8, %lo(D_8082A124)($at) -/* 01E24 80815644 3C018083 */ lui $at, %hi(D_8082A11C) ## $at = 80830000 -/* 01E28 80815648 A439A11C */ sh $t9, %lo(D_8082A11C)($at) -.L8081564C: -/* 01E2C 8081564C 25090020 */ addiu $t1, $t0, 0x0020 ## $t1 = 00000020 -.L80815650: -/* 01E30 80815650 00094C00 */ sll $t1, $t1, 16 -/* 01E34 80815654 3C0CFFFF */ lui $t4, 0xFFFF ## $t4 = FFFF0000 -/* 01E38 80815658 3C0B50FF */ lui $t3, 0x50FF ## $t3 = 50FF0000 -/* 01E3C 8081565C 00094C03 */ sra $t1, $t1, 16 -/* 01E40 80815660 356B9600 */ ori $t3, $t3, 0x9600 ## $t3 = 50FF9600 -/* 01E44 80815664 358C3200 */ ori $t4, $t4, 0x3200 ## $t4 = FFFF3200 -/* 01E48 80815668 240A00FF */ addiu $t2, $zero, 0x00FF ## $t2 = 000000FF -.L8081566C: -/* 01E4C 8081566C 3C188083 */ lui $t8, %hi(D_8082A124) ## $t8 = 80830000 -/* 01E50 80815670 2718A124 */ addiu $t8, $t8, %lo(D_8082A124) ## $t8 = 8082A124 -/* 01E54 80815674 02783821 */ addu $a3, $s3, $t8 -/* 01E58 80815678 90E50000 */ lbu $a1, 0x0000($a3) ## 00000000 -/* 01E5C 8081567C 3C0F8083 */ lui $t7, %hi(D_8082A150) ## $t7 = 80830000 -/* 01E60 80815680 25EFA150 */ addiu $t7, $t7, %lo(D_8082A150) ## $t7 = 8082A150 -/* 01E64 80815684 11450083 */ beq $t2, $a1, .L80815894 -/* 01E68 80815688 00137040 */ sll $t6, $s3, 1 -/* 01E6C 8081568C 01CF3021 */ addu $a2, $t6, $t7 -/* 01E70 80815690 84C20000 */ lh $v0, 0x0000($a2) ## 00000000 -/* 01E74 80815694 3C198016 */ lui $t9, %hi(gGameInfo) -/* 01E78 80815698 1142000A */ beq $t2, $v0, .L808156C4 -/* 01E7C 8081569C 00000000 */ nop -/* 01E80 808156A0 8F39FA90 */ lw $t9, %lo(gGameInfo)($t9) -/* 01E84 808156A4 87380F78 */ lh $t8, 0x0F78($t9) ## 80160F78 -/* 01E88 808156A8 00587021 */ addu $t6, $v0, $t8 -/* 01E8C 808156AC A4CE0000 */ sh $t6, 0x0000($a2) ## 00000000 -/* 01E90 808156B0 84CF0000 */ lh $t7, 0x0000($a2) ## 00000000 -/* 01E94 808156B4 29E100FF */ slti $at, $t7, 0x00FF -/* 01E98 808156B8 14200002 */ bne $at, $zero, .L808156C4 -/* 01E9C 808156BC 00000000 */ nop -/* 01EA0 808156C0 A4CA0000 */ sh $t2, 0x0000($a2) ## 00000000 -.L808156C4: -/* 01EA4 808156C4 3C198016 */ lui $t9, %hi(gGameInfo) -/* 01EA8 808156C8 8F39FA90 */ lw $t9, %lo(gGameInfo)($t9) -/* 01EAC 808156CC 0005C040 */ sll $t8, $a1, 1 -/* 01EB0 808156D0 8E8F0164 */ lw $t7, 0x0164($s4) ## 00000164 -/* 01EB4 808156D4 03387021 */ addu $t6, $t9, $t8 -/* 01EB8 808156D8 85C20F3E */ lh $v0, 0x0F3E($t6) ## 80830F3E -/* 01EBC 808156DC 00092100 */ sll $a0, $t1, 4 -/* 01EC0 808156E0 01E4C821 */ addu $t9, $t7, $a0 -/* 01EC4 808156E4 A7220012 */ sh $v0, 0x0012($t9) ## 80160012 -/* 01EC8 808156E8 8E980164 */ lw $t8, 0x0164($s4) ## 00000164 -/* 01ECC 808156EC 03047021 */ addu $t6, $t8, $a0 -/* 01ED0 808156F0 A5C20002 */ sh $v0, 0x0002($t6) ## 80830002 -/* 01ED4 808156F4 8E8F0164 */ lw $t7, 0x0164($s4) ## 00000164 -/* 01ED8 808156F8 01E41821 */ addu $v1, $t7, $a0 -/* 01EDC 808156FC 84620002 */ lh $v0, 0x0002($v1) ## 00000002 -/* 01EE0 80815700 2442FFF4 */ addiu $v0, $v0, 0xFFF4 ## $v0 = FFFFFFF4 -/* 01EE4 80815704 00021400 */ sll $v0, $v0, 16 -/* 01EE8 80815708 00021403 */ sra $v0, $v0, 16 -/* 01EEC 8081570C A4620032 */ sh $v0, 0x0032($v1) ## 00000032 -/* 01EF0 80815710 8E990164 */ lw $t9, 0x0164($s4) ## 00000164 -/* 01EF4 80815714 0324C021 */ addu $t8, $t9, $a0 -/* 01EF8 80815718 A7020022 */ sh $v0, 0x0022($t8) ## 8082A146 -/* 01EFC 8081571C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01F00 80815720 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01F04 80815724 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 01F08 80815728 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01F0C 8081572C ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 01F10 80815730 90EF0000 */ lbu $t7, 0x0000($a3) ## 00000000 -/* 01F14 80815734 55E0000C */ bnel $t7, $zero, .L80815768 -/* 01F18 80815738 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01F1C 8081573C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01F20 80815740 3C18FA00 */ lui $t8, 0xFA00 ## $t8 = FA000000 -/* 01F24 80815744 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 01F28 80815748 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 01F2C 8081574C ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 01F30 80815750 84CE0000 */ lh $t6, 0x0000($a2) ## 00000000 -/* 01F34 80815754 31CF00FF */ andi $t7, $t6, 0x00FF ## $t7 = 00000008 -/* 01F38 80815758 01EBC825 */ or $t9, $t7, $t3 ## $t9 = 50FF9608 -/* 01F3C 8081575C 1000000A */ beq $zero, $zero, .L80815788 -/* 01F40 80815760 ACB90004 */ sw $t9, 0x0004($a1) ## 00000004 -/* 01F44 80815764 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -.L80815768: -/* 01F48 80815768 3C0EFA00 */ lui $t6, 0xFA00 ## $t6 = FA000000 -/* 01F4C 8081576C 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 01F50 80815770 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 01F54 80815774 ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 01F58 80815778 84CF0000 */ lh $t7, 0x0000($a2) ## 00000000 -/* 01F5C 8081577C 31F900FF */ andi $t9, $t7, 0x00FF ## $t9 = 00000008 -/* 01F60 80815780 032CC025 */ or $t8, $t9, $t4 ## $t8 = FFFF3208 -/* 01F64 80815784 ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -.L80815788: -/* 01F68 80815788 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01F6C 8081578C 3C0FFB00 */ lui $t7, 0xFB00 ## $t7 = FB000000 -/* 01F70 80815790 3C180100 */ lui $t8, 0x0100 ## $t8 = 01000000 -/* 01F74 80815794 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01F78 80815798 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 01F7C 8081579C ACB00004 */ sw $s0, 0x0004($a1) ## 00000004 -/* 01F80 808157A0 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 01F84 808157A4 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01F88 808157A8 37184008 */ ori $t8, $t8, 0x4008 ## $t8 = 01004008 -/* 01F8C 808157AC 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 01F90 808157B0 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 01F94 808157B4 ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 01F98 808157B8 8E8E0164 */ lw $t6, 0x0164($s4) ## 00000164 -/* 01F9C 808157BC 3C18FD70 */ lui $t8, 0xFD70 ## $t8 = FD700000 -/* 01FA0 808157C0 01C47821 */ addu $t7, $t6, $a0 -/* 01FA4 808157C4 ACAF0004 */ sw $t7, 0x0004($a1) ## 00000004 -/* 01FA8 808157C8 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01FAC 808157CC 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 01FB0 808157D0 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 01FB4 808157D4 ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 01FB8 808157D8 90EE0000 */ lbu $t6, 0x0000($a3) ## 00000000 -/* 01FBC 808157DC 000E7880 */ sll $t7, $t6, 2 -/* 01FC0 808157E0 024FC821 */ addu $t9, $s2, $t7 -/* 01FC4 808157E4 8F380000 */ lw $t8, 0x0000($t9) ## 00000008 -/* 01FC8 808157E8 3C0FF570 */ lui $t7, 0xF570 ## $t7 = F5700000 -/* 01FCC 808157EC ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 01FD0 808157F0 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01FD4 808157F4 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 01FD8 808157F8 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 01FDC 808157FC ACB50004 */ sw $s5, 0x0004($a1) ## 00000004 -/* 01FE0 80815800 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 01FE4 80815804 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 01FE8 80815808 3C0EF300 */ lui $t6, 0xF300 ## $t6 = F3000000 -/* 01FEC 8081580C 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 01FF0 80815810 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 01FF4 80815814 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 01FF8 80815818 ACBE0000 */ sw $s8, 0x0000($a1) ## 00000000 -/* 01FFC 8081581C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02000 80815820 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 02004 80815824 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 02008 80815828 ACAD0004 */ sw $t5, 0x0004($a1) ## 00000004 -/* 0200C 8081582C ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 02010 80815830 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02014 80815834 3C18F568 */ lui $t8, 0xF568 ## $t8 = F5680000 -/* 02018 80815838 37180400 */ ori $t8, $t8, 0x0400 ## $t8 = F5680400 -/* 0201C 8081583C 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 02020 80815840 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 02024 80815844 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 02028 80815848 ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 0202C 8081584C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02030 80815850 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 02034 80815854 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 02038 80815858 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 0203C 8081585C ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 02040 80815860 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02044 80815864 3C190700 */ lui $t9, 0x0700 ## $t9 = 07000000 -/* 02048 80815868 37390406 */ ori $t9, $t9, 0x0406 ## $t9 = 07000406 -/* 0204C 8081586C 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 02050 80815870 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 02054 80815874 ACBF0004 */ sw $ra, 0x0004($a1) ## 00000004 -/* 02058 80815878 ACB70000 */ sw $s7, 0x0000($a1) ## 00000000 -/* 0205C 8081587C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02060 80815880 24180602 */ addiu $t8, $zero, 0x0602 ## $t8 = 00000602 -/* 02064 80815884 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 02068 80815888 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 0206C 8081588C ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 02070 80815890 ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -.L80815894: -/* 02074 80815894 26730001 */ addiu $s3, $s3, 0x0001 ## $s3 = 00000001 -/* 02078 80815898 00139C00 */ sll $s3, $s3, 16 -/* 0207C 8081589C 00139C03 */ sra $s3, $s3, 16 -/* 02080 808158A0 25290004 */ addiu $t1, $t1, 0x0004 ## $t1 = 00000024 -/* 02084 808158A4 00094C00 */ sll $t1, $t1, 16 -/* 02088 808158A8 2A610008 */ slti $at, $s3, 0x0008 -/* 0208C 808158AC 1420FF6F */ bne $at, $zero, .L8081566C -/* 02090 808158B0 00094C03 */ sra $t1, $t1, 16 -/* 02094 808158B4 968E01E4 */ lhu $t6, 0x01E4($s4) ## 000001E4 -/* 02098 808158B8 24010004 */ addiu $at, $zero, 0x0004 ## $at = 00000004 -/* 0209C 808158BC 00009825 */ or $s3, $zero, $zero ## $s3 = 00000000 -/* 020A0 808158C0 15C10023 */ bne $t6, $at, .L80815950 -/* 020A4 808158C4 3C048083 */ lui $a0, %hi(D_8082A124) ## $a0 = 80830000 -/* 020A8 808158C8 3C028083 */ lui $v0, %hi(D_8082A150) ## $v0 = 80830000 -/* 020AC 808158CC 2442A150 */ addiu $v0, $v0, %lo(D_8082A150) ## $v0 = 8082A150 -/* 020B0 808158D0 2484A124 */ addiu $a0, $a0, %lo(D_8082A124) ## $a0 = 8082A124 -/* 020B4 808158D4 240300FF */ addiu $v1, $zero, 0x00FF ## $v1 = 000000FF -.L808158D8: -/* 020B8 808158D8 00937821 */ addu $t7, $a0, $s3 -/* 020BC 808158DC 0013C840 */ sll $t9, $s3, 1 -/* 020C0 808158E0 26730001 */ addiu $s3, $s3, 0x0001 ## $s3 = 00000001 -/* 020C4 808158E4 00139C00 */ sll $s3, $s3, 16 -/* 020C8 808158E8 00139C03 */ sra $s3, $s3, 16 -/* 020CC 808158EC 2A610008 */ slti $at, $s3, 0x0008 -/* 020D0 808158F0 A1E30000 */ sb $v1, 0x0000($t7) ## 00000008 -/* 020D4 808158F4 0059C021 */ addu $t8, $v0, $t9 -/* 020D8 808158F8 1420FFF7 */ bne $at, $zero, .L808158D8 -/* 020DC 808158FC A7000000 */ sh $zero, 0x0000($t8) ## 00000602 -/* 020E0 80815900 3C018083 */ lui $at, %hi(D_8082A11C) ## $at = 80830000 -/* 020E4 80815904 A420A11C */ sh $zero, %lo(D_8082A11C)($at) -/* 020E8 80815908 0C03B616 */ jal func_800ED858 -/* 020EC 8081590C 24040001 */ addiu $a0, $zero, 0x0001 ## $a0 = 00000001 -/* 020F0 80815910 868E0264 */ lh $t6, 0x0264($s4) ## 00000264 -/* 020F4 80815914 240F0001 */ addiu $t7, $zero, 0x0001 ## $t7 = 00000001 -/* 020F8 80815918 34018000 */ ori $at, $zero, 0x8000 ## $at = 00008000 -/* 020FC 8081591C 01CF2004 */ sllv $a0, $t7, $t6 -/* 02100 80815920 00812021 */ addu $a0, $a0, $at -/* 02104 80815924 0C03B301 */ jal func_800ECC04 -/* 02108 80815928 3084FFFF */ andi $a0, $a0, 0xFFFF ## $a0 = 00000000 -/* 0210C 8081592C 0C03B8FE */ jal Audio_OcaGetDisplayStaff -/* 02110 80815930 00000000 */ nop -/* 02114 80815934 AE820194 */ sw $v0, 0x0194($s4) ## 00000194 -/* 02118 80815938 A0400002 */ sb $zero, 0x0002($v0) ## 00000002 -/* 0211C 8081593C 8E980194 */ lw $t8, 0x0194($s4) ## 00000194 -/* 02120 80815940 241900FE */ addiu $t9, $zero, 0x00FE ## $t9 = 000000FE -/* 02124 80815944 240F0005 */ addiu $t7, $zero, 0x0005 ## $t7 = 00000005 -/* 02128 80815948 A3190001 */ sb $t9, 0x0001($t8) ## 00000001 -/* 0212C 8081594C A68F01E4 */ sh $t7, 0x01E4($s4) ## 000001E4 -.L80815950: -/* 02130 80815950 3C0E8012 */ lui $t6, %hi(gBitFlags+0x5c) -/* 02134 80815954 3C198016 */ lui $t9, %hi(gSaveContext+0xa4) -/* 02138 80815958 8F39E704 */ lw $t9, %lo(gSaveContext+0xa4)($t9) -/* 0213C 8081595C 8DCE717C */ lw $t6, %lo(gBitFlags+0x5c)($t6) -/* 02140 80815960 00009825 */ or $s3, $zero, $zero ## $s3 = 00000000 -/* 02144 80815964 00004025 */ or $t0, $zero, $zero ## $t0 = 00000000 -/* 02148 80815968 01D9C024 */ and $t8, $t6, $t9 -/* 0214C 8081596C 130000C4 */ beq $t8, $zero, .L80815C80 -/* 02150 80815970 3C19FC30 */ lui $t9, 0xFC30 ## $t9 = FC300000 -/* 02154 80815974 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02158 80815978 3C18552E */ lui $t8, 0x552E ## $t8 = 552E0000 -/* 0215C 8081597C 3718FF7F */ ori $t8, $t8, 0xFF7F ## $t8 = 552EFF7F -/* 02160 80815980 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 02164 80815984 AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 02168 80815988 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 0216C 8081598C ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 02170 80815990 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02174 80815994 37399661 */ ori $t9, $t9, 0x9661 ## $t9 = FC309661 -/* 02178 80815998 3C028016 */ lui $v0, %hi(gSaveContext+0xd0) -/* 0217C 8081599C 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 02180 808159A0 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 02184 808159A4 ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 02188 808159A8 ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 0218C 808159AC 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02190 808159B0 3C0EFB00 */ lui $t6, 0xFB00 ## $t6 = FB000000 -/* 02194 808159B4 00001C00 */ sll $v1, $zero, 16 -/* 02198 808159B8 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 0219C 808159BC AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 021A0 808159C0 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 021A4 808159C4 ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 021A8 808159C8 8442E730 */ lh $v0, %lo(gSaveContext+0xd0)($v0) -/* 021AC 808159CC 00031C03 */ sra $v1, $v1, 16 -/* 021B0 808159D0 00002025 */ or $a0, $zero, $zero ## $a0 = 00000000 -/* 021B4 808159D4 28410064 */ slti $at, $v0, 0x0064 -/* 021B8 808159D8 1420000A */ bne $at, $zero, .L80815A04 -/* 021BC 808159DC A7A30208 */ sh $v1, 0x0208($sp) -.L808159E0: -/* 021C0 808159E0 2442FF9C */ addiu $v0, $v0, 0xFF9C ## $v0 = 8015FF9C -/* 021C4 808159E4 00021400 */ sll $v0, $v0, 16 -/* 021C8 808159E8 24630001 */ addiu $v1, $v1, 0x0001 ## $v1 = 00000001 -/* 021CC 808159EC 00021403 */ sra $v0, $v0, 16 -/* 021D0 808159F0 28410064 */ slti $at, $v0, 0x0064 -/* 021D4 808159F4 00031C00 */ sll $v1, $v1, 16 -/* 021D8 808159F8 1020FFF9 */ beq $at, $zero, .L808159E0 -/* 021DC 808159FC 00031C03 */ sra $v1, $v1, 16 -/* 021E0 80815A00 A7A30208 */ sh $v1, 0x0208($sp) -.L80815A04: -/* 021E4 80815A04 2841000A */ slti $at, $v0, 0x000A -/* 021E8 80815A08 A7A2020C */ sh $v0, 0x020C($sp) -/* 021EC 80815A0C 1420000B */ bne $at, $zero, .L80815A3C -/* 021F0 80815A10 A7A4020A */ sh $a0, 0x020A($sp) -.L80815A14: -/* 021F4 80815A14 2442FFF6 */ addiu $v0, $v0, 0xFFF6 ## $v0 = 8015FF92 -/* 021F8 80815A18 00021400 */ sll $v0, $v0, 16 -/* 021FC 80815A1C 24840001 */ addiu $a0, $a0, 0x0001 ## $a0 = 00000001 -/* 02200 80815A20 00021403 */ sra $v0, $v0, 16 -/* 02204 80815A24 2841000A */ slti $at, $v0, 0x000A -/* 02208 80815A28 00042400 */ sll $a0, $a0, 16 -/* 0220C 80815A2C 1020FFF9 */ beq $at, $zero, .L80815A14 -/* 02210 80815A30 00042403 */ sra $a0, $a0, 16 -/* 02214 80815A34 A7A4020A */ sh $a0, 0x020A($sp) -/* 02218 80815A38 A7A2020C */ sh $v0, 0x020C($sp) -.L80815A3C: -/* 0221C 80815A3C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02220 80815A40 3C180101 */ lui $t8, 0x0101 ## $t8 = 01010000 -/* 02224 80815A44 37188030 */ ori $t8, $t8, 0x8030 ## $t8 = 01018030 -/* 02228 80815A48 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 0222C 80815A4C AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 02230 80815A50 ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 02234 80815A54 8E8F0164 */ lw $t7, 0x0164($s4) ## 00000164 -/* 02238 80815A58 3C120001 */ lui $s2, 0x0001 ## $s2 = 00010000 -/* 0223C 80815A5C 3C1FF588 */ lui $ra, 0xF588 ## $ra = F5880000 -/* 02240 80815A60 3C0D0703 */ lui $t5, 0x0703 ## $t5 = 07030000 -/* 02244 80815A64 3C0B0200 */ lui $t3, %hi(gCounterDigit0Tex) ## $t3 = 02000000 -/* 02248 80815A68 25EE0A40 */ addiu $t6, $t7, 0x0A40 ## $t6 = 00000A48 -/* 0224C 80815A6C 256B3040 */ addiu $t3, $t3, %lo(gCounterDigit0Tex) ## $t3 = 02003040 -/* 02250 80815A70 35ADF800 */ ori $t5, $t5, 0xF800 ## $t5 = 0703F800 -/* 02254 80815A74 37FF0200 */ ori $ra, $ra, 0x0200 ## $ra = F5880200 -/* 02258 80815A78 3652C03C */ ori $s2, $s2, 0xC03C ## $s2 = 0001C03C -/* 0225C 80815A7C 3C0CF590 */ lui $t4, 0xF590 ## $t4 = F5900000 -/* 02260 80815A80 3C0AFD90 */ lui $t2, 0xFD90 ## $t2 = FD900000 -/* 02264 80815A84 27A70208 */ addiu $a3, $sp, 0x0208 ## $a3 = FFFFFFD8 -/* 02268 80815A88 ACAE0004 */ sw $t6, 0x0004($a1) ## 00000004 -.L80815A8C: -/* 0226C 80815A8C 1660000A */ bne $s3, $zero, .L80815AB8 -/* 02270 80815A90 00008025 */ or $s0, $zero, $zero ## $s0 = 00000000 -/* 02274 80815A94 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02278 80815A98 3C18FA00 */ lui $t8, 0xFA00 ## $t8 = FA000000 -/* 0227C 80815A9C 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 02280 80815AA0 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 02284 80815AA4 ACB80000 */ sw $t8, 0x0000($a1) ## 00000000 -/* 02288 80815AA8 968F0208 */ lhu $t7, 0x0208($s4) ## 00000208 -/* 0228C 80815AAC 31EE00FF */ andi $t6, $t7, 0x00FF ## $t6 = 00000008 -/* 02290 80815AB0 1000001C */ beq $zero, $zero, .L80815B24 -/* 02294 80815AB4 ACAE0004 */ sw $t6, 0x0004($a1) ## 00000004 -.L80815AB8: -/* 02298 80815AB8 3C198016 */ lui $t9, %hi(gSaveContext+0xd0) -/* 0229C 80815ABC 8739E730 */ lh $t9, %lo(gSaveContext+0xd0)($t9) -/* 022A0 80815AC0 24010064 */ addiu $at, $zero, 0x0064 ## $at = 00000064 -/* 022A4 80815AC4 5721000E */ bnel $t9, $at, .L80815B00 -/* 022A8 80815AC8 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 022AC 80815ACC 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 022B0 80815AD0 3C0FFA00 */ lui $t7, 0xFA00 ## $t7 = FA000000 -/* 022B4 80815AD4 3C01C832 */ lui $at, 0xC832 ## $at = C8320000 -/* 022B8 80815AD8 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 022BC 80815ADC AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 022C0 80815AE0 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 022C4 80815AE4 968E0208 */ lhu $t6, 0x0208($s4) ## 00000208 -/* 022C8 80815AE8 34213200 */ ori $at, $at, 0x3200 ## $at = C8323200 -/* 022CC 80815AEC 31D900FF */ andi $t9, $t6, 0x00FF ## $t9 = 00000008 -/* 022D0 80815AF0 0321C025 */ or $t8, $t9, $at ## $t8 = C8323208 -/* 022D4 80815AF4 1000000B */ beq $zero, $zero, .L80815B24 -/* 022D8 80815AF8 ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 022DC 80815AFC 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -.L80815B00: -/* 022E0 80815B00 3C0EFA00 */ lui $t6, 0xFA00 ## $t6 = FA000000 -/* 022E4 80815B04 2401FF00 */ addiu $at, $zero, 0xFF00 ## $at = FFFFFF00 -/* 022E8 80815B08 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 022EC 80815B0C AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 022F0 80815B10 ACAE0000 */ sw $t6, 0x0000($a1) ## 00000000 -/* 022F4 80815B14 96990208 */ lhu $t9, 0x0208($s4) ## 00000208 -/* 022F8 80815B18 333800FF */ andi $t8, $t9, 0x00FF ## $t8 = 00000008 -/* 022FC 80815B1C 03017825 */ or $t7, $t8, $at ## $t7 = FFFFFF08 -/* 02300 80815B20 ACAF0004 */ sw $t7, 0x0004($a1) ## 00000004 -.L80815B24: -/* 02304 80815B24 00004825 */ or $t1, $zero, $zero ## $t1 = 00000000 -.L80815B28: -/* 02308 80815B28 29210002 */ slti $at, $t1, 0x0002 -/* 0230C 80815B2C 10200007 */ beq $at, $zero, .L80815B4C -/* 02310 80815B30 00097040 */ sll $t6, $t1, 1 -/* 02314 80815B34 00EEC821 */ addu $t9, $a3, $t6 -/* 02318 80815B38 87380000 */ lh $t8, 0x0000($t9) ## 00000008 -/* 0231C 80815B3C 57000004 */ bnel $t8, $zero, .L80815B50 -/* 02320 80815B40 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02324 80815B44 52000041 */ beql $s0, $zero, .L80815C4C -/* 02328 80815B48 25290001 */ addiu $t1, $t1, 0x0001 ## $t1 = 00000001 -.L80815B4C: -/* 0232C 80815B4C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -.L80815B50: -/* 02330 80815B50 00097840 */ sll $t7, $t1, 1 -/* 02334 80815B54 00EF1821 */ addu $v1, $a3, $t7 -/* 02338 80815B58 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 0233C 80815B5C AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 02340 80815B60 ACAA0000 */ sw $t2, 0x0000($a1) ## 00000000 -/* 02344 80815B64 84790000 */ lh $t9, 0x0000($v1) ## 00000001 -/* 02348 80815B68 00083040 */ sll $a2, $t0, 1 -/* 0234C 80815B6C 30C300FF */ andi $v1, $a2, 0x00FF ## $v1 = 00000000 -/* 02350 80815B70 0019C1C0 */ sll $t8, $t9, 7 -/* 02354 80815B74 030B7821 */ addu $t7, $t8, $t3 -/* 02358 80815B78 ACAF0004 */ sw $t7, 0x0004($a1) ## 00000004 -/* 0235C 80815B7C 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02360 80815B80 3C0FF300 */ lui $t7, 0xF300 ## $t7 = F3000000 -/* 02364 80815B84 00031C00 */ sll $v1, $v1, 16 -/* 02368 80815B88 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 0236C 80815B8C AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 02370 80815B90 ACB50004 */ sw $s5, 0x0004($a1) ## 00000004 -/* 02374 80815B94 ACAC0000 */ sw $t4, 0x0000($a1) ## 00000000 -/* 02378 80815B98 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 0237C 80815B9C 24C40006 */ addiu $a0, $a2, 0x0006 ## $a0 = 00000006 -/* 02380 80815BA0 308400FF */ andi $a0, $a0, 0x00FF ## $a0 = 00000006 -/* 02384 80815BA4 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 02388 80815BA8 AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 0238C 80815BAC ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 02390 80815BB0 ACBE0000 */ sw $s8, 0x0000($a1) ## 00000000 -/* 02394 80815BB4 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 02398 80815BB8 24100001 */ addiu $s0, $zero, 0x0001 ## $s0 = 00000001 -/* 0239C 80815BBC 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 023A0 80815BC0 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 023A4 80815BC4 ACAD0004 */ sw $t5, 0x0004($a1) ## 00000004 -/* 023A8 80815BC8 ACAF0000 */ sw $t7, 0x0000($a1) ## 00000000 -/* 023AC 80815BCC 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 023B0 80815BD0 24AE0008 */ addiu $t6, $a1, 0x0008 ## $t6 = 00000008 -/* 023B4 80815BD4 AE2E02C0 */ sw $t6, 0x02C0($s1) ## 000002C0 -/* 023B8 80815BD8 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 023BC 80815BDC ACB60000 */ sw $s6, 0x0000($a1) ## 00000000 -/* 023C0 80815BE0 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 023C4 80815BE4 24CE0004 */ addiu $t6, $a2, 0x0004 ## $t6 = 00000004 -/* 023C8 80815BE8 24B90008 */ addiu $t9, $a1, 0x0008 ## $t9 = 00000008 -/* 023CC 80815BEC AE3902C0 */ sw $t9, 0x02C0($s1) ## 000002C0 -/* 023D0 80815BF0 ACA00004 */ sw $zero, 0x0004($a1) ## 00000004 -/* 023D4 80815BF4 ACBF0000 */ sw $ra, 0x0000($a1) ## 00000000 -/* 023D8 80815BF8 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 023DC 80815BFC 31D900FF */ andi $t9, $t6, 0x00FF ## $t9 = 00000004 -/* 023E0 80815C00 24B80008 */ addiu $t8, $a1, 0x0008 ## $t8 = 00000008 -/* 023E4 80815C04 AE3802C0 */ sw $t8, 0x02C0($s1) ## 000002C0 -/* 023E8 80815C08 ACB20004 */ sw $s2, 0x0004($a1) ## 00000004 -/* 023EC 80815C0C ACB70000 */ sw $s7, 0x0000($a1) ## 00000000 -/* 023F0 80815C10 8E2502C0 */ lw $a1, 0x02C0($s1) ## 000002C0 -/* 023F4 80815C14 0019C200 */ sll $t8, $t9, 8 -/* 023F8 80815C18 24AF0008 */ addiu $t7, $a1, 0x0008 ## $t7 = 00000008 -/* 023FC 80815C1C AE2F02C0 */ sw $t7, 0x02C0($s1) ## 000002C0 -/* 02400 80815C20 00787825 */ or $t7, $v1, $t8 ## $t7 = 00000008 -/* 02404 80815C24 01E47025 */ or $t6, $t7, $a0 ## $t6 = 0000000E -/* 02408 80815C28 01D5C825 */ or $t9, $t6, $s5 ## $t9 = 0700000E -/* 0240C 80815C2C 24CE0002 */ addiu $t6, $a2, 0x0002 ## $t6 = 00000002 -/* 02410 80815C30 0004C200 */ sll $t8, $a0, 8 -/* 02414 80815C34 ACB90000 */ sw $t9, 0x0000($a1) ## 00000000 -/* 02418 80815C38 31D900FF */ andi $t9, $t6, 0x00FF ## $t9 = 00000002 -/* 0241C 80815C3C 00787825 */ or $t7, $v1, $t8 ## $t7 = 00000008 -/* 02420 80815C40 01F9C025 */ or $t8, $t7, $t9 ## $t8 = 0000000A -/* 02424 80815C44 ACB80004 */ sw $t8, 0x0004($a1) ## 00000004 -/* 02428 80815C48 25290001 */ addiu $t1, $t1, 0x0001 ## $t1 = 00000002 -.L80815C4C: -/* 0242C 80815C4C 00094C00 */ sll $t1, $t1, 16 -/* 02430 80815C50 00094C03 */ sra $t1, $t1, 16 -/* 02434 80815C54 25080004 */ addiu $t0, $t0, 0x0004 ## $t0 = 00000004 -/* 02438 80815C58 00084400 */ sll $t0, $t0, 16 -/* 0243C 80815C5C 29210003 */ slti $at, $t1, 0x0003 -/* 02440 80815C60 1420FFB1 */ bne $at, $zero, .L80815B28 -/* 02444 80815C64 00084403 */ sra $t0, $t0, 16 -/* 02448 80815C68 26730001 */ addiu $s3, $s3, 0x0001 ## $s3 = 00000001 -/* 0244C 80815C6C 00139C00 */ sll $s3, $s3, 16 -/* 02450 80815C70 00139C03 */ sra $s3, $s3, 16 -/* 02454 80815C74 2A610002 */ slti $at, $s3, 0x0002 -/* 02458 80815C78 1420FF84 */ bne $at, $zero, .L80815A8C -/* 0245C 80815C7C 00000000 */ nop -.L80815C80: -/* 02460 80815C80 3C068083 */ lui $a2, %hi(D_8082F4A0) ## $a2 = 80830000 -/* 02464 80815C84 24C6F4A0 */ addiu $a2, $a2, %lo(D_8082F4A0) ## $a2 = 8082F4A0 -/* 02468 80815C88 27A401F4 */ addiu $a0, $sp, 0x01F4 ## $a0 = FFFFFFC4 -/* 0246C 80815C8C 02202825 */ or $a1, $s1, $zero ## $a1 = 00000000 -/* 02470 80815C90 0C031AD5 */ jal Graph_CloseDisps -/* 02474 80815C94 2407035F */ addiu $a3, $zero, 0x035F ## $a3 = 0000035F -/* 02478 80815C98 8FBF0044 */ lw $ra, 0x0044($sp) -/* 0247C 80815C9C 8FB00020 */ lw $s0, 0x0020($sp) -/* 02480 80815CA0 8FB10024 */ lw $s1, 0x0024($sp) -/* 02484 80815CA4 8FB20028 */ lw $s2, 0x0028($sp) -/* 02488 80815CA8 8FB3002C */ lw $s3, 0x002C($sp) -/* 0248C 80815CAC 8FB40030 */ lw $s4, 0x0030($sp) -/* 02490 80815CB0 8FB50034 */ lw $s5, 0x0034($sp) -/* 02494 80815CB4 8FB60038 */ lw $s6, 0x0038($sp) -/* 02498 80815CB8 8FB7003C */ lw $s7, 0x003C($sp) -/* 0249C 80815CBC 8FBE0040 */ lw $s8, 0x0040($sp) -/* 024A0 80815CC0 03E00008 */ jr $ra -/* 024A4 80815CC4 27BD0230 */ addiu $sp, $sp, 0x0230 ## $sp = 00000000 diff --git a/data/overlays/actors/z_kaleido_scope.reloc.s b/data/overlays/actors/z_kaleido_scope.reloc.s deleted file mode 100644 index 19acdaaff5..0000000000 --- a/data/overlays/actors/z_kaleido_scope.reloc.s +++ /dev/null @@ -1,13 +0,0 @@ -.include "macro.inc" - - # assembler directives - .set noat # allow manual use of $at - .set noreorder # don't insert nops after branches - .set gp=64 # allow use of 64-bit general purpose registers - -.section .rodata - -.balign 16 - -glabel D_80830690 - .incbin "baserom/ovl_kaleido_scope", 0x1CE70, 0x00001B10 diff --git a/spec b/spec index 5ac03d6dda..e17253e2c0 100644 --- a/spec +++ b/spec @@ -564,11 +564,7 @@ beginseg include "build/src/overlays/actors/ovl_kaleido_scope/z_kaleido_scope_PAL.o" include "build/src/overlays/actors/ovl_kaleido_scope/z_lmap_mark.o" include "build/src/overlays/actors/ovl_kaleido_scope/z_lmap_mark_data.o" -#ifdef NON_MATCHING include "build/src/overlays/actors/ovl_kaleido_scope/ovl_kaleido_scope_reloc.o" -#else - include "build/data/overlays/actors/z_kaleido_scope.reloc.o" -#endif endseg beginseg diff --git a/src/overlays/actors/ovl_kaleido_scope/z_kaleido_collect.c b/src/overlays/actors/ovl_kaleido_scope/z_kaleido_collect.c index 7073fca529..89956fb1ca 100644 --- a/src/overlays/actors/ovl_kaleido_scope/z_kaleido_collect.c +++ b/src/overlays/actors/ovl_kaleido_scope/z_kaleido_collect.c @@ -2,8 +2,6 @@ #include "textures/parameter_static/parameter_static.h" #include "textures/icon_item_static/icon_item_static.h" -#ifdef NON_MATCHING -// many non matching issues but should be functionally equivalent void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfxCtx) { static s16 D_8082A070[][4] = { { 255, 0, 0, 255 }, @@ -69,9 +67,9 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx s16 sp21A; s16 sp218; s16 sp216; - s16 phi_s6; + s16 pad1; s16 phi_v1; - s16 phi_a2; + s16 pad2; s16 phi_s0_2; s16 sp208[3]; @@ -258,9 +256,8 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx } else { if (pauseCtx->unk_1E4 == 9) { pauseCtx->cursorColorSet = 8; - D_8082A120--; - if (D_8082A120 == 0) { + if (--D_8082A120 == 0) { for (phi_s3 = 0; phi_s3 < 8; phi_s3++) { D_8082A124[phi_s3] = 0xFF; D_8082A150[phi_s3] = 0; @@ -272,10 +269,10 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx VREG(23) = -49; VREG(24) = -46; VREG(25) = -41; - phi_s6 = pauseCtx->cursorSlot[PAUSE_QUEST]; + sp216 = pauseCtx->cursorSlot[PAUSE_QUEST]; func_800ED858(1); func_800ED858(1); - pauseCtx->unk_264 = D_80153960[phi_s6]; + pauseCtx->unk_264 = D_80153960[sp216]; func_800ED93C(pauseCtx->unk_264 + 1, 1); pauseCtx->unk_1E4 = 2; pauseCtx->unk_194 = Audio_OcaGetDisplayStaff(); @@ -296,7 +293,7 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx D_8082A0FC--; - for (sp218 = sp21A = 0; sp218 < 6; sp218++, sp21A += 4) { + for (sp218 = 0, sp21A = 0; sp218 < 6; sp218++, sp21A += 4) { if ((D_8082A100 != 1) && (D_8082A100 != 3)) { phi_v1 = (D_8082A100 != 0) ? sp218 + 6 : sp218; @@ -338,8 +335,7 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx if (D_8082A0FC == 0) { D_8082A0FC = ZREG(61 + D_8082A100); - D_8082A100++; - if (D_8082A100 >= 4) { + if (++D_8082A100 >= 4) { D_8082A100 = 0; } } @@ -421,8 +417,7 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx D_8082A110 += sp220; } - D_8082A114--; - if (D_8082A114 == 0) { + if (--D_8082A114 == 0) { D_8082A104 = D_8082A070[D_8082A118][0]; D_8082A108 = D_8082A070[D_8082A118][1]; D_8082A10C = D_8082A070[D_8082A118][2]; @@ -473,12 +468,12 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx pauseCtx->unk_194 = Audio_OcaGetDisplayStaff(); if (pauseCtx->unk_194->pos != 0) { - if (D_8082A11C == (pauseCtx->unk_194->pos - 1)) { - D_8082A124[pauseCtx->unk_194->pos - 1] = pauseCtx->unk_194->noteIdx; + if (D_8082A11C + 1 == pauseCtx->unk_194->pos) { D_8082A11C++; + D_8082A124[pauseCtx->unk_194->pos - 1] = pauseCtx->unk_194->noteIdx; } - for (sp218 = 0; sp218 < 8; sp218++, sp21A += 4) { + for (sp218 = 0, phi_s3 = 0; sp218 < 8; sp218++, phi_s3 += 4, sp21A += 4) { if (D_8082A124[sp218] == 0xFF) { break; } @@ -515,14 +510,13 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx } } } else if (((pauseCtx->unk_1E4 >= 4) && (pauseCtx->unk_1E4 <= 6)) || (pauseCtx->unk_1E4 == 8)) { - phi_a2 = pauseCtx->unk_264; - sp226 = gOcarinaSongNotes[phi_a2].len; - sp218 = sp21A; + sp224 = pauseCtx->unk_264; + sp226 = gOcarinaSongNotes[sp224].len; - for (phi_s3 = 0; phi_s3 < sp226; phi_s3++, sp21A += 4) { + for (sp218 = sp21A, phi_s3 = 0; phi_s3 < sp226; phi_s3++, sp21A += 4) { pauseCtx->questVtx[sp21A + 0].v.ob[1] = pauseCtx->questVtx[sp21A + 1].v.ob[1] = - VREG(21 + gOcarinaSongNotes[phi_a2].notesIdx[phi_s3]); + VREG(21 + gOcarinaSongNotes[sp224].notesIdx[phi_s3]); pauseCtx->questVtx[sp21A + 2].v.ob[1] = pauseCtx->questVtx[sp21A + 3].v.ob[1] = pauseCtx->questVtx[sp21A + 0].v.ob[1] - 12; @@ -530,7 +524,7 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx gDPPipeSync(POLY_OPA_DISP++); if (pauseCtx->unk_1E4 == 8) { - if (gOcarinaSongNotes[phi_a2].notesIdx[phi_s3] == 0) { + if (gOcarinaSongNotes[sp224].notesIdx[phi_s3] == 0) { gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 80, 255, 150, 200); } else { gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 255, 255, 50, 200); @@ -543,9 +537,9 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx gSPVertex(POLY_OPA_DISP++, &pauseCtx->questVtx[sp21A], 4, 0); - gDPLoadTextureBlock(POLY_OPA_DISP++, D_8082A130[gOcarinaSongNotes[phi_a2].notesIdx[phi_s3]], - G_IM_FMT_IA, G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_WRAP, - G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD); + gDPLoadTextureBlock(POLY_OPA_DISP++, D_8082A130[gOcarinaSongNotes[sp224].notesIdx[phi_s3]], G_IM_FMT_IA, + G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, + G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD); gSP1Quadrangle(POLY_OPA_DISP++, 0, 2, 3, 1, 0); } @@ -563,9 +557,11 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx } } - for (phi_s3 = 0, sp21A = sp218 + 32; phi_s3 < 8; phi_s3++, sp21A += 4) { + sp21A = sp218 + 32; + phi_s3 = 0; + for (; phi_s3 < 8; phi_s3++, sp21A += 4) { if (D_8082A124[phi_s3] == 0xFF) { - break; + continue; } if (D_8082A150[phi_s3] != 255) { @@ -638,7 +634,7 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx gSPVertex(POLY_OPA_DISP++, &pauseCtx->questVtx[164], 24, 0); - for (phi_s3 = 0, sp21A = 0; phi_s3 < 2; phi_s3++) { + for (phi_s3 = 0, sp218 = 0, sp21A = 0; phi_s3 < 2; phi_s3++) { if (phi_s3 == 0) { gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 0, 0, 0, pauseCtx->alpha); } else if (gSaveContext.inventory.gsTokens == 100) { @@ -648,13 +644,13 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx } phi_s0 = 0; - for (sp218 = 0; sp218 < 3; sp218++, sp21A += 4) { - if ((sp218 >= 2) || (sp208[sp218] != 0) || (phi_s0 != 0)) { - gDPLoadTextureBlock(POLY_OPA_DISP++, ((u8*)gCounterDigit0Tex + (8 * 16 * sp208[sp218])), G_IM_FMT_I, + for (sp21A = 0; sp21A < 3; sp21A++, sp218 += 4) { + if ((sp21A >= 2) || (sp208[sp21A] != 0) || (phi_s0 != 0)) { + gDPLoadTextureBlock(POLY_OPA_DISP++, ((u8*)gCounterDigit0Tex + (8 * 16 * sp208[sp21A])), G_IM_FMT_I, G_IM_SIZ_8b, 8, 16, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD); - gSP1Quadrangle(POLY_OPA_DISP++, sp21A, sp21A + 2, sp21A + 3, sp21A + 1, 0); + gSP1Quadrangle(POLY_OPA_DISP++, sp218, sp218 + 2, sp218 + 3, sp218 + 1, 0); phi_s0 = 1; } @@ -664,62 +660,6 @@ void KaleidoScope_DrawQuestStatus(GlobalContext* globalCtx, GraphicsContext* gfx CLOSE_DISPS(gfxCtx, "../z_kaleido_collect.c", 863); } -#else -static s16 D_8082A070[][4] = { - { 255, 0, 0, 255 }, - { 255, 70, 0, 150 }, - { 255, 70, 0, 150 }, - { 255, 0, 0, 255 }, -}; -static s16 D_8082A090[][3] = { - { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, - { 0, 60, 0 }, { 90, 0, 0 }, { 0, 40, 110 }, { 80, 40, 0 }, { 70, 0, 90 }, { 90, 90, 0 }, -}; -static s16 D_8082A0D8[] = { 255, 255, 255, 255, 255, 255 }; -static s16 D_8082A0E4[] = { 255, 255, 255, 255, 255, 255 }; -static s16 D_8082A0F0[] = { 150, 150, 150, 150, 150, 150 }; -static s16 D_8082A0FC = 20; -static s16 D_8082A100 = 0; -static s16 D_8082A104 = 0; -static s16 D_8082A108 = 0; -static s16 D_8082A10C = 0; -static s16 D_8082A110 = 0; -static s16 D_8082A114 = 20; -static s16 D_8082A118 = 0; -static s16 D_8082A11C = 0; -static s16 D_8082A120 = 0; -static u8 D_8082A124[] = { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -}; -static void* D_8082A130[] = { - gOcarinaATex, gOcarinaCDownTex, gOcarinaCRightTex, gOcarinaCLeftTex, gOcarinaCUpTex, -}; -static u16 D_8082A144[] = { - 0xFFCC, 0xFFCC, 0xFFCC, 0xFFCC, 0xFFCC, -}; -static s16 D_8082A150[] = { - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -}; -static s16 D_8082A164[] = { - 150, 255, 100, 255, 255, 255, 255, 255, 255, 255, 255, 255, -}; -static s16 D_8082A17C[] = { - 255, 80, 150, 160, 100, 240, 255, 255, 255, 255, 255, 255, -}; -static s16 D_8082A194[] = { - 100, 40, 255, 0, 255, 100, 255, 255, 255, 255, 255, 255, -}; -static s8 D_8082A1AC[][4] = { - { 0x05, 0x01, 0x05, 0xFE }, { 0x00, 0x02, 0x02, 0xFE }, { 0xFF, 0x13, 0x03, 0x01 }, { 0x04, 0x02, 0x11, 0x02 }, - { 0x05, 0x03, 0x18, 0x05 }, { 0xFF, 0xFF, 0x04, 0x00 }, { 0x0C, 0xFF, 0xFD, 0x07 }, { 0x0D, 0xFF, 0x06, 0x08 }, - { 0x0E, 0xFF, 0x07, 0x09 }, { 0x0F, 0xFF, 0x08, 0x0A }, { 0x10, 0xFF, 0x09, 0x0B }, { 0x11, 0xFF, 0x0A, 0x12 }, - { 0x17, 0x06, 0xFD, 0x0D }, { 0x17, 0x07, 0x0C, 0x0E }, { 0x17, 0x08, 0x0D, 0x0F }, { 0x18, 0x09, 0x0E, 0x10 }, - { 0x18, 0x0A, 0x0F, 0x11 }, { 0x18, 0x0B, 0x10, 0x03 }, { 0x02, 0xFF, 0x0B, 0x13 }, { 0x02, 0xFF, 0x12, 0x14 }, - { 0x02, 0xFF, 0x13, 0xFE }, { 0xFF, 0x17, 0xFD, 0x16 }, { 0xFF, 0x17, 0x15, 0x18 }, { 0x15, 0x0C, 0xFD, 0x18 }, - { 0xFF, 0x10, 0x16, 0x04 }, { 0x00, 0x00, 0x00, 0x00 }, -}; -#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_kaleido_scope/KaleidoScope_DrawQuestStatus.s") -#endif s32 KaleidoScope_UpdateQuestStatusPoint(PauseContext* pauseCtx, s32 point) { pauseCtx->cursorPoint[PAUSE_QUEST] = point;