//
// cocos2d::CCLabelTTF::initWithStringAndTextDefinition from 0x1003bd990 to 0x1003bd9fb (107 bytes)
//
// 0 xrefs:
//
// 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
//
bool __fastcall cocos2d::CCLabelTTF::initWithStringAndTextDefinition(
cocos2d::CCLabelTTF *a1,
const char *a2,
cocos2d::ccFontDefinition *a3)
{
bool result; // al
bool v5; // r12
cocos2d::CCShaderCache *v6; // rax
cocos2d::CCGLProgram *v7; // rax
result = cocos2d::CCSprite::init(a1);
if ( result )
{
v5 = result;
v6 = cocos2d::CCShaderCache::sharedShaderCache();
v7 = cocos2d::CCShaderCache::programForKey(v6, "ShaderPositionTextureColor");
((void (__fastcall *)(cocos2d::CCLabelTTF *, cocos2d::CCGLProgram *))a1->setShaderProgram)(a1, v7);
cocos2d::CCLabelTTF::_updateWithTextDefinition(a1, a3, 0);
((void (__fastcall *)(cocos2d::CCLabelTTF *, const char *))a1->setString)(a1, a2);
return v5;
}
return result;
}