//
// TextGameObject::create from 0x361bfc to 0x361c68 (108 bytes)
//
// 2 xrefs:
// > GameObject::createWithKey @ 0x36246a
// > EditorUI::getCreateBtn @ 0x386382
//
// 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
//
TextGameObject *TextGameObject::create(cocos2d::CCTexture2D *a1)
{
TextGameObject *v2; // r4
TextGameObject_vtbl *v3; // r3
TextGameObject *v4; // r0
v2 = (TextGameObject *)operator new(0x490u);
GameObject::GameObject(v2);
v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (TextGameObject_vtbl *)&off_A4B3F8;
v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A4B7C8;
v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A4B788;
v2->m_text.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v2->m_kerning = 0;
if ( TextGameObject::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->~TextGameObject_0(v4);
}
return v2;
}