papermario/asm/nonmatchings/code_b72b0_len_15ed0/func_80123404.s

36 lines
1.5 KiB
ArmAsm
Raw Normal View History

2020-08-04 08:49:11 +02:00
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80123404
/* 0B9B04 80123404 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 0B9B08 80123408 AFB00010 */ sw $s0, 0x10($sp)
/* 0B9B0C 8012340C 0000802D */ daddu $s0, $zero, $zero
/* 0B9B10 80123410 AFB10014 */ sw $s1, 0x14($sp)
/* 0B9B14 80123414 2411FFFD */ addiu $s1, $zero, -3
/* 0B9B18 80123418 AFBF0018 */ sw $ra, 0x18($sp)
.L8012341C:
/* 0B9B1C 8012341C 3C038015 */ lui $v1, 0x8015
/* 0B9B20 80123420 8C634420 */ lw $v1, 0x4420($v1)
/* 0B9B24 80123424 00101080 */ sll $v0, $s0, 2
/* 0B9B28 80123428 00431021 */ addu $v0, $v0, $v1
/* 0B9B2C 8012342C 8C440000 */ lw $a0, ($v0)
/* 0B9B30 80123430 50800007 */ beql $a0, $zero, .L80123450
/* 0B9B34 80123434 26100001 */ addiu $s0, $s0, 1
/* 0B9B38 80123438 8C820000 */ lw $v0, ($a0)
/* 0B9B3C 8012343C 8C830004 */ lw $v1, 4($a0)
/* 0B9B40 80123440 00511024 */ and $v0, $v0, $s1
/* 0B9B44 80123444 0060F809 */ jalr $v1
/* 0B9B48 80123448 AC820000 */ sw $v0, ($a0)
/* 0B9B4C 8012344C 26100001 */ addiu $s0, $s0, 1
.L80123450:
/* 0B9B50 80123450 2A020010 */ slti $v0, $s0, 0x10
/* 0B9B54 80123454 1440FFF1 */ bnez $v0, .L8012341C
/* 0B9B58 80123458 00000000 */ nop
/* 0B9B5C 8012345C 8FBF0018 */ lw $ra, 0x18($sp)
/* 0B9B60 80123460 8FB10014 */ lw $s1, 0x14($sp)
/* 0B9B64 80123464 8FB00010 */ lw $s0, 0x10($sp)
/* 0B9B68 80123468 03E00008 */ jr $ra
/* 0B9B6C 8012346C 27BD0020 */ addiu $sp, $sp, 0x20