mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
27 lines
1.3 KiB
ArmAsm
27 lines
1.3 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
glabel func_802A14F8_715D48
|
||
|
/* 715D48 802A14F8 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||
|
/* 715D4C 802A14FC AFBF0014 */ sw $ra, 0x14($sp)
|
||
|
/* 715D50 802A1500 AFB00010 */ sw $s0, 0x10($sp)
|
||
|
/* 715D54 802A1504 8C82000C */ lw $v0, 0xc($a0)
|
||
|
/* 715D58 802A1508 0C0B1EAF */ jal get_variable
|
||
|
/* 715D5C 802A150C 8C450000 */ lw $a1, ($v0)
|
||
|
/* 715D60 802A1510 3C038011 */ lui $v1, %hi(gPlayerData)
|
||
|
/* 715D64 802A1514 2463F290 */ addiu $v1, $v1, %lo(gPlayerData)
|
||
|
/* 715D68 802A1518 80640002 */ lb $a0, 2($v1)
|
||
|
/* 715D6C 802A151C 80650003 */ lb $a1, 3($v1)
|
||
|
/* 715D70 802A1520 00822021 */ addu $a0, $a0, $v0
|
||
|
/* 715D74 802A1524 00A4102A */ slt $v0, $a1, $a0
|
||
|
/* 715D78 802A1528 10400002 */ beqz $v0, .L802A1534
|
||
|
/* 715D7C 802A152C 0060802D */ daddu $s0, $v1, $zero
|
||
|
/* 715D80 802A1530 00A0202D */ daddu $a0, $a1, $zero
|
||
|
.L802A1534:
|
||
|
/* 715D84 802A1534 A2040002 */ sb $a0, 2($s0)
|
||
|
/* 715D88 802A1538 8FBF0014 */ lw $ra, 0x14($sp)
|
||
|
/* 715D8C 802A153C 8FB00010 */ lw $s0, 0x10($sp)
|
||
|
/* 715D90 802A1540 24020002 */ addiu $v0, $zero, 2
|
||
|
/* 715D94 802A1544 03E00008 */ jr $ra
|
||
|
/* 715D98 802A1548 27BD0018 */ addiu $sp, $sp, 0x18
|