mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 13:02:41 +01:00
47 lines
2.3 KiB
ArmAsm
47 lines
2.3 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80115CA8
|
|
/* AC3A8 80115CA8 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* AC3AC 80115CAC AFB3001C */ sw $s3, 0x1c($sp)
|
|
/* AC3B0 80115CB0 0080982D */ daddu $s3, $a0, $zero
|
|
/* AC3B4 80115CB4 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* AC3B8 80115CB8 AFBF0020 */ sw $ra, 0x20($sp)
|
|
/* AC3BC 80115CBC AFB20018 */ sw $s2, 0x18($sp)
|
|
/* AC3C0 80115CC0 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* AC3C4 80115CC4 8E630000 */ lw $v1, ($s3)
|
|
/* AC3C8 80115CC8 24020002 */ addiu $v0, $zero, 2
|
|
/* AC3CC 80115CCC 10620015 */ beq $v1, $v0, .L80115D24
|
|
/* AC3D0 80115CD0 0000882D */ daddu $s1, $zero, $zero
|
|
/* AC3D4 80115CD4 8E620010 */ lw $v0, 0x10($s3)
|
|
/* AC3D8 80115CD8 50400013 */ beql $v0, $zero, .L80115D28
|
|
/* AC3DC 80115CDC 0220102D */ daddu $v0, $s1, $zero
|
|
/* AC3E0 80115CE0 8C52000C */ lw $s2, 0xc($v0)
|
|
/* AC3E4 80115CE4 12400010 */ beqz $s2, .L80115D28
|
|
/* AC3E8 80115CE8 0220102D */ daddu $v0, $s1, $zero
|
|
/* AC3EC 80115CEC 0240882D */ daddu $s1, $s2, $zero
|
|
/* AC3F0 80115CF0 1A20000C */ blez $s1, .L80115D24
|
|
/* AC3F4 80115CF4 0000802D */ daddu $s0, $zero, $zero
|
|
.L80115CF8:
|
|
/* AC3F8 80115CF8 8E620010 */ lw $v0, 0x10($s3)
|
|
/* AC3FC 80115CFC 8C430010 */ lw $v1, 0x10($v0)
|
|
/* AC400 80115D00 00101080 */ sll $v0, $s0, 2
|
|
/* AC404 80115D04 00431021 */ addu $v0, $v0, $v1
|
|
/* AC408 80115D08 8C440000 */ lw $a0, ($v0)
|
|
/* AC40C 80115D0C 0C04572A */ jal func_80115CA8
|
|
/* AC410 80115D10 26100001 */ addiu $s0, $s0, 1
|
|
/* AC414 80115D14 02228821 */ addu $s1, $s1, $v0
|
|
/* AC418 80115D18 0212102A */ slt $v0, $s0, $s2
|
|
/* AC41C 80115D1C 1440FFF6 */ bnez $v0, .L80115CF8
|
|
/* AC420 80115D20 00000000 */ nop
|
|
.L80115D24:
|
|
/* AC424 80115D24 0220102D */ daddu $v0, $s1, $zero
|
|
.L80115D28:
|
|
/* AC428 80115D28 8FBF0020 */ lw $ra, 0x20($sp)
|
|
/* AC42C 80115D2C 8FB3001C */ lw $s3, 0x1c($sp)
|
|
/* AC430 80115D30 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* AC434 80115D34 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* AC438 80115D38 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* AC43C 80115D3C 03E00008 */ jr $ra
|
|
/* AC440 80115D40 27BD0028 */ addiu $sp, $sp, 0x28
|