mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
34 lines
1.5 KiB
ArmAsm
34 lines
1.5 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80029994
|
|
/* 4D94 80029994 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 4D98 80029998 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 4D9C 8002999C 2410FFFF */ addiu $s0, $zero, -1
|
|
/* 4DA0 800299A0 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 4DA4 800299A4 24910001 */ addiu $s1, $a0, 1
|
|
/* 4DA8 800299A8 16200002 */ bnez $s1, .L800299B4
|
|
/* 4DAC 800299AC 0211001B */ divu $zero, $s0, $s1
|
|
/* 4DB0 800299B0 0007000D */ break 7
|
|
.L800299B4:
|
|
/* 4DB4 800299B4 00008012 */ mflo $s0
|
|
/* 4DB8 800299B8 16000002 */ bnez $s0, .L800299C4
|
|
/* 4DBC 800299BC AFBF0018 */ sw $ra, 0x18($sp)
|
|
/* 4DC0 800299C0 24100001 */ addiu $s0, $zero, 1
|
|
.L800299C4:
|
|
/* 4DC4 800299C4 0C00A640 */ jal _advance_rng
|
|
/* 4DC8 800299C8 00000000 */ nop
|
|
/* 4DCC 800299CC 16000002 */ bnez $s0, .L800299D8
|
|
/* 4DD0 800299D0 0050001B */ divu $zero, $v0, $s0
|
|
/* 4DD4 800299D4 0007000D */ break 7
|
|
.L800299D8:
|
|
/* 4DD8 800299D8 00001812 */ mflo $v1
|
|
/* 4DDC 800299DC 0071102B */ sltu $v0, $v1, $s1
|
|
/* 4DE0 800299E0 1040FFF8 */ beqz $v0, .L800299C4
|
|
/* 4DE4 800299E4 0060102D */ daddu $v0, $v1, $zero
|
|
/* 4DE8 800299E8 8FBF0018 */ lw $ra, 0x18($sp)
|
|
/* 4DEC 800299EC 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 4DF0 800299F0 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 4DF4 800299F4 03E00008 */ jr $ra
|
|
/* 4DF8 800299F8 27BD0020 */ addiu $sp, $sp, 0x20
|