// // Generated By: dol2asm // Translation Unit: J3DAnmLoader // #include "JSystem/J3DGraphLoader/J3DAnmLoader.h" #include "JSystem/J3DGraphAnimator/J3DAnimation.h" #include "JSystem/JSupport/JSupport.h" #include "dol2asm.h" #include "dolphin/os.h" // // Types: // class J3DAnmLoader { public: virtual J3DAnmBase* load(const void*) = 0; virtual void setResource(J3DAnmBase*, const void*) = 0; /* 80339800 */ virtual ~J3DAnmLoader() {} }; class J3DAnmKeyLoader_v15 : public J3DAnmLoader { public: /* 803384E0 */ J3DAnmKeyLoader_v15(); /* 80338FEC */ void readAnmTransform(J3DAnmTransformKeyData const*); /* 80339014 */ void setAnmTransform(J3DAnmTransformKey*, J3DAnmTransformKeyData const*); /* 803390B0 */ void readAnmTextureSRT(J3DAnmTextureSRTKeyData const*); /* 803390D8 */ void setAnmTextureSRT(J3DAnmTextureSRTKey*, J3DAnmTextureSRTKeyData const*); /* 803392B0 */ void readAnmColor(J3DAnmColorKeyData const*); /* 803392D8 */ void setAnmColor(J3DAnmColorKey*, J3DAnmColorKeyData const*); /* 803393C4 */ void readAnmCluster(J3DAnmClusterKeyData const*); /* 803393EC */ void setAnmCluster(J3DAnmClusterKey*, J3DAnmClusterKeyData const*); /* 80339458 */ void readAnmTevReg(J3DAnmTevRegKeyData const*); /* 80339480 */ void setAnmTevReg(J3DAnmTevRegKey*, J3DAnmTevRegKeyData const*); /* 8033960C */ void readAnmVtxColor(J3DAnmVtxColorKeyData const*); /* 80339634 */ void setAnmVtxColor(J3DAnmVtxColorKey*, J3DAnmVtxColorKeyData const*); /* 80338D44 */ virtual J3DAnmBase* load(void const*); /* 80338E8C */ virtual void setResource(J3DAnmBase*, void const*); /* 803384FC */ virtual ~J3DAnmKeyLoader_v15(); /* 0x4 */ J3DAnmBase* mAnm; }; class J3DAnmFullLoader_v15 : public J3DAnmLoader { public: /* 80338468 */ J3DAnmFullLoader_v15(); /* 80338800 */ void readAnmTransform(J3DAnmTransformFullData const*); /* 80338828 */ void setAnmTransform(J3DAnmTransformFull*, J3DAnmTransformFullData const*); /* 803388BC */ void readAnmColor(J3DAnmColorFullData const*); /* 803388E4 */ void setAnmColor(J3DAnmColorFull*, J3DAnmColorFullData const*); /* 803389B0 */ void readAnmTexPattern(J3DAnmTexPatternFullData const*); /* 803389D8 */ void setAnmTexPattern(J3DAnmTexPattern*, J3DAnmTexPatternFullData const*); /* 80338A7C */ void readAnmVisibility(J3DAnmVisibilityFullData const*); /* 80338AA4 */ void setAnmVisibility(J3DAnmVisibilityFull*, J3DAnmVisibilityFullData const*); /* 80338B20 */ void readAnmCluster(J3DAnmClusterFullData const*); /* 80338B48 */ void setAnmCluster(J3DAnmClusterFull*, J3DAnmClusterFullData const*); /* 80338BB4 */ void readAnmVtxColor(J3DAnmVtxColorFullData const*); /* 80338BDC */ void setAnmVtxColor(J3DAnmVtxColorFull*, J3DAnmVtxColorFullData const*); /* 80338558 */ virtual J3DAnmBase* load(void const*); /* 803386A0 */ virtual void setResource(J3DAnmBase*, void const*); /* 80338484 */ virtual ~J3DAnmFullLoader_v15(); /* 0x4 */ J3DAnmBase* mAnm; }; // // Forward References: // extern "C" void load__20J3DAnmLoaderDataBaseFPCv24J3DAnmLoaderDataBaseFlag(); extern "C" void setResource__20J3DAnmLoaderDataBaseFP10J3DAnmBasePCv(); extern "C" void __ct__20J3DAnmFullLoader_v15Fv(); extern "C" void __dt__20J3DAnmFullLoader_v15Fv(); extern "C" void __ct__19J3DAnmKeyLoader_v15Fv(); extern "C" void __dt__19J3DAnmKeyLoader_v15Fv(); extern "C" void load__20J3DAnmFullLoader_v15FPCv(); extern "C" void setResource__20J3DAnmFullLoader_v15FP10J3DAnmBasePCv(); extern "C" void readAnmTransform__20J3DAnmFullLoader_v15FPC23J3DAnmTransformFullData(); extern "C" void setAnmTransform__20J3DAnmFullLoader_v15FP19J3DAnmTransformFullPC23J3DAnmTransformFullData(); extern "C" void readAnmColor__20J3DAnmFullLoader_v15FPC19J3DAnmColorFullData(); extern "C" void setAnmColor__20J3DAnmFullLoader_v15FP15J3DAnmColorFullPC19J3DAnmColorFullData(); extern "C" void readAnmTexPattern__20J3DAnmFullLoader_v15FPC24J3DAnmTexPatternFullData(); extern "C" void setAnmTexPattern__20J3DAnmFullLoader_v15FP16J3DAnmTexPatternPC24J3DAnmTexPatternFullData(); extern "C" void readAnmVisibility__20J3DAnmFullLoader_v15FPC24J3DAnmVisibilityFullData(); extern "C" void setAnmVisibility__20J3DAnmFullLoader_v15FP20J3DAnmVisibilityFullPC24J3DAnmVisibilityFullData(); extern "C" void readAnmCluster__20J3DAnmFullLoader_v15FPC21J3DAnmClusterFullData(); extern "C" void setAnmCluster__20J3DAnmFullLoader_v15FP17J3DAnmClusterFullPC21J3DAnmClusterFullData(); extern "C" void readAnmVtxColor__20J3DAnmFullLoader_v15FPC22J3DAnmVtxColorFullData(); extern "C" void setAnmVtxColor__20J3DAnmFullLoader_v15FP18J3DAnmVtxColorFullPC22J3DAnmVtxColorFullData(); extern "C" void load__19J3DAnmKeyLoader_v15FPCv(); extern "C" void setResource__19J3DAnmKeyLoader_v15FP10J3DAnmBasePCv(); extern "C" void readAnmTransform__19J3DAnmKeyLoader_v15FPC22J3DAnmTransformKeyData(); extern "C" void setAnmTransform__19J3DAnmKeyLoader_v15FP18J3DAnmTransformKeyPC22J3DAnmTransformKeyData(); extern "C" void readAnmTextureSRT__19J3DAnmKeyLoader_v15FPC23J3DAnmTextureSRTKeyData(); extern "C" void setAnmTextureSRT__19J3DAnmKeyLoader_v15FP19J3DAnmTextureSRTKeyPC23J3DAnmTextureSRTKeyData(); extern "C" void readAnmColor__19J3DAnmKeyLoader_v15FPC18J3DAnmColorKeyData(); extern "C" void setAnmColor__19J3DAnmKeyLoader_v15FP14J3DAnmColorKeyPC18J3DAnmColorKeyData(); extern "C" void readAnmCluster__19J3DAnmKeyLoader_v15FPC20J3DAnmClusterKeyData(); extern "C" void setAnmCluster__19J3DAnmKeyLoader_v15FP16J3DAnmClusterKeyPC20J3DAnmClusterKeyData(); extern "C" void readAnmTevReg__19J3DAnmKeyLoader_v15FPC19J3DAnmTevRegKeyData(); extern "C" void setAnmTevReg__19J3DAnmKeyLoader_v15FP15J3DAnmTevRegKeyPC19J3DAnmTevRegKeyData(); extern "C" void readAnmVtxColor__19J3DAnmKeyLoader_v15FPC21J3DAnmVtxColorKeyData(); extern "C" void setAnmVtxColor__19J3DAnmKeyLoader_v15FP17J3DAnmVtxColorKeyPC21J3DAnmVtxColorKeyData(); extern "C" void __dt__20J3DAnmVisibilityFullFv(); extern "C" s32 getKind__20J3DAnmVisibilityFullCFv(); extern "C" void __dt__12J3DAnmLoaderFv(); extern "C" void func_80339848(void* _this, void const*, void const*); extern "C" void func_80339860(void* _this, void const*, void const*); extern "C" extern char const* const J3DAnmLoader__stringBase0; // // External References: // extern "C" void* __nw__FUl(); extern "C" void __dl__FPv(); extern "C" void setResource__10JUTNameTabFPC7ResNTAB(); extern "C" void func_802F4260(void* _this, void const*, void const*); extern "C" void func_802F42C0(void* _this, void const*, void const*); extern "C" void func_8030A458(void* _this, void const*, void const*); extern "C" void func_8030A470(void* _this, void const*, void const*); extern "C" void func_8030A488(void* _this, void const*, void const*); extern "C" void func_8030A4A0(void* _this, void const*, void const*); extern "C" void func_8030A4B8(void* _this, void const*, void const*); extern "C" void func_8030A4D0(void* _this, void const*, void const*); extern "C" void func_8030A4E8(void* _this, void const*, void const*); extern "C" void func_8030A500(void* _this, void const*, void const*); extern "C" void func_8030A518(void* _this, void const*, void const*); extern "C" void func_8030A530(void* _this, void const*, void const*); extern "C" void func_8030A548(void* _this, void const*, void const*); extern "C" void func_8030A560(void* _this, void const*, void const*); extern "C" void func_8030A578(void* _this, void const*, void const*); extern "C" void __ct__15J3DAnmTransformFsPfPsPf(); extern "C" void __ct__19J3DAnmTextureSRTKeyFv(); extern "C" void __ct__18J3DAnmVtxColorFullFv(); extern "C" void __ct__17J3DAnmVtxColorKeyFv(); extern "C" void __ct__15J3DAnmColorFullFv(); extern "C" void __ct__14J3DAnmColorKeyFv(); extern "C" void __ct__15J3DAnmTevRegKeyFv(); extern "C" void __ct__16J3DAnmTexPatternFv(); extern "C" void _savegpr_26(); extern "C" void _savegpr_27(); extern "C" void _savegpr_29(); extern "C" void _restgpr_26(); extern "C" void _restgpr_27(); extern "C" void _restgpr_29(); extern "C" extern void* __vt__10J3DAnmBase[4]; extern "C" extern void* __vt__18J3DAnmTransformKey[5]; extern "C" extern void* __vt__16J3DAnmClusterKey[5]; extern "C" extern void* __vt__13J3DAnmCluster[5]; extern "C" extern void* __vt__17J3DAnmClusterFull[5]; extern "C" extern void* __vt__27J3DAnmTransformFullWithLerp[5]; extern "C" extern void* __vt__19J3DAnmTransformFull[5 + 1 /* padding */]; // // Declarations: // /* ############################################################################################## */ /* 803A2130-803A2130 02E790 0000+00 0/0 0/0 0/0 .rodata @stringBase0 */ #pragma push #pragma force_active on SECTION_DEAD static char const* const stringBase_803A2130 = "J3DAnmLoader: this is not a J3D Binary.\n"; #pragma pop /* 803CF238-803CF24C 02C358 0014+00 2/2 0/0 0/0 .data __vt__19J3DAnmKeyLoader_v15 */ SECTION_DATA extern void* __vt__19J3DAnmKeyLoader_v15[5] = { (void*)NULL /* RTTI */, (void*)NULL, (void*)load__19J3DAnmKeyLoader_v15FPCv, (void*)setResource__19J3DAnmKeyLoader_v15FP10J3DAnmBasePCv, (void*)__dt__19J3DAnmKeyLoader_v15Fv, }; /* 803CF24C-803CF260 02C36C 0014+00 2/2 0/0 0/0 .data __vt__20J3DAnmFullLoader_v15 */ SECTION_DATA extern void* __vt__20J3DAnmFullLoader_v15[5] = { (void*)NULL /* RTTI */, (void*)NULL, (void*)load__20J3DAnmFullLoader_v15FPCv, (void*)setResource__20J3DAnmFullLoader_v15FP10J3DAnmBasePCv, (void*)__dt__20J3DAnmFullLoader_v15Fv, }; /* 803CF260-803CF274 02C380 0014+00 5/5 0/0 0/0 .data __vt__12J3DAnmLoader */ SECTION_DATA extern void* __vt__12J3DAnmLoader[5] = { (void*)NULL /* RTTI */, (void*)NULL, (void*)NULL, (void*)NULL, (void*)__dt__12J3DAnmLoaderFv, }; /* 803CF274-803CF288 02C394 0010+04 2/2 0/0 0/0 .data __vt__20J3DAnmVisibilityFull */ SECTION_DATA extern void* __vt__20J3DAnmVisibilityFull[4 + 1 /* padding */] = { (void*)NULL /* RTTI */, (void*)NULL, (void*)__dt__20J3DAnmVisibilityFullFv, (void*)getKind__20J3DAnmVisibilityFullCFv, /* padding */ NULL, }; /* 804564C0-804564C8 004AC0 0004+04 13/13 0/0 0/0 .sdata2 @889 */ SECTION_SDATA2 static f32 lit_889[1 + 1 /* padding */] = { 0.0f, /* padding */ 0.0f, }; /* 80337B40-80338134 332480 05F4+00 0/0 7/7 1/1 .text * load__20J3DAnmLoaderDataBaseFPCv24J3DAnmLoaderDataBaseFlag */ // matches with literals #ifdef NONMATCHING J3DAnmBase* J3DAnmLoaderDataBase::load(const void* i_data, J3DAnmLoaderDataBaseFlag flag) { if (!i_data) { return NULL; } const JUTDataFileHeader* header = (const JUTDataFileHeader*)i_data; if (header->mMagic == 'J3D1') { switch (header->mType) { case 'bck1': { J3DAnmKeyLoader_v15 loader; loader.mAnm = new J3DAnmTransformKey(); return loader.load(i_data); } case 'bpk1': { J3DAnmKeyLoader_v15 loader; loader.mAnm = new J3DAnmColorKey(); return loader.load(i_data); } case 'blk1': { J3DAnmKeyLoader_v15 loader; loader.mAnm = new J3DAnmClusterKey(); return loader.load(i_data); } case 'btk1': { J3DAnmKeyLoader_v15 loader; loader.mAnm = new J3DAnmTextureSRTKey(); return loader.load(i_data); } case 'brk1': { J3DAnmKeyLoader_v15 loader; loader.mAnm = new J3DAnmTevRegKey(); return loader.load(i_data); } case 'bxk1': { J3DAnmKeyLoader_v15 loader; loader.mAnm = new J3DAnmVtxColorKey(); return loader.load(i_data); } case 'bca1': { J3DAnmFullLoader_v15 loader; if (flag & J3DLOADER_UNK_FLAG1) { loader.mAnm = new J3DAnmTransformFullWithLerp(); } else { loader.mAnm = new J3DAnmTransformFull(); } return loader.load(i_data); } case 'bpa1': { J3DAnmFullLoader_v15 loader; loader.mAnm = new J3DAnmColorFull(); return loader.load(i_data); } case 'btp1': { J3DAnmFullLoader_v15 loader; loader.mAnm = new J3DAnmTexPattern(); return loader.load(i_data); } case 'bva1': { J3DAnmFullLoader_v15 loader; loader.mAnm = new J3DAnmVisibilityFull(); return loader.load(i_data); } case 'bla1': { J3DAnmFullLoader_v15 loader; loader.mAnm = new J3DAnmClusterFull(); return loader.load(i_data); } case 'bxa1': { J3DAnmFullLoader_v15 loader; loader.mAnm = new J3DAnmVtxColorFull(); return loader.load(i_data); } default: OSReport("J3DAnmLoader: this is not a J3D Binary.\n"); return NULL; } } return NULL; } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm J3DAnmBase* J3DAnmLoaderDataBase::load(void const* param_0, J3DAnmLoaderDataBaseFlag param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/load__20J3DAnmLoaderDataBaseFPCv24J3DAnmLoaderDataBaseFlag.s" } #pragma pop #endif /* 80338134-80338468 332A74 0334+00 0/0 1/1 0/0 .text * setResource__20J3DAnmLoaderDataBaseFP10J3DAnmBasePCv */ void J3DAnmLoaderDataBase::setResource(J3DAnmBase* param_1, const void* param_2) { const JUTDataFileHeader* header = (const JUTDataFileHeader*)param_2; if (!header) { return; } if (header->mMagic != 'J3D1') { return; } switch (header->mType) { case 'bck1': { J3DAnmKeyLoader_v15 loader; loader.setResource(param_1, param_2); break; } case 'bpk1': { J3DAnmKeyLoader_v15 loader; loader.setResource(param_1, param_2); break; } case 'blk1': { J3DAnmKeyLoader_v15 loader; loader.setResource(param_1, param_2); break; } case 'btk1': { J3DAnmKeyLoader_v15 loader; loader.setResource(param_1, param_2); break; } case 'brk1': { J3DAnmKeyLoader_v15 loader; if (param_1->getKind() == 5) { loader.setResource(param_1, param_2); } break; } case 'bxk1': { J3DAnmKeyLoader_v15 loader; loader.setResource(param_1, param_2); break; } case 'bca1': { J3DAnmFullLoader_v15 loader; loader.setResource(param_1, param_2); break; } case 'bpa1': { J3DAnmFullLoader_v15 loader; loader.setResource(param_1, param_2); break; } case 'btp1': { J3DAnmFullLoader_v15 loader; loader.setResource(param_1, param_2); break; } case 'bla1': { J3DAnmFullLoader_v15 loader; loader.setResource(param_1, param_2); break; } case 'bxa1': { J3DAnmFullLoader_v15 loader; loader.setResource(param_1, param_2); break; } case 'bva1': { J3DAnmFullLoader_v15 loader; loader.setResource(param_1, param_2); break; } default: { OSReport("J3DAnmLoader: this is not a J3D Binary.\n"); break; } } } /* 80338468-80338484 332DA8 001C+00 2/2 0/0 0/0 .text __ct__20J3DAnmFullLoader_v15Fv */ // matches with vtable data #ifdef NONMATCHING J3DAnmFullLoader_v15::J3DAnmFullLoader_v15() {} #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm J3DAnmFullLoader_v15::J3DAnmFullLoader_v15() { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/__ct__20J3DAnmFullLoader_v15Fv.s" } #pragma pop #endif /* 80338484-803384E0 332DC4 005C+00 3/2 0/0 0/0 .text __dt__20J3DAnmFullLoader_v15Fv */ // matches with vtable data #ifdef NONMATCHING J3DAnmFullLoader_v15::~J3DAnmFullLoader_v15() {} #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm J3DAnmFullLoader_v15::~J3DAnmFullLoader_v15() { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/__dt__20J3DAnmFullLoader_v15Fv.s" } #pragma pop #endif /* 803384E0-803384FC 332E20 001C+00 2/2 0/0 0/0 .text __ct__19J3DAnmKeyLoader_v15Fv */ // matches with vtable data #ifdef NONMATCHING J3DAnmKeyLoader_v15::J3DAnmKeyLoader_v15() {} #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm J3DAnmKeyLoader_v15::J3DAnmKeyLoader_v15() { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/__ct__19J3DAnmKeyLoader_v15Fv.s" } #pragma pop #endif /* 803384FC-80338558 332E3C 005C+00 3/2 0/0 0/0 .text __dt__19J3DAnmKeyLoader_v15Fv */ // matches with vtable data #ifdef NONMATCHING J3DAnmKeyLoader_v15::~J3DAnmKeyLoader_v15() {} #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm J3DAnmKeyLoader_v15::~J3DAnmKeyLoader_v15() { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/__dt__19J3DAnmKeyLoader_v15Fv.s" } #pragma pop #endif /* ############################################################################################## */ /* 803A2130-803A2130 02E790 0000+00 0/0 0/0 0/0 .rodata @stringBase0 */ #pragma push #pragma force_active on SECTION_DEAD static char const* const stringBase_803A2159 = "Unknown data block\n"; /* @stringBase0 padding */ SECTION_DEAD static char const* const pad_803A216D = "\0\0"; #pragma pop /* 80338558-803386A0 332E98 0148+00 2/1 0/0 0/0 .text load__20J3DAnmFullLoader_v15FPCv */ // matches with vtable data #ifdef NONMATCHING J3DAnmBase* J3DAnmFullLoader_v15::load(const void* param_1) { const JUTDataFileHeader* header = (const JUTDataFileHeader*)param_1; const JUTDataBlockHeader* block = &header->mFirstBlock; for (int i = 0; i < header->mBlockNum; i++) { switch (block->mType) { case 'ANF1': readAnmTransform((J3DAnmTransformFullData*)block); break; case 'PAF1': readAnmColor((J3DAnmColorFullData*)block); break; case 'TPT1': readAnmTexPattern((J3DAnmTexPatternFullData*)block); break; case 'CLF1': readAnmCluster((J3DAnmClusterFullData*)block); break; case 'VAF1': readAnmVisibility((J3DAnmVisibilityFullData*)block); break; case 'VCF1': readAnmVtxColor((J3DAnmVtxColorFullData*)block); break; default: OSReport("Unknown data block\n"); break; } block = block->getNext(); } return mAnm; } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off // asm void J3DAnmFullLoader_v15::load(void const* param_0) { extern "C" asm void load__20J3DAnmFullLoader_v15FPCv() { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/load__20J3DAnmFullLoader_v15FPCv.s" } #pragma pop #endif /* 803386A0-80338800 332FE0 0160+00 2/1 0/0 0/0 .text * setResource__20J3DAnmFullLoader_v15FP10J3DAnmBasePCv */ void J3DAnmFullLoader_v15::setResource(J3DAnmBase* param_1, const void* param_2) { const JUTDataFileHeader* header = (const JUTDataFileHeader*)param_2; const JUTDataBlockHeader* block = &header->mFirstBlock; for (int i = 0; i < header->mBlockNum; i++) { switch (block->mType) { case 'ANF1': setAnmTransform((J3DAnmTransformFull*)param_1, (const J3DAnmTransformFullData*)block); break; case 'PAF1': setAnmColor((J3DAnmColorFull*)param_1, (const J3DAnmColorFullData*)block); break; case 'TPT1': setAnmTexPattern((J3DAnmTexPattern*)param_1, (const J3DAnmTexPatternFullData*)block); break; case 'CLF1': setAnmCluster((J3DAnmClusterFull*)param_1, (const J3DAnmClusterFullData*)block); break; case 'VAF1': setAnmVisibility((J3DAnmVisibilityFull*)param_1, (const J3DAnmVisibilityFullData*)block); break; case 'VCF1': setAnmVtxColor((J3DAnmVtxColorFull*)param_1, (const J3DAnmVtxColorFullData*)block); break; default: OSReport("Unknown data block\n"); break; } block = block->getNext(); } } /* 80338800-80338828 333140 0028+00 1/1 0/0 0/0 .text * readAnmTransform__20J3DAnmFullLoader_v15FPC23J3DAnmTransformFullData */ void J3DAnmFullLoader_v15::readAnmTransform(const J3DAnmTransformFullData* param_1) { setAnmTransform((J3DAnmTransformFull*)mAnm, param_1); } /* 80338828-803388BC 333168 0094+00 2/2 0/0 0/0 .text * setAnmTransform__20J3DAnmFullLoader_v15FP19J3DAnmTransformFullPC23J3DAnmTransformFullData */ // matches with literals / weaks #ifdef NONMATCHING void J3DAnmFullLoader_v15::setAnmTransform(J3DAnmTransformFull* param_1, const J3DAnmTransformFullData* param_2) { param_1->field_0x1e = param_2->field_0xc; param_1->mFrameMax = param_2->mFrameMax; param_1->mAttribute = param_2->field_0x8; param_1->mFrame = 0.0f; param_1->mAnmTable = JSUConvertOffsetToPtr(param_2, (void*)param_2->mTableOffset); param_1->field_0xc = JSUConvertOffsetToPtr(param_2, (void*)param_2->mScaleValOffset); param_1->field_0x10 = JSUConvertOffsetToPtr(param_2, (void*)param_2->mRotValOffset); param_1->field_0x14 = JSUConvertOffsetToPtr(param_2, (void*)param_2->mTransValOffset); } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void J3DAnmFullLoader_v15::setAnmTransform(J3DAnmTransformFull* param_0, J3DAnmTransformFullData const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/func_80338828.s" } #pragma pop #endif /* 803388BC-803388E4 3331FC 0028+00 1/1 0/0 0/0 .text * readAnmColor__20J3DAnmFullLoader_v15FPC19J3DAnmColorFullData */ void J3DAnmFullLoader_v15::readAnmColor(const J3DAnmColorFullData* param_1) { setAnmColor((J3DAnmColorFull*)mAnm, param_1); } /* 803388E4-803389B0 333224 00CC+00 2/2 0/0 0/0 .text * setAnmColor__20J3DAnmFullLoader_v15FP15J3DAnmColorFullPC19J3DAnmColorFullData */ // matches with literals / weaks #ifdef NONMATCHING void J3DAnmFullLoader_v15::setAnmColor(J3DAnmColorFull* param_1, const J3DAnmColorFullData* param_2) { param_1->mFrameMax = param_2->mFrameMax; param_1->mAttribute = param_2->field_0x8; param_1->mFrame = 0.0f; param_1->mUpdateMaterialNum = param_2->mUpdateMaterialNum; param_1->mAnmTable = JSUConvertOffsetToPtr(param_2, (void*)param_2->mTableOffset); param_1->mColorR = JSUConvertOffsetToPtr(param_2, param_2->mRValuesOffset); param_1->mColorG = JSUConvertOffsetToPtr(param_2, param_2->mGValuesOffset); param_1->mColorB = JSUConvertOffsetToPtr(param_2, param_2->mBValuesOffset); param_1->mColorA = JSUConvertOffsetToPtr(param_2, param_2->mAValuesOffset); param_1->mUpdateMaterialID = JSUConvertOffsetToPtr(param_2, (void*)param_2->mUpdateMaterialIDOffset); param_1->mUpdateMaterialName.setResource( JSUConvertOffsetToPtr(param_2, (void*)param_2->mNameTabOffset)); } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void J3DAnmFullLoader_v15::setAnmColor(J3DAnmColorFull* param_0, J3DAnmColorFullData const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/setAnmColor__20J3DAnmFullLoader_v15FP15J3DAnmColorFullPC19J3DAnmColorFullData.s" } #pragma pop #endif /* 803389B0-803389D8 3332F0 0028+00 1/1 0/0 0/0 .text * readAnmTexPattern__20J3DAnmFullLoader_v15FPC24J3DAnmTexPatternFullData */ void J3DAnmFullLoader_v15::readAnmTexPattern(const J3DAnmTexPatternFullData* param_1) { setAnmTexPattern((J3DAnmTexPattern*)mAnm, param_1); } /* 803389D8-80338A7C 333318 00A4+00 2/2 0/0 0/0 .text * setAnmTexPattern__20J3DAnmFullLoader_v15FP16J3DAnmTexPatternPC24J3DAnmTexPatternFullData */ // matches with literals / weaks #ifdef NONMATCHING void J3DAnmFullLoader_v15::setAnmTexPattern(J3DAnmTexPattern* param_1, const J3DAnmTexPatternFullData* param_2) { param_1->mFrameMax = param_2->mFrameMax; param_1->mAttribute = param_2->field_0x8; param_1->mFrame = 0.0f; param_1->mUpdateMaterialNum = param_2->field_0xc; param_1->field_0x14 = param_2->field_0xe; param_1->mAnmTable = JSUConvertOffsetToPtr(param_2, (void*)param_2->mTableOffset); param_1->mTextureIndex = JSUConvertOffsetToPtr(param_2, (void*)param_2->mValuesOffset); param_1->mUpdateMaterialID = JSUConvertOffsetToPtr(param_2, (void*)param_2->mUpdateMaterialIDOffset); param_1->mUpdateMaterialName.setResource( JSUConvertOffsetToPtr(param_2, (void*)param_2->mNameTabOffset)); } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void J3DAnmFullLoader_v15::setAnmTexPattern(J3DAnmTexPattern* param_0, J3DAnmTexPatternFullData const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/func_803389D8.s" } #pragma pop #endif /* 80338A7C-80338AA4 3333BC 0028+00 1/1 0/0 0/0 .text * readAnmVisibility__20J3DAnmFullLoader_v15FPC24J3DAnmVisibilityFullData */ void J3DAnmFullLoader_v15::readAnmVisibility(const J3DAnmVisibilityFullData* param_1) { setAnmVisibility((J3DAnmVisibilityFull*)mAnm, param_1); } /* 80338AA4-80338B20 3333E4 007C+00 2/2 0/0 0/0 .text * setAnmVisibility__20J3DAnmFullLoader_v15FP20J3DAnmVisibilityFullPC24J3DAnmVisibilityFullData */ // matches with literals / weaks #ifdef NONMATCHING void J3DAnmFullLoader_v15::setAnmVisibility(J3DAnmVisibilityFull* param_1, const J3DAnmVisibilityFullData* param_2) { param_1->mFrameMax = param_2->mFrameMax; param_1->mAttribute = param_2->field_0x8; param_1->mFrame = 0.0f; param_1->mUpdateMaterialNum = param_2->field_0xc; param_1->field_0xe = param_2->field_0xe; param_1->mAnmTable = JSUConvertOffsetToPtr(param_2, (void*)param_2->mTableOffset); param_1->mVisibility = JSUConvertOffsetToPtr(param_2, param_2->mValuesOffset); } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void J3DAnmFullLoader_v15::setAnmVisibility(J3DAnmVisibilityFull* param_0, J3DAnmVisibilityFullData const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/func_80338AA4.s" } #pragma pop #endif /* 80338B20-80338B48 333460 0028+00 1/1 0/0 0/0 .text * readAnmCluster__20J3DAnmFullLoader_v15FPC21J3DAnmClusterFullData */ void J3DAnmFullLoader_v15::readAnmCluster(const J3DAnmClusterFullData* param_1) { setAnmCluster((J3DAnmClusterFull*)mAnm, param_1); } /* 80338B48-80338BB4 333488 006C+00 2/2 0/0 0/0 .text * setAnmCluster__20J3DAnmFullLoader_v15FP17J3DAnmClusterFullPC21J3DAnmClusterFullData */ // matches with literals / weaks #ifdef NONMATCHING void J3DAnmFullLoader_v15::setAnmCluster(J3DAnmClusterFull* param_1, const J3DAnmClusterFullData* param_2) { param_1->mFrameMax = param_2->mFrameMax; param_1->mAttribute = param_2->field_0x8; param_1->mFrame = 0.0f; param_1->mAnmTable = JSUConvertOffsetToPtr(param_2, (void*)param_2->mTableOffset); param_1->mWeight = JSUConvertOffsetToPtr(param_2, (void*)param_2->mWeightOffset); } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void J3DAnmFullLoader_v15::setAnmCluster(J3DAnmClusterFull* param_0, J3DAnmClusterFullData const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/func_80338B48.s" } #pragma pop #endif /* 80338BB4-80338BDC 3334F4 0028+00 1/1 0/0 0/0 .text * readAnmVtxColor__20J3DAnmFullLoader_v15FPC22J3DAnmVtxColorFullData */ void J3DAnmFullLoader_v15::readAnmVtxColor(const J3DAnmVtxColorFullData* param_1) { setAnmVtxColor((J3DAnmVtxColorFull*)mAnm, param_1); } /* 80338BDC-80338D44 33351C 0168+00 2/2 0/0 0/0 .text * setAnmVtxColor__20J3DAnmFullLoader_v15FP18J3DAnmVtxColorFullPC22J3DAnmVtxColorFullData */ // matches with literals / weaks #ifdef NONMATCHING void J3DAnmFullLoader_v15::setAnmVtxColor(J3DAnmVtxColorFull* dst, const J3DAnmVtxColorFullData* data) { dst->mFrameMax = data->mFrameMax; dst->mAttribute = data->field_0x8; dst->mFrame = 0.0f; dst->mAnmTableNum[0] = data->mAnmTableNum[0]; dst->mAnmTableNum[1] = data->mAnmTableNum[1]; dst->mpTable[0] = JSUConvertOffsetToPtr(data, (void*)data->mTableOffsets[0]); dst->mpTable[1] = JSUConvertOffsetToPtr(data, (void*)data->mTableOffsets[1]); dst->mAnmVtxColorIndexData[0] = JSUConvertOffsetToPtr( data, (void*)data->mVtxColorIndexDataOffsets[0]); dst->mAnmVtxColorIndexData[1] = JSUConvertOffsetToPtr( data, (void*)data->mVtxColorIndexDataOffsets[1]); void* indexPtr0 = JSUConvertOffsetToPtr(data, (void*)data->mVtxColorIndexPointerOffsets[0]); void* indexPtr1 = JSUConvertOffsetToPtr(data, (void*)data->mVtxColorIndexPointerOffsets[1]); for (s32 i = 0; i < dst->mAnmTableNum[0]; i++) dst->mAnmVtxColorIndexData[0][i].mpData = (void*)((s32)indexPtr0 + (s32)dst->mAnmVtxColorIndexData[0][i].mpData * 2); for (s32 i = 0; i < dst->mAnmTableNum[1]; i++) dst->mAnmVtxColorIndexData[1][i].mpData = (void*)((s32)indexPtr1 + (s32)dst->mAnmVtxColorIndexData[1][i].mpData * 2); dst->mColorR = JSUConvertOffsetToPtr(data, data->mRValuesOffset); dst->mColorG = JSUConvertOffsetToPtr(data, data->mGValuesOffset); dst->mColorB = JSUConvertOffsetToPtr(data, data->mBValuesOffset); dst->mColorA = JSUConvertOffsetToPtr(data, data->mAValuesOffset); } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void J3DAnmFullLoader_v15::setAnmVtxColor(J3DAnmVtxColorFull* param_0, J3DAnmVtxColorFullData const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/func_80338BDC.s" } #pragma pop #endif /* 80338D44-80338E8C 333684 0148+00 2/1 0/0 0/0 .text load__19J3DAnmKeyLoader_v15FPCv */ // matches with literals #ifdef NONMATCHING J3DAnmBase* J3DAnmKeyLoader_v15::load(const void* param_1) { const JUTDataFileHeader* header = (const JUTDataFileHeader*)param_1; const JUTDataBlockHeader* block = &header->mFirstBlock; for (int i = 0; i < header->mBlockNum; i++) { switch (block->mType) { case 'ANK1': readAnmTransform((J3DAnmTransformKeyData*)block); break; case 'PAK1': readAnmColor((J3DAnmColorKeyData*)block); break; case 'CLK1': readAnmCluster((J3DAnmClusterKeyData*)block); break; case 'TTK1': readAnmTextureSRT((J3DAnmTextureSRTKeyData*)block); break; case 'TRK1': readAnmTevReg((J3DAnmTevRegKeyData*)block); break; case 'VCK1': readAnmVtxColor((J3DAnmVtxColorKeyData*)block); break; default: OSReport("Unknown data block\n"); break; } block = block->getNext(); } return mAnm; } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off // asm J3DAnmBase* J3DAnmKeyLoader_v15::load(void const* param_0) { extern "C" asm void load__19J3DAnmKeyLoader_v15FPCv() { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/load__19J3DAnmKeyLoader_v15FPCv.s" } #pragma pop #endif /* 80338E8C-80338FEC 3337CC 0160+00 2/1 0/0 0/0 .text * setResource__19J3DAnmKeyLoader_v15FP10J3DAnmBasePCv */ void J3DAnmKeyLoader_v15::setResource(J3DAnmBase* param_1, const void* param_2) { const JUTDataFileHeader* header = (const JUTDataFileHeader*)param_2; const JUTDataBlockHeader* block = &header->mFirstBlock; for (int i = 0; i < header->mBlockNum; i++) { switch (block->mType) { case 'ANK1': setAnmTransform((J3DAnmTransformKey*)param_1, (const J3DAnmTransformKeyData*)block); break; case 'PAK1': setAnmColor((J3DAnmColorKey*)param_1, (const J3DAnmColorKeyData*)block); break; case 'CLK1': setAnmCluster((J3DAnmClusterKey*)param_1, (const J3DAnmClusterKeyData*)block); break; case 'TTK1': setAnmTextureSRT((J3DAnmTextureSRTKey*)param_1, (const J3DAnmTextureSRTKeyData*)block); break; case 'TRK1': setAnmTevReg((J3DAnmTevRegKey*)param_1, (const J3DAnmTevRegKeyData*)block); break; case 'VCK1': setAnmVtxColor((J3DAnmVtxColorKey*)param_1, (const J3DAnmVtxColorKeyData*)block); break; default: OSReport("Unknown data block\n"); break; } block = block->getNext(); } } /* 80338FEC-80339014 33392C 0028+00 1/1 0/0 0/0 .text * readAnmTransform__19J3DAnmKeyLoader_v15FPC22J3DAnmTransformKeyData */ void J3DAnmKeyLoader_v15::readAnmTransform(const J3DAnmTransformKeyData* param_1) { setAnmTransform((J3DAnmTransformKey*)mAnm, param_1); } /* 80339014-803390B0 333954 009C+00 2/2 0/0 0/0 .text * setAnmTransform__19J3DAnmKeyLoader_v15FP18J3DAnmTransformKeyPC22J3DAnmTransformKeyData */ // matches with literals / weaks #ifdef NONMATCHING void J3DAnmKeyLoader_v15::setAnmTransform(J3DAnmTransformKey* param_1, const J3DAnmTransformKeyData* param_2) { param_1->field_0x1e = param_2->field_0xc; param_1->mFrameMax = param_2->mFrameMax; param_1->mAttribute = param_2->field_0x8; param_1->mDecShift = param_2->field_0x9; param_1->mFrame = 0.0f; param_1->mAnmTable = JSUConvertOffsetToPtr(param_2, (void*)param_2->mTableOffset); param_1->mScaleData = JSUConvertOffsetToPtr(param_2, (void*)param_2->field_0x18); param_1->mRotData = JSUConvertOffsetToPtr(param_2, (void*)param_2->field_0x1c); param_1->mTransData = JSUConvertOffsetToPtr(param_2, (void*)param_2->field_0x20); } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void J3DAnmKeyLoader_v15::setAnmTransform(J3DAnmTransformKey* param_0, J3DAnmTransformKeyData const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/func_80339014.s" } #pragma pop #endif /* 803390B0-803390D8 3339F0 0028+00 1/1 0/0 0/0 .text * readAnmTextureSRT__19J3DAnmKeyLoader_v15FPC23J3DAnmTextureSRTKeyData */ void J3DAnmKeyLoader_v15::readAnmTextureSRT(const J3DAnmTextureSRTKeyData* param_1) { setAnmTextureSRT((J3DAnmTextureSRTKey*)mAnm, param_1); } /* 803390D8-803392B0 333A18 01D8+00 2/2 0/0 0/0 .text * setAnmTextureSRT__19J3DAnmKeyLoader_v15FP19J3DAnmTextureSRTKeyPC23J3DAnmTextureSRTKeyData */ // matches with literals / weaks #ifdef NONMATCHING void J3DAnmKeyLoader_v15::setAnmTextureSRT(J3DAnmTextureSRTKey* param_1, const J3DAnmTextureSRTKeyData* param_2) { param_1->mTrackNum = param_2->field_0xc; param_1->mFrameMax = param_2->field_0xa; param_1->mAttribute = param_2->field_0x8; param_1->mDecShift = param_2->field_0x9; param_1->mFrame = 0.0f; param_1->mTrackNum = param_2->field_0xc; param_1->mScaleNum = param_2->field_0xe; param_1->mRotNum = param_2->field_0x10; param_1->mTransNum = param_2->field_0x12; param_1->mAnmTable = JSUConvertOffsetToPtr(param_2, (void*)param_2->mTableOffset); param_1->mUpdateMaterialID = JSUConvertOffsetToPtr(param_2, (void*)param_2->mUpdateMatIDOffset); param_1->mUpdateMaterialName.setResource( JSUConvertOffsetToPtr(param_2, (void*)param_2->mNameTab1Offset)); param_1->mUpdateTexMtxID = JSUConvertOffsetToPtr(param_2, param_2->mUpdateTexMtxIDOffset); param_1->mSRTCenter = JSUConvertOffsetToPtr(param_2, (void*)param_2->unkOffset); param_1->mScaleData = JSUConvertOffsetToPtr(param_2, (void*)param_2->mScaleValOffset); param_1->mRotData = JSUConvertOffsetToPtr(param_2, (void*)param_2->mRotValOffset); param_1->mTransData = JSUConvertOffsetToPtr(param_2, (void*)param_2->mTransValOffset); if (param_2->mNameTab2Offset) { param_1->mPostUpdateMaterialName.setResource( JSUConvertOffsetToPtr(param_2, (void*)param_2->mNameTab2Offset)); } param_1->field_0x4a = param_2->field_0x34; param_1->field_0x44 = param_2->field_0x36; param_1->field_0x46 = param_2->field_0x38; param_1->field_0x48 = param_2->field_0x3a; param_1->field_0x58 = JSUConvertOffsetToPtr(param_2, (void*)param_2->mInfoTable2Offset); param_1->mPostUpdateMaterialID = JSUConvertOffsetToPtr(param_2, (void*)param_2->field_0x40); param_1->mPostUpdateTexMtxID = JSUConvertOffsetToPtr(param_2, param_2->field_0x48); param_1->mPostSRTCenter = JSUConvertOffsetToPtr(param_2, (void*)param_2->field_0x4c); param_1->field_0x4c = JSUConvertOffsetToPtr(param_2, (void*)param_2->field_0x50); param_1->field_0x50 = JSUConvertOffsetToPtr(param_2, (void*)param_2->field_0x54); param_1->field_0x54 = JSUConvertOffsetToPtr(param_2, (void*)param_2->field_0x58); switch (param_2->field_0x5c) { case 0: case 1: param_1->mTexMtxCalcType = param_2->field_0x5c; break; default: param_1->mTexMtxCalcType = 0; break; } } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void J3DAnmKeyLoader_v15::setAnmTextureSRT(J3DAnmTextureSRTKey* param_0, J3DAnmTextureSRTKeyData const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/func_803390D8.s" } #pragma pop #endif /* 803392B0-803392D8 333BF0 0028+00 1/1 0/0 0/0 .text * readAnmColor__19J3DAnmKeyLoader_v15FPC18J3DAnmColorKeyData */ void J3DAnmKeyLoader_v15::readAnmColor(const J3DAnmColorKeyData* param_1) { setAnmColor((J3DAnmColorKey*)mAnm, param_1); } /* 803392D8-803393C4 333C18 00EC+00 2/2 0/0 0/0 .text * setAnmColor__19J3DAnmKeyLoader_v15FP14J3DAnmColorKeyPC18J3DAnmColorKeyData */ // matches with literals / weaks #ifdef NONMATCHING void J3DAnmKeyLoader_v15::setAnmColor(J3DAnmColorKey* param_1, const J3DAnmColorKeyData* param_2) { param_1->mFrameMax = param_2->mFrameMax; param_1->mAttribute = param_2->field_0x8; param_1->mFrame = 0.0f; param_1->mUpdateMaterialNum = param_2->mUpdateMaterialNum; param_1->field_0xc = param_2->field_0x10; param_1->field_0xe = param_2->field_0x12; param_1->field_0x10 = param_2->field_0x14; param_1->field_0x12 = param_2->field_0x16; param_1->field_0x3c = JSUConvertOffsetToPtr(param_2, (void*)param_2->mTableOffset); param_1->field_0x2c = JSUConvertOffsetToPtr(param_2, (void*)param_2->mRValOffset); param_1->field_0x30 = JSUConvertOffsetToPtr(param_2, (void*)param_2->mGValOffset); param_1->field_0x34 = JSUConvertOffsetToPtr(param_2, (void*)param_2->mBValOffset); param_1->field_0x38 = JSUConvertOffsetToPtr(param_2, (void*)param_2->mAValOffset); param_1->mUpdateMaterialID = JSUConvertOffsetToPtr(param_2, (void*)param_2->mUpdateMaterialIDOffset); param_1->mUpdateMaterialName.setResource( JSUConvertOffsetToPtr(param_2, (void*)param_2->mNameTabOffset)); } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void J3DAnmKeyLoader_v15::setAnmColor(J3DAnmColorKey* param_0, J3DAnmColorKeyData const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/setAnmColor__19J3DAnmKeyLoader_v15FP14J3DAnmColorKeyPC18J3DAnmColorKeyData.s" } #pragma pop #endif /* 803393C4-803393EC 333D04 0028+00 1/1 0/0 0/0 .text * readAnmCluster__19J3DAnmKeyLoader_v15FPC20J3DAnmClusterKeyData */ void J3DAnmKeyLoader_v15::readAnmCluster(const J3DAnmClusterKeyData* param_1) { setAnmCluster((J3DAnmClusterKey*)mAnm, param_1); } /* 803393EC-80339458 333D2C 006C+00 2/2 0/0 0/0 .text * setAnmCluster__19J3DAnmKeyLoader_v15FP16J3DAnmClusterKeyPC20J3DAnmClusterKeyData */ // matches with literals / weaks #ifdef NONMATCHING void J3DAnmKeyLoader_v15::setAnmCluster(J3DAnmClusterKey* param_1, const J3DAnmClusterKeyData* param_2) { param_1->mFrameMax = param_2->mFrameMax; param_1->mAttribute = param_2->field_0x8; param_1->mFrame = 0.0f; param_1->mAnmTable = JSUConvertOffsetToPtr(param_2, (void*)param_2->mTableOffset); param_1->mWeight = JSUConvertOffsetToPtr(param_2, (void*)param_2->mWeightOffset); } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void J3DAnmKeyLoader_v15::setAnmCluster(J3DAnmClusterKey* param_0, J3DAnmClusterKeyData const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/func_803393EC.s" } #pragma pop #endif /* 80339458-80339480 333D98 0028+00 1/1 0/0 0/0 .text * readAnmTevReg__19J3DAnmKeyLoader_v15FPC19J3DAnmTevRegKeyData */ void J3DAnmKeyLoader_v15::readAnmTevReg(const J3DAnmTevRegKeyData* param_1) { setAnmTevReg((J3DAnmTevRegKey*)mAnm, param_1); } /* 80339480-8033960C 333DC0 018C+00 2/2 0/0 0/0 .text * setAnmTevReg__19J3DAnmKeyLoader_v15FP15J3DAnmTevRegKeyPC19J3DAnmTevRegKeyData */ // matches with literals / weaks #ifdef NONMATCHING void J3DAnmKeyLoader_v15::setAnmTevReg(J3DAnmTevRegKey* param_1, const J3DAnmTevRegKeyData* param_2) { param_1->mFrameMax = param_2->mFrameMax; param_1->mAttribute = param_2->field_0x8; param_1->mFrame = 0.0f; param_1->mCRegUpdateMaterialNum = param_2->mCRegUpdateMaterialNum; param_1->mAnmCRegKeyTable = JSUConvertOffsetToPtr(param_2, (void*)param_2->mCRegTableOffset); param_1->mCRegUpdateMaterialID = JSUConvertOffsetToPtr(param_2, (void*)param_2->mCRegUpdateMaterialIDOffset); param_1->mCRegUpdateMaterialName.setResource( JSUConvertOffsetToPtr(param_2, (void*)param_2->mCRegNameTabOffset)); param_1->mKRegUpdateMaterialNum = param_2->mKRegUpdateMaterialNum; param_1->mAnmKRegKeyTable = JSUConvertOffsetToPtr(param_2, (void*)param_2->mKRegTableOffset); param_1->mKRegUpdateMaterialID = JSUConvertOffsetToPtr(param_2, (void*)param_2->mKRegUpdateMaterialIDOffset); param_1->mKRegUpdateMaterialName.setResource( JSUConvertOffsetToPtr(param_2, (void*)param_2->mKRegNameTabOffset)); param_1->mCRegDataCountR = param_2->field_0x10; param_1->mCRegDataCountG = param_2->field_0x12; param_1->mCRegDataCountB = param_2->field_0x14; param_1->mCRegDataCountA = param_2->field_0x16; param_1->mAnmCRegDataR = JSUConvertOffsetToPtr(param_2, (void*)param_2->mCRValuesOffset); param_1->mAnmCRegDataG = JSUConvertOffsetToPtr(param_2, (void*)param_2->mCGValuesOffset); param_1->mAnmCRegDataB = JSUConvertOffsetToPtr(param_2, (void*)param_2->mCBValuesOffset); param_1->mAnmCRegDataA = JSUConvertOffsetToPtr(param_2, (void*)param_2->mCAValuesOffset); param_1->mKRegDataCountR = param_2->field_0x18; param_1->mKRegDataCountG = param_2->field_0x1a; param_1->mKRegDataCountB = param_2->field_0x1c; param_1->mKRegDataCountA = param_2->field_0x1e; param_1->mAnmKRegDataR = JSUConvertOffsetToPtr(param_2, (void*)param_2->mKRValuesOffset); param_1->mAnmKRegDataG = JSUConvertOffsetToPtr(param_2, (void*)param_2->mKGValuesOffset); param_1->mAnmKRegDataB = JSUConvertOffsetToPtr(param_2, (void*)param_2->mKBValuesOffset); param_1->mAnmKRegDataA = JSUConvertOffsetToPtr(param_2, (void*)param_2->mKAValuesOffset); } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void J3DAnmKeyLoader_v15::setAnmTevReg(J3DAnmTevRegKey* param_0, J3DAnmTevRegKeyData const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/setAnmTevReg__19J3DAnmKeyLoader_v15FP15J3DAnmTevRegKeyPC19J3DAnmTevRegKeyData.s" } #pragma pop #endif /* 8033960C-80339634 333F4C 0028+00 1/1 0/0 0/0 .text * readAnmVtxColor__19J3DAnmKeyLoader_v15FPC21J3DAnmVtxColorKeyData */ void J3DAnmKeyLoader_v15::readAnmVtxColor(const J3DAnmVtxColorKeyData* param_1) { setAnmVtxColor((J3DAnmVtxColorKey*)mAnm, param_1); } /* 80339634-8033979C 333F74 0168+00 2/2 0/0 0/0 .text * setAnmVtxColor__19J3DAnmKeyLoader_v15FP17J3DAnmVtxColorKeyPC21J3DAnmVtxColorKeyData */ // matches with literals / weaks #ifdef NONMATCHING void J3DAnmKeyLoader_v15::setAnmVtxColor(J3DAnmVtxColorKey* dst, const J3DAnmVtxColorKeyData* data) { dst->mFrameMax = data->mFrameMax; dst->mAttribute = data->field_0x8; dst->mFrame = 0.0f; dst->mAnmTableNum[0] = data->mAnmTableNum[0]; dst->mAnmTableNum[1] = data->mAnmTableNum[1]; dst->mpTable[0] = JSUConvertOffsetToPtr(data, (void*)data->mTableOffsets[0]); dst->mpTable[1] = JSUConvertOffsetToPtr(data, (void*)data->mTableOffsets[1]); dst->mAnmVtxColorIndexData[0] = JSUConvertOffsetToPtr( data, (void*)data->mVtxColoIndexDataOffset[0]); dst->mAnmVtxColorIndexData[1] = JSUConvertOffsetToPtr( data, (void*)data->mVtxColoIndexDataOffset[1]); void* indexPtr0 = JSUConvertOffsetToPtr(data, (void*)data->mVtxColoIndexPointerOffset[0]); void* indexPtr1 = JSUConvertOffsetToPtr(data, (void*)data->mVtxColoIndexPointerOffset[1]); for (s32 i = 0; i < dst->mAnmTableNum[0]; i++) dst->mAnmVtxColorIndexData[0][i].mpData = (void*)((s32)indexPtr0 + (s32)dst->mAnmVtxColorIndexData[0][i].mpData * 2); for (s32 i = 0; i < dst->mAnmTableNum[1]; i++) dst->mAnmVtxColorIndexData[1][i].mpData = (void*)((s32)indexPtr1 + (s32)dst->mAnmVtxColorIndexData[1][i].mpData * 2); dst->mColorR = JSUConvertOffsetToPtr(data, (void*)data->mRValOffset); dst->mColorG = JSUConvertOffsetToPtr(data, (void*)data->mGValOffset); dst->mColorB = JSUConvertOffsetToPtr(data, (void*)data->mBValOffset); dst->mColorA = JSUConvertOffsetToPtr(data, (void*)data->mAValOffset); } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void J3DAnmKeyLoader_v15::setAnmVtxColor(J3DAnmVtxColorKey* param_0, J3DAnmVtxColorKeyData const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/func_80339634.s" } #pragma pop #endif /* 8033979C-803397F8 3340DC 005C+00 1/0 0/0 0/0 .text __dt__20J3DAnmVisibilityFullFv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm J3DAnmVisibilityFull::~J3DAnmVisibilityFull() { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/__dt__20J3DAnmVisibilityFullFv.s" } #pragma pop /* 803397F8-80339800 334138 0008+00 1/0 0/0 0/0 .text getKind__20J3DAnmVisibilityFullCFv */ s32 J3DAnmVisibilityFull::getKind() const { return 6; } /* 80339800-80339848 334140 0048+00 1/0 0/0 0/0 .text __dt__12J3DAnmLoaderFv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off // asm J3DAnmLoader::~J3DAnmLoader() { extern "C" asm void __dt__12J3DAnmLoaderFv() { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/__dt__12J3DAnmLoaderFv.s" } #pragma pop /* 80339848-80339860 334188 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<21J3DAnmClusterKeyTable>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_80339848(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/func_80339848.s" } #pragma pop /* 80339860-80339878 3341A0 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<22J3DAnmClusterFullTable>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_80339860(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J3DGraphLoader/J3DAnmLoader/func_80339860.s" } #pragma pop /* 803A2130-803A2130 02E790 0000+00 0/0 0/0 0/0 .rodata @stringBase0 */