papermario/ver/jp/asm/nonmatchings/main_35F50/func_8005AEEC.s
Ethan Roseman 698cf99458
jp cod (Created the first segment's c files for jp) (#194)
* jp cod

* just have less code and it works

* oops

* removing splat cause subrepo is being dumb

* git subrepo clone https://github.com/ethteck/splat.git tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "d7281bae6a"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "d7281bae6a"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* move jp stuff + revert configure

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "c56195a9c5"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "c56195a9c5"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-02-27 00:36:33 +09:00

360 lines
18 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8005AEEC
/* 362EC 8005AEEC 27BDFF90 */ addiu $sp, $sp, -0x70
/* 362F0 8005AEF0 AFB60038 */ sw $s6, 0x38($sp)
/* 362F4 8005AEF4 0000B02D */ daddu $s6, $zero, $zero
/* 362F8 8005AEF8 AFBE0040 */ sw $fp, 0x40($sp)
/* 362FC 8005AEFC 02C0F02D */ daddu $fp, $s6, $zero
/* 36300 8005AF00 AFBF0044 */ sw $ra, 0x44($sp)
/* 36304 8005AF04 AFB7003C */ sw $s7, 0x3c($sp)
/* 36308 8005AF08 AFB50034 */ sw $s5, 0x34($sp)
/* 3630C 8005AF0C AFB40030 */ sw $s4, 0x30($sp)
/* 36310 8005AF10 AFB3002C */ sw $s3, 0x2c($sp)
/* 36314 8005AF14 AFB20028 */ sw $s2, 0x28($sp)
/* 36318 8005AF18 AFB10024 */ sw $s1, 0x24($sp)
/* 3631C 8005AF1C AFB00020 */ sw $s0, 0x20($sp)
/* 36320 8005AF20 F7BC0068 */ sdc1 $f28, 0x68($sp)
/* 36324 8005AF24 F7BA0060 */ sdc1 $f26, 0x60($sp)
/* 36328 8005AF28 F7B80058 */ sdc1 $f24, 0x58($sp)
/* 3632C 8005AF2C F7B60050 */ sdc1 $f22, 0x50($sp)
/* 36330 8005AF30 F7B40048 */ sdc1 $f20, 0x48($sp)
/* 36334 8005AF34 AFA40070 */ sw $a0, 0x70($sp)
/* 36338 8005AF38 0C016A28 */ jal func_8005A8A0
/* 3633C 8005AF3C AFA50074 */ sw $a1, 0x74($sp)
/* 36340 8005AF40 8FA80070 */ lw $t0, 0x70($sp)
/* 36344 8005AF44 11000006 */ beqz $t0, .L8005AF60
/* 36348 8005AF48 0040182D */ daddu $v1, $v0, $zero
/* 3634C 8005AF4C 24020001 */ addiu $v0, $zero, 1
/* 36350 8005AF50 1102000B */ beq $t0, $v0, .L8005AF80
/* 36354 8005AF54 0000A02D */ daddu $s4, $zero, $zero
/* 36358 8005AF58 08016BE8 */ j .L8005AFA0
/* 3635C 8005AF5C 00000000 */ nop
.L8005AF60:
/* 36360 8005AF60 8C620004 */ lw $v0, 4($v1)
/* 36364 8005AF64 10400121 */ beqz $v0, .L8005B3EC
/* 36368 8005AF68 00000000 */ nop
/* 3636C 8005AF6C 8FA80074 */ lw $t0, 0x74($sp)
/* 36370 8005AF70 3C1E800B */ lui $fp, %hi(D_800B42C0)
/* 36374 8005AF74 27DE42C0 */ addiu $fp, $fp, %lo(D_800B42C0)
/* 36378 8005AF78 08016BE7 */ j .L8005AF9C
/* 3637C 8005AF7C 0102B021 */ addu $s6, $t0, $v0
.L8005AF80:
/* 36380 8005AF80 8C620008 */ lw $v0, 8($v1)
/* 36384 8005AF84 10400119 */ beqz $v0, .L8005B3EC
/* 36388 8005AF88 00000000 */ nop
/* 3638C 8005AF8C 8FA80074 */ lw $t0, 0x74($sp)
/* 36390 8005AF90 0102B021 */ addu $s6, $t0, $v0
/* 36394 8005AF94 3C1E800E */ lui $fp, %hi(D_800D91B0)
/* 36398 8005AF98 27DE91B0 */ addiu $fp, $fp, %lo(D_800D91B0)
.L8005AF9C:
/* 3639C 8005AF9C 0000A02D */ daddu $s4, $zero, $zero
.L8005AFA0:
/* 363A0 8005AFA0 8EC20014 */ lw $v0, 0x14($s6)
/* 363A4 8005AFA4 8FA80074 */ lw $t0, 0x74($sp)
/* 363A8 8005AFA8 86C40010 */ lh $a0, 0x10($s6)
/* 363AC 8005AFAC 01028021 */ addu $s0, $t0, $v0
/* 363B0 8005AFB0 0C00AB5C */ jal func_8002AD70
/* 363B4 8005AFB4 00042080 */ sll $a0, $a0, 2
/* 363B8 8005AFB8 AFC20008 */ sw $v0, 8($fp)
/* 363BC 8005AFBC 86C30010 */ lh $v1, 0x10($s6)
/* 363C0 8005AFC0 18600009 */ blez $v1, .L8005AFE8
/* 363C4 8005AFC4 0040202D */ daddu $a0, $v0, $zero
.L8005AFC8:
/* 363C8 8005AFC8 8E020000 */ lw $v0, ($s0)
/* 363CC 8005AFCC 26100004 */ addiu $s0, $s0, 4
/* 363D0 8005AFD0 26940001 */ addiu $s4, $s4, 1
/* 363D4 8005AFD4 AC820000 */ sw $v0, ($a0)
/* 363D8 8005AFD8 86C20010 */ lh $v0, 0x10($s6)
/* 363DC 8005AFDC 0282102A */ slt $v0, $s4, $v0
/* 363E0 8005AFE0 1440FFF9 */ bnez $v0, .L8005AFC8
/* 363E4 8005AFE4 24840004 */ addiu $a0, $a0, 4
.L8005AFE8:
/* 363E8 8005AFE8 0000A02D */ daddu $s4, $zero, $zero
/* 363EC 8005AFEC 8EC2000C */ lw $v0, 0xc($s6)
/* 363F0 8005AFF0 8FA80074 */ lw $t0, 0x74($sp)
/* 363F4 8005AFF4 86C30008 */ lh $v1, 8($s6)
/* 363F8 8005AFF8 01028021 */ addu $s0, $t0, $v0
/* 363FC 8005AFFC 00032040 */ sll $a0, $v1, 1
/* 36400 8005B000 00832021 */ addu $a0, $a0, $v1
/* 36404 8005B004 0C00AB5C */ jal func_8002AD70
/* 36408 8005B008 00042080 */ sll $a0, $a0, 2
/* 3640C 8005B00C AFC20000 */ sw $v0, ($fp)
/* 36410 8005B010 86C30008 */ lh $v1, 8($s6)
/* 36414 8005B014 1860001A */ blez $v1, .L8005B080
/* 36418 8005B018 0040282D */ daddu $a1, $v0, $zero
/* 3641C 8005B01C 26040004 */ addiu $a0, $s0, 4
/* 36420 8005B020 24A30008 */ addiu $v1, $a1, 8
.L8005B024:
/* 36424 8005B024 86020000 */ lh $v0, ($s0)
/* 36428 8005B028 26100006 */ addiu $s0, $s0, 6
/* 3642C 8005B02C 26940001 */ addiu $s4, $s4, 1
/* 36430 8005B030 44820000 */ mtc1 $v0, $f0
/* 36434 8005B034 00000000 */ nop
/* 36438 8005B038 46800020 */ cvt.s.w $f0, $f0
/* 3643C 8005B03C E4A00000 */ swc1 $f0, ($a1)
/* 36440 8005B040 8482FFFE */ lh $v0, -2($a0)
/* 36444 8005B044 24A5000C */ addiu $a1, $a1, 0xc
/* 36448 8005B048 44820000 */ mtc1 $v0, $f0
/* 3644C 8005B04C 00000000 */ nop
/* 36450 8005B050 46800020 */ cvt.s.w $f0, $f0
/* 36454 8005B054 E460FFFC */ swc1 $f0, -4($v1)
/* 36458 8005B058 84820000 */ lh $v0, ($a0)
/* 3645C 8005B05C 24840006 */ addiu $a0, $a0, 6
/* 36460 8005B060 44820000 */ mtc1 $v0, $f0
/* 36464 8005B064 00000000 */ nop
/* 36468 8005B068 46800020 */ cvt.s.w $f0, $f0
/* 3646C 8005B06C E4600000 */ swc1 $f0, ($v1)
/* 36470 8005B070 86C20008 */ lh $v0, 8($s6)
/* 36474 8005B074 0282102A */ slt $v0, $s4, $v0
/* 36478 8005B078 1440FFEA */ bnez $v0, .L8005B024
/* 3647C 8005B07C 2463000C */ addiu $v1, $v1, 0xc
.L8005B080:
/* 36480 8005B080 8EC20004 */ lw $v0, 4($s6)
/* 36484 8005B084 8FA80074 */ lw $t0, 0x74($sp)
/* 36488 8005B088 86C30000 */ lh $v1, ($s6)
/* 3648C 8005B08C 01021021 */ addu $v0, $t0, $v0
/* 36490 8005B090 000320C0 */ sll $a0, $v1, 3
/* 36494 8005B094 00832023 */ subu $a0, $a0, $v1
/* 36498 8005B098 00042080 */ sll $a0, $a0, 2
/* 3649C 8005B09C 0C00AB5C */ jal func_8002AD70
/* 364A0 8005B0A0 AFA20010 */ sw $v0, 0x10($sp)
/* 364A4 8005B0A4 AFC20004 */ sw $v0, 4($fp)
/* 364A8 8005B0A8 96C30000 */ lhu $v1, ($s6)
/* 364AC 8005B0AC 0000A02D */ daddu $s4, $zero, $zero
/* 364B0 8005B0B0 A7C3000C */ sh $v1, 0xc($fp)
/* 364B4 8005B0B4 86C30000 */ lh $v1, ($s6)
/* 364B8 8005B0B8 186000CC */ blez $v1, .L8005B3EC
/* 364BC 8005B0BC 0040382D */ daddu $a3, $v0, $zero
/* 364C0 8005B0C0 24F20010 */ addiu $s2, $a3, 0x10
/* 364C4 8005B0C4 8FA80010 */ lw $t0, 0x10($sp)
/* 364C8 8005B0C8 3C013F80 */ lui $at, 0x3f80
/* 364CC 8005B0CC 4481D000 */ mtc1 $at, $f26
/* 364D0 8005B0D0 4480E000 */ mtc1 $zero, $f28
/* 364D4 8005B0D4 25130006 */ addiu $s3, $t0, 6
.L8005B0D8:
/* 364D8 8005B0D8 ACE00000 */ sw $zero, ($a3)
/* 364DC 8005B0DC 9662FFFC */ lhu $v0, -4($s3)
/* 364E0 8005B0E0 A642FFF4 */ sh $v0, -0xc($s2)
/* 364E4 8005B0E4 9662FFFE */ lhu $v0, -2($s3)
/* 364E8 8005B0E8 A642FFF6 */ sh $v0, -0xa($s2)
/* 364EC 8005B0EC 96620000 */ lhu $v0, ($s3)
/* 364F0 8005B0F0 A642FFFA */ sh $v0, -6($s2)
/* 364F4 8005B0F4 00021400 */ sll $v0, $v0, 0x10
/* 364F8 8005B0F8 504000B3 */ beql $v0, $zero, .L8005B3C8
/* 364FC 8005B0FC 2673000C */ addiu $s3, $s3, 0xc
/* 36500 8005B100 86640000 */ lh $a0, ($s3)
/* 36504 8005B104 AFA70018 */ sw $a3, 0x18($sp)
/* 36508 8005B108 0C00AB5C */ jal func_8002AD70
/* 3650C 8005B10C 00042180 */ sll $a0, $a0, 6
/* 36510 8005B110 0040B82D */ daddu $s7, $v0, $zero
/* 36514 8005B114 AE57FFFC */ sw $s7, -4($s2)
/* 36518 8005B118 8FA80010 */ lw $t0, 0x10($sp)
/* 3651C 8005B11C 85020000 */ lh $v0, ($t0)
/* 36520 8005B120 8FA70018 */ lw $a3, 0x18($sp)
/* 36524 8005B124 04410003 */ bgez $v0, .L8005B134
/* 36528 8005B128 00021080 */ sll $v0, $v0, 2
/* 3652C 8005B12C 08016C6D */ j .L8005B1B4
/* 36530 8005B130 AE400000 */ sw $zero, ($s2)
.L8005B134:
/* 36534 8005B134 8FC30008 */ lw $v1, 8($fp)
/* 36538 8005B138 00621821 */ addu $v1, $v1, $v0
/* 3653C 8005B13C AE430000 */ sw $v1, ($s2)
/* 36540 8005B140 8FA80070 */ lw $t0, 0x70($sp)
/* 36544 8005B144 1500001C */ bnez $t0, .L8005B1B8
/* 36548 8005B148 0000A82D */ daddu $s5, $zero, $zero
/* 3654C 8005B14C C4600000 */ lwc1 $f0, ($v1)
/* 36550 8005B150 461A0001 */ sub.s $f0, $f0, $f26
/* 36554 8005B154 E4600000 */ swc1 $f0, ($v1)
/* 36558 8005B158 8E420000 */ lw $v0, ($s2)
/* 3655C 8005B15C C4400004 */ lwc1 $f0, 4($v0)
/* 36560 8005B160 461A0001 */ sub.s $f0, $f0, $f26
/* 36564 8005B164 E4400004 */ swc1 $f0, 4($v0)
/* 36568 8005B168 8E420000 */ lw $v0, ($s2)
/* 3656C 8005B16C C4400008 */ lwc1 $f0, 8($v0)
/* 36570 8005B170 461A0001 */ sub.s $f0, $f0, $f26
/* 36574 8005B174 E4400008 */ swc1 $f0, 8($v0)
/* 36578 8005B178 8E420000 */ lw $v0, ($s2)
/* 3657C 8005B17C C440000C */ lwc1 $f0, 0xc($v0)
/* 36580 8005B180 461A0000 */ add.s $f0, $f0, $f26
/* 36584 8005B184 E440000C */ swc1 $f0, 0xc($v0)
/* 36588 8005B188 8E420000 */ lw $v0, ($s2)
/* 3658C 8005B18C C4400010 */ lwc1 $f0, 0x10($v0)
/* 36590 8005B190 461A0000 */ add.s $f0, $f0, $f26
/* 36594 8005B194 E4400010 */ swc1 $f0, 0x10($v0)
/* 36598 8005B198 8E420000 */ lw $v0, ($s2)
/* 3659C 8005B19C C4400014 */ lwc1 $f0, 0x14($v0)
/* 365A0 8005B1A0 461A0000 */ add.s $f0, $f0, $f26
/* 365A4 8005B1A4 E4400014 */ swc1 $f0, 0x14($v0)
/* 365A8 8005B1A8 8E420000 */ lw $v0, ($s2)
/* 365AC 8005B1AC 8C420018 */ lw $v0, 0x18($v0)
/* 365B0 8005B1B0 ACE20000 */ sw $v0, ($a3)
.L8005B1B4:
/* 365B4 8005B1B4 0000A82D */ daddu $s5, $zero, $zero
.L8005B1B8:
/* 365B8 8005B1B8 8E620002 */ lw $v0, 2($s3)
/* 365BC 8005B1BC 8FA80074 */ lw $t0, 0x74($sp)
/* 365C0 8005B1C0 86630000 */ lh $v1, ($s3)
/* 365C4 8005B1C4 1860007F */ blez $v1, .L8005B3C4
/* 365C8 8005B1C8 01028821 */ addu $s1, $t0, $v0
/* 365CC 8005B1CC 26F00038 */ addiu $s0, $s7, 0x38
.L8005B1D0:
/* 365D0 8005B1D0 8E230000 */ lw $v1, ($s1)
/* 365D4 8005B1D4 8FC40000 */ lw $a0, ($fp)
/* 365D8 8005B1D8 306303FF */ andi $v1, $v1, 0x3ff
/* 365DC 8005B1DC 00031040 */ sll $v0, $v1, 1
/* 365E0 8005B1E0 00431021 */ addu $v0, $v0, $v1
/* 365E4 8005B1E4 00021080 */ sll $v0, $v0, 2
/* 365E8 8005B1E8 00822021 */ addu $a0, $a0, $v0
/* 365EC 8005B1EC AEE40000 */ sw $a0, ($s7)
/* 365F0 8005B1F0 8E220000 */ lw $v0, ($s1)
/* 365F4 8005B1F4 8FC60000 */ lw $a2, ($fp)
/* 365F8 8005B1F8 00021283 */ sra $v0, $v0, 0xa
/* 365FC 8005B1FC 304203FF */ andi $v0, $v0, 0x3ff
/* 36600 8005B200 00021840 */ sll $v1, $v0, 1
/* 36604 8005B204 00621821 */ addu $v1, $v1, $v0
/* 36608 8005B208 00031880 */ sll $v1, $v1, 2
/* 3660C 8005B20C 00C33021 */ addu $a2, $a2, $v1
/* 36610 8005B210 AE06FFCC */ sw $a2, -0x34($s0)
/* 36614 8005B214 8E220000 */ lw $v0, ($s1)
/* 36618 8005B218 8FC50000 */ lw $a1, ($fp)
/* 3661C 8005B21C 00021503 */ sra $v0, $v0, 0x14
/* 36620 8005B220 304203FF */ andi $v0, $v0, 0x3ff
/* 36624 8005B224 00021840 */ sll $v1, $v0, 1
/* 36628 8005B228 00621821 */ addu $v1, $v1, $v0
/* 3662C 8005B22C 00031880 */ sll $v1, $v1, 2
/* 36630 8005B230 00A32821 */ addu $a1, $a1, $v1
/* 36634 8005B234 AE05FFD0 */ sw $a1, -0x30($s0)
/* 36638 8005B238 8E220000 */ lw $v0, ($s1)
/* 3663C 8005B23C 00021783 */ sra $v0, $v0, 0x1e
/* 36640 8005B240 30420001 */ andi $v0, $v0, 1
/* 36644 8005B244 A6020004 */ sh $v0, 4($s0)
/* 36648 8005B248 C4A00000 */ lwc1 $f0, ($a1)
/* 3664C 8005B24C C4820000 */ lwc1 $f2, ($a0)
/* 36650 8005B250 46020001 */ sub.s $f0, $f0, $f2
/* 36654 8005B254 E600FFD4 */ swc1 $f0, -0x2c($s0)
/* 36658 8005B258 C4A00004 */ lwc1 $f0, 4($a1)
/* 3665C 8005B25C C4820004 */ lwc1 $f2, 4($a0)
/* 36660 8005B260 46020001 */ sub.s $f0, $f0, $f2
/* 36664 8005B264 E600FFD8 */ swc1 $f0, -0x28($s0)
/* 36668 8005B268 C4A00008 */ lwc1 $f0, 8($a1)
/* 3666C 8005B26C C4820008 */ lwc1 $f2, 8($a0)
/* 36670 8005B270 46020001 */ sub.s $f0, $f0, $f2
/* 36674 8005B274 E600FFDC */ swc1 $f0, -0x24($s0)
/* 36678 8005B278 C4800000 */ lwc1 $f0, ($a0)
/* 3667C 8005B27C C4C20000 */ lwc1 $f2, ($a2)
/* 36680 8005B280 46020001 */ sub.s $f0, $f0, $f2
/* 36684 8005B284 E600FFE0 */ swc1 $f0, -0x20($s0)
/* 36688 8005B288 C4800004 */ lwc1 $f0, 4($a0)
/* 3668C 8005B28C C4C20004 */ lwc1 $f2, 4($a2)
/* 36690 8005B290 46020001 */ sub.s $f0, $f0, $f2
/* 36694 8005B294 E600FFE4 */ swc1 $f0, -0x1c($s0)
/* 36698 8005B298 C4800008 */ lwc1 $f0, 8($a0)
/* 3669C 8005B29C C4C20008 */ lwc1 $f2, 8($a2)
/* 366A0 8005B2A0 46020001 */ sub.s $f0, $f0, $f2
/* 366A4 8005B2A4 E600FFE8 */ swc1 $f0, -0x18($s0)
/* 366A8 8005B2A8 C4C00000 */ lwc1 $f0, ($a2)
/* 366AC 8005B2AC C4A20000 */ lwc1 $f2, ($a1)
/* 366B0 8005B2B0 46020001 */ sub.s $f0, $f0, $f2
/* 366B4 8005B2B4 E600FFEC */ swc1 $f0, -0x14($s0)
/* 366B8 8005B2B8 C4C00004 */ lwc1 $f0, 4($a2)
/* 366BC 8005B2BC C4A20004 */ lwc1 $f2, 4($a1)
/* 366C0 8005B2C0 46020001 */ sub.s $f0, $f0, $f2
/* 366C4 8005B2C4 E600FFF0 */ swc1 $f0, -0x10($s0)
/* 366C8 8005B2C8 C60AFFD8 */ lwc1 $f10, -0x28($s0)
/* 366CC 8005B2CC C608FFE8 */ lwc1 $f8, -0x18($s0)
/* 366D0 8005B2D0 46085382 */ mul.s $f14, $f10, $f8
/* 366D4 8005B2D4 00000000 */ nop
/* 366D8 8005B2D8 C606FFDC */ lwc1 $f6, -0x24($s0)
/* 366DC 8005B2DC C604FFE4 */ lwc1 $f4, -0x1c($s0)
/* 366E0 8005B2E0 46043302 */ mul.s $f12, $f6, $f4
/* 366E4 8005B2E4 00000000 */ nop
/* 366E8 8005B2E8 C602FFE0 */ lwc1 $f2, -0x20($s0)
/* 366EC 8005B2EC 46023182 */ mul.s $f6, $f6, $f2
/* 366F0 8005B2F0 00000000 */ nop
/* 366F4 8005B2F4 C600FFD4 */ lwc1 $f0, -0x2c($s0)
/* 366F8 8005B2F8 46080202 */ mul.s $f8, $f0, $f8
/* 366FC 8005B2FC 00000000 */ nop
/* 36700 8005B300 46040002 */ mul.s $f0, $f0, $f4
/* 36704 8005B304 00000000 */ nop
/* 36708 8005B308 46025282 */ mul.s $f10, $f10, $f2
/* 3670C 8005B30C 00000000 */ nop
/* 36710 8005B310 460C7601 */ sub.s $f24, $f14, $f12
/* 36714 8005B314 4618C102 */ mul.s $f4, $f24, $f24
/* 36718 8005B318 00000000 */ nop
/* 3671C 8005B31C 46083501 */ sub.s $f20, $f6, $f8
/* 36720 8005B320 4614A182 */ mul.s $f6, $f20, $f20
/* 36724 8005B324 00000000 */ nop
/* 36728 8005B328 460A0581 */ sub.s $f22, $f0, $f10
/* 3672C 8005B32C 4616B202 */ mul.s $f8, $f22, $f22
/* 36730 8005B330 00000000 */ nop
/* 36734 8005B334 C4C20008 */ lwc1 $f2, 8($a2)
/* 36738 8005B338 C4A00008 */ lwc1 $f0, 8($a1)
/* 3673C 8005B33C 46001081 */ sub.s $f2, $f2, $f0
/* 36740 8005B340 46062100 */ add.s $f4, $f4, $f6
/* 36744 8005B344 46082300 */ add.s $f12, $f4, $f8
/* 36748 8005B348 461C6032 */ c.eq.s $f12, $f28
/* 3674C 8005B34C 00000000 */ nop
/* 36750 8005B350 4501000B */ bc1t .L8005B380
/* 36754 8005B354 E602FFF4 */ swc1 $f2, -0xc($s0)
/* 36758 8005B358 46006004 */ sqrt.s $f0, $f12
/* 3675C 8005B35C 46000032 */ c.eq.s $f0, $f0
/* 36760 8005B360 00000000 */ nop
/* 36764 8005B364 45030007 */ bc1tl .L8005B384
/* 36768 8005B368 4600D303 */ div.s $f12, $f26, $f0
/* 3676C 8005B36C 0C0187B0 */ jal func_80061EC0
/* 36770 8005B370 AFA70018 */ sw $a3, 0x18($sp)
/* 36774 8005B374 8FA70018 */ lw $a3, 0x18($sp)
/* 36778 8005B378 08016CE1 */ j .L8005B384
/* 3677C 8005B37C 4600D303 */ div.s $f12, $f26, $f0
.L8005B380:
/* 36780 8005B380 4600E306 */ mov.s $f12, $f28
.L8005B384:
/* 36784 8005B384 460CC082 */ mul.s $f2, $f24, $f12
/* 36788 8005B388 00000000 */ nop
/* 3678C 8005B38C 460CA102 */ mul.s $f4, $f20, $f12
/* 36790 8005B390 00000000 */ nop
/* 36794 8005B394 26310004 */ addiu $s1, $s1, 4
/* 36798 8005B398 460CB002 */ mul.s $f0, $f22, $f12
/* 3679C 8005B39C 00000000 */ nop
/* 367A0 8005B3A0 26F70040 */ addiu $s7, $s7, 0x40
/* 367A4 8005B3A4 26B50001 */ addiu $s5, $s5, 1
/* 367A8 8005B3A8 E602FFF8 */ swc1 $f2, -8($s0)
/* 367AC 8005B3AC E604FFFC */ swc1 $f4, -4($s0)
/* 367B0 8005B3B0 E6000000 */ swc1 $f0, ($s0)
/* 367B4 8005B3B4 86620000 */ lh $v0, ($s3)
/* 367B8 8005B3B8 02A2102A */ slt $v0, $s5, $v0
/* 367BC 8005B3BC 1440FF84 */ bnez $v0, .L8005B1D0
/* 367C0 8005B3C0 26100040 */ addiu $s0, $s0, 0x40
.L8005B3C4:
/* 367C4 8005B3C4 2673000C */ addiu $s3, $s3, 0xc
.L8005B3C8:
/* 367C8 8005B3C8 2652001C */ addiu $s2, $s2, 0x1c
/* 367CC 8005B3CC 8FA80010 */ lw $t0, 0x10($sp)
/* 367D0 8005B3D0 2508000C */ addiu $t0, $t0, 0xc
/* 367D4 8005B3D4 AFA80010 */ sw $t0, 0x10($sp)
/* 367D8 8005B3D8 86C20000 */ lh $v0, ($s6)
/* 367DC 8005B3DC 26940001 */ addiu $s4, $s4, 1
/* 367E0 8005B3E0 0282102A */ slt $v0, $s4, $v0
/* 367E4 8005B3E4 1440FF3C */ bnez $v0, .L8005B0D8
/* 367E8 8005B3E8 24E7001C */ addiu $a3, $a3, 0x1c
.L8005B3EC:
/* 367EC 8005B3EC 8FBF0044 */ lw $ra, 0x44($sp)
/* 367F0 8005B3F0 8FBE0040 */ lw $fp, 0x40($sp)
/* 367F4 8005B3F4 8FB7003C */ lw $s7, 0x3c($sp)
/* 367F8 8005B3F8 8FB60038 */ lw $s6, 0x38($sp)
/* 367FC 8005B3FC 8FB50034 */ lw $s5, 0x34($sp)
/* 36800 8005B400 8FB40030 */ lw $s4, 0x30($sp)
/* 36804 8005B404 8FB3002C */ lw $s3, 0x2c($sp)
/* 36808 8005B408 8FB20028 */ lw $s2, 0x28($sp)
/* 3680C 8005B40C 8FB10024 */ lw $s1, 0x24($sp)
/* 36810 8005B410 8FB00020 */ lw $s0, 0x20($sp)
/* 36814 8005B414 D7BC0068 */ ldc1 $f28, 0x68($sp)
/* 36818 8005B418 D7BA0060 */ ldc1 $f26, 0x60($sp)
/* 3681C 8005B41C D7B80058 */ ldc1 $f24, 0x58($sp)
/* 36820 8005B420 D7B60050 */ ldc1 $f22, 0x50($sp)
/* 36824 8005B424 D7B40048 */ ldc1 $f20, 0x48($sp)
/* 36828 8005B428 03E00008 */ jr $ra
/* 3682C 8005B42C 27BD0070 */ addiu $sp, $sp, 0x70