papermario/asm/nonmatchings/code_303c0_len_3e10/alRename3.s

26 lines
1.0 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 alHeapAlloc
/* 033390 80057F90 0080382D */ daddu $a3, $a0, $zero
/* 033394 80057F94 00A60018 */ mult $a1, $a2
/* 033398 80057F98 2402FFF0 */ addiu $v0, $zero, -0x10
/* 03339C 80057F9C 8CE50004 */ lw $a1, 4($a3)
/* 0333A0 80057FA0 8CE40008 */ lw $a0, 8($a3)
/* 0333A4 80057FA4 00004012 */ mflo $t0
/* 0333A8 80057FA8 2503000F */ addiu $v1, $t0, 0xf
/* 0333AC 80057FAC 00621824 */ and $v1, $v1, $v0
/* 0333B0 80057FB0 8CE20000 */ lw $v0, ($a3)
/* 0333B4 80057FB4 00A31821 */ addu $v1, $a1, $v1
/* 0333B8 80057FB8 00441021 */ addu $v0, $v0, $a0
/* 0333BC 80057FBC 0043102B */ sltu $v0, $v0, $v1
/* 0333C0 80057FC0 14400003 */ bnez $v0, .L80057FD0
/* 0333C4 80057FC4 0000302D */ daddu $a2, $zero, $zero
/* 0333C8 80057FC8 00A0302D */ daddu $a2, $a1, $zero
/* 0333CC 80057FCC ACE30004 */ sw $v1, 4($a3)
.L80057FD0:
/* 0333D0 80057FD0 03E00008 */ jr $ra
/* 0333D4 80057FD4 00C0102D */ daddu $v0, $a2, $zero