papermario/asm/nonmatchings/os/code_44860_len_60/osPfsRepairId.s
2020-08-12 22:37:16 -04:00

35 lines
1.3 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osPfsRepairId
/* 044860 80069460 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 044864 80069464 AFB00010 */ sw $s0, 0x10($sp)
/* 044868 80069468 00808021 */ addu $s0, $a0, $zero
/* 04486C 8006946C AFBF0014 */ sw $ra, 0x14($sp)
/* 044870 80069470 8E020000 */ lw $v0, ($s0)
/* 044874 80069474 30420005 */ andi $v0, $v0, 5
/* 044878 80069478 5040000A */ beql $v0, $zero, .L800694A4
/* 04487C 8006947C 24040005 */ addiu $a0, $zero, 5
/* 044880 80069480 0C01A702 */ jal osGetId
/* 044884 80069484 00000000 */ nop
/* 044888 80069488 00402021 */ addu $a0, $v0, $zero
/* 04488C 8006948C 14800006 */ bnez $a0, .L800694A8
/* 044890 80069490 00801021 */ addu $v0, $a0, $zero
/* 044894 80069494 8E020000 */ lw $v0, ($s0)
/* 044898 80069498 2403FFFB */ addiu $v1, $zero, -5
/* 04489C 8006949C 00431024 */ and $v0, $v0, $v1
/* 0448A0 800694A0 AE020000 */ sw $v0, ($s0)
.L800694A4:
/* 0448A4 800694A4 00801021 */ addu $v0, $a0, $zero
.L800694A8:
/* 0448A8 800694A8 8FBF0014 */ lw $ra, 0x14($sp)
/* 0448AC 800694AC 8FB00010 */ lw $s0, 0x10($sp)
/* 0448B0 800694B0 03E00008 */ jr $ra
/* 0448B4 800694B4 27BD0018 */ addiu $sp, $sp, 0x18
/* 0448B8 800694B8 00000000 */ nop
/* 0448BC 800694BC 00000000 */ nop