00141b0c - 00142504
Revision as of 02:11, 9 February 2024 by RetroTypes (talk | contribs)
Alternate documentation here: Routine at 141b0c
80141b0c: 27bdffc8 addiu r29,r29,-0x0038 80141b10: afb20018 sw r18,0x0018(r29) 80141b14: 00809021 addu r18,r4,r0 80141b18: afb3001c sw r19,0x001c(r29) 80141b1c: 00a09821 addu r19,r5,r0 80141b20: afb60028 sw r22,0x0028(r29) 80141b24: 00c0b021 addu r22,r6,r0 80141b28: afb10014 sw r17,0x0014(r29) 80141b2c: 00e08821 addu r17,r7,r0 80141b30: afb40020 sw r20,0x0020(r29) 80141b34: 8fb40048 lw r20,0x0048(r29) 80141b38: afb7002c sw r23,0x002c(r29) 80141b3c: 8fb7004c lw r23,0x004c(r29) 80141b40: 3c028016 lui r2,0x8016 80141b44: 24426b10 addiu r2,r2,0x6b10 80141b48: 3c018017 lui r1,0x8017 80141b4c: ac223cb8 sw r2,0x3cb8(r1) 80141b50: 2402ffff addiu r2,r0,-0x0001 80141b54: afbf0030 sw r31,0x0030(r29) 80141b58: afb50024 sw r21,0x0024(r29) 80141b5c: afb00010 sw r16,0x0010(r29) 80141b60: 3c018016 lui r1,0x8016 80141b64: ac225f84 sw r2,0x5f84(r1) 80141b68: 3c018015 lui r1,0x8015 80141b6c: a020d324 sb r0,-0x2cdc(r1) 80141b70: 0c0602bf jal 0x80180afc 80141b74: 02c02021 addu r4,r22,r0 80141b78: 00408021 addu r16,r2,r0 80141b7c: 34020008 ori r2,r0,0x0008 80141b80: 164200a9 bne r18,r2,0x80141e28 80141b84: 00000000 nop 80141b88: 0c04ed64 jal 0x8013b590 80141b8c: 34040027 ori r4,r0,0x0027 80141b90: 00408821 addu r17,r2,r0 80141b94: 2622fe66 addiu r2,r17,-0x019a 80141b98: 2c420010 sltiu r2,r2,0x0010 80141b9c: 10400005 beq r2,r0,0x80141bb4 80141ba0: 34020002 ori r2,r0,0x0002 80141ba4: 1262024c beq r19,r2,0x801424d8 80141ba8: 34020001 ori r2,r0,0x0001 80141bac: 0805078c j 0x80141e30 80141bb0: 00000000 nop 80141bb4: 3c028016 lui r2,0x8016 80141bb8: 94425ff6 lhu r2,0x5ff6(r2) 80141bbc: 00000000 nop 80141bc0: 10400005 beq r2,r0,0x80141bd8 80141bc4: 34020002 ori r2,r0,0x0002 80141bc8: 12620243 beq r19,r2,0x801424d8 80141bcc: 34020001 ori r2,r0,0x0001 80141bd0: 0805078c j 0x80141e30 80141bd4: 00000000 nop 80141bd8: 34020001 ori r2,r0,0x0001 80141bdc: 12620094 beq r19,r2,0x80141e30 80141be0: 00000000 nop 80141be4: 0c053325 jal 0x8014cc94 80141be8: 34040001 ori r4,r0,0x0001 80141bec: 10400009 beq r2,r0,0x80141c14 80141bf0: 00009021 addu r18,r0,r0 # numCriticalUnitsDead = 0 80141bf4: 34040007 ori r4,r0,0x0007 80141bf8: 0c01127e jal 0x800449f8 80141bfc: 34050003 ori r5,r0,0x0003 80141c00: 34020002 ori r2,r0,0x0002 80141c04: 12620234 beq r19,r2,0x801424d8 80141c08: 34020001 ori r2,r0,0x0001 80141c0c: 0805078c j 0x80141e30 80141c10: 00000000 nop 80141c14: 3c018015 lui r1,0x8015 80141c18: ac36d304 sw r22,-0x2cfc(r1) 80141c1c: 00002021 addu r4,r0,r0 # count = 0 80141c20: 2414fffd addiu r20,r0,-0x0003 # -3 // (Result code for Check Base Class function: Unit is found with crystal/treasure status, or was disabled) # do { 80141c24: 24900001 addiu r16,r4,0x0001 # baseClass = count + 1 80141c28: 0c0602cb jal 0x80180b2c # resultCode = Check Base Class (baseClass); 80141c2c: 02002021 addu r4,r16,r0 80141c30: 14540002 bne r2,r20,0x80141c3c 80141c34: 02002021 addu r4,r16,r0 # if (resultCode == -3) { // Unit was crystal or treasure, or disabled 80141c38: 26520001 addiu r18,r18,0x0001 # numCriticalUnitsDead = numCriticalUnitsDead + 1 # } 80141c3c: 28820003 slti r2,r4,0x0003 80141c40: 1440fff8 bne r2,r0,0x80141c24 80141c44: 00000000 nop # while (count < 3); 80141c48: 0c060cdd jal 0x80183374 # resultCode = Check Battle Outcome (); // Check Battle Outcome: 1 means battle ongoing, 0 means enemies defeated, -1 means player defeated 80141c4c: 00000000 nop 80141c50: 04400003 bltz r2,0x80141c60 # if ((resultCode == -1) // -1 indicates party incapacitated 80141c54: 00000000 nop 80141c58: 12400018 beq r18,r0,0x80141cbc # or (numCriticalUnitsDead != 0)) { 80141c5c: 00000000 nop 80141c60: 0c04ed64 jal 0x8013b590 # var_0x1fd = Get Script Variable (0x1fd); 80141c64: 340401fd ori r4,r0,0x01fd 80141c68: 14400014 bne r2,r0,0x80141cbc 80141c6c: 34020002 ori r2,r0,0x0002 # if (var_0x1fd == 0) { 80141c70: 12620010 beq r19,r2,0x80141cb4 80141c74: 34040027 ori r4,r0,0x0027 80141c78: 0c04ed91 jal 0x8013b644 # Set Script Variable (0x27, 0x190); // Current event = 0x190 () 80141c7c: 34050190 ori r5,r0,0x0190 80141c80: 00002021 addu r4,r0,r0 80141c84: 340500ff ori r5,r0,0x00ff 80141c88: 0c04f58d jal 0x8013d634 # ? 0x13d634 (0, 0xff, 0xff); 80141c8c: 340600ff ori r6,r0,0x00ff 80141c90: 34020001 ori r2,r0,0x0001 80141c94: 3c018016 lui r1,0x8016 80141c98: a4226048 sh r2,0x6048(r1) # *0x80166048 = 1 80141c9c: 3c018017 lui r1,0x8017 80141ca0: a4223cb0 sh r2,0x3cb0(r1) # *0x80173cb0 = 1 80141ca4: 0c04fcff jal 0x8013f3fc # ? 0x13f3fc (); 80141ca8: 00000000 nop 80141cac: 08050936 j 0x801424d8 80141cb0: 34020002 ori r2,r0,0x0002 # return 2; 80141cb4: 08050782 j 0x80141e08 80141cb8: 34020190 ori r2,r0,0x0190 # } # } 80141cbc: 3c028017 lui r2,0x8017 80141cc0: 84423cb0 lh r2,0x3cb0(r2) 80141cc4: 00000000 nop 80141cc8: 1040001e beq r2,r0,0x80141d44 80141ccc: 00000000 nop 80141cd0: 0c05096c jal 0x801425b0 80141cd4: 00000000 nop 80141cd8: 10400016 beq r2,r0,0x80141d34 80141cdc: 34020002 ori r2,r0,0x0002 80141ce0: 1262000b beq r19,r2,0x80141d10 80141ce4: 00002021 addu r4,r0,r0 80141ce8: 340500ff ori r5,r0,0x00ff 80141cec: 0c04f58d jal 0x8013d634 80141cf0: 340600ff ori r6,r0,0x00ff 80141cf4: 34020001 ori r2,r0,0x0001 80141cf8: 3c018016 lui r1,0x8016 80141cfc: a4226048 sh r2,0x6048(r1) 80141d00: 0c04fcff jal 0x8013f3fc 80141d04: 00000000 nop 80141d08: 08050936 j 0x801424d8 80141d0c: 34020002 ori r2,r0,0x0002 80141d10: 0c04ed64 jal 0x8013b590 80141d14: 34040027 ori r4,r0,0x0027 80141d18: 3c018017 lui r1,0x8017 80141d1c: ac223c74 sw r2,0x3c74(r1) 80141d20: 34040027 ori r4,r0,0x0027 80141d24: 0c04ed91 jal 0x8013b644 80141d28: 02202821 addu r5,r17,r0 80141d2c: 08050936 j 0x801424d8 80141d30: 34020002 ori r2,r0,0x0002 80141d34: 126201e8 beq r19,r2,0x801424d8 80141d38: 34020001 ori r2,r0,0x0001 80141d3c: 0805078c j 0x80141e30 80141d40: 00000000 nop 80141d44: 0c04ed64 jal 0x8013b590 80141d48: 340401fd ori r4,r0,0x01fd 80141d4c: 10400018 beq r2,r0,0x80141db0 80141d50: 34020002 ori r2,r0,0x0002 80141d54: 12620014 beq r19,r2,0x80141da8 80141d58: 00002021 addu r4,r0,r0 80141d5c: 340500ff ori r5,r0,0x00ff 80141d60: 0c04f58d jal 0x8013d634 80141d64: 340600ff ori r6,r0,0x00ff 80141d68: 34020001 ori r2,r0,0x0001 80141d6c: 3c018016 lui r1,0x8016 80141d70: a4226048 sh r2,0x6048(r1) 80141d74: 0c04ed64 jal 0x8013b590 80141d78: 340401fe ori r4,r0,0x01fe 80141d7c: 10400003 beq r2,r0,0x80141d8c 80141d80: 34040027 ori r4,r0,0x0027 80141d84: 08050764 j 0x80141d90 80141d88: 34050193 ori r5,r0,0x0193 80141d8c: 34050191 ori r5,r0,0x0191 80141d90: 0c04ed91 jal 0x8013b644 80141d94: 00000000 nop 80141d98: 0c04fcff jal 0x8013f3fc 80141d9c: 00000000 nop 80141da0: 08050936 j 0x801424d8 80141da4: 34020002 ori r2,r0,0x0002 80141da8: 08050782 j 0x80141e08 80141dac: 34020191 ori r2,r0,0x0191 80141db0: 0c060cdd jal 0x80183374 80141db4: 00000000 nop 80141db8: 14400017 bne r2,r0,0x80141e18 80141dbc: 34020002 ori r2,r0,0x0002 80141dc0: 12620010 beq r19,r2,0x80141e04 80141dc4: 00002021 addu r4,r0,r0 80141dc8: 340500ff ori r5,r0,0x00ff 80141dcc: 0c04f58d jal 0x8013d634 80141dd0: 340600ff ori r6,r0,0x00ff 80141dd4: 34040027 ori r4,r0,0x0027 80141dd8: 34100001 ori r16,r0,0x0001 80141ddc: 3c018016 lui r1,0x8016 80141de0: a4306048 sh r16,0x6048(r1) 80141de4: 0c04ed91 jal 0x8013b644 80141de8: 34050192 ori r5,r0,0x0192 80141dec: 3c018017 lui r1,0x8017 80141df0: a4303cb0 sh r16,0x3cb0(r1) 80141df4: 0c04fcff jal 0x8013f3fc 80141df8: 00000000 nop 80141dfc: 08050936 j 0x801424d8 80141e00: 34020002 ori r2,r0,0x0002 80141e04: 34020192 ori r2,r0,0x0192 80141e08: 3c018017 lui r1,0x8017 80141e0c: ac223c74 sw r2,0x3c74(r1) 80141e10: 08050936 j 0x801424d8 80141e14: 34020002 ori r2,r0,0x0002 80141e18: 126201af beq r19,r2,0x801424d8 80141e1c: 34020001 ori r2,r0,0x0001 80141e20: 0805078c j 0x80141e30 80141e24: 00000000 nop 80141e28: 16800005 bne r20,r0,0x80141e40 80141e2c: 34140001 ori r20,r0,0x0001 80141e30: 0c050595 jal 0x80141654 80141e34: 34040008 ori r4,r0,0x0008 80141e38: 08050936 j 0x801424d8 80141e3c: 34020001 ori r2,r0,0x0001 80141e40: 16540026 bne r18,r20,0x80141edc 80141e44: 34030002 ori r3,r0,0x0002 80141e48: 3c038015 lui r3,0x8015 80141e4c: 8c63d314 lw r3,-0x2cec(r3) 80141e50: 00000000 nop 80141e54: 10600004 beq r3,r0,0x80141e68 80141e58: 34110008 ori r17,r0,0x0008 80141e5c: 34020019 ori r2,r0,0x0019 80141e60: 14620006 bne r3,r2,0x80141e7c 80141e64: 00000000 nop 80141e68: 34020002 ori r2,r0,0x0002 80141e6c: 166200d1 bne r19,r2,0x801421b4 80141e70: 34110007 ori r17,r0,0x0007 80141e74: 0805086d j 0x801421b4 80141e78: 34110031 ori r17,r0,0x0031 80141e7c: 14720008 bne r3,r18,0x80141ea0 80141e80: 3402000c ori r2,r0,0x000c 80141e84: 34020001 ori r2,r0,0x0001 80141e88: 3c018015 lui r1,0x8015 80141e8c: a022d324 sb r2,-0x2cdc(r1) 80141e90: 167200c8 bne r19,r18,0x801421b4 80141e94: 34110006 ori r17,r0,0x0006 80141e98: 0805086d j 0x801421b4 80141e9c: 34110029 ori r17,r0,0x0029 80141ea0: 14620003 bne r3,r2,0x80141eb0 80141ea4: 3402000e ori r2,r0,0x000e 80141ea8: 0805086d j 0x801421b4 80141eac: 34110014 ori r17,r0,0x0014 80141eb0: 14620003 bne r3,r2,0x80141ec0 80141eb4: 34020002 ori r2,r0,0x0002 80141eb8: 0805086d j 0x801421b4 80141ebc: 34110015 ori r17,r0,0x0015 80141ec0: 3c038015 lui r3,0x8015 80141ec4: 8c63d30c lw r3,-0x2cf4(r3) 80141ec8: 00000000 nop 80141ecc: 146200b9 bne r3,r2,0x801421b4 80141ed0: 00000000 nop 80141ed4: 0805086d j 0x801421b4 80141ed8: 3411001c ori r17,r0,0x001c 80141edc: 16430017 bne r18,r3,0x80141f3c 80141ee0: 34150003 ori r21,r0,0x0003 80141ee4: 0c04b747 jal 0x8012dd1c 80141ee8: 00000000 nop 80141eec: 1260016d beq r19,r0,0x801424a4 80141ef0: 00000000 nop 80141ef4: 16740005 bne r19,r20,0x80141f0c 80141ef8: 34020004 ori r2,r0,0x0004 80141efc: 0c050595 jal 0x80141654 80141f00: 00002021 addu r4,r0,r0 80141f04: 08050932 j 0x801424c8 80141f08: 34020001 ori r2,r0,0x0001 80141f0c: 16620005 bne r19,r2,0x80141f24 80141f10: 00000000 nop 80141f14: 0c050595 jal 0x80141654 80141f18: 34040030 ori r4,r0,0x0030 80141f1c: 08050932 j 0x801424c8 80141f20: 34020001 ori r2,r0,0x0001 80141f24: 0c04b756 jal 0x8012dd58 80141f28: 00000000 nop 80141f2c: 0c050595 jal 0x80141654 80141f30: 2664000d addiu r4,r19,0x000d 80141f34: 08050932 j 0x801424c8 80141f38: 34020001 ori r2,r0,0x0001 80141f3c: 1655000f bne r18,r21,0x80141f7c 80141f40: 34020004 ori r2,r0,0x0004 80141f44: 3c028015 lui r2,0x8015 80141f48: 8c42d318 lw r2,-0x2ce8(r2) 80141f4c: 00000000 nop 80141f50: 14430006 bne r2,r3,0x80141f6c 80141f54: 00000000 nop 80141f58: 3c028015 lui r2,0x8015 80141f5c: 8c42d31c lw r2,-0x2ce4(r2) 80141f60: 00000000 nop 80141f64: 1054014f beq r2,r20,0x801424a4 80141f68: 00000000 nop 80141f6c: 0c050595 jal 0x80141654 80141f70: 34040001 ori r4,r0,0x0001 80141f74: 08050932 j 0x801424c8 80141f78: 34020001 ori r2,r0,0x0001 80141f7c: 16420029 bne r18,r2,0x80142024 80141f80: 34020005 ori r2,r0,0x0005 80141f84: 12620022 beq r19,r2,0x80142010 80141f88: 3411002f ori r17,r0,0x002f 80141f8c: 12740020 beq r19,r20,0x80142010 80141f90: 3411000b ori r17,r0,0x000b 80141f94: 12630003 beq r19,r3,0x80141fa4 80141f98: 3402fffe ori r2,r0,0xfffe 80141f9c: 1672000f bne r19,r18,0x80141fdc 80141fa0: 00000000 nop 80141fa4: 3c038015 lui r3,0x8015 80141fa8: 8c63d310 lw r3,-0x2cf0(r3) 80141fac: 00000000 nop 80141fb0: 10620006 beq r3,r2,0x80141fcc 80141fb4: 3411002d ori r17,r0,0x002d 80141fb8: 3c028015 lui r2,0x8015 80141fbc: 8c42d320 lw r2,-0x2ce0(r2) 80141fc0: 00000000 nop 80141fc4: 14400003 bne r2,r0,0x80141fd4 80141fc8: 00000000 nop 80141fcc: 08050805 j 0x80142014 80141fd0: 34020001 ori r2,r0,0x0001 80141fd4: 08050804 j 0x80142010 80141fd8: 3411000c ori r17,r0,0x000c 80141fdc: 3c038015 lui r3,0x8015 80141fe0: 8c63d310 lw r3,-0x2cf0(r3) 80141fe4: 00000000 nop 80141fe8: 14620006 bne r3,r2,0x80142004 80141fec: 3411002e ori r17,r0,0x002e 80141ff0: 3c028015 lui r2,0x8015 80141ff4: 8c42d320 lw r2,-0x2ce0(r2) 80141ff8: 00000000 nop 80141ffc: 14400003 bne r2,r0,0x8014200c 80142000: 00000000 nop 80142004: 08050805 j 0x80142014 80142008: 34020001 ori r2,r0,0x0001 8014200c: 3411000d ori r17,r0,0x000d 80142010: 34020001 ori r2,r0,0x0001 80142014: 3c018015 lui r1,0x8015 80142018: a022d324 sb r2,-0x2cdc(r1) 8014201c: 0805086d j 0x801421b4 80142020: 00000000 nop 80142024: 16420011 bne r18,r2,0x8014206c 80142028: 34020007 ori r2,r0,0x0007 8014202c: 96e20002 lhu r2,0x0002(r23) 80142030: 3c058014 lui r5,0x8014 80142034: 24a5bdcc addiu r5,r5,-0x4234 80142038: 304201ff andi r2,r2,0x01ff 8014203c: 3c018015 lui r1,0x8015 80142040: ac22d308 sw r2,-0x2cf8(r1) 80142044: 0c053228 jal 0x8014c8a0 80142048: 34040004 ori r4,r0,0x0004 8014204c: 34040004 ori r4,r0,0x0004 80142050: 02c02821 addu r5,r22,r0 80142054: 3c068015 lui r6,0x8015 80142058: 8cc6d308 lw r6,-0x2cf8(r6) 8014205c: 0c05328e jal 0x8014ca38 80142060: 00003821 addu r7,r0,r0 80142064: 08050932 j 0x801424c8 80142068: 34020001 ori r2,r0,0x0001 8014206c: 16420037 bne r18,r2,0x8014214c 80142070: 34020006 ori r2,r0,0x0006 80142074: 0c04ebb7 jal 0x8013aedc 80142078: 3404003c ori r4,r0,0x003c 8014207c: 9202016f lbu r2,0x016f(r16) 80142080: 3c018006 lui r1,0x8006 80142084: 00220821 addu r1,r1,r2 80142088: 90225cb4 lbu r2,0x5cb4(r1) #load action menu byte 8014208c: 00000000 nop 80142090: 14550014 bne r2,r21,0x801420e4 80142094: 34020006 ori r2,r0,0x0006 80142098: 86020174 lh r2,0x0174(r16) 8014209c: 00000000 nop 801420a0: 24427000 addiu r2,r2,0x7000 801420a4: 3c018016 lui r1,0x8016 801420a8: ac225ef8 sw r2,0x5ef8(r1) 801420ac: 86020172 lh r2,0x0172(r16) 801420b0: 00000000 nop 801420b4: 24427000 addiu r2,r2,0x7000 801420b8: 3c018016 lui r1,0x8016 801420bc: ac225ef4 sw r2,0x5ef4(r1) 801420c0: 86020170 lh r2,0x0170(r16) 801420c4: 00000000 nop 801420c8: 24427000 addiu r2,r2,0x7000 801420cc: 3c018016 lui r1,0x8016 801420d0: ac225efc sw r2,0x5efc(r1) 801420d4: 0c050595 jal 0x80141654 801420d8: 3404002c ori r4,r0,0x002c 801420dc: 08050932 j 0x801424c8 801420e0: 34020001 ori r2,r0,0x0001 801420e4: 92e30001 lbu r3,0x0001(r23) 801420e8: 00000000 nop 801420ec: 10620004 beq r3,r2,0x80142100 801420f0: 00000000 nop 801420f4: 34020014 ori r2,r0,0x0014 801420f8: 14620004 bne r3,r2,0x8014210c 801420fc: 00000000 nop 80142100: 92e20008 lbu r2,0x0008(r23) 80142104: 0805084d j 0x80142134 80142108: 24423800 addiu r2,r2,0x3800 8014210c: 96e20002 lhu r2,0x0002(r23) 80142110: 00000000 nop 80142114: 305101ff andi r17,r2,0x01ff 80142118: 2622ffc4 addiu r2,r17,-0x003c 8014211c: 2c42001a sltiu r2,r2,0x001a 80142120: 10400003 beq r2,r0,0x80142130 80142124: 3402b7c4 ori r2,r0,0xb7c4 80142128: 0805084d j 0x80142134 8014212c: 02221021 addu r2,r17,r2 80142130: 26227000 addiu r2,r17,0x7000 80142134: 3c018016 lui r1,0x8016 80142138: ac225ef4 sw r2,0x5ef4(r1) 8014213c: 0c050595 jal 0x80141654 80142140: 3404000a ori r4,r0,0x000a 80142144: 08050932 j 0x801424c8 80142148: 34020001 ori r2,r0,0x0001 8014214c: 124200d5 beq r18,r2,0x801424a4 80142150: 34020009 ori r2,r0,0x0009 80142154: 1642001b bne r18,r2,0x801421c4 80142158: 00000000 nop 8014215c: 16740003 bne r19,r20,0x8014216c 80142160: 34110008 ori r17,r0,0x0008 80142164: 0805086d j 0x801421b4 80142168: 34110016 ori r17,r0,0x0016 8014216c: 16630003 bne r19,r3,0x8014217c 80142170: 00000000 nop 80142174: 0805086d j 0x801421b4 80142178: 34110017 ori r17,r0,0x0017 8014217c: 16750003 bne r19,r21,0x8014218c 80142180: 3402000c ori r2,r0,0x000c 80142184: 0805086d j 0x801421b4 80142188: 34110020 ori r17,r0,0x0020 8014218c: 3c038015 lui r3,0x8015 80142190: 8c63d314 lw r3,-0x2cec(r3) 80142194: 00000000 nop 80142198: 14620003 bne r3,r2,0x801421a8 8014219c: 3402000e ori r2,r0,0x000e 801421a0: 0805086d j 0x801421b4 801421a4: 3411001a ori r17,r0,0x001a 801421a8: 14620002 bne r3,r2,0x801421b4 801421ac: 00000000 nop 801421b0: 3411001b ori r17,r0,0x001b 801421b4: 0c050595 jal 0x80141654 801421b8: 02202021 addu r4,r17,r0 801421bc: 08050932 j 0x801424c8 801421c0: 34020001 ori r2,r0,0x0001 801421c4: 3402000a ori r2,r0,0x000a 801421c8: 1642000f bne r18,r2,0x80142208 801421cc: 3402000b ori r2,r0,0x000b 801421d0: 3c028004 lui r2,0x8004 801421d4: 8c4273ac lw r2,0x73ac(r2) 801421d8: 3c030018 lui r3,0x0018 801421dc: 00431024 and r2,r2,r3 801421e0: 144000b0 bne r2,r0,0x801424a4 801421e4: 322200ff andi r2,r17,0x00ff 801421e8: 3c018017 lui r1,0x8017 801421ec: a4339506 sh r19,-0x6afa(r1) 801421f0: 3c018016 lui r1,0x8016 801421f4: ac225ef4 sw r2,0x5ef4(r1) 801421f8: 0c050595 jal 0x80141654 801421fc: 3404001d ori r4,r0,0x001d 80142200: 08050932 j 0x801424c8 80142204: 34020001 ori r2,r0,0x0001 80142208: 16420008 bne r18,r2,0x8014222c 8014220c: 3402000c ori r2,r0,0x000c 80142210: 26627000 addiu r2,r19,0x7000 80142214: 3c018016 lui r1,0x8016 80142218: ac225ef4 sw r2,0x5ef4(r1) 8014221c: 0c050595 jal 0x80141654 80142220: 3404001e ori r4,r0,0x001e 80142224: 08050932 j 0x801424c8 80142228: 34020001 ori r2,r0,0x0001 8014222c: 16420005 bne r18,r2,0x80142244 80142230: 3402000d ori r2,r0,0x000d 80142234: 0c050595 jal 0x80141654 80142238: 3404001f ori r4,r0,0x001f 8014223c: 08050932 j 0x801424c8 80142240: 34020001 ori r2,r0,0x0001 80142244: 16420005 bne r18,r2,0x8014225c 80142248: 3402000e ori r2,r0,0x000e 8014224c: 0c050595 jal 0x80141654 80142250: 34040021 ori r4,r0,0x0021 80142254: 08050932 j 0x801424c8 80142258: 34020001 ori r2,r0,0x0001 8014225c: 16420005 bne r18,r2,0x80142274 80142260: 3402000f ori r2,r0,0x000f 80142264: 0c050595 jal 0x80141654 80142268: 26640022 addiu r4,r19,0x0022 8014226c: 08050932 j 0x801424c8 80142270: 34020001 ori r2,r0,0x0001 80142274: 16420030 bne r18,r2,0x80142338 80142278: 34020010 ori r2,r0,0x0010 8014227c: 326400ff andi r4,r19,0x00ff 80142280: 0c0178a2 jal 0x8005e288 80142284: 34050001 ori r5,r0,0x0001 80142288: 34030063 ori r3,r0,0x0063 8014228c: 1443001a bne r2,r3,0x801422f8 80142290: 00000000 nop 80142294: 0c016a21 jal 0x8005a884 80142298: 02602021 addu r4,r19,r0 8014229c: 3c018016 lui r1,0x8016 801422a0: ac335ef4 sw r19,0x5ef4(r1) 801422a4: 3c018016 lui r1,0x8016 801422a8: ac335ef8 sw r19,0x5ef8(r1) 801422ac: 0c016a21 jal 0x8005a884 801422b0: 02602021 addu r4,r19,r0 801422b4: 00408021 addu r16,r2,r0 801422b8: 96020008 lhu r2,0x0008(r16) 801422bc: 00000000 nop 801422c0: 00021082 srl r2,r2,0x02 801422c4: 3c018016 lui r1,0x8016 801422c8: ac225efc sw r2,0x5efc(r1) 801422cc: 0c04ed64 jal 0x8013b590 801422d0: 3404002c ori r4,r0,0x002c 801422d4: 96050008 lhu r5,0x0008(r16) 801422d8: 3404002c ori r4,r0,0x002c 801422dc: 00052882 srl r5,r5,0x02 801422e0: 0c04ed91 jal 0x8013b644 801422e4: 00a22821 addu r5,r5,r2 801422e8: 0c050595 jal 0x80141654 801422ec: 34040026 ori r4,r0,0x0026 801422f0: 08050932 j 0x801424c8 801422f4: 34020001 ori r2,r0,0x0001 801422f8: 0c016a21 jal 0x8005a884 801422fc: 02602021 addu r4,r19,r0 80142300: 3c018016 lui r1,0x8016 80142304: ac335ef4 sw r19,0x5ef4(r1) 80142308: 3c018006 lui r1,0x8006 8014230c: 00330821 addu r1,r1,r19 80142310: 902296e0 lbu r2,-0x6920(r1) 80142314: 00000000 nop 80142318: 24420001 addiu r2,r2,0x0001 8014231c: 3c018006 lui r1,0x8006 80142320: 00330821 addu r1,r1,r19 80142324: a02296e0 sb r2,-0x6920(r1) 80142328: 0c050595 jal 0x80141654 8014232c: 34040027 ori r4,r0,0x0027 80142330: 08050932 j 0x801424c8 80142334: 34020001 ori r2,r0,0x0001 80142338: 16420005 bne r18,r2,0x80142350 8014233c: 34020011 ori r2,r0,0x0011 80142340: 0c050595 jal 0x80141654 80142344: 34040028 ori r4,r0,0x0028 80142348: 08050932 j 0x801424c8 8014234c: 34020001 ori r2,r0,0x0001 80142350: 16420058 bne r18,r2,0x801424b4 80142354: 34040007 ori r4,r0,0x0007 80142358: 3c058017 lui r5,0x8017 8014235c: 24a596a8 addiu r5,r5,-0x6958 80142360: 2662ffd9 addiu r2,r19,-0x0027 80142364: 2c420007 sltiu r2,r2,0x0007 80142368: 10400022 beq r2,r0,0x801423f4 8014236c: 02201821 addu r3,r17,r0 80142370: 2662506b addiu r2,r19,0x506b 80142374: 3c018016 lui r1,0x8016 80142378: ac225ef8 sw r2,0x5ef8(r1) 8014237c: 3402002d ori r2,r0,0x002d 80142380: 3c018016 lui r1,0x8016 80142384: ac365ef4 sw r22,0x5ef4(r1) 80142388: 16620004 bne r19,r2,0x8014239c 8014238c: 32220080 andi r2,r17,0x0080 80142390: 10400002 beq r2,r0,0x8014239c 80142394: 34030001 ori r3,r0,0x0001 80142398: 34030081 ori r3,r0,0x0081 8014239c: 3c048016 lui r4,0x8016 801423a0: 24845efc addiu r4,r4,0x5efc 801423a4: 30620080 andi r2,r3,0x0080 801423a8: 10400005 beq r2,r0,0x801423c0 801423ac: ac830000 sw r3,0x0000(r4) 801423b0: 3062007f andi r2,r3,0x007f 801423b4: ac820000 sw r2,0x0000(r4) 801423b8: 080508f1 j 0x801423c4 801423bc: 3402508c ori r2,r0,0x508c 801423c0: 3402508d ori r2,r0,0x508d 801423c4: a4a20002 sh r2,0x0002(r5) 801423c8: 34020027 ori r2,r0,0x0027 801423cc: 16620031 bne r19,r2,0x80142494 801423d0: 340200ff ori r2,r0,0x00ff 801423d4: 14620003 bne r3,r2,0x801423e4 801423d8: 3402007f ori r2,r0,0x007f 801423dc: 080508fb j 0x801423ec 801423e0: 3402509a ori r2,r0,0x509a 801423e4: 1462002b bne r3,r2,0x80142494 801423e8: 34025099 ori r2,r0,0x5099 801423ec: 08050925 j 0x80142494 801423f0: a4a20002 sh r2,0x0002(r5) 801423f4: 3402002e ori r2,r0,0x002e 801423f8: 16620008 bne r19,r2,0x8014241c 801423fc: 34040032 ori r4,r0,0x0032 80142400: 06210002 bgez r17,0x8014240c 80142404: 02201021 addu r2,r17,r0 80142408: 00021023 subu r2,r0,r2 8014240c: 3c018016 lui r1,0x8016 80142410: ac225ef4 sw r2,0x5ef4(r1) 80142414: 0805090f j 0x8014243c 80142418: 3402508f ori r2,r0,0x508f 8014241c: 3402002f ori r2,r0,0x002f 80142420: 1662000c bne r19,r2,0x80142454 80142424: 2662ffe4 addiu r2,r19,-0x001c 80142428: 34040032 ori r4,r0,0x0032 8014242c: 3222007f andi r2,r17,0x007f 80142430: 3c018016 lui r1,0x8016 80142434: ac225ef4 sw r2,0x5ef4(r1) 80142438: 3402508e ori r2,r0,0x508e 8014243c: 3c018017 lui r1,0x8017 80142440: a42296aa sh r2,-0x6956(r1) 80142444: 0c050595 jal 0x80141654 80142448: 00000000 nop 8014244c: 08050932 j 0x801424c8 80142450: 34020001 ori r2,r0,0x0001 80142454: 2c420002 sltiu r2,r2,0x0002 80142458: 10400012 beq r2,r0,0x801424a4 8014245c: 32228000 andi r2,r17,0x8000 80142460: 10400006 beq r2,r0,0x8014247c 80142464: 322200ff andi r2,r17,0x00ff 80142468: 24423800 addiu r2,r2,0x3800 8014246c: 3c018016 lui r1,0x8016 80142470: ac225ef4 sw r2,0x5ef4(r1) 80142474: 08050923 j 0x8014248c 80142478: 3402509b ori r2,r0,0x509b 8014247c: 26223800 addiu r2,r17,0x3800 80142480: 3c018016 lui r1,0x8016 80142484: ac225ef4 sw r2,0x5ef4(r1) 80142488: 26625074 addiu r2,r19,0x5074 8014248c: 3c018017 lui r1,0x8017 80142490: a42296aa sh r2,-0x6956(r1) 80142494: 0c050595 jal 0x80141654 80142498: 34040032 ori r4,r0,0x0032 8014249c: 08050932 j 0x801424c8 801424a0: 34020001 ori r2,r0,0x0001 801424a4: 0c050595 jal 0x80141654 801424a8: 34040008 ori r4,r0,0x0008 801424ac: 08050932 j 0x801424c8 801424b0: 34020001 ori r2,r0,0x0001 801424b4: 0c01127e jal 0x800449f8 801424b8: 34050005 ori r5,r0,0x0005 801424bc: 0c050595 jal 0x80141654 801424c0: 34040008 ori r4,r0,0x0008 801424c4: 00001021 addu r2,r0,r0 801424c8: 3c018015 lui r1,0x8015 801424cc: ac32d318 sw r18,-0x2ce8(r1) 801424d0: 3c018015 lui r1,0x8015 801424d4: ac33d31c sw r19,-0x2ce4(r1) 801424d8: 8fbf0030 lw r31,0x0030(r29) 801424dc: 8fb7002c lw r23,0x002c(r29) 801424e0: 8fb60028 lw r22,0x0028(r29) 801424e4: 8fb50024 lw r21,0x0024(r29) 801424e8: 8fb40020 lw r20,0x0020(r29) 801424ec: 8fb3001c lw r19,0x001c(r29) 801424f0: 8fb20018 lw r18,0x0018(r29) 801424f4: 8fb10014 lw r17,0x0014(r29) 801424f8: 8fb00010 lw r16,0x0010(r29) 801424fc: 27bd0038 addiu r29,r29,0x0038 80142500: 03e00008 jr r31 80142504: 00000000 nop