//
// cocos2d::CCLabelTTF::create from 0x1003a6940 to 0x1003a6a4a (266 bytes)
//
// 2 xrefs:
// > cocos2d::CCLabelTTF::create_2 @ 0x1003a6934
// > cocos2d::CCLabelTTF::create_1 @ 0x1003a6aa8
//
// 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:29:22 +0000
//
char *__fastcall cocos2d::CCLabelTTF::create(
__int64 a1,
__int64 a2,
__int64 a3,
unsigned int a4,
unsigned int a5,
float a6)
{
char *v8; // rbx
v8 = (char *)operator new(0x2B8u);
cocos2d::CCSprite::CCSprite((__int64)v8);
*(_QWORD *)v8 = off_100B331E0;
*((_QWORD *)v8 + 40) = off_100B336D8;
*((_QWORD *)v8 + 43) = off_100B33758;
*((_QWORD *)v8 + 75) = &off_100B33788;
sub_100278600((_QWORD *)v8 + 76);
*((_DWORD *)v8 + 154) = 1;
*((_WORD *)v8 + 320) = 0;
v8[664] = 0;
*(_OWORD *)(v8 + 620) = 0;
sub_100278600(v8 + 668);
v8[684] = 0;
*((_WORD *)v8 + 346) = -1;
v8[694] = -1;
if ( (unsigned __int8)cocos2d::CCLabelTTF::initWithString(v8, a1, a2, a3, a4, a5, a6) )
{
cocos2d::CCObject::autorelease(v8);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v8 + 16LL))(v8);
return nullptr;
}
return v8;
}