summaryrefslogtreecommitdiff
path: root/asm/Dolphin/gx/GXAttr.s
blob: 2fa91aeab949bbdfeb6e36a10fa26b2b8e6c7670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
.include "macros.inc"

.section .text, "ax"  # 0x80005600 - 0x8036FBA0
.global __GXXfVtxSpecs
__GXXfVtxSpecs:
/* 800A6790 000A36D0  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6794 000A36D4  80 85 00 14 */	lwz r4, 0x14(r5)
/* 800A6798 000A36D8  54 80 9F BF */	rlwinm. r0, r4, 0x13, 0x1e, 0x1f
/* 800A679C 000A36DC  41 82 00 0C */	beq lbl_800A67A8
/* 800A67A0 000A36E0  38 60 00 01 */	li r3, 1
/* 800A67A4 000A36E4  48 00 00 08 */	b lbl_800A67AC
lbl_800A67A8:
/* 800A67A8 000A36E8  38 60 00 00 */	li r3, 0
lbl_800A67AC:
/* 800A67AC 000A36EC  54 80 8F BF */	rlwinm. r0, r4, 0x11, 0x1e, 0x1f
/* 800A67B0 000A36F0  41 82 00 0C */	beq lbl_800A67BC
/* 800A67B4 000A36F4  38 80 00 01 */	li r4, 1
/* 800A67B8 000A36F8  48 00 00 08 */	b lbl_800A67C0
lbl_800A67BC:
/* 800A67BC 000A36FC  38 80 00 00 */	li r4, 0
lbl_800A67C0:
/* 800A67C0 000A3700  88 05 04 1D */	lbz r0, 0x41d(r5)
/* 800A67C4 000A3704  7C E3 22 14 */	add r7, r3, r4
/* 800A67C8 000A3708  28 00 00 00 */	cmplwi r0, 0
/* 800A67CC 000A370C  41 82 00 0C */	beq lbl_800A67D8
/* 800A67D0 000A3710  38 80 00 02 */	li r4, 2
/* 800A67D4 000A3714  48 00 00 1C */	b lbl_800A67F0
lbl_800A67D8:
/* 800A67D8 000A3718  88 05 04 1C */	lbz r0, 0x41c(r5)
/* 800A67DC 000A371C  28 00 00 00 */	cmplwi r0, 0
/* 800A67E0 000A3720  41 82 00 0C */	beq lbl_800A67EC
/* 800A67E4 000A3724  38 80 00 01 */	li r4, 1
/* 800A67E8 000A3728  48 00 00 08 */	b lbl_800A67F0
lbl_800A67EC:
/* 800A67EC 000A372C  38 80 00 00 */	li r4, 0
lbl_800A67F0:
/* 800A67F0 000A3730  80 C5 00 18 */	lwz r6, 0x18(r5)
/* 800A67F4 000A3734  54 C0 07 BF */	clrlwi. r0, r6, 0x1e
/* 800A67F8 000A3738  41 82 00 0C */	beq lbl_800A6804
/* 800A67FC 000A373C  38 60 00 01 */	li r3, 1
/* 800A6800 000A3740  48 00 00 08 */	b lbl_800A6808
lbl_800A6804:
/* 800A6804 000A3744  38 60 00 00 */	li r3, 0
lbl_800A6808:
/* 800A6808 000A3748  54 C0 F7 BF */	rlwinm. r0, r6, 0x1e, 0x1e, 0x1f
/* 800A680C 000A374C  41 82 00 0C */	beq lbl_800A6818
/* 800A6810 000A3750  38 A0 00 01 */	li r5, 1
/* 800A6814 000A3754  48 00 00 08 */	b lbl_800A681C
lbl_800A6818:
/* 800A6818 000A3758  38 A0 00 00 */	li r5, 0
lbl_800A681C:
/* 800A681C 000A375C  54 C0 E7 BF */	rlwinm. r0, r6, 0x1c, 0x1e, 0x1f
/* 800A6820 000A3760  7D 03 2A 14 */	add r8, r3, r5
/* 800A6824 000A3764  41 82 00 0C */	beq lbl_800A6830
/* 800A6828 000A3768  38 60 00 01 */	li r3, 1
/* 800A682C 000A376C  48 00 00 08 */	b lbl_800A6834
lbl_800A6830:
/* 800A6830 000A3770  38 60 00 00 */	li r3, 0
lbl_800A6834:
/* 800A6834 000A3774  54 C0 D7 BF */	rlwinm. r0, r6, 0x1a, 0x1e, 0x1f
/* 800A6838 000A3778  7D 08 1A 14 */	add r8, r8, r3
/* 800A683C 000A377C  41 82 00 0C */	beq lbl_800A6848
/* 800A6840 000A3780  38 60 00 01 */	li r3, 1
/* 800A6844 000A3784  48 00 00 08 */	b lbl_800A684C
lbl_800A6848:
/* 800A6848 000A3788  38 60 00 00 */	li r3, 0
lbl_800A684C:
/* 800A684C 000A378C  54 C0 C7 BF */	rlwinm. r0, r6, 0x18, 0x1e, 0x1f
/* 800A6850 000A3790  7D 08 1A 14 */	add r8, r8, r3
/* 800A6854 000A3794  41 82 00 0C */	beq lbl_800A6860
/* 800A6858 000A3798  38 60 00 01 */	li r3, 1
/* 800A685C 000A379C  48 00 00 08 */	b lbl_800A6864
lbl_800A6860:
/* 800A6860 000A37A0  38 60 00 00 */	li r3, 0
lbl_800A6864:
/* 800A6864 000A37A4  54 C0 B7 BF */	rlwinm. r0, r6, 0x16, 0x1e, 0x1f
/* 800A6868 000A37A8  7D 08 1A 14 */	add r8, r8, r3
/* 800A686C 000A37AC  41 82 00 0C */	beq lbl_800A6878
/* 800A6870 000A37B0  38 60 00 01 */	li r3, 1
/* 800A6874 000A37B4  48 00 00 08 */	b lbl_800A687C
lbl_800A6878:
/* 800A6878 000A37B8  38 60 00 00 */	li r3, 0
lbl_800A687C:
/* 800A687C 000A37BC  54 C0 A7 BF */	rlwinm. r0, r6, 0x14, 0x1e, 0x1f
/* 800A6880 000A37C0  7D 08 1A 14 */	add r8, r8, r3
/* 800A6884 000A37C4  41 82 00 0C */	beq lbl_800A6890
/* 800A6888 000A37C8  38 60 00 01 */	li r3, 1
/* 800A688C 000A37CC  48 00 00 08 */	b lbl_800A6894
lbl_800A6890:
/* 800A6890 000A37D0  38 60 00 00 */	li r3, 0
lbl_800A6894:
/* 800A6894 000A37D4  54 C0 97 BF */	rlwinm. r0, r6, 0x12, 0x1e, 0x1f
/* 800A6898 000A37D8  7D 08 1A 14 */	add r8, r8, r3
/* 800A689C 000A37DC  41 82 00 0C */	beq lbl_800A68A8
/* 800A68A0 000A37E0  38 C0 00 01 */	li r6, 1
/* 800A68A4 000A37E4  48 00 00 08 */	b lbl_800A68AC
lbl_800A68A8:
/* 800A68A8 000A37E8  38 C0 00 00 */	li r6, 0
lbl_800A68AC:
/* 800A68AC 000A37EC  38 00 00 10 */	li r0, 0x10
/* 800A68B0 000A37F0  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A68B4 000A37F4  3C A0 CC 01 */	lis r5, 0xCC008000@ha
/* 800A68B8 000A37F8  7D 08 32 14 */	add r8, r8, r6
/* 800A68BC 000A37FC  98 05 80 00 */	stb r0, 0xCC008000@l(r5)
/* 800A68C0 000A3800  54 80 10 3A */	slwi r0, r4, 2
/* 800A68C4 000A3804  38 80 10 08 */	li r4, 0x1008
/* 800A68C8 000A3808  90 85 80 00 */	stw r4, -0x8000(r5)
/* 800A68CC 000A380C  55 04 20 36 */	slwi r4, r8, 4
/* 800A68D0 000A3810  7C E0 03 78 */	or r0, r7, r0
/* 800A68D4 000A3814  7C 80 03 78 */	or r0, r4, r0
/* 800A68D8 000A3818  90 05 80 00 */	stw r0, -0x8000(r5)
/* 800A68DC 000A381C  38 00 00 01 */	li r0, 1
/* 800A68E0 000A3820  B0 03 00 02 */	sth r0, 2(r3)
/* 800A68E4 000A3824  4E 80 00 20 */	blr 

.global GXSetVtxDesc
GXSetVtxDesc:
/* 800A68E8 000A3828  28 03 00 19 */	cmplwi r3, 0x19
/* 800A68EC 000A382C  41 81 03 00 */	bgt lbl_800A6BEC
/* 800A68F0 000A3830  3C A0 80 3B */	lis r5, "@128"@ha
/* 800A68F4 000A3834  38 A5 15 40 */	addi r5, r5, "@128"@l
/* 800A68F8 000A3838  54 60 10 3A */	slwi r0, r3, 2
/* 800A68FC 000A383C  7C 05 00 2E */	lwzx r0, r5, r0
/* 800A6900 000A3840  7C 09 03 A6 */	mtctr r0
/* 800A6904 000A3844  4E 80 04 20 */	bctr 
lbl_800A6908:
/* 800A6908 000A3848  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A690C 000A384C  84 03 00 14 */	lwzu r0, 0x14(r3)
/* 800A6910 000A3850  54 00 00 3C */	rlwinm r0, r0, 0, 0, 0x1e
/* 800A6914 000A3854  7C 00 23 78 */	or r0, r0, r4
/* 800A6918 000A3858  90 03 00 00 */	stw r0, 0(r3)
/* 800A691C 000A385C  48 00 02 D0 */	b lbl_800A6BEC
lbl_800A6920:
/* 800A6920 000A3860  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6924 000A3864  54 80 08 3C */	slwi r0, r4, 1
/* 800A6928 000A3868  38 83 00 14 */	addi r4, r3, 0x14
/* 800A692C 000A386C  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A6930 000A3870  54 63 07 FA */	rlwinm r3, r3, 0, 0x1f, 0x1d
/* 800A6934 000A3874  7C 60 03 78 */	or r0, r3, r0
/* 800A6938 000A3878  90 04 00 00 */	stw r0, 0(r4)
/* 800A693C 000A387C  48 00 02 B0 */	b lbl_800A6BEC
lbl_800A6940:
/* 800A6940 000A3880  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6944 000A3884  54 80 10 3A */	slwi r0, r4, 2
/* 800A6948 000A3888  38 83 00 14 */	addi r4, r3, 0x14
/* 800A694C 000A388C  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A6950 000A3890  54 63 07 B8 */	rlwinm r3, r3, 0, 0x1e, 0x1c
/* 800A6954 000A3894  7C 60 03 78 */	or r0, r3, r0
/* 800A6958 000A3898  90 04 00 00 */	stw r0, 0(r4)
/* 800A695C 000A389C  48 00 02 90 */	b lbl_800A6BEC
lbl_800A6960:
/* 800A6960 000A38A0  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6964 000A38A4  54 80 18 38 */	slwi r0, r4, 3
/* 800A6968 000A38A8  38 83 00 14 */	addi r4, r3, 0x14
/* 800A696C 000A38AC  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A6970 000A38B0  54 63 07 76 */	rlwinm r3, r3, 0, 0x1d, 0x1b
/* 800A6974 000A38B4  7C 60 03 78 */	or r0, r3, r0
/* 800A6978 000A38B8  90 04 00 00 */	stw r0, 0(r4)
/* 800A697C 000A38BC  48 00 02 70 */	b lbl_800A6BEC
lbl_800A6980:
/* 800A6980 000A38C0  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6984 000A38C4  54 80 20 36 */	slwi r0, r4, 4
/* 800A6988 000A38C8  38 83 00 14 */	addi r4, r3, 0x14
/* 800A698C 000A38CC  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A6990 000A38D0  54 63 07 34 */	rlwinm r3, r3, 0, 0x1c, 0x1a
/* 800A6994 000A38D4  7C 60 03 78 */	or r0, r3, r0
/* 800A6998 000A38D8  90 04 00 00 */	stw r0, 0(r4)
/* 800A699C 000A38DC  48 00 02 50 */	b lbl_800A6BEC
lbl_800A69A0:
/* 800A69A0 000A38E0  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A69A4 000A38E4  54 80 28 34 */	slwi r0, r4, 5
/* 800A69A8 000A38E8  38 83 00 14 */	addi r4, r3, 0x14
/* 800A69AC 000A38EC  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A69B0 000A38F0  54 63 06 F2 */	rlwinm r3, r3, 0, 0x1b, 0x19
/* 800A69B4 000A38F4  7C 60 03 78 */	or r0, r3, r0
/* 800A69B8 000A38F8  90 04 00 00 */	stw r0, 0(r4)
/* 800A69BC 000A38FC  48 00 02 30 */	b lbl_800A6BEC
lbl_800A69C0:
/* 800A69C0 000A3900  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A69C4 000A3904  54 80 30 32 */	slwi r0, r4, 6
/* 800A69C8 000A3908  38 83 00 14 */	addi r4, r3, 0x14
/* 800A69CC 000A390C  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A69D0 000A3910  54 63 06 B0 */	rlwinm r3, r3, 0, 0x1a, 0x18
/* 800A69D4 000A3914  7C 60 03 78 */	or r0, r3, r0
/* 800A69D8 000A3918  90 04 00 00 */	stw r0, 0(r4)
/* 800A69DC 000A391C  48 00 02 10 */	b lbl_800A6BEC
lbl_800A69E0:
/* 800A69E0 000A3920  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A69E4 000A3924  54 80 38 30 */	slwi r0, r4, 7
/* 800A69E8 000A3928  38 83 00 14 */	addi r4, r3, 0x14
/* 800A69EC 000A392C  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A69F0 000A3930  54 63 06 6E */	rlwinm r3, r3, 0, 0x19, 0x17
/* 800A69F4 000A3934  7C 60 03 78 */	or r0, r3, r0
/* 800A69F8 000A3938  90 04 00 00 */	stw r0, 0(r4)
/* 800A69FC 000A393C  48 00 01 F0 */	b lbl_800A6BEC
lbl_800A6A00:
/* 800A6A00 000A3940  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6A04 000A3944  54 80 40 2E */	slwi r0, r4, 8
/* 800A6A08 000A3948  38 83 00 14 */	addi r4, r3, 0x14
/* 800A6A0C 000A394C  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A6A10 000A3950  54 63 06 2C */	rlwinm r3, r3, 0, 0x18, 0x16
/* 800A6A14 000A3954  7C 60 03 78 */	or r0, r3, r0
/* 800A6A18 000A3958  90 04 00 00 */	stw r0, 0(r4)
/* 800A6A1C 000A395C  48 00 01 D0 */	b lbl_800A6BEC
lbl_800A6A20:
/* 800A6A20 000A3960  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6A24 000A3964  54 80 48 2C */	slwi r0, r4, 9
/* 800A6A28 000A3968  38 83 00 14 */	addi r4, r3, 0x14
/* 800A6A2C 000A396C  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A6A30 000A3970  54 63 05 E8 */	rlwinm r3, r3, 0, 0x17, 0x14
/* 800A6A34 000A3974  7C 60 03 78 */	or r0, r3, r0
/* 800A6A38 000A3978  90 04 00 00 */	stw r0, 0(r4)
/* 800A6A3C 000A397C  48 00 01 B0 */	b lbl_800A6BEC
lbl_800A6A40:
/* 800A6A40 000A3980  2C 04 00 00 */	cmpwi r4, 0
/* 800A6A44 000A3984  41 82 00 28 */	beq lbl_800A6A6C
/* 800A6A48 000A3988  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6A4C 000A398C  38 A0 00 01 */	li r5, 1
/* 800A6A50 000A3990  38 00 00 00 */	li r0, 0
/* 800A6A54 000A3994  98 A3 04 1C */	stb r5, 0x41c(r3)
/* 800A6A58 000A3998  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6A5C 000A399C  98 03 04 1D */	stb r0, 0x41d(r3)
/* 800A6A60 000A39A0  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6A64 000A39A4  90 83 04 18 */	stw r4, 0x418(r3)
/* 800A6A68 000A39A8  48 00 01 84 */	b lbl_800A6BEC
lbl_800A6A6C:
/* 800A6A6C 000A39AC  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6A70 000A39B0  38 00 00 00 */	li r0, 0
/* 800A6A74 000A39B4  98 03 04 1C */	stb r0, 0x41c(r3)
/* 800A6A78 000A39B8  48 00 01 74 */	b lbl_800A6BEC
lbl_800A6A7C:
/* 800A6A7C 000A39BC  2C 04 00 00 */	cmpwi r4, 0
/* 800A6A80 000A39C0  41 82 00 28 */	beq lbl_800A6AA8
/* 800A6A84 000A39C4  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6A88 000A39C8  38 A0 00 01 */	li r5, 1
/* 800A6A8C 000A39CC  38 00 00 00 */	li r0, 0
/* 800A6A90 000A39D0  98 A3 04 1D */	stb r5, 0x41d(r3)
/* 800A6A94 000A39D4  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6A98 000A39D8  98 03 04 1C */	stb r0, 0x41c(r3)
/* 800A6A9C 000A39DC  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6AA0 000A39E0  90 83 04 18 */	stw r4, 0x418(r3)
/* 800A6AA4 000A39E4  48 00 01 48 */	b lbl_800A6BEC
lbl_800A6AA8:
/* 800A6AA8 000A39E8  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6AAC 000A39EC  38 00 00 00 */	li r0, 0
/* 800A6AB0 000A39F0  98 03 04 1D */	stb r0, 0x41d(r3)
/* 800A6AB4 000A39F4  48 00 01 38 */	b lbl_800A6BEC
lbl_800A6AB8:
/* 800A6AB8 000A39F8  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6ABC 000A39FC  54 80 68 24 */	slwi r0, r4, 0xd
/* 800A6AC0 000A3A00  38 83 00 14 */	addi r4, r3, 0x14
/* 800A6AC4 000A3A04  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A6AC8 000A3A08  54 63 04 E0 */	rlwinm r3, r3, 0, 0x13, 0x10
/* 800A6ACC 000A3A0C  7C 60 03 78 */	or r0, r3, r0
/* 800A6AD0 000A3A10  90 04 00 00 */	stw r0, 0(r4)
/* 800A6AD4 000A3A14  48 00 01 18 */	b lbl_800A6BEC
lbl_800A6AD8:
/* 800A6AD8 000A3A18  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6ADC 000A3A1C  54 80 78 20 */	slwi r0, r4, 0xf
/* 800A6AE0 000A3A20  38 83 00 14 */	addi r4, r3, 0x14
/* 800A6AE4 000A3A24  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A6AE8 000A3A28  54 63 04 5C */	rlwinm r3, r3, 0, 0x11, 0xe
/* 800A6AEC 000A3A2C  7C 60 03 78 */	or r0, r3, r0
/* 800A6AF0 000A3A30  90 04 00 00 */	stw r0, 0(r4)
/* 800A6AF4 000A3A34  48 00 00 F8 */	b lbl_800A6BEC
lbl_800A6AF8:
/* 800A6AF8 000A3A38  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6AFC 000A3A3C  84 03 00 18 */	lwzu r0, 0x18(r3)
/* 800A6B00 000A3A40  54 00 00 3A */	rlwinm r0, r0, 0, 0, 0x1d
/* 800A6B04 000A3A44  7C 00 23 78 */	or r0, r0, r4
/* 800A6B08 000A3A48  90 03 00 00 */	stw r0, 0(r3)
/* 800A6B0C 000A3A4C  48 00 00 E0 */	b lbl_800A6BEC
lbl_800A6B10:
/* 800A6B10 000A3A50  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6B14 000A3A54  54 80 10 3A */	slwi r0, r4, 2
/* 800A6B18 000A3A58  38 83 00 18 */	addi r4, r3, 0x18
/* 800A6B1C 000A3A5C  80 63 00 18 */	lwz r3, 0x18(r3)
/* 800A6B20 000A3A60  54 63 07 B6 */	rlwinm r3, r3, 0, 0x1e, 0x1b
/* 800A6B24 000A3A64  7C 60 03 78 */	or r0, r3, r0
/* 800A6B28 000A3A68  90 04 00 00 */	stw r0, 0(r4)
/* 800A6B2C 000A3A6C  48 00 00 C0 */	b lbl_800A6BEC
lbl_800A6B30:
/* 800A6B30 000A3A70  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6B34 000A3A74  54 80 20 36 */	slwi r0, r4, 4
/* 800A6B38 000A3A78  38 83 00 18 */	addi r4, r3, 0x18
/* 800A6B3C 000A3A7C  80 63 00 18 */	lwz r3, 0x18(r3)
/* 800A6B40 000A3A80  54 63 07 32 */	rlwinm r3, r3, 0, 0x1c, 0x19
/* 800A6B44 000A3A84  7C 60 03 78 */	or r0, r3, r0
/* 800A6B48 000A3A88  90 04 00 00 */	stw r0, 0(r4)
/* 800A6B4C 000A3A8C  48 00 00 A0 */	b lbl_800A6BEC
lbl_800A6B50:
/* 800A6B50 000A3A90  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6B54 000A3A94  54 80 30 32 */	slwi r0, r4, 6
/* 800A6B58 000A3A98  38 83 00 18 */	addi r4, r3, 0x18
/* 800A6B5C 000A3A9C  80 63 00 18 */	lwz r3, 0x18(r3)
/* 800A6B60 000A3AA0  54 63 06 AE */	rlwinm r3, r3, 0, 0x1a, 0x17
/* 800A6B64 000A3AA4  7C 60 03 78 */	or r0, r3, r0
/* 800A6B68 000A3AA8  90 04 00 00 */	stw r0, 0(r4)
/* 800A6B6C 000A3AAC  48 00 00 80 */	b lbl_800A6BEC
lbl_800A6B70:
/* 800A6B70 000A3AB0  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6B74 000A3AB4  54 80 40 2E */	slwi r0, r4, 8
/* 800A6B78 000A3AB8  38 83 00 18 */	addi r4, r3, 0x18
/* 800A6B7C 000A3ABC  80 63 00 18 */	lwz r3, 0x18(r3)
/* 800A6B80 000A3AC0  54 63 06 2A */	rlwinm r3, r3, 0, 0x18, 0x15
/* 800A6B84 000A3AC4  7C 60 03 78 */	or r0, r3, r0
/* 800A6B88 000A3AC8  90 04 00 00 */	stw r0, 0(r4)
/* 800A6B8C 000A3ACC  48 00 00 60 */	b lbl_800A6BEC
lbl_800A6B90:
/* 800A6B90 000A3AD0  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6B94 000A3AD4  54 80 50 2A */	slwi r0, r4, 0xa
/* 800A6B98 000A3AD8  38 83 00 18 */	addi r4, r3, 0x18
/* 800A6B9C 000A3ADC  80 63 00 18 */	lwz r3, 0x18(r3)
/* 800A6BA0 000A3AE0  54 63 05 A6 */	rlwinm r3, r3, 0, 0x16, 0x13
/* 800A6BA4 000A3AE4  7C 60 03 78 */	or r0, r3, r0
/* 800A6BA8 000A3AE8  90 04 00 00 */	stw r0, 0(r4)
/* 800A6BAC 000A3AEC  48 00 00 40 */	b lbl_800A6BEC
lbl_800A6BB0:
/* 800A6BB0 000A3AF0  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6BB4 000A3AF4  54 80 60 26 */	slwi r0, r4, 0xc
/* 800A6BB8 000A3AF8  38 83 00 18 */	addi r4, r3, 0x18
/* 800A6BBC 000A3AFC  80 63 00 18 */	lwz r3, 0x18(r3)
/* 800A6BC0 000A3B00  54 63 05 22 */	rlwinm r3, r3, 0, 0x14, 0x11
/* 800A6BC4 000A3B04  7C 60 03 78 */	or r0, r3, r0
/* 800A6BC8 000A3B08  90 04 00 00 */	stw r0, 0(r4)
/* 800A6BCC 000A3B0C  48 00 00 20 */	b lbl_800A6BEC
lbl_800A6BD0:
/* 800A6BD0 000A3B10  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6BD4 000A3B14  54 80 70 22 */	slwi r0, r4, 0xe
/* 800A6BD8 000A3B18  38 83 00 18 */	addi r4, r3, 0x18
/* 800A6BDC 000A3B1C  80 63 00 18 */	lwz r3, 0x18(r3)
/* 800A6BE0 000A3B20  54 63 04 9E */	rlwinm r3, r3, 0, 0x12, 0xf
/* 800A6BE4 000A3B24  7C 60 03 78 */	or r0, r3, r0
/* 800A6BE8 000A3B28  90 04 00 00 */	stw r0, 0(r4)
lbl_800A6BEC:
/* 800A6BEC 000A3B2C  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6BF0 000A3B30  88 03 04 1C */	lbz r0, 0x41c(r3)
/* 800A6BF4 000A3B34  28 00 00 00 */	cmplwi r0, 0
/* 800A6BF8 000A3B38  40 82 00 10 */	bne lbl_800A6C08
/* 800A6BFC 000A3B3C  88 03 04 1D */	lbz r0, 0x41d(r3)
/* 800A6C00 000A3B40  28 00 00 00 */	cmplwi r0, 0
/* 800A6C04 000A3B44  41 82 00 24 */	beq lbl_800A6C28
lbl_800A6C08:
/* 800A6C08 000A3B48  38 83 00 14 */	addi r4, r3, 0x14
/* 800A6C0C 000A3B4C  80 03 04 18 */	lwz r0, 0x418(r3)
/* 800A6C10 000A3B50  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A6C14 000A3B54  54 00 58 28 */	slwi r0, r0, 0xb
/* 800A6C18 000A3B58  54 63 05 64 */	rlwinm r3, r3, 0, 0x15, 0x12
/* 800A6C1C 000A3B5C  7C 60 03 78 */	or r0, r3, r0
/* 800A6C20 000A3B60  90 04 00 00 */	stw r0, 0(r4)
/* 800A6C24 000A3B64  48 00 00 10 */	b lbl_800A6C34
lbl_800A6C28:
/* 800A6C28 000A3B68  84 03 00 14 */	lwzu r0, 0x14(r3)
/* 800A6C2C 000A3B6C  54 00 05 64 */	rlwinm r0, r0, 0, 0x15, 0x12
/* 800A6C30 000A3B70  90 03 00 00 */	stw r0, 0(r3)
lbl_800A6C34:
/* 800A6C34 000A3B74  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6C38 000A3B78  80 03 04 F4 */	lwz r0, 0x4f4(r3)
/* 800A6C3C 000A3B7C  60 00 00 08 */	ori r0, r0, 8
/* 800A6C40 000A3B80  90 03 04 F4 */	stw r0, 0x4f4(r3)
/* 800A6C44 000A3B84  4E 80 00 20 */	blr 

.global GXSetVtxDescv
GXSetVtxDescv:
/* 800A6C48 000A3B88  3C 80 80 3B */	lis r4, "@189"@ha
/* 800A6C4C 000A3B8C  38 84 15 A8 */	addi r4, r4, "@189"@l
/* 800A6C50 000A3B90  48 00 03 14 */	b lbl_800A6F64
lbl_800A6C54:
/* 800A6C54 000A3B94  80 A3 00 00 */	lwz r5, 0(r3)
/* 800A6C58 000A3B98  80 03 00 04 */	lwz r0, 4(r3)
/* 800A6C5C 000A3B9C  28 05 00 19 */	cmplwi r5, 0x19
/* 800A6C60 000A3BA0  41 81 03 00 */	bgt lbl_800A6F60
/* 800A6C64 000A3BA4  54 A5 10 3A */	slwi r5, r5, 2
/* 800A6C68 000A3BA8  7C A4 28 2E */	lwzx r5, r4, r5
/* 800A6C6C 000A3BAC  7C A9 03 A6 */	mtctr r5
/* 800A6C70 000A3BB0  4E 80 04 20 */	bctr 
lbl_800A6C74:
/* 800A6C74 000A3BB4  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6C78 000A3BB8  38 C5 00 14 */	addi r6, r5, 0x14
/* 800A6C7C 000A3BBC  80 A5 00 14 */	lwz r5, 0x14(r5)
/* 800A6C80 000A3BC0  54 A5 00 3C */	rlwinm r5, r5, 0, 0, 0x1e
/* 800A6C84 000A3BC4  7C A0 03 78 */	or r0, r5, r0
/* 800A6C88 000A3BC8  90 06 00 00 */	stw r0, 0(r6)
/* 800A6C8C 000A3BCC  48 00 02 D4 */	b lbl_800A6F60
lbl_800A6C90:
/* 800A6C90 000A3BD0  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6C94 000A3BD4  54 00 08 3C */	slwi r0, r0, 1
/* 800A6C98 000A3BD8  38 C5 00 14 */	addi r6, r5, 0x14
/* 800A6C9C 000A3BDC  80 A5 00 14 */	lwz r5, 0x14(r5)
/* 800A6CA0 000A3BE0  54 A5 07 FA */	rlwinm r5, r5, 0, 0x1f, 0x1d
/* 800A6CA4 000A3BE4  7C A0 03 78 */	or r0, r5, r0
/* 800A6CA8 000A3BE8  90 06 00 00 */	stw r0, 0(r6)
/* 800A6CAC 000A3BEC  48 00 02 B4 */	b lbl_800A6F60
lbl_800A6CB0:
/* 800A6CB0 000A3BF0  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6CB4 000A3BF4  54 00 10 3A */	slwi r0, r0, 2
/* 800A6CB8 000A3BF8  38 C5 00 14 */	addi r6, r5, 0x14
/* 800A6CBC 000A3BFC  80 A5 00 14 */	lwz r5, 0x14(r5)
/* 800A6CC0 000A3C00  54 A5 07 B8 */	rlwinm r5, r5, 0, 0x1e, 0x1c
/* 800A6CC4 000A3C04  7C A0 03 78 */	or r0, r5, r0
/* 800A6CC8 000A3C08  90 06 00 00 */	stw r0, 0(r6)
/* 800A6CCC 000A3C0C  48 00 02 94 */	b lbl_800A6F60
lbl_800A6CD0:
/* 800A6CD0 000A3C10  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6CD4 000A3C14  54 00 18 38 */	slwi r0, r0, 3
/* 800A6CD8 000A3C18  38 C5 00 14 */	addi r6, r5, 0x14
/* 800A6CDC 000A3C1C  80 A5 00 14 */	lwz r5, 0x14(r5)
/* 800A6CE0 000A3C20  54 A5 07 76 */	rlwinm r5, r5, 0, 0x1d, 0x1b
/* 800A6CE4 000A3C24  7C A0 03 78 */	or r0, r5, r0
/* 800A6CE8 000A3C28  90 06 00 00 */	stw r0, 0(r6)
/* 800A6CEC 000A3C2C  48 00 02 74 */	b lbl_800A6F60
lbl_800A6CF0:
/* 800A6CF0 000A3C30  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6CF4 000A3C34  54 00 20 36 */	slwi r0, r0, 4
/* 800A6CF8 000A3C38  38 C5 00 14 */	addi r6, r5, 0x14
/* 800A6CFC 000A3C3C  80 A5 00 14 */	lwz r5, 0x14(r5)
/* 800A6D00 000A3C40  54 A5 07 34 */	rlwinm r5, r5, 0, 0x1c, 0x1a
/* 800A6D04 000A3C44  7C A0 03 78 */	or r0, r5, r0
/* 800A6D08 000A3C48  90 06 00 00 */	stw r0, 0(r6)
/* 800A6D0C 000A3C4C  48 00 02 54 */	b lbl_800A6F60
lbl_800A6D10:
/* 800A6D10 000A3C50  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6D14 000A3C54  54 00 28 34 */	slwi r0, r0, 5
/* 800A6D18 000A3C58  38 C5 00 14 */	addi r6, r5, 0x14
/* 800A6D1C 000A3C5C  80 A5 00 14 */	lwz r5, 0x14(r5)
/* 800A6D20 000A3C60  54 A5 06 F2 */	rlwinm r5, r5, 0, 0x1b, 0x19
/* 800A6D24 000A3C64  7C A0 03 78 */	or r0, r5, r0
/* 800A6D28 000A3C68  90 06 00 00 */	stw r0, 0(r6)
/* 800A6D2C 000A3C6C  48 00 02 34 */	b lbl_800A6F60
lbl_800A6D30:
/* 800A6D30 000A3C70  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6D34 000A3C74  54 00 30 32 */	slwi r0, r0, 6
/* 800A6D38 000A3C78  38 C5 00 14 */	addi r6, r5, 0x14
/* 800A6D3C 000A3C7C  80 A5 00 14 */	lwz r5, 0x14(r5)
/* 800A6D40 000A3C80  54 A5 06 B0 */	rlwinm r5, r5, 0, 0x1a, 0x18
/* 800A6D44 000A3C84  7C A0 03 78 */	or r0, r5, r0
/* 800A6D48 000A3C88  90 06 00 00 */	stw r0, 0(r6)
/* 800A6D4C 000A3C8C  48 00 02 14 */	b lbl_800A6F60
lbl_800A6D50:
/* 800A6D50 000A3C90  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6D54 000A3C94  54 00 38 30 */	slwi r0, r0, 7
/* 800A6D58 000A3C98  38 C5 00 14 */	addi r6, r5, 0x14
/* 800A6D5C 000A3C9C  80 A5 00 14 */	lwz r5, 0x14(r5)
/* 800A6D60 000A3CA0  54 A5 06 6E */	rlwinm r5, r5, 0, 0x19, 0x17
/* 800A6D64 000A3CA4  7C A0 03 78 */	or r0, r5, r0
/* 800A6D68 000A3CA8  90 06 00 00 */	stw r0, 0(r6)
/* 800A6D6C 000A3CAC  48 00 01 F4 */	b lbl_800A6F60
lbl_800A6D70:
/* 800A6D70 000A3CB0  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6D74 000A3CB4  54 00 40 2E */	slwi r0, r0, 8
/* 800A6D78 000A3CB8  38 C5 00 14 */	addi r6, r5, 0x14
/* 800A6D7C 000A3CBC  80 A5 00 14 */	lwz r5, 0x14(r5)
/* 800A6D80 000A3CC0  54 A5 06 2C */	rlwinm r5, r5, 0, 0x18, 0x16
/* 800A6D84 000A3CC4  7C A0 03 78 */	or r0, r5, r0
/* 800A6D88 000A3CC8  90 06 00 00 */	stw r0, 0(r6)
/* 800A6D8C 000A3CCC  48 00 01 D4 */	b lbl_800A6F60
lbl_800A6D90:
/* 800A6D90 000A3CD0  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6D94 000A3CD4  54 00 48 2C */	slwi r0, r0, 9
/* 800A6D98 000A3CD8  38 C5 00 14 */	addi r6, r5, 0x14
/* 800A6D9C 000A3CDC  80 A5 00 14 */	lwz r5, 0x14(r5)
/* 800A6DA0 000A3CE0  54 A5 05 E8 */	rlwinm r5, r5, 0, 0x17, 0x14
/* 800A6DA4 000A3CE4  7C A0 03 78 */	or r0, r5, r0
/* 800A6DA8 000A3CE8  90 06 00 00 */	stw r0, 0(r6)
/* 800A6DAC 000A3CEC  48 00 01 B4 */	b lbl_800A6F60
lbl_800A6DB0:
/* 800A6DB0 000A3CF0  2C 00 00 00 */	cmpwi r0, 0
/* 800A6DB4 000A3CF4  41 82 00 28 */	beq lbl_800A6DDC
/* 800A6DB8 000A3CF8  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6DBC 000A3CFC  38 E0 00 01 */	li r7, 1
/* 800A6DC0 000A3D00  38 C0 00 00 */	li r6, 0
/* 800A6DC4 000A3D04  98 E5 04 1C */	stb r7, 0x41c(r5)
/* 800A6DC8 000A3D08  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6DCC 000A3D0C  98 C5 04 1D */	stb r6, 0x41d(r5)
/* 800A6DD0 000A3D10  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6DD4 000A3D14  90 05 04 18 */	stw r0, 0x418(r5)
/* 800A6DD8 000A3D18  48 00 01 88 */	b lbl_800A6F60
lbl_800A6DDC:
/* 800A6DDC 000A3D1C  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6DE0 000A3D20  38 00 00 00 */	li r0, 0
/* 800A6DE4 000A3D24  98 05 04 1C */	stb r0, 0x41c(r5)
/* 800A6DE8 000A3D28  48 00 01 78 */	b lbl_800A6F60
lbl_800A6DEC:
/* 800A6DEC 000A3D2C  2C 00 00 00 */	cmpwi r0, 0
/* 800A6DF0 000A3D30  41 82 00 28 */	beq lbl_800A6E18
/* 800A6DF4 000A3D34  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6DF8 000A3D38  38 E0 00 01 */	li r7, 1
/* 800A6DFC 000A3D3C  38 C0 00 00 */	li r6, 0
/* 800A6E00 000A3D40  98 E5 04 1D */	stb r7, 0x41d(r5)
/* 800A6E04 000A3D44  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6E08 000A3D48  98 C5 04 1C */	stb r6, 0x41c(r5)
/* 800A6E0C 000A3D4C  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6E10 000A3D50  90 05 04 18 */	stw r0, 0x418(r5)
/* 800A6E14 000A3D54  48 00 01 4C */	b lbl_800A6F60
lbl_800A6E18:
/* 800A6E18 000A3D58  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6E1C 000A3D5C  38 00 00 00 */	li r0, 0
/* 800A6E20 000A3D60  98 05 04 1D */	stb r0, 0x41d(r5)
/* 800A6E24 000A3D64  48 00 01 3C */	b lbl_800A6F60
lbl_800A6E28:
/* 800A6E28 000A3D68  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6E2C 000A3D6C  54 00 68 24 */	slwi r0, r0, 0xd
/* 800A6E30 000A3D70  38 C5 00 14 */	addi r6, r5, 0x14
/* 800A6E34 000A3D74  80 A5 00 14 */	lwz r5, 0x14(r5)
/* 800A6E38 000A3D78  54 A5 04 E0 */	rlwinm r5, r5, 0, 0x13, 0x10
/* 800A6E3C 000A3D7C  7C A0 03 78 */	or r0, r5, r0
/* 800A6E40 000A3D80  90 06 00 00 */	stw r0, 0(r6)
/* 800A6E44 000A3D84  48 00 01 1C */	b lbl_800A6F60
lbl_800A6E48:
/* 800A6E48 000A3D88  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6E4C 000A3D8C  54 00 78 20 */	slwi r0, r0, 0xf
/* 800A6E50 000A3D90  38 C5 00 14 */	addi r6, r5, 0x14
/* 800A6E54 000A3D94  80 A5 00 14 */	lwz r5, 0x14(r5)
/* 800A6E58 000A3D98  54 A5 04 5C */	rlwinm r5, r5, 0, 0x11, 0xe
/* 800A6E5C 000A3D9C  7C A0 03 78 */	or r0, r5, r0
/* 800A6E60 000A3DA0  90 06 00 00 */	stw r0, 0(r6)
/* 800A6E64 000A3DA4  48 00 00 FC */	b lbl_800A6F60
lbl_800A6E68:
/* 800A6E68 000A3DA8  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6E6C 000A3DAC  38 C5 00 18 */	addi r6, r5, 0x18
/* 800A6E70 000A3DB0  80 A5 00 18 */	lwz r5, 0x18(r5)
/* 800A6E74 000A3DB4  54 A5 00 3A */	rlwinm r5, r5, 0, 0, 0x1d
/* 800A6E78 000A3DB8  7C A0 03 78 */	or r0, r5, r0
/* 800A6E7C 000A3DBC  90 06 00 00 */	stw r0, 0(r6)
/* 800A6E80 000A3DC0  48 00 00 E0 */	b lbl_800A6F60
lbl_800A6E84:
/* 800A6E84 000A3DC4  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6E88 000A3DC8  54 00 10 3A */	slwi r0, r0, 2
/* 800A6E8C 000A3DCC  38 C5 00 18 */	addi r6, r5, 0x18
/* 800A6E90 000A3DD0  80 A5 00 18 */	lwz r5, 0x18(r5)
/* 800A6E94 000A3DD4  54 A5 07 B6 */	rlwinm r5, r5, 0, 0x1e, 0x1b
/* 800A6E98 000A3DD8  7C A0 03 78 */	or r0, r5, r0
/* 800A6E9C 000A3DDC  90 06 00 00 */	stw r0, 0(r6)
/* 800A6EA0 000A3DE0  48 00 00 C0 */	b lbl_800A6F60
lbl_800A6EA4:
/* 800A6EA4 000A3DE4  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6EA8 000A3DE8  54 00 20 36 */	slwi r0, r0, 4
/* 800A6EAC 000A3DEC  38 C5 00 18 */	addi r6, r5, 0x18
/* 800A6EB0 000A3DF0  80 A5 00 18 */	lwz r5, 0x18(r5)
/* 800A6EB4 000A3DF4  54 A5 07 32 */	rlwinm r5, r5, 0, 0x1c, 0x19
/* 800A6EB8 000A3DF8  7C A0 03 78 */	or r0, r5, r0
/* 800A6EBC 000A3DFC  90 06 00 00 */	stw r0, 0(r6)
/* 800A6EC0 000A3E00  48 00 00 A0 */	b lbl_800A6F60
lbl_800A6EC4:
/* 800A6EC4 000A3E04  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6EC8 000A3E08  54 00 30 32 */	slwi r0, r0, 6
/* 800A6ECC 000A3E0C  38 C5 00 18 */	addi r6, r5, 0x18
/* 800A6ED0 000A3E10  80 A5 00 18 */	lwz r5, 0x18(r5)
/* 800A6ED4 000A3E14  54 A5 06 AE */	rlwinm r5, r5, 0, 0x1a, 0x17
/* 800A6ED8 000A3E18  7C A0 03 78 */	or r0, r5, r0
/* 800A6EDC 000A3E1C  90 06 00 00 */	stw r0, 0(r6)
/* 800A6EE0 000A3E20  48 00 00 80 */	b lbl_800A6F60
lbl_800A6EE4:
/* 800A6EE4 000A3E24  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6EE8 000A3E28  54 00 40 2E */	slwi r0, r0, 8
/* 800A6EEC 000A3E2C  38 C5 00 18 */	addi r6, r5, 0x18
/* 800A6EF0 000A3E30  80 A5 00 18 */	lwz r5, 0x18(r5)
/* 800A6EF4 000A3E34  54 A5 06 2A */	rlwinm r5, r5, 0, 0x18, 0x15
/* 800A6EF8 000A3E38  7C A0 03 78 */	or r0, r5, r0
/* 800A6EFC 000A3E3C  90 06 00 00 */	stw r0, 0(r6)
/* 800A6F00 000A3E40  48 00 00 60 */	b lbl_800A6F60
lbl_800A6F04:
/* 800A6F04 000A3E44  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6F08 000A3E48  54 00 50 2A */	slwi r0, r0, 0xa
/* 800A6F0C 000A3E4C  38 C5 00 18 */	addi r6, r5, 0x18
/* 800A6F10 000A3E50  80 A5 00 18 */	lwz r5, 0x18(r5)
/* 800A6F14 000A3E54  54 A5 05 A6 */	rlwinm r5, r5, 0, 0x16, 0x13
/* 800A6F18 000A3E58  7C A0 03 78 */	or r0, r5, r0
/* 800A6F1C 000A3E5C  90 06 00 00 */	stw r0, 0(r6)
/* 800A6F20 000A3E60  48 00 00 40 */	b lbl_800A6F60
lbl_800A6F24:
/* 800A6F24 000A3E64  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6F28 000A3E68  54 00 60 26 */	slwi r0, r0, 0xc
/* 800A6F2C 000A3E6C  38 C5 00 18 */	addi r6, r5, 0x18
/* 800A6F30 000A3E70  80 A5 00 18 */	lwz r5, 0x18(r5)
/* 800A6F34 000A3E74  54 A5 05 22 */	rlwinm r5, r5, 0, 0x14, 0x11
/* 800A6F38 000A3E78  7C A0 03 78 */	or r0, r5, r0
/* 800A6F3C 000A3E7C  90 06 00 00 */	stw r0, 0(r6)
/* 800A6F40 000A3E80  48 00 00 20 */	b lbl_800A6F60
lbl_800A6F44:
/* 800A6F44 000A3E84  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A6F48 000A3E88  54 00 70 22 */	slwi r0, r0, 0xe
/* 800A6F4C 000A3E8C  38 C5 00 18 */	addi r6, r5, 0x18
/* 800A6F50 000A3E90  80 A5 00 18 */	lwz r5, 0x18(r5)
/* 800A6F54 000A3E94  54 A5 04 9E */	rlwinm r5, r5, 0, 0x12, 0xf
/* 800A6F58 000A3E98  7C A0 03 78 */	or r0, r5, r0
/* 800A6F5C 000A3E9C  90 06 00 00 */	stw r0, 0(r6)
lbl_800A6F60:
/* 800A6F60 000A3EA0  38 63 00 08 */	addi r3, r3, 8
lbl_800A6F64:
/* 800A6F64 000A3EA4  80 03 00 00 */	lwz r0, 0(r3)
/* 800A6F68 000A3EA8  2C 00 00 FF */	cmpwi r0, 0xff
/* 800A6F6C 000A3EAC  40 82 FC E8 */	bne lbl_800A6C54
/* 800A6F70 000A3EB0  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6F74 000A3EB4  88 03 04 1C */	lbz r0, 0x41c(r3)
/* 800A6F78 000A3EB8  28 00 00 00 */	cmplwi r0, 0
/* 800A6F7C 000A3EBC  40 82 00 10 */	bne lbl_800A6F8C
/* 800A6F80 000A3EC0  88 03 04 1D */	lbz r0, 0x41d(r3)
/* 800A6F84 000A3EC4  28 00 00 00 */	cmplwi r0, 0
/* 800A6F88 000A3EC8  41 82 00 24 */	beq lbl_800A6FAC
lbl_800A6F8C:
/* 800A6F8C 000A3ECC  38 83 00 14 */	addi r4, r3, 0x14
/* 800A6F90 000A3ED0  80 03 04 18 */	lwz r0, 0x418(r3)
/* 800A6F94 000A3ED4  80 63 00 14 */	lwz r3, 0x14(r3)
/* 800A6F98 000A3ED8  54 00 58 28 */	slwi r0, r0, 0xb
/* 800A6F9C 000A3EDC  54 63 05 64 */	rlwinm r3, r3, 0, 0x15, 0x12
/* 800A6FA0 000A3EE0  7C 60 03 78 */	or r0, r3, r0
/* 800A6FA4 000A3EE4  90 04 00 00 */	stw r0, 0(r4)
/* 800A6FA8 000A3EE8  48 00 00 10 */	b lbl_800A6FB8
lbl_800A6FAC:
/* 800A6FAC 000A3EEC  84 03 00 14 */	lwzu r0, 0x14(r3)
/* 800A6FB0 000A3EF0  54 00 05 64 */	rlwinm r0, r0, 0, 0x15, 0x12
/* 800A6FB4 000A3EF4  90 03 00 00 */	stw r0, 0(r3)
lbl_800A6FB8:
/* 800A6FB8 000A3EF8  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A6FBC 000A3EFC  80 03 04 F4 */	lwz r0, 0x4f4(r3)
/* 800A6FC0 000A3F00  60 00 00 08 */	ori r0, r0, 8
/* 800A6FC4 000A3F04  90 03 04 F4 */	stw r0, 0x4f4(r3)
/* 800A6FC8 000A3F08  4E 80 00 20 */	blr 

.global __GXSetVCD
__GXSetVCD:
/* 800A6FCC 000A3F0C  7C 08 02 A6 */	mflr r0
/* 800A6FD0 000A3F10  38 C0 00 08 */	li r6, 8
/* 800A6FD4 000A3F14  90 01 00 04 */	stw r0, 4(r1)
/* 800A6FD8 000A3F18  3C A0 CC 01 */	lis r5, 0xCC008000@ha
/* 800A6FDC 000A3F1C  38 60 00 50 */	li r3, 0x50
/* 800A6FE0 000A3F20  94 21 FF F8 */	stwu r1, -8(r1)
/* 800A6FE4 000A3F24  38 00 00 60 */	li r0, 0x60
/* 800A6FE8 000A3F28  98 C5 80 00 */	stb r6, 0xCC008000@l(r5)
/* 800A6FEC 000A3F2C  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A6FF0 000A3F30  98 65 80 00 */	stb r3, -0x8000(r5)
/* 800A6FF4 000A3F34  80 64 00 14 */	lwz r3, 0x14(r4)
/* 800A6FF8 000A3F38  90 65 80 00 */	stw r3, -0x8000(r5)
/* 800A6FFC 000A3F3C  98 C5 80 00 */	stb r6, -0x8000(r5)
/* 800A7000 000A3F40  98 05 80 00 */	stb r0, -0x8000(r5)
/* 800A7004 000A3F44  80 04 00 18 */	lwz r0, 0x18(r4)
/* 800A7008 000A3F48  90 05 80 00 */	stw r0, -0x8000(r5)
/* 800A700C 000A3F4C  4B FF F7 85 */	bl __GXXfVtxSpecs
/* 800A7010 000A3F50  80 01 00 0C */	lwz r0, 0xc(r1)
/* 800A7014 000A3F54  38 21 00 08 */	addi r1, r1, 8
/* 800A7018 000A3F58  7C 08 03 A6 */	mtlr r0
/* 800A701C 000A3F5C  4E 80 00 20 */	blr 

.global __GXCalculateVLim
__GXCalculateVLim:
/* 800A7020 000A3F60  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7024 000A3F64  A0 03 00 04 */	lhz r0, 4(r3)
/* 800A7028 000A3F68  28 00 00 00 */	cmplwi r0, 0
/* 800A702C 000A3F6C  4D 82 00 20 */	beqlr 
/* 800A7030 000A3F70  81 23 00 14 */	lwz r9, 0x14(r3)
/* 800A7034 000A3F74  38 AD 82 D8 */	addi r5, r13, tbl3$217@sda21
/* 800A7038 000A3F78  81 03 00 1C */	lwz r8, 0x1c(r3)
/* 800A703C 000A3F7C  55 20 07 FE */	clrlwi r0, r9, 0x1f
/* 800A7040 000A3F80  80 83 00 18 */	lwz r4, 0x18(r3)
/* 800A7044 000A3F84  55 26 FF FE */	rlwinm r6, r9, 0x1f, 0x1f, 0x1f
/* 800A7048 000A3F88  7C 00 32 14 */	add r0, r0, r6
/* 800A704C 000A3F8C  55 26 F7 FE */	rlwinm r6, r9, 0x1e, 0x1f, 0x1f
/* 800A7050 000A3F90  7C 00 32 14 */	add r0, r0, r6
/* 800A7054 000A3F94  55 27 EF FE */	rlwinm r7, r9, 0x1d, 0x1f, 0x1f
/* 800A7058 000A3F98  55 26 BF BE */	rlwinm r6, r9, 0x17, 0x1e, 0x1f
/* 800A705C 000A3F9C  7C A5 30 AE */	lbzx r5, r5, r6
/* 800A7060 000A3FA0  55 08 BF FE */	rlwinm r8, r8, 0x17, 0x1f, 0x1f
/* 800A7064 000A3FA4  7C 00 3A 14 */	add r0, r0, r7
/* 800A7068 000A3FA8  55 26 E7 FE */	rlwinm r6, r9, 0x1c, 0x1f, 0x1f
/* 800A706C 000A3FAC  7C 00 32 14 */	add r0, r0, r6
/* 800A7070 000A3FB0  55 26 DF FE */	rlwinm r6, r9, 0x1b, 0x1f, 0x1f
/* 800A7074 000A3FB4  7C 00 32 14 */	add r0, r0, r6
/* 800A7078 000A3FB8  55 26 D7 FE */	rlwinm r6, r9, 0x1a, 0x1f, 0x1f
/* 800A707C 000A3FBC  7C 00 32 14 */	add r0, r0, r6
/* 800A7080 000A3FC0  55 26 CF FE */	rlwinm r6, r9, 0x19, 0x1f, 0x1f
/* 800A7084 000A3FC4  7C 00 32 14 */	add r0, r0, r6
/* 800A7088 000A3FC8  55 26 C7 FE */	rlwinm r6, r9, 0x18, 0x1f, 0x1f
/* 800A708C 000A3FCC  7C 00 32 14 */	add r0, r0, r6
/* 800A7090 000A3FD0  2C 08 00 01 */	cmpwi r8, 1
/* 800A7094 000A3FD4  7C 00 2A 14 */	add r0, r0, r5
/* 800A7098 000A3FD8  40 82 00 0C */	bne lbl_800A70A4
/* 800A709C 000A3FDC  39 00 00 03 */	li r8, 3
/* 800A70A0 000A3FE0  48 00 00 08 */	b lbl_800A70A8
lbl_800A70A4:
/* 800A70A4 000A3FE4  39 00 00 01 */	li r8, 1
lbl_800A70A8:
/* 800A70A8 000A3FE8  55 26 AF BE */	rlwinm r6, r9, 0x15, 0x1e, 0x1f
/* 800A70AC 000A3FEC  38 AD 82 D8 */	addi r5, r13, tbl3$217@sda21
/* 800A70B0 000A3FF0  7C C5 30 AE */	lbzx r6, r5, r6
/* 800A70B4 000A3FF4  55 25 9F BE */	rlwinm r5, r9, 0x13, 0x1e, 0x1f
/* 800A70B8 000A3FF8  38 ED 82 D0 */	addi r7, r13, tbl1$215@sda21
/* 800A70BC 000A3FFC  7D 06 41 D6 */	mullw r8, r6, r8
/* 800A70C0 000A4000  7C C7 28 AE */	lbzx r6, r7, r5
/* 800A70C4 000A4004  7C 00 42 14 */	add r0, r0, r8
/* 800A70C8 000A4008  55 25 8F BE */	rlwinm r5, r9, 0x11, 0x1e, 0x1f
/* 800A70CC 000A400C  7D 27 28 AE */	lbzx r9, r7, r5
/* 800A70D0 000A4010  7C 00 32 14 */	add r0, r0, r6
/* 800A70D4 000A4014  54 86 07 BE */	clrlwi r6, r4, 0x1e
/* 800A70D8 000A4018  39 0D 82 D4 */	addi r8, r13, tbl2$216@sda21
/* 800A70DC 000A401C  54 85 F7 BE */	rlwinm r5, r4, 0x1e, 0x1e, 0x1f
/* 800A70E0 000A4020  7C E8 30 AE */	lbzx r7, r8, r6
/* 800A70E4 000A4024  7C 00 4A 14 */	add r0, r0, r9
/* 800A70E8 000A4028  7C C8 28 AE */	lbzx r6, r8, r5
/* 800A70EC 000A402C  7C 00 3A 14 */	add r0, r0, r7
/* 800A70F0 000A4030  54 85 E7 BE */	rlwinm r5, r4, 0x1c, 0x1e, 0x1f
/* 800A70F4 000A4034  7C E8 28 AE */	lbzx r7, r8, r5
/* 800A70F8 000A4038  7C 00 32 14 */	add r0, r0, r6
/* 800A70FC 000A403C  54 85 D7 BE */	rlwinm r5, r4, 0x1a, 0x1e, 0x1f
/* 800A7100 000A4040  7C C8 28 AE */	lbzx r6, r8, r5
/* 800A7104 000A4044  7C 00 3A 14 */	add r0, r0, r7
/* 800A7108 000A4048  54 85 C7 BE */	rlwinm r5, r4, 0x18, 0x1e, 0x1f
/* 800A710C 000A404C  7C E8 28 AE */	lbzx r7, r8, r5
/* 800A7110 000A4050  7C 00 32 14 */	add r0, r0, r6
/* 800A7114 000A4054  54 85 B7 BE */	rlwinm r5, r4, 0x16, 0x1e, 0x1f
/* 800A7118 000A4058  7C C8 28 AE */	lbzx r6, r8, r5
/* 800A711C 000A405C  54 85 A7 BE */	rlwinm r5, r4, 0x14, 0x1e, 0x1f
/* 800A7120 000A4060  7C 00 3A 14 */	add r0, r0, r7
/* 800A7124 000A4064  7C A8 28 AE */	lbzx r5, r8, r5
/* 800A7128 000A4068  54 84 97 BE */	rlwinm r4, r4, 0x12, 0x1e, 0x1f
/* 800A712C 000A406C  7C 00 32 14 */	add r0, r0, r6
/* 800A7130 000A4070  7C 88 20 AE */	lbzx r4, r8, r4
/* 800A7134 000A4074  7C 00 2A 14 */	add r0, r0, r5
/* 800A7138 000A4078  7C 00 22 14 */	add r0, r0, r4
/* 800A713C 000A407C  B0 03 00 06 */	sth r0, 6(r3)
/* 800A7140 000A4080  4E 80 00 20 */	blr 

.global GXGetVtxDesc
GXGetVtxDesc:
/* 800A7144 000A4084  28 03 00 19 */	cmplwi r3, 0x19
/* 800A7148 000A4088  41 81 01 A4 */	bgt lbl_800A72EC
/* 800A714C 000A408C  3C A0 80 3B */	lis r5, "@256"@ha
/* 800A7150 000A4090  38 A5 16 10 */	addi r5, r5, "@256"@l
/* 800A7154 000A4094  54 60 10 3A */	slwi r0, r3, 2
/* 800A7158 000A4098  7C 05 00 2E */	lwzx r0, r5, r0
/* 800A715C 000A409C  7C 09 03 A6 */	mtctr r0
/* 800A7160 000A40A0  4E 80 04 20 */	bctr 
lbl_800A7164:
/* 800A7164 000A40A4  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7168 000A40A8  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A716C 000A40AC  54 00 07 FE */	clrlwi r0, r0, 0x1f
/* 800A7170 000A40B0  48 00 01 80 */	b lbl_800A72F0
lbl_800A7174:
/* 800A7174 000A40B4  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7178 000A40B8  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A717C 000A40BC  54 00 FF FE */	rlwinm r0, r0, 0x1f, 0x1f, 0x1f
/* 800A7180 000A40C0  48 00 01 70 */	b lbl_800A72F0
lbl_800A7184:
/* 800A7184 000A40C4  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7188 000A40C8  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A718C 000A40CC  54 00 F7 FE */	rlwinm r0, r0, 0x1e, 0x1f, 0x1f
/* 800A7190 000A40D0  48 00 01 60 */	b lbl_800A72F0
lbl_800A7194:
/* 800A7194 000A40D4  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7198 000A40D8  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A719C 000A40DC  54 00 EF FE */	rlwinm r0, r0, 0x1d, 0x1f, 0x1f
/* 800A71A0 000A40E0  48 00 01 50 */	b lbl_800A72F0
lbl_800A71A4:
/* 800A71A4 000A40E4  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A71A8 000A40E8  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A71AC 000A40EC  54 00 E7 FE */	rlwinm r0, r0, 0x1c, 0x1f, 0x1f
/* 800A71B0 000A40F0  48 00 01 40 */	b lbl_800A72F0
lbl_800A71B4:
/* 800A71B4 000A40F4  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A71B8 000A40F8  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A71BC 000A40FC  54 00 DF FE */	rlwinm r0, r0, 0x1b, 0x1f, 0x1f
/* 800A71C0 000A4100  48 00 01 30 */	b lbl_800A72F0
lbl_800A71C4:
/* 800A71C4 000A4104  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A71C8 000A4108  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A71CC 000A410C  54 00 D7 FE */	rlwinm r0, r0, 0x1a, 0x1f, 0x1f
/* 800A71D0 000A4110  48 00 01 20 */	b lbl_800A72F0
lbl_800A71D4:
/* 800A71D4 000A4114  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A71D8 000A4118  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A71DC 000A411C  54 00 CF FE */	rlwinm r0, r0, 0x19, 0x1f, 0x1f
/* 800A71E0 000A4120  48 00 01 10 */	b lbl_800A72F0
lbl_800A71E4:
/* 800A71E4 000A4124  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A71E8 000A4128  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A71EC 000A412C  54 00 C7 FE */	rlwinm r0, r0, 0x18, 0x1f, 0x1f
/* 800A71F0 000A4130  48 00 01 00 */	b lbl_800A72F0
lbl_800A71F4:
/* 800A71F4 000A4134  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A71F8 000A4138  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A71FC 000A413C  54 00 BF BE */	rlwinm r0, r0, 0x17, 0x1e, 0x1f
/* 800A7200 000A4140  48 00 00 F0 */	b lbl_800A72F0
lbl_800A7204:
/* 800A7204 000A4144  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7208 000A4148  88 03 04 1C */	lbz r0, 0x41c(r3)
/* 800A720C 000A414C  28 00 00 00 */	cmplwi r0, 0
/* 800A7210 000A4150  41 82 00 10 */	beq lbl_800A7220
/* 800A7214 000A4154  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A7218 000A4158  54 00 AF BE */	rlwinm r0, r0, 0x15, 0x1e, 0x1f
/* 800A721C 000A415C  48 00 00 D4 */	b lbl_800A72F0
lbl_800A7220:
/* 800A7220 000A4160  38 00 00 00 */	li r0, 0
/* 800A7224 000A4164  48 00 00 CC */	b lbl_800A72F0
lbl_800A7228:
/* 800A7228 000A4168  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A722C 000A416C  88 03 04 1D */	lbz r0, 0x41d(r3)
/* 800A7230 000A4170  28 00 00 00 */	cmplwi r0, 0
/* 800A7234 000A4174  41 82 00 10 */	beq lbl_800A7244
/* 800A7238 000A4178  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A723C 000A417C  54 00 AF BE */	rlwinm r0, r0, 0x15, 0x1e, 0x1f
/* 800A7240 000A4180  48 00 00 B0 */	b lbl_800A72F0
lbl_800A7244:
/* 800A7244 000A4184  38 00 00 00 */	li r0, 0
/* 800A7248 000A4188  48 00 00 A8 */	b lbl_800A72F0
lbl_800A724C:
/* 800A724C 000A418C  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7250 000A4190  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A7254 000A4194  54 00 9F BE */	rlwinm r0, r0, 0x13, 0x1e, 0x1f
/* 800A7258 000A4198  48 00 00 98 */	b lbl_800A72F0
lbl_800A725C:
/* 800A725C 000A419C  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7260 000A41A0  80 03 00 14 */	lwz r0, 0x14(r3)
/* 800A7264 000A41A4  54 00 8F BE */	rlwinm r0, r0, 0x11, 0x1e, 0x1f
/* 800A7268 000A41A8  48 00 00 88 */	b lbl_800A72F0
lbl_800A726C:
/* 800A726C 000A41AC  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7270 000A41B0  80 03 00 18 */	lwz r0, 0x18(r3)
/* 800A7274 000A41B4  54 00 07 BE */	clrlwi r0, r0, 0x1e
/* 800A7278 000A41B8  48 00 00 78 */	b lbl_800A72F0
lbl_800A727C:
/* 800A727C 000A41BC  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7280 000A41C0  80 03 00 18 */	lwz r0, 0x18(r3)
/* 800A7284 000A41C4  54 00 F7 BE */	rlwinm r0, r0, 0x1e, 0x1e, 0x1f
/* 800A7288 000A41C8  48 00 00 68 */	b lbl_800A72F0
lbl_800A728C:
/* 800A728C 000A41CC  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7290 000A41D0  80 03 00 18 */	lwz r0, 0x18(r3)
/* 800A7294 000A41D4  54 00 E7 BE */	rlwinm r0, r0, 0x1c, 0x1e, 0x1f
/* 800A7298 000A41D8  48 00 00 58 */	b lbl_800A72F0
lbl_800A729C:
/* 800A729C 000A41DC  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A72A0 000A41E0  80 03 00 18 */	lwz r0, 0x18(r3)
/* 800A72A4 000A41E4  54 00 D7 BE */	rlwinm r0, r0, 0x1a, 0x1e, 0x1f
/* 800A72A8 000A41E8  48 00 00 48 */	b lbl_800A72F0
lbl_800A72AC:
/* 800A72AC 000A41EC  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A72B0 000A41F0  80 03 00 18 */	lwz r0, 0x18(r3)
/* 800A72B4 000A41F4  54 00 C7 BE */	rlwinm r0, r0, 0x18, 0x1e, 0x1f
/* 800A72B8 000A41F8  48 00 00 38 */	b lbl_800A72F0
lbl_800A72BC:
/* 800A72BC 000A41FC  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A72C0 000A4200  80 03 00 18 */	lwz r0, 0x18(r3)
/* 800A72C4 000A4204  54 00 B7 BE */	rlwinm r0, r0, 0x16, 0x1e, 0x1f
/* 800A72C8 000A4208  48 00 00 28 */	b lbl_800A72F0
lbl_800A72CC:
/* 800A72CC 000A420C  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A72D0 000A4210  80 03 00 18 */	lwz r0, 0x18(r3)
/* 800A72D4 000A4214  54 00 A7 BE */	rlwinm r0, r0, 0x14, 0x1e, 0x1f
/* 800A72D8 000A4218  48 00 00 18 */	b lbl_800A72F0
lbl_800A72DC:
/* 800A72DC 000A421C  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A72E0 000A4220  80 03 00 18 */	lwz r0, 0x18(r3)
/* 800A72E4 000A4224  54 00 97 BE */	rlwinm r0, r0, 0x12, 0x1e, 0x1f
/* 800A72E8 000A4228  48 00 00 08 */	b lbl_800A72F0
lbl_800A72EC:
/* 800A72EC 000A422C  38 00 00 00 */	li r0, 0
lbl_800A72F0:
/* 800A72F0 000A4230  90 04 00 00 */	stw r0, 0(r4)
/* 800A72F4 000A4234  4E 80 00 20 */	blr 

.global GXGetVtxDescv
GXGetVtxDescv:
/* 800A72F8 000A4238  7C 08 02 A6 */	mflr r0
/* 800A72FC 000A423C  90 01 00 04 */	stw r0, 4(r1)
/* 800A7300 000A4240  94 21 FF E0 */	stwu r1, -0x20(r1)
/* 800A7304 000A4244  93 E1 00 1C */	stw r31, 0x1c(r1)
/* 800A7308 000A4248  3B E0 00 00 */	li r31, 0
/* 800A730C 000A424C  93 C1 00 18 */	stw r30, 0x18(r1)
/* 800A7310 000A4250  3B C0 00 00 */	li r30, 0
/* 800A7314 000A4254  93 A1 00 14 */	stw r29, 0x14(r1)
/* 800A7318 000A4258  3B A3 00 00 */	addi r29, r3, 0
lbl_800A731C:
/* 800A731C 000A425C  7C 9D FA 14 */	add r4, r29, r31
/* 800A7320 000A4260  93 C4 00 00 */	stw r30, 0(r4)
/* 800A7324 000A4264  38 7E 00 00 */	addi r3, r30, 0
/* 800A7328 000A4268  38 84 00 04 */	addi r4, r4, 4
/* 800A732C 000A426C  4B FF FE 19 */	bl GXGetVtxDesc
/* 800A7330 000A4270  3B DE 00 01 */	addi r30, r30, 1
/* 800A7334 000A4274  2C 1E 00 1A */	cmpwi r30, 0x1a
/* 800A7338 000A4278  3B FF 00 08 */	addi r31, r31, 8
/* 800A733C 000A427C  41 80 FF E0 */	blt lbl_800A731C
/* 800A7340 000A4280  57 C0 18 38 */	slwi r0, r30, 3
/* 800A7344 000A4284  38 60 00 FF */	li r3, 0xff
/* 800A7348 000A4288  7C 7D 01 2E */	stwx r3, r29, r0
/* 800A734C 000A428C  80 01 00 24 */	lwz r0, 0x24(r1)
/* 800A7350 000A4290  83 E1 00 1C */	lwz r31, 0x1c(r1)
/* 800A7354 000A4294  83 C1 00 18 */	lwz r30, 0x18(r1)
/* 800A7358 000A4298  83 A1 00 14 */	lwz r29, 0x14(r1)
/* 800A735C 000A429C  38 21 00 20 */	addi r1, r1, 0x20
/* 800A7360 000A42A0  7C 08 03 A6 */	mtlr r0
/* 800A7364 000A42A4  4E 80 00 20 */	blr 

.global GXClearVtxDesc
GXClearVtxDesc:
/* 800A7368 000A42A8  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A736C 000A42AC  38 80 00 00 */	li r4, 0
/* 800A7370 000A42B0  90 83 00 14 */	stw r4, 0x14(r3)
/* 800A7374 000A42B4  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7378 000A42B8  84 03 00 14 */	lwzu r0, 0x14(r3)
/* 800A737C 000A42BC  54 00 05 E8 */	rlwinm r0, r0, 0, 0x17, 0x14
/* 800A7380 000A42C0  60 00 02 00 */	ori r0, r0, 0x200
/* 800A7384 000A42C4  90 03 00 00 */	stw r0, 0(r3)
/* 800A7388 000A42C8  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A738C 000A42CC  90 83 00 18 */	stw r4, 0x18(r3)
/* 800A7390 000A42D0  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7394 000A42D4  98 83 04 1C */	stb r4, 0x41c(r3)
/* 800A7398 000A42D8  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A739C 000A42DC  98 83 04 1D */	stb r4, 0x41d(r3)
/* 800A73A0 000A42E0  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A73A4 000A42E4  80 03 04 F4 */	lwz r0, 0x4f4(r3)
/* 800A73A8 000A42E8  60 00 00 08 */	ori r0, r0, 8
/* 800A73AC 000A42EC  90 03 04 F4 */	stw r0, 0x4f4(r3)
/* 800A73B0 000A42F0  4E 80 00 20 */	blr 

.global GXSetVtxAttrFmt
GXSetVtxAttrFmt:
/* 800A73B4 000A42F4  38 04 FF F7 */	addi r0, r4, -9
/* 800A73B8 000A42F8  81 0D 82 C8 */	lwz r8, gx@sda21(r13)
/* 800A73BC 000A42FC  54 64 10 3A */	slwi r4, r3, 2
/* 800A73C0 000A4300  7D 28 22 14 */	add r9, r8, r4
/* 800A73C4 000A4304  28 00 00 10 */	cmplwi r0, 0x10
/* 800A73C8 000A4308  38 89 00 1C */	addi r4, r9, 0x1c
/* 800A73CC 000A430C  39 09 00 3C */	addi r8, r9, 0x3c
/* 800A73D0 000A4310  39 29 00 5C */	addi r9, r9, 0x5c
/* 800A73D4 000A4314  41 81 03 08 */	bgt lbl_800A76DC
/* 800A73D8 000A4318  3D 40 80 3B */	lis r10, "@302"@ha
/* 800A73DC 000A431C  39 4A 16 78 */	addi r10, r10, "@302"@l
/* 800A73E0 000A4320  54 00 10 3A */	slwi r0, r0, 2
/* 800A73E4 000A4324  7C 0A 00 2E */	lwzx r0, r10, r0
/* 800A73E8 000A4328  7C 09 03 A6 */	mtctr r0
/* 800A73EC 000A432C  4E 80 04 20 */	bctr 
lbl_800A73F0:
/* 800A73F0 000A4330  80 04 00 00 */	lwz r0, 0(r4)
/* 800A73F4 000A4334  54 C6 08 3C */	slwi r6, r6, 1
/* 800A73F8 000A4338  54 00 00 3C */	rlwinm r0, r0, 0, 0, 0x1e
/* 800A73FC 000A433C  7C 00 2B 78 */	or r0, r0, r5
/* 800A7400 000A4340  90 04 00 00 */	stw r0, 0(r4)
/* 800A7404 000A4344  54 E0 25 36 */	rlwinm r0, r7, 4, 0x14, 0x1b
/* 800A7408 000A4348  80 A4 00 00 */	lwz r5, 0(r4)
/* 800A740C 000A434C  54 A5 07 F6 */	rlwinm r5, r5, 0, 0x1f, 0x1b
/* 800A7410 000A4350  7C A5 33 78 */	or r5, r5, r6
/* 800A7414 000A4354  90 A4 00 00 */	stw r5, 0(r4)
/* 800A7418 000A4358  80 A4 00 00 */	lwz r5, 0(r4)
/* 800A741C 000A435C  54 A5 07 2C */	rlwinm r5, r5, 0, 0x1c, 0x16
/* 800A7420 000A4360  7C A0 03 78 */	or r0, r5, r0
/* 800A7424 000A4364  90 04 00 00 */	stw r0, 0(r4)
/* 800A7428 000A4368  48 00 02 B4 */	b lbl_800A76DC
lbl_800A742C:
/* 800A742C 000A436C  80 E4 00 00 */	lwz r7, 0(r4)
/* 800A7430 000A4370  54 C0 50 2A */	slwi r0, r6, 0xa
/* 800A7434 000A4374  2C 05 00 02 */	cmpwi r5, 2
/* 800A7438 000A4378  54 E6 05 A4 */	rlwinm r6, r7, 0, 0x16, 0x12
/* 800A743C 000A437C  7C C0 03 78 */	or r0, r6, r0
/* 800A7440 000A4380  90 04 00 00 */	stw r0, 0(r4)
/* 800A7444 000A4384  40 82 00 28 */	bne lbl_800A746C
/* 800A7448 000A4388  80 04 00 00 */	lwz r0, 0(r4)
/* 800A744C 000A438C  54 00 05 EA */	rlwinm r0, r0, 0, 0x17, 0x15
/* 800A7450 000A4390  60 00 02 00 */	ori r0, r0, 0x200
/* 800A7454 000A4394  90 04 00 00 */	stw r0, 0(r4)
/* 800A7458 000A4398  80 04 00 00 */	lwz r0, 0(r4)
/* 800A745C 000A439C  54 00 00 7E */	clrlwi r0, r0, 1
/* 800A7460 000A43A0  64 00 80 00 */	oris r0, r0, 0x8000
/* 800A7464 000A43A4  90 04 00 00 */	stw r0, 0(r4)
/* 800A7468 000A43A8  48 00 02 74 */	b lbl_800A76DC
lbl_800A746C:
/* 800A746C 000A43AC  80 C4 00 00 */	lwz r6, 0(r4)
/* 800A7470 000A43B0  54 A0 48 2C */	slwi r0, r5, 9
/* 800A7474 000A43B4  54 C5 05 EA */	rlwinm r5, r6, 0, 0x17, 0x15
/* 800A7478 000A43B8  7C A0 03 78 */	or r0, r5, r0
/* 800A747C 000A43BC  90 04 00 00 */	stw r0, 0(r4)
/* 800A7480 000A43C0  80 04 00 00 */	lwz r0, 0(r4)
/* 800A7484 000A43C4  54 00 00 7E */	clrlwi r0, r0, 1
/* 800A7488 000A43C8  90 04 00 00 */	stw r0, 0(r4)
/* 800A748C 000A43CC  48 00 02 50 */	b lbl_800A76DC
lbl_800A7490:
/* 800A7490 000A43D0  80 E4 00 00 */	lwz r7, 0(r4)
/* 800A7494 000A43D4  54 A5 68 24 */	slwi r5, r5, 0xd
/* 800A7498 000A43D8  54 C0 70 22 */	slwi r0, r6, 0xe
/* 800A749C 000A43DC  54 E6 04 E2 */	rlwinm r6, r7, 0, 0x13, 0x11
/* 800A74A0 000A43E0  7C C5 2B 78 */	or r5, r6, r5
/* 800A74A4 000A43E4  90 A4 00 00 */	stw r5, 0(r4)
/* 800A74A8 000A43E8  80 A4 00 00 */	lwz r5, 0(r4)
/* 800A74AC 000A43EC  54 A5 04 9C */	rlwinm r5, r5, 0, 0x12, 0xe
/* 800A74B0 000A43F0  7C A0 03 78 */	or r0, r5, r0
/* 800A74B4 000A43F4  90 04 00 00 */	stw r0, 0(r4)
/* 800A74B8 000A43F8  48 00 02 24 */	b lbl_800A76DC
lbl_800A74BC:
/* 800A74BC 000A43FC  80 E4 00 00 */	lwz r7, 0(r4)
/* 800A74C0 000A4400  54 A5 88 1C */	slwi r5, r5, 0x11
/* 800A74C4 000A4404  54 C0 90 1A */	slwi r0, r6, 0x12
/* 800A74C8 000A4408  54 E6 03 DA */	rlwinm r6, r7, 0, 0xf, 0xd
/* 800A74CC 000A440C  7C C5 2B 78 */	or r5, r6, r5
/* 800A74D0 000A4410  90 A4 00 00 */	stw r5, 0(r4)
/* 800A74D4 000A4414  80 A4 00 00 */	lwz r5, 0(r4)
/* 800A74D8 000A4418  54 A5 03 94 */	rlwinm r5, r5, 0, 0xe, 0xa
/* 800A74DC 000A441C  7C A0 03 78 */	or r0, r5, r0
/* 800A74E0 000A4420  90 04 00 00 */	stw r0, 0(r4)
/* 800A74E4 000A4424  48 00 01 F8 */	b lbl_800A76DC
lbl_800A74E8:
/* 800A74E8 000A4428  81 04 00 00 */	lwz r8, 0(r4)
/* 800A74EC 000A442C  54 A0 A8 14 */	slwi r0, r5, 0x15
/* 800A74F0 000A4430  55 05 02 D2 */	rlwinm r5, r8, 0, 0xb, 9
/* 800A74F4 000A4434  7C A0 03 78 */	or r0, r5, r0
/* 800A74F8 000A4438  90 04 00 00 */	stw r0, 0(r4)
/* 800A74FC 000A443C  54 C5 B0 12 */	slwi r5, r6, 0x16
/* 800A7500 000A4440  54 E0 C8 0C */	slwi r0, r7, 0x19
/* 800A7504 000A4444  80 C4 00 00 */	lwz r6, 0(r4)
/* 800A7508 000A4448  54 C6 02 8C */	rlwinm r6, r6, 0, 0xa, 6
/* 800A750C 000A444C  7C C5 2B 78 */	or r5, r6, r5
/* 800A7510 000A4450  90 A4 00 00 */	stw r5, 0(r4)
/* 800A7514 000A4454  80 A4 00 00 */	lwz r5, 0(r4)
/* 800A7518 000A4458  54 A5 01 C2 */	rlwinm r5, r5, 0, 7, 1
/* 800A751C 000A445C  7C A0 03 78 */	or r0, r5, r0
/* 800A7520 000A4460  90 04 00 00 */	stw r0, 0(r4)
/* 800A7524 000A4464  48 00 01 B8 */	b lbl_800A76DC
lbl_800A7528:
/* 800A7528 000A4468  80 08 00 00 */	lwz r0, 0(r8)
/* 800A752C 000A446C  54 C4 08 3C */	slwi r4, r6, 1
/* 800A7530 000A4470  54 00 00 3C */	rlwinm r0, r0, 0, 0, 0x1e
/* 800A7534 000A4474  7C 00 2B 78 */	or r0, r0, r5
/* 800A7538 000A4478  90 08 00 00 */	stw r0, 0(r8)
/* 800A753C 000A447C  54 E0 25 36 */	rlwinm r0, r7, 4, 0x14, 0x1b
/* 800A7540 000A4480  80 A8 00 00 */	lwz r5, 0(r8)
/* 800A7544 000A4484  54 A5 07 F6 */	rlwinm r5, r5, 0, 0x1f, 0x1b
/* 800A7548 000A4488  7C A4 23 78 */	or r4, r5, r4
/* 800A754C 000A448C  90 88 00 00 */	stw r4, 0(r8)
/* 800A7550 000A4490  80 88 00 00 */	lwz r4, 0(r8)
/* 800A7554 000A4494  54 84 07 2C */	rlwinm r4, r4, 0, 0x1c, 0x16
/* 800A7558 000A4498  7C 80 03 78 */	or r0, r4, r0
/* 800A755C 000A449C  90 08 00 00 */	stw r0, 0(r8)
/* 800A7560 000A44A0  48 00 01 7C */	b lbl_800A76DC
lbl_800A7564:
/* 800A7564 000A44A4  80 88 00 00 */	lwz r4, 0(r8)
/* 800A7568 000A44A8  54 A0 48 2C */	slwi r0, r5, 9
/* 800A756C 000A44AC  54 84 05 EA */	rlwinm r4, r4, 0, 0x17, 0x15
/* 800A7570 000A44B0  7C 80 03 78 */	or r0, r4, r0
/* 800A7574 000A44B4  90 08 00 00 */	stw r0, 0(r8)
/* 800A7578 000A44B8  54 C4 50 2A */	slwi r4, r6, 0xa
/* 800A757C 000A44BC  54 E0 6A E4 */	rlwinm r0, r7, 0xd, 0xb, 0x12
/* 800A7580 000A44C0  80 A8 00 00 */	lwz r5, 0(r8)
/* 800A7584 000A44C4  54 A5 05 A4 */	rlwinm r5, r5, 0, 0x16, 0x12
/* 800A7588 000A44C8  7C A4 23 78 */	or r4, r5, r4
/* 800A758C 000A44CC  90 88 00 00 */	stw r4, 0(r8)
/* 800A7590 000A44D0  80 88 00 00 */	lwz r4, 0(r8)
/* 800A7594 000A44D4  54 84 04 DA */	rlwinm r4, r4, 0, 0x13, 0xd
/* 800A7598 000A44D8  7C 80 03 78 */	or r0, r4, r0
/* 800A759C 000A44DC  90 08 00 00 */	stw r0, 0(r8)
/* 800A75A0 000A44E0  48 00 01 3C */	b lbl_800A76DC
lbl_800A75A4:
/* 800A75A4 000A44E4  80 88 00 00 */	lwz r4, 0(r8)
/* 800A75A8 000A44E8  54 A0 90 1A */	slwi r0, r5, 0x12
/* 800A75AC 000A44EC  54 84 03 98 */	rlwinm r4, r4, 0, 0xe, 0xc
/* 800A75B0 000A44F0  7C 80 03 78 */	or r0, r4, r0
/* 800A75B4 000A44F4  90 08 00 00 */	stw r0, 0(r8)
/* 800A75B8 000A44F8  54 C4 98 18 */	slwi r4, r6, 0x13
/* 800A75BC 000A44FC  54 E0 B0 92 */	rlwinm r0, r7, 0x16, 2, 9
/* 800A75C0 000A4500  80 A8 00 00 */	lwz r5, 0(r8)
/* 800A75C4 000A4504  54 A5 03 52 */	rlwinm r5, r5, 0, 0xd, 9
/* 800A75C8 000A4508  7C A4 23 78 */	or r4, r5, r4
/* 800A75CC 000A450C  90 88 00 00 */	stw r4, 0(r8)
/* 800A75D0 000A4510  80 88 00 00 */	lwz r4, 0(r8)
/* 800A75D4 000A4514  54 84 02 88 */	rlwinm r4, r4, 0, 0xa, 4
/* 800A75D8 000A4518  7C 80 03 78 */	or r0, r4, r0
/* 800A75DC 000A451C  90 08 00 00 */	stw r0, 0(r8)
/* 800A75E0 000A4520  48 00 00 FC */	b lbl_800A76DC
lbl_800A75E4:
/* 800A75E4 000A4524  81 48 00 00 */	lwz r10, 0(r8)
/* 800A75E8 000A4528  54 A0 D8 08 */	slwi r0, r5, 0x1b
/* 800A75EC 000A452C  54 C4 E0 06 */	slwi r4, r6, 0x1c
/* 800A75F0 000A4530  55 45 01 46 */	rlwinm r5, r10, 0, 5, 3
/* 800A75F4 000A4534  7C A0 03 78 */	or r0, r5, r0
/* 800A75F8 000A4538  90 08 00 00 */	stw r0, 0(r8)
/* 800A75FC 000A453C  54 E0 06 3E */	clrlwi r0, r7, 0x18
/* 800A7600 000A4540  80 A8 00 00 */	lwz r5, 0(r8)
/* 800A7604 000A4544  54 A5 01 00 */	rlwinm r5, r5, 0, 4, 0
/* 800A7608 000A4548  7C A4 23 78 */	or r4, r5, r4
/* 800A760C 000A454C  90 88 00 00 */	stw r4, 0(r8)
/* 800A7610 000A4550  80 89 00 00 */	lwz r4, 0(r9)
/* 800A7614 000A4554  54 84 00 34 */	rlwinm r4, r4, 0, 0, 0x1a
/* 800A7618 000A4558  7C 80 03 78 */	or r0, r4, r0
/* 800A761C 000A455C  90 09 00 00 */	stw r0, 0(r9)
/* 800A7620 000A4560  48 00 00 BC */	b lbl_800A76DC
lbl_800A7624:
/* 800A7624 000A4564  80 89 00 00 */	lwz r4, 0(r9)
/* 800A7628 000A4568  54 A0 28 34 */	slwi r0, r5, 5
/* 800A762C 000A456C  54 84 06 F2 */	rlwinm r4, r4, 0, 0x1b, 0x19
/* 800A7630 000A4570  7C 80 03 78 */	or r0, r4, r0
/* 800A7634 000A4574  90 09 00 00 */	stw r0, 0(r9)
/* 800A7638 000A4578  54 C4 30 32 */	slwi r4, r6, 6
/* 800A763C 000A457C  54 E0 4B EC */	rlwinm r0, r7, 9, 0xf, 0x16
/* 800A7640 000A4580  80 A9 00 00 */	lwz r5, 0(r9)
/* 800A7644 000A4584  54 A5 06 AC */	rlwinm r5, r5, 0, 0x1a, 0x16
/* 800A7648 000A4588  7C A4 23 78 */	or r4, r5, r4
/* 800A764C 000A458C  90 89 00 00 */	stw r4, 0(r9)
/* 800A7650 000A4590  80 89 00 00 */	lwz r4, 0(r9)
/* 800A7654 000A4594  54 84 05 E2 */	rlwinm r4, r4, 0, 0x17, 0x11
/* 800A7658 000A4598  7C 80 03 78 */	or r0, r4, r0
/* 800A765C 000A459C  90 09 00 00 */	stw r0, 0(r9)
/* 800A7660 000A45A0  48 00 00 7C */	b lbl_800A76DC
lbl_800A7664:
/* 800A7664 000A45A4  80 89 00 00 */	lwz r4, 0(r9)
/* 800A7668 000A45A8  54 A0 70 22 */	slwi r0, r5, 0xe
/* 800A766C 000A45AC  54 84 04 A0 */	rlwinm r4, r4, 0, 0x12, 0x10
/* 800A7670 000A45B0  7C 80 03 78 */	or r0, r4, r0
/* 800A7674 000A45B4  90 09 00 00 */	stw r0, 0(r9)
/* 800A7678 000A45B8  54 C4 78 20 */	slwi r4, r6, 0xf
/* 800A767C 000A45BC  54 E0 91 9A */	rlwinm r0, r7, 0x12, 6, 0xd
/* 800A7680 000A45C0  80 A9 00 00 */	lwz r5, 0(r9)
/* 800A7684 000A45C4  54 A5 04 5A */	rlwinm r5, r5, 0, 0x11, 0xd
/* 800A7688 000A45C8  7C A4 23 78 */	or r4, r5, r4
/* 800A768C 000A45CC  90 89 00 00 */	stw r4, 0(r9)
/* 800A7690 000A45D0  80 89 00 00 */	lwz r4, 0(r9)
/* 800A7694 000A45D4  54 84 03 90 */	rlwinm r4, r4, 0, 0xe, 8
/* 800A7698 000A45D8  7C 80 03 78 */	or r0, r4, r0
/* 800A769C 000A45DC  90 09 00 00 */	stw r0, 0(r9)
/* 800A76A0 000A45E0  48 00 00 3C */	b lbl_800A76DC
lbl_800A76A4:
/* 800A76A4 000A45E4  80 89 00 00 */	lwz r4, 0(r9)
/* 800A76A8 000A45E8  54 A0 B8 10 */	slwi r0, r5, 0x17
/* 800A76AC 000A45EC  54 84 02 4E */	rlwinm r4, r4, 0, 9, 7
/* 800A76B0 000A45F0  7C 80 03 78 */	or r0, r4, r0
/* 800A76B4 000A45F4  90 09 00 00 */	stw r0, 0(r9)
/* 800A76B8 000A45F8  54 C0 C0 0E */	slwi r0, r6, 0x18
/* 800A76BC 000A45FC  80 89 00 00 */	lwz r4, 0(r9)
/* 800A76C0 000A4600  54 84 02 08 */	rlwinm r4, r4, 0, 8, 4
/* 800A76C4 000A4604  7C 80 03 78 */	or r0, r4, r0
/* 800A76C8 000A4608  90 09 00 00 */	stw r0, 0(r9)
/* 800A76CC 000A460C  80 09 00 00 */	lwz r0, 0(r9)
/* 800A76D0 000A4610  54 00 01 7E */	clrlwi r0, r0, 5
/* 800A76D4 000A4614  50 E0 D8 08 */	rlwimi r0, r7, 0x1b, 0, 4
/* 800A76D8 000A4618  90 09 00 00 */	stw r0, 0(r9)
lbl_800A76DC:
/* 800A76DC 000A461C  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A76E0 000A4620  54 60 06 3E */	clrlwi r0, r3, 0x18
/* 800A76E4 000A4624  38 60 00 01 */	li r3, 1
/* 800A76E8 000A4628  80 85 04 F4 */	lwz r4, 0x4f4(r5)
/* 800A76EC 000A462C  7C 60 00 30 */	slw r0, r3, r0
/* 800A76F0 000A4630  54 00 06 3E */	clrlwi r0, r0, 0x18
/* 800A76F4 000A4634  60 83 00 10 */	ori r3, r4, 0x10
/* 800A76F8 000A4638  90 65 04 F4 */	stw r3, 0x4f4(r5)
/* 800A76FC 000A463C  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A7700 000A4640  88 64 04 F2 */	lbz r3, 0x4f2(r4)
/* 800A7704 000A4644  7C 60 03 78 */	or r0, r3, r0
/* 800A7708 000A4648  98 04 04 F2 */	stb r0, 0x4f2(r4)
/* 800A770C 000A464C  4E 80 00 20 */	blr 

.global GXSetVtxAttrFmtv
GXSetVtxAttrFmtv:
/* 800A7710 000A4650  80 CD 82 C8 */	lwz r6, gx@sda21(r13)
/* 800A7714 000A4654  54 60 10 3A */	slwi r0, r3, 2
/* 800A7718 000A4658  3C A0 80 3B */	lis r5, "@329"@ha
/* 800A771C 000A465C  7C C6 02 14 */	add r6, r6, r0
/* 800A7720 000A4660  39 06 00 1C */	addi r8, r6, 0x1c
/* 800A7724 000A4664  39 26 00 3C */	addi r9, r6, 0x3c
/* 800A7728 000A4668  39 46 00 5C */	addi r10, r6, 0x5c
/* 800A772C 000A466C  38 A5 16 BC */	addi r5, r5, "@329"@l
/* 800A7730 000A4670  48 00 03 1C */	b lbl_800A7A4C
lbl_800A7734:
/* 800A7734 000A4674  80 C4 00 00 */	lwz r6, 0(r4)
/* 800A7738 000A4678  88 E4 00 0C */	lbz r7, 0xc(r4)
/* 800A773C 000A467C  39 66 FF F7 */	addi r11, r6, -9
/* 800A7740 000A4680  80 C4 00 08 */	lwz r6, 8(r4)
/* 800A7744 000A4684  28 0B 00 10 */	cmplwi r11, 0x10
/* 800A7748 000A4688  80 04 00 04 */	lwz r0, 4(r4)
/* 800A774C 000A468C  41 81 02 FC */	bgt lbl_800A7A48
/* 800A7750 000A4690  55 6B 10 3A */	slwi r11, r11, 2
/* 800A7754 000A4694  7D 65 58 2E */	lwzx r11, r5, r11
/* 800A7758 000A4698  7D 69 03 A6 */	mtctr r11
/* 800A775C 000A469C  4E 80 04 20 */	bctr 
lbl_800A7760:
/* 800A7760 000A46A0  81 88 00 00 */	lwz r12, 0(r8)
/* 800A7764 000A46A4  54 CB 08 3C */	slwi r11, r6, 1
/* 800A7768 000A46A8  54 E6 20 36 */	slwi r6, r7, 4
/* 800A776C 000A46AC  55 87 00 3C */	rlwinm r7, r12, 0, 0, 0x1e
/* 800A7770 000A46B0  7C E0 03 78 */	or r0, r7, r0
/* 800A7774 000A46B4  90 08 00 00 */	stw r0, 0(r8)
/* 800A7778 000A46B8  80 08 00 00 */	lwz r0, 0(r8)
/* 800A777C 000A46BC  54 00 07 F6 */	rlwinm r0, r0, 0, 0x1f, 0x1b
/* 800A7780 000A46C0  7C 00 5B 78 */	or r0, r0, r11
/* 800A7784 000A46C4  90 08 00 00 */	stw r0, 0(r8)
/* 800A7788 000A46C8  80 08 00 00 */	lwz r0, 0(r8)
/* 800A778C 000A46CC  54 00 07 2C */	rlwinm r0, r0, 0, 0x1c, 0x16
/* 800A7790 000A46D0  7C 00 33 78 */	or r0, r0, r6
/* 800A7794 000A46D4  90 08 00 00 */	stw r0, 0(r8)
/* 800A7798 000A46D8  48 00 02 B0 */	b lbl_800A7A48
lbl_800A779C:
/* 800A779C 000A46DC  80 E8 00 00 */	lwz r7, 0(r8)
/* 800A77A0 000A46E0  54 C6 50 2A */	slwi r6, r6, 0xa
/* 800A77A4 000A46E4  2C 00 00 02 */	cmpwi r0, 2
/* 800A77A8 000A46E8  54 E7 05 A4 */	rlwinm r7, r7, 0, 0x16, 0x12
/* 800A77AC 000A46EC  7C E6 33 78 */	or r6, r7, r6
/* 800A77B0 000A46F0  90 C8 00 00 */	stw r6, 0(r8)
/* 800A77B4 000A46F4  40 82 00 28 */	bne lbl_800A77DC
/* 800A77B8 000A46F8  80 08 00 00 */	lwz r0, 0(r8)
/* 800A77BC 000A46FC  54 00 05 EA */	rlwinm r0, r0, 0, 0x17, 0x15
/* 800A77C0 000A4700  60 00 02 00 */	ori r0, r0, 0x200
/* 800A77C4 000A4704  90 08 00 00 */	stw r0, 0(r8)
/* 800A77C8 000A4708  80 08 00 00 */	lwz r0, 0(r8)
/* 800A77CC 000A470C  54 00 00 7E */	clrlwi r0, r0, 1
/* 800A77D0 000A4710  64 00 80 00 */	oris r0, r0, 0x8000
/* 800A77D4 000A4714  90 08 00 00 */	stw r0, 0(r8)
/* 800A77D8 000A4718  48 00 02 70 */	b lbl_800A7A48
lbl_800A77DC:
/* 800A77DC 000A471C  80 C8 00 00 */	lwz r6, 0(r8)
/* 800A77E0 000A4720  54 00 48 2C */	slwi r0, r0, 9
/* 800A77E4 000A4724  54 C6 05 EA */	rlwinm r6, r6, 0, 0x17, 0x15
/* 800A77E8 000A4728  7C C0 03 78 */	or r0, r6, r0
/* 800A77EC 000A472C  90 08 00 00 */	stw r0, 0(r8)
/* 800A77F0 000A4730  80 08 00 00 */	lwz r0, 0(r8)
/* 800A77F4 000A4734  54 00 00 7E */	clrlwi r0, r0, 1
/* 800A77F8 000A4738  90 08 00 00 */	stw r0, 0(r8)
/* 800A77FC 000A473C  48 00 02 4C */	b lbl_800A7A48
lbl_800A7800:
/* 800A7800 000A4740  81 68 00 00 */	lwz r11, 0(r8)
/* 800A7804 000A4744  54 07 68 24 */	slwi r7, r0, 0xd
/* 800A7808 000A4748  54 C0 70 22 */	slwi r0, r6, 0xe
/* 800A780C 000A474C  55 66 04 E2 */	rlwinm r6, r11, 0, 0x13, 0x11
/* 800A7810 000A4750  7C C6 3B 78 */	or r6, r6, r7
/* 800A7814 000A4754  90 C8 00 00 */	stw r6, 0(r8)
/* 800A7818 000A4758  80 C8 00 00 */	lwz r6, 0(r8)
/* 800A781C 000A475C  54 C6 04 9C */	rlwinm r6, r6, 0, 0x12, 0xe
/* 800A7820 000A4760  7C C0 03 78 */	or r0, r6, r0
/* 800A7824 000A4764  90 08 00 00 */	stw r0, 0(r8)
/* 800A7828 000A4768  48 00 02 20 */	b lbl_800A7A48
lbl_800A782C:
/* 800A782C 000A476C  81 68 00 00 */	lwz r11, 0(r8)
/* 800A7830 000A4770  54 07 88 1C */	slwi r7, r0, 0x11
/* 800A7834 000A4774  54 C0 90 1A */	slwi r0, r6, 0x12
/* 800A7838 000A4778  55 66 03 DA */	rlwinm r6, r11, 0, 0xf, 0xd
/* 800A783C 000A477C  7C C6 3B 78 */	or r6, r6, r7
/* 800A7840 000A4780  90 C8 00 00 */	stw r6, 0(r8)
/* 800A7844 000A4784  80 C8 00 00 */	lwz r6, 0(r8)
/* 800A7848 000A4788  54 C6 03 94 */	rlwinm r6, r6, 0, 0xe, 0xa
/* 800A784C 000A478C  7C C0 03 78 */	or r0, r6, r0
/* 800A7850 000A4790  90 08 00 00 */	stw r0, 0(r8)
/* 800A7854 000A4794  48 00 01 F4 */	b lbl_800A7A48
lbl_800A7858:
/* 800A7858 000A4798  81 68 00 00 */	lwz r11, 0(r8)
/* 800A785C 000A479C  54 00 A8 14 */	slwi r0, r0, 0x15
/* 800A7860 000A47A0  54 C6 B0 12 */	slwi r6, r6, 0x16
/* 800A7864 000A47A4  55 6B 02 D2 */	rlwinm r11, r11, 0, 0xb, 9
/* 800A7868 000A47A8  7D 60 03 78 */	or r0, r11, r0
/* 800A786C 000A47AC  90 08 00 00 */	stw r0, 0(r8)
/* 800A7870 000A47B0  54 E0 C8 0C */	slwi r0, r7, 0x19
/* 800A7874 000A47B4  80 E8 00 00 */	lwz r7, 0(r8)
/* 800A7878 000A47B8  54 E7 02 8C */	rlwinm r7, r7, 0, 0xa, 6
/* 800A787C 000A47BC  7C E6 33 78 */	or r6, r7, r6
/* 800A7880 000A47C0  90 C8 00 00 */	stw r6, 0(r8)
/* 800A7884 000A47C4  80 C8 00 00 */	lwz r6, 0(r8)
/* 800A7888 000A47C8  54 C6 01 C2 */	rlwinm r6, r6, 0, 7, 1
/* 800A788C 000A47CC  7C C0 03 78 */	or r0, r6, r0
/* 800A7890 000A47D0  90 08 00 00 */	stw r0, 0(r8)
/* 800A7894 000A47D4  48 00 01 B4 */	b lbl_800A7A48
lbl_800A7898:
/* 800A7898 000A47D8  81 89 00 00 */	lwz r12, 0(r9)
/* 800A789C 000A47DC  54 CB 08 3C */	slwi r11, r6, 1
/* 800A78A0 000A47E0  54 E6 20 36 */	slwi r6, r7, 4
/* 800A78A4 000A47E4  55 87 00 3C */	rlwinm r7, r12, 0, 0, 0x1e
/* 800A78A8 000A47E8  7C E0 03 78 */	or r0, r7, r0
/* 800A78AC 000A47EC  90 09 00 00 */	stw r0, 0(r9)
/* 800A78B0 000A47F0  80 09 00 00 */	lwz r0, 0(r9)
/* 800A78B4 000A47F4  54 00 07 F6 */	rlwinm r0, r0, 0, 0x1f, 0x1b
/* 800A78B8 000A47F8  7C 00 5B 78 */	or r0, r0, r11
/* 800A78BC 000A47FC  90 09 00 00 */	stw r0, 0(r9)
/* 800A78C0 000A4800  80 09 00 00 */	lwz r0, 0(r9)
/* 800A78C4 000A4804  54 00 07 2C */	rlwinm r0, r0, 0, 0x1c, 0x16
/* 800A78C8 000A4808  7C 00 33 78 */	or r0, r0, r6
/* 800A78CC 000A480C  90 09 00 00 */	stw r0, 0(r9)
/* 800A78D0 000A4810  48 00 01 78 */	b lbl_800A7A48
lbl_800A78D4:
/* 800A78D4 000A4814  81 69 00 00 */	lwz r11, 0(r9)
/* 800A78D8 000A4818  54 00 48 2C */	slwi r0, r0, 9
/* 800A78DC 000A481C  54 C6 50 2A */	slwi r6, r6, 0xa
/* 800A78E0 000A4820  55 6B 05 EA */	rlwinm r11, r11, 0, 0x17, 0x15
/* 800A78E4 000A4824  7D 60 03 78 */	or r0, r11, r0
/* 800A78E8 000A4828  90 09 00 00 */	stw r0, 0(r9)
/* 800A78EC 000A482C  54 E0 68 24 */	slwi r0, r7, 0xd
/* 800A78F0 000A4830  80 E9 00 00 */	lwz r7, 0(r9)
/* 800A78F4 000A4834  54 E7 05 A4 */	rlwinm r7, r7, 0, 0x16, 0x12
/* 800A78F8 000A4838  7C E6 33 78 */	or r6, r7, r6
/* 800A78FC 000A483C  90 C9 00 00 */	stw r6, 0(r9)
/* 800A7900 000A4840  80 C9 00 00 */	lwz r6, 0(r9)
/* 800A7904 000A4844  54 C6 04 DA */	rlwinm r6, r6, 0, 0x13, 0xd
/* 800A7908 000A4848  7C C0 03 78 */	or r0, r6, r0
/* 800A790C 000A484C  90 09 00 00 */	stw r0, 0(r9)
/* 800A7910 000A4850  48 00 01 38 */	b lbl_800A7A48
lbl_800A7914:
/* 800A7914 000A4854  81 69 00 00 */	lwz r11, 0(r9)
/* 800A7918 000A4858  54 00 90 1A */	slwi r0, r0, 0x12
/* 800A791C 000A485C  54 C6 98 18 */	slwi r6, r6, 0x13
/* 800A7920 000A4860  55 6B 03 98 */	rlwinm r11, r11, 0, 0xe, 0xc
/* 800A7924 000A4864  7D 60 03 78 */	or r0, r11, r0
/* 800A7928 000A4868  90 09 00 00 */	stw r0, 0(r9)
/* 800A792C 000A486C  54 E0 B0 12 */	slwi r0, r7, 0x16
/* 800A7930 000A4870  80 E9 00 00 */	lwz r7, 0(r9)
/* 800A7934 000A4874  54 E7 03 52 */	rlwinm r7, r7, 0, 0xd, 9
/* 800A7938 000A4878  7C E6 33 78 */	or r6, r7, r6
/* 800A793C 000A487C  90 C9 00 00 */	stw r6, 0(r9)
/* 800A7940 000A4880  80 C9 00 00 */	lwz r6, 0(r9)
/* 800A7944 000A4884  54 C6 02 88 */	rlwinm r6, r6, 0, 0xa, 4
/* 800A7948 000A4888  7C C0 03 78 */	or r0, r6, r0
/* 800A794C 000A488C  90 09 00 00 */	stw r0, 0(r9)
/* 800A7950 000A4890  48 00 00 F8 */	b lbl_800A7A48
lbl_800A7954:
/* 800A7954 000A4894  81 89 00 00 */	lwz r12, 0(r9)
/* 800A7958 000A4898  54 0B D8 08 */	slwi r11, r0, 0x1b
/* 800A795C 000A489C  54 C0 E0 06 */	slwi r0, r6, 0x1c
/* 800A7960 000A48A0  55 86 01 46 */	rlwinm r6, r12, 0, 5, 3
/* 800A7964 000A48A4  7C C6 5B 78 */	or r6, r6, r11
/* 800A7968 000A48A8  90 C9 00 00 */	stw r6, 0(r9)
/* 800A796C 000A48AC  80 C9 00 00 */	lwz r6, 0(r9)
/* 800A7970 000A48B0  54 C6 01 00 */	rlwinm r6, r6, 0, 4, 0
/* 800A7974 000A48B4  7C C0 03 78 */	or r0, r6, r0
/* 800A7978 000A48B8  90 09 00 00 */	stw r0, 0(r9)
/* 800A797C 000A48BC  80 0A 00 00 */	lwz r0, 0(r10)
/* 800A7980 000A48C0  54 00 00 34 */	rlwinm r0, r0, 0, 0, 0x1a
/* 800A7984 000A48C4  7C 00 3B 78 */	or r0, r0, r7
/* 800A7988 000A48C8  90 0A 00 00 */	stw r0, 0(r10)
/* 800A798C 000A48CC  48 00 00 BC */	b lbl_800A7A48
lbl_800A7990:
/* 800A7990 000A48D0  81 6A 00 00 */	lwz r11, 0(r10)
/* 800A7994 000A48D4  54 00 28 34 */	slwi r0, r0, 5
/* 800A7998 000A48D8  54 C6 30 32 */	slwi r6, r6, 6
/* 800A799C 000A48DC  55 6B 06 F2 */	rlwinm r11, r11, 0, 0x1b, 0x19
/* 800A79A0 000A48E0  7D 60 03 78 */	or r0, r11, r0
/* 800A79A4 000A48E4  90 0A 00 00 */	stw r0, 0(r10)
/* 800A79A8 000A48E8  54 E0 48 2C */	slwi r0, r7, 9
/* 800A79AC 000A48EC  80 EA 00 00 */	lwz r7, 0(r10)
/* 800A79B0 000A48F0  54 E7 06 AC */	rlwinm r7, r7, 0, 0x1a, 0x16
/* 800A79B4 000A48F4  7C E6 33 78 */	or r6, r7, r6
/* 800A79B8 000A48F8  90 CA 00 00 */	stw r6, 0(r10)
/* 800A79BC 000A48FC  80 CA 00 00 */	lwz r6, 0(r10)
/* 800A79C0 000A4900  54 C6 05 E2 */	rlwinm r6, r6, 0, 0x17, 0x11
/* 800A79C4 000A4904  7C C0 03 78 */	or r0, r6, r0
/* 800A79C8 000A4908  90 0A 00 00 */	stw r0, 0(r10)
/* 800A79CC 000A490C  48 00 00 7C */	b lbl_800A7A48
lbl_800A79D0:
/* 800A79D0 000A4910  81 6A 00 00 */	lwz r11, 0(r10)
/* 800A79D4 000A4914  54 00 70 22 */	slwi r0, r0, 0xe
/* 800A79D8 000A4918  54 C6 78 20 */	slwi r6, r6, 0xf
/* 800A79DC 000A491C  55 6B 04 A0 */	rlwinm r11, r11, 0, 0x12, 0x10
/* 800A79E0 000A4920  7D 60 03 78 */	or r0, r11, r0
/* 800A79E4 000A4924  90 0A 00 00 */	stw r0, 0(r10)
/* 800A79E8 000A4928  54 E0 90 1A */	slwi r0, r7, 0x12
/* 800A79EC 000A492C  80 EA 00 00 */	lwz r7, 0(r10)
/* 800A79F0 000A4930  54 E7 04 5A */	rlwinm r7, r7, 0, 0x11, 0xd
/* 800A79F4 000A4934  7C E6 33 78 */	or r6, r7, r6
/* 800A79F8 000A4938  90 CA 00 00 */	stw r6, 0(r10)
/* 800A79FC 000A493C  80 CA 00 00 */	lwz r6, 0(r10)
/* 800A7A00 000A4940  54 C6 03 90 */	rlwinm r6, r6, 0, 0xe, 8
/* 800A7A04 000A4944  7C C0 03 78 */	or r0, r6, r0
/* 800A7A08 000A4948  90 0A 00 00 */	stw r0, 0(r10)
/* 800A7A0C 000A494C  48 00 00 3C */	b lbl_800A7A48
lbl_800A7A10:
/* 800A7A10 000A4950  81 8A 00 00 */	lwz r12, 0(r10)
/* 800A7A14 000A4954  54 0B B8 10 */	slwi r11, r0, 0x17
/* 800A7A18 000A4958  54 C0 C0 0E */	slwi r0, r6, 0x18
/* 800A7A1C 000A495C  55 86 02 4E */	rlwinm r6, r12, 0, 9, 7
/* 800A7A20 000A4960  7C C6 5B 78 */	or r6, r6, r11
/* 800A7A24 000A4964  90 CA 00 00 */	stw r6, 0(r10)
/* 800A7A28 000A4968  80 CA 00 00 */	lwz r6, 0(r10)
/* 800A7A2C 000A496C  54 C6 02 08 */	rlwinm r6, r6, 0, 8, 4
/* 800A7A30 000A4970  7C C0 03 78 */	or r0, r6, r0
/* 800A7A34 000A4974  90 0A 00 00 */	stw r0, 0(r10)
/* 800A7A38 000A4978  80 0A 00 00 */	lwz r0, 0(r10)
/* 800A7A3C 000A497C  54 00 01 7E */	clrlwi r0, r0, 5
/* 800A7A40 000A4980  50 E0 D8 08 */	rlwimi r0, r7, 0x1b, 0, 4
/* 800A7A44 000A4984  90 0A 00 00 */	stw r0, 0(r10)
lbl_800A7A48:
/* 800A7A48 000A4988  38 84 00 10 */	addi r4, r4, 0x10
lbl_800A7A4C:
/* 800A7A4C 000A498C  80 04 00 00 */	lwz r0, 0(r4)
/* 800A7A50 000A4990  2C 00 00 FF */	cmpwi r0, 0xff
/* 800A7A54 000A4994  40 82 FC E0 */	bne lbl_800A7734
/* 800A7A58 000A4998  80 AD 82 C8 */	lwz r5, gx@sda21(r13)
/* 800A7A5C 000A499C  54 60 06 3E */	clrlwi r0, r3, 0x18
/* 800A7A60 000A49A0  38 60 00 01 */	li r3, 1
/* 800A7A64 000A49A4  80 85 04 F4 */	lwz r4, 0x4f4(r5)
/* 800A7A68 000A49A8  7C 60 00 30 */	slw r0, r3, r0
/* 800A7A6C 000A49AC  54 00 06 3E */	clrlwi r0, r0, 0x18
/* 800A7A70 000A49B0  60 83 00 10 */	ori r3, r4, 0x10
/* 800A7A74 000A49B4  90 65 04 F4 */	stw r3, 0x4f4(r5)
/* 800A7A78 000A49B8  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A7A7C 000A49BC  88 64 04 F2 */	lbz r3, 0x4f2(r4)
/* 800A7A80 000A49C0  7C 60 03 78 */	or r0, r3, r0
/* 800A7A84 000A49C4  98 04 04 F2 */	stb r0, 0x4f2(r4)
/* 800A7A88 000A49C8  4E 80 00 20 */	blr 

.global __GXSetVAT
__GXSetVAT:
/* 800A7A8C 000A49CC  81 4D 82 C8 */	lwz r10, gx@sda21(r13)
/* 800A7A90 000A49D0  39 80 00 00 */	li r12, 0
/* 800A7A94 000A49D4  39 60 00 00 */	li r11, 0
/* 800A7A98 000A49D8  3C E0 CC 01 */	lis r7, 0xcc01
/* 800A7A9C 000A49DC  48 00 00 70 */	b lbl_800A7B0C
lbl_800A7AA0:
/* 800A7AA0 000A49E0  55 89 06 3E */	clrlwi r9, r12, 0x18
/* 800A7AA4 000A49E4  88 6A 04 F2 */	lbz r3, 0x4f2(r10)
/* 800A7AA8 000A49E8  38 00 00 01 */	li r0, 1
/* 800A7AAC 000A49EC  7C 00 48 30 */	slw r0, r0, r9
/* 800A7AB0 000A49F0  7C 60 00 39 */	and. r0, r3, r0
/* 800A7AB4 000A49F4  41 82 00 50 */	beq lbl_800A7B04
/* 800A7AB8 000A49F8  39 00 00 08 */	li r8, 8
/* 800A7ABC 000A49FC  99 07 80 00 */	stb r8, -0x8000(r7)
/* 800A7AC0 000A4A00  61 23 00 70 */	ori r3, r9, 0x70
/* 800A7AC4 000A4A04  38 0B 00 1C */	addi r0, r11, 0x1c
/* 800A7AC8 000A4A08  98 67 80 00 */	stb r3, -0x8000(r7)
/* 800A7ACC 000A4A0C  61 25 00 80 */	ori r5, r9, 0x80
/* 800A7AD0 000A4A10  38 8B 00 3C */	addi r4, r11, 0x3c
/* 800A7AD4 000A4A14  7C CA 00 2E */	lwzx r6, r10, r0
/* 800A7AD8 000A4A18  61 23 00 90 */	ori r3, r9, 0x90
/* 800A7ADC 000A4A1C  38 0B 00 5C */	addi r0, r11, 0x5c
/* 800A7AE0 000A4A20  90 C7 80 00 */	stw r6, -0x8000(r7)
/* 800A7AE4 000A4A24  99 07 80 00 */	stb r8, -0x8000(r7)
/* 800A7AE8 000A4A28  98 A7 80 00 */	stb r5, -0x8000(r7)
/* 800A7AEC 000A4A2C  7C 8A 20 2E */	lwzx r4, r10, r4
/* 800A7AF0 000A4A30  90 87 80 00 */	stw r4, -0x8000(r7)
/* 800A7AF4 000A4A34  99 07 80 00 */	stb r8, -0x8000(r7)
/* 800A7AF8 000A4A38  98 67 80 00 */	stb r3, -0x8000(r7)
/* 800A7AFC 000A4A3C  7C 0A 00 2E */	lwzx r0, r10, r0
/* 800A7B00 000A4A40  90 07 80 00 */	stw r0, -0x8000(r7)
lbl_800A7B04:
/* 800A7B04 000A4A44  39 6B 00 04 */	addi r11, r11, 4
/* 800A7B08 000A4A48  39 8C 00 01 */	addi r12, r12, 1
lbl_800A7B0C:
/* 800A7B0C 000A4A4C  55 80 06 3E */	clrlwi r0, r12, 0x18
/* 800A7B10 000A4A50  28 00 00 08 */	cmplwi r0, 8
/* 800A7B14 000A4A54  41 80 FF 8C */	blt lbl_800A7AA0
/* 800A7B18 000A4A58  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7B1C 000A4A5C  38 00 00 00 */	li r0, 0
/* 800A7B20 000A4A60  98 03 04 F2 */	stb r0, 0x4f2(r3)
/* 800A7B24 000A4A64  4E 80 00 20 */	blr 

.global GXGetVtxAttrFmt
GXGetVtxAttrFmt:
/* 800A7B28 000A4A68  38 04 FF F7 */	addi r0, r4, -9
/* 800A7B2C 000A4A6C  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A7B30 000A4A70  54 63 10 3A */	slwi r3, r3, 2
/* 800A7B34 000A4A74  7C 84 1A 14 */	add r4, r4, r3
/* 800A7B38 000A4A78  28 00 00 10 */	cmplwi r0, 0x10
/* 800A7B3C 000A4A7C  38 64 00 1C */	addi r3, r4, 0x1c
/* 800A7B40 000A4A80  39 04 00 3C */	addi r8, r4, 0x3c
/* 800A7B44 000A4A84  39 24 00 5C */	addi r9, r4, 0x5c
/* 800A7B48 000A4A88  41 81 02 10 */	bgt lbl_800A7D58
/* 800A7B4C 000A4A8C  3C 80 80 3B */	lis r4, "@393"@ha
/* 800A7B50 000A4A90  38 84 17 00 */	addi r4, r4, "@393"@l
/* 800A7B54 000A4A94  54 00 10 3A */	slwi r0, r0, 2
/* 800A7B58 000A4A98  7C 04 00 2E */	lwzx r0, r4, r0
/* 800A7B5C 000A4A9C  7C 09 03 A6 */	mtctr r0
/* 800A7B60 000A4AA0  4E 80 04 20 */	bctr 
lbl_800A7B64:
/* 800A7B64 000A4AA4  80 03 00 00 */	lwz r0, 0(r3)
/* 800A7B68 000A4AA8  54 00 07 FE */	clrlwi r0, r0, 0x1f
/* 800A7B6C 000A4AAC  90 05 00 00 */	stw r0, 0(r5)
/* 800A7B70 000A4AB0  80 03 00 00 */	lwz r0, 0(r3)
/* 800A7B74 000A4AB4  54 00 FF 7E */	rlwinm r0, r0, 0x1f, 0x1d, 0x1f
/* 800A7B78 000A4AB8  90 06 00 00 */	stw r0, 0(r6)
/* 800A7B7C 000A4ABC  80 03 00 00 */	lwz r0, 0(r3)
/* 800A7B80 000A4AC0  54 00 E6 FE */	rlwinm r0, r0, 0x1c, 0x1b, 0x1f
/* 800A7B84 000A4AC4  98 07 00 00 */	stb r0, 0(r7)
/* 800A7B88 000A4AC8  4E 80 00 20 */	blr 
lbl_800A7B8C:
/* 800A7B8C 000A4ACC  80 03 00 00 */	lwz r0, 0(r3)
/* 800A7B90 000A4AD0  54 00 BF FE */	rlwinm r0, r0, 0x17, 0x1f, 0x1f
/* 800A7B94 000A4AD4  90 05 00 00 */	stw r0, 0(r5)
/* 800A7B98 000A4AD8  80 05 00 00 */	lwz r0, 0(r5)
/* 800A7B9C 000A4ADC  2C 00 00 01 */	cmpwi r0, 1
/* 800A7BA0 000A4AE0  40 82 00 18 */	bne lbl_800A7BB8
/* 800A7BA4 000A4AE4  80 03 00 00 */	lwz r0, 0(r3)
/* 800A7BA8 000A4AE8  54 00 0F FF */	rlwinm. r0, r0, 1, 0x1f, 0x1f
/* 800A7BAC 000A4AEC  41 82 00 0C */	beq lbl_800A7BB8
/* 800A7BB0 000A4AF0  38 00 00 02 */	li r0, 2
/* 800A7BB4 000A4AF4  90 05 00 00 */	stw r0, 0(r5)
lbl_800A7BB8:
/* 800A7BB8 000A4AF8  80 63 00 00 */	lwz r3, 0(r3)
/* 800A7BBC 000A4AFC  38 00 00 00 */	li r0, 0
/* 800A7BC0 000A4B00  54 63 B7 7E */	rlwinm r3, r3, 0x16, 0x1d, 0x1f
/* 800A7BC4 000A4B04  90 66 00 00 */	stw r3, 0(r6)
/* 800A7BC8 000A4B08  98 07 00 00 */	stb r0, 0(r7)
/* 800A7BCC 000A4B0C  4E 80 00 20 */	blr 
lbl_800A7BD0:
/* 800A7BD0 000A4B10  80 83 00 00 */	lwz r4, 0(r3)
/* 800A7BD4 000A4B14  38 00 00 00 */	li r0, 0
/* 800A7BD8 000A4B18  54 84 9F FE */	rlwinm r4, r4, 0x13, 0x1f, 0x1f
/* 800A7BDC 000A4B1C  90 85 00 00 */	stw r4, 0(r5)
/* 800A7BE0 000A4B20  80 63 00 00 */	lwz r3, 0(r3)
/* 800A7BE4 000A4B24  54 63 97 7E */	rlwinm r3, r3, 0x12, 0x1d, 0x1f
/* 800A7BE8 000A4B28  90 66 00 00 */	stw r3, 0(r6)
/* 800A7BEC 000A4B2C  98 07 00 00 */	stb r0, 0(r7)
/* 800A7BF0 000A4B30  4E 80 00 20 */	blr 
lbl_800A7BF4:
/* 800A7BF4 000A4B34  80 83 00 00 */	lwz r4, 0(r3)
/* 800A7BF8 000A4B38  38 00 00 00 */	li r0, 0
/* 800A7BFC 000A4B3C  54 84 7F FE */	rlwinm r4, r4, 0xf, 0x1f, 0x1f
/* 800A7C00 000A4B40  90 85 00 00 */	stw r4, 0(r5)
/* 800A7C04 000A4B44  80 63 00 00 */	lwz r3, 0(r3)
/* 800A7C08 000A4B48  54 63 77 7E */	rlwinm r3, r3, 0xe, 0x1d, 0x1f
/* 800A7C0C 000A4B4C  90 66 00 00 */	stw r3, 0(r6)
/* 800A7C10 000A4B50  98 07 00 00 */	stb r0, 0(r7)
/* 800A7C14 000A4B54  4E 80 00 20 */	blr 
lbl_800A7C18:
/* 800A7C18 000A4B58  80 03 00 00 */	lwz r0, 0(r3)
/* 800A7C1C 000A4B5C  54 00 5F FE */	rlwinm r0, r0, 0xb, 0x1f, 0x1f
/* 800A7C20 000A4B60  90 05 00 00 */	stw r0, 0(r5)
/* 800A7C24 000A4B64  80 03 00 00 */	lwz r0, 0(r3)
/* 800A7C28 000A4B68  54 00 57 7E */	rlwinm r0, r0, 0xa, 0x1d, 0x1f
/* 800A7C2C 000A4B6C  90 06 00 00 */	stw r0, 0(r6)
/* 800A7C30 000A4B70  80 03 00 00 */	lwz r0, 0(r3)
/* 800A7C34 000A4B74  54 00 3E FE */	rlwinm r0, r0, 7, 0x1b, 0x1f
/* 800A7C38 000A4B78  98 07 00 00 */	stb r0, 0(r7)
/* 800A7C3C 000A4B7C  4E 80 00 20 */	blr 
lbl_800A7C40:
/* 800A7C40 000A4B80  80 08 00 00 */	lwz r0, 0(r8)
/* 800A7C44 000A4B84  54 00 07 FE */	clrlwi r0, r0, 0x1f
/* 800A7C48 000A4B88  90 05 00 00 */	stw r0, 0(r5)
/* 800A7C4C 000A4B8C  80 08 00 00 */	lwz r0, 0(r8)
/* 800A7C50 000A4B90  54 00 FF 7E */	rlwinm r0, r0, 0x1f, 0x1d, 0x1f
/* 800A7C54 000A4B94  90 06 00 00 */	stw r0, 0(r6)
/* 800A7C58 000A4B98  80 08 00 00 */	lwz r0, 0(r8)
/* 800A7C5C 000A4B9C  54 00 E6 FE */	rlwinm r0, r0, 0x1c, 0x1b, 0x1f
/* 800A7C60 000A4BA0  98 07 00 00 */	stb r0, 0(r7)
/* 800A7C64 000A4BA4  4E 80 00 20 */	blr 
lbl_800A7C68:
/* 800A7C68 000A4BA8  80 08 00 00 */	lwz r0, 0(r8)
/* 800A7C6C 000A4BAC  54 00 BF FE */	rlwinm r0, r0, 0x17, 0x1f, 0x1f
/* 800A7C70 000A4BB0  90 05 00 00 */	stw r0, 0(r5)
/* 800A7C74 000A4BB4  80 08 00 00 */	lwz r0, 0(r8)
/* 800A7C78 000A4BB8  54 00 B7 7E */	rlwinm r0, r0, 0x16, 0x1d, 0x1f
/* 800A7C7C 000A4BBC  90 06 00 00 */	stw r0, 0(r6)
/* 800A7C80 000A4BC0  80 08 00 00 */	lwz r0, 0(r8)
/* 800A7C84 000A4BC4  54 00 9E FE */	rlwinm r0, r0, 0x13, 0x1b, 0x1f
/* 800A7C88 000A4BC8  98 07 00 00 */	stb r0, 0(r7)
/* 800A7C8C 000A4BCC  4E 80 00 20 */	blr 
lbl_800A7C90:
/* 800A7C90 000A4BD0  80 08 00 00 */	lwz r0, 0(r8)
/* 800A7C94 000A4BD4  54 00 77 FE */	rlwinm r0, r0, 0xe, 0x1f, 0x1f
/* 800A7C98 000A4BD8  90 05 00 00 */	stw r0, 0(r5)
/* 800A7C9C 000A4BDC  80 08 00 00 */	lwz r0, 0(r8)
/* 800A7CA0 000A4BE0  54 00 6F 7E */	rlwinm r0, r0, 0xd, 0x1d, 0x1f
/* 800A7CA4 000A4BE4  90 06 00 00 */	stw r0, 0(r6)
/* 800A7CA8 000A4BE8  80 08 00 00 */	lwz r0, 0(r8)
/* 800A7CAC 000A4BEC  54 00 56 FE */	rlwinm r0, r0, 0xa, 0x1b, 0x1f
/* 800A7CB0 000A4BF0  98 07 00 00 */	stb r0, 0(r7)
/* 800A7CB4 000A4BF4  4E 80 00 20 */	blr 
lbl_800A7CB8:
/* 800A7CB8 000A4BF8  80 08 00 00 */	lwz r0, 0(r8)
/* 800A7CBC 000A4BFC  54 00 2F FE */	rlwinm r0, r0, 5, 0x1f, 0x1f
/* 800A7CC0 000A4C00  90 05 00 00 */	stw r0, 0(r5)
/* 800A7CC4 000A4C04  80 08 00 00 */	lwz r0, 0(r8)
/* 800A7CC8 000A4C08  54 00 27 7E */	rlwinm r0, r0, 4, 0x1d, 0x1f
/* 800A7CCC 000A4C0C  90 06 00 00 */	stw r0, 0(r6)
/* 800A7CD0 000A4C10  80 09 00 00 */	lwz r0, 0(r9)
/* 800A7CD4 000A4C14  54 00 06 FE */	clrlwi r0, r0, 0x1b
/* 800A7CD8 000A4C18  98 07 00 00 */	stb r0, 0(r7)
/* 800A7CDC 000A4C1C  4E 80 00 20 */	blr 
lbl_800A7CE0:
/* 800A7CE0 000A4C20  80 09 00 00 */	lwz r0, 0(r9)
/* 800A7CE4 000A4C24  54 00 DF FE */	rlwinm r0, r0, 0x1b, 0x1f, 0x1f
/* 800A7CE8 000A4C28  90 05 00 00 */	stw r0, 0(r5)
/* 800A7CEC 000A4C2C  80 09 00 00 */	lwz r0, 0(r9)
/* 800A7CF0 000A4C30  54 00 D7 7E */	rlwinm r0, r0, 0x1a, 0x1d, 0x1f
/* 800A7CF4 000A4C34  90 06 00 00 */	stw r0, 0(r6)
/* 800A7CF8 000A4C38  80 09 00 00 */	lwz r0, 0(r9)
/* 800A7CFC 000A4C3C  54 00 BE FE */	rlwinm r0, r0, 0x17, 0x1b, 0x1f
/* 800A7D00 000A4C40  98 07 00 00 */	stb r0, 0(r7)
/* 800A7D04 000A4C44  4E 80 00 20 */	blr 
lbl_800A7D08:
/* 800A7D08 000A4C48  80 09 00 00 */	lwz r0, 0(r9)
/* 800A7D0C 000A4C4C  54 00 97 FE */	rlwinm r0, r0, 0x12, 0x1f, 0x1f
/* 800A7D10 000A4C50  90 05 00 00 */	stw r0, 0(r5)
/* 800A7D14 000A4C54  80 09 00 00 */	lwz r0, 0(r9)
/* 800A7D18 000A4C58  54 00 8F 7E */	rlwinm r0, r0, 0x11, 0x1d, 0x1f
/* 800A7D1C 000A4C5C  90 06 00 00 */	stw r0, 0(r6)
/* 800A7D20 000A4C60  80 09 00 00 */	lwz r0, 0(r9)
/* 800A7D24 000A4C64  54 00 76 FE */	rlwinm r0, r0, 0xe, 0x1b, 0x1f
/* 800A7D28 000A4C68  98 07 00 00 */	stb r0, 0(r7)
/* 800A7D2C 000A4C6C  4E 80 00 20 */	blr 
lbl_800A7D30:
/* 800A7D30 000A4C70  80 09 00 00 */	lwz r0, 0(r9)
/* 800A7D34 000A4C74  54 00 4F FE */	rlwinm r0, r0, 9, 0x1f, 0x1f
/* 800A7D38 000A4C78  90 05 00 00 */	stw r0, 0(r5)
/* 800A7D3C 000A4C7C  80 09 00 00 */	lwz r0, 0(r9)
/* 800A7D40 000A4C80  54 00 47 7E */	rlwinm r0, r0, 8, 0x1d, 0x1f
/* 800A7D44 000A4C84  90 06 00 00 */	stw r0, 0(r6)
/* 800A7D48 000A4C88  80 09 00 00 */	lwz r0, 0(r9)
/* 800A7D4C 000A4C8C  54 00 2E FE */	srwi r0, r0, 0x1b
/* 800A7D50 000A4C90  98 07 00 00 */	stb r0, 0(r7)
/* 800A7D54 000A4C94  4E 80 00 20 */	blr 
lbl_800A7D58:
/* 800A7D58 000A4C98  38 00 00 01 */	li r0, 1
/* 800A7D5C 000A4C9C  90 05 00 00 */	stw r0, 0(r5)
/* 800A7D60 000A4CA0  38 00 00 00 */	li r0, 0
/* 800A7D64 000A4CA4  90 06 00 00 */	stw r0, 0(r6)
/* 800A7D68 000A4CA8  98 07 00 00 */	stb r0, 0(r7)
/* 800A7D6C 000A4CAC  4E 80 00 20 */	blr 

.global GXGetVtxAttrFmtv
GXGetVtxAttrFmtv:
/* 800A7D70 000A4CB0  7C 08 02 A6 */	mflr r0
/* 800A7D74 000A4CB4  90 01 00 04 */	stw r0, 4(r1)
/* 800A7D78 000A4CB8  94 21 FF E0 */	stwu r1, -0x20(r1)
/* 800A7D7C 000A4CBC  93 E1 00 1C */	stw r31, 0x1c(r1)
/* 800A7D80 000A4CC0  3B E0 00 09 */	li r31, 9
/* 800A7D84 000A4CC4  93 C1 00 18 */	stw r30, 0x18(r1)
/* 800A7D88 000A4CC8  3B C4 00 00 */	addi r30, r4, 0
/* 800A7D8C 000A4CCC  93 A1 00 14 */	stw r29, 0x14(r1)
/* 800A7D90 000A4CD0  3B A3 00 00 */	addi r29, r3, 0
lbl_800A7D94:
/* 800A7D94 000A4CD4  93 FE 00 00 */	stw r31, 0(r30)
/* 800A7D98 000A4CD8  38 7D 00 00 */	addi r3, r29, 0
/* 800A7D9C 000A4CDC  38 9F 00 00 */	addi r4, r31, 0
/* 800A7DA0 000A4CE0  38 BE 00 04 */	addi r5, r30, 4
/* 800A7DA4 000A4CE4  38 DE 00 08 */	addi r6, r30, 8
/* 800A7DA8 000A4CE8  38 FE 00 0C */	addi r7, r30, 0xc
/* 800A7DAC 000A4CEC  4B FF FD 7D */	bl GXGetVtxAttrFmt
/* 800A7DB0 000A4CF0  3B FF 00 01 */	addi r31, r31, 1
/* 800A7DB4 000A4CF4  2C 1F 00 1A */	cmpwi r31, 0x1a
/* 800A7DB8 000A4CF8  3B DE 00 10 */	addi r30, r30, 0x10
/* 800A7DBC 000A4CFC  41 80 FF D8 */	blt lbl_800A7D94
/* 800A7DC0 000A4D00  38 00 00 FF */	li r0, 0xff
/* 800A7DC4 000A4D04  90 1E 00 00 */	stw r0, 0(r30)
/* 800A7DC8 000A4D08  80 01 00 24 */	lwz r0, 0x24(r1)
/* 800A7DCC 000A4D0C  83 E1 00 1C */	lwz r31, 0x1c(r1)
/* 800A7DD0 000A4D10  83 C1 00 18 */	lwz r30, 0x18(r1)
/* 800A7DD4 000A4D14  83 A1 00 14 */	lwz r29, 0x14(r1)
/* 800A7DD8 000A4D18  38 21 00 20 */	addi r1, r1, 0x20
/* 800A7DDC 000A4D1C  7C 08 03 A6 */	mtlr r0
/* 800A7DE0 000A4D20  4E 80 00 20 */	blr 

.global GXSetArray
GXSetArray:
/* 800A7DE4 000A4D24  2C 03 00 19 */	cmpwi r3, 0x19
/* 800A7DE8 000A4D28  40 82 00 08 */	bne lbl_800A7DF0
/* 800A7DEC 000A4D2C  38 60 00 0A */	li r3, 0xa
lbl_800A7DF0:
/* 800A7DF0 000A4D30  38 00 00 08 */	li r0, 8
/* 800A7DF4 000A4D34  38 C3 FF F7 */	addi r6, r3, -9
/* 800A7DF8 000A4D38  3C 60 CC 01 */	lis r3, 0xCC008000@ha
/* 800A7DFC 000A4D3C  98 03 80 00 */	stb r0, 0xCC008000@l(r3)
/* 800A7E00 000A4D40  60 C0 00 A0 */	ori r0, r6, 0xa0
/* 800A7E04 000A4D44  54 84 00 BE */	clrlwi r4, r4, 2
/* 800A7E08 000A4D48  98 03 80 00 */	stb r0, -0x8000(r3)
/* 800A7E0C 000A4D4C  34 06 FF F4 */	addic. r0, r6, -12
/* 800A7E10 000A4D50  90 83 80 00 */	stw r4, -0x8000(r3)
/* 800A7E14 000A4D54  41 80 00 1C */	blt lbl_800A7E30
/* 800A7E18 000A4D58  2C 00 00 04 */	cmpwi r0, 4
/* 800A7E1C 000A4D5C  40 80 00 14 */	bge lbl_800A7E30
/* 800A7E20 000A4D60  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7E24 000A4D64  54 00 10 3A */	slwi r0, r0, 2
/* 800A7E28 000A4D68  7C 63 02 14 */	add r3, r3, r0
/* 800A7E2C 000A4D6C  90 83 00 88 */	stw r4, 0x88(r3)
lbl_800A7E30:
/* 800A7E30 000A4D70  38 00 00 08 */	li r0, 8
/* 800A7E34 000A4D74  3C 60 CC 01 */	lis r3, 0xCC008000@ha
/* 800A7E38 000A4D78  98 03 80 00 */	stb r0, 0xCC008000@l(r3)
/* 800A7E3C 000A4D7C  60 C0 00 B0 */	ori r0, r6, 0xb0
/* 800A7E40 000A4D80  54 A4 06 3E */	clrlwi r4, r5, 0x18
/* 800A7E44 000A4D84  98 03 80 00 */	stb r0, -0x8000(r3)
/* 800A7E48 000A4D88  34 06 FF F4 */	addic. r0, r6, -12
/* 800A7E4C 000A4D8C  90 83 80 00 */	stw r4, -0x8000(r3)
/* 800A7E50 000A4D90  4D 80 00 20 */	bltlr 
/* 800A7E54 000A4D94  2C 00 00 04 */	cmpwi r0, 4
/* 800A7E58 000A4D98  4C 80 00 20 */	bgelr 
/* 800A7E5C 000A4D9C  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A7E60 000A4DA0  54 00 10 3A */	slwi r0, r0, 2
/* 800A7E64 000A4DA4  7C 63 02 14 */	add r3, r3, r0
/* 800A7E68 000A4DA8  90 83 00 98 */	stw r4, 0x98(r3)
/* 800A7E6C 000A4DAC  4E 80 00 20 */	blr 

.global GXInvalidateVtxCache
GXInvalidateVtxCache:
/* 800A7E70 000A4DB0  38 00 00 48 */	li r0, 0x48
/* 800A7E74 000A4DB4  3C 60 CC 01 */	lis r3, 0xCC008000@ha
/* 800A7E78 000A4DB8  98 03 80 00 */	stb r0, 0xCC008000@l(r3)
/* 800A7E7C 000A4DBC  4E 80 00 20 */	blr 

.global GXSetTexCoordGen2
GXSetTexCoordGen2:
/* 800A7E80 000A4DC0  7C 08 02 A6 */	mflr r0
/* 800A7E84 000A4DC4  28 05 00 14 */	cmplwi r5, 0x14
/* 800A7E88 000A4DC8  90 01 00 04 */	stw r0, 4(r1)
/* 800A7E8C 000A4DCC  39 60 00 00 */	li r11, 0
/* 800A7E90 000A4DD0  39 80 00 00 */	li r12, 0
/* 800A7E94 000A4DD4  94 21 FF F8 */	stwu r1, -8(r1)
/* 800A7E98 000A4DD8  39 40 00 05 */	li r10, 5
/* 800A7E9C 000A4DDC  41 81 00 98 */	bgt lbl_800A7F34
/* 800A7EA0 000A4DE0  3D 20 80 3B */	lis r9, "@498"@ha
/* 800A7EA4 000A4DE4  39 29 17 60 */	addi r9, r9, "@498"@l
/* 800A7EA8 000A4DE8  54 A0 10 3A */	slwi r0, r5, 2
/* 800A7EAC 000A4DEC  7C 09 00 2E */	lwzx r0, r9, r0
/* 800A7EB0 000A4DF0  7C 09 03 A6 */	mtctr r0
/* 800A7EB4 000A4DF4  4E 80 04 20 */	bctr 
lbl_800A7EB8:
/* 800A7EB8 000A4DF8  39 40 00 00 */	li r10, 0
/* 800A7EBC 000A4DFC  39 80 00 01 */	li r12, 1
/* 800A7EC0 000A4E00  48 00 00 74 */	b lbl_800A7F34
lbl_800A7EC4:
/* 800A7EC4 000A4E04  39 40 00 01 */	li r10, 1
/* 800A7EC8 000A4E08  39 80 00 01 */	li r12, 1
/* 800A7ECC 000A4E0C  48 00 00 68 */	b lbl_800A7F34
lbl_800A7ED0:
/* 800A7ED0 000A4E10  39 40 00 03 */	li r10, 3
/* 800A7ED4 000A4E14  39 80 00 01 */	li r12, 1
/* 800A7ED8 000A4E18  48 00 00 5C */	b lbl_800A7F34
lbl_800A7EDC:
/* 800A7EDC 000A4E1C  39 40 00 04 */	li r10, 4
/* 800A7EE0 000A4E20  39 80 00 01 */	li r12, 1
/* 800A7EE4 000A4E24  48 00 00 50 */	b lbl_800A7F34
lbl_800A7EE8:
/* 800A7EE8 000A4E28  39 40 00 02 */	li r10, 2
/* 800A7EEC 000A4E2C  48 00 00 48 */	b lbl_800A7F34
lbl_800A7EF0:
/* 800A7EF0 000A4E30  39 40 00 02 */	li r10, 2
/* 800A7EF4 000A4E34  48 00 00 40 */	b lbl_800A7F34
lbl_800A7EF8:
/* 800A7EF8 000A4E38  39 40 00 05 */	li r10, 5
/* 800A7EFC 000A4E3C  48 00 00 38 */	b lbl_800A7F34
lbl_800A7F00:
/* 800A7F00 000A4E40  39 40 00 06 */	li r10, 6
/* 800A7F04 000A4E44  48 00 00 30 */	b lbl_800A7F34
lbl_800A7F08:
/* 800A7F08 000A4E48  39 40 00 07 */	li r10, 7
/* 800A7F0C 000A4E4C  48 00 00 28 */	b lbl_800A7F34
lbl_800A7F10:
/* 800A7F10 000A4E50  39 40 00 08 */	li r10, 8
/* 800A7F14 000A4E54  48 00 00 20 */	b lbl_800A7F34
lbl_800A7F18:
/* 800A7F18 000A4E58  39 40 00 09 */	li r10, 9
/* 800A7F1C 000A4E5C  48 00 00 18 */	b lbl_800A7F34
lbl_800A7F20:
/* 800A7F20 000A4E60  39 40 00 0A */	li r10, 0xa
/* 800A7F24 000A4E64  48 00 00 10 */	b lbl_800A7F34
lbl_800A7F28:
/* 800A7F28 000A4E68  39 40 00 0B */	li r10, 0xb
/* 800A7F2C 000A4E6C  48 00 00 08 */	b lbl_800A7F34
lbl_800A7F30:
/* 800A7F30 000A4E70  39 40 00 0C */	li r10, 0xc
lbl_800A7F34:
/* 800A7F34 000A4E74  2C 04 00 01 */	cmpwi r4, 1
/* 800A7F38 000A4E78  41 82 00 24 */	beq lbl_800A7F5C
/* 800A7F3C 000A4E7C  40 80 00 10 */	bge lbl_800A7F4C
/* 800A7F40 000A4E80  2C 04 00 00 */	cmpwi r4, 0
/* 800A7F44 000A4E84  40 80 00 2C */	bge lbl_800A7F70
/* 800A7F48 000A4E88  48 00 00 A4 */	b lbl_800A7FEC
lbl_800A7F4C:
/* 800A7F4C 000A4E8C  2C 04 00 0A */	cmpwi r4, 0xa
/* 800A7F50 000A4E90  41 82 00 74 */	beq lbl_800A7FC4
/* 800A7F54 000A4E94  40 80 00 98 */	bge lbl_800A7FEC
/* 800A7F58 000A4E98  48 00 00 30 */	b lbl_800A7F88
lbl_800A7F5C:
/* 800A7F5C 000A4E9C  55 80 10 3A */	slwi r0, r12, 2
/* 800A7F60 000A4EA0  54 04 07 26 */	rlwinm r4, r0, 0, 0x1c, 0x13
/* 800A7F64 000A4EA4  55 40 38 30 */	slwi r0, r10, 7
/* 800A7F68 000A4EA8  7C 8B 03 78 */	or r11, r4, r0
/* 800A7F6C 000A4EAC  48 00 00 80 */	b lbl_800A7FEC
lbl_800A7F70:
/* 800A7F70 000A4EB0  55 80 10 3A */	slwi r0, r12, 2
/* 800A7F74 000A4EB4  60 00 00 02 */	ori r0, r0, 2
/* 800A7F78 000A4EB8  54 04 07 26 */	rlwinm r4, r0, 0, 0x1c, 0x13
/* 800A7F7C 000A4EBC  55 40 38 30 */	slwi r0, r10, 7
/* 800A7F80 000A4EC0  7C 8B 03 78 */	or r11, r4, r0
/* 800A7F84 000A4EC4  48 00 00 68 */	b lbl_800A7FEC
lbl_800A7F88:
/* 800A7F88 000A4EC8  55 80 10 3A */	slwi r0, r12, 2
/* 800A7F8C 000A4ECC  54 00 07 30 */	rlwinm r0, r0, 0, 0x1c, 0x18
/* 800A7F90 000A4ED0  60 00 00 10 */	ori r0, r0, 0x10
/* 800A7F94 000A4ED4  54 09 06 66 */	rlwinm r9, r0, 0, 0x19, 0x13
/* 800A7F98 000A4ED8  55 40 38 30 */	slwi r0, r10, 7
/* 800A7F9C 000A4EDC  7D 29 03 78 */	or r9, r9, r0
/* 800A7FA0 000A4EE0  38 A5 FF F4 */	addi r5, r5, -12
/* 800A7FA4 000A4EE4  38 04 FF FE */	addi r0, r4, -2
/* 800A7FA8 000A4EE8  55 29 05 20 */	rlwinm r9, r9, 0, 0x14, 0x10
/* 800A7FAC 000A4EEC  54 A4 60 26 */	slwi r4, r5, 0xc
/* 800A7FB0 000A4EF0  7D 24 23 78 */	or r4, r9, r4
/* 800A7FB4 000A4EF4  54 84 04 5A */	rlwinm r4, r4, 0, 0x11, 0xd
/* 800A7FB8 000A4EF8  54 00 78 20 */	slwi r0, r0, 0xf
/* 800A7FBC 000A4EFC  7C 8B 03 78 */	or r11, r4, r0
/* 800A7FC0 000A4F00  48 00 00 2C */	b lbl_800A7FEC
lbl_800A7FC4:
/* 800A7FC4 000A4F04  2C 05 00 13 */	cmpwi r5, 0x13
/* 800A7FC8 000A4F08  55 80 10 3A */	slwi r0, r12, 2
/* 800A7FCC 000A4F0C  40 82 00 10 */	bne lbl_800A7FDC
/* 800A7FD0 000A4F10  54 00 07 30 */	rlwinm r0, r0, 0, 0x1c, 0x18
/* 800A7FD4 000A4F14  60 00 00 20 */	ori r0, r0, 0x20
/* 800A7FD8 000A4F18  48 00 00 0C */	b lbl_800A7FE4
lbl_800A7FDC:
/* 800A7FDC 000A4F1C  54 00 07 30 */	rlwinm r0, r0, 0, 0x1c, 0x18
/* 800A7FE0 000A4F20  60 00 00 30 */	ori r0, r0, 0x30
lbl_800A7FE4:
/* 800A7FE4 000A4F24  54 00 06 66 */	rlwinm r0, r0, 0, 0x19, 0x13
/* 800A7FE8 000A4F28  60 0B 01 00 */	ori r11, r0, 0x100
lbl_800A7FEC:
/* 800A7FEC 000A4F2C  39 40 00 10 */	li r10, 0x10
/* 800A7FF0 000A4F30  3D 20 CC 01 */	lis r9, 0xCC008000@ha
/* 800A7FF4 000A4F34  99 49 80 00 */	stb r10, 0xCC008000@l(r9)
/* 800A7FF8 000A4F38  38 03 10 40 */	addi r0, r3, 0x1040
/* 800A7FFC 000A4F3C  38 88 FF C0 */	addi r4, r8, -64
/* 800A8000 000A4F40  90 09 80 00 */	stw r0, -0x8000(r9)
/* 800A8004 000A4F44  54 85 06 2C */	rlwinm r5, r4, 0, 0x18, 0x16
/* 800A8008 000A4F48  54 E4 44 2E */	rlwinm r4, r7, 8, 0x10, 0x17
/* 800A800C 000A4F4C  91 69 80 00 */	stw r11, -0x8000(r9)
/* 800A8010 000A4F50  38 03 10 50 */	addi r0, r3, 0x1050
/* 800A8014 000A4F54  28 03 00 06 */	cmplwi r3, 6
/* 800A8018 000A4F58  99 49 80 00 */	stb r10, -0x8000(r9)
/* 800A801C 000A4F5C  7C A4 23 78 */	or r4, r5, r4
/* 800A8020 000A4F60  90 09 80 00 */	stw r0, -0x8000(r9)
/* 800A8024 000A4F64  90 89 80 00 */	stw r4, -0x8000(r9)
/* 800A8028 000A4F68  41 81 00 F4 */	bgt lbl_800A811C
/* 800A802C 000A4F6C  3C 80 80 3B */	lis r4, "@499"@ha
/* 800A8030 000A4F70  38 84 17 44 */	addi r4, r4, "@499"@l
/* 800A8034 000A4F74  54 60 10 3A */	slwi r0, r3, 2
/* 800A8038 000A4F78  7C 04 00 2E */	lwzx r0, r4, r0
/* 800A803C 000A4F7C  7C 09 03 A6 */	mtctr r0
/* 800A8040 000A4F80  4E 80 04 20 */	bctr 
lbl_800A8044:
/* 800A8044 000A4F84  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A8048 000A4F88  54 C0 30 32 */	slwi r0, r6, 6
/* 800A804C 000A4F8C  38 A4 00 80 */	addi r5, r4, 0x80
/* 800A8050 000A4F90  80 84 00 80 */	lwz r4, 0x80(r4)
/* 800A8054 000A4F94  54 84 06 A6 */	rlwinm r4, r4, 0, 0x1a, 0x13
/* 800A8058 000A4F98  7C 80 03 78 */	or r0, r4, r0
/* 800A805C 000A4F9C  90 05 00 00 */	stw r0, 0(r5)
/* 800A8060 000A4FA0  48 00 00 D8 */	b lbl_800A8138
lbl_800A8064:
/* 800A8064 000A4FA4  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A8068 000A4FA8  54 C0 60 26 */	slwi r0, r6, 0xc
/* 800A806C 000A4FAC  38 A4 00 80 */	addi r5, r4, 0x80
/* 800A8070 000A4FB0  80 84 00 80 */	lwz r4, 0x80(r4)
/* 800A8074 000A4FB4  54 84 05 1A */	rlwinm r4, r4, 0, 0x14, 0xd
/* 800A8078 000A4FB8  7C 80 03 78 */	or r0, r4, r0
/* 800A807C 000A4FBC  90 05 00 00 */	stw r0, 0(r5)
/* 800A8080 000A4FC0  48 00 00 B8 */	b lbl_800A8138
lbl_800A8084:
/* 800A8084 000A4FC4  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A8088 000A4FC8  54 C0 90 1A */	slwi r0, r6, 0x12
/* 800A808C 000A4FCC  38 A4 00 80 */	addi r5, r4, 0x80
/* 800A8090 000A4FD0  80 84 00 80 */	lwz r4, 0x80(r4)
/* 800A8094 000A4FD4  54 84 03 8E */	rlwinm r4, r4, 0, 0xe, 7
/* 800A8098 000A4FD8  7C 80 03 78 */	or r0, r4, r0
/* 800A809C 000A4FDC  90 05 00 00 */	stw r0, 0(r5)
/* 800A80A0 000A4FE0  48 00 00 98 */	b lbl_800A8138
lbl_800A80A4:
/* 800A80A4 000A4FE4  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A80A8 000A4FE8  54 C0 C0 0E */	slwi r0, r6, 0x18
/* 800A80AC 000A4FEC  38 A4 00 80 */	addi r5, r4, 0x80
/* 800A80B0 000A4FF0  80 84 00 80 */	lwz r4, 0x80(r4)
/* 800A80B4 000A4FF4  54 84 02 02 */	rlwinm r4, r4, 0, 8, 1
/* 800A80B8 000A4FF8  7C 80 03 78 */	or r0, r4, r0
/* 800A80BC 000A4FFC  90 05 00 00 */	stw r0, 0(r5)
/* 800A80C0 000A5000  48 00 00 78 */	b lbl_800A8138
lbl_800A80C4:
/* 800A80C4 000A5004  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A80C8 000A5008  84 04 00 84 */	lwzu r0, 0x84(r4)
/* 800A80CC 000A500C  54 00 00 32 */	rlwinm r0, r0, 0, 0, 0x19
/* 800A80D0 000A5010  7C 00 33 78 */	or r0, r0, r6
/* 800A80D4 000A5014  90 04 00 00 */	stw r0, 0(r4)
/* 800A80D8 000A5018  48 00 00 60 */	b lbl_800A8138
lbl_800A80DC:
/* 800A80DC 000A501C  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A80E0 000A5020  54 C0 30 32 */	slwi r0, r6, 6
/* 800A80E4 000A5024  38 A4 00 84 */	addi r5, r4, 0x84
/* 800A80E8 000A5028  80 84 00 84 */	lwz r4, 0x84(r4)
/* 800A80EC 000A502C  54 84 06 A6 */	rlwinm r4, r4, 0, 0x1a, 0x13
/* 800A80F0 000A5030  7C 80 03 78 */	or r0, r4, r0
/* 800A80F4 000A5034  90 05 00 00 */	stw r0, 0(r5)
/* 800A80F8 000A5038  48 00 00 40 */	b lbl_800A8138
lbl_800A80FC:
/* 800A80FC 000A503C  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A8100 000A5040  54 C0 60 26 */	slwi r0, r6, 0xc
/* 800A8104 000A5044  38 A4 00 84 */	addi r5, r4, 0x84
/* 800A8108 000A5048  80 84 00 84 */	lwz r4, 0x84(r4)
/* 800A810C 000A504C  54 84 05 1A */	rlwinm r4, r4, 0, 0x14, 0xd
/* 800A8110 000A5050  7C 80 03 78 */	or r0, r4, r0
/* 800A8114 000A5054  90 05 00 00 */	stw r0, 0(r5)
/* 800A8118 000A5058  48 00 00 20 */	b lbl_800A8138
lbl_800A811C:
/* 800A811C 000A505C  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A8120 000A5060  54 C0 90 1A */	slwi r0, r6, 0x12
/* 800A8124 000A5064  38 A4 00 84 */	addi r5, r4, 0x84
/* 800A8128 000A5068  80 84 00 84 */	lwz r4, 0x84(r4)
/* 800A812C 000A506C  54 84 03 8E */	rlwinm r4, r4, 0, 0xe, 7
/* 800A8130 000A5070  7C 80 03 78 */	or r0, r4, r0
/* 800A8134 000A5074  90 05 00 00 */	stw r0, 0(r5)
lbl_800A8138:
/* 800A8138 000A5078  38 63 00 01 */	addi r3, r3, 1
/* 800A813C 000A507C  48 00 5A 39 */	bl __GXSetMatrixIndex
/* 800A8140 000A5080  80 01 00 0C */	lwz r0, 0xc(r1)
/* 800A8144 000A5084  38 21 00 08 */	addi r1, r1, 8
/* 800A8148 000A5088  7C 08 03 A6 */	mtlr r0
/* 800A814C 000A508C  4E 80 00 20 */	blr 

.global GXSetNumTexGens
GXSetNumTexGens:
/* 800A8150 000A5090  80 8D 82 C8 */	lwz r4, gx@sda21(r13)
/* 800A8154 000A5094  54 67 06 3E */	clrlwi r7, r3, 0x18
/* 800A8158 000A5098  38 60 00 10 */	li r3, 0x10
/* 800A815C 000A509C  38 C4 02 04 */	addi r6, r4, 0x204
/* 800A8160 000A50A0  80 A4 02 04 */	lwz r5, 0x204(r4)
/* 800A8164 000A50A4  3C 80 CC 01 */	lis r4, 0xCC008000@ha
/* 800A8168 000A50A8  38 00 10 3F */	li r0, 0x103f
/* 800A816C 000A50AC  54 A5 00 36 */	rlwinm r5, r5, 0, 0, 0x1b
/* 800A8170 000A50B0  7C A5 3B 78 */	or r5, r5, r7
/* 800A8174 000A50B4  90 A6 00 00 */	stw r5, 0(r6)
/* 800A8178 000A50B8  98 64 80 00 */	stb r3, 0xCC008000@l(r4)
/* 800A817C 000A50BC  80 6D 82 C8 */	lwz r3, gx@sda21(r13)
/* 800A8180 000A50C0  90 04 80 00 */	stw r0, -0x8000(r4)
/* 800A8184 000A50C4  90 E4 80 00 */	stw r7, -0x8000(r4)
/* 800A8188 000A50C8  80 03 04 F4 */	lwz r0, 0x4f4(r3)
/* 800A818C 000A50CC  60 00 00 04 */	ori r0, r0, 4
/* 800A8190 000A50D0  90 03 04 F4 */	stw r0, 0x4f4(r3)
/* 800A8194 000A50D4  4E 80 00 20 */	blr 

.section .data, "wa"  # 0x803A8380 - 0x803E6000
"@128":
    .4byte lbl_800A6908
    .4byte lbl_800A6920
    .4byte lbl_800A6940
    .4byte lbl_800A6960
    .4byte lbl_800A6980
    .4byte lbl_800A69A0
    .4byte lbl_800A69C0
    .4byte lbl_800A69E0
    .4byte lbl_800A6A00
    .4byte lbl_800A6A20
    .4byte lbl_800A6A40
    .4byte lbl_800A6AB8
    .4byte lbl_800A6AD8
    .4byte lbl_800A6AF8
    .4byte lbl_800A6B10
    .4byte lbl_800A6B30
    .4byte lbl_800A6B50
    .4byte lbl_800A6B70
    .4byte lbl_800A6B90
    .4byte lbl_800A6BB0
    .4byte lbl_800A6BD0
    .4byte lbl_800A6BEC
    .4byte lbl_800A6BEC
    .4byte lbl_800A6BEC
    .4byte lbl_800A6BEC
    .4byte lbl_800A6A7C
"@189":
    .4byte lbl_800A6C74
    .4byte lbl_800A6C90
    .4byte lbl_800A6CB0
    .4byte lbl_800A6CD0
    .4byte lbl_800A6CF0
    .4byte lbl_800A6D10
    .4byte lbl_800A6D30
    .4byte lbl_800A6D50
    .4byte lbl_800A6D70
    .4byte lbl_800A6D90
    .4byte lbl_800A6DB0
    .4byte lbl_800A6E28
    .4byte lbl_800A6E48
    .4byte lbl_800A6E68
    .4byte lbl_800A6E84
    .4byte lbl_800A6EA4
    .4byte lbl_800A6EC4
    .4byte lbl_800A6EE4
    .4byte lbl_800A6F04
    .4byte lbl_800A6F24
    .4byte lbl_800A6F44
    .4byte lbl_800A6F60
    .4byte lbl_800A6F60
    .4byte lbl_800A6F60
    .4byte lbl_800A6F60
    .4byte lbl_800A6DEC
"@256":
    .4byte lbl_800A7164
    .4byte lbl_800A7174
    .4byte lbl_800A7184
    .4byte lbl_800A7194
    .4byte lbl_800A71A4
    .4byte lbl_800A71B4
    .4byte lbl_800A71C4
    .4byte lbl_800A71D4
    .4byte lbl_800A71E4
    .4byte lbl_800A71F4
    .4byte lbl_800A7204
    .4byte lbl_800A724C
    .4byte lbl_800A725C
    .4byte lbl_800A726C
    .4byte lbl_800A727C
    .4byte lbl_800A728C
    .4byte lbl_800A729C
    .4byte lbl_800A72AC
    .4byte lbl_800A72BC
    .4byte lbl_800A72CC
    .4byte lbl_800A72DC
    .4byte lbl_800A72EC
    .4byte lbl_800A72EC
    .4byte lbl_800A72EC
    .4byte lbl_800A72EC
    .4byte lbl_800A7228
"@302":
    .4byte lbl_800A73F0
    .4byte lbl_800A742C
    .4byte lbl_800A7490
    .4byte lbl_800A74BC
    .4byte lbl_800A74E8
    .4byte lbl_800A7528
    .4byte lbl_800A7564
    .4byte lbl_800A75A4
    .4byte lbl_800A75E4
    .4byte lbl_800A7624
    .4byte lbl_800A7664
    .4byte lbl_800A76A4
    .4byte lbl_800A76DC
    .4byte lbl_800A76DC
    .4byte lbl_800A76DC
    .4byte lbl_800A76DC
    .4byte lbl_800A742C
"@329":
    .4byte lbl_800A7760
    .4byte lbl_800A779C
    .4byte lbl_800A7800
    .4byte lbl_800A782C
    .4byte lbl_800A7858
    .4byte lbl_800A7898
    .4byte lbl_800A78D4
    .4byte lbl_800A7914
    .4byte lbl_800A7954
    .4byte lbl_800A7990
    .4byte lbl_800A79D0
    .4byte lbl_800A7A10
    .4byte lbl_800A7A48
    .4byte lbl_800A7A48
    .4byte lbl_800A7A48
    .4byte lbl_800A7A48
    .4byte lbl_800A779C
"@393":
    .4byte lbl_800A7B64
    .4byte lbl_800A7B8C
    .4byte lbl_800A7BD0
    .4byte lbl_800A7BF4
    .4byte lbl_800A7C18
    .4byte lbl_800A7C40
    .4byte lbl_800A7C68
    .4byte lbl_800A7C90
    .4byte lbl_800A7CB8
    .4byte lbl_800A7CE0
    .4byte lbl_800A7D08
    .4byte lbl_800A7D30
    .4byte lbl_800A7D58
    .4byte lbl_800A7D58
    .4byte lbl_800A7D58
    .4byte lbl_800A7D58
    .4byte lbl_800A7B8C
"@499":
    .4byte lbl_800A8044
    .4byte lbl_800A8064
    .4byte lbl_800A8084
    .4byte lbl_800A80A4
    .4byte lbl_800A80C4
    .4byte lbl_800A80DC
    .4byte lbl_800A80FC
"@498":
    .4byte lbl_800A7EB8
    .4byte lbl_800A7EC4
    .4byte lbl_800A7ED0
    .4byte lbl_800A7EDC
    .4byte lbl_800A7EF8
    .4byte lbl_800A7F00
    .4byte lbl_800A7F08
    .4byte lbl_800A7F10
    .4byte lbl_800A7F18
    .4byte lbl_800A7F20
    .4byte lbl_800A7F28
    .4byte lbl_800A7F30
    .4byte lbl_800A7F34
    .4byte lbl_800A7F34
    .4byte lbl_800A7F34
    .4byte lbl_800A7F34
    .4byte lbl_800A7F34
    .4byte lbl_800A7F34
    .4byte lbl_800A7F34
    .4byte lbl_800A7EE8
    .4byte lbl_800A7EF0
.section .sdata, "wa"  # 0x80408AC0 - 0x804097C0
tbl1$215:
	.4byte 0x00040102
tbl2$216:
	.4byte 0x00080102
tbl3$217:
	.4byte 0x000C0102
	.4byte 0