mirror of
https://github.com/pmret/papermario.git
synced 2024-11-19 17:32:30 +01:00
70 lines
3.6 KiB
ArmAsm
70 lines
3.6 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_802193DC_63E5BC
|
|
/* 63E5BC 802193DC 27BDFFD0 */ addiu $sp, $sp, -0x30
|
|
/* 63E5C0 802193E0 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 63E5C4 802193E4 0080882D */ daddu $s1, $a0, $zero
|
|
/* 63E5C8 802193E8 AFBF0020 */ sw $ra, 0x20($sp)
|
|
/* 63E5CC 802193EC AFB3001C */ sw $s3, 0x1c($sp)
|
|
/* 63E5D0 802193F0 AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 63E5D4 802193F4 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 63E5D8 802193F8 F7B40028 */ sdc1 $f20, 0x28($sp)
|
|
/* 63E5DC 802193FC 8E30000C */ lw $s0, 0xc($s1)
|
|
/* 63E5E0 80219400 8E050000 */ lw $a1, ($s0)
|
|
/* 63E5E4 80219404 0C0B1EAF */ jal get_variable
|
|
/* 63E5E8 80219408 26100004 */ addiu $s0, $s0, 4
|
|
/* 63E5EC 8021940C 3C036666 */ lui $v1, 0x6666
|
|
/* 63E5F0 80219410 34636667 */ ori $v1, $v1, 0x6667
|
|
/* 63E5F4 80219414 00430018 */ mult $v0, $v1
|
|
/* 63E5F8 80219418 000217C3 */ sra $v0, $v0, 0x1f
|
|
/* 63E5FC 8021941C 3C0140C9 */ lui $at, 0x40c9
|
|
/* 63E600 80219420 34210FD0 */ ori $at, $at, 0xfd0
|
|
/* 63E604 80219424 44810000 */ mtc1 $at, $f0
|
|
/* 63E608 80219428 00003810 */ mfhi $a3
|
|
/* 63E60C 8021942C 00071883 */ sra $v1, $a3, 2
|
|
/* 63E610 80219430 00621823 */ subu $v1, $v1, $v0
|
|
/* 63E614 80219434 44836000 */ mtc1 $v1, $f12
|
|
/* 63E618 80219438 00000000 */ nop
|
|
/* 63E61C 8021943C 46806320 */ cvt.s.w $f12, $f12
|
|
/* 63E620 80219440 46006302 */ mul.s $f12, $f12, $f0
|
|
/* 63E624 80219444 00000000 */ nop
|
|
/* 63E628 80219448 3C0143B4 */ lui $at, 0x43b4
|
|
/* 63E62C 8021944C 44810000 */ mtc1 $at, $f0
|
|
/* 63E630 80219450 3C014100 */ lui $at, 0x4100
|
|
/* 63E634 80219454 44811000 */ mtc1 $at, $f2
|
|
/* 63E638 80219458 46006303 */ div.s $f12, $f12, $f0
|
|
/* 63E63C 8021945C 46026302 */ mul.s $f12, $f12, $f2
|
|
/* 63E640 80219460 00000000 */ nop
|
|
/* 63E644 80219464 8E120000 */ lw $s2, ($s0)
|
|
/* 63E648 80219468 26100004 */ addiu $s0, $s0, 4
|
|
/* 63E64C 8021946C 8E130000 */ lw $s3, ($s0)
|
|
/* 63E650 80219470 0C00A85B */ jal sin_rad
|
|
/* 63E654 80219474 8E100004 */ lw $s0, 4($s0)
|
|
/* 63E658 80219478 0220202D */ daddu $a0, $s1, $zero
|
|
/* 63E65C 8021947C 3C014120 */ lui $at, 0x4120
|
|
/* 63E660 80219480 44811000 */ mtc1 $at, $f2
|
|
/* 63E664 80219484 0240282D */ daddu $a1, $s2, $zero
|
|
/* 63E668 80219488 46020502 */ mul.s $f20, $f0, $f2
|
|
/* 63E66C 8021948C 00000000 */ nop
|
|
/* 63E670 80219490 0C0B2026 */ jal set_variable
|
|
/* 63E674 80219494 0000302D */ daddu $a2, $zero, $zero
|
|
/* 63E678 80219498 0220202D */ daddu $a0, $s1, $zero
|
|
/* 63E67C 8021949C 4600A10D */ trunc.w.s $f4, $f20
|
|
/* 63E680 802194A0 44062000 */ mfc1 $a2, $f4
|
|
/* 63E684 802194A4 0C0B2026 */ jal set_variable
|
|
/* 63E688 802194A8 0260282D */ daddu $a1, $s3, $zero
|
|
/* 63E68C 802194AC 0220202D */ daddu $a0, $s1, $zero
|
|
/* 63E690 802194B0 0200282D */ daddu $a1, $s0, $zero
|
|
/* 63E694 802194B4 0C0B2026 */ jal set_variable
|
|
/* 63E698 802194B8 0000302D */ daddu $a2, $zero, $zero
|
|
/* 63E69C 802194BC 8FBF0020 */ lw $ra, 0x20($sp)
|
|
/* 63E6A0 802194C0 8FB3001C */ lw $s3, 0x1c($sp)
|
|
/* 63E6A4 802194C4 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 63E6A8 802194C8 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 63E6AC 802194CC 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 63E6B0 802194D0 D7B40028 */ ldc1 $f20, 0x28($sp)
|
|
/* 63E6B4 802194D4 24020002 */ addiu $v0, $zero, 2
|
|
/* 63E6B8 802194D8 03E00008 */ jr $ra
|
|
/* 63E6BC 802194DC 27BD0030 */ addiu $sp, $sp, 0x30
|