.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel func_80041364 /* 01C764 80041364 27BDFFC8 */ addiu $sp, $sp, -0x38 /* 01C768 80041368 AFB50024 */ sw $s5, 0x24($sp) /* 01C76C 8004136C 3C15800B */ lui $s5, 0x800b /* 01C770 80041370 26B50F10 */ addiu $s5, $s5, 0xf10 /* 01C774 80041374 AFB7002C */ sw $s7, 0x2c($sp) /* 01C778 80041378 3C178011 */ lui $s7, 0x8011 /* 01C77C 8004137C 26F7F290 */ addiu $s7, $s7, -0xd70 /* 01C780 80041380 3C04800A */ lui $a0, 0x800a /* 01C784 80041384 2484A5D0 */ addiu $a0, $a0, -0x5a30 /* 01C788 80041388 AFBF0030 */ sw $ra, 0x30($sp) /* 01C78C 8004138C AFB60028 */ sw $s6, 0x28($sp) /* 01C790 80041390 AFB40020 */ sw $s4, 0x20($sp) /* 01C794 80041394 AFB3001C */ sw $s3, 0x1c($sp) /* 01C798 80041398 AFB20018 */ sw $s2, 0x18($sp) /* 01C79C 8004139C AFB10014 */ sw $s1, 0x14($sp) /* 01C7A0 800413A0 AFB00010 */ sw $s0, 0x10($sp) /* 01C7A4 800413A4 8C830000 */ lw $v1, ($a0) /* 01C7A8 800413A8 24050001 */ addiu $a1, $zero, 1 /* 01C7AC 800413AC 106500CF */ beq $v1, $a1, .L800416EC /* 01C7B0 800413B0 28620002 */ slti $v0, $v1, 2 /* 01C7B4 800413B4 50400005 */ beql $v0, $zero, .L800413CC /* 01C7B8 800413B8 24020002 */ addiu $v0, $zero, 2 /* 01C7BC 800413BC 10600009 */ beqz $v1, .L800413E4 /* 01C7C0 800413C0 2402FFFF */ addiu $v0, $zero, -1 /* 01C7C4 800413C4 0801064E */ j .L80041938 /* 01C7C8 800413C8 00000000 */ nop .L800413CC: /* 01C7CC 800413CC 1062011C */ beq $v1, $v0, .L80041840 /* 01C7D0 800413D0 24020003 */ addiu $v0, $zero, 3 /* 01C7D4 800413D4 1062014E */ beq $v1, $v0, .L80041910 /* 01C7D8 800413D8 24020004 */ addiu $v0, $zero, 4 /* 01C7DC 800413DC 0801064E */ j .L80041938 /* 01C7E0 800413E0 00000000 */ nop .L800413E4: /* 01C7E4 800413E4 AEA00090 */ sw $zero, 0x90($s5) /* 01C7E8 800413E8 AEA50094 */ sw $a1, 0x94($s5) /* 01C7EC 800413EC AEA50098 */ sw $a1, 0x98($s5) /* 01C7F0 800413F0 A2A20008 */ sb $v0, 8($s5) /* 01C7F4 800413F4 3C01800A */ lui $at, 0x800a /* 01C7F8 800413F8 A020A654 */ sb $zero, -0x59ac($at) /* 01C7FC 800413FC 3C018007 */ lui $at, 0x8007 /* 01C800 80041400 AC207C40 */ sw $zero, 0x7c40($at) /* 01C804 80041404 0C0B117A */ jal suspend_all_group /* 01C808 80041408 24040010 */ addiu $a0, $zero, 0x10 /* 01C80C 8004140C 82A2001C */ lb $v0, 0x1c($s5) /* 01C810 80041410 18400024 */ blez $v0, .L800414A4 /* 01C814 80041414 0000982D */ daddu $s3, $zero, $zero /* 01C818 80041418 02A0B02D */ daddu $s6, $s5, $zero .L8004141C: /* 01C81C 8004141C 8ED40028 */ lw $s4, 0x28($s6) /* 01C820 80041420 1280001B */ beqz $s4, .L80041490 /* 01C824 80041424 00000000 */ nop /* 01C828 80041428 8E820000 */ lw $v0, ($s4) /* 01C82C 8004142C 18400018 */ blez $v0, .L80041490 /* 01C830 80041430 0000882D */ daddu $s1, $zero, $zero /* 01C834 80041434 0280902D */ daddu $s2, $s4, $zero .L80041438: /* 01C838 80041438 8E500004 */ lw $s0, 4($s2) /* 01C83C 8004143C 1200000F */ beqz $s0, .L8004147C /* 01C840 80041440 00000000 */ nop /* 01C844 80041444 8E020000 */ lw $v0, ($s0) /* 01C848 80041448 30420020 */ andi $v0, $v0, 0x20 /* 01C84C 8004144C 1440000B */ bnez $v0, .L8004147C /* 01C850 80041450 00000000 */ nop /* 01C854 80041454 8E02003C */ lw $v0, 0x3c($s0) /* 01C858 80041458 10400003 */ beqz $v0, .L80041468 /* 01C85C 8004145C 00000000 */ nop /* 01C860 80041460 0C0B1108 */ jal suspend_all_script /* 01C864 80041464 8E040054 */ lw $a0, 0x54($s0) .L80041468: /* 01C868 80041468 8E020044 */ lw $v0, 0x44($s0) /* 01C86C 8004146C 10400003 */ beqz $v0, .L8004147C /* 01C870 80041470 00000000 */ nop /* 01C874 80041474 0C0B1108 */ jal suspend_all_script /* 01C878 80041478 8E04005C */ lw $a0, 0x5c($s0) .L8004147C: /* 01C87C 8004147C 8E820000 */ lw $v0, ($s4) /* 01C880 80041480 26310001 */ addiu $s1, $s1, 1 /* 01C884 80041484 0222102A */ slt $v0, $s1, $v0 /* 01C888 80041488 1440FFEB */ bnez $v0, .L80041438 /* 01C88C 8004148C 26520004 */ addiu $s2, $s2, 4 .L80041490: /* 01C890 80041490 82A2001C */ lb $v0, 0x1c($s5) /* 01C894 80041494 26730001 */ addiu $s3, $s3, 1 /* 01C898 80041498 0262102A */ slt $v0, $s3, $v0 /* 01C89C 8004149C 1440FFDF */ bnez $v0, .L8004141C /* 01C8A0 800414A0 26D60004 */ addiu $s6, $s6, 4 .L800414A4: /* 01C8A4 800414A4 8EB0008C */ lw $s0, 0x8c($s5) /* 01C8A8 800414A8 8E020000 */ lw $v0, ($s0) /* 01C8AC 800414AC 3C030010 */ lui $v1, 0x10 /* 01C8B0 800414B0 00431024 */ and $v0, $v0, $v1 /* 01C8B4 800414B4 1040000C */ beqz $v0, .L800414E8 /* 01C8B8 800414B8 00000000 */ nop /* 01C8BC 800414BC 82A20012 */ lb $v0, 0x12($s5) /* 01C8C0 800414C0 14400009 */ bnez $v0, .L800414E8 /* 01C8C4 800414C4 00000000 */ nop /* 01C8C8 800414C8 AEA00094 */ sw $zero, 0x94($s5) /* 01C8CC 800414CC 0C03AD96 */ jal func_800EB658 /* 01C8D0 800414D0 AEA0009C */ sw $zero, 0x9c($s5) /* 01C8D4 800414D4 24020003 */ addiu $v0, $zero, 3 /* 01C8D8 800414D8 3C01800A */ lui $at, 0x800a /* 01C8DC 800414DC AC22A5D0 */ sw $v0, -0x5a30($at) /* 01C8E0 800414E0 0801064E */ j .L80041938 /* 01C8E4 800414E4 00000000 */ nop .L800414E8: /* 01C8E8 800414E8 3C028007 */ lui $v0, 0x8007 /* 01C8EC 800414EC 8C42419C */ lw $v0, 0x419c($v0) /* 01C8F0 800414F0 80420074 */ lb $v0, 0x74($v0) /* 01C8F4 800414F4 24110002 */ addiu $s1, $zero, 2 /* 01C8F8 800414F8 14510009 */ bne $v0, $s1, .L80041520 /* 01C8FC 800414FC 24120001 */ addiu $s2, $zero, 1 /* 01C900 80041500 2402000A */ addiu $v0, $zero, 0xa /* 01C904 80041504 AEA00094 */ sw $zero, 0x94($s5) /* 01C908 80041508 0C03AD96 */ jal func_800EB658 /* 01C90C 8004150C AEA2009C */ sw $v0, 0x9c($s5) /* 01C910 80041510 3C01800A */ lui $at, 0x800a /* 01C914 80041514 AC31A5D0 */ sw $s1, -0x5a30($at) /* 01C918 80041518 0801064E */ j .L80041938 /* 01C91C 8004151C 00000000 */ nop .L80041520: /* 01C920 80041520 82A30005 */ lb $v1, 5($s5) /* 01C924 80041524 8EB0008C */ lw $s0, 0x8c($s5) /* 01C928 80041528 1072001D */ beq $v1, $s2, .L800415A0 /* 01C92C 8004152C 24020003 */ addiu $v0, $zero, 3 /* 01C930 80041530 1062001B */ beq $v1, $v0, .L800415A0 /* 01C934 80041534 00000000 */ nop /* 01C938 80041538 0C03A752 */ jal is_ability_active /* 01C93C 8004153C 0040202D */ daddu $a0, $v0, $zero /* 01C940 80041540 10400016 */ beqz $v0, .L8004159C /* 01C944 80041544 00000000 */ nop /* 01C948 80041548 8E020018 */ lw $v0, 0x18($s0) /* 01C94C 8004154C 82E30009 */ lb $v1, 9($s7) /* 01C950 80041550 84420028 */ lh $v0, 0x28($v0) /* 01C954 80041554 0062182A */ slt $v1, $v1, $v0 /* 01C958 80041558 14600010 */ bnez $v1, .L8004159C /* 01C95C 8004155C 00000000 */ nop /* 01C960 80041560 8E020000 */ lw $v0, ($s0) /* 01C964 80041564 30420040 */ andi $v0, $v0, 0x40 /* 01C968 80041568 1440000C */ bnez $v0, .L8004159C /* 01C96C 8004156C 00000000 */ nop /* 01C970 80041570 82A20012 */ lb $v0, 0x12($s5) /* 01C974 80041574 14400009 */ bnez $v0, .L8004159C /* 01C978 80041578 2402000A */ addiu $v0, $zero, 0xa /* 01C97C 8004157C AEA00094 */ sw $zero, 0x94($s5) /* 01C980 80041580 AEA2009C */ sw $v0, 0x9c($s5) /* 01C984 80041584 3C018007 */ lui $at, 0x8007 /* 01C988 80041588 AC327C40 */ sw $s2, 0x7c40($at) /* 01C98C 8004158C 3C01800A */ lui $at, 0x800a /* 01C990 80041590 AC31A5D0 */ sw $s1, -0x5a30($at) /* 01C994 80041594 0801064E */ j .L80041938 /* 01C998 80041598 00000000 */ nop .L8004159C: /* 01C99C 8004159C 8EB0008C */ lw $s0, 0x8c($s5) .L800415A0: /* 01C9A0 800415A0 0C03A752 */ jal is_ability_active /* 01C9A4 800415A4 2404002A */ addiu $a0, $zero, 0x2a /* 01C9A8 800415A8 1040000E */ beqz $v0, .L800415E4 /* 01C9AC 800415AC 24020003 */ addiu $v0, $zero, 3 /* 01C9B0 800415B0 8E020018 */ lw $v0, 0x18($s0) /* 01C9B4 800415B4 82E30009 */ lb $v1, 9($s7) /* 01C9B8 800415B8 84420028 */ lh $v0, 0x28($v0) /* 01C9BC 800415BC 0062182A */ slt $v1, $v1, $v0 /* 01C9C0 800415C0 14600008 */ bnez $v1, .L800415E4 /* 01C9C4 800415C4 24020003 */ addiu $v0, $zero, 3 /* 01C9C8 800415C8 8E020000 */ lw $v0, ($s0) /* 01C9CC 800415CC 30420040 */ andi $v0, $v0, 0x40 /* 01C9D0 800415D0 14400004 */ bnez $v0, .L800415E4 /* 01C9D4 800415D4 24020003 */ addiu $v0, $zero, 3 /* 01C9D8 800415D8 82A20012 */ lb $v0, 0x12($s5) /* 01C9DC 800415DC 10400015 */ beqz $v0, .L80041634 /* 01C9E0 800415E0 24020003 */ addiu $v0, $zero, 3 .L800415E4: /* 01C9E4 800415E4 82A30005 */ lb $v1, 5($s5) /* 01C9E8 800415E8 1462001D */ bne $v1, $v0, .L80041660 /* 01C9EC 800415EC 8EB0008C */ lw $s0, 0x8c($s5) /* 01C9F0 800415F0 0C03A752 */ jal is_ability_active /* 01C9F4 800415F4 24040028 */ addiu $a0, $zero, 0x28 /* 01C9F8 800415F8 10400019 */ beqz $v0, .L80041660 /* 01C9FC 800415FC 00000000 */ nop /* 01CA00 80041600 8E020018 */ lw $v0, 0x18($s0) /* 01CA04 80041604 82E30009 */ lb $v1, 9($s7) /* 01CA08 80041608 84420028 */ lh $v0, 0x28($v0) /* 01CA0C 8004160C 0062182A */ slt $v1, $v1, $v0 /* 01CA10 80041610 14600013 */ bnez $v1, .L80041660 /* 01CA14 80041614 00000000 */ nop /* 01CA18 80041618 8E020000 */ lw $v0, ($s0) /* 01CA1C 8004161C 30420040 */ andi $v0, $v0, 0x40 /* 01CA20 80041620 1440000F */ bnez $v0, .L80041660 /* 01CA24 80041624 00000000 */ nop /* 01CA28 80041628 82A20012 */ lb $v0, 0x12($s5) /* 01CA2C 8004162C 1440000C */ bnez $v0, .L80041660 /* 01CA30 80041630 00000000 */ nop .L80041634: /* 01CA34 80041634 2402000A */ addiu $v0, $zero, 0xa /* 01CA38 80041638 AEA2009C */ sw $v0, 0x9c($s5) /* 01CA3C 8004163C 24020001 */ addiu $v0, $zero, 1 /* 01CA40 80041640 3C018007 */ lui $at, 0x8007 /* 01CA44 80041644 AC227C40 */ sw $v0, 0x7c40($at) /* 01CA48 80041648 24020002 */ addiu $v0, $zero, 2 /* 01CA4C 8004164C AEA00094 */ sw $zero, 0x94($s5) /* 01CA50 80041650 3C01800A */ lui $at, 0x800a /* 01CA54 80041654 AC22A5D0 */ sw $v0, -0x5a30($at) /* 01CA58 80041658 0801064E */ j .L80041938 /* 01CA5C 8004165C 00000000 */ nop .L80041660: /* 01CA60 80041660 8EA40014 */ lw $a0, 0x14($s5) /* 01CA64 80041664 04810015 */ bgez $a0, .L800416BC /* 01CA68 80041668 0000282D */ daddu $a1, $zero, $zero /* 01CA6C 8004166C 82A30004 */ lb $v1, 4($s5) /* 01CA70 80041670 24020001 */ addiu $v0, $zero, 1 /* 01CA74 80041674 1062000B */ beq $v1, $v0, .L800416A4 /* 01CA78 80041678 28620002 */ slti $v0, $v1, 2 /* 01CA7C 8004167C 10400005 */ beqz $v0, .L80041694 /* 01CA80 80041680 24020002 */ addiu $v0, $zero, 2 /* 01CA84 80041684 1060000D */ beqz $v1, .L800416BC /* 01CA88 80041688 24040002 */ addiu $a0, $zero, 2 /* 01CA8C 8004168C 080105B1 */ j .L800416C4 /* 01CA90 80041690 00000000 */ nop .L80041694: /* 01CA94 80041694 10620006 */ beq $v1, $v0, .L800416B0 /* 01CA98 80041698 24040002 */ addiu $a0, $zero, 2 /* 01CA9C 8004169C 080105B1 */ j .L800416C4 /* 01CAA0 800416A0 00000000 */ nop .L800416A4: /* 01CAA4 800416A4 24040002 */ addiu $a0, $zero, 2 /* 01CAA8 800416A8 080105AF */ j .L800416BC /* 01CAAC 800416AC 24050001 */ addiu $a1, $zero, 1 .L800416B0: /* 01CAB0 800416B0 080105AF */ j .L800416BC /* 01CAB4 800416B4 0080282D */ daddu $a1, $a0, $zero /* 01CAB8 800416B8 0000282D */ daddu $a1, $zero, $zero .L800416BC: /* 01CABC 800416BC 0C052BE3 */ jal func_8014AF8C /* 01CAC0 800416C0 00000000 */ nop .L800416C4: /* 01CAC4 800416C4 0C052BBE */ jal func_8014AEF8 /* 01CAC8 800416C8 00000000 */ nop /* 01CACC 800416CC 24020001 */ addiu $v0, $zero, 1 /* 01CAD0 800416D0 3C01800A */ lui $at, 0x800a /* 01CAD4 800416D4 A022A654 */ sb $v0, -0x59ac($at) /* 01CAD8 800416D8 2402000A */ addiu $v0, $zero, 0xa /* 01CADC 800416DC AEA2009C */ sw $v0, 0x9c($s5) /* 01CAE0 800416E0 24020001 */ addiu $v0, $zero, 1 /* 01CAE4 800416E4 3C01800A */ lui $at, 0x800a /* 01CAE8 800416E8 AC22A5D0 */ sw $v0, -0x5a30($at) .L800416EC: /* 01CAEC 800416EC 8EA30090 */ lw $v1, 0x90($s5) /* 01CAF0 800416F0 240200FF */ addiu $v0, $zero, 0xff /* 01CAF4 800416F4 14620090 */ bne $v1, $v0, .L80041938 /* 01CAF8 800416F8 00000000 */ nop /* 01CAFC 800416FC 8EA2009C */ lw $v0, 0x9c($s5) /* 01CB00 80041700 14400052 */ bnez $v0, .L8004184C /* 01CB04 80041704 2442FFFF */ addiu $v0, $v0, -1 /* 01CB08 80041708 8EB40088 */ lw $s4, 0x88($s5) /* 01CB0C 8004170C 8E820000 */ lw $v0, ($s4) /* 01CB10 80041710 18400019 */ blez $v0, .L80041778 /* 01CB14 80041714 0000982D */ daddu $s3, $zero, $zero /* 01CB18 80041718 0280882D */ daddu $s1, $s4, $zero .L8004171C: /* 01CB1C 8004171C 8E300004 */ lw $s0, 4($s1) /* 01CB20 80041720 12000010 */ beqz $s0, .L80041764 /* 01CB24 80041724 00000000 */ nop /* 01CB28 80041728 8E030000 */ lw $v1, ($s0) /* 01CB2C 8004172C 30620008 */ andi $v0, $v1, 8 /* 01CB30 80041730 10400004 */ beqz $v0, .L80041744 /* 01CB34 80041734 30620020 */ andi $v0, $v1, 0x20 /* 01CB38 80041738 8EA2008C */ lw $v0, 0x8c($s5) /* 01CB3C 8004173C 16020009 */ bne $s0, $v0, .L80041764 /* 01CB40 80041740 30620020 */ andi $v0, $v1, 0x20 .L80041744: /* 01CB44 80041744 14400007 */ bnez $v0, .L80041764 /* 01CB48 80041748 00000000 */ nop /* 01CB4C 8004174C 8E020040 */ lw $v0, 0x40($s0) /* 01CB50 80041750 10400004 */ beqz $v0, .L80041764 /* 01CB54 80041754 00000000 */ nop /* 01CB58 80041758 0C0B102B */ jal kill_script_by_ID /* 01CB5C 8004175C 8E040058 */ lw $a0, 0x58($s0) /* 01CB60 80041760 AE000040 */ sw $zero, 0x40($s0) .L80041764: /* 01CB64 80041764 8E820000 */ lw $v0, ($s4) /* 01CB68 80041768 26730001 */ addiu $s3, $s3, 1 /* 01CB6C 8004176C 0262102A */ slt $v0, $s3, $v0 /* 01CB70 80041770 1440FFEA */ bnez $v0, .L8004171C /* 01CB74 80041774 26310004 */ addiu $s1, $s1, 4 .L80041778: /* 01CB78 80041778 0C03AD96 */ jal func_800EB658 /* 01CB7C 8004177C 00000000 */ nop /* 01CB80 80041780 8EB0008C */ lw $s0, 0x8c($s5) /* 01CB84 80041784 A2A000A0 */ sb $zero, 0xa0($s5) /* 01CB88 80041788 A6A000A2 */ sh $zero, 0xa2($s5) /* 01CB8C 8004178C 920200B5 */ lbu $v0, 0xb5($s0) /* 01CB90 80041790 2404002D */ addiu $a0, $zero, 0x2d /* 01CB94 80041794 0C03A752 */ jal is_ability_active /* 01CB98 80041798 A2A20010 */ sb $v0, 0x10($s5) /* 01CB9C 8004179C 10400008 */ beqz $v0, .L800417C0 /* 01CBA0 800417A0 00000000 */ nop /* 01CBA4 800417A4 82A30005 */ lb $v1, 5($s5) /* 01CBA8 800417A8 24020003 */ addiu $v0, $zero, 3 /* 01CBAC 800417AC 14620004 */ bne $v1, $v0, .L800417C0 /* 01CBB0 800417B0 00000000 */ nop /* 01CBB4 800417B4 24020004 */ addiu $v0, $zero, 4 /* 01CBB8 800417B8 A2A200A0 */ sb $v0, 0xa0($s5) /* 01CBBC 800417BC A6A300A2 */ sh $v1, 0xa2($s5) .L800417C0: /* 01CBC0 800417C0 0C05271B */ jal stop_sound /* 01CBC4 800417C4 24042111 */ addiu $a0, $zero, 0x2111 /* 01CBC8 800417C8 0C05271B */ jal stop_sound /* 01CBCC 800417CC 24042112 */ addiu $a0, $zero, 0x2112 /* 01CBD0 800417D0 0C05271B */ jal stop_sound /* 01CBD4 800417D4 24042113 */ addiu $a0, $zero, 0x2113 /* 01CBD8 800417D8 0C05271B */ jal stop_sound /* 01CBDC 800417DC 24042114 */ addiu $a0, $zero, 0x2114 /* 01CBE0 800417E0 0C01CB37 */ jal func_80072CDC /* 01CBE4 800417E4 0000202D */ daddu $a0, $zero, $zero /* 01CBE8 800417E8 86840046 */ lh $a0, 0x46($s4) /* 01CBEC 800417EC 0C01CB33 */ jal func_80072CCC /* 01CBF0 800417F0 00000000 */ nop /* 01CBF4 800417F4 0C01CB24 */ jal load_battle /* 01CBF8 800417F8 86840044 */ lh $a0, 0x44($s4) /* 01CBFC 800417FC 0000202D */ daddu $a0, $zero, $zero /* 01CC00 80041800 3C05437F */ lui $a1, 0x437f /* 01CC04 80041804 24020001 */ addiu $v0, $zero, 1 /* 01CC08 80041808 A2A20007 */ sb $v0, 7($s5) /* 01CC0C 8004180C 240200FF */ addiu $v0, $zero, 0xff /* 01CC10 80041810 A2A00008 */ sb $zero, 8($s5) /* 01CC14 80041814 A2A0000B */ sb $zero, 0xb($s5) /* 01CC18 80041818 A2A0000C */ sb $zero, 0xc($s5) /* 01CC1C 8004181C A6A0000E */ sh $zero, 0xe($s5) /* 01CC20 80041820 AEA00098 */ sw $zero, 0x98($s5) /* 01CC24 80041824 0C04DF62 */ jal func_80137D88 /* 01CC28 80041828 AEA20090 */ sw $v0, 0x90($s5) /* 01CC2C 8004182C 24020005 */ addiu $v0, $zero, 5 /* 01CC30 80041830 3C01800A */ lui $at, 0x800a /* 01CC34 80041834 AC22A600 */ sw $v0, -0x5a00($at) /* 01CC38 80041838 0801063E */ j .L800418F8 /* 01CC3C 8004183C 24020001 */ addiu $v0, $zero, 1 .L80041840: /* 01CC40 80041840 8EA2009C */ lw $v0, 0x9c($s5) /* 01CC44 80041844 10400003 */ beqz $v0, .L80041854 /* 01CC48 80041848 2442FFFF */ addiu $v0, $v0, -1 .L8004184C: /* 01CC4C 8004184C 0801064E */ j .L80041938 /* 01CC50 80041850 AEA2009C */ sw $v0, 0x9c($s5) .L80041854: /* 01CC54 80041854 8EB40088 */ lw $s4, 0x88($s5) /* 01CC58 80041858 8E820000 */ lw $v0, ($s4) /* 01CC5C 8004185C 18400019 */ blez $v0, .L800418C4 /* 01CC60 80041860 0000982D */ daddu $s3, $zero, $zero /* 01CC64 80041864 0280882D */ daddu $s1, $s4, $zero .L80041868: /* 01CC68 80041868 8E300004 */ lw $s0, 4($s1) /* 01CC6C 8004186C 12000010 */ beqz $s0, .L800418B0 /* 01CC70 80041870 00000000 */ nop /* 01CC74 80041874 8E030000 */ lw $v1, ($s0) /* 01CC78 80041878 30620008 */ andi $v0, $v1, 8 /* 01CC7C 8004187C 10400004 */ beqz $v0, .L80041890 /* 01CC80 80041880 30620020 */ andi $v0, $v1, 0x20 /* 01CC84 80041884 8EA2008C */ lw $v0, 0x8c($s5) /* 01CC88 80041888 16020009 */ bne $s0, $v0, .L800418B0 /* 01CC8C 8004188C 30620020 */ andi $v0, $v1, 0x20 .L80041890: /* 01CC90 80041890 14400007 */ bnez $v0, .L800418B0 /* 01CC94 80041894 00000000 */ nop /* 01CC98 80041898 8E020040 */ lw $v0, 0x40($s0) /* 01CC9C 8004189C 10400004 */ beqz $v0, .L800418B0 /* 01CCA0 800418A0 00000000 */ nop /* 01CCA4 800418A4 0C0B102B */ jal kill_script_by_ID /* 01CCA8 800418A8 8E040058 */ lw $a0, 0x58($s0) /* 01CCAC 800418AC AE000040 */ sw $zero, 0x40($s0) .L800418B0: /* 01CCB0 800418B0 8E820000 */ lw $v0, ($s4) /* 01CCB4 800418B4 26730001 */ addiu $s3, $s3, 1 /* 01CCB8 800418B8 0262102A */ slt $v0, $s3, $v0 /* 01CCBC 800418BC 1440FFEA */ bnez $v0, .L80041868 /* 01CCC0 800418C0 26310004 */ addiu $s1, $s1, 4 .L800418C4: /* 01CCC4 800418C4 24020001 */ addiu $v0, $zero, 1 /* 01CCC8 800418C8 A2A20008 */ sb $v0, 8($s5) /* 01CCCC 800418CC A2A20007 */ sb $v0, 7($s5) /* 01CCD0 800418D0 24020005 */ addiu $v0, $zero, 5 /* 01CCD4 800418D4 A2A00009 */ sb $zero, 9($s5) /* 01CCD8 800418D8 A2A0000B */ sb $zero, 0xb($s5) /* 01CCDC 800418DC A2A0000C */ sb $zero, 0xc($s5) /* 01CCE0 800418E0 3C01800A */ lui $at, 0x800a /* 01CCE4 800418E4 AC22A600 */ sw $v0, -0x5a00($at) /* 01CCE8 800418E8 24020001 */ addiu $v0, $zero, 1 /* 01CCEC 800418EC A6A0000E */ sh $zero, 0xe($s5) /* 01CCF0 800418F0 AEA00098 */ sw $zero, 0x98($s5) /* 01CCF4 800418F4 AEA00090 */ sw $zero, 0x90($s5) .L800418F8: /* 01CCF8 800418F8 3C01800A */ lui $at, 0x800a /* 01CCFC 800418FC AC22A678 */ sw $v0, -0x5988($at) /* 01CD00 80041900 3C01800A */ lui $at, 0x800a /* 01CD04 80041904 AC20A5D0 */ sw $zero, -0x5a30($at) /* 01CD08 80041908 0801064E */ j .L80041938 /* 01CD0C 8004190C 00000000 */ nop .L80041910: /* 01CD10 80041910 A2A20009 */ sb $v0, 9($s5) /* 01CD14 80041914 24020005 */ addiu $v0, $zero, 5 /* 01CD18 80041918 A2A50008 */ sb $a1, 8($s5) /* 01CD1C 8004191C AEA00090 */ sw $zero, 0x90($s5) /* 01CD20 80041920 AEA00098 */ sw $zero, 0x98($s5) /* 01CD24 80041924 3C01800A */ lui $at, 0x800a /* 01CD28 80041928 AC22A600 */ sw $v0, -0x5a00($at) /* 01CD2C 8004192C 3C01800A */ lui $at, 0x800a /* 01CD30 80041930 AC25A678 */ sw $a1, -0x5988($at) /* 01CD34 80041934 AC800000 */ sw $zero, ($a0) .L80041938: /* 01CD38 80041938 8FBF0030 */ lw $ra, 0x30($sp) /* 01CD3C 8004193C 8FB7002C */ lw $s7, 0x2c($sp) /* 01CD40 80041940 8FB60028 */ lw $s6, 0x28($sp) /* 01CD44 80041944 8FB50024 */ lw $s5, 0x24($sp) /* 01CD48 80041948 8FB40020 */ lw $s4, 0x20($sp) /* 01CD4C 8004194C 8FB3001C */ lw $s3, 0x1c($sp) /* 01CD50 80041950 8FB20018 */ lw $s2, 0x18($sp) /* 01CD54 80041954 8FB10014 */ lw $s1, 0x14($sp) /* 01CD58 80041958 8FB00010 */ lw $s0, 0x10($sp) /* 01CD5C 8004195C 03E00008 */ jr $ra /* 01CD60 80041960 27BD0038 */ addiu $sp, $sp, 0x38