//
// GJSmartTemplate::create from 0x9d07b4 to 0x9d0890 (220 bytes)
//
// 3 xrefs:
// > GameLevelManager::createSmartTemplate @ 0x6f4330
// > GJSmartTemplate::createWithCoder @ 0x9d5a34
// > ??> @ 0xb76a8
//
// 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()
{
__int64 v0; // x19
v0 = operator new(0xC0u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v0);
*(_QWORD *)(v0 + 56) = 0;
*(_QWORD *)(v0 + 64) = 0;
*(_QWORD *)(v0 + 80) = 0;
*(_QWORD *)v0 = &off_11C9BB0;
*(_DWORD *)(v0 + 120) = 0;
*(_QWORD *)(v0 + 128) = 0;
*(_QWORD *)(v0 + 152) = 0;
*(_QWORD *)(v0 + 136) = v0 + 120;
*(_QWORD *)(v0 + 144) = v0 + 120;
*(_BYTE *)(v0 + 160) = 0;
*(_BYTE *)(v0 + 161) = 0;
*(_BYTE *)(v0 + 162) = 0;
*(_BYTE *)(v0 + 163) = 0;
*(_DWORD *)(v0 + 184) = 0;
*(_DWORD *)(v0 + 188) = 0;
*(_QWORD *)(v0 + 168) = &byte_124B6C8;
*(_QWORD *)(v0 + 176) = &byte_124B6C8;
if ( GJSmartTemplate::init((GJSmartTemplate *)v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return (GJSmartTemplate *)v0;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
}