papermario/asm/nonmatchings/code_362a0_len_2f70/get_collider_center.s
2020-08-12 21:56:23 -04:00

37 lines
1.5 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.include "include/macro.inc"
glabel get_collider_center
/* 037210 8005BE10 000410C0 */ sll $v0, $a0, 3
/* 037214 8005BE14 00441023 */ subu $v0, $v0, $a0
/* 037218 8005BE18 3C03800B */ lui $v1, 0x800b
/* 03721C 8005BE1C 8C6342E4 */ lw $v1, 0x42e4($v1)
/* 037220 8005BE20 00021080 */ sll $v0, $v0, 2
/* 037224 8005BE24 00431021 */ addu $v0, $v0, $v1
/* 037228 8005BE28 8C420010 */ lw $v0, 0x10($v0)
/* 03722C 8005BE2C C4400000 */ lwc1 $f0, ($v0)
/* 037230 8005BE30 C442000C */ lwc1 $f2, 0xc($v0)
/* 037234 8005BE34 46020000 */ add.s $f0, $f0, $f2
/* 037238 8005BE38 3C013F00 */ lui $at, 0x3f00
/* 03723C 8005BE3C 44812000 */ mtc1 $at, $f4
/* 037240 8005BE40 00000000 */ nop
/* 037244 8005BE44 46040002 */ mul.s $f0, $f0, $f4
/* 037248 8005BE48 00000000 */ nop
/* 03724C 8005BE4C E4A00000 */ swc1 $f0, ($a1)
/* 037250 8005BE50 C4400004 */ lwc1 $f0, 4($v0)
/* 037254 8005BE54 C4420010 */ lwc1 $f2, 0x10($v0)
/* 037258 8005BE58 46020000 */ add.s $f0, $f0, $f2
/* 03725C 8005BE5C 46040002 */ mul.s $f0, $f0, $f4
/* 037260 8005BE60 00000000 */ nop
/* 037264 8005BE64 E4C00000 */ swc1 $f0, ($a2)
/* 037268 8005BE68 C4400008 */ lwc1 $f0, 8($v0)
/* 03726C 8005BE6C C4420014 */ lwc1 $f2, 0x14($v0)
/* 037270 8005BE70 46020000 */ add.s $f0, $f0, $f2
/* 037274 8005BE74 46040002 */ mul.s $f0, $f0, $f4
/* 037278 8005BE78 00000000 */ nop
/* 03727C 8005BE7C 03E00008 */ jr $ra
/* 037280 8005BE80 E4E00000 */ swc1 $f0, ($a3)