papermario/asm/nonmatchings/code_707CA0/func_80238328_707FC8.s
Ethan Roseman d5018e6a9f 🐟 🐟 🐟
2021-01-10 21:00:17 +09:00

32 lines
1.5 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80238328_707FC8
/* 707FC8 80238328 8C830084 */ lw $v1, 0x84($a0)
/* 707FCC 8023832C 3C05800E */ lui $a1, %hi(gBattleStatus)
/* 707FD0 80238330 24A5C070 */ addiu $a1, $a1, %lo(gBattleStatus)
/* 707FD4 80238334 18600003 */ blez $v1, .L80238344
/* 707FD8 80238338 24020001 */ addiu $v0, $zero, 1
/* 707FDC 8023833C 0808E0D2 */ j .L80238348
/* 707FE0 80238340 AC820084 */ sw $v0, 0x84($a0)
.L80238344:
/* 707FE4 80238344 AC800084 */ sw $zero, 0x84($a0)
.L80238348:
/* 707FE8 80238348 AC8000C0 */ sw $zero, 0xc0($a0)
/* 707FEC 8023834C AC8300AC */ sw $v1, 0xac($a0)
/* 707FF0 80238350 80A2009D */ lb $v0, 0x9d($a1)
/* 707FF4 80238354 0043102A */ slt $v0, $v0, $v1
/* 707FF8 80238358 10400009 */ beqz $v0, .L80238380
/* 707FFC 8023835C 24020001 */ addiu $v0, $zero, 1
/* 708000 80238360 A0A3009D */ sb $v1, 0x9d($a1)
/* 708004 80238364 A0A2009E */ sb $v0, 0x9e($a1)
/* 708008 80238368 0060102D */ daddu $v0, $v1, $zero
/* 70800C 8023836C 8CA3043C */ lw $v1, 0x43c($a1)
/* 708010 80238370 00021600 */ sll $v0, $v0, 0x18
/* 708014 80238374 8C63000C */ lw $v1, 0xc($v1)
/* 708018 80238378 00021603 */ sra $v0, $v0, 0x18
/* 70801C 8023837C A4620010 */ sh $v0, 0x10($v1)
.L80238380:
/* 708020 80238380 03E00008 */ jr $ra
/* 708024 80238384 24020002 */ addiu $v0, $zero, 2