//
// GJSmartPrefab::create from 0xb0cef8 to 0xb0cfa8 (176 bytes)
//
// 3 xrefs:
// > GJSmartTemplate::savePrefab @ 0xb10220
// > GJSmartPrefab::createWithCoder @ 0xb11a24
// > ??> @ 0x1028e0
//
// 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 GJSmartPrefab::create(GJSmartPrefab *this)
{
__int64 v1; // x19
v1 = operator new(0x70u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v1);
*(_QWORD *)v1 = &off_14B1490;
*(_QWORD *)(v1 + 56) = 0;
*(_QWORD *)(v1 + 64) = 0;
*(_QWORD *)(v1 + 72) = 0;
*(_QWORD *)(v1 + 80) = 0;
*(_QWORD *)(v1 + 88) = 0;
*(_QWORD *)(v1 + 96) = 0;
*(_DWORD *)(v1 + 104) = 0;
*(_DWORD *)(v1 + 108) = 0;
if ( (unsigned __int8)GJSmartPrefab::init((GJSmartPrefab *)v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 16LL))(v1);
return 0;
}
}