//
// SmartGameObject::create from 0x1001b0bf0 to 0x1001b0ca3 (179 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x10059d55f
//
// 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 *v1; // rbx
v1 = (char *)operator new(0x578u);
GameObject::GameObject((GameObject *)v1);
*(_QWORD *)v1 = off_1008C7870;
*((_QWORD *)v1 + 40) = off_1008C7F90;
*((_QWORD *)v1 + 43) = off_1008C8010;
v1[1347] = 0;
*(_OWORD *)(v1 + 1352) = 0;
*(_OWORD *)(v1 + 1368) = 0;
*(_OWORD *)(v1 + 1384) = 0;
if ( GameObject::init((GameObject *)v1, a1) )
{
std::string::assign((std::string *)(v1 + 1376), a1);
*((_DWORD *)v1 + 312) = 5;
v1[313] = 0;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (SmartGameObject *)v1;
}