donut-decomp/asm/gx/GXInit.s
2022-10-17 09:11:35 +01:00

1464 lines
65 KiB
ArmAsm

.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
.global __GXDefaultTexRegionCallback
__GXDefaultTexRegionCallback:
/* 80031C20 0002DA60 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80031C24 0002DA64 7C 08 02 A6 */ mflr r0
/* 80031C28 0002DA68 90 01 00 24 */ stw r0, 0x24(r1)
/* 80031C2C 0002DA6C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80031C30 0002DA70 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80031C34 0002DA74 7C 9E 23 78 */ mr r30, r4
/* 80031C38 0002DA78 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80031C3C 0002DA7C 7C 7D 1B 78 */ mr r29, r3
/* 80031C40 0002DA80 48 0E F2 21 */ bl GetSize__Q34nw4r2ut13DvdFileStreamCFv
/* 80031C44 0002DA84 7C 7F 1B 78 */ mr r31, r3
/* 80031C48 0002DA88 7F A3 EB 78 */ mr r3, r29
/* 80031C4C 0002DA8C 48 00 4F 85 */ bl GXGetTexObjMipMap
/* 80031C50 0002DA90 38 1F FF F8 */ addi r0, r31, -0x8
/* 80031C54 0002DA94 57 C4 E8 04 */ slwi r4, r30, 29
/* 80031C58 0002DA98 57 C5 0F FE */ srwi r5, r30, 31
/* 80031C5C 0002DA9C 7C 85 20 50 */ subf r4, r5, r4
/* 80031C60 0002DAA0 28 00 00 02 */ cmplwi r0, 0x2
/* 80031C64 0002DAA4 54 80 18 3E */ rotlwi r0, r4, 3
/* 80031C68 0002DAA8 7F C0 2A 14 */ add r30, r0, r5
/* 80031C6C 0002DAAC 40 81 00 3C */ ble lbl_80031CA8
/* 80031C70 0002DAB0 2C 1F 00 06 */ cmpwi r31, 0x6
/* 80031C74 0002DAB4 40 82 00 48 */ bne lbl_80031CBC
/* 80031C78 0002DAB8 54 60 06 3F */ clrlwi. r0, r3, 24
/* 80031C7C 0002DABC 41 82 00 18 */ beq lbl_80031C94
/* 80031C80 0002DAC0 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
/* 80031C84 0002DAC4 57 C0 20 36 */ slwi r0, r30, 4
/* 80031C88 0002DAC8 7C 63 02 14 */ add r3, r3, r0
/* 80031C8C 0002DACC 38 63 03 58 */ addi r3, r3, 0x358
/* 80031C90 0002DAD0 48 00 00 58 */ b lbl_80031CE8
.global lbl_80031C94
lbl_80031C94:
/* 80031C94 0002DAD4 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
/* 80031C98 0002DAD8 57 C0 20 36 */ slwi r0, r30, 4
/* 80031C9C 0002DADC 7C 63 02 14 */ add r3, r3, r0
/* 80031CA0 0002DAE0 38 63 02 D8 */ addi r3, r3, 0x2d8
/* 80031CA4 0002DAE4 48 00 00 44 */ b lbl_80031CE8
.global lbl_80031CA8
lbl_80031CA8:
/* 80031CA8 0002DAE8 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
/* 80031CAC 0002DAEC 57 C0 20 36 */ slwi r0, r30, 4
/* 80031CB0 0002DAF0 7C 63 02 14 */ add r3, r3, r0
/* 80031CB4 0002DAF4 38 63 02 58 */ addi r3, r3, 0x258
/* 80031CB8 0002DAF8 48 00 00 30 */ b lbl_80031CE8
.global lbl_80031CBC
lbl_80031CBC:
/* 80031CBC 0002DAFC 54 60 06 3F */ clrlwi. r0, r3, 24
/* 80031CC0 0002DB00 41 82 00 18 */ beq lbl_80031CD8
/* 80031CC4 0002DB04 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
/* 80031CC8 0002DB08 57 C0 20 36 */ slwi r0, r30, 4
/* 80031CCC 0002DB0C 7C 63 02 14 */ add r3, r3, r0
/* 80031CD0 0002DB10 38 63 02 D8 */ addi r3, r3, 0x2d8
/* 80031CD4 0002DB14 48 00 00 14 */ b lbl_80031CE8
.global lbl_80031CD8
lbl_80031CD8:
/* 80031CD8 0002DB18 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
/* 80031CDC 0002DB1C 57 C0 20 36 */ slwi r0, r30, 4
/* 80031CE0 0002DB20 7C 63 02 14 */ add r3, r3, r0
/* 80031CE4 0002DB24 38 63 02 58 */ addi r3, r3, 0x258
.global lbl_80031CE8
lbl_80031CE8:
/* 80031CE8 0002DB28 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80031CEC 0002DB2C 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80031CF0 0002DB30 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80031CF4 0002DB34 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80031CF8 0002DB38 7C 08 03 A6 */ mtlr r0
/* 80031CFC 0002DB3C 38 21 00 20 */ addi r1, r1, 0x20
/* 80031D00 0002DB40 4E 80 00 20 */ blr
/* 80031D04 0002DB44 00 00 00 00 */ .4byte 0x00000000
/* 80031D08 0002DB48 00 00 00 00 */ .4byte 0x00000000
/* 80031D0C 0002DB4C 00 00 00 00 */ .4byte 0x00000000
.global __GXDefaultTlutRegionCallback
__GXDefaultTlutRegionCallback:
/* 80031D10 0002DB50 28 03 00 14 */ cmplwi r3, 0x14
/* 80031D14 0002DB54 41 80 00 0C */ blt lbl_80031D20
/* 80031D18 0002DB58 38 60 00 00 */ li r3, 0x0
/* 80031D1C 0002DB5C 4E 80 00 20 */ blr
.global lbl_80031D20
lbl_80031D20:
/* 80031D20 0002DB60 80 82 86 08 */ lwz r4, __GXData@sda21(r2)
/* 80031D24 0002DB64 54 60 20 36 */ slwi r0, r3, 4
/* 80031D28 0002DB68 7C 64 02 14 */ add r3, r4, r0
/* 80031D2C 0002DB6C 38 63 03 D8 */ addi r3, r3, 0x3d8
/* 80031D30 0002DB70 4E 80 00 20 */ blr
/* 80031D34 0002DB74 00 00 00 00 */ .4byte 0x00000000
/* 80031D38 0002DB78 00 00 00 00 */ .4byte 0x00000000
/* 80031D3C 0002DB7C 00 00 00 00 */ .4byte 0x00000000
.global __GXShutdown
__GXShutdown:
/* 80031D40 0002DB80 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80031D44 0002DB84 7C 08 02 A6 */ mflr r0
/* 80031D48 0002DB88 2C 03 00 00 */ cmpwi r3, 0x0
/* 80031D4C 0002DB8C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80031D50 0002DB90 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80031D54 0002DB94 40 82 00 DC */ bne lbl_80031E30
/* 80031D58 0002DB98 80 0D E5 D0 */ lwz r0, "@LOCAL@__GXShutdown__FiUl@calledOnce@1"@sda21(r13)
/* 80031D5C 0002DB9C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80031D60 0002DBA0 40 82 00 4C */ bne lbl_80031DAC
/* 80031D64 0002DBA4 80 AD E5 BC */ lwz r5, __memReg@sda21(r13)
/* 80031D68 0002DBA8 A0 85 00 4E */ lhz r4, 0x4e(r5)
/* 80031D6C 0002DBAC 60 00 00 00 */ nop
.global lbl_80031D70
lbl_80031D70:
/* 80031D70 0002DBB0 7C 80 23 78 */ mr r0, r4
/* 80031D74 0002DBB4 A0 65 00 50 */ lhz r3, 0x50(r5)
/* 80031D78 0002DBB8 A0 85 00 4E */ lhz r4, 0x4e(r5)
/* 80031D7C 0002DBBC 7C 04 00 40 */ cmplw r4, r0
/* 80031D80 0002DBC0 40 82 FF F0 */ bne lbl_80031D70
/* 80031D84 0002DBC4 54 80 80 1E */ slwi r0, r4, 16
/* 80031D88 0002DBC8 7C 00 1B 78 */ or r0, r0, r3
/* 80031D8C 0002DBCC 90 0D E5 C0 */ stw r0, "@LOCAL@__GXShutdown__FiUl@peCount"@sda21(r13)
/* 80031D90 0002DBD0 4B FF 3D B1 */ bl OSGetTime
/* 80031D94 0002DBD4 90 6D E5 C8 */ stw r3, "@LOCAL@__GXShutdown__FiUl@time@0"@sda21(r13)
/* 80031D98 0002DBD8 38 00 00 01 */ li r0, 0x1
/* 80031D9C 0002DBDC 38 60 00 00 */ li r3, 0x0
/* 80031DA0 0002DBE0 90 8D E5 CC */ stw r4, lbl_8055C9EC@sda21(r13)
/* 80031DA4 0002DBE4 90 0D E5 D0 */ stw r0, "@LOCAL@__GXShutdown__FiUl@calledOnce@1"@sda21(r13)
/* 80031DA8 0002DBE8 48 00 00 F4 */ b lbl_80031E9C
.global lbl_80031DAC
lbl_80031DAC:
/* 80031DAC 0002DBEC 4B FF 3D 95 */ bl OSGetTime
/* 80031DB0 0002DBF0 80 AD E5 BC */ lwz r5, __memReg@sda21(r13)
/* 80031DB4 0002DBF4 A0 E5 00 4E */ lhz r7, 0x4e(r5)
.global lbl_80031DB8
lbl_80031DB8:
/* 80031DB8 0002DBF8 7C E0 3B 78 */ mr r0, r7
/* 80031DBC 0002DBFC A1 45 00 50 */ lhz r10, 0x50(r5)
/* 80031DC0 0002DC00 A0 E5 00 4E */ lhz r7, 0x4e(r5)
/* 80031DC4 0002DC04 7C 07 00 40 */ cmplw r7, r0
/* 80031DC8 0002DC08 40 82 FF F0 */ bne lbl_80031DB8
/* 80031DCC 0002DC0C 80 AD E5 CC */ lwz r5, lbl_8055C9EC@sda21(r13)
/* 80031DD0 0002DC10 38 00 00 00 */ li r0, 0x0
/* 80031DD4 0002DC14 80 CD E5 C8 */ lwz r6, "@LOCAL@__GXShutdown__FiUl@time@0"@sda21(r13)
/* 80031DD8 0002DC18 54 E9 80 1E */ slwi r9, r7, 16
/* 80031DDC 0002DC1C 7D 05 20 10 */ subfc r8, r5, r4
/* 80031DE0 0002DC20 38 A0 00 0A */ li r5, 0xa
/* 80031DE4 0002DC24 7C E6 19 10 */ subfe r7, r6, r3
/* 80031DE8 0002DC28 6C 06 80 00 */ xoris r6, r0, 0x8000
/* 80031DEC 0002DC2C 7C A5 40 10 */ subfc r5, r5, r8
/* 80031DF0 0002DC30 6C E0 80 00 */ xoris r0, r7, 0x8000
/* 80031DF4 0002DC34 7C C6 01 10 */ subfe r6, r6, r0
/* 80031DF8 0002DC38 7D 25 53 78 */ or r5, r9, r10
/* 80031DFC 0002DC3C 7C C0 01 10 */ subfe r6, r0, r0
/* 80031E00 0002DC40 7C C6 00 D1 */ neg. r6, r6
/* 80031E04 0002DC44 41 82 00 0C */ beq lbl_80031E10
/* 80031E08 0002DC48 38 60 00 00 */ li r3, 0x0
/* 80031E0C 0002DC4C 48 00 00 90 */ b lbl_80031E9C
.global lbl_80031E10
lbl_80031E10:
/* 80031E10 0002DC50 80 0D E5 C0 */ lwz r0, "@LOCAL@__GXShutdown__FiUl@peCount"@sda21(r13)
/* 80031E14 0002DC54 7C 05 00 40 */ cmplw r5, r0
/* 80031E18 0002DC58 41 82 00 80 */ beq lbl_80031E98
/* 80031E1C 0002DC5C 90 6D E5 C8 */ stw r3, "@LOCAL@__GXShutdown__FiUl@time@0"@sda21(r13)
/* 80031E20 0002DC60 38 60 00 00 */ li r3, 0x0
/* 80031E24 0002DC64 90 AD E5 C0 */ stw r5, "@LOCAL@__GXShutdown__FiUl@peCount"@sda21(r13)
/* 80031E28 0002DC68 90 8D E5 CC */ stw r4, lbl_8055C9EC@sda21(r13)
/* 80031E2C 0002DC6C 48 00 00 70 */ b lbl_80031E9C
.global lbl_80031E30
lbl_80031E30:
/* 80031E30 0002DC70 38 60 00 00 */ li r3, 0x0
/* 80031E34 0002DC74 48 00 16 ED */ bl GXSetBreakPtCallback
/* 80031E38 0002DC78 38 60 00 00 */ li r3, 0x0
/* 80031E3C 0002DC7C 48 00 2F 95 */ bl GXSetDrawSyncCallback
/* 80031E40 0002DC80 38 60 00 00 */ li r3, 0x0
/* 80031E44 0002DC84 48 00 30 6D */ bl GXSetDrawDoneCallback
/* 80031E48 0002DC88 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 80031E4C 0002DC8C 3B E0 00 00 */ li r31, 0x0
/* 80031E50 0002DC90 93 E3 80 00 */ stw r31, 0xCC008000@l(r3)
/* 80031E54 0002DC94 93 E3 80 00 */ stw r31, -0x8000(r3)
/* 80031E58 0002DC98 93 E3 80 00 */ stw r31, -0x8000(r3)
/* 80031E5C 0002DC9C 93 E3 80 00 */ stw r31, -0x8000(r3)
/* 80031E60 0002DCA0 93 E3 80 00 */ stw r31, -0x8000(r3)
/* 80031E64 0002DCA4 93 E3 80 00 */ stw r31, -0x8000(r3)
/* 80031E68 0002DCA8 93 E3 80 00 */ stw r31, -0x8000(r3)
/* 80031E6C 0002DCAC 93 E3 80 00 */ stw r31, -0x8000(r3)
/* 80031E70 0002DCB0 4B FE 82 B1 */ bl PPCSync
/* 80031E74 0002DCB4 80 8D E5 B4 */ lwz r4, __cpReg@sda21(r13)
/* 80031E78 0002DCB8 38 A0 00 03 */ li r5, 0x3
/* 80031E7C 0002DCBC 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
/* 80031E80 0002DCC0 38 00 00 01 */ li r0, 0x1
/* 80031E84 0002DCC4 B3 E4 00 02 */ sth r31, 0x2(r4)
/* 80031E88 0002DCC8 80 8D E5 B4 */ lwz r4, __cpReg@sda21(r13)
/* 80031E8C 0002DCCC B0 A4 00 04 */ sth r5, 0x4(r4)
/* 80031E90 0002DCD0 98 03 05 FA */ stb r0, 0x5fa(r3)
/* 80031E94 0002DCD4 48 00 28 FD */ bl __GXAbort
.global lbl_80031E98
lbl_80031E98:
/* 80031E98 0002DCD8 38 60 00 01 */ li r3, 0x1
.global lbl_80031E9C
lbl_80031E9C:
/* 80031E9C 0002DCDC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80031EA0 0002DCE0 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80031EA4 0002DCE4 7C 08 03 A6 */ mtlr r0
/* 80031EA8 0002DCE8 38 21 00 10 */ addi r1, r1, 0x10
/* 80031EAC 0002DCEC 4E 80 00 20 */ blr
.global __GXInitRevisionBits
__GXInitRevisionBits:
/* 80031EB0 0002DCF0 38 00 00 02 */ li r0, 0x2
/* 80031EB4 0002DCF4 80 C2 86 08 */ lwz r6, __GXData@sda21(r2)
/* 80031EB8 0002DCF8 38 E0 00 00 */ li r7, 0x0
/* 80031EBC 0002DCFC 38 A0 00 08 */ li r5, 0x8
/* 80031EC0 0002DD00 3C 80 CC 01 */ lis r4, 0xCC008000@ha
/* 80031EC4 0002DD04 7C 09 03 A6 */ mtctr r0
.global lbl_80031EC8
lbl_80031EC8:
/* 80031EC8 0002DD08 80 06 00 1C */ lwz r0, 0x1c(r6)
/* 80031ECC 0002DD0C 60 E3 00 80 */ ori r3, r7, 0x80
/* 80031ED0 0002DD10 38 E7 00 01 */ addi r7, r7, 0x1
/* 80031ED4 0002DD14 64 00 40 00 */ oris r0, r0, 0x4000
/* 80031ED8 0002DD18 90 06 00 1C */ stw r0, 0x1c(r6)
/* 80031EDC 0002DD1C 80 06 00 3C */ lwz r0, 0x3c(r6)
/* 80031EE0 0002DD20 64 00 80 00 */ oris r0, r0, 0x8000
/* 80031EE4 0002DD24 90 06 00 3C */ stw r0, 0x3c(r6)
/* 80031EE8 0002DD28 98 A4 80 00 */ stb r5, 0xCC008000@l(r4)
/* 80031EEC 0002DD2C 98 64 80 00 */ stb r3, -0x8000(r4)
/* 80031EF0 0002DD30 60 E3 00 80 */ ori r3, r7, 0x80
/* 80031EF4 0002DD34 38 E7 00 01 */ addi r7, r7, 0x1
/* 80031EF8 0002DD38 80 06 00 3C */ lwz r0, 0x3c(r6)
/* 80031EFC 0002DD3C 90 04 80 00 */ stw r0, -0x8000(r4)
/* 80031F00 0002DD40 80 06 00 20 */ lwz r0, 0x20(r6)
/* 80031F04 0002DD44 64 00 40 00 */ oris r0, r0, 0x4000
/* 80031F08 0002DD48 90 06 00 20 */ stw r0, 0x20(r6)
/* 80031F0C 0002DD4C 80 06 00 40 */ lwz r0, 0x40(r6)
/* 80031F10 0002DD50 64 00 80 00 */ oris r0, r0, 0x8000
/* 80031F14 0002DD54 90 06 00 40 */ stw r0, 0x40(r6)
/* 80031F18 0002DD58 98 A4 80 00 */ stb r5, -0x8000(r4)
/* 80031F1C 0002DD5C 98 64 80 00 */ stb r3, -0x8000(r4)
/* 80031F20 0002DD60 60 E3 00 80 */ ori r3, r7, 0x80
/* 80031F24 0002DD64 38 E7 00 01 */ addi r7, r7, 0x1
/* 80031F28 0002DD68 80 06 00 40 */ lwz r0, 0x40(r6)
/* 80031F2C 0002DD6C 90 04 80 00 */ stw r0, -0x8000(r4)
/* 80031F30 0002DD70 80 06 00 24 */ lwz r0, 0x24(r6)
/* 80031F34 0002DD74 64 00 40 00 */ oris r0, r0, 0x4000
/* 80031F38 0002DD78 90 06 00 24 */ stw r0, 0x24(r6)
/* 80031F3C 0002DD7C 80 06 00 44 */ lwz r0, 0x44(r6)
/* 80031F40 0002DD80 64 00 80 00 */ oris r0, r0, 0x8000
/* 80031F44 0002DD84 90 06 00 44 */ stw r0, 0x44(r6)
/* 80031F48 0002DD88 98 A4 80 00 */ stb r5, -0x8000(r4)
/* 80031F4C 0002DD8C 98 64 80 00 */ stb r3, -0x8000(r4)
/* 80031F50 0002DD90 60 E3 00 80 */ ori r3, r7, 0x80
/* 80031F54 0002DD94 38 E7 00 01 */ addi r7, r7, 0x1
/* 80031F58 0002DD98 80 06 00 44 */ lwz r0, 0x44(r6)
/* 80031F5C 0002DD9C 90 04 80 00 */ stw r0, -0x8000(r4)
/* 80031F60 0002DDA0 80 06 00 28 */ lwz r0, 0x28(r6)
/* 80031F64 0002DDA4 64 00 40 00 */ oris r0, r0, 0x4000
/* 80031F68 0002DDA8 90 06 00 28 */ stw r0, 0x28(r6)
/* 80031F6C 0002DDAC 80 06 00 48 */ lwz r0, 0x48(r6)
/* 80031F70 0002DDB0 64 00 80 00 */ oris r0, r0, 0x8000
/* 80031F74 0002DDB4 90 06 00 48 */ stw r0, 0x48(r6)
/* 80031F78 0002DDB8 98 A4 80 00 */ stb r5, -0x8000(r4)
/* 80031F7C 0002DDBC 98 64 80 00 */ stb r3, -0x8000(r4)
/* 80031F80 0002DDC0 80 06 00 48 */ lwz r0, 0x48(r6)
/* 80031F84 0002DDC4 38 C6 00 10 */ addi r6, r6, 0x10
/* 80031F88 0002DDC8 90 04 80 00 */ stw r0, -0x8000(r4)
/* 80031F8C 0002DDCC 42 00 FF 3C */ bdnz lbl_80031EC8
/* 80031F90 0002DDD0 3C E0 CC 01 */ lis r7, 0xCC008000@ha
/* 80031F94 0002DDD4 39 00 00 10 */ li r8, 0x10
/* 80031F98 0002DDD8 99 07 80 00 */ stb r8, 0xCC008000@l(r7)
/* 80031F9C 0002DDDC 38 80 00 00 */ li r4, 0x0
/* 80031FA0 0002DDE0 38 00 10 00 */ li r0, 0x1000
/* 80031FA4 0002DDE4 38 A0 10 12 */ li r5, 0x1012
/* 80031FA8 0002DDE8 90 07 80 00 */ stw r0, -0x8000(r7)
/* 80031FAC 0002DDEC 60 80 00 3F */ ori r0, r4, 0x3f
/* 80031FB0 0002DDF0 60 86 00 01 */ ori r6, r4, 0x1
/* 80031FB4 0002DDF4 38 60 00 58 */ li r3, 0x58
/* 80031FB8 0002DDF8 90 07 80 00 */ stw r0, -0x8000(r7)
/* 80031FBC 0002DDFC 60 84 00 0F */ ori r4, r4, 0xf
/* 80031FC0 0002DE00 38 00 00 61 */ li r0, 0x61
/* 80031FC4 0002DE04 99 07 80 00 */ stb r8, -0x8000(r7)
/* 80031FC8 0002DE08 50 64 C0 0E */ rlwimi r4, r3, 24, 0, 7
/* 80031FCC 0002DE0C 90 A7 80 00 */ stw r5, -0x8000(r7)
/* 80031FD0 0002DE10 90 C7 80 00 */ stw r6, -0x8000(r7)
/* 80031FD4 0002DE14 98 07 80 00 */ stb r0, -0x8000(r7)
/* 80031FD8 0002DE18 90 87 80 00 */ stw r4, -0x8000(r7)
/* 80031FDC 0002DE1C 4E 80 00 20 */ blr
.global GXInit
GXInit:
/* 80031FE0 0002DE20 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80031FE4 0002DE24 7C 08 02 A6 */ mflr r0
/* 80031FE8 0002DE28 90 01 00 24 */ stw r0, 0x24(r1)
/* 80031FEC 0002DE2C 39 61 00 20 */ addi r11, r1, 0x20
/* 80031FF0 0002DE30 4B FD 53 49 */ bl lbl_80007338
/* 80031FF4 0002DE34 7C 7B 1B 78 */ mr r27, r3
/* 80031FF8 0002DE38 80 6D 81 48 */ lwz r3, __GXVersion@sda21(r13)
/* 80031FFC 0002DE3C 7C 9A 23 78 */ mr r26, r4
/* 80032000 0002DE40 4B FE 96 E1 */ bl OSRegisterVersion
/* 80032004 0002DE44 83 E2 86 08 */ lwz r31, __GXData@sda21(r2)
/* 80032008 0002DE48 38 00 00 00 */ li r0, 0x0
/* 8003200C 0002DE4C 3B A0 00 01 */ li r29, 0x1
/* 80032010 0002DE50 38 60 00 01 */ li r3, 0x1
/* 80032014 0002DE54 98 1F 05 F8 */ stb r0, 0x5f8(r31)
/* 80032018 0002DE58 38 80 00 00 */ li r4, 0x0
/* 8003201C 0002DE5C 9B BF 05 F9 */ stb r29, 0x5f9(r31)
/* 80032020 0002DE60 9B BF 05 FA */ stb r29, 0x5fa(r31)
/* 80032024 0002DE64 90 1F 05 E4 */ stw r0, 0x5e4(r31)
/* 80032028 0002DE68 90 1F 05 E8 */ stw r0, 0x5e8(r31)
/* 8003202C 0002DE6C 48 00 26 E5 */ bl GXSetMisc
/* 80032030 0002DE70 3C 80 CC 00 */ lis r4, 0xCC003000@ha
/* 80032034 0002DE74 90 8D E5 B4 */ stw r4, __cpReg@sda21(r13)
/* 80032038 0002DE78 38 A4 30 00 */ addi r5, r4, 0xCC003000@l
/* 8003203C 0002DE7C 38 64 10 00 */ addi r3, r4, 0x1000
/* 80032040 0002DE80 38 04 40 00 */ addi r0, r4, 0x4000
/* 80032044 0002DE84 90 AD E5 B0 */ stw r5, __piReg@sda21(r13)
/* 80032048 0002DE88 90 6D E5 B8 */ stw r3, __peReg@sda21(r13)
/* 8003204C 0002DE8C 90 0D E5 BC */ stw r0, __memReg@sda21(r13)
/* 80032050 0002DE90 48 00 15 21 */ bl __GXFifoInit
/* 80032054 0002DE94 3F 80 80 4A */ lis r28, FifoObj@ha
/* 80032058 0002DE98 7F 64 DB 78 */ mr r4, r27
/* 8003205C 0002DE9C 7F 45 D3 78 */ mr r5, r26
/* 80032060 0002DEA0 38 7C A7 00 */ addi r3, r28, FifoObj@l
/* 80032064 0002DEA4 48 00 0E AD */ bl GXInitFifoBase
/* 80032068 0002DEA8 38 7C A7 00 */ addi r3, r28, -0x5900
/* 8003206C 0002DEAC 48 00 10 35 */ bl GXSetCPUFifo
/* 80032070 0002DEB0 38 7C A7 00 */ addi r3, r28, -0x5900
/* 80032074 0002DEB4 48 00 12 0D */ bl GXSetGPFifo
/* 80032078 0002DEB8 80 0D E5 D4 */ lwz r0, "@LOCAL@GXInit__FPvUl@shutdownFuncRegistered"@sda21(r13)
/* 8003207C 0002DEBC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80032080 0002DEC0 40 82 00 14 */ bne lbl_80032094
/* 80032084 0002DEC4 3C 60 80 43 */ lis r3, GXShutdownFuncInfo@ha
/* 80032088 0002DEC8 38 63 0A 30 */ addi r3, r3, GXShutdownFuncInfo@l
/* 8003208C 0002DECC 4B FF 0E 85 */ bl OSRegisterShutdownFunction
/* 80032090 0002DED0 93 AD E5 D4 */ stw r29, "@LOCAL@GXInit__FPvUl@shutdownFuncRegistered"@sda21(r13)
.global lbl_80032094
lbl_80032094:
/* 80032094 0002DED4 48 00 2E ED */ bl __GXPEInit
/* 80032098 0002DED8 4B FE 81 69 */ bl PPCMfhid2
/* 8003209C 0002DEDC 3C 80 0C 01 */ lis r4, 0xc01
/* 800320A0 0002DEE0 7C 7C 1B 78 */ mr r28, r3
/* 800320A4 0002DEE4 38 64 80 00 */ addi r3, r4, -0x8000
/* 800320A8 0002DEE8 4B FE 81 79 */ bl PPCMtwpar
/* 800320AC 0002DEEC 67 83 40 00 */ oris r3, r28, 0x4000
/* 800320B0 0002DEF0 4B FE 81 61 */ bl PPCMthid2
/* 800320B4 0002DEF4 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
/* 800320B8 0002DEF8 39 00 00 00 */ li r8, 0x0
/* 800320BC 0002DEFC 38 00 00 0F */ li r0, 0xf
/* 800320C0 0002DF00 38 A0 00 FF */ li r5, 0xff
/* 800320C4 0002DF04 91 03 02 54 */ stw r8, 0x254(r3)
/* 800320C8 0002DF08 50 05 C0 0E */ rlwimi r5, r0, 24, 0, 7
/* 800320CC 0002DF0C 38 00 00 22 */ li r0, 0x22
/* 800320D0 0002DF10 38 80 00 00 */ li r4, 0x0
/* 800320D4 0002DF14 90 A3 01 74 */ stw r5, 0x174(r3)
/* 800320D8 0002DF18 50 04 C0 0E */ rlwimi r4, r0, 24, 0, 7
/* 800320DC 0002DF1C 38 00 00 08 */ li r0, 0x8
/* 800320E0 0002DF20 7C 69 1B 78 */ mr r9, r3
/* 800320E4 0002DF24 90 83 00 7C */ stw r4, 0x7c(r3)
/* 800320E8 0002DF28 3B 40 00 00 */ li r26, 0x0
/* 800320EC 0002DF2C 39 40 00 C0 */ li r10, 0xc0
/* 800320F0 0002DF30 38 C0 00 FF */ li r6, 0xff
/* 800320F4 0002DF34 7C 09 03 A6 */ mtctr r0
.global lbl_800320F8
lbl_800320F8:
/* 800320F8 0002DF38 91 09 01 80 */ stw r8, 0x180(r9)
/* 800320FC 0002DF3C 57 47 08 3A */ extlwi r7, r26, 30, 1
/* 80032100 0002DF40 7F 63 3A 14 */ add r27, r3, r7
/* 80032104 0002DF44 57 4C F8 7E */ srwi r12, r26, 1
/* 80032108 0002DF48 91 09 01 C0 */ stw r8, 0x1c0(r9)
/* 8003210C 0002DF4C 3B 5A 00 01 */ addi r26, r26, 0x1
/* 80032110 0002DF50 39 6A 00 01 */ addi r11, r10, 0x1
/* 80032114 0002DF54 38 AC 00 F6 */ addi r5, r12, 0xf6
/* 80032118 0002DF58 91 1B 01 50 */ stw r8, 0x150(r27)
/* 8003211C 0002DF5C 38 0C 00 28 */ addi r0, r12, 0x28
/* 80032120 0002DF60 57 47 08 3A */ extlwi r7, r26, 30, 1
/* 80032124 0002DF64 57 4C F8 7E */ srwi r12, r26, 1
/* 80032128 0002DF68 90 C9 05 A4 */ stw r6, 0x5a4(r9)
/* 8003212C 0002DF6C 3B 5A 00 01 */ addi r26, r26, 0x1
/* 80032130 0002DF70 80 89 01 80 */ lwz r4, 0x180(r9)
/* 80032134 0002DF74 51 44 C0 0E */ rlwimi r4, r10, 24, 0, 7
/* 80032138 0002DF78 90 89 01 80 */ stw r4, 0x180(r9)
/* 8003213C 0002DF7C 80 89 01 C0 */ lwz r4, 0x1c0(r9)
/* 80032140 0002DF80 51 64 C0 0E */ rlwimi r4, r11, 24, 0, 7
/* 80032144 0002DF84 90 89 01 C0 */ stw r4, 0x1c0(r9)
/* 80032148 0002DF88 39 6A 00 03 */ addi r11, r10, 0x3
/* 8003214C 0002DF8C 39 4A 00 02 */ addi r10, r10, 0x2
/* 80032150 0002DF90 80 9B 02 00 */ lwz r4, 0x200(r27)
/* 80032154 0002DF94 50 A4 C0 0E */ rlwimi r4, r5, 24, 0, 7
/* 80032158 0002DF98 90 9B 02 00 */ stw r4, 0x200(r27)
/* 8003215C 0002DF9C 38 AC 00 F6 */ addi r5, r12, 0xf6
/* 80032160 0002DFA0 80 9B 01 50 */ lwz r4, 0x150(r27)
/* 80032164 0002DFA4 50 04 C0 0E */ rlwimi r4, r0, 24, 0, 7
/* 80032168 0002DFA8 90 9B 01 50 */ stw r4, 0x150(r27)
/* 8003216C 0002DFAC 7F 63 3A 14 */ add r27, r3, r7
/* 80032170 0002DFB0 38 0C 00 28 */ addi r0, r12, 0x28
/* 80032174 0002DFB4 91 09 01 84 */ stw r8, 0x184(r9)
/* 80032178 0002DFB8 91 09 01 C4 */ stw r8, 0x1c4(r9)
/* 8003217C 0002DFBC 91 1B 01 50 */ stw r8, 0x150(r27)
/* 80032180 0002DFC0 90 C9 05 A8 */ stw r6, 0x5a8(r9)
/* 80032184 0002DFC4 80 89 01 84 */ lwz r4, 0x184(r9)
/* 80032188 0002DFC8 51 44 C0 0E */ rlwimi r4, r10, 24, 0, 7
/* 8003218C 0002DFCC 90 89 01 84 */ stw r4, 0x184(r9)
/* 80032190 0002DFD0 39 4A 00 02 */ addi r10, r10, 0x2
/* 80032194 0002DFD4 80 89 01 C4 */ lwz r4, 0x1c4(r9)
/* 80032198 0002DFD8 51 64 C0 0E */ rlwimi r4, r11, 24, 0, 7
/* 8003219C 0002DFDC 90 89 01 C4 */ stw r4, 0x1c4(r9)
/* 800321A0 0002DFE0 39 29 00 08 */ addi r9, r9, 0x8
/* 800321A4 0002DFE4 80 9B 02 00 */ lwz r4, 0x200(r27)
/* 800321A8 0002DFE8 50 A4 C0 0E */ rlwimi r4, r5, 24, 0, 7
/* 800321AC 0002DFEC 90 9B 02 00 */ stw r4, 0x200(r27)
/* 800321B0 0002DFF0 80 9B 01 50 */ lwz r4, 0x150(r27)
/* 800321B4 0002DFF4 50 04 C0 0E */ rlwimi r4, r0, 24, 0, 7
/* 800321B8 0002DFF8 90 9B 01 50 */ stw r4, 0x150(r27)
/* 800321BC 0002DFFC 42 00 FF 3C */ bdnz lbl_800320F8
/* 800321C0 0002E000 38 80 00 27 */ li r4, 0x27
/* 800321C4 0002E004 38 00 00 02 */ li r0, 0x2
/* 800321C8 0002E008 38 A0 00 00 */ li r5, 0x0
/* 800321CC 0002E00C 50 85 C0 0E */ rlwimi r5, r4, 24, 0, 7
/* 800321D0 0002E010 90 BF 01 70 */ stw r5, 0x170(r31)
/* 800321D4 0002E014 38 A0 00 30 */ li r5, 0x30
/* 800321D8 0002E018 7C 09 03 A6 */ mtctr r0
.global lbl_800321DC
lbl_800321DC:
/* 800321DC 0002E01C 38 80 00 00 */ li r4, 0x0
/* 800321E0 0002E020 38 C5 00 01 */ addi r6, r5, 0x1
/* 800321E4 0002E024 50 A4 C0 0E */ rlwimi r4, r5, 24, 0, 7
/* 800321E8 0002E028 90 83 01 08 */ stw r4, 0x108(r3)
/* 800321EC 0002E02C 38 00 00 00 */ li r0, 0x0
/* 800321F0 0002E030 50 C0 C0 0E */ rlwimi r0, r6, 24, 0, 7
/* 800321F4 0002E034 90 03 01 28 */ stw r0, 0x128(r3)
/* 800321F8 0002E038 38 C5 00 03 */ addi r6, r5, 0x3
/* 800321FC 0002E03C 38 A5 00 02 */ addi r5, r5, 0x2
/* 80032200 0002E040 38 80 00 00 */ li r4, 0x0
/* 80032204 0002E044 38 00 00 00 */ li r0, 0x0
/* 80032208 0002E048 50 A4 C0 0E */ rlwimi r4, r5, 24, 0, 7
/* 8003220C 0002E04C 90 83 01 0C */ stw r4, 0x10c(r3)
/* 80032210 0002E050 50 C0 C0 0E */ rlwimi r0, r6, 24, 0, 7
/* 80032214 0002E054 38 C5 00 03 */ addi r6, r5, 0x3
/* 80032218 0002E058 90 03 01 2C */ stw r0, 0x12c(r3)
/* 8003221C 0002E05C 38 A5 00 02 */ addi r5, r5, 0x2
/* 80032220 0002E060 38 80 00 00 */ li r4, 0x0
/* 80032224 0002E064 38 00 00 00 */ li r0, 0x0
/* 80032228 0002E068 50 A4 C0 0E */ rlwimi r4, r5, 24, 0, 7
/* 8003222C 0002E06C 90 83 01 10 */ stw r4, 0x110(r3)
/* 80032230 0002E070 50 C0 C0 0E */ rlwimi r0, r6, 24, 0, 7
/* 80032234 0002E074 38 C5 00 03 */ addi r6, r5, 0x3
/* 80032238 0002E078 90 03 01 30 */ stw r0, 0x130(r3)
/* 8003223C 0002E07C 38 A5 00 02 */ addi r5, r5, 0x2
/* 80032240 0002E080 38 80 00 00 */ li r4, 0x0
/* 80032244 0002E084 38 00 00 00 */ li r0, 0x0
/* 80032248 0002E088 50 A4 C0 0E */ rlwimi r4, r5, 24, 0, 7
/* 8003224C 0002E08C 90 83 01 14 */ stw r4, 0x114(r3)
/* 80032250 0002E090 50 C0 C0 0E */ rlwimi r0, r6, 24, 0, 7
/* 80032254 0002E094 38 A5 00 02 */ addi r5, r5, 0x2
/* 80032258 0002E098 90 03 01 34 */ stw r0, 0x134(r3)
/* 8003225C 0002E09C 38 63 00 10 */ addi r3, r3, 0x10
/* 80032260 0002E0A0 42 00 FF 7C */ bdnz lbl_800321DC
/* 80032264 0002E0A4 83 C2 86 08 */ lwz r30, __GXData@sda21(r2)
/* 80032268 0002E0A8 3C 60 10 62 */ lis r3, 0x1062
/* 8003226C 0002E0AC 38 80 00 20 */ li r4, 0x20
/* 80032270 0002E0B0 38 00 00 21 */ li r0, 0x21
/* 80032274 0002E0B4 80 BE 01 48 */ lwz r5, 0x148(r30)
/* 80032278 0002E0B8 50 85 C0 0E */ rlwimi r5, r4, 24, 0, 7
/* 8003227C 0002E0BC 90 BE 01 48 */ stw r5, 0x148(r30)
/* 80032280 0002E0C0 38 80 00 41 */ li r4, 0x41
/* 80032284 0002E0C4 38 E0 00 42 */ li r7, 0x42
/* 80032288 0002E0C8 38 C0 00 40 */ li r6, 0x40
/* 8003228C 0002E0CC 80 BE 01 4C */ lwz r5, 0x14c(r30)
/* 80032290 0002E0D0 50 05 C0 0E */ rlwimi r5, r0, 24, 0, 7
/* 80032294 0002E0D4 90 BE 01 4C */ stw r5, 0x14c(r30)
/* 80032298 0002E0D8 38 A0 00 43 */ li r5, 0x43
/* 8003229C 0002E0DC C0 22 86 0C */ lfs f1, "@2712"@sda21(r2)
/* 800322A0 0002E0E0 38 00 00 00 */ li r0, 0x0
/* 800322A4 0002E0E4 81 1E 02 20 */ lwz r8, 0x220(r30)
/* 800322A8 0002E0E8 50 88 C0 0E */ rlwimi r8, r4, 24, 0, 7
/* 800322AC 0002E0EC 91 1E 02 20 */ stw r8, 0x220(r30)
/* 800322B0 0002E0F0 3C 80 80 00 */ lis r4, 0x800000F8@ha
/* 800322B4 0002E0F4 C0 02 86 10 */ lfs f0, "@2713"@sda21(r2)
/* 800322B8 0002E0F8 38 63 4D D3 */ addi r3, r3, 0x4dd3
/* 800322BC 0002E0FC 81 1E 02 24 */ lwz r8, 0x224(r30)
/* 800322C0 0002E100 50 E8 C0 0E */ rlwimi r8, r7, 24, 0, 7
/* 800322C4 0002E104 91 1E 02 24 */ stw r8, 0x224(r30)
/* 800322C8 0002E108 80 FE 02 28 */ lwz r7, 0x228(r30)
/* 800322CC 0002E10C 50 C7 C0 0E */ rlwimi r7, r6, 24, 0, 7
/* 800322D0 0002E110 90 FE 02 28 */ stw r7, 0x228(r30)
/* 800322D4 0002E114 80 DE 02 2C */ lwz r6, 0x22c(r30)
/* 800322D8 0002E118 50 A6 C0 0E */ rlwimi r6, r5, 24, 0, 7
/* 800322DC 0002E11C 90 DE 02 2C */ stw r6, 0x22c(r30)
/* 800322E0 0002E120 80 BE 02 4C */ lwz r5, 0x24c(r30)
/* 800322E4 0002E124 54 A5 06 6C */ rlwinm r5, r5, 0, 25, 22
/* 800322E8 0002E128 90 BE 02 4C */ stw r5, 0x24c(r30)
/* 800322EC 0002E12C D0 3E 05 60 */ stfs f1, 0x560(r30)
/* 800322F0 0002E130 D0 1E 05 5C */ stfs f0, 0x55c(r30)
/* 800322F4 0002E134 90 1E 05 FC */ stw r0, 0x5fc(r30)
/* 800322F8 0002E138 98 1E 05 FB */ stb r0, 0x5fb(r30)
/* 800322FC 0002E13C 80 04 00 F8 */ lwz r0, 0x800000F8@l(r4)
/* 80032300 0002E140 7C 03 00 16 */ mulhwu r0, r3, r0
/* 80032304 0002E144 54 1A D9 7E */ srwi r26, r0, 5
/* 80032308 0002E148 48 00 58 89 */ bl __GXFlushTextureState
/* 8003230C 0002E14C 3F A0 CC 01 */ lis r29, 0xCC008000@ha
/* 80032310 0002E150 57 40 AA FE */ srwi r0, r26, 11
/* 80032314 0002E154 3B 80 00 61 */ li r28, 0x61
/* 80032318 0002E158 9B 9D 80 00 */ stb r28, 0xCC008000@l(r29)
/* 8003231C 0002E15C 64 00 69 00 */ oris r0, r0, 0x6900
/* 80032320 0002E160 60 00 04 00 */ ori r0, r0, 0x400
/* 80032324 0002E164 90 1D 80 00 */ stw r0, -0x8000(r29)
/* 80032328 0002E168 48 00 58 69 */ bl __GXFlushTextureState
/* 8003232C 0002E16C 3C 60 3E 10 */ lis r3, 0x3e10
/* 80032330 0002E170 9B 9D 80 00 */ stb r28, -0x8000(r29)
/* 80032334 0002E174 38 03 83 E1 */ addi r0, r3, -0x7c1f
/* 80032338 0002E178 7C 00 D0 16 */ mulhwu r0, r0, r26
/* 8003233C 0002E17C 54 00 B2 BE */ srwi r0, r0, 10
/* 80032340 0002E180 64 00 46 00 */ oris r0, r0, 0x4600
/* 80032344 0002E184 60 00 02 00 */ ori r0, r0, 0x200
/* 80032348 0002E188 90 1D 80 00 */ stw r0, -0x8000(r29)
/* 8003234C 0002E18C 4B FF FB 65 */ bl __GXInitRevisionBits
/* 80032350 0002E190 3F 80 80 43 */ lis r28, GXTexRegionAddrTable@ha
/* 80032354 0002E194 3B BE 02 58 */ addi r29, r30, 0x258
/* 80032358 0002E198 3B 7E 02 D8 */ addi r27, r30, 0x2d8
/* 8003235C 0002E19C 3B DE 03 58 */ addi r30, r30, 0x358
/* 80032360 0002E1A0 3B 9C 09 70 */ addi r28, r28, GXTexRegionAddrTable@l
/* 80032364 0002E1A4 3B 40 00 00 */ li r26, 0x0
.global lbl_80032368
lbl_80032368:
/* 80032368 0002E1A8 80 BC 00 00 */ lwz r5, 0x0(r28)
/* 8003236C 0002E1AC 7F A3 EB 78 */ mr r3, r29
/* 80032370 0002E1B0 80 FC 00 20 */ lwz r7, 0x20(r28)
/* 80032374 0002E1B4 38 80 00 00 */ li r4, 0x0
/* 80032378 0002E1B8 38 C0 00 00 */ li r6, 0x0
/* 8003237C 0002E1BC 39 00 00 00 */ li r8, 0x0
/* 80032380 0002E1C0 48 00 4B E1 */ bl GXInitTexCacheRegion
/* 80032384 0002E1C4 80 BC 00 40 */ lwz r5, 0x40(r28)
/* 80032388 0002E1C8 7F 63 DB 78 */ mr r3, r27
/* 8003238C 0002E1CC 80 FC 00 60 */ lwz r7, 0x60(r28)
/* 80032390 0002E1D0 38 80 00 00 */ li r4, 0x0
/* 80032394 0002E1D4 38 C0 00 00 */ li r6, 0x0
/* 80032398 0002E1D8 39 00 00 00 */ li r8, 0x0
/* 8003239C 0002E1DC 48 00 4B C5 */ bl GXInitTexCacheRegion
/* 800323A0 0002E1E0 80 BC 00 80 */ lwz r5, 0x80(r28)
/* 800323A4 0002E1E4 7F C3 F3 78 */ mr r3, r30
/* 800323A8 0002E1E8 80 FC 00 A0 */ lwz r7, 0xa0(r28)
/* 800323AC 0002E1EC 38 80 00 01 */ li r4, 0x1
/* 800323B0 0002E1F0 38 C0 00 00 */ li r6, 0x0
/* 800323B4 0002E1F4 39 00 00 00 */ li r8, 0x0
/* 800323B8 0002E1F8 48 00 4B A9 */ bl GXInitTexCacheRegion
/* 800323BC 0002E1FC 3B 5A 00 01 */ addi r26, r26, 0x1
/* 800323C0 0002E200 3B BD 00 10 */ addi r29, r29, 0x10
/* 800323C4 0002E204 28 1A 00 08 */ cmplwi r26, 0x8
/* 800323C8 0002E208 3B 7B 00 10 */ addi r27, r27, 0x10
/* 800323CC 0002E20C 3B DE 00 10 */ addi r30, r30, 0x10
/* 800323D0 0002E210 3B 9C 00 04 */ addi r28, r28, 0x4
/* 800323D4 0002E214 41 80 FF 94 */ blt lbl_80032368
/* 800323D8 0002E218 3B BF 03 D8 */ addi r29, r31, 0x3d8
/* 800323DC 0002E21C 3B 60 00 00 */ li r27, 0x0
/* 800323E0 0002E220 3F 80 00 0C */ lis r28, 0xc
.global lbl_800323E4
lbl_800323E4:
/* 800323E4 0002E224 7F A3 EB 78 */ mr r3, r29
/* 800323E8 0002E228 7F 84 E3 78 */ mr r4, r28
/* 800323EC 0002E22C 38 A0 00 10 */ li r5, 0x10
/* 800323F0 0002E230 48 00 4C 21 */ bl GXInitTlutRegion
/* 800323F4 0002E234 3B 7B 00 01 */ addi r27, r27, 0x1
/* 800323F8 0002E238 3B BD 00 10 */ addi r29, r29, 0x10
/* 800323FC 0002E23C 28 1B 00 10 */ cmplwi r27, 0x10
/* 80032400 0002E240 3B 9C 20 00 */ addi r28, r28, 0x2000
/* 80032404 0002E244 41 80 FF E0 */ blt lbl_800323E4
/* 80032408 0002E248 3B BF 03 D8 */ addi r29, r31, 0x3d8
/* 8003240C 0002E24C 3B 60 00 00 */ li r27, 0x0
/* 80032410 0002E250 3F 80 00 0E */ lis r28, 0xe
.global lbl_80032414
lbl_80032414:
/* 80032414 0002E254 38 1B 00 10 */ addi r0, r27, 0x10
/* 80032418 0002E258 7F 84 E3 78 */ mr r4, r28
/* 8003241C 0002E25C 54 00 20 36 */ slwi r0, r0, 4
/* 80032420 0002E260 38 A0 00 40 */ li r5, 0x40
/* 80032424 0002E264 7C 7D 02 14 */ add r3, r29, r0
/* 80032428 0002E268 48 00 4B E9 */ bl GXInitTlutRegion
/* 8003242C 0002E26C 3B 7B 00 01 */ addi r27, r27, 0x1
/* 80032430 0002E270 3F 9C 00 01 */ addis r28, r28, 0x1
/* 80032434 0002E274 28 1B 00 04 */ cmplwi r27, 0x4
/* 80032438 0002E278 3B 9C 80 00 */ addi r28, r28, -0x8000
/* 8003243C 0002E27C 41 80 FF D8 */ blt lbl_80032414
/* 80032440 0002E280 80 6D E5 B4 */ lwz r3, __cpReg@sda21(r13)
/* 80032444 0002E284 39 60 00 00 */ li r11, 0x0
/* 80032448 0002E288 3D 20 CC 01 */ lis r9, 0xCC008000@ha
/* 8003244C 0002E28C 39 40 00 08 */ li r10, 0x8
/* 80032450 0002E290 B1 63 00 06 */ sth r11, 0x6(r3)
/* 80032454 0002E294 39 00 00 20 */ li r8, 0x20
/* 80032458 0002E298 38 E0 00 10 */ li r7, 0x10
/* 8003245C 0002E29C 38 60 10 06 */ li r3, 0x1006
/* 80032460 0002E2A0 80 1F 05 F4 */ lwz r0, 0x5f4(r31)
/* 80032464 0002E2A4 38 C0 00 61 */ li r6, 0x61
/* 80032468 0002E2A8 3C A0 23 00 */ lis r5, 0x2300
/* 8003246C 0002E2AC 3C 80 24 00 */ lis r4, 0x2400
/* 80032470 0002E2B0 54 00 07 2E */ rlwinm r0, r0, 0, 28, 23
/* 80032474 0002E2B4 90 1F 05 F4 */ stw r0, 0x5f4(r31)
/* 80032478 0002E2B8 3C 00 67 00 */ lis r0, 0x6700
/* 8003247C 0002E2BC 99 49 80 00 */ stb r10, 0xCC008000@l(r9)
/* 80032480 0002E2C0 99 09 80 00 */ stb r8, -0x8000(r9)
/* 80032484 0002E2C4 81 1F 05 F4 */ lwz r8, 0x5f4(r31)
/* 80032488 0002E2C8 91 09 80 00 */ stw r8, -0x8000(r9)
/* 8003248C 0002E2CC 98 E9 80 00 */ stb r7, -0x8000(r9)
/* 80032490 0002E2D0 90 69 80 00 */ stw r3, -0x8000(r9)
/* 80032494 0002E2D4 38 60 00 00 */ li r3, 0x0
/* 80032498 0002E2D8 91 69 80 00 */ stw r11, -0x8000(r9)
/* 8003249C 0002E2DC 98 C9 80 00 */ stb r6, -0x8000(r9)
/* 800324A0 0002E2E0 90 A9 80 00 */ stw r5, -0x8000(r9)
/* 800324A4 0002E2E4 98 C9 80 00 */ stb r6, -0x8000(r9)
/* 800324A8 0002E2E8 90 89 80 00 */ stw r4, -0x8000(r9)
/* 800324AC 0002E2EC 98 C9 80 00 */ stb r6, -0x8000(r9)
/* 800324B0 0002E2F0 90 09 80 00 */ stw r0, -0x8000(r9)
/* 800324B4 0002E2F4 48 00 56 AD */ bl __GXSetIndirectMask
/* 800324B8 0002E2F8 38 60 00 02 */ li r3, 0x2
/* 800324BC 0002E2FC 48 00 4F 65 */ bl __GXSetTmemConfig
/* 800324C0 0002E300 48 00 00 31 */ bl __GXInitGX
/* 800324C4 0002E304 3C 60 80 4A */ lis r3, FifoObj@ha
/* 800324C8 0002E308 39 61 00 20 */ addi r11, r1, 0x20
/* 800324CC 0002E30C 38 63 A7 00 */ addi r3, r3, FifoObj@l
/* 800324D0 0002E310 4B FD 4E B5 */ bl lbl_80007384
/* 800324D4 0002E314 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800324D8 0002E318 7C 08 03 A6 */ mtlr r0
/* 800324DC 0002E31C 38 21 00 20 */ addi r1, r1, 0x20
/* 800324E0 0002E320 4E 80 00 20 */ blr
/* 800324E4 0002E324 00 00 00 00 */ .4byte 0x00000000
/* 800324E8 0002E328 00 00 00 00 */ .4byte 0x00000000
/* 800324EC 0002E32C 00 00 00 00 */ .4byte 0x00000000
.global __GXInitGX
__GXInitGX:
/* 800324F0 0002E330 94 21 FF 60 */ stwu r1, -0xa0(r1)
/* 800324F4 0002E334 7C 08 02 A6 */ mflr r0
/* 800324F8 0002E338 90 01 00 A4 */ stw r0, 0xa4(r1)
/* 800324FC 0002E33C 39 61 00 A0 */ addi r11, r1, 0xa0
/* 80032500 0002E340 4B FD 4E 3D */ bl lbl_8000733C
/* 80032504 0002E344 3C 00 43 30 */ lis r0, 0x4330
/* 80032508 0002E348 3F 80 80 43 */ lis r28, "@1_80430800"@ha
/* 8003250C 0002E34C 90 01 00 70 */ stw r0, 0x70(r1)
/* 80032510 0002E350 3B 9C 08 00 */ addi r28, r28, "@1_80430800"@l
/* 80032514 0002E354 83 E2 86 14 */ lwz r31, "@2366"@sda21(r2)
/* 80032518 0002E358 3B C0 00 00 */ li r30, 0x0
/* 8003251C 0002E35C 90 01 00 78 */ stw r0, 0x78(r1)
/* 80032520 0002E360 83 A2 86 18 */ lwz r29, "@2370"@sda21(r2)
/* 80032524 0002E364 4B FF BA ED */ bl VIGetTvFormat
/* 80032528 0002E368 2C 03 00 02 */ cmpwi r3, 0x2
/* 8003252C 0002E36C 41 82 00 48 */ beq lbl_80032574
/* 80032530 0002E370 40 80 00 14 */ bge lbl_80032544
/* 80032534 0002E374 2C 03 00 00 */ cmpwi r3, 0x0
/* 80032538 0002E378 41 82 00 18 */ beq lbl_80032550
/* 8003253C 0002E37C 40 80 00 20 */ bge lbl_8003255C
/* 80032540 0002E380 48 00 00 40 */ b lbl_80032580
.global lbl_80032544
lbl_80032544:
/* 80032544 0002E384 2C 03 00 05 */ cmpwi r3, 0x5
/* 80032548 0002E388 41 82 00 20 */ beq lbl_80032568
/* 8003254C 0002E38C 48 00 00 34 */ b lbl_80032580
.global lbl_80032550
lbl_80032550:
/* 80032550 0002E390 3F 60 80 43 */ lis r27, GXNtsc480IntDf@ha
/* 80032554 0002E394 3B 7B 0C 60 */ addi r27, r27, GXNtsc480IntDf@l
/* 80032558 0002E398 48 00 00 30 */ b lbl_80032588
.global lbl_8003255C
lbl_8003255C:
/* 8003255C 0002E39C 3F 60 80 43 */ lis r27, GXPal528IntDf@ha
/* 80032560 0002E3A0 3B 7B 0C D8 */ addi r27, r27, GXPal528IntDf@l
/* 80032564 0002E3A4 48 00 00 24 */ b lbl_80032588
.global lbl_80032568
lbl_80032568:
/* 80032568 0002E3A8 3F 60 80 43 */ lis r27, GXEurgb60Hz480IntDf@ha
/* 8003256C 0002E3AC 3B 7B 0D 14 */ addi r27, r27, GXEurgb60Hz480IntDf@l
/* 80032570 0002E3B0 48 00 00 18 */ b lbl_80032588
.global lbl_80032574
lbl_80032574:
/* 80032574 0002E3B4 3F 60 80 43 */ lis r27, GXMpal480IntDf@ha
/* 80032578 0002E3B8 3B 7B 0C 9C */ addi r27, r27, GXMpal480IntDf@l
/* 8003257C 0002E3BC 48 00 00 0C */ b lbl_80032588
.global lbl_80032580
lbl_80032580:
/* 80032580 0002E3C0 3F 60 80 43 */ lis r27, GXNtsc480IntDf@ha
/* 80032584 0002E3C4 3B 7B 0C 60 */ addi r27, r27, GXNtsc480IntDf@l
.global lbl_80032588
lbl_80032588:
/* 80032588 0002E3C8 3C 80 01 00 */ lis r4, 0x100
/* 8003258C 0002E3CC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80032590 0002E3D0 38 61 00 1C */ addi r3, r1, 0x1c
/* 80032594 0002E3D4 38 84 FF FF */ addi r4, r4, -0x1
/* 80032598 0002E3D8 48 00 33 49 */ bl GXSetCopyClear
/* 8003259C 0002E3DC 38 60 00 00 */ li r3, 0x0
/* 800325A0 0002E3E0 38 80 00 01 */ li r4, 0x1
/* 800325A4 0002E3E4 38 A0 00 04 */ li r5, 0x4
/* 800325A8 0002E3E8 38 C0 00 3C */ li r6, 0x3c
/* 800325AC 0002E3EC 38 E0 00 00 */ li r7, 0x0
/* 800325B0 0002E3F0 39 00 00 7D */ li r8, 0x7d
/* 800325B4 0002E3F4 48 00 1E DD */ bl GXSetTexCoordGen2
/* 800325B8 0002E3F8 38 60 00 01 */ li r3, 0x1
/* 800325BC 0002E3FC 38 80 00 01 */ li r4, 0x1
/* 800325C0 0002E400 38 A0 00 05 */ li r5, 0x5
/* 800325C4 0002E404 38 C0 00 3C */ li r6, 0x3c
/* 800325C8 0002E408 38 E0 00 00 */ li r7, 0x0
/* 800325CC 0002E40C 39 00 00 7D */ li r8, 0x7d
/* 800325D0 0002E410 48 00 1E C1 */ bl GXSetTexCoordGen2
/* 800325D4 0002E414 38 60 00 02 */ li r3, 0x2
/* 800325D8 0002E418 38 80 00 01 */ li r4, 0x1
/* 800325DC 0002E41C 38 A0 00 06 */ li r5, 0x6
/* 800325E0 0002E420 38 C0 00 3C */ li r6, 0x3c
/* 800325E4 0002E424 38 E0 00 00 */ li r7, 0x0
/* 800325E8 0002E428 39 00 00 7D */ li r8, 0x7d
/* 800325EC 0002E42C 48 00 1E A5 */ bl GXSetTexCoordGen2
/* 800325F0 0002E430 38 60 00 03 */ li r3, 0x3
/* 800325F4 0002E434 38 80 00 01 */ li r4, 0x1
/* 800325F8 0002E438 38 A0 00 07 */ li r5, 0x7
/* 800325FC 0002E43C 38 C0 00 3C */ li r6, 0x3c
/* 80032600 0002E440 38 E0 00 00 */ li r7, 0x0
/* 80032604 0002E444 39 00 00 7D */ li r8, 0x7d
/* 80032608 0002E448 48 00 1E 89 */ bl GXSetTexCoordGen2
/* 8003260C 0002E44C 38 60 00 04 */ li r3, 0x4
/* 80032610 0002E450 38 80 00 01 */ li r4, 0x1
/* 80032614 0002E454 38 A0 00 08 */ li r5, 0x8
/* 80032618 0002E458 38 C0 00 3C */ li r6, 0x3c
/* 8003261C 0002E45C 38 E0 00 00 */ li r7, 0x0
/* 80032620 0002E460 39 00 00 7D */ li r8, 0x7d
/* 80032624 0002E464 48 00 1E 6D */ bl GXSetTexCoordGen2
/* 80032628 0002E468 38 60 00 05 */ li r3, 0x5
/* 8003262C 0002E46C 38 80 00 01 */ li r4, 0x1
/* 80032630 0002E470 38 A0 00 09 */ li r5, 0x9
/* 80032634 0002E474 38 C0 00 3C */ li r6, 0x3c
/* 80032638 0002E478 38 E0 00 00 */ li r7, 0x0
/* 8003263C 0002E47C 39 00 00 7D */ li r8, 0x7d
/* 80032640 0002E480 48 00 1E 51 */ bl GXSetTexCoordGen2
/* 80032644 0002E484 38 60 00 06 */ li r3, 0x6
/* 80032648 0002E488 38 80 00 01 */ li r4, 0x1
/* 8003264C 0002E48C 38 A0 00 0A */ li r5, 0xa
/* 80032650 0002E490 38 C0 00 3C */ li r6, 0x3c
/* 80032654 0002E494 38 E0 00 00 */ li r7, 0x0
/* 80032658 0002E498 39 00 00 7D */ li r8, 0x7d
/* 8003265C 0002E49C 48 00 1E 35 */ bl GXSetTexCoordGen2
/* 80032660 0002E4A0 38 60 00 07 */ li r3, 0x7
/* 80032664 0002E4A4 38 80 00 01 */ li r4, 0x1
/* 80032668 0002E4A8 38 A0 00 0B */ li r5, 0xb
/* 8003266C 0002E4AC 38 C0 00 3C */ li r6, 0x3c
/* 80032670 0002E4B0 38 E0 00 00 */ li r7, 0x0
/* 80032674 0002E4B4 39 00 00 7D */ li r8, 0x7d
/* 80032678 0002E4B8 48 00 1E 19 */ bl GXSetTexCoordGen2
/* 8003267C 0002E4BC 38 60 00 01 */ li r3, 0x1
/* 80032680 0002E4C0 48 00 20 61 */ bl GXSetNumTexGens
/* 80032684 0002E4C4 48 00 17 2D */ bl GXClearVtxDesc
/* 80032688 0002E4C8 48 00 1D F9 */ bl GXInvalidateVtxCache
/* 8003268C 0002E4CC 3B E0 00 09 */ li r31, 0x9
.global lbl_80032690
lbl_80032690:
/* 80032690 0002E4D0 80 82 86 08 */ lwz r4, __GXData@sda21(r2)
/* 80032694 0002E4D4 7F E3 FB 78 */ mr r3, r31
/* 80032698 0002E4D8 38 A0 00 00 */ li r5, 0x0
/* 8003269C 0002E4DC 48 00 1D A5 */ bl GXSetArray
/* 800326A0 0002E4E0 3B FF 00 01 */ addi r31, r31, 0x1
/* 800326A4 0002E4E4 28 1F 00 18 */ cmplwi r31, 0x18
/* 800326A8 0002E4E8 40 81 FF E8 */ ble lbl_80032690
/* 800326AC 0002E4EC 3B E0 00 00 */ li r31, 0x0
.global lbl_800326B0
lbl_800326B0:
/* 800326B0 0002E4F0 7F E3 FB 78 */ mr r3, r31
/* 800326B4 0002E4F4 38 9C 00 80 */ addi r4, r28, 0x80
/* 800326B8 0002E4F8 48 00 18 D9 */ bl GXSetVtxAttrFmtv
/* 800326BC 0002E4FC 3B FF 00 01 */ addi r31, r31, 0x1
/* 800326C0 0002E500 28 1F 00 08 */ cmplwi r31, 0x8
/* 800326C4 0002E504 41 80 FF EC */ blt lbl_800326B0
/* 800326C8 0002E508 38 60 00 06 */ li r3, 0x6
/* 800326CC 0002E50C 38 80 00 00 */ li r4, 0x0
/* 800326D0 0002E510 48 00 2D D1 */ bl GXSetLineWidth
/* 800326D4 0002E514 38 60 00 06 */ li r3, 0x6
/* 800326D8 0002E518 38 80 00 00 */ li r4, 0x0
/* 800326DC 0002E51C 48 00 2E 05 */ bl GXSetPointSize
/* 800326E0 0002E520 38 60 00 00 */ li r3, 0x0
/* 800326E4 0002E524 38 80 00 00 */ li r4, 0x0
/* 800326E8 0002E528 38 A0 00 00 */ li r5, 0x0
/* 800326EC 0002E52C 48 00 2E 35 */ bl GXEnableTexOffsets
/* 800326F0 0002E530 38 60 00 01 */ li r3, 0x1
/* 800326F4 0002E534 38 80 00 00 */ li r4, 0x0
/* 800326F8 0002E538 38 A0 00 00 */ li r5, 0x0
/* 800326FC 0002E53C 48 00 2E 25 */ bl GXEnableTexOffsets
/* 80032700 0002E540 38 60 00 02 */ li r3, 0x2
/* 80032704 0002E544 38 80 00 00 */ li r4, 0x0
/* 80032708 0002E548 38 A0 00 00 */ li r5, 0x0
/* 8003270C 0002E54C 48 00 2E 15 */ bl GXEnableTexOffsets
/* 80032710 0002E550 38 60 00 03 */ li r3, 0x3
/* 80032714 0002E554 38 80 00 00 */ li r4, 0x0
/* 80032718 0002E558 38 A0 00 00 */ li r5, 0x0
/* 8003271C 0002E55C 48 00 2E 05 */ bl GXEnableTexOffsets
/* 80032720 0002E560 38 60 00 04 */ li r3, 0x4
/* 80032724 0002E564 38 80 00 00 */ li r4, 0x0
/* 80032728 0002E568 38 A0 00 00 */ li r5, 0x0
/* 8003272C 0002E56C 48 00 2D F5 */ bl GXEnableTexOffsets
/* 80032730 0002E570 38 60 00 05 */ li r3, 0x5
/* 80032734 0002E574 38 80 00 00 */ li r4, 0x0
/* 80032738 0002E578 38 A0 00 00 */ li r5, 0x0
/* 8003273C 0002E57C 48 00 2D E5 */ bl GXEnableTexOffsets
/* 80032740 0002E580 38 60 00 06 */ li r3, 0x6
/* 80032744 0002E584 38 80 00 00 */ li r4, 0x0
/* 80032748 0002E588 38 A0 00 00 */ li r5, 0x0
/* 8003274C 0002E58C 48 00 2D D5 */ bl GXEnableTexOffsets
/* 80032750 0002E590 38 60 00 07 */ li r3, 0x7
/* 80032754 0002E594 38 80 00 00 */ li r4, 0x0
/* 80032758 0002E598 38 A0 00 00 */ li r5, 0x0
/* 8003275C 0002E59C 48 00 2D C5 */ bl GXEnableTexOffsets
/* 80032760 0002E5A0 C0 02 86 10 */ lfs f0, "@2713"@sda21(r2)
/* 80032764 0002E5A4 38 61 00 40 */ addi r3, r1, 0x40
/* 80032768 0002E5A8 C0 22 86 1C */ lfs f1, "@2746_8055E59C"@sda21(r2)
/* 8003276C 0002E5AC 38 80 00 00 */ li r4, 0x0
/* 80032770 0002E5B0 D0 21 00 40 */ stfs f1, 0x40(r1)
/* 80032774 0002E5B4 D0 01 00 44 */ stfs f0, 0x44(r1)
/* 80032778 0002E5B8 D0 01 00 48 */ stfs f0, 0x48(r1)
/* 8003277C 0002E5BC D0 01 00 4C */ stfs f0, 0x4c(r1)
/* 80032780 0002E5C0 D0 01 00 50 */ stfs f0, 0x50(r1)
/* 80032784 0002E5C4 D0 21 00 54 */ stfs f1, 0x54(r1)
/* 80032788 0002E5C8 D0 01 00 58 */ stfs f0, 0x58(r1)
/* 8003278C 0002E5CC D0 01 00 5C */ stfs f0, 0x5c(r1)
/* 80032790 0002E5D0 D0 01 00 60 */ stfs f0, 0x60(r1)
/* 80032794 0002E5D4 D0 01 00 64 */ stfs f0, 0x64(r1)
/* 80032798 0002E5D8 D0 21 00 68 */ stfs f1, 0x68(r1)
/* 8003279C 0002E5DC D0 01 00 6C */ stfs f0, 0x6c(r1)
/* 800327A0 0002E5E0 48 00 64 81 */ bl GXLoadPosMtxImm
/* 800327A4 0002E5E4 38 61 00 40 */ addi r3, r1, 0x40
/* 800327A8 0002E5E8 38 80 00 00 */ li r4, 0x0
/* 800327AC 0002E5EC 48 00 64 F5 */ bl GXLoadNrmMtxImm
/* 800327B0 0002E5F0 38 60 00 00 */ li r3, 0x0
/* 800327B4 0002E5F4 48 00 65 8D */ bl GXSetCurrentMtx
/* 800327B8 0002E5F8 38 61 00 40 */ addi r3, r1, 0x40
/* 800327BC 0002E5FC 38 80 00 3C */ li r4, 0x3c
/* 800327C0 0002E600 38 A0 00 00 */ li r5, 0x0
/* 800327C4 0002E604 48 00 65 9D */ bl GXLoadTexMtxImm
/* 800327C8 0002E608 38 61 00 40 */ addi r3, r1, 0x40
/* 800327CC 0002E60C 38 80 00 7D */ li r4, 0x7d
/* 800327D0 0002E610 38 A0 00 00 */ li r5, 0x0
/* 800327D4 0002E614 48 00 65 8D */ bl GXLoadTexMtxImm
/* 800327D8 0002E618 A0 7B 00 04 */ lhz r3, 0x4(r27)
/* 800327DC 0002E61C A0 1B 00 08 */ lhz r0, 0x8(r27)
/* 800327E0 0002E620 90 61 00 74 */ stw r3, 0x74(r1)
/* 800327E4 0002E624 C0 22 86 10 */ lfs f1, "@2713"@sda21(r2)
/* 800327E8 0002E628 90 01 00 7C */ stw r0, 0x7c(r1)
/* 800327EC 0002E62C C8 82 86 28 */ lfd f4, "@2750_8055E5A8"@sda21(r2)
/* 800327F0 0002E630 FC 40 08 90 */ fmr f2, f1
/* 800327F4 0002E634 C8 61 00 70 */ lfd f3, 0x70(r1)
/* 800327F8 0002E638 FC A0 08 90 */ fmr f5, f1
/* 800327FC 0002E63C C8 01 00 78 */ lfd f0, 0x78(r1)
/* 80032800 0002E640 EC 63 20 28 */ fsubs f3, f3, f4
/* 80032804 0002E644 C0 C2 86 1C */ lfs f6, "@2746_8055E59C"@sda21(r2)
/* 80032808 0002E648 EC 80 20 28 */ fsubs f4, f0, f4
/* 8003280C 0002E64C 48 00 66 E5 */ bl GXSetViewport
/* 80032810 0002E650 38 7C 01 50 */ addi r3, r28, 0x150
/* 80032814 0002E654 48 00 63 7D */ bl GXSetProjectionv
/* 80032818 0002E658 48 00 2D B9 */ bl __GXSetGenMode
/* 8003281C 0002E65C 38 60 00 00 */ li r3, 0x0
/* 80032820 0002E660 48 00 2D 71 */ bl GXSetCoPlanar
/* 80032824 0002E664 38 60 00 02 */ li r3, 0x2
/* 80032828 0002E668 48 00 2D 39 */ bl GXSetCullMode
/* 8003282C 0002E66C 38 60 00 00 */ li r3, 0x0
/* 80032830 0002E670 48 00 67 D1 */ bl GXSetClipMode
/* 80032834 0002E674 A0 BB 00 04 */ lhz r5, 0x4(r27)
/* 80032838 0002E678 38 60 00 00 */ li r3, 0x0
/* 8003283C 0002E67C A0 DB 00 06 */ lhz r6, 0x6(r27)
/* 80032840 0002E680 38 80 00 00 */ li r4, 0x0
/* 80032844 0002E684 48 00 67 0D */ bl GXSetScissor
/* 80032848 0002E688 38 60 00 00 */ li r3, 0x0
/* 8003284C 0002E68C 38 80 00 00 */ li r4, 0x0
/* 80032850 0002E690 48 00 67 71 */ bl GXSetScissorBoxOffset
/* 80032854 0002E694 38 60 00 00 */ li r3, 0x0
/* 80032858 0002E698 48 00 3C 89 */ bl GXSetNumChans
/* 8003285C 0002E69C 38 60 00 04 */ li r3, 0x4
/* 80032860 0002E6A0 38 80 00 00 */ li r4, 0x0
/* 80032864 0002E6A4 38 A0 00 00 */ li r5, 0x0
/* 80032868 0002E6A8 38 C0 00 01 */ li r6, 0x1
/* 8003286C 0002E6AC 38 E0 00 00 */ li r7, 0x0
/* 80032870 0002E6B0 39 00 00 00 */ li r8, 0x0
/* 80032874 0002E6B4 39 20 00 02 */ li r9, 0x2
/* 80032878 0002E6B8 48 00 3C 99 */ bl GXSetChanCtrl
/* 8003287C 0002E6BC 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80032880 0002E6C0 38 81 00 18 */ addi r4, r1, 0x18
/* 80032884 0002E6C4 38 60 00 04 */ li r3, 0x4
/* 80032888 0002E6C8 48 00 3A 99 */ bl GXSetChanAmbColor
/* 8003288C 0002E6CC 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80032890 0002E6D0 38 81 00 14 */ addi r4, r1, 0x14
/* 80032894 0002E6D4 38 60 00 04 */ li r3, 0x4
/* 80032898 0002E6D8 48 00 3B 69 */ bl GXSetChanMatColor
/* 8003289C 0002E6DC 38 60 00 05 */ li r3, 0x5
/* 800328A0 0002E6E0 38 80 00 00 */ li r4, 0x0
/* 800328A4 0002E6E4 38 A0 00 00 */ li r5, 0x0
/* 800328A8 0002E6E8 38 C0 00 01 */ li r6, 0x1
/* 800328AC 0002E6EC 38 E0 00 00 */ li r7, 0x0
/* 800328B0 0002E6F0 39 00 00 00 */ li r8, 0x0
/* 800328B4 0002E6F4 39 20 00 02 */ li r9, 0x2
/* 800328B8 0002E6F8 48 00 3C 59 */ bl GXSetChanCtrl
/* 800328BC 0002E6FC 93 C1 00 10 */ stw r30, 0x10(r1)
/* 800328C0 0002E700 38 81 00 10 */ addi r4, r1, 0x10
/* 800328C4 0002E704 38 60 00 05 */ li r3, 0x5
/* 800328C8 0002E708 48 00 3A 59 */ bl GXSetChanAmbColor
/* 800328CC 0002E70C 93 A1 00 0C */ stw r29, 0xc(r1)
/* 800328D0 0002E710 38 81 00 0C */ addi r4, r1, 0xc
/* 800328D4 0002E714 38 60 00 05 */ li r3, 0x5
/* 800328D8 0002E718 48 00 3B 29 */ bl GXSetChanMatColor
/* 800328DC 0002E71C 48 00 47 55 */ bl GXInvalidateTexAll
/* 800328E0 0002E720 3C 60 80 03 */ lis r3, __GXDefaultTexRegionCallback@ha
/* 800328E4 0002E724 38 63 1C 20 */ addi r3, r3, __GXDefaultTexRegionCallback@l
/* 800328E8 0002E728 48 00 47 99 */ bl GXSetTexRegionCallback
/* 800328EC 0002E72C 3C 60 80 03 */ lis r3, __GXDefaultTlutRegionCallback@ha
/* 800328F0 0002E730 38 63 1D 10 */ addi r3, r3, __GXDefaultTlutRegionCallback@l
/* 800328F4 0002E734 48 00 47 AD */ bl GXSetTlutRegionCallback
/* 800328F8 0002E738 38 61 00 20 */ addi r3, r1, 0x20
/* 800328FC 0002E73C 38 9C 00 60 */ addi r4, r28, 0x60
/* 80032900 0002E740 38 A0 00 04 */ li r5, 0x4
/* 80032904 0002E744 38 C0 00 04 */ li r6, 0x4
/* 80032908 0002E748 38 E0 00 03 */ li r7, 0x3
/* 8003290C 0002E74C 39 00 00 00 */ li r8, 0x0
/* 80032910 0002E750 39 20 00 00 */ li r9, 0x0
/* 80032914 0002E754 39 40 00 00 */ li r10, 0x0
/* 80032918 0002E758 48 00 3E 99 */ bl GXInitTexObj
/* 8003291C 0002E75C 38 61 00 20 */ addi r3, r1, 0x20
/* 80032920 0002E760 38 80 00 00 */ li r4, 0x0
/* 80032924 0002E764 48 00 45 0D */ bl GXLoadTexObj
/* 80032928 0002E768 38 61 00 20 */ addi r3, r1, 0x20
/* 8003292C 0002E76C 38 80 00 01 */ li r4, 0x1
/* 80032930 0002E770 48 00 45 01 */ bl GXLoadTexObj
/* 80032934 0002E774 38 61 00 20 */ addi r3, r1, 0x20
/* 80032938 0002E778 38 80 00 02 */ li r4, 0x2
/* 8003293C 0002E77C 48 00 44 F5 */ bl GXLoadTexObj
/* 80032940 0002E780 38 61 00 20 */ addi r3, r1, 0x20
/* 80032944 0002E784 38 80 00 03 */ li r4, 0x3
/* 80032948 0002E788 48 00 44 E9 */ bl GXLoadTexObj
/* 8003294C 0002E78C 38 61 00 20 */ addi r3, r1, 0x20
/* 80032950 0002E790 38 80 00 04 */ li r4, 0x4
/* 80032954 0002E794 48 00 44 DD */ bl GXLoadTexObj
/* 80032958 0002E798 38 61 00 20 */ addi r3, r1, 0x20
/* 8003295C 0002E79C 38 80 00 05 */ li r4, 0x5
/* 80032960 0002E7A0 48 00 44 D1 */ bl GXLoadTexObj
/* 80032964 0002E7A4 38 61 00 20 */ addi r3, r1, 0x20
/* 80032968 0002E7A8 38 80 00 06 */ li r4, 0x6
/* 8003296C 0002E7AC 48 00 44 C5 */ bl GXLoadTexObj
/* 80032970 0002E7B0 38 61 00 20 */ addi r3, r1, 0x20
/* 80032974 0002E7B4 38 80 00 07 */ li r4, 0x7
/* 80032978 0002E7B8 48 00 44 B9 */ bl GXLoadTexObj
/* 8003297C 0002E7BC 38 60 00 00 */ li r3, 0x0
/* 80032980 0002E7C0 38 80 00 00 */ li r4, 0x0
/* 80032984 0002E7C4 38 A0 00 00 */ li r5, 0x0
/* 80032988 0002E7C8 38 C0 00 04 */ li r6, 0x4
/* 8003298C 0002E7CC 48 00 57 75 */ bl GXSetTevOrder
/* 80032990 0002E7D0 38 60 00 01 */ li r3, 0x1
/* 80032994 0002E7D4 38 80 00 01 */ li r4, 0x1
/* 80032998 0002E7D8 38 A0 00 01 */ li r5, 0x1
/* 8003299C 0002E7DC 38 C0 00 04 */ li r6, 0x4
/* 800329A0 0002E7E0 48 00 57 61 */ bl GXSetTevOrder
/* 800329A4 0002E7E4 38 60 00 02 */ li r3, 0x2
/* 800329A8 0002E7E8 38 80 00 02 */ li r4, 0x2
/* 800329AC 0002E7EC 38 A0 00 02 */ li r5, 0x2
/* 800329B0 0002E7F0 38 C0 00 04 */ li r6, 0x4
/* 800329B4 0002E7F4 48 00 57 4D */ bl GXSetTevOrder
/* 800329B8 0002E7F8 38 60 00 03 */ li r3, 0x3
/* 800329BC 0002E7FC 38 80 00 03 */ li r4, 0x3
/* 800329C0 0002E800 38 A0 00 03 */ li r5, 0x3
/* 800329C4 0002E804 38 C0 00 04 */ li r6, 0x4
/* 800329C8 0002E808 48 00 57 39 */ bl GXSetTevOrder
/* 800329CC 0002E80C 38 60 00 04 */ li r3, 0x4
/* 800329D0 0002E810 38 80 00 04 */ li r4, 0x4
/* 800329D4 0002E814 38 A0 00 04 */ li r5, 0x4
/* 800329D8 0002E818 38 C0 00 04 */ li r6, 0x4
/* 800329DC 0002E81C 48 00 57 25 */ bl GXSetTevOrder
/* 800329E0 0002E820 38 60 00 05 */ li r3, 0x5
/* 800329E4 0002E824 38 80 00 05 */ li r4, 0x5
/* 800329E8 0002E828 38 A0 00 05 */ li r5, 0x5
/* 800329EC 0002E82C 38 C0 00 04 */ li r6, 0x4
/* 800329F0 0002E830 48 00 57 11 */ bl GXSetTevOrder
/* 800329F4 0002E834 38 60 00 06 */ li r3, 0x6
/* 800329F8 0002E838 38 80 00 06 */ li r4, 0x6
/* 800329FC 0002E83C 38 A0 00 06 */ li r5, 0x6
/* 80032A00 0002E840 38 C0 00 04 */ li r6, 0x4
/* 80032A04 0002E844 48 00 56 FD */ bl GXSetTevOrder
/* 80032A08 0002E848 38 60 00 07 */ li r3, 0x7
/* 80032A0C 0002E84C 38 80 00 07 */ li r4, 0x7
/* 80032A10 0002E850 38 A0 00 07 */ li r5, 0x7
/* 80032A14 0002E854 38 C0 00 04 */ li r6, 0x4
/* 80032A18 0002E858 48 00 56 E9 */ bl GXSetTevOrder
/* 80032A1C 0002E85C 38 60 00 08 */ li r3, 0x8
/* 80032A20 0002E860 38 80 00 FF */ li r4, 0xff
/* 80032A24 0002E864 38 A0 00 FF */ li r5, 0xff
/* 80032A28 0002E868 38 C0 00 FF */ li r6, 0xff
/* 80032A2C 0002E86C 48 00 56 D5 */ bl GXSetTevOrder
/* 80032A30 0002E870 38 60 00 09 */ li r3, 0x9
/* 80032A34 0002E874 38 80 00 FF */ li r4, 0xff
/* 80032A38 0002E878 38 A0 00 FF */ li r5, 0xff
/* 80032A3C 0002E87C 38 C0 00 FF */ li r6, 0xff
/* 80032A40 0002E880 48 00 56 C1 */ bl GXSetTevOrder
/* 80032A44 0002E884 38 60 00 0A */ li r3, 0xa
/* 80032A48 0002E888 38 80 00 FF */ li r4, 0xff
/* 80032A4C 0002E88C 38 A0 00 FF */ li r5, 0xff
/* 80032A50 0002E890 38 C0 00 FF */ li r6, 0xff
/* 80032A54 0002E894 48 00 56 AD */ bl GXSetTevOrder
/* 80032A58 0002E898 38 60 00 0B */ li r3, 0xb
/* 80032A5C 0002E89C 38 80 00 FF */ li r4, 0xff
/* 80032A60 0002E8A0 38 A0 00 FF */ li r5, 0xff
/* 80032A64 0002E8A4 38 C0 00 FF */ li r6, 0xff
/* 80032A68 0002E8A8 48 00 56 99 */ bl GXSetTevOrder
/* 80032A6C 0002E8AC 38 60 00 0C */ li r3, 0xc
/* 80032A70 0002E8B0 38 80 00 FF */ li r4, 0xff
/* 80032A74 0002E8B4 38 A0 00 FF */ li r5, 0xff
/* 80032A78 0002E8B8 38 C0 00 FF */ li r6, 0xff
/* 80032A7C 0002E8BC 48 00 56 85 */ bl GXSetTevOrder
/* 80032A80 0002E8C0 38 60 00 0D */ li r3, 0xd
/* 80032A84 0002E8C4 38 80 00 FF */ li r4, 0xff
/* 80032A88 0002E8C8 38 A0 00 FF */ li r5, 0xff
/* 80032A8C 0002E8CC 38 C0 00 FF */ li r6, 0xff
/* 80032A90 0002E8D0 48 00 56 71 */ bl GXSetTevOrder
/* 80032A94 0002E8D4 38 60 00 0E */ li r3, 0xe
/* 80032A98 0002E8D8 38 80 00 FF */ li r4, 0xff
/* 80032A9C 0002E8DC 38 A0 00 FF */ li r5, 0xff
/* 80032AA0 0002E8E0 38 C0 00 FF */ li r6, 0xff
/* 80032AA4 0002E8E4 48 00 56 5D */ bl GXSetTevOrder
/* 80032AA8 0002E8E8 38 60 00 0F */ li r3, 0xf
/* 80032AAC 0002E8EC 38 80 00 FF */ li r4, 0xff
/* 80032AB0 0002E8F0 38 A0 00 FF */ li r5, 0xff
/* 80032AB4 0002E8F4 38 C0 00 FF */ li r6, 0xff
/* 80032AB8 0002E8F8 48 00 56 49 */ bl GXSetTevOrder
/* 80032ABC 0002E8FC 38 60 00 01 */ li r3, 0x1
/* 80032AC0 0002E900 48 00 57 A1 */ bl GXSetNumTevStages
/* 80032AC4 0002E904 38 60 00 00 */ li r3, 0x0
/* 80032AC8 0002E908 38 80 00 03 */ li r4, 0x3
/* 80032ACC 0002E90C 48 00 50 F5 */ bl GXSetTevOp
/* 80032AD0 0002E910 38 60 00 07 */ li r3, 0x7
/* 80032AD4 0002E914 38 80 00 00 */ li r4, 0x0
/* 80032AD8 0002E918 38 A0 00 00 */ li r5, 0x0
/* 80032ADC 0002E91C 38 C0 00 07 */ li r6, 0x7
/* 80032AE0 0002E920 38 E0 00 00 */ li r7, 0x0
/* 80032AE4 0002E924 48 00 55 4D */ bl GXSetAlphaCompare
/* 80032AE8 0002E928 38 60 00 00 */ li r3, 0x0
/* 80032AEC 0002E92C 38 80 00 11 */ li r4, 0x11
/* 80032AF0 0002E930 38 A0 00 00 */ li r5, 0x0
/* 80032AF4 0002E934 48 00 55 7D */ bl GXSetZTexture
/* 80032AF8 0002E938 3B E0 00 00 */ li r31, 0x0
.global lbl_80032AFC
lbl_80032AFC:
/* 80032AFC 0002E93C 7F E3 FB 78 */ mr r3, r31
/* 80032B00 0002E940 38 80 00 06 */ li r4, 0x6
/* 80032B04 0002E944 48 00 53 CD */ bl GXSetTevKColorSel
/* 80032B08 0002E948 7F E3 FB 78 */ mr r3, r31
/* 80032B0C 0002E94C 38 80 00 00 */ li r4, 0x0
/* 80032B10 0002E950 48 00 54 11 */ bl GXSetTevKAlphaSel
/* 80032B14 0002E954 7F E3 FB 78 */ mr r3, r31
/* 80032B18 0002E958 38 80 00 00 */ li r4, 0x0
/* 80032B1C 0002E95C 38 A0 00 00 */ li r5, 0x0
/* 80032B20 0002E960 48 00 54 51 */ bl GXSetTevSwapMode
/* 80032B24 0002E964 3B FF 00 01 */ addi r31, r31, 0x1
/* 80032B28 0002E968 28 1F 00 10 */ cmplwi r31, 0x10
/* 80032B2C 0002E96C 41 80 FF D0 */ blt lbl_80032AFC
/* 80032B30 0002E970 38 60 00 00 */ li r3, 0x0
/* 80032B34 0002E974 38 80 00 00 */ li r4, 0x0
/* 80032B38 0002E978 38 A0 00 01 */ li r5, 0x1
/* 80032B3C 0002E97C 38 C0 00 02 */ li r6, 0x2
/* 80032B40 0002E980 38 E0 00 03 */ li r7, 0x3
/* 80032B44 0002E984 48 00 54 6D */ bl GXSetTevSwapModeTable
/* 80032B48 0002E988 38 60 00 01 */ li r3, 0x1
/* 80032B4C 0002E98C 38 80 00 00 */ li r4, 0x0
/* 80032B50 0002E990 38 A0 00 00 */ li r5, 0x0
/* 80032B54 0002E994 38 C0 00 00 */ li r6, 0x0
/* 80032B58 0002E998 38 E0 00 03 */ li r7, 0x3
/* 80032B5C 0002E99C 48 00 54 55 */ bl GXSetTevSwapModeTable
/* 80032B60 0002E9A0 38 60 00 02 */ li r3, 0x2
/* 80032B64 0002E9A4 38 80 00 01 */ li r4, 0x1
/* 80032B68 0002E9A8 38 A0 00 01 */ li r5, 0x1
/* 80032B6C 0002E9AC 38 C0 00 01 */ li r6, 0x1
/* 80032B70 0002E9B0 38 E0 00 03 */ li r7, 0x3
/* 80032B74 0002E9B4 48 00 54 3D */ bl GXSetTevSwapModeTable
/* 80032B78 0002E9B8 38 60 00 03 */ li r3, 0x3
/* 80032B7C 0002E9BC 38 80 00 02 */ li r4, 0x2
/* 80032B80 0002E9C0 38 A0 00 02 */ li r5, 0x2
/* 80032B84 0002E9C4 38 C0 00 02 */ li r6, 0x2
/* 80032B88 0002E9C8 38 E0 00 03 */ li r7, 0x3
/* 80032B8C 0002E9CC 48 00 54 25 */ bl GXSetTevSwapModeTable
/* 80032B90 0002E9D0 3B E0 00 00 */ li r31, 0x0
.global lbl_80032B94
lbl_80032B94:
/* 80032B94 0002E9D4 7F E3 FB 78 */ mr r3, r31
/* 80032B98 0002E9D8 48 00 4F 79 */ bl GXSetTevDirect
/* 80032B9C 0002E9DC 3B FF 00 01 */ addi r31, r31, 0x1
/* 80032BA0 0002E9E0 28 1F 00 10 */ cmplwi r31, 0x10
/* 80032BA4 0002E9E4 41 80 FF F0 */ blt lbl_80032B94
/* 80032BA8 0002E9E8 38 60 00 00 */ li r3, 0x0
/* 80032BAC 0002E9EC 48 00 4F 45 */ bl GXSetNumIndStages
/* 80032BB0 0002E9F0 38 60 00 00 */ li r3, 0x0
/* 80032BB4 0002E9F4 38 80 00 00 */ li r4, 0x0
/* 80032BB8 0002E9F8 38 A0 00 00 */ li r5, 0x0
/* 80032BBC 0002E9FC 48 00 4D 65 */ bl GXSetIndTexCoordScale
/* 80032BC0 0002EA00 38 60 00 01 */ li r3, 0x1
/* 80032BC4 0002EA04 38 80 00 00 */ li r4, 0x0
/* 80032BC8 0002EA08 38 A0 00 00 */ li r5, 0x0
/* 80032BCC 0002EA0C 48 00 4D 55 */ bl GXSetIndTexCoordScale
/* 80032BD0 0002EA10 38 60 00 02 */ li r3, 0x2
/* 80032BD4 0002EA14 38 80 00 00 */ li r4, 0x0
/* 80032BD8 0002EA18 38 A0 00 00 */ li r5, 0x0
/* 80032BDC 0002EA1C 48 00 4D 45 */ bl GXSetIndTexCoordScale
/* 80032BE0 0002EA20 38 60 00 03 */ li r3, 0x3
/* 80032BE4 0002EA24 38 80 00 00 */ li r4, 0x0
/* 80032BE8 0002EA28 38 A0 00 00 */ li r5, 0x0
/* 80032BEC 0002EA2C 48 00 4D 35 */ bl GXSetIndTexCoordScale
/* 80032BF0 0002EA30 C0 42 86 1C */ lfs f2, "@2746_8055E59C"@sda21(r2)
/* 80032BF4 0002EA34 38 81 00 08 */ addi r4, r1, 0x8
/* 80032BF8 0002EA38 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80032BFC 0002EA3C 38 60 00 00 */ li r3, 0x0
/* 80032C00 0002EA40 FC 80 10 90 */ fmr f4, f2
/* 80032C04 0002EA44 C0 22 86 10 */ lfs f1, "@2713"@sda21(r2)
/* 80032C08 0002EA48 C0 62 86 20 */ lfs f3, "@2747_8055E5A0"@sda21(r2)
/* 80032C0C 0002EA4C 48 00 56 85 */ bl GXSetFog
/* 80032C10 0002EA50 38 60 00 00 */ li r3, 0x0
/* 80032C14 0002EA54 38 80 00 00 */ li r4, 0x0
/* 80032C18 0002EA58 38 A0 00 00 */ li r5, 0x0
/* 80032C1C 0002EA5C 48 00 5A 05 */ bl GXSetFogRangeAdj
/* 80032C20 0002EA60 38 60 00 00 */ li r3, 0x0
/* 80032C24 0002EA64 38 80 00 04 */ li r4, 0x4
/* 80032C28 0002EA68 38 A0 00 05 */ li r5, 0x5
/* 80032C2C 0002EA6C 38 C0 00 00 */ li r6, 0x0
/* 80032C30 0002EA70 48 00 5B 01 */ bl GXSetBlendMode
/* 80032C34 0002EA74 38 60 00 01 */ li r3, 0x1
/* 80032C38 0002EA78 48 00 5B 49 */ bl GXSetColorUpdate
/* 80032C3C 0002EA7C 38 60 00 01 */ li r3, 0x1
/* 80032C40 0002EA80 48 00 5B 91 */ bl GXSetAlphaUpdate
/* 80032C44 0002EA84 38 60 00 01 */ li r3, 0x1
/* 80032C48 0002EA88 38 80 00 03 */ li r4, 0x3
/* 80032C4C 0002EA8C 38 A0 00 01 */ li r5, 0x1
/* 80032C50 0002EA90 48 00 5B D1 */ bl GXSetZMode
/* 80032C54 0002EA94 38 60 00 01 */ li r3, 0x1
/* 80032C58 0002EA98 48 00 5C 09 */ bl GXSetZCompLoc
/* 80032C5C 0002EA9C 38 60 00 01 */ li r3, 0x1
/* 80032C60 0002EAA0 48 00 5C E1 */ bl GXSetDither
/* 80032C64 0002EAA4 38 60 00 00 */ li r3, 0x0
/* 80032C68 0002EAA8 38 80 00 00 */ li r4, 0x0
/* 80032C6C 0002EAAC 48 00 5D 05 */ bl GXSetDstAlpha
/* 80032C70 0002EAB0 38 60 00 00 */ li r3, 0x0
/* 80032C74 0002EAB4 38 80 00 00 */ li r4, 0x0
/* 80032C78 0002EAB8 48 00 5C 19 */ bl GXSetPixelFmt
/* 80032C7C 0002EABC 38 60 00 01 */ li r3, 0x1
/* 80032C80 0002EAC0 38 80 00 01 */ li r4, 0x1
/* 80032C84 0002EAC4 48 00 5D 1D */ bl GXSetFieldMask
/* 80032C88 0002EAC8 A0 1B 00 08 */ lhz r0, 0x8(r27)
/* 80032C8C 0002EACC A0 7B 00 10 */ lhz r3, 0x10(r27)
/* 80032C90 0002EAD0 54 00 08 3C */ slwi r0, r0, 1
/* 80032C94 0002EAD4 7C 03 00 00 */ cmpw r3, r0
/* 80032C98 0002EAD8 40 82 00 0C */ bne lbl_80032CA4
/* 80032C9C 0002EADC 38 80 00 01 */ li r4, 0x1
/* 80032CA0 0002EAE0 48 00 00 08 */ b lbl_80032CA8
.global lbl_80032CA4
lbl_80032CA4:
/* 80032CA4 0002EAE4 38 80 00 00 */ li r4, 0x0
.global lbl_80032CA8
lbl_80032CA8:
/* 80032CA8 0002EAE8 88 7B 00 18 */ lbz r3, 0x18(r27)
/* 80032CAC 0002EAEC 48 00 5D 35 */ bl GXSetFieldMode
/* 80032CB0 0002EAF0 A0 BB 00 04 */ lhz r5, 0x4(r27)
/* 80032CB4 0002EAF4 38 60 00 00 */ li r3, 0x0
/* 80032CB8 0002EAF8 A0 DB 00 06 */ lhz r6, 0x6(r27)
/* 80032CBC 0002EAFC 38 80 00 00 */ li r4, 0x0
/* 80032CC0 0002EB00 48 00 29 41 */ bl GXSetDispCopySrc
/* 80032CC4 0002EB04 A0 7B 00 04 */ lhz r3, 0x4(r27)
/* 80032CC8 0002EB08 A0 9B 00 06 */ lhz r4, 0x6(r27)
/* 80032CCC 0002EB0C 48 00 29 B5 */ bl GXSetDispCopyDst
/* 80032CD0 0002EB10 A0 7B 00 08 */ lhz r3, 0x8(r27)
/* 80032CD4 0002EB14 A0 1B 00 06 */ lhz r0, 0x6(r27)
/* 80032CD8 0002EB18 90 61 00 74 */ stw r3, 0x74(r1)
/* 80032CDC 0002EB1C C8 42 86 28 */ lfd f2, "@2750_8055E5A8"@sda21(r2)
/* 80032CE0 0002EB20 90 01 00 7C */ stw r0, 0x7c(r1)
/* 80032CE4 0002EB24 C8 21 00 70 */ lfd f1, 0x70(r1)
/* 80032CE8 0002EB28 C8 01 00 78 */ lfd f0, 0x78(r1)
/* 80032CEC 0002EB2C EC 21 10 28 */ fsubs f1, f1, f2
/* 80032CF0 0002EB30 EC 00 10 28 */ fsubs f0, f0, f2
/* 80032CF4 0002EB34 EC 21 00 24 */ fdivs f1, f1, f0
/* 80032CF8 0002EB38 48 00 2B 19 */ bl GXSetDispCopyYScale
/* 80032CFC 0002EB3C 38 60 00 03 */ li r3, 0x3
/* 80032D00 0002EB40 48 00 2A E1 */ bl GXSetCopyClamp
/* 80032D04 0002EB44 88 7B 00 19 */ lbz r3, 0x19(r27)
/* 80032D08 0002EB48 38 9B 00 1A */ addi r4, r27, 0x1a
/* 80032D0C 0002EB4C 38 DB 00 32 */ addi r6, r27, 0x32
/* 80032D10 0002EB50 38 A0 00 01 */ li r5, 0x1
/* 80032D14 0002EB54 48 00 2C 4D */ bl GXSetCopyFilter
/* 80032D18 0002EB58 38 60 00 00 */ li r3, 0x0
/* 80032D1C 0002EB5C 48 00 2E 35 */ bl GXSetDispCopyGamma
/* 80032D20 0002EB60 38 60 00 00 */ li r3, 0x0
/* 80032D24 0002EB64 48 00 2A 9D */ bl GXSetDispCopyFrame2Field
/* 80032D28 0002EB68 48 00 30 E9 */ bl GXClearBoundingBox
/* 80032D2C 0002EB6C 38 60 00 01 */ li r3, 0x1
/* 80032D30 0002EB70 48 00 20 21 */ bl GXPokeColorUpdate
/* 80032D34 0002EB74 38 60 00 01 */ li r3, 0x1
/* 80032D38 0002EB78 48 00 1F 99 */ bl GXPokeAlphaUpdate
/* 80032D3C 0002EB7C 38 60 00 00 */ li r3, 0x0
/* 80032D40 0002EB80 48 00 20 51 */ bl GXPokeDither
/* 80032D44 0002EB84 38 60 00 00 */ li r3, 0x0
/* 80032D48 0002EB88 38 80 00 00 */ li r4, 0x0
/* 80032D4C 0002EB8C 38 A0 00 01 */ li r5, 0x1
/* 80032D50 0002EB90 38 C0 00 0F */ li r6, 0xf
/* 80032D54 0002EB94 48 00 1F 9D */ bl GXPokeBlendMode
/* 80032D58 0002EB98 38 60 00 07 */ li r3, 0x7
/* 80032D5C 0002EB9C 38 80 00 00 */ li r4, 0x0
/* 80032D60 0002EBA0 48 00 1F 41 */ bl GXPokeAlphaMode
/* 80032D64 0002EBA4 38 60 00 01 */ li r3, 0x1
/* 80032D68 0002EBA8 48 00 1F 49 */ bl GXPokeAlphaRead
/* 80032D6C 0002EBAC 38 60 00 00 */ li r3, 0x0
/* 80032D70 0002EBB0 38 80 00 00 */ li r4, 0x0
/* 80032D74 0002EBB4 48 00 1F FD */ bl GXPokeDstAlpha
/* 80032D78 0002EBB8 38 60 00 01 */ li r3, 0x1
/* 80032D7C 0002EBBC 38 80 00 07 */ li r4, 0x7
/* 80032D80 0002EBC0 38 A0 00 01 */ li r5, 0x1
/* 80032D84 0002EBC4 48 00 20 2D */ bl GXPokeZMode
/* 80032D88 0002EBC8 38 60 00 23 */ li r3, 0x23
/* 80032D8C 0002EBCC 38 80 00 16 */ li r4, 0x16
/* 80032D90 0002EBD0 48 00 63 31 */ bl GXSetGPMetric
/* 80032D94 0002EBD4 48 00 6B 4D */ bl GXClearGPMetric
/* 80032D98 0002EBD8 39 61 00 A0 */ addi r11, r1, 0xa0
/* 80032D9C 0002EBDC 4B FD 45 ED */ bl lbl_80007388
/* 80032DA0 0002EBE0 80 01 00 A4 */ lwz r0, 0xa4(r1)
/* 80032DA4 0002EBE4 7C 08 03 A6 */ mtlr r0
/* 80032DA8 0002EBE8 38 21 00 A0 */ addi r1, r1, 0xa0
/* 80032DAC 0002EBEC 4E 80 00 20 */ blr
.include "macros.inc"
.section .data, "wa" # 0x80421040 - 0x80496700 ; 0x000756C0
.global "@1_80430800"
"@1_80430800":
.4byte 0x3C3C2052
.4byte 0x564C5F53
.4byte 0x444B202D
.4byte 0x20475820
.4byte 0x0972656C
.4byte 0x65617365
.4byte 0x20627569
.4byte 0x6C643A20
.4byte 0x41756720
.4byte 0x32332032
.4byte 0x30313020
.4byte 0x31373A33
.4byte 0x323A3530
.4byte 0x20283078
.4byte 0x34333032
.4byte 0x5F313435
.4byte 0x29203E3E
.4byte 0
.4byte 0
.4byte 0
.4byte 0
.4byte 0
.4byte 0
.4byte 0
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
.4byte 0x00000009
.4byte 0x00000001
.4byte 0x00000004
.4byte 0
.4byte 0x0000000A
.4byte 0
.4byte 0x00000004
.4byte 0
.4byte 0x0000000B
.4byte 0x00000001
.4byte 0x00000005
.4byte 0
.4byte 0x0000000C
.4byte 0x00000001
.4byte 0x00000005
.4byte 0
.4byte 0x0000000D
.4byte 0x00000001
.4byte 0x00000004
.4byte 0
.4byte 0x0000000E
.4byte 0x00000001
.4byte 0x00000004
.4byte 0
.4byte 0x0000000F
.4byte 0x00000001
.4byte 0x00000004
.4byte 0
.4byte 0x00000010
.4byte 0x00000001
.4byte 0x00000004
.4byte 0
.4byte 0x00000011
.4byte 0x00000001
.4byte 0x00000004
.4byte 0
.4byte 0x00000012
.4byte 0x00000001
.4byte 0x00000004
.4byte 0
.4byte 0x00000013
.4byte 0x00000001
.4byte 0x00000004
.4byte 0
.4byte 0x00000014
.4byte 0x00000001
.4byte 0x00000004
.4byte 0
.4byte 0x000000FF
.4byte 0
.4byte 0
.4byte 0
.4byte 0x3F800000
.4byte 0
.4byte 0x3F800000
.4byte 0
.4byte 0xBF800000
.4byte 0xC0000000
.4byte 0
.4byte 0
.global GXTexRegionAddrTable
GXTexRegionAddrTable:
.4byte 0
.4byte 0x00010000
.4byte 0x00020000
.4byte 0x00030000
.4byte 0x00040000
.4byte 0x00050000
.4byte 0x00060000
.4byte 0x00070000
.4byte 0x00008000
.4byte 0x00018000
.4byte 0x00028000
.4byte 0x00038000
.4byte 0x00048000
.4byte 0x00058000
.4byte 0x00068000
.4byte 0x00078000
.4byte 0
.4byte 0x00090000
.4byte 0x00020000
.4byte 0x000B0000
.4byte 0x00040000
.4byte 0x00098000
.4byte 0x00060000
.4byte 0x000B8000
.4byte 0x00080000
.4byte 0x00010000
.4byte 0x000A0000
.4byte 0x00030000
.4byte 0x00088000
.4byte 0x00050000
.4byte 0x000A8000
.4byte 0x00070000
.4byte 0
.4byte 0x00090000
.4byte 0x00020000
.4byte 0x000B0000
.4byte 0x00040000
.4byte 0x00090000
.4byte 0x00060000
.4byte 0x000B0000
.4byte 0x00080000
.4byte 0x00010000
.4byte 0x000A0000
.4byte 0x00030000
.4byte 0x00080000
.4byte 0x00050000
.4byte 0x000A0000
.4byte 0x00070000
.global GXShutdownFuncInfo
GXShutdownFuncInfo:
.4byte __GXShutdown
.4byte 0x0000007F
.4byte 0
.4byte 0
.include "macros.inc"
.section .bss, "", @nobits # 0x80496700 - 0x80556420 ; 0x000BFD20
.global FifoObj
FifoObj:
.skip 0x80
.global gxData
gxData:
.skip 0x600
.include "macros.inc"
.section .sdata, "wa" # 0x80556420 - 0x8055C6E0 ; 0x000062C0
.global __GXVersion
__GXVersion:
.4byte "@1_80430800"
.4byte 0
.include "macros.inc"
.section .sbss, "", @nobits # 0x8055C6E0 - 0x8055DF80 ; 0x000018A0
.global __piReg
__piReg:
.skip 0x4
.global __cpReg
__cpReg:
.skip 0x4
.global __peReg
__peReg:
.skip 0x4
.global __memReg
__memReg:
.skip 0x4
.global "@LOCAL@__GXShutdown__FiUl@peCount"
"@LOCAL@__GXShutdown__FiUl@peCount":
.skip 0x8
.global "@LOCAL@__GXShutdown__FiUl@time@0"
"@LOCAL@__GXShutdown__FiUl@time@0":
.skip 0x4
.global lbl_8055C9EC
lbl_8055C9EC:
.skip 0x4
.global "@LOCAL@__GXShutdown__FiUl@calledOnce@1"
"@LOCAL@__GXShutdown__FiUl@calledOnce@1":
.skip 0x4
.global "@LOCAL@GXInit__FPvUl@shutdownFuncRegistered"
"@LOCAL@GXInit__FPvUl@shutdownFuncRegistered":
.skip 0x4
.include "macros.inc"
.section .sdata2, "wa" # 0x8055DF80 - 0x805643C0 ; 0x00006440
.global __GXData
__GXData:
.4byte gxData
.global "@2712"
"@2712":
.4byte 0x4B800000
.global "@2713"
"@2713":
.4byte 0
.global "@2366"
"@2366":
.4byte 0x404040FF
.global "@2370"
"@2370":
.4byte 0xFFFFFFFF
.global "@2746_8055E59C"
"@2746_8055E59C":
.4byte 0x3F800000
.global "@2747_8055E5A0"
"@2747_8055E5A0":
.4byte 0x3DCCCCCD
.4byte 0
.global "@2750_8055E5A8"
"@2750_8055E5A8":
.4byte 0x43300000
.4byte 0