//
// GJSmartPrefab::create from 0x66efb8 to 0x66f00c (84 bytes)
//
// 2 xrefs:
// > GJSmartTemplate::savePrefab @ 0x6709aa
// > GJSmartPrefab::createWithCoder @ 0x67160c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:49 +0000
//
cocos2d::CCObject *__fastcall GJSmartPrefab::create(GJSmartPrefab *this)
{
cocos2d::CCObject *v1; // r4
int v2; // r3
cocos2d::CCObject *v3; // r0
v1 = (cocos2d::CCObject *)operator new(0x54u);
cocos2d::CCObject::CCObject(v1);
*(_DWORD *)v1 = &off_CD2720;
*((_DWORD *)v1 + 13) = 0;
*((_DWORD *)v1 + 14) = 0;
*((_DWORD *)v1 + 15) = 0;
*((_DWORD *)v1 + 16) = 0;
*((_DWORD *)v1 + 17) = 0;
*((_DWORD *)v1 + 18) = 0;
*((_DWORD *)v1 + 19) = 0;
*((_DWORD *)v1 + 20) = 0;
if ( GJSmartPrefab::init(v1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
v2 = *(_DWORD *)v1;
v3 = v1;
v1 = nullptr;
(*(void (__fastcall **)(cocos2d::CCObject *))(v2 + 8))(v3);
}
return v1;
}