papermario/asm/nonmatchings/code_ddaf0_len_c50/func_80147E7C.s
Ethan Roseman 84f211a2ae First pass
2020-10-14 22:56:47 -04:00

25 lines
1.1 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80147E7C
/* DE57C 80147E7C 3C028016 */ lui $v0, %hi(D_80159D50)
/* DE580 80147E80 24429D50 */ addiu $v0, $v0, %lo(D_80159D50)
/* DE584 80147E84 00042140 */ sll $a0, $a0, 5
/* DE588 80147E88 00822021 */ addu $a0, $a0, $v0
/* DE58C 80147E8C 90830000 */ lbu $v1, ($a0)
/* DE590 80147E90 30620001 */ andi $v0, $v1, 1
/* DE594 80147E94 10400009 */ beqz $v0, .L80147EBC
/* DE598 80147E98 00000000 */ nop
/* DE59C 80147E9C 8C820004 */ lw $v0, 4($a0)
/* DE5A0 80147EA0 14A20004 */ bne $a1, $v0, .L80147EB4
/* DE5A4 80147EA4 3462000A */ ori $v0, $v1, 0xa
/* DE5A8 80147EA8 306200FD */ andi $v0, $v1, 0xfd
/* DE5AC 80147EAC 03E00008 */ jr $ra
/* DE5B0 80147EB0 A0820000 */ sb $v0, ($a0)
.L80147EB4:
/* DE5B4 80147EB4 A0820000 */ sb $v0, ($a0)
/* DE5B8 80147EB8 AC850008 */ sw $a1, 8($a0)
.L80147EBC:
/* DE5BC 80147EBC 03E00008 */ jr $ra
/* DE5C0 80147EC0 00000000 */ nop