//
// EnhancedGameObject::create from 0x100254a6c to 0x100254acc (96 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x1002547e0
//
// 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
//
EnhancedGameObject *__fastcall EnhancedGameObject::create(const char *a1)
{
EnhancedGameObject *v2; // x19
v2 = (EnhancedGameObject *)operator new(0x5A8u);
EnhancedGameObject::EnhancedGameObject(v2);
if ( EnhancedGameObject::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(EnhancedGameObject *))v2->~EnhancedGameObject_0)(v2);
return nullptr;
}
return v2;
}