papermario/asm/nonmatchings/code_163400/func_802435C4.s
2020-11-29 02:13:07 -05:00

31 lines
1.5 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802435C4
/* 163E24 802435C4 3C028016 */ lui $v0, %hi(gUIPanels)
/* 163E28 802435C8 24429D50 */ addiu $v0, $v0, %lo(gUIPanels)
/* 163E2C 802435CC 00042140 */ sll $a0, $a0, 5
/* 163E30 802435D0 00822021 */ addu $a0, $a0, $v0
/* 163E34 802435D4 9083001C */ lbu $v1, 0x1c($a0)
/* 163E38 802435D8 2862000A */ slti $v0, $v1, 0xa
/* 163E3C 802435DC 10400008 */ beqz $v0, .L80243600
/* 163E40 802435E0 00031040 */ sll $v0, $v1, 1
/* 163E44 802435E4 3C038025 */ lui $v1, %hi(D_80249C7C)
/* 163E48 802435E8 00621821 */ addu $v1, $v1, $v0
/* 163E4C 802435EC 84639C7C */ lh $v1, %lo(D_80249C7C)($v1)
/* 163E50 802435F0 8CC20000 */ lw $v0, ($a2)
/* 163E54 802435F4 00431021 */ addu $v0, $v0, $v1
/* 163E58 802435F8 03E00008 */ jr $ra
/* 163E5C 802435FC ACC20000 */ sw $v0, ($a2)
.L80243600:
/* 163E60 80243600 3C028025 */ lui $v0, %hi(D_80249C8E)
/* 163E64 80243604 84429C8E */ lh $v0, %lo(D_80249C8E)($v0)
/* 163E68 80243608 8CC30000 */ lw $v1, ($a2)
/* 163E6C 8024360C 00621821 */ addu $v1, $v1, $v0
/* 163E70 80243610 ACC30000 */ sw $v1, ($a2)
/* 163E74 80243614 90820000 */ lbu $v0, ($a0)
/* 163E78 80243618 304200F7 */ andi $v0, $v0, 0xf7
/* 163E7C 8024361C 34420004 */ ori $v0, $v0, 4
/* 163E80 80243620 03E00008 */ jr $ra
/* 163E84 80243624 A0820000 */ sb $v0, ($a0)