mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
56 lines
2.8 KiB
ArmAsm
56 lines
2.8 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel osPackRequestData
|
|
/* 3D1D0 80061DD0 27BDFFF0 */ addiu $sp, $sp, -0x10
|
|
/* 3D1D4 80061DD4 00802821 */ addu $a1, $a0, $zero
|
|
/* 3D1D8 80061DD8 2406000E */ addiu $a2, $zero, 0xe
|
|
/* 3D1DC 80061DDC 3C02800B */ lui $v0, %hi(D_800B0F08)
|
|
/* 3D1E0 80061DE0 24420F08 */ addiu $v0, $v0, %lo(D_800B0F08)
|
|
.L80061DE4:
|
|
/* 3D1E4 80061DE4 AC400000 */ sw $zero, ($v0)
|
|
/* 3D1E8 80061DE8 24C6FFFF */ addiu $a2, $a2, -1
|
|
/* 3D1EC 80061DEC 04C1FFFD */ bgez $a2, .L80061DE4
|
|
/* 3D1F0 80061DF0 2442FFFC */ addiu $v0, $v0, -4
|
|
/* 3D1F4 80061DF4 3C03800B */ lui $v1, %hi(D_800B0F0C)
|
|
/* 3D1F8 80061DF8 24630F0C */ addiu $v1, $v1, %lo(D_800B0F0C)
|
|
/* 3D1FC 80061DFC 2467FFC4 */ addiu $a3, $v1, -0x3c
|
|
/* 3D200 80061E00 3C04800A */ lui $a0, %hi(D_8009A606)
|
|
/* 3D204 80061E04 9084A606 */ lbu $a0, %lo(D_8009A606)($a0)
|
|
/* 3D208 80061E08 00003021 */ addu $a2, $zero, $zero
|
|
/* 3D20C 80061E0C 24020001 */ addiu $v0, $zero, 1
|
|
/* 3D210 80061E10 AC620000 */ sw $v0, ($v1)
|
|
/* 3D214 80061E14 240300FF */ addiu $v1, $zero, 0xff
|
|
/* 3D218 80061E18 24020001 */ addiu $v0, $zero, 1
|
|
/* 3D21C 80061E1C A3A20001 */ sb $v0, 1($sp)
|
|
/* 3D220 80061E20 24020003 */ addiu $v0, $zero, 3
|
|
/* 3D224 80061E24 A3A30000 */ sb $v1, ($sp)
|
|
/* 3D228 80061E28 A3A20002 */ sb $v0, 2($sp)
|
|
/* 3D22C 80061E2C A3A50003 */ sb $a1, 3($sp)
|
|
/* 3D230 80061E30 A3A30004 */ sb $v1, 4($sp)
|
|
/* 3D234 80061E34 A3A30005 */ sb $v1, 5($sp)
|
|
/* 3D238 80061E38 A3A30006 */ sb $v1, 6($sp)
|
|
/* 3D23C 80061E3C 1880000F */ blez $a0, .L80061E7C
|
|
/* 3D240 80061E40 A3A30007 */ sb $v1, 7($sp)
|
|
.L80061E44:
|
|
/* 3D244 80061E44 8BA20000 */ lwl $v0, ($sp)
|
|
/* 3D248 80061E48 9BA20003 */ lwr $v0, 3($sp)
|
|
/* 3D24C 80061E4C 8BA30004 */ lwl $v1, 4($sp)
|
|
/* 3D250 80061E50 9BA30007 */ lwr $v1, 7($sp)
|
|
/* 3D254 80061E54 A8E20000 */ swl $v0, ($a3)
|
|
/* 3D258 80061E58 B8E20003 */ swr $v0, 3($a3)
|
|
/* 3D25C 80061E5C A8E30004 */ swl $v1, 4($a3)
|
|
/* 3D260 80061E60 B8E30007 */ swr $v1, 7($a3)
|
|
/* 3D264 80061E64 3C02800A */ lui $v0, %hi(D_8009A606)
|
|
/* 3D268 80061E68 9042A606 */ lbu $v0, %lo(D_8009A606)($v0)
|
|
/* 3D26C 80061E6C 24C60001 */ addiu $a2, $a2, 1
|
|
/* 3D270 80061E70 00C2102A */ slt $v0, $a2, $v0
|
|
/* 3D274 80061E74 1440FFF3 */ bnez $v0, .L80061E44
|
|
/* 3D278 80061E78 24E70008 */ addiu $a3, $a3, 8
|
|
.L80061E7C:
|
|
/* 3D27C 80061E7C 240200FE */ addiu $v0, $zero, 0xfe
|
|
/* 3D280 80061E80 A0E20000 */ sb $v0, ($a3)
|
|
/* 3D284 80061E84 03E00008 */ jr $ra
|
|
/* 3D288 80061E88 27BD0010 */ addiu $sp, $sp, 0x10
|
|
/* 3D28C 80061E8C 00000000 */ nop
|