mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
40 lines
1.9 KiB
ArmAsm
Generated
40 lines
1.9 KiB
ArmAsm
Generated
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80238C08_7046F8
|
|
/* 7046F8 80238C08 8C830084 */ lw $v1, 0x84($a0)
|
|
/* 7046FC 80238C0C 3C05800E */ lui $a1, %hi(gBattleStatus)
|
|
/* 704700 80238C10 24A5C070 */ addiu $a1, $a1, %lo(gBattleStatus)
|
|
/* 704704 80238C14 18600003 */ blez $v1, .L80238C24
|
|
/* 704708 80238C18 24020001 */ addiu $v0, $zero, 1
|
|
/* 70470C 80238C1C 0808E30A */ j .L80238C28
|
|
/* 704710 80238C20 AC820084 */ sw $v0, 0x84($a0)
|
|
.L80238C24:
|
|
/* 704714 80238C24 AC800084 */ sw $zero, 0x84($a0)
|
|
.L80238C28:
|
|
/* 704718 80238C28 AC8000C0 */ sw $zero, 0xc0($a0)
|
|
/* 70471C 80238C2C AC8300AC */ sw $v1, 0xac($a0)
|
|
/* 704720 80238C30 80A2009B */ lb $v0, 0x9b($a1)
|
|
/* 704724 80238C34 0043102A */ slt $v0, $v0, $v1
|
|
/* 704728 80238C38 10400009 */ beqz $v0, .L80238C60
|
|
/* 70472C 80238C3C 24020001 */ addiu $v0, $zero, 1
|
|
/* 704730 80238C40 A0A3009B */ sb $v1, 0x9b($a1)
|
|
/* 704734 80238C44 A0A2009C */ sb $v0, 0x9c($a1)
|
|
/* 704738 80238C48 0060102D */ daddu $v0, $v1, $zero
|
|
/* 70473C 80238C4C 8CA3043C */ lw $v1, 0x43c($a1)
|
|
/* 704740 80238C50 00021600 */ sll $v0, $v0, 0x18
|
|
/* 704744 80238C54 8C63000C */ lw $v1, 0xc($v1)
|
|
/* 704748 80238C58 00021603 */ sra $v0, $v0, 0x18
|
|
/* 70474C 80238C5C A4620024 */ sh $v0, 0x24($v1)
|
|
.L80238C60:
|
|
/* 704750 80238C60 3C04800E */ lui $a0, %hi(gBattleStatus)
|
|
/* 704754 80238C64 2484C070 */ addiu $a0, $a0, %lo(gBattleStatus)
|
|
/* 704758 80238C68 8C830004 */ lw $v1, 4($a0)
|
|
/* 70475C 80238C6C 30620002 */ andi $v0, $v1, 2
|
|
/* 704760 80238C70 10400002 */ beqz $v0, .L80238C7C
|
|
/* 704764 80238C74 34620100 */ ori $v0, $v1, 0x100
|
|
/* 704768 80238C78 AC820004 */ sw $v0, 4($a0)
|
|
.L80238C7C:
|
|
/* 70476C 80238C7C 03E00008 */ jr $ra
|
|
/* 704770 80238C80 24020002 */ addiu $v0, $zero, 2
|