papermario/asm/nonmatchings/battle/area_sam2/63D9F0/func_802196FC_63E8DC.s

70 lines
3.6 KiB
ArmAsm
Raw Normal View History

2020-12-28 06:34:30 +01:00
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802196FC_63E8DC
/* 63E8DC 802196FC 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 63E8E0 80219700 AFB10014 */ sw $s1, 0x14($sp)
/* 63E8E4 80219704 0080882D */ daddu $s1, $a0, $zero
/* 63E8E8 80219708 AFBF0020 */ sw $ra, 0x20($sp)
/* 63E8EC 8021970C AFB3001C */ sw $s3, 0x1c($sp)
/* 63E8F0 80219710 AFB20018 */ sw $s2, 0x18($sp)
/* 63E8F4 80219714 AFB00010 */ sw $s0, 0x10($sp)
/* 63E8F8 80219718 F7B40028 */ sdc1 $f20, 0x28($sp)
/* 63E8FC 8021971C 8E30000C */ lw $s0, 0xc($s1)
/* 63E900 80219720 8E050000 */ lw $a1, ($s0)
/* 63E904 80219724 0C0B1EAF */ jal get_variable
/* 63E908 80219728 26100004 */ addiu $s0, $s0, 4
/* 63E90C 8021972C 3C036666 */ lui $v1, 0x6666
/* 63E910 80219730 34636667 */ ori $v1, $v1, 0x6667
/* 63E914 80219734 00430018 */ mult $v0, $v1
/* 63E918 80219738 000217C3 */ sra $v0, $v0, 0x1f
/* 63E91C 8021973C 3C0140C9 */ lui $at, 0x40c9
/* 63E920 80219740 34210FD0 */ ori $at, $at, 0xfd0
/* 63E924 80219744 44810000 */ mtc1 $at, $f0
/* 63E928 80219748 00003810 */ mfhi $a3
/* 63E92C 8021974C 00071883 */ sra $v1, $a3, 2
/* 63E930 80219750 00621823 */ subu $v1, $v1, $v0
/* 63E934 80219754 44836000 */ mtc1 $v1, $f12
/* 63E938 80219758 00000000 */ nop
/* 63E93C 8021975C 46806320 */ cvt.s.w $f12, $f12
/* 63E940 80219760 46006302 */ mul.s $f12, $f12, $f0
/* 63E944 80219764 00000000 */ nop
/* 63E948 80219768 3C0143B4 */ lui $at, 0x43b4
/* 63E94C 8021976C 44810000 */ mtc1 $at, $f0
/* 63E950 80219770 3C014100 */ lui $at, 0x4100
/* 63E954 80219774 44811000 */ mtc1 $at, $f2
/* 63E958 80219778 46006303 */ div.s $f12, $f12, $f0
/* 63E95C 8021977C 46026302 */ mul.s $f12, $f12, $f2
/* 63E960 80219780 00000000 */ nop
/* 63E964 80219784 8E120000 */ lw $s2, ($s0)
/* 63E968 80219788 26100004 */ addiu $s0, $s0, 4
/* 63E96C 8021978C 8E130000 */ lw $s3, ($s0)
/* 63E970 80219790 0C00A85B */ jal sin_rad
/* 63E974 80219794 8E100004 */ lw $s0, 4($s0)
/* 63E978 80219798 0220202D */ daddu $a0, $s1, $zero
/* 63E97C 8021979C 3C014120 */ lui $at, 0x4120
/* 63E980 802197A0 44811000 */ mtc1 $at, $f2
/* 63E984 802197A4 0240282D */ daddu $a1, $s2, $zero
/* 63E988 802197A8 46020502 */ mul.s $f20, $f0, $f2
/* 63E98C 802197AC 00000000 */ nop
/* 63E990 802197B0 0C0B2026 */ jal set_variable
/* 63E994 802197B4 0000302D */ daddu $a2, $zero, $zero
/* 63E998 802197B8 0220202D */ daddu $a0, $s1, $zero
/* 63E99C 802197BC 4600A10D */ trunc.w.s $f4, $f20
/* 63E9A0 802197C0 44062000 */ mfc1 $a2, $f4
/* 63E9A4 802197C4 0C0B2026 */ jal set_variable
/* 63E9A8 802197C8 0260282D */ daddu $a1, $s3, $zero
/* 63E9AC 802197CC 0220202D */ daddu $a0, $s1, $zero
/* 63E9B0 802197D0 0200282D */ daddu $a1, $s0, $zero
/* 63E9B4 802197D4 0C0B2026 */ jal set_variable
/* 63E9B8 802197D8 0000302D */ daddu $a2, $zero, $zero
/* 63E9BC 802197DC 8FBF0020 */ lw $ra, 0x20($sp)
/* 63E9C0 802197E0 8FB3001C */ lw $s3, 0x1c($sp)
/* 63E9C4 802197E4 8FB20018 */ lw $s2, 0x18($sp)
/* 63E9C8 802197E8 8FB10014 */ lw $s1, 0x14($sp)
/* 63E9CC 802197EC 8FB00010 */ lw $s0, 0x10($sp)
/* 63E9D0 802197F0 D7B40028 */ ldc1 $f20, 0x28($sp)
/* 63E9D4 802197F4 24020002 */ addiu $v0, $zero, 2
/* 63E9D8 802197F8 03E00008 */ jr $ra
/* 63E9DC 802197FC 27BD0030 */ addiu $sp, $sp, 0x30