mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
40 lines
1.6 KiB
ArmAsm
40 lines
1.6 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel osPfsReleasePages
|
|
/* 043B6C 8006876C 8FA90010 */ lw $t1, 0x10($sp)
|
|
/* 043B70 80068770 00071200 */ sll $v0, $a3, 8
|
|
/* 043B74 80068774 30C600FF */ andi $a2, $a2, 0xff
|
|
/* 043B78 80068778 00461825 */ or $v1, $v0, $a2
|
|
/* 043B7C 8006877C 24080003 */ addiu $t0, $zero, 3
|
|
/* 043B80 80068780 30E700FF */ andi $a3, $a3, 0xff
|
|
/* 043B84 80068784 00601021 */ addu $v0, $v1, $zero
|
|
.L80068788:
|
|
/* 043B88 80068788 304300FF */ andi $v1, $v0, 0xff
|
|
/* 043B8C 8006878C 00031840 */ sll $v1, $v1, 1
|
|
/* 043B90 80068790 00651821 */ addu $v1, $v1, $a1
|
|
/* 043B94 80068794 94630000 */ lhu $v1, ($v1)
|
|
/* 043B98 80068798 304200FF */ andi $v0, $v0, 0xff
|
|
/* 043B9C 8006879C 00021040 */ sll $v0, $v0, 1
|
|
/* 043BA0 800687A0 00A21021 */ addu $v0, $a1, $v0
|
|
/* 043BA4 800687A4 A4480000 */ sh $t0, ($v0)
|
|
/* 043BA8 800687A8 8C820060 */ lw $v0, 0x60($a0)
|
|
/* 043BAC 800687AC 3066FFFF */ andi $a2, $v1, 0xffff
|
|
/* 043BB0 800687B0 00C2102A */ slt $v0, $a2, $v0
|
|
/* 043BB4 800687B4 54400005 */ bnel $v0, $zero, .L800687CC
|
|
/* 043BB8 800687B8 A5230000 */ sh $v1, ($t1)
|
|
/* 043BBC 800687BC 00061202 */ srl $v0, $a2, 8
|
|
/* 043BC0 800687C0 1047FFF1 */ beq $v0, $a3, .L80068788
|
|
/* 043BC4 800687C4 00601021 */ addu $v0, $v1, $zero
|
|
/* 043BC8 800687C8 A5230000 */ sh $v1, ($t1)
|
|
.L800687CC:
|
|
/* 043BCC 800687CC 03E00008 */ jr $ra
|
|
/* 043BD0 800687D0 00001021 */ addu $v0, $zero, $zero
|
|
|
|
/* 043BD4 800687D4 00000000 */ nop
|
|
/* 043BD8 800687D8 00000000 */ nop
|
|
/* 043BDC 800687DC 00000000 */ nop
|
|
|
|
|