2020-09-24 05:16:13 +02:00
|
|
|
.set noat # allow manual use of $at
|
2020-08-04 08:49:11 +02:00
|
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
|
|
glabel osContGetInitData
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 3D11C 80061D1C 27BDFFF0 */ addiu $sp, $sp, -0x10
|
|
|
|
/* 3D120 80061D20 00805821 */ addu $t3, $a0, $zero
|
|
|
|
/* 3D124 80061D24 00A04821 */ addu $t1, $a1, $zero
|
|
|
|
/* 3D128 80061D28 00005021 */ addu $t2, $zero, $zero
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 3D12C 80061D2C 3C02800A */ lui $v0, %hi(D_8009A606)
|
|
|
|
/* 3D130 80061D30 9042A606 */ lbu $v0, %lo(D_8009A606)($v0)
|
|
|
|
/* 3D134 80061D34 3C08800B */ lui $t0, %hi(D_800B0ED0)
|
|
|
|
/* 3D138 80061D38 25080ED0 */ addiu $t0, $t0, %lo(D_800B0ED0)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 3D13C 80061D3C 18400021 */ blez $v0, .L80061DC4
|
|
|
|
/* 3D140 80061D40 00003821 */ addu $a3, $zero, $zero
|
|
|
|
/* 3D144 80061D44 240C0001 */ addiu $t4, $zero, 1
|
|
|
|
/* 3D148 80061D48 24A60002 */ addiu $a2, $a1, 2
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80061D4C:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 3D14C 80061D4C 89020000 */ lwl $v0, ($t0)
|
|
|
|
/* 3D150 80061D50 99020003 */ lwr $v0, 3($t0)
|
|
|
|
/* 3D154 80061D54 89030004 */ lwl $v1, 4($t0)
|
|
|
|
/* 3D158 80061D58 99030007 */ lwr $v1, 7($t0)
|
|
|
|
/* 3D15C 80061D5C ABA20000 */ swl $v0, ($sp)
|
|
|
|
/* 3D160 80061D60 BBA20003 */ swr $v0, 3($sp)
|
|
|
|
/* 3D164 80061D64 ABA30004 */ swl $v1, 4($sp)
|
|
|
|
/* 3D168 80061D68 BBA30007 */ swr $v1, 7($sp)
|
|
|
|
/* 3D16C 80061D6C 93A20002 */ lbu $v0, 2($sp)
|
|
|
|
/* 3D170 80061D70 304200C0 */ andi $v0, $v0, 0xc0
|
|
|
|
/* 3D174 80061D74 00021102 */ srl $v0, $v0, 4
|
|
|
|
/* 3D178 80061D78 1440000A */ bnez $v0, .L80061DA4
|
|
|
|
/* 3D17C 80061D7C A0C20001 */ sb $v0, 1($a2)
|
|
|
|
/* 3D180 80061D80 93A20005 */ lbu $v0, 5($sp)
|
|
|
|
/* 3D184 80061D84 93A30004 */ lbu $v1, 4($sp)
|
|
|
|
/* 3D188 80061D88 00021200 */ sll $v0, $v0, 8
|
|
|
|
/* 3D18C 80061D8C 00621825 */ or $v1, $v1, $v0
|
|
|
|
/* 3D190 80061D90 A5230000 */ sh $v1, ($t1)
|
|
|
|
/* 3D194 80061D94 93A30006 */ lbu $v1, 6($sp)
|
|
|
|
/* 3D198 80061D98 00EC1004 */ sllv $v0, $t4, $a3
|
|
|
|
/* 3D19C 80061D9C 01425025 */ or $t2, $t2, $v0
|
|
|
|
/* 3D1A0 80061DA0 A0C30000 */ sb $v1, ($a2)
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80061DA4:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 3D1A4 80061DA4 24E70001 */ addiu $a3, $a3, 1
|
|
|
|
/* 3D1A8 80061DA8 25080008 */ addiu $t0, $t0, 8
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 3D1AC 80061DAC 3C02800A */ lui $v0, %hi(D_8009A606)
|
|
|
|
/* 3D1B0 80061DB0 9042A606 */ lbu $v0, %lo(D_8009A606)($v0)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 3D1B4 80061DB4 24C60004 */ addiu $a2, $a2, 4
|
|
|
|
/* 3D1B8 80061DB8 00E2102A */ slt $v0, $a3, $v0
|
|
|
|
/* 3D1BC 80061DBC 1440FFE3 */ bnez $v0, .L80061D4C
|
|
|
|
/* 3D1C0 80061DC0 25290004 */ addiu $t1, $t1, 4
|
2020-08-04 08:49:11 +02:00
|
|
|
.L80061DC4:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 3D1C4 80061DC4 A16A0000 */ sb $t2, ($t3)
|
|
|
|
/* 3D1C8 80061DC8 03E00008 */ jr $ra
|
|
|
|
/* 3D1CC 80061DCC 27BD0010 */ addiu $sp, $sp, 0x10
|