mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-21 22:54:37 -04:00
334 lines
11 KiB
C++
334 lines
11 KiB
C++
//
|
|
// Generated By: dol2asm
|
|
// Translation Unit: GXAttr
|
|
//
|
|
|
|
#include "dol2asm.h"
|
|
#include "dolphin/types.h"
|
|
#include "dolphin/gx/GXAttr.h"
|
|
|
|
//
|
|
// Forward References:
|
|
//
|
|
|
|
|
|
extern "C" void GXSetVtxDesc();
|
|
extern "C" void GXSetVtxDescv();
|
|
extern "C" void __GXSetVCD();
|
|
extern "C" void __GXCalculateVLim();
|
|
extern "C" void GXClearVtxDesc();
|
|
extern "C" void GXSetVtxAttrFmt();
|
|
extern "C" void GXSetVtxAttrFmtv();
|
|
extern "C" void __GXSetVAT();
|
|
extern "C" void GXSetArray();
|
|
extern "C" void GXInvalidateVtxCache();
|
|
extern "C" void GXSetTexCoordGen2();
|
|
extern "C" void GXSetNumTexGens();
|
|
|
|
//
|
|
// External References:
|
|
//
|
|
|
|
extern "C" extern void* __GXData;
|
|
|
|
extern "C" void __GXSetMatrixIndex();
|
|
extern "C" extern void* __GXData;
|
|
|
|
//
|
|
// Declarations:
|
|
//
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D2280-803D22E8 0068+00 s=1 e=0 z=0 None .data @176 */
|
|
SECTION_DATA static void* lit_176[26] = {
|
|
(void*)(((char*)GXSetVtxDesc)+0x20),
|
|
(void*)(((char*)GXSetVtxDesc)+0x34),
|
|
(void*)(((char*)GXSetVtxDesc)+0x48),
|
|
(void*)(((char*)GXSetVtxDesc)+0x5C),
|
|
(void*)(((char*)GXSetVtxDesc)+0x70),
|
|
(void*)(((char*)GXSetVtxDesc)+0x84),
|
|
(void*)(((char*)GXSetVtxDesc)+0x98),
|
|
(void*)(((char*)GXSetVtxDesc)+0xAC),
|
|
(void*)(((char*)GXSetVtxDesc)+0xC0),
|
|
(void*)(((char*)GXSetVtxDesc)+0xD4),
|
|
(void*)(((char*)GXSetVtxDesc)+0xE8),
|
|
(void*)(((char*)GXSetVtxDesc)+0x150),
|
|
(void*)(((char*)GXSetVtxDesc)+0x164),
|
|
(void*)(((char*)GXSetVtxDesc)+0x178),
|
|
(void*)(((char*)GXSetVtxDesc)+0x18C),
|
|
(void*)(((char*)GXSetVtxDesc)+0x1A0),
|
|
(void*)(((char*)GXSetVtxDesc)+0x1B4),
|
|
(void*)(((char*)GXSetVtxDesc)+0x1C8),
|
|
(void*)(((char*)GXSetVtxDesc)+0x1DC),
|
|
(void*)(((char*)GXSetVtxDesc)+0x1F0),
|
|
(void*)(((char*)GXSetVtxDesc)+0x204),
|
|
(void*)(((char*)GXSetVtxDesc)+0x214),
|
|
(void*)(((char*)GXSetVtxDesc)+0x214),
|
|
(void*)(((char*)GXSetVtxDesc)+0x214),
|
|
(void*)(((char*)GXSetVtxDesc)+0x214),
|
|
(void*)(((char*)GXSetVtxDesc)+0x11C),
|
|
};
|
|
|
|
/* 8035AEB8-8035B124 026C+00 s=1 e=70 z=6 None .text GXSetVtxDesc */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
extern "C" asm void GXSetVtxDesc() {
|
|
nofralloc
|
|
#include "asm/dolphin/gx/GXAttr/GXSetVtxDesc.s"
|
|
}
|
|
#pragma pop
|
|
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D22E8-803D2350 0068+00 s=1 e=0 z=0 None .data @223 */
|
|
SECTION_DATA static void* lit_223[26] = {
|
|
(void*)(((char*)GXSetVtxDescv)+0x2C),
|
|
(void*)(((char*)GXSetVtxDescv)+0x40),
|
|
(void*)(((char*)GXSetVtxDescv)+0x54),
|
|
(void*)(((char*)GXSetVtxDescv)+0x68),
|
|
(void*)(((char*)GXSetVtxDescv)+0x7C),
|
|
(void*)(((char*)GXSetVtxDescv)+0x90),
|
|
(void*)(((char*)GXSetVtxDescv)+0xA4),
|
|
(void*)(((char*)GXSetVtxDescv)+0xB8),
|
|
(void*)(((char*)GXSetVtxDescv)+0xCC),
|
|
(void*)(((char*)GXSetVtxDescv)+0xE0),
|
|
(void*)(((char*)GXSetVtxDescv)+0xF4),
|
|
(void*)(((char*)GXSetVtxDescv)+0x15C),
|
|
(void*)(((char*)GXSetVtxDescv)+0x170),
|
|
(void*)(((char*)GXSetVtxDescv)+0x184),
|
|
(void*)(((char*)GXSetVtxDescv)+0x198),
|
|
(void*)(((char*)GXSetVtxDescv)+0x1AC),
|
|
(void*)(((char*)GXSetVtxDescv)+0x1C0),
|
|
(void*)(((char*)GXSetVtxDescv)+0x1D4),
|
|
(void*)(((char*)GXSetVtxDescv)+0x1E8),
|
|
(void*)(((char*)GXSetVtxDescv)+0x1FC),
|
|
(void*)(((char*)GXSetVtxDescv)+0x210),
|
|
(void*)(((char*)GXSetVtxDescv)+0x220),
|
|
(void*)(((char*)GXSetVtxDescv)+0x220),
|
|
(void*)(((char*)GXSetVtxDescv)+0x220),
|
|
(void*)(((char*)GXSetVtxDescv)+0x220),
|
|
(void*)(((char*)GXSetVtxDescv)+0x128),
|
|
};
|
|
|
|
/* 8035B124-8035B3AC 0288+00 s=1 e=0 z=1 None .text GXSetVtxDescv */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
extern "C" asm void GXSetVtxDescv() {
|
|
nofralloc
|
|
#include "asm/dolphin/gx/GXAttr/GXSetVtxDescv.s"
|
|
}
|
|
#pragma pop
|
|
|
|
|
|
/* 8035B3AC-8035B468 00BC+00 s=0 e=2 z=0 None .text __GXSetVCD */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
extern "C" asm void __GXSetVCD() {
|
|
nofralloc
|
|
#include "asm/dolphin/gx/GXAttr/__GXSetVCD.s"
|
|
}
|
|
#pragma pop
|
|
|
|
|
|
/* ############################################################################################## */
|
|
/* 80450A80-80450A84 0004+00 s=1 e=0 z=0 None .sdata tbl1$241 */
|
|
SECTION_SDATA static u8 tbl1[4] = {
|
|
0x00, 0x04, 0x01, 0x02,
|
|
};
|
|
|
|
/* 80450A84-80450A88 0004+00 s=1 e=0 z=0 None .sdata tbl2$242 */
|
|
SECTION_SDATA static u8 tbl2[4] = {
|
|
0x00, 0x08, 0x01, 0x02,
|
|
};
|
|
|
|
/* 80450A88-80450A90 0004+04 s=1 e=0 z=0 None .sdata tbl3$243 */
|
|
SECTION_SDATA static u8 tbl3[4 + 4 /* padding */] = {
|
|
0x00, 0x0C, 0x01, 0x02,
|
|
/* padding */
|
|
0x00, 0x00, 0x00, 0x00,
|
|
};
|
|
|
|
/* 8035B468-8035B58C 0124+00 s=0 e=2 z=0 None .text __GXCalculateVLim */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
extern "C" asm void __GXCalculateVLim() {
|
|
nofralloc
|
|
#include "asm/dolphin/gx/GXAttr/__GXCalculateVLim.s"
|
|
}
|
|
#pragma pop
|
|
|
|
|
|
/* 8035B58C-8035B5C4 0038+00 s=0 e=66 z=7 None .text GXClearVtxDesc */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
extern "C" asm void GXClearVtxDesc() {
|
|
nofralloc
|
|
#include "asm/dolphin/gx/GXAttr/GXClearVtxDesc.s"
|
|
}
|
|
#pragma pop
|
|
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D2350-803D2394 0044+00 s=1 e=0 z=0 None .data @476 */
|
|
SECTION_DATA static void* lit_476[17] = {
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x3C),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x64),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0xB8),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0xD4),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0xF0),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x118),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x140),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x168),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x190),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x1B8),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x1E0),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x208),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x22C),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x22C),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x22C),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x22C),
|
|
(void*)(((char*)GXSetVtxAttrFmt)+0x64),
|
|
};
|
|
|
|
/* 8035B5C4-8035B820 025C+00 s=1 e=69 z=6 None .text GXSetVtxAttrFmt */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
extern "C" asm void GXSetVtxAttrFmt() {
|
|
nofralloc
|
|
#include "asm/dolphin/gx/GXAttr/GXSetVtxAttrFmt.s"
|
|
}
|
|
#pragma pop
|
|
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D2394-803D23D8 0044+00 s=1 e=0 z=0 None .data @503 */
|
|
SECTION_DATA static void* lit_503[17] = {
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x50),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x78),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0xCC),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0xE8),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x104),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x12C),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x154),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x17C),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x1A4),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x1CC),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x1F4),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x21C),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x240),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x240),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x240),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x240),
|
|
(void*)(((char*)GXSetVtxAttrFmtv)+0x78),
|
|
};
|
|
|
|
/* 8035B820-8035BAA0 0280+00 s=1 e=1 z=1 None .text GXSetVtxAttrFmtv */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
extern "C" asm void GXSetVtxAttrFmtv() {
|
|
nofralloc
|
|
#include "asm/dolphin/gx/GXAttr/GXSetVtxAttrFmtv.s"
|
|
}
|
|
#pragma pop
|
|
|
|
|
|
/* 8035BAA0-8035BB28 0088+00 s=0 e=2 z=0 None .text __GXSetVAT */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
extern "C" asm void __GXSetVAT() {
|
|
nofralloc
|
|
#include "asm/dolphin/gx/GXAttr/__GXSetVAT.s"
|
|
}
|
|
#pragma pop
|
|
|
|
|
|
/* 8035BB28-8035BB6C 0044+00 s=0 e=13 z=5 None .text GXSetArray */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
extern "C" asm void GXSetArray() {
|
|
nofralloc
|
|
#include "asm/dolphin/gx/GXAttr/GXSetArray.s"
|
|
}
|
|
#pragma pop
|
|
|
|
|
|
/* 8035BB6C-8035BB7C 0010+00 s=0 e=6 z=0 None .text GXInvalidateVtxCache */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
extern "C" asm void GXInvalidateVtxCache() {
|
|
nofralloc
|
|
#include "asm/dolphin/gx/GXAttr/GXInvalidateVtxCache.s"
|
|
}
|
|
#pragma pop
|
|
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D23D8-803D23F4 001C+00 s=1 e=0 z=0 None .data @740 */
|
|
SECTION_DATA static void* lit_740[7] = {
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x1CC),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x1E0),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x1F4),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x208),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x21C),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x230),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x244),
|
|
};
|
|
|
|
/* 803D23F4-803D2448 0054+00 s=1 e=0 z=0 None .data @739 */
|
|
SECTION_DATA static void* lit_739[21] = {
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x38),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x44),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x50),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x5C),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x78),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x80),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x88),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x90),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x98),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0xA0),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0xA8),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0xB0),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0xB4),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0xB4),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0xB4),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0xB4),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0xB4),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0xB4),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0xB4),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x68),
|
|
(void*)(((char*)GXSetTexCoordGen2)+0x70),
|
|
};
|
|
|
|
/* 8035BB7C-8035BDFC 0280+00 s=2 e=46 z=5 None .text GXSetTexCoordGen2 */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
extern "C" asm void GXSetTexCoordGen2() {
|
|
nofralloc
|
|
#include "asm/dolphin/gx/GXAttr/GXSetTexCoordGen2.s"
|
|
}
|
|
#pragma pop
|
|
|
|
|
|
/* 8035BDFC-8035BE38 003C+00 s=0 e=59 z=6 None .text GXSetNumTexGens */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
extern "C" asm void GXSetNumTexGens() {
|
|
nofralloc
|
|
#include "asm/dolphin/gx/GXAttr/GXSetNumTexGens.s"
|
|
}
|
|
#pragma pop
|
|
|
|
|