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

56 lines
2.5 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel contReadNW
/* 03BBB4 800607B4 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 03BBB8 800607B8 AFB00010 */ sw $s0, 0x10($sp)
/* 03BBBC 800607BC 0080802D */ daddu $s0, $a0, $zero
/* 03BBC0 800607C0 3C04800B */ lui $a0, 0x800b
/* 03BBC4 800607C4 24840EB8 */ addiu $a0, $a0, 0xeb8
/* 03BBC8 800607C8 0000282D */ daddu $a1, $zero, $zero
/* 03BBCC 800607CC AFBF0014 */ sw $ra, 0x14($sp)
/* 03BBD0 800607D0 0C0195BC */ jal osRecvMesg
/* 03BBD4 800607D4 00A0302D */ daddu $a2, $a1, $zero
/* 03BBD8 800607D8 3C04800E */ lui $a0, 0x800e
/* 03BBDC 800607DC 2484AC78 */ addiu $a0, $a0, -0x5388
/* 03BBE0 800607E0 0C018668 */ jal osContStartReadData
/* 03BBE4 800607E4 00000000 */ nop
/* 03BBE8 800607E8 14400013 */ bnez $v0, .L80060838
/* 03BBEC 800607EC 0000282D */ daddu $a1, $zero, $zero
/* 03BBF0 800607F0 3C04800E */ lui $a0, 0x800e
/* 03BBF4 800607F4 2484AC78 */ addiu $a0, $a0, -0x5388
/* 03BBF8 800607F8 0C0195BC */ jal osRecvMesg
/* 03BBFC 800607FC 24060001 */ addiu $a2, $zero, 1
/* 03BC00 80060800 3C04800E */ lui $a0, 0x800e
/* 03BC04 80060804 2484C040 */ addiu $a0, $a0, -0x3fc0
/* 03BC08 80060808 0000282D */ daddu $a1, $zero, $zero
/* 03BC0C 8006080C 0C019608 */ jal osSendMesg
/* 03BC10 80060810 24060001 */ addiu $a2, $zero, 1
/* 03BC14 80060814 3C04800B */ lui $a0, 0x800b
/* 03BC18 80060818 0C01868A */ jal osContGetReadData
/* 03BC1C 8006081C 24841D68 */ addiu $a0, $a0, 0x1d68
/* 03BC20 80060820 3C04800E */ lui $a0, 0x800e
/* 03BC24 80060824 2484C040 */ addiu $a0, $a0, -0x3fc0
/* 03BC28 80060828 0000282D */ daddu $a1, $zero, $zero
/* 03BC2C 8006082C 0C0195BC */ jal osRecvMesg
/* 03BC30 80060830 24060001 */ addiu $a2, $zero, 1
/* 03BC34 80060834 0000102D */ daddu $v0, $zero, $zero
.L80060838:
/* 03BC38 80060838 14400009 */ bnez $v0, .L80060860
/* 03BC3C 8006083C 00000000 */ nop
/* 03BC40 80060840 3C028009 */ lui $v0, 0x8009
/* 03BC44 80060844 8C423D20 */ lw $v0, 0x3d20($v0)
/* 03BC48 80060848 50400005 */ beql $v0, $zero, .L80060860
/* 03BC4C 8006084C 0000102D */ daddu $v0, $zero, $zero
/* 03BC50 80060850 86040000 */ lh $a0, ($s0)
/* 03BC54 80060854 0040F809 */ jalr $v0
/* 03BC58 80060858 00000000 */ nop
/* 03BC5C 8006085C 0000102D */ daddu $v0, $zero, $zero
.L80060860:
/* 03BC60 80060860 8FBF0014 */ lw $ra, 0x14($sp)
/* 03BC64 80060864 8FB00010 */ lw $s0, 0x10($sp)
/* 03BC68 80060868 03E00008 */ jr $ra
/* 03BC6C 8006086C 27BD0018 */ addiu $sp, $sp, 0x18