papermario/asm/nonmatchings/code_d610_len_1330/func_800328A4.s
2020-08-12 22:37:16 -04:00

63 lines
2.6 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800328A4
/* 00DCA4 800328A4 44857000 */ mtc1 $a1, $f14
/* 00DCA8 800328A8 44868000 */ mtc1 $a2, $f16
/* 00DCAC 800328AC 14800003 */ bnez $a0, .L800328BC
/* 00DCB0 800328B0 24020006 */ addiu $v0, $zero, 6
.L800328B4:
/* 00DCB4 800328B4 03E00008 */ jr $ra
/* 00DCB8 800328B8 0000102D */ daddu $v0, $zero, $zero
.L800328BC:
/* 00DCBC 800328BC 8C830000 */ lw $v1, ($a0)
/* 00DCC0 800328C0 1462FFFC */ bne $v1, $v0, .L800328B4
/* 00DCC4 800328C4 00000000 */ nop
/* 00DCC8 800328C8 C482000C */ lwc1 $f2, 0xc($a0)
/* 00DCCC 800328CC 46027301 */ sub.s $f12, $f14, $f2
/* 00DCD0 800328D0 C4880018 */ lwc1 $f8, 0x18($a0)
/* 00DCD4 800328D4 46024081 */ sub.s $f2, $f8, $f2
/* 00DCD8 800328D8 460C1282 */ mul.s $f10, $f2, $f12
/* 00DCDC 800328DC 00000000 */ nop
/* 00DCE0 800328E0 C4800014 */ lwc1 $f0, 0x14($a0)
/* 00DCE4 800328E4 46008301 */ sub.s $f12, $f16, $f0
/* 00DCE8 800328E8 C4840020 */ lwc1 $f4, 0x20($a0)
/* 00DCEC 800328EC 46002001 */ sub.s $f0, $f4, $f0
/* 00DCF0 800328F0 460C0182 */ mul.s $f6, $f0, $f12
/* 00DCF4 800328F4 00000000 */ nop
/* 00DCF8 800328F8 46087301 */ sub.s $f12, $f14, $f8
/* 00DCFC 800328FC 460C1082 */ mul.s $f2, $f2, $f12
/* 00DD00 80032900 00000000 */ nop
/* 00DD04 80032904 46048301 */ sub.s $f12, $f16, $f4
/* 00DD08 80032908 460C0002 */ mul.s $f0, $f0, $f12
/* 00DD0C 8003290C 00000000 */ nop
/* 00DD10 80032910 46065280 */ add.s $f10, $f10, $f6
/* 00DD14 80032914 44802000 */ mtc1 $zero, $f4
/* 00DD18 80032918 00000000 */ nop
/* 00DD1C 8003291C 4604503C */ c.lt.s $f10, $f4
/* 00DD20 80032920 00000000 */ nop
/* 00DD24 80032924 45000005 */ bc1f .L8003293C
/* 00DD28 80032928 46001080 */ add.s $f2, $f2, $f0
/* 00DD2C 8003292C 4604103C */ c.lt.s $f2, $f4
/* 00DD30 80032930 00000000 */ nop
/* 00DD34 80032934 4501000C */ bc1t .L80032968
/* 00DD38 80032938 2402FFFF */ addiu $v0, $zero, -1
.L8003293C:
/* 00DD3C 8003293C 44800000 */ mtc1 $zero, $f0
/* 00DD40 80032940 00000000 */ nop
/* 00DD44 80032944 460A003C */ c.lt.s $f0, $f10
/* 00DD48 80032948 00000000 */ nop
/* 00DD4C 8003294C 45000006 */ bc1f .L80032968
/* 00DD50 80032950 0000102D */ daddu $v0, $zero, $zero
/* 00DD54 80032954 4602003C */ c.lt.s $f0, $f2
/* 00DD58 80032958 00000000 */ nop
/* 00DD5C 8003295C 45010002 */ bc1t .L80032968
/* 00DD60 80032960 24020001 */ addiu $v0, $zero, 1
/* 00DD64 80032964 0000102D */ daddu $v0, $zero, $zero
.L80032968:
/* 00DD68 80032968 03E00008 */ jr $ra
/* 00DD6C 8003296C 00000000 */ nop