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

51 lines
2.3 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel nuGfxInit
/* 03A960 8005F560 27BDF7E8 */ addiu $sp, $sp, -0x818
/* 03A964 8005F564 AFBF0810 */ sw $ra, 0x810($sp)
/* 03A968 8005F568 0C01807C */ jal nuGfxThreadStart
/* 03A96C 8005F56C 00000000 */ nop
/* 03A970 8005F570 3C048009 */ lui $a0, 0x8009
/* 03A974 8005F574 24843BA8 */ addiu $a0, $a0, 0x3ba8
/* 03A978 8005F578 0C017CBC */ jal nuGfxSetCfb
/* 03A97C 8005F57C 24050003 */ addiu $a1, $zero, 3
/* 03A980 8005F580 3C028000 */ lui $v0, 0x8000
/* 03A984 8005F584 34420400 */ ori $v0, $v0, 0x400
/* 03A988 8005F588 3C048006 */ lui $a0, 0x8006
/* 03A98C 8005F58C 24840350 */ addiu $a0, $a0, 0x350
/* 03A990 8005F590 3C01800A */ lui $at, 0x800a
/* 03A994 8005F594 AC22A5DC */ sw $v0, -0x5a24($at)
/* 03A998 8005F598 0C0180C4 */ jal nuGfxSwapCfbFuncSet
/* 03A99C 8005F59C 00000000 */ nop
/* 03A9A0 8005F5A0 3C028009 */ lui $v0, 0x8009
/* 03A9A4 8005F5A4 24423BA0 */ addiu $v0, $v0, 0x3ba0
/* 03A9A8 8005F5A8 3C01800A */ lui $at, 0x800a
/* 03A9AC 8005F5AC AC22A610 */ sw $v0, -0x59f0($at)
/* 03A9B0 8005F5B0 0C00B2CE */ jal nuGfxTaskMgrInit
/* 03A9B4 8005F5B4 00000000 */ nop
/* 03A9B8 8005F5B8 27A40010 */ addiu $a0, $sp, 0x10
/* 03A9BC 8005F5BC 27A50028 */ addiu $a1, $sp, 0x28
/* 03A9C0 8005F5C0 00A42823 */ subu $a1, $a1, $a0
/* 03A9C4 8005F5C4 3C02DE00 */ lui $v0, 0xde00
/* 03A9C8 8005F5C8 AFA20010 */ sw $v0, 0x10($sp)
/* 03A9CC 8005F5CC 3C020009 */ lui $v0, 9
/* 03A9D0 8005F5D0 24423BB8 */ addiu $v0, $v0, 0x3bb8
/* 03A9D4 8005F5D4 AC820004 */ sw $v0, 4($a0)
/* 03A9D8 8005F5D8 3C02E900 */ lui $v0, 0xe900
/* 03A9DC 8005F5DC AFA20018 */ sw $v0, 0x18($sp)
/* 03A9E0 8005F5E0 3C02DF00 */ lui $v0, 0xdf00
/* 03A9E4 8005F5E4 0000302D */ daddu $a2, $zero, $zero
/* 03A9E8 8005F5E8 00C0382D */ daddu $a3, $a2, $zero
/* 03A9EC 8005F5EC AFA0001C */ sw $zero, 0x1c($sp)
/* 03A9F0 8005F5F0 AFA20020 */ sw $v0, 0x20($sp)
/* 03A9F4 8005F5F4 0C00B331 */ jal nuGfxTaskStart
/* 03A9F8 8005F5F8 AFA00024 */ sw $zero, 0x24($sp)
/* 03A9FC 8005F5FC 0C017CB4 */ jal nuGfxTaskAllEndWait
/* 03AA00 8005F600 00000000 */ nop
/* 03AA04 8005F604 8FBF0810 */ lw $ra, 0x810($sp)
/* 03AA08 8005F608 03E00008 */ jr $ra
/* 03AA0C 8005F60C 27BD0818 */ addiu $sp, $sp, 0x818