//
// GJSmartTemplate::create from 0x5397e4 to 0x539862 (126 bytes)
//
// 2 xrefs:
// > GameLevelManager::createSmartTemplate @ 0x3c0480
// > GJSmartTemplate::createWithCoder @ 0x53b490
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
GJSmartTemplate *GJSmartTemplate::create()
{
GJSmartTemplate *v0; // r4
GJSmartTemplate_vtbl *v1; // r3
GJSmartTemplate *v2; // r0
v0 = (GJSmartTemplate *)operator new(0x7Cu);
cocos2d::CCObject::CCObject(v0);
v0->m_prefabArrays = nullptr;
v0->__vftable = (GJSmartTemplate_vtbl *)&off_A860B0;
v0->m_remapDict1 = nullptr;
v0->m_remapDict3 = nullptr;
memset(&v0->m_prefabResults.m_header, 0, sizeof(v0->m_prefabResults.m_header));
v0->m_prefabResults.m_nodecount = 0;
v0->m_allowFlipX = 0;
v0->m_allowFlipY = 0;
v0->m_allowRotation = 0;
v0->m_ignoreCorners = 0;
v0->m_nameIndex = 0;
v0->m_prefabIndex = 0;
v0->m_prefabResults.m_header.m_left = &v0->m_prefabResults.m_header;
v0->m_prefabResults.m_header.m_right = &v0->m_prefabResults.m_header;
v0->m_templateName.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v0->m_unk0a8.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
if ( GJSmartTemplate::init(v0) )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
v1 = v0->__vftable;
v2 = v0;
v0 = nullptr;
v1->~GJSmartTemplate_0(v2);
}
return v0;
}