papermario/asm/nonmatchings/code_341d0/func_80059BD4.s
dark-samus 8d533d5615 stuff
2021-01-15 12:01:44 -05:00

51 lines
2.2 KiB
ArmAsm
Generated

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80059BD4
/* 34FD4 80059BD4 C4800010 */ lwc1 $f0, 0x10($a0)
/* 34FD8 80059BD8 44851000 */ mtc1 $a1, $f2
/* 34FDC 80059BDC 00000000 */ nop
/* 34FE0 80059BE0 468010A0 */ cvt.s.w $f2, $f2
/* 34FE4 80059BE4 46020002 */ mul.s $f0, $f0, $f2
/* 34FE8 80059BE8 00000000 */ nop
/* 34FEC 80059BEC C4820014 */ lwc1 $f2, 0x14($a0)
/* 34FF0 80059BF0 46001080 */ add.s $f2, $f2, $f0
/* 34FF4 80059BF4 24820014 */ addiu $v0, $a0, 0x14
/* 34FF8 80059BF8 3C014000 */ lui $at, 0x4000
/* 34FFC 80059BFC 44810800 */ mtc1 $at, $f1
/* 35000 80059C00 44800000 */ mtc1 $zero, $f0
/* 35004 80059C04 46001121 */ cvt.d.s $f4, $f2
/* 35008 80059C08 4624003C */ c.lt.d $f0, $f4
/* 3500C 80059C0C 00000000 */ nop
/* 35010 80059C10 45000008 */ bc1f .L80059C34
/* 35014 80059C14 E4820014 */ swc1 $f2, 0x14($a0)
/* 35018 80059C18 3C014010 */ lui $at, 0x4010
/* 3501C 80059C1C 44810800 */ mtc1 $at, $f1
/* 35020 80059C20 44800000 */ mtc1 $zero, $f0
/* 35024 80059C24 00000000 */ nop
/* 35028 80059C28 46202001 */ sub.d $f0, $f4, $f0
/* 3502C 80059C2C 0801670E */ j .L80059C38
/* 35030 80059C30 46200020 */ cvt.s.d $f0, $f0
.L80059C34:
/* 35034 80059C34 46001006 */ mov.s $f0, $f2
.L80059C38:
/* 35038 80059C38 E4400000 */ swc1 $f0, ($v0)
/* 3503C 80059C3C C4820014 */ lwc1 $f2, 0x14($a0)
/* 35040 80059C40 44800000 */ mtc1 $zero, $f0
/* 35044 80059C44 00000000 */ nop
/* 35048 80059C48 4600103C */ c.lt.s $f2, $f0
/* 3504C 80059C4C 00000000 */ nop
/* 35050 80059C50 45030001 */ bc1tl .L80059C58
/* 35054 80059C54 46001087 */ neg.s $f2, $f2
.L80059C58:
/* 35058 80059C58 3C013FF0 */ lui $at, 0x3ff0
/* 3505C 80059C5C 44810800 */ mtc1 $at, $f1
/* 35060 80059C60 44800000 */ mtc1 $zero, $f0
/* 35064 80059C64 460010A1 */ cvt.d.s $f2, $f2
/* 35068 80059C68 46201081 */ sub.d $f2, $f2, $f0
/* 3506C 80059C6C C480001C */ lwc1 $f0, 0x1c($a0)
/* 35070 80059C70 462010A0 */ cvt.s.d $f2, $f2
/* 35074 80059C74 46020002 */ mul.s $f0, $f0, $f2
/* 35078 80059C78 03E00008 */ jr $ra
/* 3507C 80059C7C 00000000 */ nop