0x142d58

From Final Fantasy Hacktics Wiki
Revision as of 14:45, 23 August 2018 by Glain (talk | contribs) (Created page with " 80142d58: 3c02801a lui r2,0x801a 80142d5c: 8c42f3ac lw r2,-0x0c54(r2) # *0x8019f3ac 80142d60: 3c038016 lui r3,0x8016 80142d64: 94635ff2 lhu r3,0x5ff2(r3)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
80142d58: 3c02801a lui r2,0x801a
80142d5c: 8c42f3ac lw r2,-0x0c54(r2)                #   *0x8019f3ac
80142d60: 3c038016 lui r3,0x8016
80142d64: 94635ff2 lhu r3,0x5ff2(r3)                #   *0x80165ff2
80142d68: 27bdffd8 addiu r29,r29,-0x0028
80142d6c: afb00018 sw r16,0x0018(r29)
80142d70: 00808021 addu r16,r4,r0                   #   p1
80142d74: afb20020 sw r18,0x0020(r29)
80142d78: afbf0024 sw r31,0x0024(r29)
80142d7c: afb1001c sw r17,0x001c(r29)
80142d80: 3c018017 lui r1,0x8017
80142d84: ac224048 sw r2,0x4048(r1)                 #   *0x80174048 = *0x8019f3ac
80142d88: 10600013 beq r3,r0,0x80142dd8
80142d8c: 00a09021 addu r18,r5,r0                   #   p2
                                                    #   if (*0x80165ff2 != 0) {
80142d90: 0c0091b5 jal 0x800246d4                   #       0x246d4 (0);
80142d94: 00002021 addu r4,r0,r0
80142d98: 27a40010 addiu r4,r29,0x0010              #       local
80142d9c: 3c058001 lui r5,0x8001
80142da0: 8ca50010 lw r5,0x0010(r5)                 #       *0x80010010
80142da4: 3c038004 lui r3,0x8004
80142da8: 8c63597c lw r3,0x597c(r3)                 #       *0x8004597c
80142dac: 34020100 ori r2,r0,0x0100
80142db0: a7a20014 sh r2,0x0014(r29)                #       local.0x04 = 0x100
80142db4: 340200f0 ori r2,r0,0x00f0
80142db8: a7a00010 sh r0,0x0010(r29)                #       local.0x00 = 0
80142dbc: a7a20016 sh r2,0x0016(r29)                #       local.0x06 = 0xf0
80142dc0: 30630001 andi r3,r3,0x0001                #       *0x8004597c & 1
80142dc4: 00031100 sll r2,r3,0x04                   #       (*0x8004597c & 1) * 16
80142dc8: 00431023 subu r2,r2,r3                    #       (*0x8004597c & 1) * 15
80142dcc: 00021100 sll r2,r2,0x04                   #       (*0x8004597c & 1) * 240       
80142dd0: 0c00923f jal 0x800248fc                   #       ? 0x248fc (local, *0x80010010);
80142dd4: a7a20012 sh r2,0x0012(r29)                #       local.0x02 = (*0x8004597c & 1) * 240
                                                    #   }
80142dd8: 3c058016 lui r5,0x8016
80142ddc: 8ca5603c lw r5,0x603c(r5)                 #   *0x8016603c
80142de0: 3c028016 lui r2,0x8016
80142de4: 8c426014 lw r2,0x6014(r2)                 #   *0x80166014
80142de8: 3c018017 lui r1,0x8017
80142dec: ac303f44 sw r16,0x3f44(r1)                #   *0x80173f44 = p1
80142df0: 000220c0 sll r4,r2,0x03                   #   *0x80166014 * 8
80142df4: 00822023 subu r4,r4,r2                    #   *0x80166014 * 7
80142df8: 00042080 sll r4,r4,0x02                   #   *0x80166014 * 28
80142dfc: 3c028017 lui r2,0x8017
80142e00: 24423c34 addiu r2,r2,0x3c34               #   0x80173c34
80142e04: 0c04ee9a jal 0x8013ba68                   #   0x13ba68 ((*0x80166014 * 28) + 0x80173c34);
80142e08: 00822021 addu r4,r4,r2
80142e0c: 0c050ea7 jal 0x80143a9c                   #   0x143a9c ();
80142e10: 00000000 nop
80142e14: 0c04b997 jal 0x8012e65c                   #   0x12e65c ();
80142e18: 00000000 nop
80142e1c: 3c028017 lui r2,0x8017
80142e20: 8442d9c0 lh r2,-0x2640(r2)                #   *0x8016d9c0
80142e24: 00000000 nop
80142e28: 1040004b beq r2,r0,0x80142f58
80142e2c: 34110001 ori r17,r0,0x0001                #   threadID = 1
                                                    #   if (*0x8016d9c0 != 0) {
                                                    #       do {
80142e30: 0c053325 jal 0x8014cc94                   #           isRunning = Check Thread Running Status (threadID);
80142e34: 02202021 addu r4,r17,r0
80142e38: 14400005 bne r2,r0,0x80142e50             #           if (isRunning) break;
80142e3c: 34020010 ori r2,r0,0x0010                    
80142e40: 26310001 addiu r17,r17,0x0001             #           threadID = threadID + 1
80142e44: 2a220010 slti r2,r17,0x0010
80142e48: 1440fff9 bne r2,r0,0x80142e30             #       } while (threadID < 16); 
80142e4c: 34020010 ori r2,r0,0x0010                          
80142e50: 1622003f bne r17,r2,0x80142f50            #       if (threadID == 16) {
80142e54: 00000000 nop
80142e58: 0c050ad7 jal 0x80142b5c                   #           result_142b5c = 0x142b5c ();
80142e5c: 00000000 nop
80142e60: 00408021 addu r16,r2,r0                   #           result_142b5c
80142e64: 1200000b beq r16,r0,0x80142e94            #           if (result_142b5c != 0) {
80142e68: 00000000 nop
80142e6c: 0c04ed64 jal 0x8013b590                   #               var_0x1fc = Get Script Variable (0x1fc);
80142e70: 340401fc ori r4,r0,0x01fc
80142e74: 1040000d beq r2,r0,0x80142eac             #               if (var_0x1fc != 0) {
80142e78: 340401fc ori r4,r0,0x01fc
80142e7c: 3c018017 lui r1,0x8017
80142e80: a420d9c0 sh r0,-0x2640(r1)                #                   *0x8016d9c0 = 0
80142e84: 0c04ed91 jal 0x8013b644                   #                   Set Script Variable (0x1fc, 0);
80142e88: 00002821 addu r5,r0,r0
80142e8c: 08050ce4 j 0x80143390                     #                   return 9;
80142e90: 34020009 ori r2,r0,0x0009
                                                    #               } else { skipNextSection = true; }
                                                    #           }
                                                    #           if (!skipNextSection) {
80142e94: 3c018017 lui r1,0x8017
80142e98: a420d9c0 sh r0,-0x2640(r1)                #               *0x8016d9c0 = 0
80142e9c: 3c018016 lui r1,0x8016
80142ea0: a4206048 sh r0,0x6048(r1)                 #               *0x80166048 = 0
80142ea4: 08050ce4 j 0x80143390                     #               return 0;
80142ea8: 00001021 addu r2,r0,r0
                                                    #           }
80142eac: 0c04ed64 jal 0x8013b590
80142eb0: 34040027 ori r4,r0,0x0027
80142eb4: 34030147 ori r3,r0,0x0147
80142eb8: 14430003 bne r2,r3,0x80142ec8
80142ebc: 34040027 ori r4,r0,0x0027
80142ec0: 08050ce4 j 0x80143390
80142ec4: 34020013 ori r2,r0,0x0013
80142ec8: 32050c00 andi r5,r16,0x0c00
80142ecc: 00052883 sra r5,r5,0x02
80142ed0: 320200ff andi r2,r16,0x00ff
80142ed4: 0c04ed91 jal 0x8013b644
80142ed8: 00a22825 or r5,r5,r2
80142edc: 3202f300 andi r2,r16,0xf300
80142ee0: 00028203 sra r16,r2,0x08
80142ee4: 34020080 ori r2,r0,0x0080
80142ee8: 3c018017 lui r1,0x8017
80142eec: a420d9c0 sh r0,-0x2640(r1)
80142ef0: 3c018016 lui r1,0x8016
80142ef4: a4206048 sh r0,0x6048(r1)
80142ef8: 16020003 bne r16,r2,0x80142f08
80142efc: 34020081 ori r2,r0,0x0081
80142f00: 08050ce4 j 0x80143390
80142f04: 34020009 ori r2,r0,0x0009
80142f08: 16020003 bne r16,r2,0x80142f18
80142f0c: 34020082 ori r2,r0,0x0082
80142f10: 08050ce4 j 0x80143390
80142f14: 3402000a ori r2,r0,0x000a
80142f18: 16020003 bne r16,r2,0x80142f28
80142f1c: 34040027 ori r4,r0,0x0027
80142f20: 08050ce4 j 0x80143390
80142f24: 3402000b ori r2,r0,0x000b
80142f28: 0c04ed91 jal 0x8013b644
80142f2c: 00002821 addu r5,r0,r0
80142f30: 34040032 ori r4,r0,0x0032
80142f34: 0c04ed91 jal 0x8013b644
80142f38: 00002821 addu r5,r0,r0
80142f3c: 34020004 ori r2,r0,0x0004
80142f40: 3c018004 lui r1,0x8004
80142f44: ac2259dc sw r2,0x59dc(r1)
80142f48: 08050ce4 j 0x80143390
80142f4c: 34020009 ori r2,r0,0x0009
                                                    #       }
80142f50: 3c018017 lui r1,0x8017
80142f54: a420d9c0 sh r0,-0x2640(r1)
                                                    #   }
80142f58: 0c04b7e6 jal 0x8012df98
80142f5c: 02402021 addu r4,r18,r0
80142f60: 3c038016 lui r3,0x8016
80142f64: 94635ff6 lhu r3,0x5ff6(r3)
80142f68: 34020002 ori r2,r0,0x0002
80142f6c: 14620010 bne r3,r2,0x80142fb0
80142f70: 00000000 nop
80142f74: 3c028017 lui r2,0x8017
80142f78: 8c4297d0 lw r2,-0x6830(r2)
80142f7c: 3c048017 lui r4,0x8017
80142f80: 248497d0 addiu r4,r4,-0x6830
80142f84: 3c018017 lui r1,0x8017
80142f88: ac22d9b4 sw r2,-0x264c(r1)
80142f8c: 0c050b09 jal 0x80142c24
80142f90: 00000000 nop
80142f94: 3404002a ori r4,r0,0x002a
80142f98: 3c028017 lui r2,0x8017
80142f9c: 8c4297d0 lw r2,-0x6830(r2)
80142fa0: 3c018017 lui r1,0x8017
80142fa4: ac22d9b8 sw r2,-0x2648(r1)
80142fa8: 0c04ed91 jal 0x8013b644
80142fac: 00002821 addu r5,r0,r0
80142fb0: 3c028016 lui r2,0x8016
80142fb4: 94425fde lhu r2,0x5fde(r2)
80142fb8: 00000000 nop
80142fbc: 2c420003 sltiu r2,r2,0x0003
80142fc0: 14400003 bne r2,r0,0x80142fd0
80142fc4: 00000000 nop
80142fc8: 3c018016 lui r1,0x8016
80142fcc: a4205fde sh r0,0x5fde(r1)
80142fd0: 3c028016 lui r2,0x8016
80142fd4: 94425fe0 lhu r2,0x5fe0(r2)
80142fd8: 00000000 nop
80142fdc: 2c420003 sltiu r2,r2,0x0003
80142fe0: 14400006 bne r2,r0,0x80142ffc
80142fe4: 2403ffff addiu r3,r0,-0x0001
80142fe8: 34020001 ori r2,r0,0x0001
80142fec: 3c018016 lui r1,0x8016
80142ff0: a4205fe0 sh r0,0x5fe0(r1)
80142ff4: 3c018016 lui r1,0x8016
80142ff8: a422605c sh r2,0x605c(r1)
80142ffc: 3c018017 lui r1,0x8017
80143000: a4234054 sh r3,0x4054(r1)
80143004: 3c018017 lui r1,0x8017
80143008: a4233f68 sh r3,0x3f68(r1)
8014300c: 3c018017 lui r1,0x8017
80143010: a4233f64 sh r3,0x3f64(r1)
80143014: 3c018017 lui r1,0x8017
80143018: a423405c sh r3,0x405c(r1)
8014301c: 3c018017 lui r1,0x8017
80143020: a4233cb4 sh r3,0x3cb4(r1)
80143024: 3c018016 lui r1,0x8016
80143028: a4235fb8 sh r3,0x5fb8(r1)
8014302c: 3c018016 lui r1,0x8016
80143030: a4235fc8 sh r3,0x5fc8(r1)
80143034: 3c018016 lui r1,0x8016
80143038: a4235fca sh r3,0x5fca(r1)
8014303c: 3c038016 lui r3,0x8016
80143040: 8c63600c lw r3,0x600c(r3)
80143044: 2402ffff addiu r2,r0,-0x0001
80143048: 3c018017 lui r1,0x8017
8014304c: ac223c9c sw r2,0x3c9c(r1)
80143050: 3c018017 lui r1,0x8017
80143054: ac223f4c sw r2,0x3f4c(r1)
80143058: 3c018017 lui r1,0x8017
8014305c: ac223f50 sw r2,0x3f50(r1)
80143060: 3c018017 lui r1,0x8017
80143064: ac223ca0 sw r2,0x3ca0(r1)
80143068: 3c018017 lui r1,0x8017
8014306c: ac223cac sw r2,0x3cac(r1)
80143070: 3c018017 lui r1,0x8017
80143074: ac223f48 sw r2,0x3f48(r1)
80143078: 3c018016 lui r1,0x8016
8014307c: ac225fb4 sw r2,0x5fb4(r1)
80143080: 3c018016 lui r1,0x8016
80143084: ac225fc0 sw r2,0x5fc0(r1)
80143088: 34020003 ori r2,r0,0x0003
8014308c: 3c018017 lui r1,0x8017
80143090: a420d9bc sh r0,-0x2644(r1)
80143094: 3c018016 lui r1,0x8016
80143098: a4205fe2 sh r0,0x5fe2(r1)
8014309c: 3c018016 lui r1,0x8016
801430a0: a4205fe4 sh r0,0x5fe4(r1)
801430a4: 14620011 bne r3,r2,0x801430ec
801430a8: 00000000 nop
801430ac: 3c048015 lui r4,0x8015
801430b0: 8484d08a lh r4,-0x2f76(r4)
801430b4: 0c077c66 jal 0x801df198
801430b8: 00002821 addu r5,r0,r0
801430bc: 3c018017 lui r1,0x8017
801430c0: ac22d9c4 sw r2,-0x263c(r1)
801430c4: 10400007 beq r2,r0,0x801430e4
801430c8: 00402821 addu r5,r2,r0
801430cc: 3c048017 lui r4,0x8017
801430d0: 8c843f44 lw r4,0x3f44(r4)
801430d4: 0c008efc jal 0x80023bf0
801430d8: 24a600fc addiu r6,r5,0x00fc
801430dc: 08050c3b j 0x801430ec
801430e0: 00000000 nop
801430e4: 3c018016 lui r1,0x8016
801430e8: ac20600c sw r0,0x600c(r1)
801430ec: 3c038016 lui r3,0x8016
801430f0: 8c63600c lw r3,0x600c(r3)
801430f4: 34020004 ori r2,r0,0x0004
801430f8: 14620015 bne r3,r2,0x80143150
801430fc: 00000000 nop
80143100: 3c058017 lui r5,0x8017
80143104: 8ca53f44 lw r5,0x3f44(r5)
80143108: 3c048015 lui r4,0x8015
8014310c: 8484d08a lh r4,-0x2f76(r4)
80143110: 0c06fdf8 jal 0x801bf7e0
80143114: 24a50004 addiu r5,r5,0x0004
80143118: 00402821 addu r5,r2,r0
8014311c: 2ca20002 sltiu r2,r5,0x0002
80143120: 3c018017 lui r1,0x8017
80143124: ac25d9c4 sw r5,-0x263c(r1)
80143128: 14400007 bne r2,r0,0x80143148
8014312c: 00000000 nop
80143130: 3c048017 lui r4,0x8017
80143134: 8c843f44 lw r4,0x3f44(r4)
80143138: 0c008efc jal 0x80023bf0
8014313c: 24a600fc addiu r6,r5,0x00fc
80143140: 08050c54 j 0x80143150
80143144: 00000000 nop
80143148: 3c018016 lui r1,0x8016
8014314c: ac20600c sw r0,0x600c(r1)
80143150: 0c04b721 jal 0x8012dc84
80143154: 00000000 nop
80143158: 1440000a bne r2,r0,0x80143184
8014315c: 34110001 ori r17,r0,0x0001
80143160: 3c038017 lui r3,0x8017
80143164: 8c6397d0 lw r3,-0x6830(r3)
80143168: 34020100 ori r2,r0,0x0100
8014316c: 10620005 beq r3,r2,0x80143184
80143170: 00000000 nop
80143174: 10600003 beq r3,r0,0x80143184
80143178: 34020005 ori r2,r0,0x0005
8014317c: 3c018016 lui r1,0x8016
80143180: a4226050 sh r2,0x6050(r1)
80143184: 0c053325 jal 0x8014cc94
80143188: 02202021 addu r4,r17,r0
8014318c: 3c018017 lui r1,0x8017
80143190: 00310821 addu r1,r1,r17
80143194: a022dac4 sb r2,-0x253c(r1)
80143198: 26310001 addiu r17,r17,0x0001
8014319c: 2a220010 slti r2,r17,0x0010
801431a0: 1440fff8 bne r2,r0,0x80143184
801431a4: 00000000 nop
801431a8: 0c0532a0 jal 0x8014ca80
801431ac: 34110001 ori r17,r0,0x0001
801431b0: 34120005 ori r18,r0,0x0005
801431b4: 3c018017 lui r1,0x8017
801431b8: 00310821 addu r1,r1,r17
801431bc: 9030dac4 lbu r16,-0x253c(r1)
801431c0: 0c053325 jal 0x8014cc94
801431c4: 02202021 addu r4,r17,r0
801431c8: 12020003 beq r16,r2,0x801431d8
801431cc: 26310001 addiu r17,r17,0x0001
801431d0: 3c018016 lui r1,0x8016
801431d4: a4326050 sh r18,0x6050(r1)
801431d8: 2a220010 slti r2,r17,0x0010
801431dc: 1440fff5 bne r2,r0,0x801431b4
801431e0: 00000000 nop
801431e4: 3c028016 lui r2,0x8016
801431e8: 94426050 lhu r2,0x6050(r2)
801431ec: 00000000 nop
801431f0: 10400003 beq r2,r0,0x80143200
801431f4: 2442ffff addiu r2,r2,-0x0001
801431f8: 3c018016 lui r1,0x8016
801431fc: a4226050 sh r2,0x6050(r1)
80143200: 0c050e70 jal 0x801439c0
80143204: 00000000 nop
80143208: 3c028016 lui r2,0x8016
8014320c: 8c426010 lw r2,0x6010(r2)
80143210: 3c038016 lui r3,0x8016
80143214: 8c636014 lw r3,0x6014(r3)
80143218: 24420001 addiu r2,r2,0x0001
8014321c: 24630001 addiu r3,r3,0x0001
80143220: 3c018016 lui r1,0x8016
80143224: ac226010 sw r2,0x6010(r1)
80143228: 3c028016 lui r2,0x8016
8014322c: 94426052 lhu r2,0x6052(r2)
80143230: 30630001 andi r3,r3,0x0001
80143234: 3c018016 lui r1,0x8016
80143238: ac236014 sw r3,0x6014(r1)
8014323c: 10400003 beq r2,r0,0x8014324c
80143240: 2442ffff addiu r2,r2,-0x0001
80143244: 3c018016 lui r1,0x8016
80143248: a4226052 sh r2,0x6052(r1)
8014324c: 0c04f69c jal 0x8013da70
80143250: 00000000 nop
80143254: 3c028017 lui r2,0x8017
80143258: 94423c80 lhu r2,0x3c80(r2)
8014325c: 00000000 nop
80143260: 1440004b bne r2,r0,0x80143390
80143264: 00000000 nop
80143268: 3c038016 lui r3,0x8016
8014326c: 8c63600c lw r3,0x600c(r3)
80143270: 34020001 ori r2,r0,0x0001
80143274: 14620007 bne r3,r2,0x80143294
80143278: 34020002 ori r2,r0,0x0002
8014327c: 0c04f33b jal 0x8013ccec
80143280: 00000000 nop
80143284: 3c018016 lui r1,0x8016
80143288: ac20600c sw r0,0x600c(r1)
8014328c: 08050cc4 j 0x80143310
80143290: 00000000 nop
80143294: 1462000f bne r3,r2,0x801432d4
80143298: 34020005 ori r2,r0,0x0005
8014329c: 0c04f680 jal 0x8013da00
801432a0: 34040001 ori r4,r0,0x0001
801432a4: 00002021 addu r4,r0,r0
801432a8: 0c070c64 jal 0x801c3190
801432ac: 00002821 addu r5,r0,r0
801432b0: 00408821 addu r17,r2,r0
801432b4: 0c02387e jal 0x8008e1f8
801432b8: 02202021 addu r4,r17,r0
801432bc: 3c018015 lui r1,0x8015
801432c0: a431d08a sh r17,-0x2f76(r1)
801432c4: 3c018016 lui r1,0x8016
801432c8: ac20600c sw r0,0x600c(r1)
801432cc: 08050cc4 j 0x80143310
801432d0: 00000000 nop
801432d4: 1462000e bne r3,r2,0x80143310
801432d8: 00000000 nop
801432dc: 0c04f680 jal 0x8013da00
801432e0: 34040001 ori r4,r0,0x0001
801432e4: 34040051 ori r4,r0,0x0051
801432e8: 3c108004 lui r16,0x8004
801432ec: 8e10597c lw r16,0x597c(r16)
801432f0: 0c04ed91 jal 0x8013b644
801432f4: 34050001 ori r5,r0,0x0001
801432f8: 0c06fcee jal 0x801bf3b8
801432fc: 00002021 addu r4,r0,r0
80143300: 3c018016 lui r1,0x8016
80143304: ac20600c sw r0,0x600c(r1)
80143308: 3c018004 lui r1,0x8004
8014330c: ac30597c sw r16,0x597c(r1)
80143310: 0c04f2f7 jal 0x8013cbdc
80143314: 00000000 nop
80143318: 0c04f2bf jal 0x8013cafc
8014331c: 00000000 nop
80143320: 0c050d06 jal 0x80143418
80143324: 00000000 nop
80143328: 0c052a0b jal 0x8014a82c
8014332c: 00000000 nop
80143330: 3c038016 lui r3,0x8016
80143334: 94635ff6 lhu r3,0x5ff6(r3)
80143338: 34020001 ori r2,r0,0x0001
8014333c: 10620014 beq r3,r2,0x80143390
80143340: 00000000 nop
80143344: 34020002 ori r2,r0,0x0002
80143348: 14620003 bne r3,r2,0x80143358
8014334c: 34110001 ori r17,r0,0x0001
80143350: 08050ce4 j 0x80143390
80143354: 00001021 addu r2,r0,r0
80143358: 0c053325 jal 0x8014cc94
8014335c: 02202021 addu r4,r17,r0
80143360: 14400005 bne r2,r0,0x80143378
80143364: 34020010 ori r2,r0,0x0010
80143368: 26310001 addiu r17,r17,0x0001
8014336c: 2a220010 slti r2,r17,0x0010
80143370: 1440fff9 bne r2,r0,0x80143358
80143374: 34020010 ori r2,r0,0x0010
80143378: 16220005 bne r17,r2,0x80143390
8014337c: 34020001 ori r2,r0,0x0001
80143380: 34020001 ori r2,r0,0x0001
80143384: 3c018017 lui r1,0x8017
80143388: a422d9c0 sh r2,-0x2640(r1)
8014338c: 34020001 ori r2,r0,0x0001
80143390: 8fbf0024 lw r31,0x0024(r29)
80143394: 8fb20020 lw r18,0x0020(r29)
80143398: 8fb1001c lw r17,0x001c(r29)
8014339c: 8fb00018 lw r16,0x0018(r29)
801433a0: 27bd0028 addiu r29,r29,0x0028
801433a4: 03e00008 jr r31
801433a8: 00000000 nop