.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel func_80065FF0 /* 413F0 80065FF0 27BDFFE0 */ addiu $sp, $sp, -0x20 /* 413F4 80065FF4 AFB00010 */ sw $s0, 0x10($sp) /* 413F8 80065FF8 00808021 */ addu $s0, $a0, $zero /* 413FC 80065FFC AFBF001C */ sw $ra, 0x1c($sp) /* 41400 80066000 AFB20018 */ sw $s2, 0x18($sp) /* 41404 80066004 0C01ACD0 */ jal func_8006B340 /* 41408 80066008 AFB10014 */ sw $s1, 0x14($sp) /* 4140C 8006600C 96030010 */ lhu $v1, 0x10($s0) /* 41410 80066010 00409021 */ addu $s2, $v0, $zero /* 41414 80066014 24020001 */ addiu $v0, $zero, 1 /* 41418 80066018 10620008 */ beq $v1, $v0, .L8006603C /* 4141C 8006601C 24020008 */ addiu $v0, $zero, 8 /* 41420 80066020 1462001E */ bne $v1, $v0, .L8006609C /* 41424 80066024 24020002 */ addiu $v0, $zero, 2 /* 41428 80066028 A6020010 */ sh $v0, 0x10($s0) /* 4142C 8006602C 3C048009 */ lui $a0, %hi(D_80094638) /* 41430 80066030 24844638 */ addiu $a0, $a0, %lo(D_80094638) /* 41434 80066034 08019825 */ j .L80066094 /* 41438 80066038 02002821 */ addu $a1, $s0, $zero .L8006603C: /* 4143C 8006603C 8E020008 */ lw $v0, 8($s0) /* 41440 80066040 50400006 */ beql $v0, $zero, .L8006605C /* 41444 80066044 24020002 */ addiu $v0, $zero, 2 /* 41448 80066048 3C118009 */ lui $s1, %hi(D_80094638) /* 4144C 8006604C 26314638 */ addiu $s1, $s1, %lo(D_80094638) /* 41450 80066050 14510007 */ bne $v0, $s1, .L80066070 /* 41454 80066054 02002821 */ addu $a1, $s0, $zero /* 41458 80066058 24020002 */ addiu $v0, $zero, 2 .L8006605C: /* 4145C 8006605C A6020010 */ sh $v0, 0x10($s0) /* 41460 80066060 3C048009 */ lui $a0, %hi(D_80094638) /* 41464 80066064 24844638 */ addiu $a0, $a0, %lo(D_80094638) /* 41468 80066068 08019825 */ j .L80066094 /* 4146C 8006606C 02002821 */ addu $a1, $s0, $zero .L80066070: /* 41470 80066070 8E040008 */ lw $a0, 8($s0) /* 41474 80066074 24020008 */ addiu $v0, $zero, 8 /* 41478 80066078 0C01AC55 */ jal func_8006B154 /* 4147C 8006607C A6020010 */ sh $v0, 0x10($s0) /* 41480 80066080 8E040008 */ lw $a0, 8($s0) /* 41484 80066084 0C01AC67 */ jal func_8006B19C /* 41488 80066088 00000000 */ nop /* 4148C 8006608C 02202021 */ addu $a0, $s1, $zero /* 41490 80066090 00402821 */ addu $a1, $v0, $zero .L80066094: /* 41494 80066094 0C01AC55 */ jal func_8006B154 /* 41498 80066098 00000000 */ nop .L8006609C: /* 4149C 8006609C 3C048009 */ lui $a0, %hi(D_80094640) /* 414A0 800660A0 8C844640 */ lw $a0, %lo(D_80094640)($a0) /* 414A4 800660A4 14800005 */ bnez $a0, .L800660BC /* 414A8 800660A8 00000000 */ nop /* 414AC 800660AC 0C01AC6D */ jal func_8006B1B4 /* 414B0 800660B0 00000000 */ nop /* 414B4 800660B4 0801983A */ j .L800660E8 /* 414B8 800660B8 00000000 */ nop .L800660BC: /* 414BC 800660BC 3C028009 */ lui $v0, %hi(D_80094638) /* 414C0 800660C0 8C424638 */ lw $v0, %lo(D_80094638)($v0) /* 414C4 800660C4 8C830004 */ lw $v1, 4($a0) /* 414C8 800660C8 8C420004 */ lw $v0, 4($v0) /* 414CC 800660CC 0062182A */ slt $v1, $v1, $v0 /* 414D0 800660D0 10600005 */ beqz $v1, .L800660E8 /* 414D4 800660D4 24020002 */ addiu $v0, $zero, 2 /* 414D8 800660D8 A4820010 */ sh $v0, 0x10($a0) /* 414DC 800660DC 3C048009 */ lui $a0, %hi(D_80094638) /* 414E0 800660E0 0C01AC13 */ jal func_8006B04C /* 414E4 800660E4 24844638 */ addiu $a0, $a0, %lo(D_80094638) .L800660E8: /* 414E8 800660E8 0C01ACEC */ jal func_8006B3B0 /* 414EC 800660EC 02402021 */ addu $a0, $s2, $zero /* 414F0 800660F0 8FBF001C */ lw $ra, 0x1c($sp) /* 414F4 800660F4 8FB20018 */ lw $s2, 0x18($sp) /* 414F8 800660F8 8FB10014 */ lw $s1, 0x14($sp) /* 414FC 800660FC 8FB00010 */ lw $s0, 0x10($sp) /* 41500 80066100 03E00008 */ jr $ra /* 41504 80066104 27BD0020 */ addiu $sp, $sp, 0x20 /* 41508 80066108 00000000 */ nop /* 4150C 8006610C 00000000 */ nop