//
// GJSmartTemplate::create from 0xb0bee4 to 0xb0bfbc (216 bytes)
//
// 3 xrefs:
// > GameLevelManager::createSmartTemplate @ 0x8010f0
// > GJSmartTemplate::createWithCoder @ 0xb1193c
// > ??> @ 0xef758
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:01:26 +0000
//
__int64 __fastcall GJSmartTemplate::create(GJSmartTemplate *this)
{
__int64 v1; // x19
v1 = operator new(0xC8u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v1);
*(_QWORD *)(v1 + 56) = 0;
*(_QWORD *)(v1 + 64) = 0;
*(_QWORD *)(v1 + 80) = 0;
*(_QWORD *)v1 = &off_14B1430;
*(_QWORD *)(v1 + 120) = 0;
*(_QWORD *)(v1 + 128) = 0;
*(_QWORD *)(v1 + 112) = v1 + 120;
*(_BYTE *)(v1 + 136) = 0;
*(_BYTE *)(v1 + 137) = 0;
*(_BYTE *)(v1 + 138) = 0;
*(_BYTE *)(v1 + 139) = 0;
*(_QWORD *)(v1 + 144) = 0;
*(_QWORD *)(v1 + 152) = 0;
*(_QWORD *)(v1 + 160) = 0;
*(_QWORD *)(v1 + 168) = 0;
*(_QWORD *)(v1 + 176) = 0;
*(_QWORD *)(v1 + 184) = 0;
*(_DWORD *)(v1 + 192) = 0;
*(_DWORD *)(v1 + 196) = 0;
if ( (unsigned __int8)GJSmartTemplate::init((cocos2d::CCObject **)v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 16LL))(v1);
return 0;
}
}