//
// TextGameObject::create from 0x1005a1df0 to 0x1005a1e7a (138 bytes)
//
// 2 xrefs:
// > EditorUI::getCreateBtn @ 0x10003376d
// > GameObject::createWithKey @ 0x10059d61e
//
// 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 *__fastcall TextGameObject::create(cocos2d::CCTexture2D *a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x568u);
GameObject::GameObject((GameObject *)v1);
*(_QWORD *)v1 = off_1009723E0;
*((_QWORD *)v1 + 40) = off_100972B00;
*((_QWORD *)v1 + 43) = off_100972B80;
*(_OWORD *)(v1 + 1352) = 0;
*(_OWORD *)(v1 + 1364) = 0;
if ( CCSpritePlus::initWithTexture((CCSpritePlus *)v1, a1) )
{
GameObject::commonSetup((GameObject *)v1);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (TextGameObject *)v1;
}