// // Generated By: dol2asm // Translation Unit: J2DMaterialFactory // #include "JSystem/J2DGraph/J2DMaterialFactory.h" #include "JSystem/J2DGraph/J2DMaterial.h" #include "JSystem/J2DGraph/J2DScreen.h" #include "JSystem/JSupport/JSupport.h" #include "JSystem/JUtility/JUTResource.h" #include "MSL_C/string.h" #include "dol2asm.h" #include "dolphin/types.h" // // Types: // // // Forward References: // extern "C" void __ct__18J2DMaterialFactoryFRC16J2DMaterialBlock(); extern "C" void countStages__18J2DMaterialFactoryCFi(); extern "C" void create__18J2DMaterialFactoryCFP11J2DMaterialiUlP15J2DResReferenceP15J2DResReferenceP10JKRArchive(); extern "C" void newMatColor__18J2DMaterialFactoryCFii(); extern "C" void newColorChanNum__18J2DMaterialFactoryCFi(); extern "C" void newColorChan__18J2DMaterialFactoryCFii(); extern "C" void newTexGenNum__18J2DMaterialFactoryCFi(); extern "C" void newTexCoord__18J2DMaterialFactoryCFii(); extern "C" void newTexMtx__18J2DMaterialFactoryCFii(); extern "C" void newCullMode__18J2DMaterialFactoryCFi(); extern "C" void newTexNo__18J2DMaterialFactoryCFii(); extern "C" void newFontNo__18J2DMaterialFactoryCFi(); extern "C" void newTevOrder__18J2DMaterialFactoryCFii(); extern "C" void newTevColor__18J2DMaterialFactoryCFii(); extern "C" void newTevKColor__18J2DMaterialFactoryCFii(); extern "C" void newTevStageNum__18J2DMaterialFactoryCFi(); extern "C" void newTevStage__18J2DMaterialFactoryCFii(); extern "C" void newTevSwapModeTable__18J2DMaterialFactoryCFii(); extern "C" void newIndTexStageNum__18J2DMaterialFactoryCFi(); extern "C" void newIndTexOrder__18J2DMaterialFactoryCFii(); extern "C" void newIndTexMtx__18J2DMaterialFactoryCFii(); extern "C" void newIndTevStage__18J2DMaterialFactoryCFii(); extern "C" void newIndTexCoordScale__18J2DMaterialFactoryCFii(); extern "C" void newAlphaComp__18J2DMaterialFactoryCFi(); extern "C" void newBlend__18J2DMaterialFactoryCFi(); extern "C" void newDither__18J2DMaterialFactoryCFi(); extern "C" void __ct__11J2DTevStageFRC15J2DTevStageInfo(); extern "C" void func_802F4170(void* _this, void const*, void const*); extern "C" void func_802F4188(void* _this, void const*, void const*); extern "C" void func_802F41A0(void* _this, void const*, void const*); extern "C" void func_802F41B8(void* _this, void const*, void const*); extern "C" void func_802F41D0(void* _this, void const*, void const*); extern "C" void func_802F41E8(void* _this, void const*, void const*); extern "C" void func_802F4200(void* _this, void const*, void const*); extern "C" void func_802F4218(void* _this, void const*, void const*); extern "C" void func_802F4230(void* _this, void const*, void const*); extern "C" void func_802F4248(void* _this, void const*, void const*); extern "C" void func_802F4260(void* _this, void const*, void const*); extern "C" void func_802F4278(void* _this, void const*, void const*); extern "C" void func_802F4290(void* _this, void const*, void const*); extern "C" void func_802F42A8(void* _this, void const*, void const*); extern "C" void func_802F42C0(void* _this, void const*, void const*); extern "C" void func_802F42D8(void* _this, void const*, void const*); // // External References: // extern "C" void* __nw__FUl(); extern "C" void getResource__15JUTResReferenceFPCvUlP10JKRArchive(); extern "C" void calc__9J2DTexMtxFv(); extern "C" void createTevBlock__11J2DMaterialFib(); extern "C" void createIndBlock__11J2DMaterialFib(); extern "C" void __ct__11J2DTevStageFv(); extern "C" void setTevStageInfo__11J2DTevStageFRC15J2DTevStageInfo(); extern "C" void get__13J2DDataManageFPCc(); extern "C" void getResReference__15J2DResReferenceCFUs(); extern "C" void getName__15J2DResReferenceCFUs(); extern "C" void _savegpr_19(); extern "C" void _savegpr_29(); extern "C" void _restgpr_19(); extern "C" void _restgpr_29(); extern "C" u8 mDataManage__9J2DScreen[4 + 4 /* padding */]; extern "C" extern u8 j2dDefaultTevSwapMode[4]; // // Declarations: // /* 802F2AD0-802F2C94 2ED410 01C4+00 0/0 1/1 0/0 .text * __ct__18J2DMaterialFactoryFRC16J2DMaterialBlock */ // JSUConvertOffsetToPtr issues. Probably function order. #ifdef NONMATCHING J2DMaterialFactory::J2DMaterialFactory(J2DMaterialBlock const& param_0) { field_0x0 = param_0.field_0x8; field_0x4 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0xc); field_0x8 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x10); if (param_0.field_0x18 && param_0.field_0x18 - param_0.field_0x14 > 4) { field_0xc = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x18); } else { field_0xc = NULL; } field_0x30 = JSUConvertOffsetToPtr<_GXCullMode>(¶m_0, (void*)param_0.field_0x1c); field_0x10 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x20); field_0x14 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x24); field_0x18 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x28); field_0x1c = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x2c); field_0x20 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x30); field_0x24 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x34); field_0x28 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x38); field_0x2c = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x3c); field_0x34 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x40); field_0x38 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x44); field_0x3c = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x48); field_0x40 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x4c); field_0x44 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x50); field_0x48 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x54); field_0x4c = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x58); field_0x50 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x5c); field_0x54 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x60); field_0x58 = JSUConvertOffsetToPtr(¶m_0, (void*)param_0.field_0x64); } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm J2DMaterialFactory::J2DMaterialFactory(J2DMaterialBlock const& param_0) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/__ct__18J2DMaterialFactoryFRC16J2DMaterialBlock.s" } #pragma pop #endif /* 802F2C94-802F2D1C 2ED5D4 0088+00 1/1 0/0 0/0 .text countStages__18J2DMaterialFactoryCFi */ u32 J2DMaterialFactory::countStages(int param_0) const { J2DMaterialInitData* iVar5 = &field_0x4[field_0x8[param_0]]; u32 uVar4 = 0; u32 uVar3 = 0; if (iVar5->field_0x4 != 0xff) { uVar3 = field_0x40[iVar5->field_0x4]; } for (int i = 0; i < 8; i++) { if (iVar5->field_0x38[i] != 0xffff) { uVar4++; } } if ((uVar3 != uVar4 && uVar4 != 0)) { if (uVar3 > uVar4) { return uVar3; } return uVar4; } return uVar3; } /* 802F2D1C-802F362C 2ED65C 0910+00 0/0 1/1 0/0 .text * create__18J2DMaterialFactoryCFP11J2DMaterialiUlP15J2DResReferenceP15J2DResReferenceP10JKRArchive */ // Stack issues #ifdef NONMATCHING J2DMaterial* J2DMaterialFactory::create(J2DMaterial* param_0, int index, u32 param_2, J2DResReference* param_3, J2DResReference* param_4, JKRArchive* param_5) const { u32 stages = countStages(index); u32 uVar1 = ((param_2 & 0x1f0000) >> 16); u32 r28 = stages > uVar1 ? stages : uVar1; u32 r25 = r28 <= 8 ? r28 : 8; s32 local_3bc = ((param_2 & 0x1000000) != 0); s32 local_3c0 = (param_2 & 0x1f0000) ? local_3bc : 0; bool temp = (param_2 & 0x1f0000); u16 tevBlockNum = r28; param_0->mTevBlock = J2DMaterial::createTevBlock(tevBlockNum, temp); param_0->mIndBlock = J2DMaterial::createIndBlock(local_3c0, temp); param_0->mIndex = index; param_0->field_0x8 = getMaterialMode(index); param_0->getColorBlock()->setColorChanNum(newColorChanNum(index)); param_0->getColorBlock()->setCullMode(newCullMode(index)); param_0->getTexGenBlock()->setTexGenNum(newTexGenNum(index)); param_0->getPEBlock()->setAlphaComp(newAlphaComp(index)); param_0->getPEBlock()->setBlend(newBlend(index)); param_0->getPEBlock()->setDither(newDither(index)); param_0->getTevBlock()->setTevStageNum(newTevStageNum(index)); param_0->mMaterialAlphaCalc = getMaterialAlphaCalc(index); JUTResReference aJStack_12c; for (u8 i = 0; i < r25; i++) { u16 texNo = newTexNo(index, i); s8* local_37c = param_3->getResReference(texNo); void* local_380 = NULL; if (local_37c != NULL) { local_380 = aJStack_12c.getResource(local_37c, 'TIMG', param_5); if (local_380 == NULL && param_5 != NULL) { local_380 = aJStack_12c.getResource(local_37c, 'TIMG', NULL); } if (local_380 == NULL && J2DScreen::getDataManage() != NULL) { char acStack_230[256]; strcpy(acStack_230, param_3->getName(texNo)); local_380 = J2DScreen::getDataManage()->get(acStack_230); } } param_0->getTevBlock()->insertTexture(i, (ResTIMG*)local_380); param_0->getTevBlock()->setTexNo(i, texNo); } u16 fontNo = newFontNo(index); param_0->getTevBlock()->setFontNo(fontNo); s8* local_384 = param_4->getResReference(param_0->getTevBlock()->getFontNo()); void* local_388 = NULL; if (local_384 != NULL) { local_388 = aJStack_12c.getResource(local_384, 'FONT', param_5); if (local_388 == NULL && param_5 != NULL) { local_388 = aJStack_12c.getResource(local_384, 'FONT', NULL); } if (local_388 == NULL && J2DScreen::getDataManage() != NULL) { char* pcVar9 = param_4->getName(param_0->getTevBlock()->getFontNo()); char acStack_334[256]; strcpy(acStack_334, pcVar9); local_388 = J2DScreen::getDataManage()->get(acStack_334); } } param_0->getTevBlock()->setFont((ResFONT*)local_388); for (u8 i = 0; i < r28; i++) { param_0->getTevBlock()->setTevOrder(i, newTevOrder(index, i)); } for (u8 i = 0; i < r28; i++) { J2DMaterialInitData* local_38c = &field_0x4[field_0x8[index]]; param_0->getTevBlock()->setTevStage(i, newTevStage(index, i)); if (local_38c->field_0xba[i] != 0xffff) { param_0->getTevBlock()->getTevStage(i)->setTexSel(field_0x48[local_38c->field_0xba[i]].field_0x1); param_0->getTevBlock()->getTevStage(i)->setRasSel(field_0x48[local_38c->field_0xba[i]].field_0x0); } } for (u8 i = 0; i < 4; i++) { param_0->getTevBlock()->setTevKColor(i, newTevKColor(index, i)); } for (u8 i = 0; i < 4; i++) { J2DTevBlock* block = param_0->getTevBlock(); block->setTevColor(i, newTevColor(index, i)); } for (u8 i = 0; i < 4; i++) { param_0->getTevBlock()->setTevSwapModeTable(i, newTevSwapModeTable(index, i)); } for (u8 i = 0; i < 2; i++) { param_0->getColorBlock()->setMatColor(i, newMatColor(index, i)); } for (u8 i = 0; i < 4; i++) { param_0->getColorBlock()->setColorChan(i, newColorChan(index, i)); } for (u8 i = 0; i < 8; i++) { param_0->getTexGenBlock()->setTexCoord(i, newTexCoord(index, i)); } for (u8 i = 0; i < 8; i++) { param_0->getTexGenBlock()->setTexMtx(i, newTexMtx(index, i)); } J2DMaterialInitData* local_394 = &field_0x4[field_0x8[index]]; for (u8 i = 0; i < r28; i++) { param_0->getTevBlock()->setTevKColorSel(i, local_394->field_0x52[i]); } for (u8 i = 0; i < r28; i++) { param_0->getTevBlock()->setTevKAlphaSel(i, local_394->field_0x62[i]); } if (field_0xc != NULL || local_3c0 != 0) { u8 local_410 = newIndTexStageNum(index); param_0->mIndBlock->setIndTexStageNum(local_410); for (u8 i = 0; i < local_410; i++) { param_0->getIndBlock()->setIndTexMtx(i, newIndTexMtx(index, i)); } for (u8 i = 0; i < local_410; i++) { param_0->getIndBlock()->setIndTexOrder(i, newIndTexOrder(index, i)); } for (u8 i = 0; i < local_410; i++) { param_0->getIndBlock()->setIndTexCoordScale(i, newIndTexCoordScale(index, i)); } for (u8 i = 0; i < r28; i++) { param_0->getTevBlock()->setIndTevStage(i, newIndTevStage(index, i)); } } return param_0; } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm J2DMaterial* J2DMaterialFactory::create(J2DMaterial* param_0, int param_1, u32 param_2, J2DResReference* param_3, J2DResReference* param_4, JKRArchive* param_5) const { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F2D1C.s" } #pragma pop #endif /* ############################################################################################## */ /* 802F362C-802F36CC 2EDF6C 00A0+00 1/1 0/0 0/0 .text newMatColor__18J2DMaterialFactoryCFii */ JUtility::TColor J2DMaterialFactory::newMatColor(int param_0, int param_1) const { GXColor color = {0xff,0xff,0xff,0xff}; JUtility::TColor local_20 = GXColor(color); J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x8[param_1] != 0xffff) { return field_0x10[iVar2->field_0x8[param_1]]; } return local_20; } /* 802F36CC-802F3704 2EE00C 0038+00 1/1 0/0 0/0 .text newColorChanNum__18J2DMaterialFactoryCFi */ u8 J2DMaterialFactory::newColorChanNum(int param_0) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x2 != 0xff) { return field_0x14[iVar2->field_0x2]; } return 0; } /* 802F3704-802F3758 2EE044 0054+00 1/1 0/0 0/0 .text newColorChan__18J2DMaterialFactoryCFii */ J2DColorChan J2DMaterialFactory::newColorChan(int param_0, int param_1) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0xc[param_1] != 0xffff) { return J2DColorChan(field_0x18[iVar2->field_0xc[param_1]]); } return J2DColorChan(); } /* 802F3758-802F3790 2EE098 0038+00 1/1 0/0 0/0 .text newTexGenNum__18J2DMaterialFactoryCFi */ u32 J2DMaterialFactory::newTexGenNum(int param_0) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x3 != 0xff) { return field_0x1c[iVar2->field_0x3]; } return 0; } /* 802F3790-802F3804 2EE0D0 0074+00 1/1 0/0 0/0 .text newTexCoord__18J2DMaterialFactoryCFii */ J2DTexCoord J2DMaterialFactory::newTexCoord(int param_0, int param_1) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x14[param_1] != 0xffff) { return J2DTexCoord(field_0x20[iVar2->field_0x14[param_1]]); } return J2DTexCoord(); } /* 802F3804-802F38E0 2EE144 00DC+00 1/1 0/0 0/0 .text newTexMtx__18J2DMaterialFactoryCFii */ J2DTexMtx* J2DMaterialFactory::newTexMtx(int param_0, int param_1) const { J2DTexMtx* rv = NULL; J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x24[param_1] != 0xffff) { rv = new J2DTexMtx(field_0x24[iVar2->field_0x24[param_1]]); rv->calc(); } return rv; } /* 802F38E0-802F3920 2EE220 0040+00 1/1 0/0 0/0 .text newCullMode__18J2DMaterialFactoryCFi */ u8 J2DMaterialFactory::newCullMode(int param_0) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x1 != 0xff) { return field_0x30[iVar2->field_0x1]; } return 0xff; } /* 802F3920-802F3968 2EE260 0048+00 1/1 0/0 0/0 .text newTexNo__18J2DMaterialFactoryCFii */ u16 J2DMaterialFactory::newTexNo(int param_0, int param_1) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x38[param_1] != 0xffff) { return field_0x28[iVar2->field_0x38[param_1]]; } return 0x1FFFF; } /* 802F3968-802F39A8 2EE2A8 0040+00 1/1 0/0 0/0 .text newFontNo__18J2DMaterialFactoryCFi */ u16 J2DMaterialFactory::newFontNo(int param_0) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x48 != 0xffff) { return field_0x2c[iVar2->field_0x48]; } return 0x1FFFF; } /* 802F39A8-802F3A1C 2EE2E8 0074+00 1/1 0/0 0/0 .text newTevOrder__18J2DMaterialFactoryCFii */ J2DTevOrder J2DMaterialFactory::newTevOrder(int param_0, int param_1) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x72[param_1] != 0xffff) { return J2DTevOrder(field_0x34[iVar2->field_0x72[param_1]]); } return J2DTevOrder(); } /* ############################################################################################## */ /* 80456BB0-80456BB4 000050 0004+00 1/1 0/0 0/0 .sbss2 @2018 */ SECTION_SBSS2 static GXColorS10 lit_2018; /* 802F3A1C-802F3AB4 2EE35C 0098+00 1/1 0/0 0/0 .text newTevColor__18J2DMaterialFactoryCFii */ // J2DGXColorS10 init issues #ifdef NONMATCHING J2DGXColorS10 J2DMaterialFactory::newTevColor(int param_0, int param_1) const { GXColorS10 x = lit_2018; J2DGXColorS10 rv = J2DGXColorS10(x); J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x92[param_1] != 0xffff) { return field_0x38[iVar2->field_0x92[param_1]]; } return rv; } #else #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm J2DGXColorS10 J2DMaterialFactory::newTevColor(int param_0, int param_1) const { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/newTevColor__18J2DMaterialFactoryCFii.s" } #pragma pop #endif /* ############################################################################################## */ /* 802F3AB4-802F3B54 2EE3F4 00A0+00 1/1 0/0 0/0 .text newTevKColor__18J2DMaterialFactoryCFii */ JUtility::TColor J2DMaterialFactory::newTevKColor(int param_0, int param_1) const { GXColor x = {0xFF, 0xFF, 0xFF, 0xFF}; JUtility::TColor local_20 = GXColor(x); J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x4a[param_1] != 0xffff) { return field_0x3c[iVar2->field_0x4a[param_1]]; } return local_20; } /* 802F3B54-802F3B8C 2EE494 0038+00 1/1 0/0 0/0 .text newTevStageNum__18J2DMaterialFactoryCFi */ u8 J2DMaterialFactory::newTevStageNum(int param_0) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x4 != 0xff) { return field_0x40[iVar2->field_0x4]; } return 0xFF; } /* 802F3B8C-802F3BEC 2EE4CC 0060+00 1/1 0/0 0/0 .text newTevStage__18J2DMaterialFactoryCFii */ J2DTevStage J2DMaterialFactory::newTevStage(int param_0, int param_1) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x9a[param_1] != 0xffff) { return J2DTevStage(field_0x44[iVar2->field_0x9a[param_1]]); } return J2DTevStage(); } /* 802F3BEC-802F3C88 2EE52C 009C+00 1/1 0/0 0/0 .text * newTevSwapModeTable__18J2DMaterialFactoryCFii */ J2DTevSwapModeTable J2DMaterialFactory::newTevSwapModeTable(int param_0, int param_1) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0xda[param_1] != 0xffff) { return J2DTevSwapModeTable(field_0x4c[iVar2->field_0xda[param_1]]); } return J2DTevSwapModeTable(j2dDefaultTevSwapModeTable); } /* 802F3C88-802F3CB8 2EE5C8 0030+00 1/1 0/0 0/0 .text newIndTexStageNum__18J2DMaterialFactoryCFi */ u8 J2DMaterialFactory::newIndTexStageNum(int param_0) const { if (field_0xc != NULL) { if (field_0xc[param_0].field_0x0 == 1) { return field_0xc[param_0].field_0x1; } } return 0; } /* 802F3CB8-802F3D20 2EE5F8 0068+00 1/1 0/0 0/0 .text newIndTexOrder__18J2DMaterialFactoryCFii */ J2DIndTexOrder J2DMaterialFactory::newIndTexOrder(int param_0, int param_1) const { J2DIndTexOrder rv; if (field_0xc != NULL) { if (field_0xc[param_0].field_0x0 == 1) { return J2DIndTexOrder(field_0xc[param_0].field_0x4[param_1]); } } return rv; } /* 802F3D20-802F3E24 2EE660 0104+00 1/1 0/0 0/0 .text newIndTexMtx__18J2DMaterialFactoryCFii */ J2DIndTexMtx J2DMaterialFactory::newIndTexMtx(int param_0, int param_1) const { J2DIndTexMtx rv; if (field_0xc != NULL) { if (field_0xc[param_0].field_0x0 == 1) { return J2DIndTexMtx(field_0xc[param_0].field_0xc[param_1]); } } return rv; } /* 802F3E24-802F3F78 2EE764 0154+00 1/1 0/0 0/0 .text newIndTevStage__18J2DMaterialFactoryCFii */ J2DIndTevStage J2DMaterialFactory::newIndTevStage(int param_0, int param_1) const { J2DIndTevStage rv; if (field_0xc != NULL) { if (field_0xc[param_0].field_0x0 == 1) { return J2DIndTevStage(field_0xc[param_0].field_0x68[param_1]); } } return rv; } /* 802F3F78-802F3FE0 2EE8B8 0068+00 1/1 0/0 0/0 .text * newIndTexCoordScale__18J2DMaterialFactoryCFii */ J2DIndTexCoordScale J2DMaterialFactory::newIndTexCoordScale(int param_0, int param_1) const { J2DIndTexCoordScale rv; if (field_0xc != NULL) { if (field_0xc[param_0].field_0x0 == 1) { return J2DIndTexCoordScale(field_0xc[param_0].field_0x60[param_1]); } } return rv; } /* 802F3FE0-802F405C 2EE920 007C+00 1/1 0/0 0/0 .text newAlphaComp__18J2DMaterialFactoryCFi */ J2DAlphaComp J2DMaterialFactory::newAlphaComp(int param_0) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0xe2 != 0xffff) { return J2DAlphaComp(field_0x50[iVar2->field_0xe2]); } return J2DAlphaComp(); } /* 802F405C-802F40D8 2EE99C 007C+00 1/1 0/0 0/0 .text newBlend__18J2DMaterialFactoryCFi */ J2DBlend J2DMaterialFactory::newBlend(int param_0) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0xe4 != 0xffff) { return J2DBlend(field_0x54[iVar2->field_0xe4]); } return J2DBlend(); } /* 802F40D8-802F4110 2EEA18 0038+00 1/1 0/0 0/0 .text newDither__18J2DMaterialFactoryCFi */ u8 J2DMaterialFactory::newDither(int param_0) const { J2DMaterialInitData* iVar2 = &field_0x4[field_0x8[param_0]]; if (iVar2->field_0x5 != 0xff) { return field_0x58[iVar2->field_0x5]; } return 0; } /* 802F4110-802F4170 2EEA50 0060+00 1/1 0/0 0/0 .text __ct__11J2DTevStageFRC15J2DTevStageInfo */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm J2DTevStage::J2DTevStage(J2DTevStageInfo const& param_0) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/__ct__11J2DTevStageFRC15J2DTevStageInfo.s" } #pragma pop /* 802F4170-802F4188 2EEAB0 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<12J2DBlendInfo>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F4170(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F4170.s" } #pragma pop /* 802F4188-802F41A0 2EEAC8 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<16J2DAlphaCompInfo>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F4188(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F4188.s" } #pragma pop /* 802F41A0-802F41B8 2EEAE0 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<23J2DTevSwapModeTableInfo>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F41A0(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F41A0.s" } #pragma pop /* 802F41B8-802F41D0 2EEAF8 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<18J2DTevSwapModeInfo>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F41B8(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F41B8.s" } #pragma pop /* 802F41D0-802F41E8 2EEB10 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<15J2DTevStageInfo>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F41D0(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F41D0.s" } #pragma pop /* 802F41E8-802F4200 2EEB28 0018+00 1/1 2/2 0/0 .text * JSUConvertOffsetToPtr<11_GXColorS10>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F41E8(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F41E8.s" } #pragma pop /* 802F4200-802F4218 2EEB40 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<15J2DTevOrderInfo>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F4200(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F4200.s" } #pragma pop /* 802F4218-802F4230 2EEB58 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<13J2DTexMtxInfo>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F4218(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F4218.s" } #pragma pop /* 802F4230-802F4248 2EEB70 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<15J2DTexCoordInfo>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F4230(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F4230.s" } #pragma pop /* 802F4248-802F4260 2EEB88 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<16J2DColorChanInfo>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F4248(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F4248.s" } #pragma pop /* 802F4260-802F4278 2EEBA0 0018+00 1/1 13/13 0/0 .text JSUConvertOffsetToPtr__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F4260(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F4260.s" } #pragma pop /* 802F4278-802F4290 2EEBB8 0018+00 1/1 2/2 0/0 .text JSUConvertOffsetToPtr<8_GXColor>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F4278(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F4278.s" } #pragma pop /* 802F4290-802F42A8 2EEBD0 0018+00 1/1 2/2 0/0 .text * JSUConvertOffsetToPtr<11_GXCullMode>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F4290(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F4290.s" } #pragma pop /* 802F42A8-802F42C0 2EEBE8 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<14J2DIndInitData>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F42A8(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F42A8.s" } #pragma pop /* 802F42C0-802F42D8 2EEC00 0018+00 1/1 19/19 0/0 .text JSUConvertOffsetToPtr__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F42C0(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F42C0.s" } #pragma pop /* 802F42D8-802F42F0 2EEC18 0018+00 1/1 0/0 0/0 .text * JSUConvertOffsetToPtr<19J2DMaterialInitData>__FPCvPCv */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off extern "C" asm void func_802F42D8(void* _this, void const* param_0, void const* param_1) { nofralloc #include "asm/JSystem/J2DGraph/J2DMaterialFactory/func_802F42D8.s" } #pragma pop