0x143418

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
80143418: 27bdffd0 addiu r29,r29,-0x0030
8014341c: afbf0028 sw r31,0x0028(r29)
80143420: afb10024 sw r17,0x0024(r29)
80143424: 0c04fc83 jal 0x8013f20c               #   ? 0x13f20c ();
80143428: afb00020 sw r16,0x0020(r29)
8014342c: 3c048017 lui r4,0x8017
80143430: 84844054 lh r4,0x4054(r4)             #   *0x80174054
80143434: 2410ffff addiu r16,r0,-0x0001         #   -1
80143438: 10900003 beq r4,r16,0x80143448        
8014343c: 00008821 addu r17,r0,r0               #   0
                                                #   if (*0x80174054 != -1) {
80143440: 0c0230b7 jal 0x8008c2dc               #       ? 0x8c2dc (*0x80174054, 0x10);
80143444: 34050010 ori r5,r0,0x0010
                                                #   }
80143448: 3c048017 lui r4,0x8017
8014344c: 8484405c lh r4,0x405c(r4)             #   *0x8017405c
80143450: 00000000 nop
80143454: 10900003 beq r4,r16,0x80143464        #   if (*0x8017405c != -1) {
80143458: 00000000 nop
8014345c: 0c0230c8 jal 0x8008c320               #       ? 0x8c320 (*0x8017405c, 0x10);
80143460: 34050010 ori r5,r0,0x0010
                                                #   }
80143464: 3c048017 lui r4,0x8017
80143468: 8484d9bc lh r4,-0x2644(r4)            #   *0x8016d9bc
8014346c: 00000000 nop
80143470: 10800003 beq r4,r0,0x80143480         #   if (*0x8016d9bc != 0) {
80143474: 00000000 nop
80143478: 0c0230d9 jal 0x8008c364               #       ? 0x8c364 (*0x8016d9bc);
8014347c: 00000000 nop
                                                #   }
80143480: 3c028016 lui r2,0x8016
80143484: 94425fe2 lhu r2,0x5fe2(r2)            #   *0x80165fe2
80143488: 00000000 nop
8014348c: 1040000a beq r2,r0,0x801434b8         #   if (*0x80165fe2 != 0) {
80143490: 00000000 nop
80143494: 3c048017 lui r4,0x8017
80143498: 94843c94 lhu r4,0x3c94(r4)            #       *0x80173c94
8014349c: 3c058017 lui r5,0x8017
801434a0: 94a53c96 lhu r5,0x3c96(r5)            #       *0x80173c96
801434a4: 0c02382f jal 0x8008e0bc               #       ? 0x8e0bc (*0x80173c94, *0x80173c96);
801434a8: 00000000 nop
801434ac: 34020001 ori r2,r0,0x0001             #       1
801434b0: 3c018016 lui r1,0x8016
801434b4: a422606e sh r2,0x606e(r1)             #       *0x8016606e = 1
                                                #   }
801434b8: 3c028016 lui r2,0x8016
801434bc: 94425fe4 lhu r2,0x5fe4(r2)            #   *0x80165fe4
801434c0: 00000000 nop
801434c4: 1040000a beq r2,r0,0x801434f0         #   if (*0x80165fe4 != 0) {
801434c8: 00000000 nop
801434cc: 3c048017 lui r4,0x8017
801434d0: 94844058 lhu r4,0x4058(r4)            #       *0x80174058
801434d4: 3c058017 lui r5,0x8017
801434d8: 94a5405a lhu r5,0x405a(r5)            #       *0x8017405a
801434dc: 0c023847 jal 0x8008e11c               #       ? 0x8e11c (*0x80174058, *0x8017405a);
801434e0: 00000000 nop
801434e4: 34020001 ori r2,r0,0x0001             #       1
801434e8: 3c018016 lui r1,0x8016
801434ec: a4226070 sh r2,0x6070(r1)             #       *0x80166070 = 1
                                                #   }
801434f0: 3c028016 lui r2,0x8016
801434f4: 9442606e lhu r2,0x606e(r2)            #   *0x8016606e
801434f8: 00000000 nop
801434fc: 10400007 beq r2,r0,0x8014351c         #   if (*0x8016606e != 0) {
80143500: 00000000 nop
80143504: 3c048017 lui r4,0x8017
80143508: 94843c94 lhu r4,0x3c94(r4)            #       *0x80173c94
8014350c: 0c02383c jal 0x8008e0f0               #       result_0x8e0f0 = ? 0x8e0f0 (*0x80173c94);
80143510: 00000000 nop
80143514: 3c018016 lui r1,0x8016
80143518: a422606e sh r2,0x606e(r1)             #       *0x8016606e = result_0x8e0f0
                                                #   }
8014351c: 3c028016 lui r2,0x8016
80143520: 94426070 lhu r2,0x6070(r2)            #   *0x80166070
80143524: 00000000 nop
80143528: 10400007 beq r2,r0,0x80143548         #   if (*0x80166070 != 0) {
8014352c: 00000000 nop
80143530: 3c048017 lui r4,0x8017
80143534: 94844058 lhu r4,0x4058(r4)            #       *0x80174058
80143538: 0c023854 jal 0x8008e150               #       result_0x8e150 = ? 0x8e150 (*0x80174058);
8014353c: 00000000 nop
80143540: 3c018016 lui r1,0x8016
80143544: a4226070 sh r2,0x6070(r1)             #       *0x80166070 = result_0x8e150
                                                #   }
80143548: 3c028016 lui r2,0x8016
8014354c: 9442606c lhu r2,0x606c(r2)            #   *0x8016606c
80143550: 00000000 nop
80143554: 10400005 beq r2,r0,0x8014356c         #   if (*0x8016606c != 0) {
80143558: 00000000 nop
8014355c: 0c03d2b3 jal 0x800f4acc               #       result_0xf4acc = ? 0xf4acc (3);
80143560: 34040003 ori r4,r0,0x0003
80143564: 3c018016 lui r1,0x8016
80143568: a422606c sh r2,0x606c(r1)             #       *0x8016606c = result_0xf4acc
                                                #   }
8014356c: 3c038016 lui r3,0x8016
80143570: 94635fde lhu r3,0x5fde(r3)            #   *0x80165fde
80143574: 34020001 ori r2,r0,0x0001             #   1
80143578: 14620005 bne r3,r2,0x80143590
8014357c: 34020002 ori r2,r0,0x0002             #   result = 2
                                                #   if (*0x80165fde == 1) {
80143580: 0c02381a jal 0x8008e068               #       result = ? 0x8e068 ();
80143584: 00000000 nop
80143588: 08050d68 j 0x801435a0
8014358c: 00000000 nop  
80143590: 1462000b bne r3,r2,0x801435c0         #   } else if (*0x80165fde == 2) {
80143594: 00000000 nop
80143598: 0c023825 jal 0x8008e094               #       result == ? 0x8e094 ();
8014359c: 00000000 nop
                                                #   }
801435a0: 14400007 bne r2,r0,0x801435c0         #   if (result == 0) {
801435a4: 00000000 nop
801435a8: 3c028016 lui r2,0x8016
801435ac: 94425fde lhu r2,0x5fde(r2)            #       *0x80165fde
801435b0: 00000000 nop
801435b4: 24420001 addiu r2,r2,0x0001           #       result = result + 1
801435b8: 3c018016 lui r1,0x8016
801435bc: a4225fde sh r2,0x5fde(r1)             #       *0x80165fde = result
                                                #   }
801435c0: 3c038016 lui r3,0x8016
801435c4: 94635fe0 lhu r3,0x5fe0(r3)            #   *0x80165fe0
801435c8: 34020001 ori r2,r0,0x0001             #   1
801435cc: 1462000d bne r3,r2,0x80143604
801435d0: 34020002 ori r2,r0,0x0002             #   2
801435d4: 3c028016 lui r2,0x8016
801435d8: 8442605c lh r2,0x605c(r2)             #   *0x8016605c
801435dc: 00000000 nop
801435e0: 14400008 bne r2,r0,0x80143604
801435e4: 34020002 ori r2,r0,0x0002             #   2
                                                #   if (*0x8016605c == 2) {
801435e8: 0c04ed64 jal 0x8013b590               #       scriptVar = Get Script Variable (0x33);  // 0x33 = Current Map
801435ec: 34040033 ori r4,r0,0x0033             #       0x33
801435f0: 00402021 addu r4,r2,r0                #       scriptVar
801435f4: 0c03cdc6 jal 0x800f3718               #       ? 0xf3718 (scriptVar, 0x99);
801435f8: 34050099 ori r5,r0,0x0099             #       0x99
801435fc: 08050d8b j 0x8014362c
80143600: 00000000 nop
80143604: 1462000f bne r3,r2,0x80143644         #   } else if () {
80143608: 00000000 nop
8014360c: 0c04ed64 jal 0x8013b590               #       scriptVar = Get Script Variable (0x33);
80143610: 34040033 ori r4,r0,0x0033
80143614: 00402021 addu r4,r2,r0
80143618: 0c03cdc6 jal 0x800f3718               #       result_0xf3718 = ? 0xf3718 (scriptVar, 0x9c);
8014361c: 3405009c ori r5,r0,0x009c
80143620: 3403009b ori r3,r0,0x009b
80143624: 14430007 bne r2,r3,0x80143644         #       if (result_0xf3718 == 0x9b) {
80143628: 00000000 nop
8014362c: 3c028016 lui r2,0x8016
80143630: 94425fe0 lhu r2,0x5fe0(r2)            
80143634: 00000000 nop
80143638: 24420001 addiu r2,r2,0x0001
8014363c: 3c018016 lui r1,0x8016
80143640: a4225fe0 sh r2,0x5fe0(r1)             #           *0x80165fe0 = *0x80165fe0 + 1
                                                #       }
                                                #   }
80143644: 3c048016 lui r4,0x8016
80143648: 8484605c lh r4,0x605c(r4)             #   *0x8016605c
8014364c: 34020002 ori r2,r0,0x0002             #   2
80143650: 1482000b bne r4,r2,0x80143680
80143654: 00801821 addu r3,r4,r0                #   *0x8016605c
                                                #   if (*0x8016605c == 2) {
80143658: 24620001 addiu r2,r3,0x0001           #       *0x8016605c + 1
8014365c: 3c018016 lui r1,0x8016
80143660: a422605c sh r2,0x605c(r1)             #       *0x8016605c = *0x8016605c + 1
80143664: 3404009a ori r4,r0,0x009a
80143668: 34050001 ori r5,r0,0x0001
8014366c: 34060001 ori r6,r0,0x0001
80143670: 0c03c2f8 jal 0x800f0be0               #       ? 0xf0be0 (0x9a, 1, 1, 1);
80143674: 34070001 ori r7,r0,0x0001
80143678: 08050dac j 0x801436b0
8014367c: 00000000 nop
                                                #   } else {
80143680: 34020003 ori r2,r0,0x0003             #       3
80143684: 1482000a bne r4,r2,0x801436b0         #       if (*0x8016605c == 3) {
80143688: 00000000 nop
8014368c: 0c04ed64 jal 0x8013b590               #           scriptVar = Get Script Variable (0x33);
80143690: 34040033 ori r4,r0,0x0033
80143694: 00402021 addu r4,r2,r0                
80143698: 0c03cdc6 jal 0x800f3718               #           result_0xf3718 = ? 0xf3718 (scriptVar, 0x76);
8014369c: 34050076 ori r5,r0,0x0076
801436a0: 14400003 bne r2,r0,0x801436b0         #           if (result_0xf3718 == 0) {
801436a4: 00000000 nop
801436a8: 3c018016 lui r1,0x8016
801436ac: a420605c sh r0,0x605c(r1)             #               *0x8016605c = 0
                                                #           }
                                                #       }
                                                #   }
801436b0: 3c038017 lui r3,0x8017
801436b4: 84633f68 lh r3,0x3f68(r3)             #   *0x80173f68
801436b8: 2402ffff addiu r2,r0,-0x0001          #   -1
801436bc: 1062001b beq r3,r2,0x8014372c         
801436c0: 00602021 addu r4,r3,r0                #   *0x80173f68
                                                #   if (*0x80173f68 != -1) {
801436c4: 30820f00 andi r2,r4,0x0f00            #       *0x80173f68 & 0x0f00
801436c8: 14400006 bne r2,r0,0x801436e4         
801436cc: 3083000f andi r3,r4,0x000f            #       value = *0x80173f68 & 0x0f
                                                #       if ((*0x80173f68 & 0x0f00) == 0) {
801436d0: 2402ffff addiu r2,r0,-0x0001          #           -1
801436d4: 3c018017 lui r1,0x8017
801436d8: a4223f68 sh r2,0x3f68(r1)             #           *0x80173f68 = -1
801436dc: 08050dcb j 0x8014372c
801436e0: 00000000 nop
                                                #       } else {
801436e4: 3c02800b lui r2,0x800b
801436e8: 8c426698 lw r2,0x6698(r2)             #           *0x800b6698
801436ec: 3c018017 lui r1,0x8017
801436f0: a4233f68 sh r3,0x3f68(r1)             #           *0x80173f68 = value
801436f4: 30420001 andi r2,r2,0x0001            #           *0x800b6698 & 1
801436f8: 10400003 beq r2,r0,0x80143708
801436fc: 24620005 addiu r2,r3,0x0005           #           value + 5
                                                #           if ((*0x800b6698 & 1) != 0) {
80143700: 3c018017 lui r1,0x8017
80143704: a4223f68 sh r2,0x3f68(r1)             #               *0x80173f68 = value + 5
                                                #           }
80143708: 3c028017 lui r2,0x8017
8014370c: 84423f68 lh r2,0x3f68(r2)             #           *0x80173f68
80143710: 00000000 nop
80143714: 00021040 sll r2,r2,0x01               #           *0x80173f68 * 2
80143718: 3c018017 lui r1,0x8017
8014371c: 00220821 addu r1,r1,r2
80143720: 902496e4 lbu r4,-0x691c(r1)           #           *((*0x80173f68 * 2) + 0x8017691c)
80143724: 0c03babe jal 0x800eeaf8               #           ? 0xeeaf8 (*((*0x80173f68 * 2) + 0x8017691c));
80143728: 00000000 nop
                                                #       }
                                                #   }
8014372c: 3c058017 lui r5,0x8017
80143730: 84a53f64 lh r5,0x3f64(r5)             #   *0x80173f64
80143734: 2410ffff addiu r16,r0,-0x0001         #   -1
80143738: 10b00005 beq r5,r16,0x80143750        #   if (*0x80173f64 != -1) {
8014373c: 00000000 nop
80143740: 0c04ed91 jal 0x8013b644               #       Set Script Variable (0x24, *0x80173f64);        // 0x24 = Map State
80143744: 34040024 ori r4,r0,0x0024
80143748: 0c03babe jal 0x800eeaf8               #       ? 0xeeaf8 (0x8b);
8014374c: 3404008b ori r4,r0,0x008b
                                                #   }
80143750: 3c048017 lui r4,0x8017
80143754: 84843cb4 lh r4,0x3cb4(r4)             #   Effect ID to start
80143758: 00000000 nop
8014375c: 1090000e beq r4,r16,0x80143798        
80143760: 34020002 ori r2,r0,0x0002             #   2
                                                #   if (Effect ID != -1) {
80143764: 3c038016 lui r3,0x8016
80143768: 84636000 lh r3,0x6000(r3)             #       *0x80166000
8014376c: 00000000 nop
80143770: 14620005 bne r3,r2,0x80143788         
80143774: 00002821 addu r5,r0,r0                #       arg = 0
                                                #       if (*0x80166000 == 2) {
80143778: 3c068016 lui r6,0x8016
8014377c: 94c65ff8 lhu r6,0x5ff8(r6)            #           *0x80165ff8
80143780: 08050de4 j 0x80143790
80143784: 34050002 ori r5,r0,0x0002             #           arg = 2
                                                #       }
80143788: 3c068016 lui r6,0x8016
8014378c: 94c65ff8 lhu r6,0x5ff8(r6)            #       *0x80165ff8
80143790: 0c023744 jal 0x8008dd10               #       Start New Effect (Effect ID, arg, *0x80165ff8);
80143794: 00000000 nop
                                                #   }
80143798: 3c028016 lui r2,0x8016
8014379c: 9442604e lhu r2,0x604e(r2)            #   *0x8016604e
801437a0: 00000000 nop
801437a4: 10400005 beq r2,r0,0x801437bc         #   if (*0x8016604e != 0) {
801437a8: 00000000 nop
801437ac: 0c023441 jal 0x8008d104               #       result_0x8d104 = ? 0x8d104 ();
801437b0: 00000000 nop
801437b4: 3c018016 lui r1,0x8016
801437b8: a422604e sh r2,0x604e(r1)             #       *0x8016604e = result_0x8d104;
                                                #   }
801437bc: 1620007a bne r17,r0,0x801439a8        #   if (0 != 0) return;     // Yeah.
801437c0: 00000000 nop
801437c4: 3c048017 lui r4,0x8017
801437c8: 8c843c9c lw r4,0x3c9c(r4)             #   *0x80173c9c
801437cc: 00000000 nop
801437d0: 04800005 bltz r4,0x801437e8           #   if (*0x80173c9c >= 0) {
801437d4: 00000000 nop
801437d8: 3c058017 lui r5,0x8017
801437dc: 8ca5400c lw r5,0x400c(r5)             #       *0x8017400c
801437e0: 0c0234a8 jal 0x8008d2a0               #       ? 0x8d2a0 (*0x80173c9c, *0x8017400c);
801437e4: 00000000 nop
                                                #   }
801437e8: 3c048017 lui r4,0x8017
801437ec: 8c843f4c lw r4,0x3f4c(r4)             #   *0x80173f4c
801437f0: 00000000 nop
801437f4: 04800003 bltz r4,0x80143804           #   if (*0x80173f4c >= 0) {
801437f8: 00000000 nop
801437fc: 0c023572 jal 0x8008d5c8               #       ? 0x8d5c8 (*0x80173f4c);
80143800: 00000000 nop
                                                #   }
80143804: 3c048017 lui r4,0x8017
80143808: 8c843f50 lw r4,0x3f50(r4)             #   *0x80173f50
8014380c: 00000000 nop
80143810: 04800003 bltz r4,0x80143820           #   if (*0x80173f50 >= 0) {
80143814: 00000000 nop
80143818: 0c023594 jal 0x8008d650               #       ? 0x8d650 (*0x80173f50);
8014381c: 00000000 nop
                                                #   }
80143820: 3c048017 lui r4,0x8017
80143824: 8c843ca0 lw r4,0x3ca0(r4)             #   *0x80173ca0
80143828: 00000000 nop
8014382c: 04800003 bltz r4,0x8014383c           #   if (*0x80173ca0 >= 0) {
80143830: 00000000 nop
80143834: 0c0235aa jal 0x8008d6a8               #       ? 0x8d6a8 (*0x80173ca0);
80143838: 00000000 nop
                                                #   }
8014383c: 3c058017 lui r5,0x8017
80143840: 8ca53cac lw r5,0x3cac(r5)             #   *0x80173cac
80143844: 00000000 nop
80143848: 04a00004 bltz r5,0x8014385c
8014384c: 30a4ff00 andi r4,r5,0xff00            #   *0x80173cac & 0xff00
                                                #   if (*0x80173cac >= 0) {
80143850: 00042202 srl r4,r4,0x08               #       (*0x80173cac & 0xff00) >> 8
80143854: 0c0235c2 jal 0x8008d708               #       ? 0x8d708 (((*0x80173cac & 0xff00) >> 8), 0xff);
80143858: 30a500ff andi r5,r5,0x00ff            #       0xff
                                                #   }
8014385c: 3c048017 lui r4,0x8017
80143860: 8c843f48 lw r4,0x3f48(r4)             #   *0x80173f48
80143864: 00000000 nop
80143868: 04800003 bltz r4,0x80143878           #   if (*0x80173f48 >= 0) {
8014386c: 00000000 nop
80143870: 0c023639 jal 0x8008d8e4               #       ? 0x8d8e4 (*0x80173f48);
80143874: 00000000 nop
                                                #   }
80143878: 3c048016 lui r4,0x8016
8014387c: 8c845fb4 lw r4,0x5fb4(r4)             #   *0x80165fb4
80143880: 2402ffff addiu r2,r0,-0x0001          #   -1
80143884: 10820003 beq r4,r2,0x80143894         #   if (*0x80165fb4 != -1) {
80143888: 00000000 nop
8014388c: 0c010ffe jal 0x80043ff8               #       ? 0x43ff8 (*0x80165fb4);
80143890: 00000000 nop                          #   }
80143894: 3c028016 lui r2,0x8016
80143898: 84425fc8 lh r2,0x5fc8(r2)             #   *0x80165fc8
8014389c: 00000000 nop
801438a0: 04400023 bltz r2,0x80143930           #   if (*0x80165fc8 >= 0) {
801438a4: 00000000 nop
801438a8: 0c010e8e jal 0x80043a38               #       ? 0x43a38 (*0x80165fb4);
801438ac: 00000000 nop
801438b0: 3c028016 lui r2,0x8016
801438b4: 94425fd8 lhu r2,0x5fd8(r2)            #       *0x80165fd8
801438b8: 00000000 nop
801438bc: 38420001 xori r2,r2,0x0001            #       *0x80165fd8 xor 1
801438c0: 3c018016 lui r1,0x8016
801438c4: a4225fd8 sh r2,0x5fd8(r1)             #       *0x80165fd8 = *0x80165fd8 xor 1
801438c8: 3c028016 lui r2,0x8016
801438cc: 94425fd8 lhu r2,0x5fd8(r2)            #       *0x80165fd8
801438d0: 00000000 nop
801438d4: 14400005 bne r2,r0,0x801438ec         #       if (*0x80165fd8 == 0) {
801438d8: 00000000 nop
801438dc: 3c028016 lui r2,0x8016
801438e0: 94425fd4 lhu r2,0x5fd4(r2)            #           value = *0x80165fd4
801438e4: 08050e3d j 0x801438f4
801438e8: 00000000 nop
                                                #       } else {
801438ec: 3c028016 lui r2,0x8016
801438f0: 94425fd6 lhu r2,0x5fd6(r2)            #           value = *0x80165fd6
                                                #       }
801438f4: 00000000 nop
801438f8: 1040000d beq r2,r0,0x80143930         #       if (value != 0) {
801438fc: 00000000 nop
80143900: 3c048017 lui r4,0x8017
80143904: 94843f54 lhu r4,0x3f54(r4)            #           *0x80173f54
80143908: 0c04b6e4 jal 0x8012db90               #           result_0x12db90 = ? 0x12bd90 (*0x80173f54);
8014390c: 00000000 nop
80143910: 00402821 addu r5,r2,r0                #           result_0x12db90           
80143914: 3c048016 lui r4,0x8016
80143918: 94845fd8 lhu r4,0x5fd8(r4)            #           *0x80173f58
8014391c: 3c068017 lui r6,0x8017
80143920: 94c63f56 lhu r6,0x3f56(r6)            #           *0x80173f56
80143924: 24840001 addiu r4,r4,0x0001           #           *0x80173f58 + 1
80143928: 0c010ea4 jal 0x80043a90               #           ? 0x43a90 (*0x80173f58 + 1, result_0x12db90, *0x80173f56);
8014392c: 00063080 sll r6,r6,0x02               #           *0x80173f56 * 4
                                                #       }
                                                #   }
80143930: 3c028016 lui r2,0x8016
80143934: 84425fca lh r2,0x5fca(r2)             #   *0x80165fca
80143938: 00000000 nop
8014393c: 04400007 bltz r2,0x8014395c
80143940: 2410ffff addiu r16,r0,-0x0001         #   -1
                                                #   if (*0x80165fca >= 0) {
80143944: 0c010e8e jal 0x80043a38               #       ? 0x43a38 ();
80143948: 00000000 nop
8014394c: 3c048016 lui r4,0x8016
80143950: 84845fca lh r4,0x5fca(r4)             #       *0x80165fca
80143954: 0c010e70 jal 0x800439c0               #       ? 0x439c0 (*0x80165fca);
80143958: 00000000 nop
                                                #   }
8014395c: 3c028016 lui r2,0x8016
80143960: 84425fb8 lh r2,0x5fb8(r2)             #   *0x80165fb8
80143964: 00000000 nop
80143968: 10500007 beq r2,r16,0x80143988        #   if (*0x80165fb8 != -1) {
8014396c: 00000000 nop
80143970: 0c010fd4 jal 0x80043f50               #       ? 0x43f50 ();
80143974: 00000000 nop
80143978: 3c048016 lui r4,0x8016
8014397c: 84845fb8 lh r4,0x5fb8(r4)             #       *0x80165fb8
80143980: 0c010fe2 jal 0x80043f88               #       ? 0x43f88 (*0x80165fb8);
80143984: 00000000 nop
                                                #   }
80143988: 3c058016 lui r5,0x8016
8014398c: 8ca55fc0 lw r5,0x5fc0(r5)             #   *0x80165fc0
80143990: 00000000 nop
80143994: 10b00004 beq r5,r16,0x801439a8
80143998: 30a4ffff andi r4,r5,0xffff            #   *0x80165fc0 & 0xffff
                                                #   if (*0x80165fc0 != -1) {
8014399c: 00052b82 srl r5,r5,0x0e               #       *0x80165fc0 >> 14
801439a0: 0c010efa jal 0x80043be8               #       ? 0x43be8 ((*0x80165fc0 & 0xffff), ((*0x80165fc0 >> 14) & 0x3ffc));
801439a4: 30a53ffc andi r5,r5,0x3ffc            #       (*0x80165fc0 >> 14) & 0x3ffc
                                                #   }
801439a8: 8fbf0028 lw r31,0x0028(r29)
801439ac: 8fb10024 lw r17,0x0024(r29)
801439b0: 8fb00020 lw r16,0x0020(r29)
801439b4: 27bd0030 addiu r29,r29,0x0030
801439b8: 03e00008 jr r31
801439bc: 00000000 nop