mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
45 lines
2.1 KiB
ArmAsm
45 lines
2.1 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80253734
|
|
/* 182014 80253734 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
/* 182018 80253738 AFBF0014 */ sw $ra, 0x14($sp)
|
|
/* 18201C 8025373C AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 182020 80253740 8C82000C */ lw $v0, 0xc($a0)
|
|
/* 182024 80253744 0C0B1EAF */ jal get_variable
|
|
/* 182028 80253748 8C450000 */ lw $a1, ($v0)
|
|
/* 18202C 8025374C 3C10800E */ lui $s0, %hi(gBattleStatus)
|
|
/* 182030 80253750 2610C070 */ addiu $s0, $s0, %lo(gBattleStatus)
|
|
/* 182034 80253754 0040182D */ daddu $v1, $v0, $zero
|
|
/* 182038 80253758 24040001 */ addiu $a0, $zero, 1
|
|
/* 18203C 8025375C 10640012 */ beq $v1, $a0, .L802537A8
|
|
/* 182040 80253760 28620002 */ slti $v0, $v1, 2
|
|
/* 182044 80253764 10400005 */ beqz $v0, .L8025377C
|
|
/* 182048 80253768 24020002 */ addiu $v0, $zero, 2
|
|
/* 18204C 8025376C 10600009 */ beqz $v1, .L80253794
|
|
/* 182050 80253770 2402FFFF */ addiu $v0, $zero, -1
|
|
/* 182054 80253774 08094DEB */ j .L802537AC
|
|
/* 182058 80253778 00000000 */ nop
|
|
.L8025377C:
|
|
/* 18205C 8025377C 10620007 */ beq $v1, $v0, .L8025379C
|
|
/* 182060 80253780 24020003 */ addiu $v0, $zero, 3
|
|
/* 182064 80253784 50620009 */ beql $v1, $v0, .L802537AC
|
|
/* 182068 80253788 A2040432 */ sb $a0, 0x432($s0)
|
|
/* 18206C 8025378C 08094DEB */ j .L802537AC
|
|
/* 182070 80253790 00000000 */ nop
|
|
.L80253794:
|
|
/* 182074 80253794 08094DEB */ j .L802537AC
|
|
/* 182078 80253798 A2020432 */ sb $v0, 0x432($s0)
|
|
.L8025379C:
|
|
/* 18207C 8025379C 2402FFFE */ addiu $v0, $zero, -2
|
|
/* 182080 802537A0 08094DEB */ j .L802537AC
|
|
/* 182084 802537A4 A2020432 */ sb $v0, 0x432($s0)
|
|
.L802537A8:
|
|
/* 182088 802537A8 A2040432 */ sb $a0, 0x432($s0)
|
|
.L802537AC:
|
|
/* 18208C 802537AC 8FBF0014 */ lw $ra, 0x14($sp)
|
|
/* 182090 802537B0 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 182094 802537B4 24020002 */ addiu $v0, $zero, 2
|
|
/* 182098 802537B8 03E00008 */ jr $ra
|
|
/* 18209C 802537BC 27BD0018 */ addiu $sp, $sp, 0x18
|