2022-10-16 16:05:58 +00:00
|
|
|
.include "macros.inc"
|
|
|
|
|
|
|
|
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
|
2022-10-16 16:31:36 +00:00
|
|
|
.global GXSetTevIndirect
|
|
|
|
GXSetTevIndirect:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037770 000335B0 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 80037774 000335B4 39 80 00 00 */ li r12, 0x0
|
|
|
|
/* 80037778 000335B8 50 8C 07 BE */ rlwimi r12, r4, 0, 30, 31
|
|
|
|
/* 8003777C 000335BC 38 83 00 10 */ addi r4, r3, 0x10
|
|
|
|
/* 80037780 000335C0 93 E1 00 0C */ stw r31, 0xc(r1)
|
|
|
|
/* 80037784 000335C4 50 AC 17 3A */ rlwimi r12, r5, 2, 28, 29
|
|
|
|
/* 80037788 000335C8 3D 60 CC 01 */ lis r11, 0xCC008000@ha
|
|
|
|
/* 8003778C 000335CC 38 00 00 61 */ li r0, 0x61
|
|
|
|
/* 80037790 000335D0 98 0B 80 00 */ stb r0, 0xCC008000@l(r11)
|
|
|
|
/* 80037794 000335D4 50 CC 26 76 */ rlwimi r12, r6, 4, 25, 27
|
|
|
|
/* 80037798 000335D8 83 E1 00 1C */ lwz r31, 0x1c(r1)
|
|
|
|
/* 8003779C 000335DC 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 800377A0 000335E0 88 A1 00 1B */ lbz r5, 0x1b(r1)
|
|
|
|
/* 800377A4 000335E4 53 EC 3D F0 */ rlwimi r12, r31, 7, 23, 24
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800377A8 000335E8 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800377AC 000335EC 50 EC 4C EC */ rlwimi r12, r7, 9, 19, 22
|
|
|
|
/* 800377B0 000335F0 51 0C 6C 24 */ rlwimi r12, r8, 13, 16, 18
|
|
|
|
/* 800377B4 000335F4 51 2C 83 5E */ rlwimi r12, r9, 16, 13, 15
|
|
|
|
/* 800377B8 000335F8 50 AC 9B 18 */ rlwimi r12, r5, 19, 12, 12
|
|
|
|
/* 800377BC 000335FC 51 4C A2 D6 */ rlwimi r12, r10, 20, 11, 11
|
|
|
|
/* 800377C0 00033600 50 8C C0 0E */ rlwimi r12, r4, 24, 0, 7
|
|
|
|
/* 800377C4 00033604 91 8B 80 00 */ stw r12, -0x8000(r11)
|
|
|
|
/* 800377C8 00033608 B0 03 00 02 */ sth r0, 0x2(r3)
|
|
|
|
/* 800377CC 0003360C 83 E1 00 0C */ lwz r31, 0xc(r1)
|
|
|
|
/* 800377D0 00033610 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 800377D4 00033614 4E 80 00 20 */ blr
|
|
|
|
/* 800377D8 00033618 00 00 00 00 */ .4byte 0x00000000
|
|
|
|
/* 800377DC 0003361C 00 00 00 00 */ .4byte 0x00000000
|
2022-10-16 16:31:36 +00:00
|
|
|
.global GXSetIndTexMtx
|
|
|
|
GXSetIndTexMtx:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800377E0 00033620 38 C3 FF FF */ addi r6, r3, -0x1
|
|
|
|
/* 800377E4 00033624 94 21 FF C0 */ stwu r1, -0x40(r1)
|
|
|
|
/* 800377E8 00033628 28 06 00 02 */ cmplwi r6, 0x2
|
|
|
|
/* 800377EC 0003362C 40 81 00 30 */ ble lbl_8003781C
|
|
|
|
/* 800377F0 00033630 38 C3 FF FB */ addi r6, r3, -0x5
|
|
|
|
/* 800377F4 00033634 28 06 00 02 */ cmplwi r6, 0x2
|
|
|
|
/* 800377F8 00033638 40 81 00 24 */ ble lbl_8003781C
|
|
|
|
/* 800377FC 0003363C 38 C3 FF F7 */ addi r6, r3, -0x9
|
|
|
|
/* 80037800 00033640 28 06 00 02 */ cmplwi r6, 0x2
|
|
|
|
/* 80037804 00033644 40 81 00 18 */ ble lbl_8003781C
|
|
|
|
/* 80037808 00033648 48 00 00 10 */ b lbl_80037818
|
|
|
|
/* 8003780C 0003364C 48 00 00 10 */ b lbl_8003781C
|
|
|
|
/* 80037810 00033650 48 00 00 0C */ b lbl_8003781C
|
|
|
|
/* 80037814 00033654 48 00 00 08 */ b lbl_8003781C
|
|
|
|
.global lbl_80037818
|
|
|
|
lbl_80037818:
|
|
|
|
/* 80037818 00033658 38 C0 00 00 */ li r6, 0x0
|
|
|
|
.global lbl_8003781C
|
|
|
|
lbl_8003781C:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 8003781C 0003365C C0 C2 86 A8 */ lfs f6, "@2555_8055E628"@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037820 00033660 54 C0 10 3A */ slwi r0, r6, 2
|
|
|
|
/* 80037824 00033664 C0 24 00 00 */ lfs f1, 0x0(r4)
|
|
|
|
/* 80037828 00033668 7D 46 00 50 */ subf r10, r6, r0
|
|
|
|
/* 8003782C 0003366C C0 04 00 0C */ lfs f0, 0xc(r4)
|
|
|
|
/* 80037830 00033670 39 25 00 11 */ addi r9, r5, 0x11
|
|
|
|
/* 80037834 00033674 EC 26 00 72 */ fmuls f1, f6, f1
|
|
|
|
/* 80037838 00033678 C0 64 00 04 */ lfs f3, 0x4(r4)
|
|
|
|
/* 8003783C 0003367C EC 06 00 32 */ fmuls f0, f6, f0
|
|
|
|
/* 80037840 00033680 C0 44 00 10 */ lfs f2, 0x10(r4)
|
|
|
|
/* 80037844 00033684 EC 66 00 F2 */ fmuls f3, f6, f3
|
|
|
|
/* 80037848 00033688 3C E0 CC 01 */ lis r7, 0xCC008000@ha
|
|
|
|
/* 8003784C 0003368C FC A0 08 1E */ fctiwz f5, f1
|
|
|
|
/* 80037850 00033690 C0 24 00 08 */ lfs f1, 0x8(r4)
|
|
|
|
/* 80037854 00033694 FC 80 00 1E */ fctiwz f4, f0
|
|
|
|
/* 80037858 00033698 C0 04 00 14 */ lfs f0, 0x14(r4)
|
|
|
|
/* 8003785C 0003369C D8 A1 00 08 */ stfd f5, 0x8(r1)
|
|
|
|
/* 80037860 000336A0 EC 46 00 B2 */ fmuls f2, f6, f2
|
|
|
|
/* 80037864 000336A4 39 00 00 61 */ li r8, 0x61
|
|
|
|
/* 80037868 000336A8 FC 60 18 1E */ fctiwz f3, f3
|
|
|
|
/* 8003786C 000336AC FC 40 10 1E */ fctiwz f2, f2
|
|
|
|
/* 80037870 000336B0 D8 81 00 10 */ stfd f4, 0x10(r1)
|
|
|
|
/* 80037874 000336B4 EC 26 00 72 */ fmuls f1, f6, f1
|
|
|
|
/* 80037878 000336B8 80 01 00 0C */ lwz r0, 0xc(r1)
|
|
|
|
/* 8003787C 000336BC 38 A0 00 00 */ li r5, 0x0
|
|
|
|
/* 80037880 000336C0 50 05 05 7E */ rlwimi r5, r0, 0, 21, 31
|
|
|
|
/* 80037884 000336C4 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 80037888 000336C8 EC 06 00 32 */ fmuls f0, f6, f0
|
|
|
|
/* 8003788C 000336CC D8 61 00 18 */ stfd f3, 0x18(r1)
|
|
|
|
/* 80037890 000336D0 FC 20 08 1E */ fctiwz f1, f1
|
|
|
|
/* 80037894 000336D4 50 05 5A A8 */ rlwimi r5, r0, 11, 10, 20
|
|
|
|
/* 80037898 000336D8 38 8A 00 06 */ addi r4, r10, 0x6
|
|
|
|
/* 8003789C 000336DC D8 41 00 20 */ stfd f2, 0x20(r1)
|
|
|
|
/* 800378A0 000336E0 51 25 B2 12 */ rlwimi r5, r9, 22, 8, 9
|
|
|
|
/* 800378A4 000336E4 FC 00 00 1E */ fctiwz f0, f0
|
|
|
|
/* 800378A8 000336E8 50 85 C0 0E */ rlwimi r5, r4, 24, 0, 7
|
|
|
|
/* 800378AC 000336EC 99 07 80 00 */ stb r8, 0xCC008000@l(r7)
|
|
|
|
/* 800378B0 000336F0 80 61 00 1C */ lwz r3, 0x1c(r1)
|
|
|
|
/* 800378B4 000336F4 38 C0 00 00 */ li r6, 0x0
|
|
|
|
/* 800378B8 000336F8 90 A7 80 00 */ stw r5, -0x8000(r7)
|
|
|
|
/* 800378BC 000336FC 80 01 00 24 */ lwz r0, 0x24(r1)
|
|
|
|
/* 800378C0 00033700 50 66 05 7E */ rlwimi r6, r3, 0, 21, 31
|
|
|
|
/* 800378C4 00033704 D8 21 00 28 */ stfd f1, 0x28(r1)
|
|
|
|
/* 800378C8 00033708 38 8A 00 07 */ addi r4, r10, 0x7
|
|
|
|
/* 800378CC 0003370C 50 06 5A A8 */ rlwimi r6, r0, 11, 10, 20
|
|
|
|
/* 800378D0 00033710 38 A0 00 00 */ li r5, 0x0
|
|
|
|
/* 800378D4 00033714 D8 01 00 30 */ stfd f0, 0x30(r1)
|
|
|
|
/* 800378D8 00033718 51 26 A2 12 */ rlwimi r6, r9, 20, 8, 9
|
|
|
|
/* 800378DC 0003371C 50 86 C0 0E */ rlwimi r6, r4, 24, 0, 7
|
|
|
|
/* 800378E0 00033720 80 61 00 2C */ lwz r3, 0x2c(r1)
|
|
|
|
/* 800378E4 00033724 99 07 80 00 */ stb r8, -0x8000(r7)
|
|
|
|
/* 800378E8 00033728 38 8A 00 08 */ addi r4, r10, 0x8
|
|
|
|
/* 800378EC 0003372C 50 65 05 7E */ rlwimi r5, r3, 0, 21, 31
|
|
|
|
/* 800378F0 00033730 80 01 00 34 */ lwz r0, 0x34(r1)
|
|
|
|
/* 800378F4 00033734 90 C7 80 00 */ stw r6, -0x8000(r7)
|
|
|
|
/* 800378F8 00033738 50 05 5A A8 */ rlwimi r5, r0, 11, 10, 20
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800378FC 0003373C 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037900 00033740 51 25 92 12 */ rlwimi r5, r9, 18, 8, 9
|
|
|
|
/* 80037904 00033744 99 07 80 00 */ stb r8, -0x8000(r7)
|
|
|
|
/* 80037908 00033748 50 85 C0 0E */ rlwimi r5, r4, 24, 0, 7
|
|
|
|
/* 8003790C 0003374C 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 80037910 00033750 90 A7 80 00 */ stw r5, -0x8000(r7)
|
|
|
|
/* 80037914 00033754 B0 03 00 02 */ sth r0, 0x2(r3)
|
|
|
|
/* 80037918 00033758 38 21 00 40 */ addi r1, r1, 0x40
|
|
|
|
/* 8003791C 0003375C 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global GXSetIndTexCoordScale
|
|
|
|
GXSetIndTexCoordScale:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037920 00033760 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 80037924 00033764 41 82 00 20 */ beq lbl_80037944
|
|
|
|
/* 80037928 00033768 2C 03 00 01 */ cmpwi r3, 0x1
|
|
|
|
/* 8003792C 0003376C 41 82 00 4C */ beq lbl_80037978
|
|
|
|
/* 80037930 00033770 2C 03 00 02 */ cmpwi r3, 0x2
|
|
|
|
/* 80037934 00033774 41 82 00 78 */ beq lbl_800379AC
|
|
|
|
/* 80037938 00033778 2C 03 00 03 */ cmpwi r3, 0x3
|
|
|
|
/* 8003793C 0003377C 41 82 00 A4 */ beq lbl_800379E0
|
|
|
|
/* 80037940 00033780 48 00 00 D0 */ b lbl_80037A10
|
|
|
|
.global lbl_80037944
|
|
|
|
lbl_80037944:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80037944 00033784 81 02 86 08 */ lwz r8, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037948 00033788 38 C0 00 25 */ li r6, 0x25
|
|
|
|
/* 8003794C 0003378C 3C 60 CC 01 */ lis r3, 0xCC008000@ha
|
|
|
|
/* 80037950 00033790 38 00 00 61 */ li r0, 0x61
|
|
|
|
/* 80037954 00033794 80 E8 01 78 */ lwz r7, 0x178(r8)
|
|
|
|
/* 80037958 00033798 50 87 07 3E */ rlwimi r7, r4, 0, 28, 31
|
|
|
|
/* 8003795C 0003379C 50 A7 26 36 */ rlwimi r7, r5, 4, 24, 27
|
|
|
|
/* 80037960 000337A0 50 C7 C0 0E */ rlwimi r7, r6, 24, 0, 7
|
|
|
|
/* 80037964 000337A4 90 E8 01 78 */ stw r7, 0x178(r8)
|
|
|
|
/* 80037968 000337A8 98 03 80 00 */ stb r0, 0xCC008000@l(r3)
|
|
|
|
/* 8003796C 000337AC 80 08 01 78 */ lwz r0, 0x178(r8)
|
|
|
|
/* 80037970 000337B0 90 03 80 00 */ stw r0, -0x8000(r3)
|
|
|
|
/* 80037974 000337B4 48 00 00 9C */ b lbl_80037A10
|
|
|
|
.global lbl_80037978
|
|
|
|
lbl_80037978:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80037978 000337B8 81 02 86 08 */ lwz r8, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 8003797C 000337BC 38 C0 00 25 */ li r6, 0x25
|
|
|
|
/* 80037980 000337C0 3C 60 CC 01 */ lis r3, 0xCC008000@ha
|
|
|
|
/* 80037984 000337C4 38 00 00 61 */ li r0, 0x61
|
|
|
|
/* 80037988 000337C8 80 E8 01 78 */ lwz r7, 0x178(r8)
|
|
|
|
/* 8003798C 000337CC 50 87 45 2E */ rlwimi r7, r4, 8, 20, 23
|
|
|
|
/* 80037990 000337D0 50 A7 64 26 */ rlwimi r7, r5, 12, 16, 19
|
|
|
|
/* 80037994 000337D4 50 C7 C0 0E */ rlwimi r7, r6, 24, 0, 7
|
|
|
|
/* 80037998 000337D8 90 E8 01 78 */ stw r7, 0x178(r8)
|
|
|
|
/* 8003799C 000337DC 98 03 80 00 */ stb r0, 0xCC008000@l(r3)
|
|
|
|
/* 800379A0 000337E0 80 08 01 78 */ lwz r0, 0x178(r8)
|
|
|
|
/* 800379A4 000337E4 90 03 80 00 */ stw r0, -0x8000(r3)
|
|
|
|
/* 800379A8 000337E8 48 00 00 68 */ b lbl_80037A10
|
|
|
|
.global lbl_800379AC
|
|
|
|
lbl_800379AC:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800379AC 000337EC 81 02 86 08 */ lwz r8, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800379B0 000337F0 38 C0 00 26 */ li r6, 0x26
|
|
|
|
/* 800379B4 000337F4 3C 60 CC 01 */ lis r3, 0xCC008000@ha
|
|
|
|
/* 800379B8 000337F8 38 00 00 61 */ li r0, 0x61
|
|
|
|
/* 800379BC 000337FC 80 E8 01 7C */ lwz r7, 0x17c(r8)
|
|
|
|
/* 800379C0 00033800 50 87 07 3E */ rlwimi r7, r4, 0, 28, 31
|
|
|
|
/* 800379C4 00033804 50 A7 26 36 */ rlwimi r7, r5, 4, 24, 27
|
|
|
|
/* 800379C8 00033808 50 C7 C0 0E */ rlwimi r7, r6, 24, 0, 7
|
|
|
|
/* 800379CC 0003380C 90 E8 01 7C */ stw r7, 0x17c(r8)
|
|
|
|
/* 800379D0 00033810 98 03 80 00 */ stb r0, 0xCC008000@l(r3)
|
|
|
|
/* 800379D4 00033814 80 08 01 7C */ lwz r0, 0x17c(r8)
|
|
|
|
/* 800379D8 00033818 90 03 80 00 */ stw r0, -0x8000(r3)
|
|
|
|
/* 800379DC 0003381C 48 00 00 34 */ b lbl_80037A10
|
|
|
|
.global lbl_800379E0
|
|
|
|
lbl_800379E0:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 800379E0 00033820 81 02 86 08 */ lwz r8, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 800379E4 00033824 38 C0 00 26 */ li r6, 0x26
|
|
|
|
/* 800379E8 00033828 3C 60 CC 01 */ lis r3, 0xCC008000@ha
|
|
|
|
/* 800379EC 0003382C 38 00 00 61 */ li r0, 0x61
|
|
|
|
/* 800379F0 00033830 80 E8 01 7C */ lwz r7, 0x17c(r8)
|
|
|
|
/* 800379F4 00033834 50 87 45 2E */ rlwimi r7, r4, 8, 20, 23
|
|
|
|
/* 800379F8 00033838 50 A7 64 26 */ rlwimi r7, r5, 12, 16, 19
|
|
|
|
/* 800379FC 0003383C 50 C7 C0 0E */ rlwimi r7, r6, 24, 0, 7
|
|
|
|
/* 80037A00 00033840 90 E8 01 7C */ stw r7, 0x17c(r8)
|
|
|
|
/* 80037A04 00033844 98 03 80 00 */ stb r0, 0xCC008000@l(r3)
|
|
|
|
/* 80037A08 00033848 80 08 01 7C */ lwz r0, 0x17c(r8)
|
|
|
|
/* 80037A0C 0003384C 90 03 80 00 */ stw r0, -0x8000(r3)
|
|
|
|
.global lbl_80037A10
|
|
|
|
lbl_80037A10:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80037A10 00033850 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037A14 00033854 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 80037A18 00033858 B0 03 00 02 */ sth r0, 0x2(r3)
|
|
|
|
/* 80037A1C 0003385C 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global GXSetIndTexOrder
|
|
|
|
GXSetIndTexOrder:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037A20 00033860 2C 05 00 FF */ cmpwi r5, 0xff
|
|
|
|
/* 80037A24 00033864 40 82 00 08 */ bne lbl_80037A2C
|
|
|
|
/* 80037A28 00033868 38 A0 00 00 */ li r5, 0x0
|
|
|
|
.global lbl_80037A2C
|
|
|
|
lbl_80037A2C:
|
|
|
|
/* 80037A2C 0003386C 2C 04 00 FF */ cmpwi r4, 0xff
|
|
|
|
/* 80037A30 00033870 40 82 00 08 */ bne lbl_80037A38
|
|
|
|
/* 80037A34 00033874 38 80 00 00 */ li r4, 0x0
|
|
|
|
.global lbl_80037A38
|
|
|
|
lbl_80037A38:
|
|
|
|
/* 80037A38 00033878 2C 03 00 00 */ cmpwi r3, 0x0
|
|
|
|
/* 80037A3C 0003387C 41 82 00 20 */ beq lbl_80037A5C
|
|
|
|
/* 80037A40 00033880 2C 03 00 01 */ cmpwi r3, 0x1
|
|
|
|
/* 80037A44 00033884 41 82 00 30 */ beq lbl_80037A74
|
|
|
|
/* 80037A48 00033888 2C 03 00 02 */ cmpwi r3, 0x2
|
|
|
|
/* 80037A4C 0003388C 41 82 00 40 */ beq lbl_80037A8C
|
|
|
|
/* 80037A50 00033890 2C 03 00 03 */ cmpwi r3, 0x3
|
|
|
|
/* 80037A54 00033894 41 82 00 50 */ beq lbl_80037AA4
|
|
|
|
/* 80037A58 00033898 48 00 00 60 */ b lbl_80037AB8
|
|
|
|
.global lbl_80037A5C
|
|
|
|
lbl_80037A5C:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80037A5C 0003389C 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037A60 000338A0 80 03 01 70 */ lwz r0, 0x170(r3)
|
|
|
|
/* 80037A64 000338A4 50 A0 07 7E */ rlwimi r0, r5, 0, 29, 31
|
|
|
|
/* 80037A68 000338A8 50 80 1E B8 */ rlwimi r0, r4, 3, 26, 28
|
|
|
|
/* 80037A6C 000338AC 90 03 01 70 */ stw r0, 0x170(r3)
|
|
|
|
/* 80037A70 000338B0 48 00 00 48 */ b lbl_80037AB8
|
|
|
|
.global lbl_80037A74
|
|
|
|
lbl_80037A74:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80037A74 000338B4 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037A78 000338B8 80 03 01 70 */ lwz r0, 0x170(r3)
|
|
|
|
/* 80037A7C 000338BC 50 A0 35 F2 */ rlwimi r0, r5, 6, 23, 25
|
|
|
|
/* 80037A80 000338C0 50 80 4D 2C */ rlwimi r0, r4, 9, 20, 22
|
|
|
|
/* 80037A84 000338C4 90 03 01 70 */ stw r0, 0x170(r3)
|
|
|
|
/* 80037A88 000338C8 48 00 00 30 */ b lbl_80037AB8
|
|
|
|
.global lbl_80037A8C
|
|
|
|
lbl_80037A8C:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80037A8C 000338CC 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037A90 000338D0 80 03 01 70 */ lwz r0, 0x170(r3)
|
|
|
|
/* 80037A94 000338D4 50 A0 64 66 */ rlwimi r0, r5, 12, 17, 19
|
|
|
|
/* 80037A98 000338D8 50 80 7B A0 */ rlwimi r0, r4, 15, 14, 16
|
|
|
|
/* 80037A9C 000338DC 90 03 01 70 */ stw r0, 0x170(r3)
|
|
|
|
/* 80037AA0 000338E0 48 00 00 18 */ b lbl_80037AB8
|
|
|
|
.global lbl_80037AA4
|
|
|
|
lbl_80037AA4:
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80037AA4 000338E4 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037AA8 000338E8 80 03 01 70 */ lwz r0, 0x170(r3)
|
|
|
|
/* 80037AAC 000338EC 50 A0 92 DA */ rlwimi r0, r5, 18, 11, 13
|
|
|
|
/* 80037AB0 000338F0 50 80 AA 14 */ rlwimi r0, r4, 21, 8, 10
|
|
|
|
/* 80037AB4 000338F4 90 03 01 70 */ stw r0, 0x170(r3)
|
|
|
|
.global lbl_80037AB8
|
|
|
|
lbl_80037AB8:
|
|
|
|
/* 80037AB8 000338F8 3C 80 CC 01 */ lis r4, 0xCC008000@ha
|
|
|
|
/* 80037ABC 000338FC 38 00 00 61 */ li r0, 0x61
|
|
|
|
/* 80037AC0 00033900 98 04 80 00 */ stb r0, 0xCC008000@l(r4)
|
|
|
|
/* 80037AC4 00033904 38 00 00 00 */ li r0, 0x0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80037AC8 00033908 80 A2 86 08 */ lwz r5, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037ACC 0003390C 80 65 01 70 */ lwz r3, 0x170(r5)
|
|
|
|
/* 80037AD0 00033910 90 64 80 00 */ stw r3, -0x8000(r4)
|
|
|
|
/* 80037AD4 00033914 80 65 05 FC */ lwz r3, 0x5fc(r5)
|
|
|
|
/* 80037AD8 00033918 60 63 00 03 */ ori r3, r3, 0x3
|
|
|
|
/* 80037ADC 0003391C 90 65 05 FC */ stw r3, 0x5fc(r5)
|
|
|
|
/* 80037AE0 00033920 B0 05 00 02 */ sth r0, 0x2(r5)
|
|
|
|
/* 80037AE4 00033924 4E 80 00 20 */ blr
|
|
|
|
/* 80037AE8 00033928 00 00 00 00 */ .4byte 0x00000000
|
|
|
|
/* 80037AEC 0003392C 00 00 00 00 */ .4byte 0x00000000
|
2022-10-16 16:31:36 +00:00
|
|
|
.global GXSetNumIndStages
|
|
|
|
GXSetNumIndStages:
|
|
|
|
/* 80037AF0 00033930 80 82 86 08 */ lwz r4, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037AF4 00033934 80 04 02 54 */ lwz r0, 0x254(r4)
|
|
|
|
/* 80037AF8 00033938 50 60 83 5E */ rlwimi r0, r3, 16, 13, 15
|
|
|
|
/* 80037AFC 0003393C 90 04 02 54 */ stw r0, 0x254(r4)
|
|
|
|
/* 80037B00 00033940 80 04 05 FC */ lwz r0, 0x5fc(r4)
|
|
|
|
/* 80037B04 00033944 60 00 00 06 */ ori r0, r0, 0x6
|
|
|
|
/* 80037B08 00033948 90 04 05 FC */ stw r0, 0x5fc(r4)
|
|
|
|
/* 80037B0C 0003394C 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global GXSetTevDirect
|
|
|
|
GXSetTevDirect:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037B10 00033950 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
|
|
/* 80037B14 00033954 7C 08 02 A6 */ mflr r0
|
|
|
|
/* 80037B18 00033958 38 80 00 00 */ li r4, 0x0
|
|
|
|
/* 80037B1C 0003395C 38 A0 00 00 */ li r5, 0x0
|
|
|
|
/* 80037B20 00033960 90 01 00 14 */ stw r0, 0x14(r1)
|
|
|
|
/* 80037B24 00033964 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 80037B28 00033968 38 C0 00 00 */ li r6, 0x0
|
|
|
|
/* 80037B2C 0003396C 38 E0 00 00 */ li r7, 0x0
|
|
|
|
/* 80037B30 00033970 90 01 00 08 */ stw r0, 0x8(r1)
|
|
|
|
/* 80037B34 00033974 39 00 00 00 */ li r8, 0x0
|
|
|
|
/* 80037B38 00033978 39 20 00 00 */ li r9, 0x0
|
|
|
|
/* 80037B3C 0003397C 39 40 00 00 */ li r10, 0x0
|
|
|
|
/* 80037B40 00033980 90 01 00 0C */ stw r0, 0xc(r1)
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80037B44 00033984 4B FF FC 2D */ bl GXSetTevIndirect
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037B48 00033988 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
|
|
/* 80037B4C 0003398C 7C 08 03 A6 */ mtlr r0
|
|
|
|
/* 80037B50 00033990 38 21 00 10 */ addi r1, r1, 0x10
|
|
|
|
/* 80037B54 00033994 4E 80 00 20 */ blr
|
|
|
|
/* 80037B58 00033998 00 00 00 00 */ .4byte 0x00000000
|
|
|
|
/* 80037B5C 0003399C 00 00 00 00 */ .4byte 0x00000000
|
2022-10-16 16:31:36 +00:00
|
|
|
.global __GXSetIndirectMask
|
|
|
|
__GXSetIndirectMask:
|
|
|
|
/* 80037B60 000339A0 80 E2 86 08 */ lwz r7, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037B64 000339A4 3C 80 CC 01 */ lis r4, 0xCC008000@ha
|
|
|
|
/* 80037B68 000339A8 38 A0 00 61 */ li r5, 0x61
|
|
|
|
/* 80037B6C 000339AC 38 00 00 00 */ li r0, 0x0
|
|
|
|
/* 80037B70 000339B0 80 C7 01 74 */ lwz r6, 0x174(r7)
|
|
|
|
/* 80037B74 000339B4 50 66 06 3E */ rlwimi r6, r3, 0, 24, 31
|
|
|
|
/* 80037B78 000339B8 90 C7 01 74 */ stw r6, 0x174(r7)
|
|
|
|
/* 80037B7C 000339BC 98 A4 80 00 */ stb r5, 0xCC008000@l(r4)
|
|
|
|
/* 80037B80 000339C0 80 67 01 74 */ lwz r3, 0x174(r7)
|
|
|
|
/* 80037B84 000339C4 90 64 80 00 */ stw r3, -0x8000(r4)
|
|
|
|
/* 80037B88 000339C8 B0 07 00 02 */ sth r0, 0x2(r7)
|
|
|
|
/* 80037B8C 000339CC 4E 80 00 20 */ blr
|
2022-10-16 16:31:36 +00:00
|
|
|
.global __GXFlushTextureState
|
|
|
|
__GXFlushTextureState:
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037B90 000339D0 3C 80 CC 01 */ lis r4, 0xCC008000@ha
|
|
|
|
/* 80037B94 000339D4 38 00 00 61 */ li r0, 0x61
|
|
|
|
/* 80037B98 000339D8 98 04 80 00 */ stb r0, 0xCC008000@l(r4)
|
|
|
|
/* 80037B9C 000339DC 38 00 00 00 */ li r0, 0x0
|
2022-10-16 16:31:36 +00:00
|
|
|
/* 80037BA0 000339E0 80 A2 86 08 */ lwz r5, __GXData@sda21(r2)
|
2022-10-16 16:05:58 +00:00
|
|
|
/* 80037BA4 000339E4 80 65 01 74 */ lwz r3, 0x174(r5)
|
|
|
|
/* 80037BA8 000339E8 90 64 80 00 */ stw r3, -0x8000(r4)
|
|
|
|
/* 80037BAC 000339EC B0 05 00 02 */ sth r0, 0x2(r5)
|
|
|
|
/* 80037BB0 000339F0 4E 80 00 20 */ blr
|
|
|
|
/* 80037BB4 000339F4 00 00 00 00 */ .4byte 0x00000000
|
|
|
|
/* 80037BB8 000339F8 00 00 00 00 */ .4byte 0x00000000
|
|
|
|
/* 80037BBC 000339FC 00 00 00 00 */ .4byte 0x00000000
|