//
// SmartGameObject::create from 0x3e6ce0 to 0x3e6d50 (112 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x3621ba
//
// 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 *SmartGameObject::create(const char *a1)
{
SmartGameObject *v2; // r4
SmartGameObject_vtbl *v3; // r3
SmartGameObject *v4; // r0
v2 = (SmartGameObject *)operator new(0x490u);
GameObject::GameObject(v2);
v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SmartGameObject_vtbl *)&off_A52508;
v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A528D8;
v2->m_referenceOnly = 0;
v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A52898;
v2->m_baseFrame.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v2->m_smartFrame.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
if ( SmartGameObject::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = v2;
v2 = nullptr;
v3->~SmartGameObject_0(v4);
}
return v2;
}