papermario/asm/nonmatchings/code_b72b0_len_15ed0/func_80130FAC.s
2020-08-12 22:37:16 -04:00

25 lines
1008 B
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80130FAC
/* 0C76AC 80130FAC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 0C76B0 80130FB0 2403FFBF */ addiu $v1, $zero, -0x41
/* 0C76B4 80130FB4 AFBF0010 */ sw $ra, 0x10($sp)
/* 0C76B8 80130FB8 8C820000 */ lw $v0, ($a0)
/* 0C76BC 80130FBC 84850020 */ lh $a1, 0x20($a0)
/* 0C76C0 80130FC0 00431024 */ and $v0, $v0, $v1
/* 0C76C4 80130FC4 04A00007 */ bltz $a1, .L80130FE4
/* 0C76C8 80130FC8 AC820000 */ sw $v0, ($a0)
/* 0C76CC 80130FCC 0C044181 */ jal get_shadow_by_index
/* 0C76D0 80130FD0 00A0202D */ daddu $a0, $a1, $zero
/* 0C76D4 80130FD4 8C430000 */ lw $v1, ($v0)
/* 0C76D8 80130FD8 2404FFFE */ addiu $a0, $zero, -2
/* 0C76DC 80130FDC 00641824 */ and $v1, $v1, $a0
/* 0C76E0 80130FE0 AC430000 */ sw $v1, ($v0)
.L80130FE4:
/* 0C76E4 80130FE4 8FBF0010 */ lw $ra, 0x10($sp)
/* 0C76E8 80130FE8 03E00008 */ jr $ra
/* 0C76EC 80130FEC 27BD0018 */ addiu $sp, $sp, 0x18