mirror of
https://github.com/pmret/papermario.git
synced 2024-11-19 01:12:28 +01:00
36 lines
1.8 KiB
ArmAsm
36 lines
1.8 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
glabel func_800475D4
|
||
|
/* 229D4 800475D4 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||
|
/* 229D8 800475D8 0080302D */ daddu $a2, $a0, $zero
|
||
|
/* 229DC 800475DC AFB10014 */ sw $s1, 0x14($sp)
|
||
|
/* 229E0 800475E0 00A0882D */ daddu $s1, $a1, $zero
|
||
|
/* 229E4 800475E4 00061040 */ sll $v0, $a2, 1
|
||
|
/* 229E8 800475E8 00461021 */ addu $v0, $v0, $a2
|
||
|
/* 229EC 800475EC 00021080 */ sll $v0, $v0, 2
|
||
|
/* 229F0 800475F0 00461023 */ subu $v0, $v0, $a2
|
||
|
/* 229F4 800475F4 3C03800A */ lui $v1, %hi(D_8009ED54)
|
||
|
/* 229F8 800475F8 8C63ED54 */ lw $v1, %lo(D_8009ED54)($v1)
|
||
|
/* 229FC 800475FC 00021100 */ sll $v0, $v0, 4
|
||
|
/* 22A00 80047600 AFBF0018 */ sw $ra, 0x18($sp)
|
||
|
/* 22A04 80047604 AFB00010 */ sw $s0, 0x10($sp)
|
||
|
/* 22A08 80047608 00628021 */ addu $s0, $v1, $v0
|
||
|
/* 22A0C 8004760C 2403FFF7 */ addiu $v1, $zero, -9
|
||
|
/* 22A10 80047610 8E020000 */ lw $v0, ($s0)
|
||
|
/* 22A14 80047614 82040048 */ lb $a0, 0x48($s0)
|
||
|
/* 22A18 80047618 00431024 */ and $v0, $v0, $v1
|
||
|
/* 22A1C 8004761C 10910006 */ beq $a0, $s1, .L80047638
|
||
|
/* 22A20 80047620 AE020000 */ sw $v0, ($s0)
|
||
|
/* 22A24 80047624 0C011D93 */ jal func_8004764C
|
||
|
/* 22A28 80047628 00C0202D */ daddu $a0, $a2, $zero
|
||
|
/* 22A2C 8004762C 24020001 */ addiu $v0, $zero, 1
|
||
|
/* 22A30 80047630 A2110048 */ sb $s1, 0x48($s0)
|
||
|
/* 22A34 80047634 A202004A */ sb $v0, 0x4a($s0)
|
||
|
.L80047638:
|
||
|
/* 22A38 80047638 8FBF0018 */ lw $ra, 0x18($sp)
|
||
|
/* 22A3C 8004763C 8FB10014 */ lw $s1, 0x14($sp)
|
||
|
/* 22A40 80047640 8FB00010 */ lw $s0, 0x10($sp)
|
||
|
/* 22A44 80047644 03E00008 */ jr $ra
|
||
|
/* 22A48 80047648 27BD0020 */ addiu $sp, $sp, 0x20
|