papermario/asm/nonmatchings/os/code_3b910_len_410/contRetrace.s
2021-01-11 21:40:52 +09:00

63 lines
3.3 KiB
ArmAsm
Generated

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel contRetrace
/* 3BA5C 8006065C 3C02800A */ lui $v0, %hi(D_8009A5E0)
/* 3BA60 80060660 8C42A5E0 */ lw $v0, %lo(D_8009A5E0)($v0)
/* 3BA64 80060664 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 3BA68 80060668 AFB00010 */ sw $s0, 0x10($sp)
/* 3BA6C 8006066C 0080802D */ daddu $s0, $a0, $zero
/* 3BA70 80060670 1440002C */ bnez $v0, .L80060724
/* 3BA74 80060674 AFBF0014 */ sw $ra, 0x14($sp)
/* 3BA78 80060678 3C04800B */ lui $a0, %hi(D_800B0EB8)
/* 3BA7C 8006067C 24840EB8 */ addiu $a0, $a0, %lo(D_800B0EB8)
/* 3BA80 80060680 0000282D */ daddu $a1, $zero, $zero
/* 3BA84 80060684 0C0195BC */ jal osRecvMesg
/* 3BA88 80060688 00A0302D */ daddu $a2, $a1, $zero
/* 3BA8C 8006068C 3C04800E */ lui $a0, %hi(nuSiMesgQ)
/* 3BA90 80060690 2484AC78 */ addiu $a0, $a0, %lo(nuSiMesgQ)
/* 3BA94 80060694 0C018668 */ jal osContStartReadData
/* 3BA98 80060698 00000000 */ nop
/* 3BA9C 8006069C 14400016 */ bnez $v0, .L800606F8
/* 3BAA0 800606A0 0000282D */ daddu $a1, $zero, $zero
/* 3BAA4 800606A4 3C04800E */ lui $a0, %hi(nuSiMesgQ)
/* 3BAA8 800606A8 2484AC78 */ addiu $a0, $a0, %lo(nuSiMesgQ)
/* 3BAAC 800606AC 0C0195BC */ jal osRecvMesg
/* 3BAB0 800606B0 24060001 */ addiu $a2, $zero, 1
/* 3BAB4 800606B4 3C02800A */ lui $v0, %hi(D_8009A5E0)
/* 3BAB8 800606B8 8C42A5E0 */ lw $v0, %lo(D_8009A5E0)($v0)
/* 3BABC 800606BC 30420001 */ andi $v0, $v0, 1
/* 3BAC0 800606C0 1440000D */ bnez $v0, .L800606F8
/* 3BAC4 800606C4 0000282D */ daddu $a1, $zero, $zero
/* 3BAC8 800606C8 3C04800E */ lui $a0, %hi(D_800DC040)
/* 3BACC 800606CC 2484C040 */ addiu $a0, $a0, %lo(D_800DC040)
/* 3BAD0 800606D0 0C019608 */ jal osSendMesg
/* 3BAD4 800606D4 24060001 */ addiu $a2, $zero, 1
/* 3BAD8 800606D8 3C04800B */ lui $a0, %hi(nuContData)
/* 3BADC 800606DC 0C01868A */ jal osContGetReadData
/* 3BAE0 800606E0 24841D68 */ addiu $a0, $a0, %lo(nuContData)
/* 3BAE4 800606E4 3C04800E */ lui $a0, %hi(D_800DC040)
/* 3BAE8 800606E8 2484C040 */ addiu $a0, $a0, %lo(D_800DC040)
/* 3BAEC 800606EC 0000282D */ daddu $a1, $zero, $zero
/* 3BAF0 800606F0 0C0195BC */ jal osRecvMesg
/* 3BAF4 800606F4 24060001 */ addiu $a2, $zero, 1
.L800606F8:
/* 3BAF8 800606F8 3C028009 */ lui $v0, %hi(D_80093D20)
/* 3BAFC 800606FC 8C423D20 */ lw $v0, %lo(D_80093D20)($v0)
/* 3BB00 80060700 10400003 */ beqz $v0, .L80060710
/* 3BB04 80060704 00000000 */ nop
/* 3BB08 80060708 0040F809 */ jalr $v0
/* 3BB0C 8006070C 86040000 */ lh $a0, ($s0)
.L80060710:
/* 3BB10 80060710 3C04800B */ lui $a0, %hi(D_800B0EB8)
/* 3BB14 80060714 24840EB8 */ addiu $a0, $a0, %lo(D_800B0EB8)
/* 3BB18 80060718 0000282D */ daddu $a1, $zero, $zero
/* 3BB1C 8006071C 0C019608 */ jal osSendMesg
/* 3BB20 80060720 00A0302D */ daddu $a2, $a1, $zero
.L80060724:
/* 3BB24 80060724 0000102D */ daddu $v0, $zero, $zero
/* 3BB28 80060728 8FBF0014 */ lw $ra, 0x14($sp)
/* 3BB2C 8006072C 8FB00010 */ lw $s0, 0x10($sp)
/* 3BB30 80060730 03E00008 */ jr $ra
/* 3BB34 80060734 27BD0018 */ addiu $sp, $sp, 0x18