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

42 lines
1.9 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osContStartReadData
/* 03CDA0 800619A0 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 03CDA4 800619A4 AFB00010 */ sw $s0, 0x10($sp)
/* 03CDA8 800619A8 AFBF0014 */ sw $ra, 0x14($sp)
/* 03CDAC 800619AC 0C019771 */ jal osSiGetAccess
/* 03CDB0 800619B0 00808021 */ addu $s0, $a0, $zero
/* 03CDB4 800619B4 3C03800A */ lui $v1, 0x800a
/* 03CDB8 800619B8 9063A61C */ lbu $v1, -0x59e4($v1)
/* 03CDBC 800619BC 24020001 */ addiu $v0, $zero, 1
/* 03CDC0 800619C0 1062000B */ beq $v1, $v0, .L800619F0
/* 03CDC4 800619C4 00000000 */ nop
/* 03CDC8 800619C8 0C0186B1 */ jal osPackReadData
/* 03CDCC 800619CC 00000000 */ nop
/* 03CDD0 800619D0 3C05800B */ lui $a1, 0x800b
/* 03CDD4 800619D4 24A50ED0 */ addiu $a1, $a1, 0xed0
/* 03CDD8 800619D8 0C019730 */ jal osSiRawStartDma
/* 03CDDC 800619DC 24040001 */ addiu $a0, $zero, 1
/* 03CDE0 800619E0 02002021 */ addu $a0, $s0, $zero
/* 03CDE4 800619E4 00002821 */ addu $a1, $zero, $zero
/* 03CDE8 800619E8 0C0195BC */ jal osRecvMesg
/* 03CDEC 800619EC 24060001 */ addiu $a2, $zero, 1
.L800619F0:
/* 03CDF0 800619F0 3C05800B */ lui $a1, 0x800b
/* 03CDF4 800619F4 24A50ED0 */ addiu $a1, $a1, 0xed0
/* 03CDF8 800619F8 0C019730 */ jal osSiRawStartDma
/* 03CDFC 800619FC 00002021 */ addu $a0, $zero, $zero
/* 03CE00 80061A00 24030001 */ addiu $v1, $zero, 1
/* 03CE04 80061A04 3C01800A */ lui $at, 0x800a
/* 03CE08 80061A08 A023A61C */ sb $v1, -0x59e4($at)
/* 03CE0C 80061A0C 0C01978C */ jal osSiRelAccess
/* 03CE10 80061A10 00408021 */ addu $s0, $v0, $zero
/* 03CE14 80061A14 02001021 */ addu $v0, $s0, $zero
/* 03CE18 80061A18 8FBF0014 */ lw $ra, 0x14($sp)
/* 03CE1C 80061A1C 8FB00010 */ lw $s0, 0x10($sp)
/* 03CE20 80061A20 03E00008 */ jr $ra
/* 03CE24 80061A24 27BD0018 */ addiu $sp, $sp, 0x18