mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
44 lines
2.1 KiB
ArmAsm
44 lines
2.1 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
glabel func_802A12EC_72E81C
|
||
|
/* 72E81C 802A12EC 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||
|
/* 72E820 802A12F0 AFB00010 */ sw $s0, 0x10($sp)
|
||
|
/* 72E824 802A12F4 3C10800E */ lui $s0, %hi(gBattleStatus+0xDC)
|
||
|
/* 72E828 802A12F8 8E10C14C */ lw $s0, %lo(gBattleStatus+0xDC)($s0)
|
||
|
/* 72E82C 802A12FC AFBF0014 */ sw $ra, 0x14($sp)
|
||
|
/* 72E830 802A1300 82020217 */ lb $v0, 0x217($s0)
|
||
|
/* 72E834 802A1304 8C85000C */ lw $a1, 0xc($a0)
|
||
|
/* 72E838 802A1308 10400017 */ beqz $v0, .L802A1368
|
||
|
/* 72E83C 802A130C 24020002 */ addiu $v0, $zero, 2
|
||
|
/* 72E840 802A1310 8CA50000 */ lw $a1, ($a1)
|
||
|
/* 72E844 802A1314 0C0B1EAF */ jal get_variable
|
||
|
/* 72E848 802A1318 00000000 */ nop
|
||
|
/* 72E84C 802A131C 92030217 */ lbu $v1, 0x217($s0)
|
||
|
/* 72E850 802A1320 00621823 */ subu $v1, $v1, $v0
|
||
|
/* 72E854 802A1324 A2030217 */ sb $v1, 0x217($s0)
|
||
|
/* 72E858 802A1328 00031E00 */ sll $v1, $v1, 0x18
|
||
|
/* 72E85C 802A132C 04620001 */ bltzl $v1, .L802A1334
|
||
|
/* 72E860 802A1330 A2000217 */ sb $zero, 0x217($s0)
|
||
|
.L802A1334:
|
||
|
/* 72E864 802A1334 82030217 */ lb $v1, 0x217($s0)
|
||
|
/* 72E868 802A1338 18600005 */ blez $v1, .L802A1350
|
||
|
/* 72E86C 802A133C 24040034 */ addiu $a0, $zero, 0x34
|
||
|
/* 72E870 802A1340 8E020440 */ lw $v0, 0x440($s0)
|
||
|
/* 72E874 802A1344 8C42000C */ lw $v0, 0xc($v0)
|
||
|
/* 72E878 802A1348 080A84D9 */ j .L802A1364
|
||
|
/* 72E87C 802A134C AC43003C */ sw $v1, 0x3c($v0)
|
||
|
.L802A1350:
|
||
|
/* 72E880 802A1350 0C09F7A0 */ jal dispatch_event_partner
|
||
|
/* 72E884 802A1354 A2000216 */ sb $zero, 0x216($s0)
|
||
|
/* 72E888 802A1358 8E020440 */ lw $v0, 0x440($s0)
|
||
|
/* 72E88C 802A135C 8C42000C */ lw $v0, 0xc($v0)
|
||
|
/* 72E890 802A1360 AC40003C */ sw $zero, 0x3c($v0)
|
||
|
.L802A1364:
|
||
|
/* 72E894 802A1364 24020002 */ addiu $v0, $zero, 2
|
||
|
.L802A1368:
|
||
|
/* 72E898 802A1368 8FBF0014 */ lw $ra, 0x14($sp)
|
||
|
/* 72E89C 802A136C 8FB00010 */ lw $s0, 0x10($sp)
|
||
|
/* 72E8A0 802A1370 03E00008 */ jr $ra
|
||
|
/* 72E8A4 802A1374 27BD0018 */ addiu $sp, $sp, 0x18
|