//
// SmartGameObject::create from 0x100380728 to 0x1003807b8 (144 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x100254834
//
// 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
//
SmartGameObject *__fastcall SmartGameObject::create(const char *a1)
{
char *v2; // x19
v2 = (char *)operator new(0x578u);
GameObject::GameObject((GameObject *)v2);
*(_QWORD *)v2 = off_1007F88F8;
*((_QWORD *)v2 + 40) = off_1007F9018;
*((_QWORD *)v2 + 43) = off_1007F9098;
v2[1347] = 0;
*(_OWORD *)(v2 + 1352) = 0u;
*(_OWORD *)(v2 + 1368) = 0u;
*(_OWORD *)(v2 + 1384) = 0u;
if ( SmartGameObject::init((SmartGameObject *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (SmartGameObject *)v2;
}