//
// GJSmartPrefab::create from 0x1402b58f0 to 0x1402b596d (125 bytes)
//
// 2 xrefs:
// > EditorUI::addObjectsToSmartTemplate @ 0x140116c8f
// > ??> @ 0x1406d2444
//
// 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
//
// Hidden C++ exception states: #wind=1
GJSmartPrefab *GJSmartPrefab::create()
{
int v0; // eax
char *v2; // [rsp+30h] [rbp+8h]
v2 = (char *)operator new(0x80u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v2);
*(_QWORD *)v2 = &GJSmartPrefab::`vftable';
*(_OWORD *)(v2 + 56) = 0;
*((_QWORD *)v2 + 9) = 0;
*((_QWORD *)v2 + 10) = 15;
v2[56] = 0;
*(_OWORD *)(v2 + 88) = 0;
*((_QWORD *)v2 + 13) = 0;
*((_QWORD *)v2 + 14) = 15;
v2[88] = 0;
*((_QWORD *)v2 + 15) = 0;
v0 = dword_1406BA174;
*((_DWORD *)v2 + 30) = dword_1406BA174;
dword_1406BA174 = v0 + 1;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (GJSmartPrefab *)v2;
}