//
// cocos2d::CCLabelTTF::initWithStringAndTextDefinition from 0x5ce99c to 0x5ce9e2 (70 bytes)
//
// 1 xrefs:
// > cocos2d::CCLabelTTF::createWithFontDefinition @ 0x5cea02
//
// 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)
{
_BOOL4 v6; // r5
void (__fastcall *setShaderProgram)(cocos2d::CCNode *__hidden, cocos2d::CCGLProgram *); // r8
cocos2d::CCShaderCache *v8; // r0
cocos2d::CCGLProgram *v9; // r0
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;
}