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

59 lines
2.6 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8024E738
/* 141A78 8024E738 3C038027 */ lui $v1, 0x8027
/* 141A7C 8024E73C 24630704 */ addiu $v1, $v1, 0x704
/* 141A80 8024E740 3C018027 */ lui $at, 0x8027
/* 141A84 8024E744 E4220714 */ swc1 $f2, 0x714($at)
/* 141A88 8024E748 AC600000 */ sw $zero, ($v1)
/* 141A8C 8024E74C C4660000 */ lwc1 $f6, ($v1)
/* 141A90 8024E750 3C018027 */ lui $at, 0x8027
/* 141A94 8024E754 C4200710 */ lwc1 $f0, 0x710($at)
/* 141A98 8024E758 46800020 */ cvt.s.w $f0, $f0
/* 141A9C 8024E75C 46061080 */ add.s $f2, $f2, $f6
/* 141AA0 8024E760 3C048027 */ lui $a0, 0x8027
/* 141AA4 8024E764 24840708 */ addiu $a0, $a0, 0x708
/* 141AA8 8024E768 3C018027 */ lui $at, 0x8027
/* 141AAC 8024E76C E4200718 */ swc1 $f0, 0x718($at)
/* 141AB0 8024E770 46060000 */ add.s $f0, $f0, $f6
/* 141AB4 8024E774 3C018027 */ lui $at, 0x8027
/* 141AB8 8024E778 D4240080 */ ldc1 $f4, 0x80($at)
/* 141ABC 8024E77C 460010A1 */ cvt.d.s $f2, $f2
/* 141AC0 8024E780 46241081 */ sub.d $f2, $f2, $f4
/* 141AC4 8024E784 3C018027 */ lui $at, 0x8027
/* 141AC8 8024E788 D4240088 */ ldc1 $f4, 0x88($at)
/* 141ACC 8024E78C 46000021 */ cvt.d.s $f0, $f0
/* 141AD0 8024E790 46240001 */ sub.d $f0, $f0, $f4
/* 141AD4 8024E794 4620120D */ trunc.w.d $f8, $f2
/* 141AD8 8024E798 44024000 */ mfc1 $v0, $f8
/* 141ADC 8024E79C 00000000 */ nop
/* 141AE0 8024E7A0 44821000 */ mtc1 $v0, $f2
/* 141AE4 8024E7A4 00000000 */ nop
/* 141AE8 8024E7A8 468010A0 */ cvt.s.w $f2, $f2
/* 141AEC 8024E7AC 46023081 */ sub.s $f2, $f6, $f2
/* 141AF0 8024E7B0 4620020D */ trunc.w.d $f8, $f0
/* 141AF4 8024E7B4 44024000 */ mfc1 $v0, $f8
/* 141AF8 8024E7B8 00000000 */ nop
/* 141AFC 8024E7BC 44820000 */ mtc1 $v0, $f0
/* 141B00 8024E7C0 00000000 */ nop
/* 141B04 8024E7C4 46800020 */ cvt.s.w $f0, $f0
/* 141B08 8024E7C8 46003001 */ sub.s $f0, $f6, $f0
/* 141B0C 8024E7CC AC800000 */ sw $zero, ($a0)
/* 141B10 8024E7D0 E4620000 */ swc1 $f2, ($v1)
/* 141B14 8024E7D4 4602303C */ c.lt.s $f6, $f2
/* 141B18 8024E7D8 00000000 */ nop
/* 141B1C 8024E7DC 45000002 */ bc1f .L8024E7E8
/* 141B20 8024E7E0 E4800000 */ swc1 $f0, ($a0)
/* 141B24 8024E7E4 E4660000 */ swc1 $f6, ($v1)
.L8024E7E8:
/* 141B28 8024E7E8 4600303C */ c.lt.s $f6, $f0
/* 141B2C 8024E7EC 00000000 */ nop
/* 141B30 8024E7F0 45030001 */ bc1tl .L8024E7F8
/* 141B34 8024E7F4 E4860000 */ swc1 $f6, ($a0)
.L8024E7F8:
/* 141B38 8024E7F8 C4620000 */ lwc1 $f2, ($v1)
/* 141B3C 8024E7FC 3C01C2AC */ lui $at, 0xc2ac
/* 141B40 8024E800 44810000 */ mtc1 $at, $f0