//
// cocos2d::CCLabelTTF::initWithStringAndTextDefinition from 0xae9b50 to 0xae9be0 (144 bytes)
//
// 2 xrefs:
// > cocos2d::CCLabelTTF::createWithFontDefinition @ 0xae9c10
// > ??> @ 0x80190
//
// 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 cocos2d::CCLabelTTF::initWithStringAndTextDefinition(
cocos2d::CCLabelTTF *a1,
const char *a2,
cocos2d::ccFontDefinition *a3)
{
bool v6; // w19
void (__fastcall *setShaderProgram)(cocos2d::CCNode *__hidden, cocos2d::CCGLProgram *); // x23
cocos2d::CCShaderCache *v8; // x0
cocos2d::CCGLProgram *v9; // x0
v6 = cocos2d::CCSprite::init(a1);
if ( v6 )
{
setShaderProgram = a1->setShaderProgram;
v8 = cocos2d::CCShaderCache::sharedShaderCache();
v9 = cocos2d::CCShaderCache::programForKey(v8, "ShaderPositionTextureColor");
setShaderProgram(a1, v9);
cocos2d::CCLabelTTF::_updateWithTextDefinition(a1, a3, 0);
a1->setString(a1, (const unsigned __int8 *)a2);
}
return v6;
}