papermario/asm/nonmatchings/code_8a160_len_700/func_800F0CB0.s

50 lines
2.3 KiB
ArmAsm
Raw Normal View History

2020-08-04 00:32:21 +02:00
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
2020-08-04 08:49:11 +02:00
glabel func_800F0CB0
2020-09-28 03:13:56 +02:00
/* 8A160 800F0CB0 3C038011 */ lui $v1, %hi(D_8010D000)
/* 8A164 800F0CB4 2463D000 */ addiu $v1, $v1, %lo(D_8010D000)
2020-09-24 05:16:13 +02:00
/* 8A168 800F0CB8 00041040 */ sll $v0, $a0, 1
/* 8A16C 800F0CBC 00441021 */ addu $v0, $v0, $a0
/* 8A170 800F0CC0 000210C0 */ sll $v0, $v0, 3
/* 8A174 800F0CC4 00441021 */ addu $v0, $v0, $a0
/* 8A178 800F0CC8 00021100 */ sll $v0, $v0, 4
/* 8A17C 800F0CCC 00441023 */ subu $v0, $v0, $a0
/* 8A180 800F0CD0 00021080 */ sll $v0, $v0, 2
/* 8A184 800F0CD4 44850000 */ mtc1 $a1, $f0
/* 8A188 800F0CD8 00432821 */ addu $a1, $v0, $v1
/* 8A18C 800F0CDC 44861000 */ mtc1 $a2, $f2
/* 8A190 800F0CE0 44872000 */ mtc1 $a3, $f4
/* 8A194 800F0CE4 1C80001B */ bgtz $a0, .L800F0D54
/* 8A198 800F0CE8 24060039 */ addiu $a2, $zero, 0x39
/* 8A19C 800F0CEC 24020001 */ addiu $v0, $zero, 1
/* 8A1A0 800F0CF0 A0A20000 */ sb $v0, ($a1)
/* 8A1A4 800F0CF4 24020028 */ addiu $v0, $zero, 0x28
/* 8A1A8 800F0CF8 E4A00008 */ swc1 $f0, 8($a1)
/* 8A1AC 800F0CFC E4A2000C */ swc1 $f2, 0xc($a1)
/* 8A1B0 800F0D00 E4A40018 */ swc1 $f4, 0x18($a1)
/* 8A1B4 800F0D04 A0A20001 */ sb $v0, 1($a1)
/* 8A1B8 800F0D08 A0A00002 */ sb $zero, 2($a1)
/* 8A1BC 800F0D0C 24A5001C */ addiu $a1, $a1, 0x1c
/* 8A1C0 800F0D10 24030001 */ addiu $v1, $zero, 1
/* 8A1C4 800F0D14 44801000 */ mtc1 $zero, $f2
2020-08-04 00:32:21 +02:00
.L800F0D18:
2020-09-24 05:16:13 +02:00
/* 8A1C8 800F0D18 44830000 */ mtc1 $v1, $f0
2021-01-12 16:42:27 +01:00
/* 8A1CC 800F0D1C 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 8A1D0 800F0D20 46800020 */ cvt.s.w $f0, $f0
/* 8A1D4 800F0D24 46000007 */ neg.s $f0, $f0
/* 8A1D8 800F0D28 46020002 */ mul.s $f0, $f0, $f2
2021-01-12 16:42:27 +01:00
/* 8A1DC 800F0D2C 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 8A1E0 800F0D30 24630001 */ addiu $v1, $v1, 1
/* 8A1E4 800F0D34 4600018D */ trunc.w.s $f6, $f0
/* 8A1E8 800F0D38 44023000 */ mfc1 $v0, $f6
2021-01-12 16:42:27 +01:00
/* 8A1EC 800F0D3C 00000000 */ nop
2020-09-24 05:16:13 +02:00
/* 8A1F0 800F0D40 2442FFFF */ addiu $v0, $v0, -1
/* 8A1F4 800F0D44 A0A20007 */ sb $v0, 7($a1)
/* 8A1F8 800F0D48 0066102A */ slt $v0, $v1, $a2
/* 8A1FC 800F0D4C 1440FFF2 */ bnez $v0, .L800F0D18
/* 8A200 800F0D50 24A5001C */ addiu $a1, $a1, 0x1c
2020-08-04 00:32:21 +02:00
.L800F0D54:
2020-09-24 05:16:13 +02:00
/* 8A204 800F0D54 03E00008 */ jr $ra
2021-01-12 16:42:27 +01:00
/* 8A208 800F0D58 00000000 */ nop