//
// cocos2d::CCLabelTTF::initWithStringAndTextDefinition from 0x180050410 to 0x18005049f (143 bytes)
//
// 5 xrefs:
// > cocos2d::CCLabelTTF::createWithFontDefinition @ 0x18004fdb6
// > ??> @ 0x180140fd8
// > ??> @ 0x180140fe8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bbf38
//
// 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 11:21:45 +0000
//
char __fastcall cocos2d::CCLabelTTF::initWithStringAndTextDefinition(
cocos2d::CCLabelTTF *this,
const char *a2,
struct cocos2d::_ccFontDefinition *a3)
{
__int64 v6; // rbx
cocos2d::CCShaderCache *v7; // rax
struct cocos2d::CCGLProgram *v8; // rax
if ( !cocos2d::CCSprite::init(this) )
return 0;
v6 = *(_QWORD *)this;
v7 = cocos2d::CCShaderCache::sharedShaderCache();
v8 = cocos2d::CCShaderCache::programForKey(v7, "ShaderPositionTextureColor");
(*(void (__fastcall **)(cocos2d::CCLabelTTF *, struct cocos2d::CCGLProgram *))(v6 + 656))(this, v8);
cocos2d::CCLabelTTF::_updateWithTextDefinition(this, a3, 0);
(**((void (__fastcall ***)(char *, const char *))this + 75))((char *)this + 600, a2);
return 1;
}