papermario/ver/jp/asm/nonmatchings/2DEE0/func_8005412C.s

38 lines
1.8 KiB
ArmAsm
Raw Normal View History

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8005412C
/* 2F52C 8005412C 27BDFFF8 */ addiu $sp, $sp, -8
/* 2F530 80054130 3C07800A */ lui $a3, %hi(D_8009A5A0)
/* 2F534 80054134 8CE7A5A0 */ lw $a3, %lo(D_8009A5A0)($a3)
/* 2F538 80054138 00A0482D */ daddu $t1, $a1, $zero
/* 2F53C 8005413C 8CE20024 */ lw $v0, 0x24($a3)
/* 2F540 80054140 0082102B */ sltu $v0, $a0, $v0
/* 2F544 80054144 10400014 */ beqz $v0, .L80054198
/* 2F548 80054148 0000402D */ daddu $t0, $zero, $zero
/* 2F54C 8005414C 3C0500FF */ lui $a1, 0xff
/* 2F550 80054150 34A5FFFF */ ori $a1, $a1, 0xffff
/* 2F554 80054154 8CE30020 */ lw $v1, 0x20($a3)
/* 2F558 80054158 000410C0 */ sll $v0, $a0, 3
/* 2F55C 8005415C 00621821 */ addu $v1, $v1, $v0
/* 2F560 80054160 8C620000 */ lw $v0, ($v1)
/* 2F564 80054164 8CE4001C */ lw $a0, 0x1c($a3)
/* 2F568 80054168 00451024 */ and $v0, $v0, $a1
/* 2F56C 8005416C 00442021 */ addu $a0, $v0, $a0
/* 2F570 80054170 AFA40000 */ sw $a0, ($sp)
/* 2F574 80054174 8C620004 */ lw $v0, 4($v1)
/* 2F578 80054178 AFA20004 */ sw $v0, 4($sp)
/* 2F57C 8005417C 00021602 */ srl $v0, $v0, 0x18
/* 2F580 80054180 54490006 */ bnel $v0, $t1, .L8005419C
/* 2F584 80054184 24080066 */ addiu $t0, $zero, 0x66
/* 2F588 80054188 ACC40000 */ sw $a0, ($a2)
/* 2F58C 8005418C 8FA20004 */ lw $v0, 4($sp)
/* 2F590 80054190 08015067 */ j .L8005419C
/* 2F594 80054194 ACC20004 */ sw $v0, 4($a2)
.L80054198:
/* 2F598 80054198 24080065 */ addiu $t0, $zero, 0x65
.L8005419C:
/* 2F59C 8005419C 0100102D */ daddu $v0, $t0, $zero
/* 2F5A0 800541A0 03E00008 */ jr $ra
/* 2F5A4 800541A4 27BD0008 */ addiu $sp, $sp, 8