mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
96 lines
4.3 KiB
ArmAsm
96 lines
4.3 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
|
||
|
glabel func_80033394
|
||
|
/* 00E794 80033394 27BDFFD8 */ addiu $sp, $sp, -0x28
|
||
|
/* 00E798 80033398 AFB00010 */ sw $s0, 0x10($sp)
|
||
|
/* 00E79C 8003339C 0080802D */ daddu $s0, $a0, $zero
|
||
|
/* 00E7A0 800333A0 AFBF0014 */ sw $ra, 0x14($sp)
|
||
|
/* 00E7A4 800333A4 F7B60020 */ sdc1 $f22, 0x20($sp)
|
||
|
/* 00E7A8 800333A8 F7B40018 */ sdc1 $f20, 0x18($sp)
|
||
|
/* 00E7AC 800333AC C602003C */ lwc1 $f2, 0x3c($s0)
|
||
|
/* 00E7B0 800333B0 C6000048 */ lwc1 $f0, 0x48($s0)
|
||
|
/* 00E7B4 800333B4 46001081 */ sub.s $f2, $f2, $f0
|
||
|
/* 00E7B8 800333B8 46021082 */ mul.s $f2, $f2, $f2
|
||
|
/* 00E7BC 800333BC 00000000 */ nop
|
||
|
/* 00E7C0 800333C0 C6060040 */ lwc1 $f6, 0x40($s0)
|
||
|
/* 00E7C4 800333C4 C600004C */ lwc1 $f0, 0x4c($s0)
|
||
|
/* 00E7C8 800333C8 46003181 */ sub.s $f6, $f6, $f0
|
||
|
/* 00E7CC 800333CC 46063182 */ mul.s $f6, $f6, $f6
|
||
|
/* 00E7D0 800333D0 00000000 */ nop
|
||
|
/* 00E7D4 800333D4 C6040050 */ lwc1 $f4, 0x50($s0)
|
||
|
/* 00E7D8 800333D8 C6000044 */ lwc1 $f0, 0x44($s0)
|
||
|
/* 00E7DC 800333DC 46040001 */ sub.s $f0, $f0, $f4
|
||
|
/* 00E7E0 800333E0 46000002 */ mul.s $f0, $f0, $f0
|
||
|
/* 00E7E4 800333E4 00000000 */ nop
|
||
|
/* 00E7E8 800333E8 46061080 */ add.s $f2, $f2, $f6
|
||
|
/* 00E7EC 800333EC 46001300 */ add.s $f12, $f2, $f0
|
||
|
/* 00E7F0 800333F0 46006584 */ sqrt.s $f22, $f12
|
||
|
/* 00E7F4 800333F4 4616B032 */ c.eq.s $f22, $f22
|
||
|
/* 00E7F8 800333F8 00000000 */ nop
|
||
|
/* 00E7FC 800333FC 45010004 */ bc1t .L80033410
|
||
|
/* 00E800 80033400 00000000 */ nop
|
||
|
/* 00E804 80033404 0C0187BC */ jal sqrtf
|
||
|
/* 00E808 80033408 00000000 */ nop
|
||
|
/* 00E80C 8003340C 46000586 */ mov.s $f22, $f0
|
||
|
.L80033410:
|
||
|
/* 00E810 80033410 C6140018 */ lwc1 $f20, 0x18($s0)
|
||
|
/* 00E814 80033414 3C013F00 */ lui $at, 0x3f00
|
||
|
/* 00E818 80033418 44810000 */ mtc1 $at, $f0
|
||
|
/* 00E81C 8003341C 00000000 */ nop
|
||
|
/* 00E820 80033420 4600A502 */ mul.s $f20, $f20, $f0
|
||
|
/* 00E824 80033424 00000000 */ nop
|
||
|
/* 00E828 80033428 3C014334 */ lui $at, 0x4334
|
||
|
/* 00E82C 8003342C 44810000 */ mtc1 $at, $f0
|
||
|
/* 00E830 80033430 3C014049 */ lui $at, 0x4049
|
||
|
/* 00E834 80033434 34210FD8 */ ori $at, $at, 0xfd8
|
||
|
/* 00E838 80033438 44811000 */ mtc1 $at, $f2
|
||
|
/* 00E83C 8003343C 4600A503 */ div.s $f20, $f20, $f0
|
||
|
/* 00E840 80033440 4602A502 */ mul.s $f20, $f20, $f2
|
||
|
/* 00E844 80033444 00000000 */ nop
|
||
|
/* 00E848 80033448 0C00A85B */ jal sin_rad
|
||
|
/* 00E84C 8003344C 4600A306 */ mov.s $f12, $f20
|
||
|
/* 00E850 80033450 4600B582 */ mul.s $f22, $f22, $f0
|
||
|
/* 00E854 80033454 00000000 */ nop
|
||
|
/* 00E858 80033458 0C00A874 */ jal cos_rad
|
||
|
/* 00E85C 8003345C 4600A306 */ mov.s $f12, $f20
|
||
|
/* 00E860 80033460 8602000A */ lh $v0, 0xa($s0)
|
||
|
/* 00E864 80033464 4600B583 */ div.s $f22, $f22, $f0
|
||
|
/* 00E868 80033468 44820000 */ mtc1 $v0, $f0
|
||
|
/* 00E86C 8003346C 00000000 */ nop
|
||
|
/* 00E870 80033470 46800020 */ cvt.s.w $f0, $f0
|
||
|
/* 00E874 80033474 4600B582 */ mul.s $f22, $f22, $f0
|
||
|
/* 00E878 80033478 00000000 */ nop
|
||
|
/* 00E87C 8003347C 8602000C */ lh $v0, 0xc($s0)
|
||
|
/* 00E880 80033480 C6020520 */ lwc1 $f2, 0x520($s0)
|
||
|
/* 00E884 80033484 44820000 */ mtc1 $v0, $f0
|
||
|
/* 00E888 80033488 00000000 */ nop
|
||
|
/* 00E88C 8003348C 46800020 */ cvt.s.w $f0, $f0
|
||
|
/* 00E890 80033490 4600B583 */ div.s $f22, $f22, $f0
|
||
|
/* 00E894 80033494 4602B582 */ mul.s $f22, $f22, $f2
|
||
|
/* 00E898 80033498 00000000 */ nop
|
||
|
/* 00E89C 8003349C 4405B000 */ mfc1 $a1, $f22
|
||
|
/* 00E8A0 800334A0 0C00CA5C */ jal func_80032970
|
||
|
/* 00E8A4 800334A4 0200202D */ daddu $a0, $s0, $zero
|
||
|
/* 00E8A8 800334A8 0C00CB19 */ jal func_80032C64
|
||
|
/* 00E8AC 800334AC 0200202D */ daddu $a0, $s0, $zero
|
||
|
/* 00E8B0 800334B0 26040154 */ addiu $a0, $s0, 0x154
|
||
|
/* 00E8B4 800334B4 C602050C */ lwc1 $f2, 0x50c($s0)
|
||
|
/* 00E8B8 800334B8 44800000 */ mtc1 $zero, $f0
|
||
|
/* 00E8BC 800334BC 46001087 */ neg.s $f2, $f2
|
||
|
/* 00E8C0 800334C0 44060000 */ mfc1 $a2, $f0
|
||
|
/* 00E8C4 800334C4 44051000 */ mfc1 $a1, $f2
|
||
|
/* 00E8C8 800334C8 0C019E40 */ jal guTranslateF
|
||
|
/* 00E8CC 800334CC 00C0382D */ daddu $a3, $a2, $zero
|
||
|
/* 00E8D0 800334D0 8FBF0014 */ lw $ra, 0x14($sp)
|
||
|
/* 00E8D4 800334D4 8FB00010 */ lw $s0, 0x10($sp)
|
||
|
/* 00E8D8 800334D8 D7B60020 */ ldc1 $f22, 0x20($sp)
|
||
|
/* 00E8DC 800334DC D7B40018 */ ldc1 $f20, 0x18($sp)
|
||
|
/* 00E8E0 800334E0 03E00008 */ jr $ra
|
||
|
/* 00E8E4 800334E4 27BD0028 */ addiu $sp, $sp, 0x28
|
||
|
|
||
|
/* 00E8E8 800334E8 03E00008 */ jr $ra
|
||
|
/* 00E8EC 800334EC 00000000 */ nop
|
||
|
|