//
// TextGameObject::create from 0x1006734f0 to 0x10067357a (138 bytes)
//
// 2 xrefs:
// > EditorUI::getCreateBtn @ 0x100637f50
// > GameObject::createWithKey @ 0x10066ed46
//
// 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:35:02 +0000
//
char *__fastcall TextGameObject::create(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x568u);
GameObject::GameObject((__int64)v1);
*(_QWORD *)v1 = off_100B84E88;
*((_QWORD *)v1 + 40) = off_100B855B8;
*((_QWORD *)v1 + 43) = off_100B85638;
*(_OWORD *)(v1 + 1352) = 0;
*(_OWORD *)(v1 + 1364) = 0;
if ( (unsigned __int8)CCSpritePlus::initWithTexture((__int64)v1, a1) )
{
GameObject::commonSetup(v1);
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}