mirror of
https://github.com/pmret/papermario.git
synced 2024-11-19 01:12:28 +01:00
78 lines
4.0 KiB
ArmAsm
78 lines
4.0 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
glabel func_802180CC_5B157C
|
||
|
/* 5B157C 802180CC 27BDFFC8 */ addiu $sp, $sp, -0x38
|
||
|
/* 5B1580 802180D0 AFB10014 */ sw $s1, 0x14($sp)
|
||
|
/* 5B1584 802180D4 0080882D */ daddu $s1, $a0, $zero
|
||
|
/* 5B1588 802180D8 AFBF0024 */ sw $ra, 0x24($sp)
|
||
|
/* 5B158C 802180DC AFB40020 */ sw $s4, 0x20($sp)
|
||
|
/* 5B1590 802180E0 AFB3001C */ sw $s3, 0x1c($sp)
|
||
|
/* 5B1594 802180E4 AFB20018 */ sw $s2, 0x18($sp)
|
||
|
/* 5B1598 802180E8 AFB00010 */ sw $s0, 0x10($sp)
|
||
|
/* 5B159C 802180EC F7B60030 */ sdc1 $f22, 0x30($sp)
|
||
|
/* 5B15A0 802180F0 F7B40028 */ sdc1 $f20, 0x28($sp)
|
||
|
/* 5B15A4 802180F4 8E30000C */ lw $s0, 0xc($s1)
|
||
|
/* 5B15A8 802180F8 8E050000 */ lw $a1, ($s0)
|
||
|
/* 5B15AC 802180FC 0C0B1EAF */ jal get_variable
|
||
|
/* 5B15B0 80218100 26100004 */ addiu $s0, $s0, 4
|
||
|
/* 5B15B4 80218104 8E050000 */ lw $a1, ($s0)
|
||
|
/* 5B15B8 80218108 26100004 */ addiu $s0, $s0, 4
|
||
|
/* 5B15BC 8021810C 0220202D */ daddu $a0, $s1, $zero
|
||
|
/* 5B15C0 80218110 0C0B1EAF */ jal get_variable
|
||
|
/* 5B15C4 80218114 0040982D */ daddu $s3, $v0, $zero
|
||
|
/* 5B15C8 80218118 8E050000 */ lw $a1, ($s0)
|
||
|
/* 5B15CC 8021811C 26100004 */ addiu $s0, $s0, 4
|
||
|
/* 5B15D0 80218120 0220202D */ daddu $a0, $s1, $zero
|
||
|
/* 5B15D4 80218124 0C0B1EAF */ jal get_variable
|
||
|
/* 5B15D8 80218128 0040A02D */ daddu $s4, $v0, $zero
|
||
|
/* 5B15DC 8021812C 0220202D */ daddu $a0, $s1, $zero
|
||
|
/* 5B15E0 80218130 8E050000 */ lw $a1, ($s0)
|
||
|
/* 5B15E4 80218134 0C0B1EAF */ jal get_variable
|
||
|
/* 5B15E8 80218138 0040902D */ daddu $s2, $v0, $zero
|
||
|
/* 5B15EC 8021813C 4482A000 */ mtc1 $v0, $f20
|
||
|
/* 5B15F0 80218140 00000000 */ nop
|
||
|
/* 5B15F4 80218144 4680A520 */ cvt.s.w $f20, $f20
|
||
|
/* 5B15F8 80218148 0C00A8D4 */ jal cos_deg
|
||
|
/* 5B15FC 8021814C 4600A306 */ mov.s $f12, $f20
|
||
|
/* 5B1600 80218150 4492B000 */ mtc1 $s2, $f22
|
||
|
/* 5B1604 80218154 00000000 */ nop
|
||
|
/* 5B1608 80218158 4680B5A0 */ cvt.s.w $f22, $f22
|
||
|
/* 5B160C 8021815C 4600B002 */ mul.s $f0, $f22, $f0
|
||
|
/* 5B1610 80218160 00000000 */ nop
|
||
|
/* 5B1614 80218164 4600A306 */ mov.s $f12, $f20
|
||
|
/* 5B1618 80218168 4493A000 */ mtc1 $s3, $f20
|
||
|
/* 5B161C 8021816C 00000000 */ nop
|
||
|
/* 5B1620 80218170 4680A520 */ cvt.s.w $f20, $f20
|
||
|
/* 5B1624 80218174 4600A500 */ add.s $f20, $f20, $f0
|
||
|
/* 5B1628 80218178 0C00A8BB */ jal sin_deg
|
||
|
/* 5B162C 8021817C 26100004 */ addiu $s0, $s0, 4
|
||
|
/* 5B1630 80218180 4600B582 */ mul.s $f22, $f22, $f0
|
||
|
/* 5B1634 80218184 00000000 */ nop
|
||
|
/* 5B1638 80218188 8E050000 */ lw $a1, ($s0)
|
||
|
/* 5B163C 8021818C 26100004 */ addiu $s0, $s0, 4
|
||
|
/* 5B1640 80218190 0220202D */ daddu $a0, $s1, $zero
|
||
|
/* 5B1644 80218194 4406A000 */ mfc1 $a2, $f20
|
||
|
/* 5B1648 80218198 4494A000 */ mtc1 $s4, $f20
|
||
|
/* 5B164C 8021819C 00000000 */ nop
|
||
|
/* 5B1650 802181A0 4680A520 */ cvt.s.w $f20, $f20
|
||
|
/* 5B1654 802181A4 0C0B2190 */ jal set_float_variable
|
||
|
/* 5B1658 802181A8 4616A501 */ sub.s $f20, $f20, $f22
|
||
|
/* 5B165C 802181AC 8E050000 */ lw $a1, ($s0)
|
||
|
/* 5B1660 802181B0 4406A000 */ mfc1 $a2, $f20
|
||
|
/* 5B1664 802181B4 0C0B2190 */ jal set_float_variable
|
||
|
/* 5B1668 802181B8 0220202D */ daddu $a0, $s1, $zero
|
||
|
/* 5B166C 802181BC 8FBF0024 */ lw $ra, 0x24($sp)
|
||
|
/* 5B1670 802181C0 8FB40020 */ lw $s4, 0x20($sp)
|
||
|
/* 5B1674 802181C4 8FB3001C */ lw $s3, 0x1c($sp)
|
||
|
/* 5B1678 802181C8 8FB20018 */ lw $s2, 0x18($sp)
|
||
|
/* 5B167C 802181CC 8FB10014 */ lw $s1, 0x14($sp)
|
||
|
/* 5B1680 802181D0 8FB00010 */ lw $s0, 0x10($sp)
|
||
|
/* 5B1684 802181D4 D7B60030 */ ldc1 $f22, 0x30($sp)
|
||
|
/* 5B1688 802181D8 D7B40028 */ ldc1 $f20, 0x28($sp)
|
||
|
/* 5B168C 802181DC 24020002 */ addiu $v0, $zero, 2
|
||
|
/* 5B1690 802181E0 03E00008 */ jr $ra
|
||
|
/* 5B1694 802181E4 27BD0038 */ addiu $sp, $sp, 0x38
|
||
|
/* 5B1698 802181E8 00000000 */ nop
|
||
|
/* 5B169C 802181EC 00000000 */ nop
|