Begin CGX/CCubeMaterial; add dolphin headers from aurora

Former-commit-id: b28e24862b
This commit is contained in:
Luke Street 2022-08-30 00:05:16 -04:00
parent 00c77e6195
commit 6768dfc9b4
67 changed files with 2363 additions and 314 deletions

View File

@ -111,7 +111,8 @@ ifeq ($(VERBOSE),0)
# this set of LDFLAGS generates no warnings.
LDFLAGS := $(MAPGEN) -fp fmadd -nodefaults -w off
endif
CFLAGS_BASE = -proc gekko -nodefaults -Cpp_exceptions off -RTTI off -fp hard -fp_contract on -O4,p -maxerrors 1 -enum int -inline auto -str reuse -nosyspath -MMD $(INCLUDES)
DEFINES = -DPRIME1 -DVERSION=$(VERSION_NUM)
CFLAGS_BASE = -proc gekko -nodefaults -Cpp_exceptions off -RTTI off -fp hard -fp_contract on -O4,p -maxerrors 1 -enum int -inline auto -str reuse -nosyspath -MMD $(DEFINES) $(INCLUDES)
CFLAGS = $(CFLAGS_BASE) -use_lmw_stmw on -str reuse,pool,readonly -gccinc -inline deferred,noauto -common on
CFLAGS_RUNTIME = $(CFLAGS_BASE) -use_lmw_stmw on -str reuse,pool,readonly -gccinc -inline deferred,auto
CFLAGS_MUSYX = $(CFLAGS_BASE) -str reuse,pool,readonly

View File

@ -717,10 +717,10 @@ lbl_80345FFC:
/* 80346004 00342F64 92 A1 00 38 */ stw r21, 0x38(r1)
/* 80346008 00342F68 41 82 00 7C */ beq lbl_80346084
/* 8034600C 00342F6C 82 C1 00 3C */ lwz r22, 0x3c(r1)
/* 80346010 00342F70 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346010 00342F70 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346014 00342F74 3A 40 00 00 */ li r18, 0
/* 80346018 00342F78 80 16 00 00 */ lwz r0, 0(r22)
/* 8034601C 00342F7C 3A 83 53 EC */ addi r20, r3, lbl_805A53EC@l
/* 8034601C 00342F7C 3A 83 53 EC */ addi r20, r3, sGXState__3CGX@l
/* 80346020 00342F80 90 01 00 38 */ stw r0, 0x38(r1)
/* 80346024 00342F84 48 00 00 40 */ b lbl_80346064
lbl_80346028:
@ -756,8 +756,8 @@ lbl_80346084:
/* 80346090 00342FF0 83 64 00 00 */ lwz r27, 0(r4)
/* 80346094 00342FF4 54 00 FF FF */ rlwinm. r0, r0, 0x1f, 0x1f, 0x1f
/* 80346098 00342FF8 41 82 00 40 */ beq lbl_803460D8
/* 8034609C 00342FFC 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803460A0 00343000 3A 43 53 EC */ addi r18, r3, lbl_805A53EC@l
/* 8034609C 00342FFC 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803460A0 00343000 3A 43 53 EC */ addi r18, r3, sGXState__3CGX@l
/* 803460A4 00343004 A0 12 00 56 */ lhz r0, 0x56(r18)
/* 803460A8 00343008 28 00 00 25 */ cmplwi r0, 0x25
/* 803460AC 0034300C 41 82 00 3C */ beq lbl_803460E8
@ -905,11 +905,11 @@ lbl_8034629C:
/* 803462B8 00343218 41 81 00 08 */ bgt lbl_803462C0
/* 803462BC 0034321C 7E BC AB 78 */ mr r28, r21
lbl_803462C0:
/* 803462C0 00343220 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803462C0 00343220 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803462C4 00343224 82 C1 00 10 */ lwz r22, 0x10(r1)
/* 803462C8 00343228 3A 80 00 00 */ li r20, 0
/* 803462CC 0034322C 3A 60 00 00 */ li r19, 0
/* 803462D0 00343230 3A 43 53 EC */ addi r18, r3, lbl_805A53EC@l
/* 803462D0 00343230 3A 43 53 EC */ addi r18, r3, sGXState__3CGX@l
/* 803462D4 00343234 48 00 00 50 */ b lbl_80346324
lbl_803462D8:
/* 803462D8 00343238 7C 72 9A 14 */ add r3, r18, r19
@ -942,11 +942,11 @@ lbl_80346324:
/* 8034633C 0034329C 90 01 00 10 */ stw r0, 0x10(r1)
/* 80346340 003432A0 48 00 00 84 */ b lbl_803463C4
lbl_80346344:
/* 80346344 003432A4 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346344 003432A4 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346348 003432A8 83 93 00 00 */ lwz r28, 0(r19)
/* 8034634C 003432AC 3A 80 00 00 */ li r20, 0
/* 80346350 003432B0 3A A0 00 00 */ li r21, 0
/* 80346354 003432B4 3A 43 53 EC */ addi r18, r3, lbl_805A53EC@l
/* 80346354 003432B4 3A 43 53 EC */ addi r18, r3, sGXState__3CGX@l
/* 80346358 003432B8 48 00 00 50 */ b lbl_803463A8
lbl_8034635C:
/* 8034635C 003432BC 7C 72 AA 14 */ add r3, r18, r21
@ -1077,18 +1077,18 @@ lbl_80346510:
/* 80346524 00343484 48 00 0D 01 */ bl DoModelShadow__FUiUi
/* 80346528 00343488 3B 9C 00 01 */ addi r28, r28, 1
lbl_8034652C:
/* 8034652C 0034348C 3C 80 80 5A */ lis r4, lbl_805A53EC@ha
/* 8034652C 0034348C 3C 80 80 5A */ lis r4, sGXState__3CGX@ha
/* 80346530 00343490 57 A3 06 3E */ clrlwi r3, r29, 0x18
/* 80346534 00343494 38 84 53 EC */ addi r4, r4, lbl_805A53EC@l
/* 80346534 00343494 38 84 53 EC */ addi r4, r4, sGXState__3CGX@l
/* 80346538 00343498 88 04 00 51 */ lbz r0, 0x51(r4)
/* 8034653C 0034349C 7C 00 18 40 */ cmplw r0, r3
/* 80346540 003434A0 41 82 00 0C */ beq lbl_8034654C
/* 80346544 003434A4 9B A4 00 51 */ stb r29, 0x51(r4)
/* 80346548 003434A8 48 03 4D 71 */ bl GXSetNumIndStages
lbl_8034654C:
/* 8034654C 003434AC 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 8034654C 003434AC 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346550 003434B0 80 A1 00 34 */ lwz r5, 0x34(r1)
/* 80346554 003434B4 38 83 53 EC */ addi r4, r3, lbl_805A53EC@l
/* 80346554 003434B4 38 83 53 EC */ addi r4, r3, sGXState__3CGX@l
/* 80346558 003434B8 88 04 00 50 */ lbz r0, 0x50(r4)
/* 8034655C 003434BC 54 A3 06 3E */ clrlwi r3, r5, 0x18
/* 80346560 003434C0 7C 00 18 40 */ cmplw r0, r3
@ -1096,18 +1096,18 @@ lbl_8034654C:
/* 80346568 003434C8 98 64 00 50 */ stb r3, 0x50(r4)
/* 8034656C 003434CC 48 03 56 61 */ bl GXSetNumTevStages
lbl_80346570:
/* 80346570 003434D0 3C 80 80 5A */ lis r4, lbl_805A53EC@ha
/* 80346570 003434D0 3C 80 80 5A */ lis r4, sGXState__3CGX@ha
/* 80346574 003434D4 57 83 06 3E */ clrlwi r3, r28, 0x18
/* 80346578 003434D8 38 84 53 EC */ addi r4, r4, lbl_805A53EC@l
/* 80346578 003434D8 38 84 53 EC */ addi r4, r4, sGXState__3CGX@l
/* 8034657C 003434DC 88 04 00 4F */ lbz r0, 0x4f(r4)
/* 80346580 003434E0 7C 03 00 40 */ cmplw r3, r0
/* 80346584 003434E4 41 82 00 0C */ beq lbl_80346590
/* 80346588 003434E8 9B 84 00 4F */ stb r28, 0x4f(r4)
/* 8034658C 003434EC 48 03 1C D9 */ bl GXSetNumTexGens
lbl_80346590:
/* 80346590 003434F0 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346590 003434F0 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346594 003434F4 57 06 06 3E */ clrlwi r6, r24, 0x18
/* 80346598 003434F8 38 A3 53 EC */ addi r5, r3, lbl_805A53EC@l
/* 80346598 003434F8 38 A3 53 EC */ addi r5, r3, sGXState__3CGX@l
/* 8034659C 003434FC 88 65 00 4D */ lbz r3, 0x4d(r5)
/* 803465A0 00343500 88 05 00 4C */ lbz r0, 0x4c(r5)
/* 803465A4 00343504 7C 86 18 50 */ subf r4, r6, r3
@ -1127,9 +1127,9 @@ lbl_803465BC:
DoPassthru__FUi:
/* 803465D0 00343530 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 803465D4 00343534 7C 08 02 A6 */ mflr r0
/* 803465D8 00343538 3C 80 80 5A */ lis r4, lbl_805A53EC@ha
/* 803465D8 00343538 3C 80 80 5A */ lis r4, sGXState__3CGX@ha
/* 803465DC 0034353C 90 01 00 14 */ stw r0, 0x14(r1)
/* 803465E0 00343540 38 04 53 EC */ addi r0, r4, lbl_805A53EC@l
/* 803465E0 00343540 38 04 53 EC */ addi r0, r4, sGXState__3CGX@l
/* 803465E4 00343544 93 E1 00 0C */ stw r31, 0xc(r1)
/* 803465E8 00343548 93 C1 00 08 */ stw r30, 8(r1)
/* 803465EC 0034354C 7C 7E 1B 78 */ mr r30, r3
@ -1227,10 +1227,10 @@ lbl_80346710:
/* 8034672C 0034368C 38 60 00 01 */ li r3, 1
lbl_80346730:
/* 80346730 00343690 54 60 0D FC */ rlwinm r0, r3, 1, 0x17, 0x1e
/* 80346734 00343694 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346734 00343694 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346738 00343698 60 00 00 01 */ ori r0, r0, 1
/* 8034673C 0034369C 7C A5 03 78 */ or r5, r5, r0
/* 80346740 003436A0 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 80346740 003436A0 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80346744 003436A4 88 03 00 52 */ lbz r0, 0x52(r3)
/* 80346748 003436A8 54 A5 06 3E */ clrlwi r5, r5, 0x18
/* 8034674C 003436AC 7C 05 00 40 */ cmplw r5, r0
@ -1267,9 +1267,9 @@ HandleColorChannels__FUiUi:
/* 803467B4 00343714 41 82 01 5C */ beq lbl_80346910
/* 803467B8 00343718 28 1E 00 00 */ cmplwi r30, 0
/* 803467BC 0034371C 41 82 01 4C */ beq lbl_80346908
/* 803467C0 00343720 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803467C0 00343720 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803467C4 00343724 80 A2 CB B8 */ lwz r5, lbl_805AE8D8@sda21(r2)
/* 803467C8 00343728 3B A3 53 EC */ addi r29, r3, lbl_805A53EC@l
/* 803467C8 00343728 3B A3 53 EC */ addi r29, r3, sGXState__3CGX@l
/* 803467CC 0034372C 80 1D 00 3C */ lwz r0, 0x3c(r29)
/* 803467D0 00343730 7C 05 00 40 */ cmplw r5, r0
/* 803467D4 00343734 41 82 00 18 */ beq lbl_803467EC
@ -1290,8 +1290,8 @@ lbl_803467EC:
/* 8034680C 0034376C 48 03 32 31 */ bl GXSetChanMatColor
lbl_80346810:
/* 80346810 00343770 89 2D A9 A1 */ lbz r9, sChannel1EnableLightMask@sda21(r13)
/* 80346814 00343774 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346818 00343778 38 E3 53 EC */ addi r7, r3, lbl_805A53EC@l
/* 80346814 00343774 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346818 00343778 38 E3 53 EC */ addi r7, r3, sGXState__3CGX@l
/* 8034681C 0034377C 38 00 00 01 */ li r0, 1
/* 80346820 00343780 2C 09 00 00 */ cmpwi r9, 0
/* 80346824 00343784 A1 07 00 32 */ lhz r8, 0x32(r7)
@ -1302,10 +1302,10 @@ lbl_80346830:
/* 80346834 00343794 88 6D A8 16 */ lbz r3, mLightActive__9CGraphics@sda21(r13)
/* 80346838 00343798 88 0D A9 A0 */ lbz r0, sChannel0DisableLightMask@sda21(r13)
/* 8034683C 0034379C 51 25 1D 78 */ rlwimi r5, r9, 3, 0x15, 0x1c
/* 80346840 003437A0 3C 80 80 5A */ lis r4, lbl_805A53EC@ha
/* 80346840 003437A0 3C 80 80 5A */ lis r4, sGXState__3CGX@ha
/* 80346844 003437A4 60 A5 30 00 */ ori r5, r5, 0x3000
/* 80346848 003437A8 7C 60 00 78 */ andc r0, r3, r0
/* 8034684C 003437AC 38 C4 53 EC */ addi r6, r4, lbl_805A53EC@l
/* 8034684C 003437AC 38 C4 53 EC */ addi r6, r4, sGXState__3CGX@l
/* 80346850 003437B0 B0 A7 00 36 */ sth r5, 0x36(r7)
/* 80346854 003437B4 54 09 06 3F */ clrlwi. r9, r0, 0x18
/* 80346858 003437B8 7C 65 40 50 */ subf r3, r5, r8
@ -1329,9 +1329,9 @@ lbl_80346884:
/* 8034689C 003437FC B0 A6 00 34 */ sth r5, 0x34(r6)
/* 803468A0 00343800 98 06 00 4C */ stb r0, 0x4c(r6)
/* 803468A4 00343804 41 82 00 34 */ beq lbl_803468D8
/* 803468A8 00343808 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803468A8 00343808 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803468AC 0034380C 80 A2 CB BC */ lwz r5, lbl_805AE8DC@sda21(r2)
/* 803468B0 00343810 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 803468B0 00343810 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 803468B4 00343814 80 03 00 40 */ lwz r0, 0x40(r3)
/* 803468B8 00343818 7C 05 00 40 */ cmplw r5, r0
/* 803468BC 0034381C 41 82 00 4C */ beq lbl_80346908
@ -1342,8 +1342,8 @@ lbl_80346884:
/* 803468D0 00343830 48 03 31 6D */ bl GXSetChanMatColor
/* 803468D4 00343834 48 00 00 34 */ b lbl_80346908
lbl_803468D8:
/* 803468D8 00343838 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803468DC 0034383C 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 803468D8 00343838 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803468DC 0034383C 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 803468E0 00343840 80 A3 00 38 */ lwz r5, 0x38(r3)
/* 803468E4 00343844 80 03 00 40 */ lwz r0, 0x40(r3)
/* 803468E8 00343848 90 A1 00 2C */ stw r5, 0x2c(r1)
@ -1360,9 +1360,9 @@ lbl_80346908:
lbl_80346910:
/* 80346910 00343870 28 1E 00 02 */ cmplwi r30, 2
/* 80346914 00343874 40 82 00 58 */ bne lbl_8034696C
/* 80346918 00343878 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346918 00343878 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 8034691C 0034387C 80 A2 CB B8 */ lwz r5, lbl_805AE8D8@sda21(r2)
/* 80346920 00343880 3B A3 53 EC */ addi r29, r3, lbl_805A53EC@l
/* 80346920 00343880 3B A3 53 EC */ addi r29, r3, sGXState__3CGX@l
/* 80346924 00343884 80 1D 00 3C */ lwz r0, 0x3c(r29)
/* 80346928 00343888 7C 05 00 40 */ cmplw r5, r0
/* 8034692C 0034388C 41 82 00 18 */ beq lbl_80346944
@ -1383,9 +1383,9 @@ lbl_80346944:
/* 80346964 003438C4 48 03 30 D9 */ bl GXSetChanMatColor
/* 80346968 003438C8 48 00 00 30 */ b lbl_80346998
lbl_8034696C:
/* 8034696C 003438CC 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 8034696C 003438CC 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346970 003438D0 38 A0 40 00 */ li r5, 0x4000
/* 80346974 003438D4 38 C3 53 EC */ addi r6, r3, lbl_805A53EC@l
/* 80346974 003438D4 38 C3 53 EC */ addi r6, r3, sGXState__3CGX@l
/* 80346978 003438D8 A0 66 00 32 */ lhz r3, 0x32(r6)
/* 8034697C 003438DC 88 06 00 4C */ lbz r0, 0x4c(r6)
/* 80346980 003438E0 38 83 C0 00 */ addi r4, r3, -16384
@ -1398,8 +1398,8 @@ lbl_80346998:
/* 80346998 003438F8 28 1E 00 01 */ cmplwi r30, 1
/* 8034699C 003438FC 41 80 00 A8 */ blt lbl_80346A44
/* 803469A0 00343900 88 8D A8 16 */ lbz r4, mLightActive__9CGraphics@sda21(r13)
/* 803469A4 00343904 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803469A8 00343908 39 03 53 EC */ addi r8, r3, lbl_805A53EC@l
/* 803469A4 00343904 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803469A8 00343908 39 03 53 EC */ addi r8, r3, sGXState__3CGX@l
/* 803469AC 0034390C 57 E7 00 3C */ rlwinm r7, r31, 0, 0, 0x1e
/* 803469B0 00343910 2C 04 00 00 */ cmpwi r4, 0
/* 803469B4 00343914 A1 28 00 30 */ lhz r9, 0x30(r8)
@ -1407,9 +1407,9 @@ lbl_80346998:
/* 803469BC 0034391C 54 80 1D 78 */ rlwinm r0, r4, 3, 0x15, 0x1c
/* 803469C0 00343920 7F E7 03 78 */ or r7, r31, r0
lbl_803469C4:
/* 803469C4 00343924 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803469C4 00343924 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803469C8 00343928 54 80 06 3F */ clrlwi. r0, r4, 0x18
/* 803469CC 0034392C 38 C3 53 EC */ addi r6, r3, lbl_805A53EC@l
/* 803469CC 0034392C 38 C3 53 EC */ addi r6, r3, sGXState__3CGX@l
/* 803469D0 00343930 7C A7 48 50 */ subf r5, r7, r9
/* 803469D4 00343934 7C 89 38 50 */ subf r4, r9, r7
/* 803469D8 00343938 88 66 00 4C */ lbz r3, 0x4c(r6)
@ -1441,9 +1441,9 @@ lbl_80346A18:
/* 80346A3C 0034399C 48 03 30 01 */ bl GXSetChanMatColor
/* 80346A40 003439A0 48 00 00 30 */ b lbl_80346A70
lbl_80346A44:
/* 80346A44 003439A4 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346A44 003439A4 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346A48 003439A8 38 A0 40 00 */ li r5, 0x4000
/* 80346A4C 003439AC 38 C3 53 EC */ addi r6, r3, lbl_805A53EC@l
/* 80346A4C 003439AC 38 C3 53 EC */ addi r6, r3, sGXState__3CGX@l
/* 80346A50 003439B0 A0 66 00 30 */ lhz r3, 0x30(r6)
/* 80346A54 003439B4 88 06 00 4C */ lbz r0, 0x4c(r6)
/* 80346A58 003439B8 38 83 C0 00 */ addi r4, r3, -16384
@ -1478,8 +1478,8 @@ SetCurrentBlack__13CCubeMaterialCFv:
/* 80346AB8 00343A18 54 00 06 B7 */ rlwinm. r0, r0, 0, 0x1a, 0x1b
/* 80346ABC 00343A1C 83 C3 00 08 */ lwz r30, 8(r3)
/* 80346AC0 00343A20 41 82 00 40 */ beq lbl_80346B00
/* 80346AC4 00343A24 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346AC8 00343A28 3B E3 53 EC */ addi r31, r3, lbl_805A53EC@l
/* 80346AC4 00343A24 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346AC8 00343A28 3B E3 53 EC */ addi r31, r3, sGXState__3CGX@l
/* 80346ACC 00343A2C A0 1F 00 56 */ lhz r0, 0x56(r31)
/* 80346AD0 00343A30 28 00 00 21 */ cmplwi r0, 0x21
/* 80346AD4 00343A34 41 82 00 64 */ beq lbl_80346B38
@ -1494,8 +1494,8 @@ SetCurrentBlack__13CCubeMaterialCFv:
/* 80346AF8 00343A58 48 03 53 B5 */ bl GXSetBlendMode
/* 80346AFC 00343A5C 48 00 00 3C */ b lbl_80346B38
lbl_80346B00:
/* 80346B00 00343A60 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346B04 00343A64 3B E3 53 EC */ addi r31, r3, lbl_805A53EC@l
/* 80346B00 00343A60 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346B04 00343A64 3B E3 53 EC */ addi r31, r3, sGXState__3CGX@l
/* 80346B08 00343A68 A0 1F 00 56 */ lhz r0, 0x56(r31)
/* 80346B0C 00343A6C 28 00 00 05 */ cmplwi r0, 5
/* 80346B10 00343A70 41 82 00 28 */ beq lbl_80346B38
@ -1517,9 +1517,9 @@ lbl_80346B38:
/* 80346B4C 00343AAC 41 82 00 08 */ beq lbl_80346B54
/* 80346B50 00343AB0 38 E0 00 0C */ li r7, 0xc
lbl_80346B54:
/* 80346B54 00343AB4 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346B54 00343AB4 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346B58 00343AB8 54 E4 7B 20 */ rlwinm r4, r7, 0xf, 0xc, 0x10
/* 80346B5C 00343ABC 3B E3 53 EC */ addi r31, r3, lbl_805A53EC@l
/* 80346B5C 00343ABC 3B E3 53 EC */ addi r31, r3, sGXState__3CGX@l
/* 80346B60 00343AC0 80 1F 00 68 */ lwz r0, 0x68(r31)
/* 80346B64 00343AC4 60 83 3D EF */ ori r3, r4, 0x3def
/* 80346B68 00343AC8 7C 03 00 40 */ cmplw r3, r0
@ -1558,8 +1558,8 @@ lbl_80346BC8:
/* 80346BE0 00343B40 38 80 00 00 */ li r4, 0
/* 80346BE4 00343B44 48 03 4B E1 */ bl GXSetTevKAlphaSel
lbl_80346BE8:
/* 80346BE8 00343B48 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346BEC 00343B4C 38 A3 53 EC */ addi r5, r3, lbl_805A53EC@l
/* 80346BE8 00343B48 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346BEC 00343B4C 38 A3 53 EC */ addi r5, r3, sGXState__3CGX@l
/* 80346BF0 00343B50 80 65 02 28 */ lwz r3, 0x228(r5)
/* 80346BF4 00343B54 3C 03 FF E2 */ addis r0, r3, 0xffe2
/* 80346BF8 00343B58 28 00 94 01 */ cmplwi r0, 0x9401
@ -1590,8 +1590,8 @@ lbl_80346C28:
/* 80346C58 00343BB8 38 C0 00 FF */ li r6, 0xff
/* 80346C5C 00343BBC 48 03 4D 99 */ bl GXSetTevOrder
lbl_80346C60:
/* 80346C60 00343BC0 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346C64 00343BC4 38 83 53 EC */ addi r4, r3, lbl_805A53EC@l
/* 80346C60 00343BC0 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346C64 00343BC4 38 83 53 EC */ addi r4, r3, sGXState__3CGX@l
/* 80346C68 00343BC8 88 04 00 50 */ lbz r0, 0x50(r4)
/* 80346C6C 00343BCC 28 00 00 01 */ cmplwi r0, 1
/* 80346C70 00343BD0 41 82 00 14 */ beq lbl_80346C84
@ -1600,9 +1600,9 @@ lbl_80346C60:
/* 80346C7C 00343BDC 98 04 00 50 */ stb r0, 0x50(r4)
/* 80346C80 00343BE0 48 03 4F 4D */ bl GXSetNumTevStages
lbl_80346C84:
/* 80346C84 00343BE4 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346C84 00343BE4 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346C88 00343BE8 38 E0 00 00 */ li r7, 0
/* 80346C8C 00343BEC 38 C3 53 EC */ addi r6, r3, lbl_805A53EC@l
/* 80346C8C 00343BEC 38 C3 53 EC */ addi r6, r3, sGXState__3CGX@l
/* 80346C90 00343BF0 88 A6 00 4D */ lbz r5, 0x4d(r6)
/* 80346C94 00343BF4 88 06 00 4F */ lbz r0, 0x4f(r6)
/* 80346C98 00343BF8 7C 85 00 D0 */ neg r4, r5
@ -1618,8 +1618,8 @@ lbl_80346C84:
/* 80346CC0 00343C20 98 06 00 4F */ stb r0, 0x4f(r6)
/* 80346CC4 00343C24 48 03 15 A1 */ bl GXSetNumTexGens
lbl_80346CC8:
/* 80346CC8 00343C28 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346CCC 00343C2C 38 83 53 EC */ addi r4, r3, lbl_805A53EC@l
/* 80346CC8 00343C28 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346CCC 00343C2C 38 83 53 EC */ addi r4, r3, sGXState__3CGX@l
/* 80346CD0 00343C30 88 04 00 51 */ lbz r0, 0x51(r4)
/* 80346CD4 00343C34 28 00 00 00 */ cmplwi r0, 0
/* 80346CD8 00343C38 41 82 00 14 */ beq lbl_80346CEC
@ -1643,8 +1643,8 @@ EnsureTevsDirect__13CCubeMaterialFv:
/* 80346D10 00343C70 80 0D 9D 74 */ lwz r0, lbl_805A8934@sda21(r13)
/* 80346D14 00343C74 2C 00 FF FF */ cmpwi r0, -1
/* 80346D18 00343C78 41 82 00 60 */ beq lbl_80346D78
/* 80346D1C 00343C7C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346D20 00343C80 38 83 53 EC */ addi r4, r3, lbl_805A53EC@l
/* 80346D1C 00343C7C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346D20 00343C80 38 83 53 EC */ addi r4, r3, sGXState__3CGX@l
/* 80346D24 00343C84 88 04 00 51 */ lbz r0, 0x51(r4)
/* 80346D28 00343C88 28 00 00 00 */ cmplwi r0, 0
/* 80346D2C 00343C8C 41 82 00 14 */ beq lbl_80346D40
@ -1654,8 +1654,8 @@ EnsureTevsDirect__13CCubeMaterialFv:
/* 80346D3C 00343C9C 48 03 45 7D */ bl GXSetNumIndStages
lbl_80346D40:
/* 80346D40 00343CA0 80 6D 9D 74 */ lwz r3, lbl_805A8934@sda21(r13)
/* 80346D44 00343CA4 3C 80 80 5A */ lis r4, lbl_805A53EC@ha
/* 80346D48 00343CA8 38 04 53 EC */ addi r0, r4, lbl_805A53EC@l
/* 80346D44 00343CA4 3C 80 80 5A */ lis r4, sGXState__3CGX@ha
/* 80346D48 00343CA8 38 04 53 EC */ addi r0, r4, sGXState__3CGX@l
/* 80346D4C 00343CAC 1C 83 00 1C */ mulli r4, r3, 0x1c
/* 80346D50 00343CB0 7C 80 22 14 */ add r4, r0, r4
/* 80346D54 00343CB4 38 84 00 68 */ addi r4, r4, 0x68
@ -1692,9 +1692,9 @@ HandleReflection__13CCubeMaterialFb11_GXTexMapIDiUiUiUiUiRUiRUi:
/* 80346DBC 00343D1C 3B E0 00 00 */ li r31, 0
/* 80346DC0 00343D20 41 82 01 1C */ beq lbl_80346EDC
/* 80346DC4 00343D24 1C 9D 00 1C */ mulli r4, r29, 0x1c
/* 80346DC8 00343D28 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346DC8 00343D28 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346DCC 00343D2C 3B C0 00 06 */ li r30, 6
/* 80346DD0 00343D30 38 03 53 EC */ addi r0, r3, lbl_805A53EC@l
/* 80346DD0 00343D30 38 03 53 EC */ addi r0, r3, sGXState__3CGX@l
/* 80346DD4 00343D34 7C 60 22 14 */ add r3, r0, r4
/* 80346DD8 00343D38 3B E3 00 68 */ addi r31, r3, 0x68
/* 80346DDC 00343D3C 80 63 00 68 */ lwz r3, 0x68(r3)
@ -1781,9 +1781,9 @@ lbl_80346EE0:
/* 80346F04 00343E64 98 81 00 0E */ stb r4, 0xe(r1)
/* 80346F08 00343E68 98 81 00 0F */ stb r4, 0xf(r1)
/* 80346F0C 00343E6C 48 01 C4 91 */ bl Set__6CColorFffff
/* 80346F10 00343E70 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346F10 00343E70 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346F14 00343E74 57 64 10 3A */ slwi r4, r27, 2
/* 80346F18 00343E78 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 80346F18 00343E78 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80346F1C 00343E7C 80 01 00 0C */ lwz r0, 0xc(r1)
/* 80346F20 00343E80 7C 63 22 14 */ add r3, r3, r4
/* 80346F24 00343E84 38 83 00 58 */ addi r4, r3, 0x58
@ -1797,9 +1797,9 @@ lbl_80346EE0:
/* 80346F44 00343EA4 48 03 47 A1 */ bl GXSetTevKColor
lbl_80346F48:
/* 80346F48 00343EA8 1C BD 00 1C */ mulli r5, r29, 0x1c
/* 80346F4C 00343EAC 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346F4C 00343EAC 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346F50 00343EB0 38 9B 00 0C */ addi r4, r27, 0xc
/* 80346F54 00343EB4 38 03 53 EC */ addi r0, r3, lbl_805A53EC@l
/* 80346F54 00343EB4 38 03 53 EC */ addi r0, r3, sGXState__3CGX@l
/* 80346F58 00343EB8 7C 60 2A 14 */ add r3, r0, r5
/* 80346F5C 00343EBC 38 63 00 68 */ addi r3, r3, 0x68
/* 80346F60 00343EC0 88 03 00 18 */ lbz r0, 0x18(r3)
@ -1822,9 +1822,9 @@ lbl_80346F78:
/* 80346FA0 00343F00 3B 78 00 01 */ addi r27, r24, 1
/* 80346FA4 00343F04 38 60 00 00 */ li r3, 0
/* 80346FA8 00343F08 48 03 41 FD */ bl GXSetIndTexOrder
/* 80346FAC 00343F0C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80346FAC 00343F0C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80346FB0 00343F10 57 04 10 3A */ slwi r4, r24, 2
/* 80346FB4 00343F14 38 03 53 EC */ addi r0, r3, lbl_805A53EC@l
/* 80346FB4 00343F14 38 03 53 EC */ addi r0, r3, sGXState__3CGX@l
/* 80346FB8 00343F18 7C 60 22 14 */ add r3, r0, r4
/* 80346FBC 00343F1C 38 A3 02 28 */ addi r5, r3, 0x228
/* 80346FC0 00343F20 80 63 02 28 */ lwz r3, 0x228(r3)
@ -1855,8 +1855,8 @@ lbl_80346FF8:
/* 80347020 00343F80 7C 03 E8 00 */ cmpw r3, r29
/* 80347024 00343F84 40 81 00 30 */ ble lbl_80347054
/* 80347028 00343F88 1C A3 00 1C */ mulli r5, r3, 0x1c
/* 8034702C 00343F8C 3C 80 80 5A */ lis r4, lbl_805A53EC@ha
/* 80347030 00343F90 38 04 53 EC */ addi r0, r4, lbl_805A53EC@l
/* 8034702C 00343F8C 3C 80 80 5A */ lis r4, sGXState__3CGX@ha
/* 80347030 00343F90 38 04 53 EC */ addi r0, r4, sGXState__3CGX@l
/* 80347034 00343F94 7C 80 2A 14 */ add r4, r0, r5
/* 80347038 00343F98 38 84 00 68 */ addi r4, r4, 0x68
/* 8034703C 00343F9C 80 04 00 10 */ lwz r0, 0x10(r4)
@ -1871,9 +1871,9 @@ lbl_80347054:
lbl_8034705C:
/* 8034705C 00343FBC 7F 1B C3 78 */ mr r27, r24
lbl_80347060:
/* 80347060 00343FC0 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80347060 00343FC0 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80347064 00343FC4 57 64 10 3A */ slwi r4, r27, 2
/* 80347068 00343FC8 38 03 53 EC */ addi r0, r3, lbl_805A53EC@l
/* 80347068 00343FC8 38 03 53 EC */ addi r0, r3, sGXState__3CGX@l
/* 8034706C 00343FCC 7C 60 22 14 */ add r3, r0, r4
/* 80347070 00343FD0 38 A3 02 28 */ addi r5, r3, 0x228
/* 80347074 00343FD4 80 63 02 28 */ lwz r3, 0x228(r3)
@ -1892,9 +1892,9 @@ lbl_80347060:
/* 803470A8 00344008 48 03 0E ED */ bl GXSetTexCoordGen2
lbl_803470AC:
/* 803470AC 0034400C 1C 9D 00 1C */ mulli r4, r29, 0x1c
/* 803470B0 00344010 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803470B0 00344010 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803470B4 00344014 57 C5 2D B4 */ rlwinm r5, r30, 5, 0x16, 0x1a
/* 803470B8 00344018 38 03 53 EC */ addi r0, r3, lbl_805A53EC@l
/* 803470B8 00344018 38 03 53 EC */ addi r0, r3, sGXState__3CGX@l
/* 803470BC 0034401C 7C 60 22 14 */ add r3, r0, r4
/* 803470C0 00344020 80 03 00 68 */ lwz r0, 0x68(r3)
/* 803470C4 00344024 60 A4 20 0F */ ori r4, r5, 0x200f
@ -1958,8 +1958,8 @@ SetTevIndWarp__3CGXF13_GXTevStageID16_GXIndTexStageIDUcUc14_GXIndTexMtxID:
lbl_80347194:
/* 80347194 003440F4 1D 23 00 1C */ mulli r9, r3, 0x1c
/* 80347198 003440F8 54 A0 06 3F */ clrlwi. r0, r5, 0x18
/* 8034719C 003440FC 3C C0 80 5A */ lis r6, lbl_805A53EC@ha
/* 803471A0 00344100 38 06 53 EC */ addi r0, r6, lbl_805A53EC@l
/* 8034719C 003440FC 3C C0 80 5A */ lis r6, sGXState__3CGX@ha
/* 803471A0 00344100 38 06 53 EC */ addi r0, r6, sGXState__3CGX@l
/* 803471A4 00344104 7C C0 4A 14 */ add r6, r0, r9
/* 803471A8 00344108 54 89 07 BE */ clrlwi r9, r4, 0x1e
/* 803471AC 0034410C 39 66 00 68 */ addi r11, r6, 0x68
@ -2057,9 +2057,9 @@ DoModelShadow__FUiUi:
/* 80347304 00344264 D0 21 00 20 */ stfs f1, 0x20(r1)
/* 80347308 00344268 D0 01 00 24 */ stfs f0, 0x24(r1)
/* 8034730C 0034426C 48 03 51 85 */ bl GXLoadTexMtxImm
/* 80347310 00344270 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80347310 00344270 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80347314 00344274 57 C4 10 3A */ slwi r4, r30, 2
/* 80347318 00344278 38 03 53 EC */ addi r0, r3, lbl_805A53EC@l
/* 80347318 00344278 38 03 53 EC */ addi r0, r3, sGXState__3CGX@l
/* 8034731C 0034427C 7C 60 22 14 */ add r3, r0, r4
/* 80347320 00344280 38 A3 02 28 */ addi r5, r3, 0x228
/* 80347324 00344284 80 63 02 28 */ lwz r3, 0x228(r3)
@ -2077,8 +2077,8 @@ DoModelShadow__FUiUi:
/* 80347354 003442B4 39 00 00 7D */ li r8, 0x7d
/* 80347358 003442B8 48 03 0C 3D */ bl GXSetTexCoordGen2
lbl_8034735C:
/* 8034735C 003442BC 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80347360 003442C0 3B E3 53 EC */ addi r31, r3, lbl_805A53EC@l
/* 8034735C 003442BC 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80347360 003442C0 3B E3 53 EC */ addi r31, r3, sGXState__3CGX@l
/* 80347364 003442C4 80 1F 00 70 */ lwz r0, 0x70(r31)
/* 80347368 003442C8 28 00 03 00 */ cmplwi r0, 0x300
/* 8034736C 003442CC 41 82 00 28 */ beq lbl_80347394
@ -2146,8 +2146,8 @@ lbl_8034742C:
/* 80347454 003443B4 38 C0 00 05 */ li r6, 5
/* 80347458 003443B8 48 03 45 9D */ bl GXSetTevOrder
lbl_8034745C:
/* 8034745C 003443BC 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80347460 003443C0 3B A3 53 EC */ addi r29, r3, lbl_805A53EC@l
/* 8034745C 003443BC 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80347460 003443C0 3B A3 53 EC */ addi r29, r3, sGXState__3CGX@l
/* 80347464 003443C4 80 1D 00 8C */ lwz r0, 0x8c(r29)
/* 80347468 003443C8 28 00 03 00 */ cmplwi r0, 0x300
/* 8034746C 003443CC 41 82 00 28 */ beq lbl_80347494
@ -2251,8 +2251,8 @@ lbl_803475CC:
/* 803475CC 0034452C 2C 00 00 03 */ cmpwi r0, 3
/* 803475D0 00344530 40 82 02 84 */ bne lbl_80347854
/* 803475D4 00344534 80 7E 00 00 */ lwz r3, 0(r30)
/* 803475D8 00344538 3C 80 80 5A */ lis r4, lbl_805A53EC@ha
/* 803475DC 0034453C 38 04 53 EC */ addi r0, r4, lbl_805A53EC@l
/* 803475D8 00344538 3C 80 80 5A */ lis r4, sGXState__3CGX@ha
/* 803475DC 0034453C 38 04 53 EC */ addi r0, r4, sGXState__3CGX@l
/* 803475E0 00344540 1C 83 00 1C */ mulli r4, r3, 0x1c
/* 803475E4 00344544 7C 7B 1B 78 */ mr r27, r3
/* 803475E8 00344548 3B 43 00 01 */ addi r26, r3, 1
@ -2340,8 +2340,8 @@ lbl_80347700:
/* 80347718 00344678 48 03 3B C9 */ bl GXSetTevDirect
lbl_8034771C:
/* 8034771C 0034467C 1C 9A 00 1C */ mulli r4, r26, 0x1c
/* 80347720 00344680 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80347724 00344684 38 03 53 EC */ addi r0, r3, lbl_805A53EC@l
/* 80347720 00344680 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80347724 00344684 38 03 53 EC */ addi r0, r3, sGXState__3CGX@l
/* 80347728 00344688 7C 60 22 14 */ add r3, r0, r4
/* 8034772C 0034468C 3B 83 00 68 */ addi r28, r3, 0x68
/* 80347730 00344690 80 63 00 68 */ lwz r3, 0x68(r3)
@ -2403,8 +2403,8 @@ lbl_803477D4:
/* 80347800 00344760 48 03 41 F5 */ bl GXSetTevOrder
lbl_80347804:
/* 80347804 00344764 80 7F 00 00 */ lwz r3, 0(r31)
/* 80347808 00344768 3C 80 80 5A */ lis r4, lbl_805A53EC@ha
/* 8034780C 0034476C 38 04 53 EC */ addi r0, r4, lbl_805A53EC@l
/* 80347808 00344768 3C 80 80 5A */ lis r4, sGXState__3CGX@ha
/* 8034780C 0034476C 38 04 53 EC */ addi r0, r4, sGXState__3CGX@l
/* 80347810 00344770 80 B9 00 04 */ lwz r5, 4(r25)
/* 80347814 00344774 54 64 10 3A */ slwi r4, r3, 2
/* 80347818 00344778 7C 80 22 14 */ add r4, r0, r4
@ -2439,8 +2439,8 @@ lbl_8034786C:
/* 80347880 003447E0 38 E3 01 8F */ addi r7, r3, 0x0007018F@l
lbl_80347884:
/* 80347884 003447E4 83 5E 00 00 */ lwz r26, 0(r30)
/* 80347888 003447E8 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 8034788C 003447EC 38 03 53 EC */ addi r0, r3, lbl_805A53EC@l
/* 80347888 003447E8 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 8034788C 003447EC 38 03 53 EC */ addi r0, r3, sGXState__3CGX@l
/* 80347890 003447F0 1C 7A 00 1C */ mulli r3, r26, 0x1c
/* 80347894 003447F4 7C 60 1A 14 */ add r3, r0, r3
/* 80347898 003447F8 3B 83 00 68 */ addi r28, r3, 0x68
@ -2493,8 +2493,8 @@ lbl_8034791C:
/* 80347948 003448A8 48 03 40 AD */ bl GXSetTevOrder
lbl_8034794C:
/* 8034794C 003448AC 80 7F 00 00 */ lwz r3, 0(r31)
/* 80347950 003448B0 3C 80 80 5A */ lis r4, lbl_805A53EC@ha
/* 80347954 003448B4 38 04 53 EC */ addi r0, r4, lbl_805A53EC@l
/* 80347950 003448B0 3C 80 80 5A */ lis r4, sGXState__3CGX@ha
/* 80347954 003448B4 38 04 53 EC */ addi r0, r4, sGXState__3CGX@l
/* 80347958 003448B8 80 B9 00 04 */ lwz r5, 4(r25)
/* 8034795C 003448BC 54 64 10 3A */ slwi r4, r3, 2
/* 80347960 003448C0 7C 80 22 14 */ add r4, r0, r4
@ -2980,10 +2980,10 @@ lbl_8034805C:
/* 80348068 00344FC8 4B FB FC 81 */ bl SetStandardDirectTev_Compressed__3CGXF13_GXTevStageIDUiUiUiUi
/* 8034806C 00344FCC 1C BE 00 1C */ mulli r5, r30, 0x1c
/* 80348070 00344FD0 80 DD 00 00 */ lwz r6, 0(r29)
/* 80348074 00344FD4 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80348074 00344FD4 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80348078 00344FD8 83 BF 00 10 */ lwz r29, 0x10(r31)
/* 8034807C 00344FDC 54 C4 06 3E */ clrlwi r4, r6, 0x18
/* 80348080 00344FE0 38 03 53 EC */ addi r0, r3, lbl_805A53EC@l
/* 80348080 00344FE0 38 03 53 EC */ addi r0, r3, sGXState__3CGX@l
/* 80348084 00344FE4 7C 60 2A 14 */ add r3, r0, r5
/* 80348088 00344FE8 54 C5 C6 3E */ rlwinm r5, r6, 0x18, 0x18, 0x1f
/* 8034808C 00344FEC 3B E3 00 68 */ addi r31, r3, 0x68
@ -3037,8 +3037,8 @@ SetupBlendMode__13CCubeMaterialFUiRC11CModelFlagsb:
/* 80348134 00345094 8B C4 00 00 */ lbz r30, 0(r4)
/* 80348138 00345098 7F DE 07 74 */ extsb r30, r30
/* 8034813C 0034509C 41 82 00 4C */ beq lbl_80348188
/* 80348140 003450A0 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80348144 003450A4 38 83 53 EC */ addi r4, r3, lbl_805A53EC@l
/* 80348140 003450A0 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80348144 003450A4 38 83 53 EC */ addi r4, r3, sGXState__3CGX@l
/* 80348148 003450A8 80 04 02 48 */ lwz r0, 0x248(r4)
/* 8034814C 003450AC 28 00 0A 06 */ cmplwi r0, 0xa06
/* 80348150 003450B0 41 82 00 2C */ beq lbl_8034817C
@ -3057,8 +3057,8 @@ lbl_8034817C:
/* 80348180 003450E0 3B 80 00 00 */ li r28, 0
/* 80348184 003450E4 48 00 00 48 */ b lbl_803481CC
lbl_80348188:
/* 80348188 003450E8 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 8034818C 003450EC 38 A3 53 EC */ addi r5, r3, lbl_805A53EC@l
/* 80348188 003450E8 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 8034818C 003450EC 38 A3 53 EC */ addi r5, r3, sGXState__3CGX@l
/* 80348190 003450F0 80 65 02 48 */ lwz r3, 0x248(r5)
/* 80348194 003450F4 3C 03 FF FF */ addis r0, r3, 0xffff
/* 80348198 003450F8 28 00 C8 07 */ cmplwi r0, 0xc807
@ -3089,9 +3089,9 @@ lbl_803481CC:
lbl_803481F8:
/* 803481F8 00345158 7C 1C 03 78 */ mr r28, r0
lbl_803481FC:
/* 803481FC 0034515C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803481FC 0034515C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80348200 00345160 57 A0 16 FA */ rlwinm r0, r29, 2, 0x1b, 0x1d
/* 80348204 00345164 3B E3 53 EC */ addi r31, r3, lbl_805A53EC@l
/* 80348204 00345164 3B E3 53 EC */ addi r31, r3, sGXState__3CGX@l
/* 80348208 00345168 60 1E 00 01 */ ori r30, r0, 1
/* 8034820C 0034516C A0 1F 00 56 */ lhz r0, 0x56(r31)
/* 80348210 00345170 53 9E 2E 34 */ rlwimi r30, r28, 5, 0x18, 0x1a

View File

@ -31,9 +31,9 @@ lbl_805A9350:
sub_80306630:
/* 80306630 00303590 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80306634 00303594 7C 08 02 A6 */ mflr r0
/* 80306638 00303598 3C E0 80 5A */ lis r7, lbl_805A53EC@ha
/* 80306638 00303598 3C E0 80 5A */ lis r7, sGXState__3CGX@ha
/* 8030663C 0030359C 90 01 00 24 */ stw r0, 0x24(r1)
/* 80306640 003035A0 38 E7 53 EC */ addi r7, r7, lbl_805A53EC@l
/* 80306640 003035A0 38 E7 53 EC */ addi r7, r7, sGXState__3CGX@l
/* 80306644 003035A4 BF 61 00 0C */ stmw r27, 0xc(r1)
/* 80306648 003035A8 7C 7C 1B 78 */ mr r28, r3
/* 8030664C 003035AC 7C 9D 23 78 */ mr r29, r4
@ -47,8 +47,8 @@ sub_80306630:
/* 8030666C 003035CC 98 07 00 51 */ stb r0, 0x51(r7)
/* 80306670 003035D0 48 07 4C 49 */ bl GXSetNumIndStages
lbl_80306674:
/* 80306674 003035D4 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80306678 003035D8 38 83 53 EC */ addi r4, r3, lbl_805A53EC@l
/* 80306674 003035D4 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80306678 003035D8 38 83 53 EC */ addi r4, r3, sGXState__3CGX@l
/* 8030667C 003035DC 88 04 00 50 */ lbz r0, 0x50(r4)
/* 80306680 003035E0 28 00 00 01 */ cmplwi r0, 1
/* 80306684 003035E4 41 82 00 14 */ beq lbl_80306698
@ -57,8 +57,8 @@ lbl_80306674:
/* 80306690 003035F0 98 04 00 50 */ stb r0, 0x50(r4)
/* 80306694 003035F4 48 07 55 39 */ bl GXSetNumTevStages
lbl_80306698:
/* 80306698 003035F8 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 8030669C 003035FC 38 83 53 EC */ addi r4, r3, lbl_805A53EC@l
/* 80306698 003035F8 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 8030669C 003035FC 38 83 53 EC */ addi r4, r3, sGXState__3CGX@l
/* 803066A0 00303600 88 04 00 4F */ lbz r0, 0x4f(r4)
/* 803066A4 00303604 28 00 00 01 */ cmplwi r0, 1
/* 803066A8 00303608 41 82 00 14 */ beq lbl_803066BC
@ -67,8 +67,8 @@ lbl_80306698:
/* 803066B4 00303614 98 04 00 4F */ stb r0, 0x4f(r4)
/* 803066B8 00303618 48 07 1B AD */ bl GXSetNumTexGens
lbl_803066BC:
/* 803066BC 0030361C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803066C0 00303620 38 83 53 EC */ addi r4, r3, lbl_805A53EC@l
/* 803066BC 0030361C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803066C0 00303620 38 83 53 EC */ addi r4, r3, sGXState__3CGX@l
/* 803066C4 00303624 88 04 00 52 */ lbz r0, 0x52(r4)
/* 803066C8 00303628 28 00 00 0F */ cmplwi r0, 0xf
/* 803066CC 0030362C 41 82 00 1C */ beq lbl_803066E8
@ -79,8 +79,8 @@ lbl_803066BC:
/* 803066E0 00303640 38 A0 00 01 */ li r5, 1
/* 803066E4 00303644 48 07 58 75 */ bl GXSetZMode
lbl_803066E8:
/* 803066E8 00303648 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803066EC 0030364C 3B 63 53 EC */ addi r27, r3, lbl_805A53EC@l
/* 803066E8 00303648 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803066EC 0030364C 3B 63 53 EC */ addi r27, r3, sGXState__3CGX@l
/* 803066F0 00303650 80 7B 00 7C */ lwz r3, 0x7c(r27)
/* 803066F4 00303654 3C 03 FF 01 */ addis r0, r3, 0xff01
/* 803066F8 00303658 28 00 FF FF */ cmplwi r0, 0xffff
@ -124,8 +124,8 @@ lbl_80306754:
lbl_80306788:
/* 80306788 003036E8 38 60 00 00 */ li r3, 0
/* 8030678C 003036EC 48 00 14 C5 */ bl SetStandardTevColorAlphaOp__3CGXF13_GXTevStageID
/* 80306790 003036F0 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80306794 003036F4 3B 63 53 EC */ addi r27, r3, lbl_805A53EC@l
/* 80306790 003036F0 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80306794 003036F4 3B 63 53 EC */ addi r27, r3, sGXState__3CGX@l
/* 80306798 003036F8 A0 1B 00 56 */ lhz r0, 0x56(r27)
/* 8030679C 003036FC 28 00 00 21 */ cmplwi r0, 0x21
/* 803067A0 00303700 41 82 00 28 */ beq lbl_803067C8
@ -321,9 +321,9 @@ lbl_80306A18:
lbl_80306A1C:
/* 80306A1C 0030397C 2C 1A 00 01 */ cmpwi r26, 1
/* 80306A20 00303980 41 82 00 7C */ beq lbl_80306A9C
/* 80306A24 00303984 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80306A24 00303984 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80306A28 00303988 83 7F 00 38 */ lwz r27, 0x38(r31)
/* 80306A2C 0030398C 3B C3 53 EC */ addi r30, r3, lbl_805A53EC@l
/* 80306A2C 0030398C 3B C3 53 EC */ addi r30, r3, sGXState__3CGX@l
/* 80306A30 00303990 48 00 00 64 */ b lbl_80306A94
lbl_80306A34:
/* 80306A34 00303994 80 BB 00 0C */ lwz r5, 0xc(r27)
@ -357,9 +357,9 @@ lbl_80306A94:
lbl_80306A9C:
/* 80306A9C 003039FC 2C 1A 00 00 */ cmpwi r26, 0
/* 80306AA0 00303A00 41 82 00 7C */ beq lbl_80306B1C
/* 80306AA4 00303A04 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80306AA4 00303A04 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80306AA8 00303A08 83 7F 00 3C */ lwz r27, 0x3c(r31)
/* 80306AAC 00303A0C 3B C3 53 EC */ addi r30, r3, lbl_805A53EC@l
/* 80306AAC 00303A0C 3B C3 53 EC */ addi r30, r3, sGXState__3CGX@l
/* 80306AB0 00303A10 48 00 00 64 */ b lbl_80306B14
lbl_80306AB4:
/* 80306AB4 00303A14 80 BB 00 0C */ lwz r5, 0xc(r27)
@ -757,8 +757,8 @@ lbl_80306FE8:
/* 80306FF0 00303F50 38 63 73 88 */ addi r3, r3, lbl_803D7388@l
/* 80306FF4 00303F54 54 19 08 3C */ slwi r25, r0, 1
/* 80306FF8 00303F58 48 00 0E 31 */ bl SetVtxDescv__3CGXFPC14_GXVtxDescList
/* 80306FFC 00303F5C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307000 00303F60 3A A3 53 EC */ addi r21, r3, lbl_805A53EC@l
/* 80306FFC 00303F5C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80307000 00303F60 3A A3 53 EC */ addi r21, r3, sGXState__3CGX@l
/* 80307004 00303F64 80 15 00 78 */ lwz r0, 0x78(r21)
/* 80307008 00303F68 28 00 00 00 */ cmplwi r0, 0
/* 8030700C 00303F6C 41 82 00 14 */ beq lbl_80307020
@ -767,8 +767,8 @@ lbl_80306FE8:
/* 80307018 00303F78 90 15 00 78 */ stw r0, 0x78(r21)
/* 8030701C 00303F7C 48 07 42 C5 */ bl GXSetTevDirect
lbl_80307020:
/* 80307020 00303F80 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307024 00303F84 38 83 53 EC */ addi r4, r3, lbl_805A53EC@l
/* 80307020 00303F80 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80307024 00303F84 38 83 53 EC */ addi r4, r3, sGXState__3CGX@l
/* 80307028 00303F88 88 04 00 51 */ lbz r0, 0x51(r4)
/* 8030702C 00303F8C 28 00 00 00 */ cmplwi r0, 0
/* 80307030 00303F90 41 82 00 14 */ beq lbl_80307044
@ -804,9 +804,9 @@ lbl_80307078:
/* 803070A0 00304000 39 00 00 00 */ li r8, 0
/* 803070A4 00304004 48 07 44 89 */ bl GXSetTevColorOp
lbl_803070A8:
/* 803070A8 00304008 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803070A8 00304008 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803070AC 0030400C 38 C0 00 00 */ li r6, 0
/* 803070B0 00304010 3B A3 53 EC */ addi r29, r3, lbl_805A53EC@l
/* 803070B0 00304010 3B A3 53 EC */ addi r29, r3, sGXState__3CGX@l
/* 803070B4 00304014 88 BD 00 4D */ lbz r5, 0x4d(r29)
/* 803070B8 00304018 88 1D 00 4F */ lbz r0, 0x4f(r29)
/* 803070BC 0030401C 7C 85 00 D0 */ neg r4, r5
@ -822,8 +822,8 @@ lbl_803070A8:
/* 803070E4 00304044 98 1D 00 4F */ stb r0, 0x4f(r29)
/* 803070E8 00304048 48 07 11 7D */ bl GXSetNumTexGens
lbl_803070EC:
/* 803070EC 0030404C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803070F0 00304050 3A A3 53 EC */ addi r21, r3, lbl_805A53EC@l
/* 803070EC 0030404C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803070F0 00304050 3A A3 53 EC */ addi r21, r3, sGXState__3CGX@l
/* 803070F4 00304054 A0 15 00 56 */ lhz r0, 0x56(r21)
/* 803070F8 00304058 28 00 00 05 */ cmplwi r0, 5
/* 803070FC 0030405C 41 82 00 28 */ beq lbl_80307124
@ -1084,8 +1084,8 @@ lbl_8030749C:
/* 803074A8 00304408 38 61 00 0C */ addi r3, r1, 0xc
/* 803074AC 0030440C 48 03 E9 B1 */ bl SetCurrent__13CCubeMaterialCFRC11CModelFlagsRC12CCubeSurfaceRC10CCubeModel
/* 803074B0 00304410 80 BF 00 00 */ lwz r5, 0(r31)
/* 803074B4 00304414 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803074B8 00304418 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 803074B4 00304414 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803074B8 00304418 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 803074BC 0030441C 80 85 00 1C */ lwz r4, 0x1c(r5)
/* 803074C0 00304420 88 03 00 4C */ lbz r0, 0x4c(r3)
/* 803074C4 00304424 38 64 00 4B */ addi r3, r4, 0x4b
@ -1143,8 +1143,8 @@ SetUsingPackedLightmaps__10CCubeModelCFb:
/* 80307570 003044D0 80 83 00 18 */ lwz r4, 0x18(r3)
/* 80307574 003044D4 28 04 00 00 */ cmplwi r4, 0
/* 80307578 003044D8 41 82 00 5C */ beq lbl_803075D4
/* 8030757C 003044DC 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307580 003044E0 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 8030757C 003044DC 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80307580 003044E0 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80307584 003044E4 80 03 00 10 */ lwz r0, 0x10(r3)
/* 80307588 003044E8 7C 00 20 40 */ cmplw r0, r4
/* 8030758C 003044EC 41 82 00 48 */ beq lbl_803075D4
@ -1157,8 +1157,8 @@ lbl_803075A4:
/* 803075A4 00304504 80 83 00 14 */ lwz r4, 0x14(r3)
/* 803075A8 00304508 28 04 00 00 */ cmplwi r4, 0
/* 803075AC 0030450C 41 82 00 28 */ beq lbl_803075D4
/* 803075B0 00304510 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803075B4 00304514 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 803075B0 00304510 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803075B4 00304514 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 803075B8 00304518 80 03 00 10 */ lwz r0, 0x10(r3)
/* 803075BC 0030451C 7C 00 20 40 */ cmplw r0, r4
/* 803075C0 00304520 41 82 00 14 */ beq lbl_803075D4
@ -1200,8 +1200,8 @@ SetArraysCurrent__10CCubeModelCFv:
/* 80307634 00304594 80 83 00 08 */ lwz r4, 8(r3)
/* 80307638 00304598 28 04 00 00 */ cmplwi r4, 0
/* 8030763C 0030459C 41 82 00 24 */ beq lbl_80307660
/* 80307640 003045A0 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307644 003045A4 84 03 53 EC */ lwzu r0, lbl_805A53EC@l(r3)
/* 80307640 003045A0 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80307644 003045A4 84 03 53 EC */ lwzu r0, sGXState__3CGX@l(r3)
/* 80307648 003045A8 7C 00 20 40 */ cmplw r0, r4
/* 8030764C 003045AC 41 82 00 14 */ beq lbl_80307660
/* 80307650 003045B0 90 83 00 00 */ stw r4, 0(r3)
@ -1218,8 +1218,8 @@ lbl_80307674:
/* 80307674 003045D4 80 9F 00 0C */ lwz r4, 0xc(r31)
/* 80307678 003045D8 28 04 00 00 */ cmplwi r4, 0
/* 8030767C 003045DC 41 82 00 28 */ beq lbl_803076A4
/* 80307680 003045E0 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307684 003045E4 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 80307680 003045E0 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80307684 003045E4 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80307688 003045E8 80 03 00 04 */ lwz r0, 4(r3)
/* 8030768C 003045EC 7C 00 20 40 */ cmplw r0, r4
/* 80307690 003045F0 41 82 00 14 */ beq lbl_803076A4
@ -1248,8 +1248,8 @@ SetStaticArraysCurrent__10CCubeModelCFv:
/* 803076DC 0030463C 80 83 00 10 */ lwz r4, 0x10(r3)
/* 803076E0 00304640 28 04 00 00 */ cmplwi r4, 0
/* 803076E4 00304644 41 82 00 28 */ beq lbl_8030770C
/* 803076E8 00304648 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803076EC 0030464C 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 803076E8 00304648 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803076EC 0030464C 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 803076F0 00304650 80 03 00 08 */ lwz r0, 8(r3)
/* 803076F4 00304654 7C 00 20 40 */ cmplw r0, r4
/* 803076F8 00304658 41 82 00 14 */ beq lbl_8030770C
@ -1270,8 +1270,8 @@ lbl_80307724:
/* 8030772C 0030468C 41 82 00 34 */ beq lbl_80307760
/* 80307730 00304690 28 04 00 00 */ cmplwi r4, 0
/* 80307734 00304694 41 82 00 5C */ beq lbl_80307790
/* 80307738 00304698 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 8030773C 0030469C 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 80307738 00304698 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 8030773C 0030469C 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80307740 003046A0 80 03 00 10 */ lwz r0, 0x10(r3)
/* 80307744 003046A4 7C 00 20 40 */ cmplw r0, r4
/* 80307748 003046A8 41 82 00 48 */ beq lbl_80307790
@ -1283,8 +1283,8 @@ lbl_80307724:
lbl_80307760:
/* 80307760 003046C0 28 1E 00 00 */ cmplwi r30, 0
/* 80307764 003046C4 41 82 00 2C */ beq lbl_80307790
/* 80307768 003046C8 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 8030776C 003046CC 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 80307768 003046C8 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 8030776C 003046CC 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80307770 003046D0 80 03 00 10 */ lwz r0, 0x10(r3)
/* 80307774 003046D4 7C 00 F0 40 */ cmplw r0, r30
/* 80307778 003046D8 41 82 00 18 */ beq lbl_80307790
@ -1296,9 +1296,9 @@ lbl_80307760:
lbl_80307790:
/* 80307790 003046F0 28 1E 00 00 */ cmplwi r30, 0
/* 80307794 003046F4 41 82 00 4C */ beq lbl_803077E0
/* 80307798 003046F8 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307798 003046F8 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 8030779C 003046FC 3B A0 00 01 */ li r29, 1
/* 803077A0 00304700 3B E3 53 EC */ addi r31, r3, lbl_805A53EC@l
/* 803077A0 00304700 3B E3 53 EC */ addi r31, r3, sGXState__3CGX@l
lbl_803077A4:
/* 803077A4 00304704 28 1E 00 00 */ cmplwi r30, 0
/* 803077A8 00304708 38 7D 00 0D */ addi r3, r29, 0xd

View File

@ -8,7 +8,7 @@ lbl_ctor:
.balign 8
.lcomm lbl_80479BD0, 0xF0, 4
.comm lbl_805A53EC, 0x260, 4
.comm sGXState__3CGX, 0x260, 4
.section .sbss2, "", @nobits
.balign 8
@ -23,43 +23,43 @@ lbl_805AF4A0:
sub_80307bbc:
/* 80307BBC 00304B1C 28 03 00 00 */ cmplwi r3, 0
/* 80307BC0 00304B20 41 82 00 14 */ beq lbl_80307BD4
/* 80307BC4 00304B24 3D 20 80 5A */ lis r9, lbl_805A53EC@ha
/* 80307BC8 00304B28 39 29 53 EC */ addi r9, r9, lbl_805A53EC@l
/* 80307BC4 00304B24 3D 20 80 5A */ lis r9, sGXState__3CGX@ha
/* 80307BC8 00304B28 39 29 53 EC */ addi r9, r9, sGXState__3CGX@l
/* 80307BCC 00304B2C 88 09 00 53 */ lbz r0, 0x53(r9)
/* 80307BD0 00304B30 90 03 00 00 */ stw r0, 0(r3)
lbl_80307BD4:
/* 80307BD4 00304B34 28 04 00 00 */ cmplwi r4, 0
/* 80307BD8 00304B38 41 82 00 14 */ beq lbl_80307BEC
/* 80307BDC 00304B3C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307BE0 00304B40 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 80307BDC 00304B3C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80307BE0 00304B40 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80307BE4 00304B44 C0 03 02 4C */ lfs f0, 0x24c(r3)
/* 80307BE8 00304B48 D0 04 00 00 */ stfs f0, 0(r4)
lbl_80307BEC:
/* 80307BEC 00304B4C 28 05 00 00 */ cmplwi r5, 0
/* 80307BF0 00304B50 41 82 00 14 */ beq lbl_80307C04
/* 80307BF4 00304B54 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307BF8 00304B58 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 80307BF4 00304B54 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80307BF8 00304B58 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80307BFC 00304B5C C0 03 02 50 */ lfs f0, 0x250(r3)
/* 80307C00 00304B60 D0 05 00 00 */ stfs f0, 0(r5)
lbl_80307C04:
/* 80307C04 00304B64 28 06 00 00 */ cmplwi r6, 0
/* 80307C08 00304B68 41 82 00 14 */ beq lbl_80307C1C
/* 80307C0C 00304B6C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307C10 00304B70 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 80307C0C 00304B6C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80307C10 00304B70 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80307C14 00304B74 C0 03 02 54 */ lfs f0, 0x254(r3)
/* 80307C18 00304B78 D0 06 00 00 */ stfs f0, 0(r6)
lbl_80307C1C:
/* 80307C1C 00304B7C 28 07 00 00 */ cmplwi r7, 0
/* 80307C20 00304B80 41 82 00 14 */ beq lbl_80307C34
/* 80307C24 00304B84 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307C28 00304B88 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 80307C24 00304B84 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80307C28 00304B88 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80307C2C 00304B8C C0 03 02 58 */ lfs f0, 0x258(r3)
/* 80307C30 00304B90 D0 07 00 00 */ stfs f0, 0(r7)
lbl_80307C34:
/* 80307C34 00304B94 28 08 00 00 */ cmplwi r8, 0
/* 80307C38 00304B98 4D 82 00 20 */ beqlr
/* 80307C3C 00304B9C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307C40 00304BA0 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 80307C3C 00304B9C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80307C40 00304BA0 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80307C44 00304BA4 80 03 02 5C */ lwz r0, 0x25c(r3)
/* 80307C48 00304BA8 90 08 00 00 */ stw r0, 0(r8)
/* 80307C4C 00304BAC 4E 80 00 20 */ blr
@ -72,8 +72,8 @@ SetStandardTevColorAlphaOp__3CGXF13_GXTevStageID:
/* 80307C5C 00304BBC 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80307C60 00304BC0 7C 7F 1B 78 */ mr r31, r3
/* 80307C64 00304BC4 1C 9F 00 1C */ mulli r4, r31, 0x1c
/* 80307C68 00304BC8 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307C6C 00304BCC 38 03 53 EC */ addi r0, r3, lbl_805A53EC@l
/* 80307C68 00304BC8 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80307C6C 00304BCC 38 03 53 EC */ addi r0, r3, sGXState__3CGX@l
/* 80307C70 00304BD0 7C 60 22 14 */ add r3, r0, r4
/* 80307C74 00304BD4 80 03 00 70 */ lwz r0, 0x70(r3)
/* 80307C78 00304BD8 38 E3 00 68 */ addi r7, r3, 0x68
@ -111,9 +111,9 @@ lbl_80307CD4:
SetStandardDirectTev_Compressed__3CGXF13_GXTevStageIDUiUiUiUi:
/* 80307CE8 00304C48 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80307CEC 00304C4C 7C 08 02 A6 */ mflr r0
/* 80307CF0 00304C50 3D 00 80 5A */ lis r8, lbl_805A53EC@ha
/* 80307CF0 00304C50 3D 00 80 5A */ lis r8, sGXState__3CGX@ha
/* 80307CF4 00304C54 90 01 00 24 */ stw r0, 0x24(r1)
/* 80307CF8 00304C58 38 08 53 EC */ addi r0, r8, lbl_805A53EC@l
/* 80307CF8 00304C58 38 08 53 EC */ addi r0, r8, sGXState__3CGX@l
/* 80307CFC 00304C5C BF 41 00 08 */ stmw r26, 8(r1)
/* 80307D00 00304C60 7C 7A 1B 78 */ mr r26, r3
/* 80307D04 00304C64 1D 3A 00 1C */ mulli r9, r26, 0x1c
@ -240,10 +240,10 @@ SetIndexedPositionVtxFmt__14CFluidPlaneCPUFv:
SetAttrFmt__11CFluidPlaneF6GXAttr10GXAttrType:
/* 80307EA4 00304E04 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80307EA8 00304E08 7C 08 02 A6 */ mflr r0
/* 80307EAC 00304E0C 3C A0 80 5A */ lis r5, lbl_805A53EC@ha
/* 80307EAC 00304E0C 3C A0 80 5A */ lis r5, sGXState__3CGX@ha
/* 80307EB0 00304E10 38 C3 FF F7 */ addi r6, r3, -9
/* 80307EB4 00304E14 90 01 00 14 */ stw r0, 0x14(r1)
/* 80307EB8 00304E18 38 A5 53 EC */ addi r5, r5, lbl_805A53EC@l
/* 80307EB8 00304E18 38 A5 53 EC */ addi r5, r5, sGXState__3CGX@l
/* 80307EBC 00304E1C 54 C7 08 3C */ slwi r7, r6, 1
/* 80307EC0 00304E20 38 00 00 03 */ li r0, 3
/* 80307EC4 00304E24 80 C5 00 48 */ lwz r6, 0x48(r5)
@ -266,12 +266,12 @@ lbl_80307EEC:
SetVtxDescv_Compressed__3CGXFUi:
/* 80307EFC 00304E5C 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80307F00 00304E60 7C 08 02 A6 */ mflr r0
/* 80307F04 00304E64 3C 80 80 5A */ lis r4, lbl_805A53EC@ha
/* 80307F04 00304E64 3C 80 80 5A */ lis r4, sGXState__3CGX@ha
/* 80307F08 00304E68 90 01 00 14 */ stw r0, 0x14(r1)
/* 80307F0C 00304E6C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80307F10 00304E70 7C 7F 1B 78 */ mr r31, r3
/* 80307F14 00304E74 93 C1 00 08 */ stw r30, 8(r1)
/* 80307F18 00304E78 3B C4 53 EC */ addi r30, r4, lbl_805A53EC@l
/* 80307F18 00304E78 3B C4 53 EC */ addi r30, r4, sGXState__3CGX@l
/* 80307F1C 00304E7C 80 BE 00 48 */ lwz r5, 0x48(r30)
/* 80307F20 00304E80 7C 1F 28 40 */ cmplw r31, r5
/* 80307F24 00304E84 41 82 00 7C */ beq lbl_80307FA0
@ -333,27 +333,27 @@ SetIndTexMtxSTPointFive__3CGXF14_GXIndTexMtxIDSc:
FlushState__3CGXFv:
/* 80307FE4 00304F44 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80307FE8 00304F48 7C 08 02 A6 */ mflr r0
/* 80307FEC 00304F4C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80307FEC 00304F4C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80307FF0 00304F50 90 01 00 14 */ stw r0, 0x14(r1)
/* 80307FF4 00304F54 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80307FF8 00304F58 3B E3 53 EC */ addi r31, r3, lbl_805A53EC@l
/* 80307FF8 00304F58 3B E3 53 EC */ addi r31, r3, sGXState__3CGX@l
/* 80307FFC 00304F5C 93 C1 00 08 */ stw r30, 8(r1)
/* 80308000 00304F60 88 1F 00 4C */ lbz r0, 0x4c(r31)
/* 80308004 00304F64 54 00 07 FF */ clrlwi. r0, r0, 0x1f
/* 80308008 00304F68 41 82 00 1C */ beq lbl_80308024
/* 8030800C 00304F6C 88 7F 00 4E */ lbz r3, 0x4e(r31)
/* 80308010 00304F70 48 07 1B 21 */ bl GXSetNumChans
/* 80308014 00304F74 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 80308014 00304F74 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80308018 00304F78 88 1F 00 4E */ lbz r0, 0x4e(r31)
/* 8030801C 00304F7C 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 8030801C 00304F7C 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80308020 00304F80 98 03 00 4D */ stb r0, 0x4d(r3)
lbl_80308024:
/* 80308024 00304F84 88 1F 00 4C */ lbz r0, 0x4c(r31)
/* 80308028 00304F88 54 00 07 BD */ rlwinm. r0, r0, 0, 0x1e, 0x1e
/* 8030802C 00304F8C 41 82 00 40 */ beq lbl_8030806C
/* 80308030 00304F90 3C 80 80 5A */ lis r4, lbl_805A53EC@ha
/* 80308030 00304F90 3C 80 80 5A */ lis r4, sGXState__3CGX@ha
/* 80308034 00304F94 38 60 00 00 */ li r3, 0
/* 80308038 00304F98 3B C4 53 EC */ addi r30, r4, lbl_805A53EC@l
/* 80308038 00304F98 3B C4 53 EC */ addi r30, r4, sGXState__3CGX@l
/* 8030803C 00304F9C A0 1E 00 34 */ lhz r0, 0x34(r30)
/* 80308040 00304FA0 54 07 EE 3E */ rlwinm r7, r0, 0x1d, 0x18, 0x1f
/* 80308044 00304FA4 54 04 07 FE */ clrlwi r4, r0, 0x1f
@ -362,17 +362,17 @@ lbl_80308024:
/* 80308050 00304FB0 54 08 AF BE */ rlwinm r8, r0, 0x15, 0x1e, 0x1f
/* 80308054 00304FB4 54 09 9F BE */ rlwinm r9, r0, 0x13, 0x1e, 0x1f
/* 80308058 00304FB8 48 07 1B 1D */ bl GXSetChanCtrl
/* 8030805C 00304FBC 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 8030805C 00304FBC 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80308060 00304FC0 A0 1E 00 34 */ lhz r0, 0x34(r30)
/* 80308064 00304FC4 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 80308064 00304FC4 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 80308068 00304FC8 B0 03 00 30 */ sth r0, 0x30(r3)
lbl_8030806C:
/* 8030806C 00304FCC 88 1F 00 4C */ lbz r0, 0x4c(r31)
/* 80308070 00304FD0 54 00 07 7B */ rlwinm. r0, r0, 0, 0x1d, 0x1d
/* 80308074 00304FD4 41 82 00 40 */ beq lbl_803080B4
/* 80308078 00304FD8 3C 80 80 5A */ lis r4, lbl_805A53EC@ha
/* 80308078 00304FD8 3C 80 80 5A */ lis r4, sGXState__3CGX@ha
/* 8030807C 00304FDC 38 60 00 01 */ li r3, 1
/* 80308080 00304FE0 3B C4 53 EC */ addi r30, r4, lbl_805A53EC@l
/* 80308080 00304FE0 3B C4 53 EC */ addi r30, r4, sGXState__3CGX@l
/* 80308084 00304FE4 A0 1E 00 36 */ lhz r0, 0x36(r30)
/* 80308088 00304FE8 54 07 EE 3E */ rlwinm r7, r0, 0x1d, 0x18, 0x1f
/* 8030808C 00304FEC 54 04 07 FE */ clrlwi r4, r0, 0x1f
@ -381,9 +381,9 @@ lbl_8030806C:
/* 80308098 00304FF8 54 08 AF BE */ rlwinm r8, r0, 0x15, 0x1e, 0x1f
/* 8030809C 00304FFC 54 09 9F BE */ rlwinm r9, r0, 0x13, 0x1e, 0x1f
/* 803080A0 00305000 48 07 1A D5 */ bl GXSetChanCtrl
/* 803080A4 00305004 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803080A4 00305004 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803080A8 00305008 A0 1E 00 36 */ lhz r0, 0x36(r30)
/* 803080AC 0030500C 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 803080AC 0030500C 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 803080B0 00305010 B0 03 00 32 */ sth r0, 0x32(r3)
lbl_803080B4:
/* 803080B4 00305014 38 00 00 00 */ li r0, 0
@ -399,8 +399,8 @@ lbl_803080B4:
sub_803080d4:
/* 803080D4 00305034 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 803080D8 00305038 7C 08 02 A6 */ mflr r0
/* 803080DC 0030503C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 803080E0 00305040 34 63 53 EC */ addic. r3, r3, lbl_805A53EC@l
/* 803080DC 0030503C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 803080E0 00305040 34 63 53 EC */ addic. r3, r3, sGXState__3CGX@l
/* 803080E4 00305044 90 01 00 14 */ stw r0, 0x14(r1)
/* 803080E8 00305048 41 82 00 08 */ beq lbl_803080F0
/* 803080EC 0030504C 48 00 01 B1 */ bl __ct__Q23CGX8SGXStateFv
@ -415,17 +415,17 @@ lbl_803080F0:
ResetGXStates__3CGXFv:
/* 80308104 00305064 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80308108 00305068 7C 08 02 A6 */ mflr r0
/* 8030810C 0030506C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 8030810C 0030506C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80308110 00305070 90 01 00 24 */ stw r0, 0x24(r1)
/* 80308114 00305074 38 00 00 00 */ li r0, 0
/* 80308118 00305078 38 63 53 EC */ addi r3, r3, lbl_805A53EC@l
/* 80308118 00305078 38 63 53 EC */ addi r3, r3, sGXState__3CGX@l
/* 8030811C 0030507C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80308120 00305080 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80308124 00305084 90 03 00 48 */ stw r0, 0x48(r3)
/* 80308128 00305088 48 06 F6 2D */ bl GXClearVtxDesc
/* 8030812C 0030508C 3C 60 80 5A */ lis r3, lbl_805A53EC@ha
/* 8030812C 0030508C 3C 60 80 5A */ lis r3, sGXState__3CGX@ha
/* 80308130 00305090 38 00 00 01 */ li r0, 1
/* 80308134 00305094 3B E3 53 EC */ addi r31, r3, lbl_805A53EC@l
/* 80308134 00305094 3B E3 53 EC */ addi r31, r3, sGXState__3CGX@l
/* 80308138 00305098 3B C0 00 00 */ li r30, 0
/* 8030813C 0030509C 90 1F 00 00 */ stw r0, 0(r31)
/* 80308140 003050A0 90 1F 00 04 */ stw r0, 4(r31)
@ -669,10 +669,10 @@ __ct__Q23CGX9STevStateFv:
SetLineWidth__3CGXFUc12_GXTexOffset:
/* 803084B8 00305418 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 803084BC 0030541C 7C 08 02 A6 */ mflr r0
/* 803084C0 00305420 3C A0 80 5A */ lis r5, lbl_805A53EC@ha
/* 803084C0 00305420 3C A0 80 5A */ lis r5, sGXState__3CGX@ha
/* 803084C4 00305424 54 86 40 2E */ slwi r6, r4, 8
/* 803084C8 00305428 90 01 00 14 */ stw r0, 0x14