papermario/asm/nonmatchings/code_1a1f0_len_5390/create_npcs.s

763 lines
35 KiB
ArmAsm
Raw Normal View History

2020-08-04 08:49:11 +02:00
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel create_npcs
/* 01EAB0 800436B0 27BDFFA0 */ addiu $sp, $sp, -0x60
/* 01EAB4 800436B4 AFBE0058 */ sw $fp, 0x58($sp)
/* 01EAB8 800436B8 27BE0010 */ addiu $fp, $sp, 0x10
/* 01EABC 800436BC 3C07800B */ lui $a3, 0x800b
/* 01EAC0 800436C0 8CE70F34 */ lw $a3, 0xf34($a3)
/* 01EAC4 800436C4 3C03800A */ lui $v1, 0x800a
/* 01EAC8 800436C8 8C63A5D0 */ lw $v1, -0x5a30($v1)
/* 01EACC 800436CC 3C08800B */ lui $t0, 0x800b
/* 01EAD0 800436D0 81080F30 */ lb $t0, 0xf30($t0)
/* 01EAD4 800436D4 24040001 */ addiu $a0, $zero, 1
/* 01EAD8 800436D8 AFBF005C */ sw $ra, 0x5c($sp)
/* 01EADC 800436DC AFB70054 */ sw $s7, 0x54($sp)
/* 01EAE0 800436E0 AFB60050 */ sw $s6, 0x50($sp)
/* 01EAE4 800436E4 AFB5004C */ sw $s5, 0x4c($sp)
/* 01EAE8 800436E8 AFB40048 */ sw $s4, 0x48($sp)
/* 01EAEC 800436EC AFB30044 */ sw $s3, 0x44($sp)
/* 01EAF0 800436F0 AFB20040 */ sw $s2, 0x40($sp)
/* 01EAF4 800436F4 AFB1003C */ sw $s1, 0x3c($sp)
/* 01EAF8 800436F8 AFB00038 */ sw $s0, 0x38($sp)
/* 01EAFC 800436FC AFA70020 */ sw $a3, 0x20($sp)
/* 01EB00 80043700 106401A5 */ beq $v1, $a0, .L80043D98
/* 01EB04 80043704 AFA80028 */ sw $t0, 0x28($sp)
/* 01EB08 80043708 28620002 */ slti $v0, $v1, 2
/* 01EB0C 8004370C 50400005 */ beql $v0, $zero, .L80043724
/* 01EB10 80043710 24020002 */ addiu $v0, $zero, 2
/* 01EB14 80043714 10600007 */ beqz $v1, .L80043734
/* 01EB18 80043718 00000000 */ nop
/* 01EB1C 8004371C 08011044 */ j .L80044110
/* 01EB20 80043720 00000000 */ nop
.L80043724:
/* 01EB24 80043724 106201EF */ beq $v1, $v0, .L80043EE4
/* 01EB28 80043728 0000A82D */ daddu $s5, $zero, $zero
/* 01EB2C 8004372C 08011044 */ j .L80044110
/* 01EB30 80043730 00000000 */ nop
.L80043734:
/* 01EB34 80043734 3C02800B */ lui $v0, 0x800b
/* 01EB38 80043738 80420F31 */ lb $v0, 0xf31($v0)
/* 01EB3C 8004373C 1044002A */ beq $v0, $a0, .L800437E8
/* 01EB40 80043740 00000000 */ nop
/* 01EB44 80043744 0000982D */ daddu $s3, $zero, $zero
/* 01EB48 80043748 3C03800B */ lui $v1, 0x800b
/* 01EB4C 8004374C 24630F10 */ addiu $v1, $v1, 0xf10
.L80043750:
/* 01EB50 80043750 84620BF0 */ lh $v0, 0xbf0($v1)
/* 01EB54 80043754 8FA70028 */ lw $a3, 0x28($sp)
/* 01EB58 80043758 10470006 */ beq $v0, $a3, .L80043774
/* 01EB5C 8004375C 2A620002 */ slti $v0, $s3, 2
/* 01EB60 80043760 26730001 */ addiu $s3, $s3, 1
/* 01EB64 80043764 2A620002 */ slti $v0, $s3, 2
/* 01EB68 80043768 1440FFF9 */ bnez $v0, .L80043750
/* 01EB6C 8004376C 24630002 */ addiu $v1, $v1, 2
/* 01EB70 80043770 2A620002 */ slti $v0, $s3, 2
.L80043774:
/* 01EB74 80043774 1440000F */ bnez $v0, .L800437B4
/* 01EB78 80043778 0000982D */ daddu $s3, $zero, $zero
/* 01EB7C 8004377C 8FA80028 */ lw $t0, 0x28($sp)
/* 01EB80 80043780 0000182D */ daddu $v1, $zero, $zero
/* 01EB84 80043784 00081040 */ sll $v0, $t0, 1
/* 01EB88 80043788 00481021 */ addu $v0, $v0, $t0
/* 01EB8C 8004378C 00022100 */ sll $a0, $v0, 4
/* 01EB90 80043790 3C07800B */ lui $a3, 0x800b
/* 01EB94 80043794 24E70F10 */ addiu $a3, $a3, 0xf10
.L80043798:
/* 01EB98 80043798 00E41021 */ addu $v0, $a3, $a0
/* 01EB9C 8004379C AC4000B0 */ sw $zero, 0xb0($v0)
/* 01EBA0 800437A0 24630001 */ addiu $v1, $v1, 1
/* 01EBA4 800437A4 2862000C */ slti $v0, $v1, 0xc
/* 01EBA8 800437A8 1440FFFB */ bnez $v0, .L80043798
/* 01EBAC 800437AC 24840004 */ addiu $a0, $a0, 4
/* 01EBB0 800437B0 0000982D */ daddu $s3, $zero, $zero
.L800437B4:
/* 01EBB4 800437B4 00131840 */ sll $v1, $s3, 1
/* 01EBB8 800437B8 26620001 */ addiu $v0, $s3, 1
/* 01EBBC 800437BC 0040982D */ daddu $s3, $v0, $zero
/* 01EBC0 800437C0 00131040 */ sll $v0, $s3, 1
/* 01EBC4 800437C4 3C08800B */ lui $t0, 0x800b
/* 01EBC8 800437C8 25080F10 */ addiu $t0, $t0, 0xf10
/* 01EBCC 800437CC 01022021 */ addu $a0, $t0, $v0
/* 01EBD0 800437D0 94820BF0 */ lhu $v0, 0xbf0($a0)
/* 01EBD4 800437D4 01031821 */ addu $v1, $t0, $v1
/* 01EBD8 800437D8 1A60FFF6 */ blez $s3, .L800437B4
/* 01EBDC 800437DC A4620BF0 */ sh $v0, 0xbf0($v1)
/* 01EBE0 800437E0 97A7002A */ lhu $a3, 0x2a($sp)
/* 01EBE4 800437E4 A4870BF0 */ sh $a3, 0xbf0($a0)
.L800437E8:
/* 01EBE8 800437E8 8FA80020 */ lw $t0, 0x20($sp)
/* 01EBEC 800437EC 0000B02D */ daddu $s6, $zero, $zero
/* 01EBF0 800437F0 AFA0002C */ sw $zero, 0x2c($sp)
/* 01EBF4 800437F4 2508000A */ addiu $t0, $t0, 0xa
/* 01EBF8 800437F8 AFA80034 */ sw $t0, 0x34($sp)
.L800437FC:
/* 01EBFC 800437FC 8FA70020 */ lw $a3, 0x20($sp)
/* 01EC00 80043800 8CE20000 */ lw $v0, ($a3)
/* 01EC04 80043804 1040015D */ beqz $v0, .L80043D7C
/* 01EC08 80043808 2404004C */ addiu $a0, $zero, 0x4c
/* 01EC0C 8004380C 8FA80034 */ lw $t0, 0x34($sp)
/* 01EC10 80043810 8D17FFFA */ lw $s7, -6($t0)
/* 01EC14 80043814 0C00AB39 */ jal heap_malloc
/* 01EC18 80043818 AFA20024 */ sw $v0, 0x24($sp)
/* 01EC1C 8004381C 0040A02D */ daddu $s4, $v0, $zero
/* 01EC20 80043820 00161080 */ sll $v0, $s6, 2
/* 01EC24 80043824 3C07800B */ lui $a3, 0x800b
/* 01EC28 80043828 24E70F10 */ addiu $a3, $a3, 0xf10
/* 01EC2C 8004382C 00E21021 */ addu $v0, $a3, $v0
/* 01EC30 80043830 16800003 */ bnez $s4, .L80043840
/* 01EC34 80043834 AC540028 */ sw $s4, 0x28($v0)
.L80043838:
/* 01EC38 80043838 08010E0E */ j .L80043838
/* 01EC3C 8004383C 00000000 */ nop
.L80043840:
/* 01EC40 80043840 8FA80024 */ lw $t0, 0x24($sp)
/* 01EC44 80043844 AE880000 */ sw $t0, ($s4)
/* 01EC48 80043848 8FA70034 */ lw $a3, 0x34($sp)
/* 01EC4C 8004384C 94E2FFFE */ lhu $v0, -2($a3)
/* 01EC50 80043850 A6820044 */ sh $v0, 0x44($s4)
/* 01EC54 80043854 94E20000 */ lhu $v0, ($a3)
/* 01EC58 80043858 97A8002E */ lhu $t0, 0x2e($sp)
/* 01EC5C 8004385C 2442FFFF */ addiu $v0, $v0, -1
/* 01EC60 80043860 A6880048 */ sh $t0, 0x48($s4)
/* 01EC64 80043864 A6820046 */ sh $v0, 0x46($s4)
/* 01EC68 80043868 8FA70024 */ lw $a3, 0x24($sp)
/* 01EC6C 8004386C 18E00137 */ blez $a3, .L80043D4C
/* 01EC70 80043870 0000982D */ daddu $s3, $zero, $zero
/* 01EC74 80043874 AFB40030 */ sw $s4, 0x30($sp)
/* 01EC78 80043878 26F20024 */ addiu $s2, $s7, 0x24
.L8004387C:
/* 01EC7C 8004387C 86850048 */ lh $a1, 0x48($s4)
/* 01EC80 80043880 8FA40028 */ lw $a0, 0x28($sp)
/* 01EC84 80043884 0C00FB7C */ jal get_defeated
/* 01EC88 80043888 00B32821 */ addu $a1, $a1, $s3
/* 01EC8C 8004388C 10400006 */ beqz $v0, .L800438A8
/* 01EC90 80043890 00000000 */ nop
/* 01EC94 80043894 265201F0 */ addiu $s2, $s2, 0x1f0
/* 01EC98 80043898 8FA80030 */ lw $t0, 0x30($sp)
/* 01EC9C 8004389C 26F701F0 */ addiu $s7, $s7, 0x1f0
/* 01ECA0 800438A0 08010F4C */ j .L80043D30
/* 01ECA4 800438A4 AD000004 */ sw $zero, 4($t0)
.L800438A8:
/* 01ECA8 800438A8 0C00AB39 */ jal heap_malloc
/* 01ECAC 800438AC 240400E8 */ addiu $a0, $zero, 0xe8
/* 01ECB0 800438B0 8FA70030 */ lw $a3, 0x30($sp)
/* 01ECB4 800438B4 0040802D */ daddu $s0, $v0, $zero
/* 01ECB8 800438B8 16000003 */ bnez $s0, .L800438C8
/* 01ECBC 800438BC ACE20004 */ sw $v0, 4($a3)
.L800438C0:
/* 01ECC0 800438C0 08010E30 */ j .L800438C0
/* 01ECC4 800438C4 00000000 */ nop
.L800438C8:
/* 01ECC8 800438C8 2403000F */ addiu $v1, $zero, 0xf
/* 01ECCC 800438CC 2602003C */ addiu $v0, $s0, 0x3c
.L800438D0:
/* 01ECD0 800438D0 AC40006C */ sw $zero, 0x6c($v0)
/* 01ECD4 800438D4 2463FFFF */ addiu $v1, $v1, -1
/* 01ECD8 800438D8 0461FFFD */ bgez $v1, .L800438D0
/* 01ECDC 800438DC 2442FFFC */ addiu $v0, $v0, -4
/* 01ECE0 800438E0 A2160004 */ sb $s6, 4($s0)
/* 01ECE4 800438E4 9642FFDE */ lhu $v0, -0x22($s2)
/* 01ECE8 800438E8 A6020008 */ sh $v0, 8($s0)
/* 01ECEC 800438EC 8E44FFE0 */ lw $a0, -0x20($s2)
/* 01ECF0 800438F0 26E20028 */ addiu $v0, $s7, 0x28
/* 01ECF4 800438F4 AE0200D4 */ sw $v0, 0xd4($s0)
/* 01ECF8 800438F8 34028000 */ ori $v0, $zero, 0x8000
/* 01ECFC 800438FC AE040018 */ sw $a0, 0x18($s0)
/* 01ED00 80043900 86430004 */ lh $v1, 4($s2)
/* 01ED04 80043904 3063FF00 */ andi $v1, $v1, 0xff00
/* 01ED08 80043908 10620004 */ beq $v1, $v0, .L8004391C
/* 01ED0C 8004390C 0080A82D */ daddu $s5, $a0, $zero
/* 01ED10 80043910 3C028007 */ lui $v0, 0x8007
/* 01ED14 80043914 24427EB8 */ addiu $v0, $v0, 0x7eb8
/* 01ED18 80043918 AE0200D4 */ sw $v0, 0xd4($s0)
.L8004391C:
/* 01ED1C 8004391C 3C02EFE8 */ lui $v0, 0xefe8
/* 01ED20 80043920 A2000005 */ sb $zero, 5($s0)
/* 01ED24 80043924 8E43FFF4 */ lw $v1, -0xc($s2)
/* 01ED28 80043928 34422080 */ ori $v0, $v0, 0x2080
/* 01ED2C 8004392C 0062102A */ slt $v0, $v1, $v0
/* 01ED30 80043930 50400002 */ beql $v0, $zero, .L8004393C
/* 01ED34 80043934 AE00001C */ sw $zero, 0x1c($s0)
/* 01ED38 80043938 AE03001C */ sw $v1, 0x1c($s0)
.L8004393C:
/* 01ED3C 8004393C 8EA2000C */ lw $v0, 0xc($s5)
/* 01ED40 80043940 AE020020 */ sw $v0, 0x20($s0)
/* 01ED44 80043944 8EA20010 */ lw $v0, 0x10($s5)
/* 01ED48 80043948 AE020024 */ sw $v0, 0x24($s0)
/* 01ED4C 8004394C 8EA20014 */ lw $v0, 0x14($s5)
/* 01ED50 80043950 AE020028 */ sw $v0, 0x28($s0)
/* 01ED54 80043954 8EA20018 */ lw $v0, 0x18($s5)
/* 01ED58 80043958 AE02002C */ sw $v0, 0x2c($s0)
/* 01ED5C 8004395C 8EA2001C */ lw $v0, 0x1c($s5)
/* 01ED60 80043960 AE000034 */ sw $zero, 0x34($s0)
/* 01ED64 80043964 AE000038 */ sw $zero, 0x38($s0)
/* 01ED68 80043968 AE00003C */ sw $zero, 0x3c($s0)
/* 01ED6C 8004396C AE000040 */ sw $zero, 0x40($s0)
/* 01ED70 80043970 AE000044 */ sw $zero, 0x44($s0)
/* 01ED74 80043974 AE000048 */ sw $zero, 0x48($s0)
/* 01ED78 80043978 AE000050 */ sw $zero, 0x50($s0)
/* 01ED7C 8004397C AE000054 */ sw $zero, 0x54($s0)
/* 01ED80 80043980 AE000058 */ sw $zero, 0x58($s0)
/* 01ED84 80043984 AE00005C */ sw $zero, 0x5c($s0)
/* 01ED88 80043988 AE000060 */ sw $zero, 0x60($s0)
/* 01ED8C 8004398C A2000007 */ sb $zero, 7($s0)
/* 01ED90 80043990 A20000B5 */ sb $zero, 0xb5($s0)
/* 01ED94 80043994 AE020030 */ sw $v0, 0x30($s0)
/* 01ED98 80043998 924201BF */ lbu $v0, 0x1bf($s2)
/* 01ED9C 8004399C A20200AC */ sb $v0, 0xac($s0)
/* 01EDA0 800439A0 8E4201C0 */ lw $v0, 0x1c0($s2)
/* 01EDA4 800439A4 AE0000DC */ sw $zero, 0xdc($s0)
/* 01EDA8 800439A8 A20000B4 */ sb $zero, 0xb4($s0)
/* 01EDAC 800439AC AE0200B0 */ sw $v0, 0xb0($s0)
/* 01EDB0 800439B0 8EA20024 */ lw $v0, 0x24($s5)
/* 01EDB4 800439B4 AE0000BC */ sw $zero, 0xbc($s0)
/* 01EDB8 800439B8 AE0000C0 */ sw $zero, 0xc0($s0)
/* 01EDBC 800439BC AE0200B8 */ sw $v0, 0xb8($s0)
/* 01EDC0 800439C0 26E201A0 */ addiu $v0, $s7, 0x1a0
/* 01EDC4 800439C4 AE0000C4 */ sw $zero, 0xc4($s0)
/* 01EDC8 800439C8 AE0200CC */ sw $v0, 0xcc($s0)
/* 01EDCC 800439CC 26E200E0 */ addiu $v0, $s7, 0xe0
/* 01EDD0 800439D0 AE0200D0 */ sw $v0, 0xd0($s0)
/* 01EDD4 800439D4 8EA20020 */ lw $v0, 0x20($s5)
/* 01EDD8 800439D8 AE020000 */ sw $v0, ($s0)
/* 01EDDC 800439DC 8E43FFF0 */ lw $v1, -0x10($s2)
/* 01EDE0 800439E0 AE000064 */ sw $zero, 0x64($s0)
/* 01EDE4 800439E4 00431025 */ or $v0, $v0, $v1
/* 01EDE8 800439E8 AE020000 */ sw $v0, ($s0)
/* 01EDEC 800439EC 8E4201C8 */ lw $v0, 0x1c8($s2)
/* 01EDF0 800439F0 AE0200D8 */ sw $v0, 0xd8($s0)
/* 01EDF4 800439F4 8E44FFF8 */ lw $a0, -8($s2)
/* 01EDF8 800439F8 10800012 */ beqz $a0, .L80043A44
/* 01EDFC 800439FC 24020001 */ addiu $v0, $zero, 1
/* 01EE00 80043A00 14820004 */ bne $a0, $v0, .L80043A14
/* 01EE04 80043A04 00000000 */ nop
/* 01EE08 80043A08 8E42FFFC */ lw $v0, -4($s2)
/* 01EE0C 80043A0C 08010E91 */ j .L80043A44
/* 01EE10 80043A10 AE02006C */ sw $v0, 0x6c($s0)
.L80043A14:
/* 01EE14 80043A14 8E45FFFC */ lw $a1, -4($s2)
/* 01EE18 80043A18 1880000A */ blez $a0, .L80043A44
/* 01EE1C 80043A1C 0000182D */ daddu $v1, $zero, $zero
/* 01EE20 80043A20 0200202D */ daddu $a0, $s0, $zero
.L80043A24:
/* 01EE24 80043A24 8CA20000 */ lw $v0, ($a1)
/* 01EE28 80043A28 24A50004 */ addiu $a1, $a1, 4
/* 01EE2C 80043A2C 24630001 */ addiu $v1, $v1, 1
/* 01EE30 80043A30 AC82006C */ sw $v0, 0x6c($a0)
/* 01EE34 80043A34 8E42FFF8 */ lw $v0, -8($s2)
/* 01EE38 80043A38 0062102A */ slt $v0, $v1, $v0
/* 01EE3C 80043A3C 1440FFF9 */ bnez $v0, .L80043A24
/* 01EE40 80043A40 24840004 */ addiu $a0, $a0, 4
.L80043A44:
/* 01EE44 80043A44 AFC00000 */ sw $zero, ($fp)
/* 01EE48 80043A48 8EA20000 */ lw $v0, ($s5)
/* 01EE4C 80043A4C 54400004 */ bnel $v0, $zero, .L80043A60
/* 01EE50 80043A50 AFC20004 */ sw $v0, 4($fp)
/* 01EE54 80043A54 8E0200CC */ lw $v0, 0xcc($s0)
/* 01EE58 80043A58 8C420000 */ lw $v0, ($v0)
/* 01EE5C 80043A5C AFC20004 */ sw $v0, 4($fp)
.L80043A60:
/* 01EE60 80043A60 AFC00008 */ sw $zero, 8($fp)
/* 01EE64 80043A64 AFC0000C */ sw $zero, 0xc($fp)
/* 01EE68 80043A68 8E020000 */ lw $v0, ($s0)
/* 01EE6C 80043A6C 3C030002 */ lui $v1, 2
/* 01EE70 80043A70 00431024 */ and $v0, $v0, $v1
/* 01EE74 80043A74 14400006 */ bnez $v0, .L80043A90
/* 01EE78 80043A78 00000000 */ nop
/* 01EE7C 80043A7C 8E4501C4 */ lw $a1, 0x1c4($s2)
/* 01EE80 80043A80 0C00E219 */ jal func_80038864
/* 01EE84 80043A84 03C0202D */ daddu $a0, $fp, $zero
/* 01EE88 80043A88 08010EA6 */ j .L80043A98
/* 01EE8C 80043A8C 00000000 */ nop
.L80043A90:
/* 01EE90 80043A90 0C00E220 */ jal func_80038880
/* 01EE94 80043A94 03C0202D */ daddu $a0, $fp, $zero
.L80043A98:
/* 01EE98 80043A98 0C00E2B7 */ jal get_npc_by_index
/* 01EE9C 80043A9C 0040202D */ daddu $a0, $v0, $zero
/* 01EEA0 80043AA0 9243FFDF */ lbu $v1, -0x21($s2)
/* 01EEA4 80043AA4 0040882D */ daddu $s1, $v0, $zero
/* 01EEA8 80043AA8 A22300A4 */ sb $v1, 0xa4($s1)
/* 01EEAC 80043AAC 96A20006 */ lhu $v0, 6($s5)
/* 01EEB0 80043AB0 A62200A6 */ sh $v0, 0xa6($s1)
/* 01EEB4 80043AB4 96A20004 */ lhu $v0, 4($s5)
/* 01EEB8 80043AB8 A62200A8 */ sh $v0, 0xa8($s1)
/* 01EEBC 80043ABC C640FFE4 */ lwc1 $f0, -0x1c($s2)
/* 01EEC0 80043AC0 4600010D */ trunc.w.s $f4, $f0
/* 01EEC4 80043AC4 44022000 */ mfc1 $v0, $f4
/* 01EEC8 80043AC8 E6200038 */ swc1 $f0, 0x38($s1)
/* 01EECC 80043ACC A602000A */ sh $v0, 0xa($s0)
/* 01EED0 80043AD0 C640FFE8 */ lwc1 $f0, -0x18($s2)
/* 01EED4 80043AD4 4600010D */ trunc.w.s $f4, $f0
/* 01EED8 80043AD8 44022000 */ mfc1 $v0, $f4
/* 01EEDC 80043ADC E620003C */ swc1 $f0, 0x3c($s1)
/* 01EEE0 80043AE0 A602000C */ sh $v0, 0xc($s0)
/* 01EEE4 80043AE4 C640FFEC */ lwc1 $f0, -0x14($s2)
/* 01EEE8 80043AE8 4600010D */ trunc.w.s $f4, $f0
/* 01EEEC 80043AEC 44022000 */ mfc1 $v0, $f4
/* 01EEF0 80043AF0 E6200040 */ swc1 $f0, 0x40($s1)
/* 01EEF4 80043AF4 A602000E */ sh $v0, 0xe($s0)
/* 01EEF8 80043AF8 C6200038 */ lwc1 $f0, 0x38($s1)
/* 01EEFC 80043AFC C6220040 */ lwc1 $f2, 0x40($s1)
/* 01EF00 80043B00 4600010D */ trunc.w.s $f4, $f0
/* 01EF04 80043B04 44022000 */ mfc1 $v0, $f4
/* 01EF08 80043B08 C620003C */ lwc1 $f0, 0x3c($s1)
/* 01EF0C 80043B0C A6200096 */ sh $zero, 0x96($s1)
/* 01EF10 80043B10 AE200010 */ sw $zero, 0x10($s1)
/* 01EF14 80043B14 A6220090 */ sh $v0, 0x90($s1)
/* 01EF18 80043B18 4600010D */ trunc.w.s $f4, $f0
/* 01EF1C 80043B1C 44022000 */ mfc1 $v0, $f4
/* 01EF20 80043B20 00000000 */ nop
/* 01EF24 80043B24 A6220092 */ sh $v0, 0x92($s1)
/* 01EF28 80043B28 4600110D */ trunc.w.s $f4, $f2
/* 01EF2C 80043B2C 44022000 */ mfc1 $v0, $f4
/* 01EF30 80043B30 00000000 */ nop
/* 01EF34 80043B34 A6220094 */ sh $v0, 0x94($s1)
/* 01EF38 80043B38 C6440000 */ lwc1 $f4, ($s2)
/* 01EF3C 80043B3C 46802120 */ cvt.s.w $f4, $f4
/* 01EF40 80043B40 44052000 */ mfc1 $a1, $f4
/* 01EF44 80043B44 0C00ECD0 */ jal set_npc_yaw
/* 01EF48 80043B48 0220202D */ daddu $a0, $s1, $zero
/* 01EF4C 80043B4C 24023039 */ addiu $v0, $zero, 0x3039
/* 01EF50 80043B50 A60200E0 */ sh $v0, 0xe0($s0)
/* 01EF54 80043B54 862200A6 */ lh $v0, 0xa6($s1)
/* 01EF58 80043B58 3C014038 */ lui $at, 0x4038
/* 01EF5C 80043B5C 44811800 */ mtc1 $at, $f3
/* 01EF60 80043B60 44801000 */ mtc1 $zero, $f2
/* 01EF64 80043B64 44820000 */ mtc1 $v0, $f0
/* 01EF68 80043B68 00000000 */ nop
/* 01EF6C 80043B6C 46800021 */ cvt.d.w $f0, $f0
/* 01EF70 80043B70 4620103E */ c.le.d $f2, $f0
/* 01EF74 80043B74 00000000 */ nop
/* 01EF78 80043B78 45000004 */ bc1f .L80043B8C
/* 01EF7C 80043B7C 00000000 */ nop
/* 01EF80 80043B80 46220003 */ div.d $f0, $f0, $f2
/* 01EF84 80043B84 08010EE6 */ j .L80043B98
/* 01EF88 80043B88 46200020 */ cvt.s.d $f0, $f0
.L80043B8C:
/* 01EF8C 80043B8C 3C013F80 */ lui $at, 0x3f80
/* 01EF90 80043B90 44810000 */ mtc1 $at, $f0
/* 01EF94 80043B94 00000000 */ nop
.L80043B98:
/* 01EF98 80043B98 E620007C */ swc1 $f0, 0x7c($s1)
/* 01EF9C 80043B9C 8E020000 */ lw $v0, ($s0)
/* 01EFA0 80043BA0 30420100 */ andi $v0, $v0, 0x100
/* 01EFA4 80043BA4 10400004 */ beqz $v0, .L80043BB8
/* 01EFA8 80043BA8 00000000 */ nop
/* 01EFAC 80043BAC 8E220000 */ lw $v0, ($s1)
/* 01EFB0 80043BB0 34420040 */ ori $v0, $v0, 0x40
/* 01EFB4 80043BB4 AE220000 */ sw $v0, ($s1)
.L80043BB8:
/* 01EFB8 80043BB8 8E020000 */ lw $v0, ($s0)
/* 01EFBC 80043BBC 30420200 */ andi $v0, $v0, 0x200
/* 01EFC0 80043BC0 10400004 */ beqz $v0, .L80043BD4
/* 01EFC4 80043BC4 00000000 */ nop
/* 01EFC8 80043BC8 8E220000 */ lw $v0, ($s1)
/* 01EFCC 80043BCC 34420100 */ ori $v0, $v0, 0x100
/* 01EFD0 80043BD0 AE220000 */ sw $v0, ($s1)
.L80043BD4:
/* 01EFD4 80043BD4 8E020000 */ lw $v0, ($s0)
/* 01EFD8 80043BD8 30420400 */ andi $v0, $v0, 0x400
/* 01EFDC 80043BDC 10400004 */ beqz $v0, .L80043BF0
/* 01EFE0 80043BE0 00000000 */ nop
/* 01EFE4 80043BE4 8E220000 */ lw $v0, ($s1)
/* 01EFE8 80043BE8 34428000 */ ori $v0, $v0, 0x8000
/* 01EFEC 80043BEC AE220000 */ sw $v0, ($s1)
.L80043BF0:
/* 01EFF0 80043BF0 8E020000 */ lw $v0, ($s0)
/* 01EFF4 80043BF4 30420800 */ andi $v0, $v0, 0x800
/* 01EFF8 80043BF8 10400004 */ beqz $v0, .L80043C0C
/* 01EFFC 80043BFC 00000000 */ nop
/* 01F000 80043C00 8E220000 */ lw $v0, ($s1)
/* 01F004 80043C04 34420008 */ ori $v0, $v0, 8
/* 01F008 80043C08 AE220000 */ sw $v0, ($s1)
.L80043C0C:
/* 01F00C 80043C0C 8E020000 */ lw $v0, ($s0)
/* 01F010 80043C10 30421000 */ andi $v0, $v0, 0x1000
/* 01F014 80043C14 10400004 */ beqz $v0, .L80043C28
/* 01F018 80043C18 00000000 */ nop
/* 01F01C 80043C1C 8E220000 */ lw $v0, ($s1)
/* 01F020 80043C20 34420200 */ ori $v0, $v0, 0x200
/* 01F024 80043C24 AE220000 */ sw $v0, ($s1)
.L80043C28:
/* 01F028 80043C28 8E020000 */ lw $v0, ($s0)
/* 01F02C 80043C2C 30420001 */ andi $v0, $v0, 1
/* 01F030 80043C30 14400004 */ bnez $v0, .L80043C44
/* 01F034 80043C34 00000000 */ nop
/* 01F038 80043C38 8E220000 */ lw $v0, ($s1)
/* 01F03C 80043C3C 34420100 */ ori $v0, $v0, 0x100
/* 01F040 80043C40 AE220000 */ sw $v0, ($s1)
.L80043C44:
/* 01F044 80043C44 8E020000 */ lw $v0, ($s0)
/* 01F048 80043C48 30424000 */ andi $v0, $v0, 0x4000
/* 01F04C 80043C4C 10400004 */ beqz $v0, .L80043C60
/* 01F050 80043C50 3C030100 */ lui $v1, 0x100
/* 01F054 80043C54 8E220000 */ lw $v0, ($s1)
/* 01F058 80043C58 00431025 */ or $v0, $v0, $v1
/* 01F05C 80043C5C AE220000 */ sw $v0, ($s1)
.L80043C60:
/* 01F060 80043C60 8E020000 */ lw $v0, ($s0)
/* 01F064 80043C64 30422000 */ andi $v0, $v0, 0x2000
/* 01F068 80043C68 10400004 */ beqz $v0, .L80043C7C
/* 01F06C 80043C6C 00000000 */ nop
/* 01F070 80043C70 8E220000 */ lw $v0, ($s1)
/* 01F074 80043C74 34420020 */ ori $v0, $v0, 0x20
/* 01F078 80043C78 AE220000 */ sw $v0, ($s1)
.L80043C7C:
/* 01F07C 80043C7C 8E020000 */ lw $v0, ($s0)
/* 01F080 80043C80 30428000 */ andi $v0, $v0, 0x8000
/* 01F084 80043C84 10400004 */ beqz $v0, .L80043C98
/* 01F088 80043C88 3C031000 */ lui $v1, 0x1000
/* 01F08C 80043C8C 8E220000 */ lw $v0, ($s1)
/* 01F090 80043C90 00431025 */ or $v0, $v0, $v1
/* 01F094 80043C94 AE220000 */ sw $v0, ($s1)
.L80043C98:
/* 01F098 80043C98 8E020000 */ lw $v0, ($s0)
/* 01F09C 80043C9C 3C030001 */ lui $v1, 1
/* 01F0A0 80043CA0 00431024 */ and $v0, $v0, $v1
/* 01F0A4 80043CA4 10400004 */ beqz $v0, .L80043CB8
/* 01F0A8 80043CA8 3C032000 */ lui $v1, 0x2000
/* 01F0AC 80043CAC 8E220000 */ lw $v0, ($s1)
/* 01F0B0 80043CB0 00431025 */ or $v0, $v0, $v1
/* 01F0B4 80043CB4 AE220000 */ sw $v0, ($s1)
.L80043CB8:
/* 01F0B8 80043CB8 8E020000 */ lw $v0, ($s0)
/* 01F0BC 80043CBC 30420080 */ andi $v0, $v0, 0x80
/* 01F0C0 80043CC0 10400004 */ beqz $v0, .L80043CD4
/* 01F0C4 80043CC4 00000000 */ nop
/* 01F0C8 80043CC8 8E220000 */ lw $v0, ($s1)
/* 01F0CC 80043CCC 34420400 */ ori $v0, $v0, 0x400
/* 01F0D0 80043CD0 AE220000 */ sw $v0, ($s1)
.L80043CD4:
/* 01F0D4 80043CD4 8E030000 */ lw $v1, ($s0)
/* 01F0D8 80043CD8 2402000B */ addiu $v0, $zero, 0xb
/* 01F0DC 80043CDC 30630001 */ andi $v1, $v1, 1
/* 01F0E0 80043CE0 10600003 */ beqz $v1, .L80043CF0
/* 01F0E4 80043CE4 A2020006 */ sb $v0, 6($s0)
/* 01F0E8 80043CE8 2402000A */ addiu $v0, $zero, 0xa
/* 01F0EC 80043CEC A2020006 */ sb $v0, 6($s0)
.L80043CF0:
/* 01F0F0 80043CF0 8EA40008 */ lw $a0, 8($s5)
/* 01F0F4 80043CF4 1080000C */ beqz $a0, .L80043D28
/* 01F0F8 80043CF8 2405000A */ addiu $a1, $zero, 0xa
/* 01F0FC 80043CFC 0C0B0CF8 */ jal start_script
/* 01F100 80043D00 0000302D */ daddu $a2, $zero, $zero
/* 01F104 80043D04 0040182D */ daddu $v1, $v0, $zero
/* 01F108 80043D08 AE03003C */ sw $v1, 0x3c($s0)
/* 01F10C 80043D0C 8C620144 */ lw $v0, 0x144($v1)
/* 01F110 80043D10 AE020054 */ sw $v0, 0x54($s0)
/* 01F114 80043D14 AC700148 */ sw $s0, 0x148($v1)
/* 01F118 80043D18 86020008 */ lh $v0, 8($s0)
/* 01F11C 80043D1C AC62014C */ sw $v0, 0x14c($v1)
/* 01F120 80043D20 92020006 */ lbu $v0, 6($s0)
/* 01F124 80043D24 A0620004 */ sb $v0, 4($v1)
.L80043D28:
/* 01F128 80043D28 265201F0 */ addiu $s2, $s2, 0x1f0
/* 01F12C 80043D2C 26F701F0 */ addiu $s7, $s7, 0x1f0
.L80043D30:
/* 01F130 80043D30 26730001 */ addiu $s3, $s3, 1
/* 01F134 80043D34 8FA70030 */ lw $a3, 0x30($sp)
/* 01F138 80043D38 8FA80024 */ lw $t0, 0x24($sp)
/* 01F13C 80043D3C 24E70004 */ addiu $a3, $a3, 4
/* 01F140 80043D40 0268102A */ slt $v0, $s3, $t0
/* 01F144 80043D44 1440FECD */ bnez $v0, .L8004387C
/* 01F148 80043D48 AFA70030 */ sw $a3, 0x30($sp)
.L80043D4C:
/* 01F14C 80043D4C 8FA70034 */ lw $a3, 0x34($sp)
/* 01F150 80043D50 8FA80020 */ lw $t0, 0x20($sp)
/* 01F154 80043D54 24E7000C */ addiu $a3, $a3, 0xc
/* 01F158 80043D58 AFA70034 */ sw $a3, 0x34($sp)
/* 01F15C 80043D5C 8FA7002C */ lw $a3, 0x2c($sp)
/* 01F160 80043D60 2508000C */ addiu $t0, $t0, 0xc
/* 01F164 80043D64 AFA80020 */ sw $t0, 0x20($sp)
/* 01F168 80043D68 8FA80024 */ lw $t0, 0x24($sp)
/* 01F16C 80043D6C 26D60001 */ addiu $s6, $s6, 1
/* 01F170 80043D70 00E83821 */ addu $a3, $a3, $t0
/* 01F174 80043D74 08010DFF */ j .L800437FC
/* 01F178 80043D78 AFA7002C */ sw $a3, 0x2c($sp)
.L80043D7C:
/* 01F17C 80043D7C 24020001 */ addiu $v0, $zero, 1
/* 01F180 80043D80 3C01800B */ lui $at, 0x800b
/* 01F184 80043D84 A0360F2C */ sb $s6, 0xf2c($at)
/* 01F188 80043D88 3C01800A */ lui $at, 0x800a
/* 01F18C 80043D8C AC22A5D0 */ sw $v0, -0x5a30($at)
/* 01F190 80043D90 08011044 */ j .L80044110
/* 01F194 80043D94 00000000 */ nop
.L80043D98:
/* 01F198 80043D98 0000A82D */ daddu $s5, $zero, $zero
/* 01F19C 80043D9C 3C02800B */ lui $v0, 0x800b
/* 01F1A0 80043DA0 80420F2C */ lb $v0, 0xf2c($v0)
/* 01F1A4 80043DA4 1840001F */ blez $v0, .L80043E24
/* 01F1A8 80043DA8 02A0B02D */ daddu $s6, $s5, $zero
/* 01F1AC 80043DAC 3C12800B */ lui $s2, 0x800b
/* 01F1B0 80043DB0 26520F10 */ addiu $s2, $s2, 0xf10
.L80043DB4:
/* 01F1B4 80043DB4 8E540028 */ lw $s4, 0x28($s2)
/* 01F1B8 80043DB8 12800014 */ beqz $s4, .L80043E0C
/* 01F1BC 80043DBC 00000000 */ nop
/* 01F1C0 80043DC0 8E820000 */ lw $v0, ($s4)
/* 01F1C4 80043DC4 18400011 */ blez $v0, .L80043E0C
/* 01F1C8 80043DC8 0000982D */ daddu $s3, $zero, $zero
/* 01F1CC 80043DCC 0280882D */ daddu $s1, $s4, $zero
.L80043DD0:
/* 01F1D0 80043DD0 8E300004 */ lw $s0, 4($s1)
/* 01F1D4 80043DD4 12000008 */ beqz $s0, .L80043DF8
/* 01F1D8 80043DD8 00000000 */ nop
/* 01F1DC 80043DDC 8E02003C */ lw $v0, 0x3c($s0)
/* 01F1E0 80043DE0 10400005 */ beqz $v0, .L80043DF8
/* 01F1E4 80043DE4 00000000 */ nop
/* 01F1E8 80043DE8 0C0B1059 */ jal does_script_exist
/* 01F1EC 80043DEC 8E040054 */ lw $a0, 0x54($s0)
/* 01F1F0 80043DF0 54400001 */ bnel $v0, $zero, .L80043DF8
/* 01F1F4 80043DF4 24150001 */ addiu $s5, $zero, 1
.L80043DF8:
/* 01F1F8 80043DF8 8E820000 */ lw $v0, ($s4)
/* 01F1FC 80043DFC 26730001 */ addiu $s3, $s3, 1
/* 01F200 80043E00 0262102A */ slt $v0, $s3, $v0
/* 01F204 80043E04 1440FFF2 */ bnez $v0, .L80043DD0
/* 01F208 80043E08 26310004 */ addiu $s1, $s1, 4
.L80043E0C:
/* 01F20C 80043E0C 3C02800B */ lui $v0, 0x800b
/* 01F210 80043E10 80420F2C */ lb $v0, 0xf2c($v0)
/* 01F214 80043E14 26D60001 */ addiu $s6, $s6, 1
/* 01F218 80043E18 02C2102A */ slt $v0, $s6, $v0
/* 01F21C 80043E1C 1440FFE5 */ bnez $v0, .L80043DB4
/* 01F220 80043E20 26520004 */ addiu $s2, $s2, 4
.L80043E24:
/* 01F224 80043E24 16A000BA */ bnez $s5, .L80044110
/* 01F228 80043E28 00000000 */ nop
/* 01F22C 80043E2C 3C02800B */ lui $v0, 0x800b
/* 01F230 80043E30 80420F2C */ lb $v0, 0xf2c($v0)
/* 01F234 80043E34 18400026 */ blez $v0, .L80043ED0
/* 01F238 80043E38 0000B02D */ daddu $s6, $zero, $zero
/* 01F23C 80043E3C 3C12800B */ lui $s2, 0x800b
/* 01F240 80043E40 26520F10 */ addiu $s2, $s2, 0xf10
.L80043E44:
/* 01F244 80043E44 8E540028 */ lw $s4, 0x28($s2)
/* 01F248 80043E48 1280001B */ beqz $s4, .L80043EB8
/* 01F24C 80043E4C 00000000 */ nop
/* 01F250 80043E50 8E820000 */ lw $v0, ($s4)
/* 01F254 80043E54 18400018 */ blez $v0, .L80043EB8
/* 01F258 80043E58 0000982D */ daddu $s3, $zero, $zero
/* 01F25C 80043E5C 0280882D */ daddu $s1, $s4, $zero
.L80043E60:
/* 01F260 80043E60 8E300004 */ lw $s0, 4($s1)
/* 01F264 80043E64 1200000F */ beqz $s0, .L80043EA4
/* 01F268 80043E68 00000000 */ nop
/* 01F26C 80043E6C 8E04001C */ lw $a0, 0x1c($s0)
/* 01F270 80043E70 1080000C */ beqz $a0, .L80043EA4
/* 01F274 80043E74 2405000A */ addiu $a1, $zero, 0xa
/* 01F278 80043E78 0C0B0CF8 */ jal start_script
/* 01F27C 80043E7C 0000302D */ daddu $a2, $zero, $zero
/* 01F280 80043E80 0040182D */ daddu $v1, $v0, $zero
/* 01F284 80043E84 AE030034 */ sw $v1, 0x34($s0)
/* 01F288 80043E88 8C620144 */ lw $v0, 0x144($v1)
/* 01F28C 80043E8C AE02004C */ sw $v0, 0x4c($s0)
/* 01F290 80043E90 AC700148 */ sw $s0, 0x148($v1)
/* 01F294 80043E94 86020008 */ lh $v0, 8($s0)
/* 01F298 80043E98 AC62014C */ sw $v0, 0x14c($v1)
/* 01F29C 80043E9C 92020006 */ lbu $v0, 6($s0)
/* 01F2A0 80043EA0 A0620004 */ sb $v0, 4($v1)
.L80043EA4:
/* 01F2A4 80043EA4 8E820000 */ lw $v0, ($s4)
/* 01F2A8 80043EA8 26730001 */ addiu $s3, $s3, 1
/* 01F2AC 80043EAC 0262102A */ slt $v0, $s3, $v0
/* 01F2B0 80043EB0 1440FFEB */ bnez $v0, .L80043E60
/* 01F2B4 80043EB4 26310004 */ addiu $s1, $s1, 4
.L80043EB8:
/* 01F2B8 80043EB8 3C02800B */ lui $v0, 0x800b
/* 01F2BC 80043EBC 80420F2C */ lb $v0, 0xf2c($v0)
/* 01F2C0 80043EC0 26D60001 */ addiu $s6, $s6, 1
/* 01F2C4 80043EC4 02C2102A */ slt $v0, $s6, $v0
/* 01F2C8 80043EC8 1440FFDE */ bnez $v0, .L80043E44
/* 01F2CC 80043ECC 26520004 */ addiu $s2, $s2, 4
.L80043ED0:
/* 01F2D0 80043ED0 24020002 */ addiu $v0, $zero, 2
/* 01F2D4 80043ED4 3C01800A */ lui $at, 0x800a
/* 01F2D8 80043ED8 AC22A5D0 */ sw $v0, -0x5a30($at)
/* 01F2DC 80043EDC 08011044 */ j .L80044110
/* 01F2E0 80043EE0 00000000 */ nop
.L80043EE4:
/* 01F2E4 80043EE4 3C02800B */ lui $v0, 0x800b
/* 01F2E8 80043EE8 80420F2C */ lb $v0, 0xf2c($v0)
/* 01F2EC 80043EEC 18400020 */ blez $v0, .L80043F70
/* 01F2F0 80043EF0 02A0B02D */ daddu $s6, $s5, $zero
/* 01F2F4 80043EF4 3C12800B */ lui $s2, 0x800b
/* 01F2F8 80043EF8 26520F10 */ addiu $s2, $s2, 0xf10
.L80043EFC:
/* 01F2FC 80043EFC 8E540028 */ lw $s4, 0x28($s2)
/* 01F300 80043F00 12800015 */ beqz $s4, .L80043F58
/* 01F304 80043F04 00000000 */ nop
/* 01F308 80043F08 8E820000 */ lw $v0, ($s4)
/* 01F30C 80043F0C 18400012 */ blez $v0, .L80043F58
/* 01F310 80043F10 0000982D */ daddu $s3, $zero, $zero
/* 01F314 80043F14 0280882D */ daddu $s1, $s4, $zero
.L80043F18:
/* 01F318 80043F18 8E300004 */ lw $s0, 4($s1)
/* 01F31C 80043F1C 12000009 */ beqz $s0, .L80043F44
/* 01F320 80043F20 00000000 */ nop
/* 01F324 80043F24 8E020034 */ lw $v0, 0x34($s0)
/* 01F328 80043F28 10400006 */ beqz $v0, .L80043F44
/* 01F32C 80043F2C 00000000 */ nop
/* 01F330 80043F30 0C0B1059 */ jal does_script_exist
/* 01F334 80043F34 8E04004C */ lw $a0, 0x4c($s0)
/* 01F338 80043F38 50400002 */ beql $v0, $zero, .L80043F44
/* 01F33C 80043F3C AE000034 */ sw $zero, 0x34($s0)
/* 01F340 80043F40 24150001 */ addiu $s5, $zero, 1
.L80043F44:
/* 01F344 80043F44 8E820000 */ lw $v0, ($s4)
/* 01F348 80043F48 26730001 */ addiu $s3, $s3, 1
/* 01F34C 80043F4C 0262102A */ slt $v0, $s3, $v0
/* 01F350 80043F50 1440FFF1 */ bnez $v0, .L80043F18
/* 01F354 80043F54 26310004 */ addiu $s1, $s1, 4
.L80043F58:
/* 01F358 80043F58 3C02800B */ lui $v0, 0x800b
/* 01F35C 80043F5C 80420F2C */ lb $v0, 0xf2c($v0)
/* 01F360 80043F60 26D60001 */ addiu $s6, $s6, 1
/* 01F364 80043F64 02C2102A */ slt $v0, $s6, $v0
/* 01F368 80043F68 1440FFE4 */ bnez $v0, .L80043EFC
/* 01F36C 80043F6C 26520004 */ addiu $s2, $s2, 4
.L80043F70:
/* 01F370 80043F70 16A00067 */ bnez $s5, .L80044110
/* 01F374 80043F74 00000000 */ nop
/* 01F378 80043F78 3C02800B */ lui $v0, 0x800b
/* 01F37C 80043F7C 80420F2C */ lb $v0, 0xf2c($v0)
/* 01F380 80043F80 1840002E */ blez $v0, .L8004403C
/* 01F384 80043F84 0000B02D */ daddu $s6, $zero, $zero
/* 01F388 80043F88 24150064 */ addiu $s5, $zero, 0x64
/* 01F38C 80043F8C 3C12800B */ lui $s2, 0x800b
/* 01F390 80043F90 26520F10 */ addiu $s2, $s2, 0xf10
.L80043F94:
/* 01F394 80043F94 8E540028 */ lw $s4, 0x28($s2)
/* 01F398 80043F98 12800020 */ beqz $s4, .L8004401C
/* 01F39C 80043F9C 00000000 */ nop
/* 01F3A0 80043FA0 8E820000 */ lw $v0, ($s4)
/* 01F3A4 80043FA4 1840001D */ blez $v0, .L8004401C
/* 01F3A8 80043FA8 0000982D */ daddu $s3, $zero, $zero
/* 01F3AC 80043FAC 0280882D */ daddu $s1, $s4, $zero
.L80043FB0:
/* 01F3B0 80043FB0 8E300004 */ lw $s0, 4($s1)
/* 01F3B4 80043FB4 12000014 */ beqz $s0, .L80044008
/* 01F3B8 80043FB8 00000000 */ nop
/* 01F3BC 80043FBC 8E020000 */ lw $v0, ($s0)
/* 01F3C0 80043FC0 30420020 */ andi $v0, $v0, 0x20
/* 01F3C4 80043FC4 14400010 */ bnez $v0, .L80044008
/* 01F3C8 80043FC8 00000000 */ nop
/* 01F3CC 80043FCC 8E040024 */ lw $a0, 0x24($s0)
/* 01F3D0 80043FD0 1080000D */ beqz $a0, .L80044008
/* 01F3D4 80043FD4 2405000A */ addiu $a1, $zero, 0xa
/* 01F3D8 80043FD8 0C0B0CF8 */ jal start_script
/* 01F3DC 80043FDC 0000302D */ daddu $a2, $zero, $zero
/* 01F3E0 80043FE0 0040182D */ daddu $v1, $v0, $zero
/* 01F3E4 80043FE4 AE03003C */ sw $v1, 0x3c($s0)
/* 01F3E8 80043FE8 8C620144 */ lw $v0, 0x144($v1)
/* 01F3EC 80043FEC AE1500C8 */ sw $s5, 0xc8($s0)
/* 01F3F0 80043FF0 AE020054 */ sw $v0, 0x54($s0)
/* 01F3F4 80043FF4 AC700148 */ sw $s0, 0x148($v1)
/* 01F3F8 80043FF8 86020008 */ lh $v0, 8($s0)
/* 01F3FC 80043FFC AC62014C */ sw $v0, 0x14c($v1)
/* 01F400 80044000 92020006 */ lbu $v0, 6($s0)
/* 01F404 80044004 A0620004 */ sb $v0, 4($v1)
.L80044008:
/* 01F408 80044008 8E820000 */ lw $v0, ($s4)
/* 01F40C 8004400C 26730001 */ addiu $s3, $s3, 1
/* 01F410 80044010 0262102A */ slt $v0, $s3, $v0
/* 01F414 80044014 1440FFE6 */ bnez $v0, .L80043FB0
/* 01F418 80044018 26310004 */ addiu $s1, $s1, 4
.L8004401C:
/* 01F41C 8004401C 3C02800B */ lui $v0, 0x800b
/* 01F420 80044020 80420F2C */ lb $v0, 0xf2c($v0)
/* 01F424 80044024 26D60001 */ addiu $s6, $s6, 1
/* 01F428 80044028 02C2102A */ slt $v0, $s6, $v0
/* 01F42C 8004402C 1440FFD9 */ bnez $v0, .L80043F94
/* 01F430 80044030 26520004 */ addiu $s2, $s2, 4
/* 01F434 80044034 3C02800B */ lui $v0, 0x800b
/* 01F438 80044038 80420F2C */ lb $v0, 0xf2c($v0)
.L8004403C:
/* 01F43C 8004403C 1840002A */ blez $v0, .L800440E8
/* 01F440 80044040 0000B02D */ daddu $s6, $zero, $zero
/* 01F444 80044044 3C12800B */ lui $s2, 0x800b
/* 01F448 80044048 26520F10 */ addiu $s2, $s2, 0xf10
.L8004404C:
/* 01F44C 8004404C 8E540028 */ lw $s4, 0x28($s2)
/* 01F450 80044050 1280001F */ beqz $s4, .L800440D0
/* 01F454 80044054 00000000 */ nop
/* 01F458 80044058 8E820000 */ lw $v0, ($s4)
/* 01F45C 8004405C 1840001C */ blez $v0, .L800440D0
/* 01F460 80044060 0000982D */ daddu $s3, $zero, $zero
/* 01F464 80044064 0280882D */ daddu $s1, $s4, $zero
.L80044068:
/* 01F468 80044068 8E300004 */ lw $s0, 4($s1)
/* 01F46C 8004406C 12000013 */ beqz $s0, .L800440BC
/* 01F470 80044070 00000000 */ nop
/* 01F474 80044074 8E020000 */ lw $v0, ($s0)
/* 01F478 80044078 30420020 */ andi $v0, $v0, 0x20
/* 01F47C 8004407C 1440000F */ bnez $v0, .L800440BC
/* 01F480 80044080 00000000 */ nop
/* 01F484 80044084 8E04002C */ lw $a0, 0x2c($s0)
/* 01F488 80044088 1080000C */ beqz $a0, .L800440BC
/* 01F48C 8004408C 2405000A */ addiu $a1, $zero, 0xa
/* 01F490 80044090 0C0B0CF8 */ jal start_script
/* 01F494 80044094 0000302D */ daddu $a2, $zero, $zero
/* 01F498 80044098 0040182D */ daddu $v1, $v0, $zero
/* 01F49C 8004409C AE030044 */ sw $v1, 0x44($s0)
/* 01F4A0 800440A0 8C620144 */ lw $v0, 0x144($v1)
/* 01F4A4 800440A4 AE02005C */ sw $v0, 0x5c($s0)
/* 01F4A8 800440A8 AC700148 */ sw $s0, 0x148($v1)
/* 01F4AC 800440AC 86020008 */ lh $v0, 8($s0)
/* 01F4B0 800440B0 AC62014C */ sw $v0, 0x14c($v1)
/* 01F4B4 800440B4 92020006 */ lbu $v0, 6($s0)
/* 01F4B8 800440B8 A0620004 */ sb $v0, 4($v1)
.L800440BC:
/* 01F4BC 800440BC 8E820000 */ lw $v0, ($s4)
/* 01F4C0 800440C0 26730001 */ addiu $s3, $s3, 1
/* 01F4C4 800440C4 0262102A */ slt $v0, $s3, $v0
/* 01F4C8 800440C8 1440FFE7 */ bnez $v0, .L80044068
/* 01F4CC 800440CC 26310004 */ addiu $s1, $s1, 4
.L800440D0:
/* 01F4D0 800440D0 3C02800B */ lui $v0, 0x800b
/* 01F4D4 800440D4 80420F2C */ lb $v0, 0xf2c($v0)
/* 01F4D8 800440D8 26D60001 */ addiu $s6, $s6, 1
/* 01F4DC 800440DC 02C2102A */ slt $v0, $s6, $v0
/* 01F4E0 800440E0 1440FFDA */ bnez $v0, .L8004404C
/* 01F4E4 800440E4 26520004 */ addiu $s2, $s2, 4
.L800440E8:
/* 01F4E8 800440E8 0C0B1192 */ jal resume_all_group
/* 01F4EC 800440EC 24040010 */ addiu $a0, $zero, 0x10
/* 01F4F0 800440F0 24020002 */ addiu $v0, $zero, 2
/* 01F4F4 800440F4 3C01800A */ lui $at, 0x800a
/* 01F4F8 800440F8 AC22A600 */ sw $v0, -0x5a00($at)
/* 01F4FC 800440FC 24020001 */ addiu $v0, $zero, 1
/* 01F500 80044100 3C01800A */ lui $at, 0x800a
/* 01F504 80044104 AC22A678 */ sw $v0, -0x5988($at)
/* 01F508 80044108 3C01800A */ lui $at, 0x800a
/* 01F50C 8004410C AC20A5D0 */ sw $zero, -0x5a30($at)
.L80044110:
/* 01F510 80044110 8FBF005C */ lw $ra, 0x5c($sp)
/* 01F514 80044114 8FBE0058 */ lw $fp, 0x58($sp)
/* 01F518 80044118 8FB70054 */ lw $s7, 0x54($sp)
/* 01F51C 8004411C 8FB60050 */ lw $s6, 0x50($sp)
/* 01F520 80044120 8FB5004C */ lw $s5, 0x4c($sp)
/* 01F524 80044124 8FB40048 */ lw $s4, 0x48($sp)
/* 01F528 80044128 8FB30044 */ lw $s3, 0x44($sp)
/* 01F52C 8004412C 8FB20040 */ lw $s2, 0x40($sp)
/* 01F530 80044130 8FB1003C */ lw $s1, 0x3c($sp)
/* 01F534 80044134 8FB00038 */ lw $s0, 0x38($sp)
/* 01F538 80044138 03E00008 */ jr $ra
/* 01F53C 8004413C 27BD0060 */ addiu $sp, $sp, 0x60