papermario/asm/nonmatchings/battle/area_jan/573C30/func_802183DC_573CFC.s
2021-01-13 00:42:27 +09:00

74 lines
3.7 KiB
ArmAsm
Generated

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802183DC_573CFC
/* 573CFC 802183DC 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 573D00 802183E0 AFB10014 */ sw $s1, 0x14($sp)
/* 573D04 802183E4 0080882D */ daddu $s1, $a0, $zero
/* 573D08 802183E8 AFBF0024 */ sw $ra, 0x24($sp)
/* 573D0C 802183EC AFB40020 */ sw $s4, 0x20($sp)
/* 573D10 802183F0 AFB3001C */ sw $s3, 0x1c($sp)
/* 573D14 802183F4 AFB20018 */ sw $s2, 0x18($sp)
/* 573D18 802183F8 AFB00010 */ sw $s0, 0x10($sp)
/* 573D1C 802183FC F7B40028 */ sdc1 $f20, 0x28($sp)
/* 573D20 80218400 8E30000C */ lw $s0, 0xc($s1)
/* 573D24 80218404 8E050000 */ lw $a1, ($s0)
/* 573D28 80218408 0C0B1EAF */ jal get_variable
/* 573D2C 8021840C 26100004 */ addiu $s0, $s0, 4
/* 573D30 80218410 8E140000 */ lw $s4, ($s0)
/* 573D34 80218414 26100004 */ addiu $s0, $s0, 4
/* 573D38 80218418 8E050000 */ lw $a1, ($s0)
/* 573D3C 8021841C 26100004 */ addiu $s0, $s0, 4
/* 573D40 80218420 0220202D */ daddu $a0, $s1, $zero
/* 573D44 80218424 0C0B1EAF */ jal get_variable
/* 573D48 80218428 0040902D */ daddu $s2, $v0, $zero
/* 573D4C 8021842C 8E050000 */ lw $a1, ($s0)
/* 573D50 80218430 26100004 */ addiu $s0, $s0, 4
/* 573D54 80218434 0220202D */ daddu $a0, $s1, $zero
/* 573D58 80218438 0C0B1EAF */ jal get_variable
/* 573D5C 8021843C 0040982D */ daddu $s3, $v0, $zero
/* 573D60 80218440 0220202D */ daddu $a0, $s1, $zero
/* 573D64 80218444 8E050000 */ lw $a1, ($s0)
/* 573D68 80218448 0C0B210B */ jal get_float_variable
/* 573D6C 8021844C 0040802D */ daddu $s0, $v0, $zero
/* 573D70 80218450 3C0140C9 */ lui $at, 0x40c9
/* 573D74 80218454 34210FD8 */ ori $at, $at, 0xfd8
/* 573D78 80218458 44814000 */ mtc1 $at, $f8
/* 573D7C 8021845C 44922000 */ mtc1 $s2, $f4
/* 573D80 80218460 00000000 */ nop
/* 573D84 80218464 46802120 */ cvt.s.w $f4, $f4
/* 573D88 80218468 46082202 */ mul.s $f8, $f4, $f8
/* 573D8C 8021846C 00000000 */ nop
/* 573D90 80218470 44903000 */ mtc1 $s0, $f6
/* 573D94 80218474 00000000 */ nop
/* 573D98 80218478 468031A0 */ cvt.s.w $f6, $f6
/* 573D9C 8021847C 3C013F80 */ lui $at, 0x3f80
/* 573DA0 80218480 44811000 */ mtc1 $at, $f2
/* 573DA4 80218484 46062103 */ div.s $f4, $f4, $f6
/* 573DA8 80218488 46041081 */ sub.s $f2, $f2, $f4
/* 573DAC 8021848C 46020502 */ mul.s $f20, $f0, $f2
/* 573DB0 80218490 00000000 */ nop
/* 573DB4 80218494 44936000 */ mtc1 $s3, $f12
/* 573DB8 80218498 00000000 */ nop
/* 573DBC 8021849C 46806320 */ cvt.s.w $f12, $f12
/* 573DC0 802184A0 0C00A874 */ jal cos_rad
/* 573DC4 802184A4 460C4303 */ div.s $f12, $f8, $f12
/* 573DC8 802184A8 4600A502 */ mul.s $f20, $f20, $f0
/* 573DCC 802184AC 00000000 */ nop
/* 573DD0 802184B0 0220202D */ daddu $a0, $s1, $zero
/* 573DD4 802184B4 4600A28D */ trunc.w.s $f10, $f20
/* 573DD8 802184B8 44065000 */ mfc1 $a2, $f10
/* 573DDC 802184BC 0C0B2026 */ jal set_variable
/* 573DE0 802184C0 0280282D */ daddu $a1, $s4, $zero
/* 573DE4 802184C4 8FBF0024 */ lw $ra, 0x24($sp)
/* 573DE8 802184C8 8FB40020 */ lw $s4, 0x20($sp)
/* 573DEC 802184CC 8FB3001C */ lw $s3, 0x1c($sp)
/* 573DF0 802184D0 8FB20018 */ lw $s2, 0x18($sp)
/* 573DF4 802184D4 8FB10014 */ lw $s1, 0x14($sp)
/* 573DF8 802184D8 8FB00010 */ lw $s0, 0x10($sp)
/* 573DFC 802184DC D7B40028 */ ldc1 $f20, 0x28($sp)
/* 573E00 802184E0 24020002 */ addiu $v0, $zero, 2
/* 573E04 802184E4 03E00008 */ jr $ra
/* 573E08 802184E8 27BD0030 */ addiu $sp, $sp, 0x30
/* 573E0C 802184EC 00000000 */ nop