papermario/asm/nonmatchings/os/code_45df0_len_970/redispatch.s
2020-09-23 23:16:13 -04:00

18 lines
810 B
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel redispatch
/* 46300 8006AF00 8F490004 */ lw $t1, 4($k0)
/* 46304 8006AF04 3C0A8009 */ lui $t2, 0x8009
/* 46308 8006AF08 8D4A4658 */ lw $t2, 0x4658($t2)
/* 4630C 8006AF0C 8D4B0004 */ lw $t3, 4($t2)
/* 46310 8006AF10 012B082A */ slt $at, $t1, $t3
/* 46314 8006AF14 10200007 */ beqz $at, enqueueRunning
/* 46318 8006AF18 00000000 */ nop
/* 4631C 8006AF1C 03402821 */ addu $a1, $k0, $zero
/* 46320 8006AF20 3C048009 */ lui $a0, 0x8009
/* 46324 8006AF24 0C01AC5D */ jal osEnqueueThread
/* 46328 8006AF28 24844658 */ addiu $a0, $a0, 0x4658
/* 4632C 8006AF2C 0801AC75 */ j osDispatchThread
/* 46330 8006AF30 00000000 */ nop