papermario/ver/jp/asm/nonmatchings/main_439A0/func_8006874C.s

36 lines
1.6 KiB
ArmAsm
Raw Normal View History

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8006874C
/* 43B4C 8006874C 8FA90010 */ lw $t1, 0x10($sp)
/* 43B50 80068750 00071200 */ sll $v0, $a3, 8
/* 43B54 80068754 30C600FF */ andi $a2, $a2, 0xff
/* 43B58 80068758 00461825 */ or $v1, $v0, $a2
/* 43B5C 8006875C 24080003 */ addiu $t0, $zero, 3
/* 43B60 80068760 30E700FF */ andi $a3, $a3, 0xff
/* 43B64 80068764 00601021 */ addu $v0, $v1, $zero
.L80068768:
/* 43B68 80068768 304300FF */ andi $v1, $v0, 0xff
/* 43B6C 8006876C 00031840 */ sll $v1, $v1, 1
/* 43B70 80068770 00651821 */ addu $v1, $v1, $a1
/* 43B74 80068774 94630000 */ lhu $v1, ($v1)
/* 43B78 80068778 304200FF */ andi $v0, $v0, 0xff
/* 43B7C 8006877C 00021040 */ sll $v0, $v0, 1
/* 43B80 80068780 00A21021 */ addu $v0, $a1, $v0
/* 43B84 80068784 A4480000 */ sh $t0, ($v0)
/* 43B88 80068788 8C820060 */ lw $v0, 0x60($a0)
/* 43B8C 8006878C 3066FFFF */ andi $a2, $v1, 0xffff
/* 43B90 80068790 00C2102A */ slt $v0, $a2, $v0
/* 43B94 80068794 54400005 */ bnel $v0, $zero, .L800687AC
/* 43B98 80068798 A5230000 */ sh $v1, ($t1)
/* 43B9C 8006879C 00061202 */ srl $v0, $a2, 8
/* 43BA0 800687A0 1047FFF1 */ beq $v0, $a3, .L80068768
/* 43BA4 800687A4 00601021 */ addu $v0, $v1, $zero
/* 43BA8 800687A8 A5230000 */ sh $v1, ($t1)
.L800687AC:
/* 43BAC 800687AC 03E00008 */ jr $ra
/* 43BB0 800687B0 00001021 */ addu $v0, $zero, $zero
/* 43BB4 800687B4 00000000 */ nop
/* 43BB8 800687B8 00000000 */ nop
/* 43BBC 800687BC 00000000 */ nop