papermario/asm/nonmatchings/code_1AC760/func_802807D0.s
Ethan Roseman 71dde79186 asm update
2020-11-27 01:39:15 -05:00

25 lines
1.1 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802807D0
/* 1AF0B0 802807D0 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 1AF0B4 802807D4 AFBF0010 */ sw $ra, 0x10($sp)
/* 1AF0B8 802807D8 8C82000C */ lw $v0, 0xc($a0)
/* 1AF0BC 802807DC 3C03800E */ lui $v1, %hi(gBattleStatus+0x81)
/* 1AF0C0 802807E0 8063C0F1 */ lb $v1, %lo(gBattleStatus+0x81)($v1)
/* 1AF0C4 802807E4 8C450000 */ lw $a1, ($v0)
/* 1AF0C8 802807E8 04610002 */ bgez $v1, .L802807F4
/* 1AF0CC 802807EC 0000302D */ daddu $a2, $zero, $zero
/* 1AF0D0 802807F0 00C0182D */ daddu $v1, $a2, $zero
.L802807F4:
/* 1AF0D4 802807F4 00C3102A */ slt $v0, $a2, $v1
/* 1AF0D8 802807F8 54400001 */ bnel $v0, $zero, .L80280800
/* 1AF0DC 802807FC 0060302D */ daddu $a2, $v1, $zero
.L80280800:
/* 1AF0E0 80280800 0C0B2026 */ jal set_variable
/* 1AF0E4 80280804 00000000 */ nop
/* 1AF0E8 80280808 8FBF0010 */ lw $ra, 0x10($sp)
/* 1AF0EC 8028080C 24020002 */ addiu $v0, $zero, 2
/* 1AF0F0 80280810 03E00008 */ jr $ra
/* 1AF0F4 80280814 27BD0018 */ addiu $sp, $sp, 0x18