papermario/asm/nonmatchings/code_a5dd0_len_114e0/func_8011E0DC.s
2020-09-23 23:16:13 -04:00

38 lines
1.7 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8011E0DC
/* B47DC 8011E0DC 27BDFFE0 */ addiu $sp, $sp, -0x20
/* B47E0 8011E0E0 AFBF001C */ sw $ra, 0x1c($sp)
/* B47E4 8011E0E4 AFB20018 */ sw $s2, 0x18($sp)
/* B47E8 8011E0E8 AFB10014 */ sw $s1, 0x14($sp)
/* B47EC 8011E0EC AFB00010 */ sw $s0, 0x10($sp)
/* B47F0 8011E0F0 848200F6 */ lh $v0, 0xf6($a0)
/* B47F4 8011E0F4 00A0902D */ daddu $s2, $a1, $zero
/* B47F8 8011E0F8 14520003 */ bne $v0, $s2, .L8011E108
/* B47FC 8011E0FC 0000882D */ daddu $s1, $zero, $zero
/* B4800 8011E100 0804784E */ j .L8011E138
/* B4804 8011E104 0080102D */ daddu $v0, $a0, $zero
.L8011E108:
/* B4808 8011E108 0080802D */ daddu $s0, $a0, $zero
.L8011E10C:
/* B480C 8011E10C 8E040004 */ lw $a0, 4($s0)
/* B4810 8011E110 50800005 */ beql $a0, $zero, .L8011E128
/* B4814 8011E114 26310001 */ addiu $s1, $s1, 1
/* B4818 8011E118 0C047837 */ jal func_8011E0DC
/* B481C 8011E11C 0240282D */ daddu $a1, $s2, $zero
/* B4820 8011E120 14400005 */ bnez $v0, .L8011E138
/* B4824 8011E124 26310001 */ addiu $s1, $s1, 1
.L8011E128:
/* B4828 8011E128 2A220020 */ slti $v0, $s1, 0x20
/* B482C 8011E12C 1440FFF7 */ bnez $v0, .L8011E10C
/* B4830 8011E130 26100004 */ addiu $s0, $s0, 4
/* B4834 8011E134 0000102D */ daddu $v0, $zero, $zero
.L8011E138:
/* B4838 8011E138 8FBF001C */ lw $ra, 0x1c($sp)
/* B483C 8011E13C 8FB20018 */ lw $s2, 0x18($sp)
/* B4840 8011E140 8FB10014 */ lw $s1, 0x14($sp)
/* B4844 8011E144 8FB00010 */ lw $s0, 0x10($sp)
/* B4848 8011E148 03E00008 */ jr $ra
/* B484C 8011E14C 27BD0020 */ addiu $sp, $sp, 0x20