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

31 lines
1.2 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80122E94
/* 0B9594 80122E94 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 0B9598 80122E98 0080282D */ daddu $a1, $a0, $zero
/* 0B959C 80122E9C 3C038015 */ lui $v1, 0x8015
/* 0B95A0 80122EA0 8C634370 */ lw $v1, 0x4370($v1)
/* 0B95A4 80122EA4 0000202D */ daddu $a0, $zero, $zero
/* 0B95A8 80122EA8 AFBF0010 */ sw $ra, 0x10($sp)
.L80122EAC:
/* 0B95AC 80122EAC 8C620000 */ lw $v0, ($v1)
/* 0B95B0 80122EB0 10450006 */ beq $v0, $a1, .L80122ECC
/* 0B95B4 80122EB4 28820100 */ slti $v0, $a0, 0x100
/* 0B95B8 80122EB8 24840001 */ addiu $a0, $a0, 1
/* 0B95BC 80122EBC 28820100 */ slti $v0, $a0, 0x100
/* 0B95C0 80122EC0 1440FFFA */ bnez $v0, .L80122EAC
/* 0B95C4 80122EC4 24630004 */ addiu $v1, $v1, 4
/* 0B95C8 80122EC8 28820100 */ slti $v0, $a0, 0x100
.L80122ECC:
/* 0B95CC 80122ECC 10400003 */ beqz $v0, .L80122EDC
/* 0B95D0 80122ED0 00000000 */ nop
/* 0B95D4 80122ED4 0C048B7F */ jal func_80122DFC
/* 0B95D8 80122ED8 00000000 */ nop
.L80122EDC:
/* 0B95DC 80122EDC 8FBF0010 */ lw $ra, 0x10($sp)
/* 0B95E0 80122EE0 03E00008 */ jr $ra
/* 0B95E4 80122EE4 27BD0018 */ addiu $sp, $sp, 0x18