//
// cocos2d::CCLabelTTF::initWithStringAndTextDefinition from 0x7d6b28 to 0x7d6b6e (70 bytes)
//
// 1 xrefs:
// > cocos2d::CCLabelTTF::createWithFontDefinition @ 0x7d6b8e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:39 +0000
//
cocos2d::CCShaderCache *__fastcall cocos2d::CCLabelTTF::initWithStringAndTextDefinition(
cocos2d::CCLabelTTF *this,
const char *a2,
cocos2d::_ccFontDefinition *a3)
{
cocos2d::CCShaderCache *v6; // r0
cocos2d::CCShaderCache *v7; // r5
void (__fastcall *v8)(cocos2d::CCLabelTTF *, int); // r8
cocos2d::CCShaderCache *v9; // r0
int v10; // r0
v6 = (cocos2d::CCShaderCache *)cocos2d::CCSprite::init(this);
v7 = v6;
if ( v6 )
{
v8 = *(void (__fastcall **)(cocos2d::CCLabelTTF *, int))(*(_DWORD *)this + 332);
v9 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(v6);
v10 = cocos2d::CCShaderCache::programForKey(v9, "ShaderPositionTextureColor");
v8(this, v10);
cocos2d::CCLabelTTF::_updateWithTextDefinition(this, a3, 0);
(*(void (__fastcall **)(cocos2d::CCLabelTTF *, const char *))(*(_DWORD *)this + 620))(this, a2);
}
return v7;
}