//
// SmartGameObject::create from 0x1001911c0 to 0x100191273 (179 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x10066ec4f
//
// This function is hookable on this platform (idp: pc, 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 12:25:53 +0000
//
char *__fastcall SmartGameObject::create(std::string::value_type *__s)
{
char *v1; // rbx
v1 = (char *)operator new(0x578u);
GameObject::GameObject(v1);
*(_QWORD *)v1 = off_100ACAF20;
*((_QWORD *)v1 + 40) = off_100ACB650;
*((_QWORD *)v1 + 43) = off_100ACB6D0;
v1[1347] = 0;
*(_OWORD *)(v1 + 1352) = 0;
*(_OWORD *)(v1 + 1368) = 0;
*(_OWORD *)(v1 + 1384) = 0;
if ( (unsigned __int8)GameObject::init(v1, __s) )
{
std::string::assign((std::string *)(v1 + 1376), __s);
*((_DWORD *)v1 + 312) = 5;
v1[313] = 0;
cocos2d::CCObject::autorelease(v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}