.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel nuScCreateScheduler /* 39DB0 8005E9B0 27BDFFD0 */ addiu $sp, $sp, -0x30 /* 39DB4 8005E9B4 AFB40028 */ sw $s4, 0x28($sp) /* 39DB8 8005E9B8 0080A02D */ daddu $s4, $a0, $zero /* 39DBC 8005E9BC AFB30024 */ sw $s3, 0x24($sp) /* 39DC0 8005E9C0 00A0982D */ daddu $s3, $a1, $zero /* 39DC4 8005E9C4 3C04800E */ lui $a0, 0x800e /* 39DC8 8005E9C8 2484AAAC */ addiu $a0, $a0, -0x5554 /* 39DCC 8005E9CC 24020001 */ addiu $v0, $zero, 1 /* 39DD0 8005E9D0 24030002 */ addiu $v1, $zero, 2 /* 39DD4 8005E9D4 AFBF002C */ sw $ra, 0x2c($sp) /* 39DD8 8005E9D8 AFB20020 */ sw $s2, 0x20($sp) /* 39DDC 8005E9DC AFB1001C */ sw $s1, 0x1c($sp) /* 39DE0 8005E9E0 AFB00018 */ sw $s0, 0x18($sp) /* 39DE4 8005E9E4 A482F994 */ sh $v0, -0x66c($a0) /* 39DE8 8005E9E8 326200FF */ andi $v0, $s3, 0xff /* 39DEC 8005E9EC AC82000C */ sw $v0, 0xc($a0) /* 39DF0 8005E9F0 A0830011 */ sb $v1, 0x11($a0) /* 39DF4 8005E9F4 3C028000 */ lui $v0, 0x8000 /* 39DF8 8005E9F8 8C420300 */ lw $v0, 0x300($v0) /* 39DFC 8005E9FC A483F996 */ sh $v1, -0x66a($a0) /* 39E00 8005EA00 2483F994 */ addiu $v1, $a0, -0x66c /* 39E04 8005EA04 AC800000 */ sw $zero, ($a0) /* 39E08 8005EA08 AC800004 */ sw $zero, 4($a0) /* 39E0C 8005EA0C AC800008 */ sw $zero, 8($a0) /* 39E10 8005EA10 14400004 */ bnez $v0, .L8005EA24 /* 39E14 8005EA14 AC80FFFC */ sw $zero, -4($a0) /* 39E18 8005EA18 24020032 */ addiu $v0, $zero, 0x32 /* 39E1C 8005EA1C 08017A8B */ j .L8005EA2C /* 39E20 8005EA20 A062067C */ sb $v0, 0x67c($v1) .L8005EA24: /* 39E24 8005EA24 2402003C */ addiu $v0, $zero, 0x3c /* 39E28 8005EA28 A0820010 */ sb $v0, 0x10($a0) .L8005EA2C: /* 39E2C 8005EA2C 3C10800E */ lui $s0, 0x800e /* 39E30 8005EA30 2610A4B4 */ addiu $s0, $s0, -0x5b4c /* 39E34 8005EA34 0200202D */ daddu $a0, $s0, $zero /* 39E38 8005EA38 26050018 */ addiu $a1, $s0, 0x18 /* 39E3C 8005EA3C 3C01800A */ lui $at, 0x800a /* 39E40 8005EA40 A020A5B0 */ sb $zero, -0x5a50($at) /* 39E44 8005EA44 0C019560 */ jal osCreateMesgQueue /* 39E48 8005EA48 24060008 */ addiu $a2, $zero, 8 /* 39E4C 8005EA4C 26120038 */ addiu $s2, $s0, 0x38 /* 39E50 8005EA50 0240202D */ daddu $a0, $s2, $zero /* 39E54 8005EA54 26050050 */ addiu $a1, $s0, 0x50 /* 39E58 8005EA58 0C019560 */ jal osCreateMesgQueue /* 39E5C 8005EA5C 24060008 */ addiu $a2, $zero, 8 /* 39E60 8005EA60 26110070 */ addiu $s1, $s0, 0x70 /* 39E64 8005EA64 0220202D */ daddu $a0, $s1, $zero /* 39E68 8005EA68 26050088 */ addiu $a1, $s0, 0x88 /* 39E6C 8005EA6C 0C019560 */ jal osCreateMesgQueue /* 39E70 8005EA70 24060008 */ addiu $a2, $zero, 8 /* 39E74 8005EA74 2604FFC8 */ addiu $a0, $s0, -0x38 /* 39E78 8005EA78 2605FFE0 */ addiu $a1, $s0, -0x20 /* 39E7C 8005EA7C 0C019560 */ jal osCreateMesgQueue /* 39E80 8005EA80 24060008 */ addiu $a2, $zero, 8 /* 39E84 8005EA84 2604FF90 */ addiu $a0, $s0, -0x70 /* 39E88 8005EA88 2605FFA8 */ addiu $a1, $s0, -0x58 /* 39E8C 8005EA8C 0C019560 */ jal osCreateMesgQueue /* 39E90 8005EA90 24060008 */ addiu $a2, $zero, 8 /* 39E94 8005EA94 260400A8 */ addiu $a0, $s0, 0xa8 /* 39E98 8005EA98 260500C0 */ addiu $a1, $s0, 0xc0 /* 39E9C 8005EA9C 0C019560 */ jal osCreateMesgQueue /* 39EA0 8005EAA0 24060008 */ addiu $a2, $zero, 8 /* 39EA4 8005EAA4 0C019A9C */ jal osCreateViManager /* 39EA8 8005EAA8 240400FE */ addiu $a0, $zero, 0xfe /* 39EAC 8005EAAC 328200FF */ andi $v0, $s4, 0xff /* 39EB0 8005EAB0 00022080 */ sll $a0, $v0, 2 /* 39EB4 8005EAB4 00822021 */ addu $a0, $a0, $v0 /* 39EB8 8005EAB8 00042100 */ sll $a0, $a0, 4 /* 39EBC 8005EABC 3C028009 */ lui $v0, 0x8009 /* 39EC0 8005EAC0 244246A0 */ addiu $v0, $v0, 0x46a0 /* 39EC4 8005EAC4 0C019B84 */ jal osViSetMode /* 39EC8 8005EAC8 00822021 */ addu $a0, $a0, $v0 /* 39ECC 8005EACC 0C019CE0 */ jal osViBlack /* 39ED0 8005EAD0 24040001 */ addiu $a0, $zero, 1 /* 39ED4 8005EAD4 0200202D */ daddu $a0, $s0, $zero /* 39ED8 8005EAD8 2405029A */ addiu $a1, $zero, 0x29a /* 39EDC 8005EADC 0C019B6C */ jal osViSetEvent /* 39EE0 8005EAE0 326600FF */ andi $a2, $s3, 0xff /* 39EE4 8005EAE4 24040004 */ addiu $a0, $zero, 4 /* 39EE8 8005EAE8 0240282D */ daddu $a1, $s2, $zero /* 39EEC 8005EAEC 0C019654 */ jal osSetEventMesg /* 39EF0 8005EAF0 2406029B */ addiu $a2, $zero, 0x29b /* 39EF4 8005EAF4 24040009 */ addiu $a0, $zero, 9 /* 39EF8 8005EAF8 0220282D */ daddu $a1, $s1, $zero /* 39EFC 8005EAFC 0C019654 */ jal osSetEventMesg /* 39F00 8005EB00 2406029C */ addiu $a2, $zero, 0x29c /* 39F04 8005EB04 2404000E */ addiu $a0, $zero, 0xe /* 39F08 8005EB08 0200282D */ daddu $a1, $s0, $zero /* 39F0C 8005EB0C 0C019654 */ jal osSetEventMesg /* 39F10 8005EB10 2406029D */ addiu $a2, $zero, 0x29d /* 39F14 8005EB14 261200E4 */ addiu $s2, $s0, 0xe4 /* 39F18 8005EB18 0240202D */ daddu $a0, $s2, $zero /* 39F1C 8005EB1C 24050013 */ addiu $a1, $zero, 0x13 /* 39F20 8005EB20 3C068006 */ lui $a2, 0x8006 /* 39F24 8005EB24 24C6EFA8 */ addiu $a2, $a2, -0x1058 /* 39F28 8005EB28 2611FF8C */ addiu $s1, $s0, -0x74 /* 39F2C 8005EB2C 0220382D */ daddu $a3, $s1, $zero /* 39F30 8005EB30 3C02800B */ lui $v0, 0x800b /* 39F34 8005EB34 244285D0 */ addiu $v0, $v0, -0x7a30 /* 39F38 8005EB38 AFA20010 */ sw $v0, 0x10($sp) /* 39F3C 8005EB3C 24020078 */ addiu $v0, $zero, 0x78 /* 39F40 8005EB40 0C019798 */ jal osCreateThread /* 39F44 8005EB44 AFA20014 */ sw $v0, 0x14($sp) /* 39F48 8005EB48 0C019808 */ jal osStartThread /* 39F4C 8005EB4C 0240202D */ daddu $a0, $s2, $zero /* 39F50 8005EB50 26120294 */ addiu $s2, $s0, 0x294 /* 39F54 8005EB54 0240202D */ daddu $a0, $s2, $zero /* 39F58 8005EB58 24050012 */ addiu $a1, $zero, 0x12 /* 39F5C 8005EB5C 3C068006 */ lui $a2, 0x8006 /* 39F60 8005EB60 24C6EBE0 */ addiu $a2, $a2, -0x1420 /* 39F64 8005EB64 0220382D */ daddu $a3, $s1, $zero /* 39F68 8005EB68 3C02800B */ lui $v0, 0x800b /* 39F6C 8005EB6C 2442A5D0 */ addiu $v0, $v0, -0x5a30 /* 39F70 8005EB70 AFA20010 */ sw $v0, 0x10($sp) /* 39F74 8005EB74 2402006E */ addiu $v0, $zero, 0x6e /* 39F78 8005EB78 0C019798 */ jal osCreateThread /* 39F7C 8005EB7C AFA20014 */ sw $v0, 0x14($sp) /* 39F80 8005EB80 0C019808 */ jal osStartThread /* 39F84 8005EB84 0240202D */ daddu $a0, $s2, $zero /* 39F88 8005EB88 26100444 */ addiu $s0, $s0, 0x444 /* 39F8C 8005EB8C 0200202D */ daddu $a0, $s0, $zero /* 39F90 8005EB90 24050011 */ addiu $a1, $zero, 0x11 /* 39F94 8005EB94 3C068006 */ lui $a2, 0x8006 /* 39F98 8005EB98 24C6ED14 */ addiu $a2, $a2, -0x12ec /* 39F9C 8005EB9C 0220382D */ daddu $a3, $s1, $zero /* 39FA0 8005EBA0 3C02800B */ lui $v0, 0x800b /* 39FA4 8005EBA4 2442C5D0 */ addiu $v0, $v0, -0x3a30 /* 39FA8 8005EBA8 AFA20010 */ sw $v0, 0x10($sp) /* 39FAC 8005EBAC 24020064 */ addiu $v0, $zero, 0x64 /* 39FB0 8005EBB0 0C019798 */ jal osCreateThread /* 39FB4 8005EBB4 AFA20014 */ sw $v0, 0x14($sp) /* 39FB8 8005EBB8 0C019808 */ jal osStartThread /* 39FBC 8005EBBC 0200202D */ daddu $a0, $s0, $zero /* 39FC0 8005EBC0 8FBF002C */ lw $ra, 0x2c($sp) /* 39FC4 8005EBC4 8FB40028 */ lw $s4, 0x28($sp) /* 39FC8 8005EBC8 8FB30024 */ lw $s3, 0x24($sp) /* 39FCC 8005EBCC 8FB20020 */ lw $s2, 0x20($sp) /* 39FD0 8005EBD0 8FB1001C */ lw $s1, 0x1c($sp) /* 39FD4 8005EBD4 8FB00018 */ lw $s0, 0x18($sp) /* 39FD8 8005EBD8 03E00008 */ jr $ra /* 39FDC 8005EBDC 27BD0030 */ addiu $sp, $sp, 0x30