mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
46 lines
1.9 KiB
ArmAsm
46 lines
1.9 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel set_npc_yaw
|
|
/* 016740 8003B340 44857000 */ mtc1 $a1, $f14
|
|
/* 016744 8003B344 3C038007 */ lui $v1, 0x8007
|
|
/* 016748 8003B348 8C637410 */ lw $v1, 0x7410($v1)
|
|
/* 01674C 8003B34C 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
/* 016750 8003B350 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 016754 8003B354 0080802D */ daddu $s0, $a0, $zero
|
|
/* 016758 8003B358 AFBF0014 */ sw $ra, 0x14($sp)
|
|
/* 01675C 8003B35C 00031080 */ sll $v0, $v1, 2
|
|
/* 016760 8003B360 00431021 */ addu $v0, $v0, $v1
|
|
/* 016764 8003B364 00021080 */ sll $v0, $v0, 2
|
|
/* 016768 8003B368 00431023 */ subu $v0, $v0, $v1
|
|
/* 01676C 8003B36C 000218C0 */ sll $v1, $v0, 3
|
|
/* 016770 8003B370 00431021 */ addu $v0, $v0, $v1
|
|
/* 016774 8003B374 000210C0 */ sll $v0, $v0, 3
|
|
/* 016778 8003B378 E60E000C */ swc1 $f14, 0xc($s0)
|
|
/* 01677C 8003B37C 3C01800B */ lui $at, 0x800b
|
|
/* 016780 8003B380 00220821 */ addu $at, $at, $v0
|
|
/* 016784 8003B384 C42C1DEC */ lwc1 $f12, 0x1dec($at)
|
|
/* 016788 8003B388 0C00A70A */ jal get_clamped_angle_diff
|
|
/* 01678C 8003B38C 00000000 */ nop
|
|
/* 016790 8003B390 44801000 */ mtc1 $zero, $f2
|
|
/* 016794 8003B394 00000000 */ nop
|
|
/* 016798 8003B398 4600103E */ c.le.s $f2, $f0
|
|
/* 01679C 8003B39C 00000000 */ nop
|
|
/* 0167A0 8003B3A0 45000005 */ bc1f .L8003B3B8
|
|
/* 0167A4 8003B3A4 240200B4 */ addiu $v0, $zero, 0xb4
|
|
/* 0167A8 8003B3A8 A602008A */ sh $v0, 0x8a($s0)
|
|
/* 0167AC 8003B3AC 24020001 */ addiu $v0, $zero, 1
|
|
/* 0167B0 8003B3B0 0800ECF0 */ j .L8003B3C0
|
|
/* 0167B4 8003B3B4 A6020088 */ sh $v0, 0x88($s0)
|
|
|
|
.L8003B3B8:
|
|
/* 0167B8 8003B3B8 A600008A */ sh $zero, 0x8a($s0)
|
|
/* 0167BC 8003B3BC A6000088 */ sh $zero, 0x88($s0)
|
|
.L8003B3C0:
|
|
/* 0167C0 8003B3C0 8FBF0014 */ lw $ra, 0x14($sp)
|
|
/* 0167C4 8003B3C4 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 0167C8 8003B3C8 03E00008 */ jr $ra
|
|
/* 0167CC 8003B3CC 27BD0018 */ addiu $sp, $sp, 0x18
|
|
|