//
// cocos2d::CCLabelTTF::initWithStringAndTextDefinition from 0xd5b8a8 to 0xd5b938 (144 bytes)
//
// 2 xrefs:
// > cocos2d::CCLabelTTF::createWithFontDefinition @ 0xd5b968
// > ??> @ 0xaa998
//
// This function is hookable on this platform (idp: arm, 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 13:07:46 +0000
//
__int64 __fastcall cocos2d::CCLabelTTF::initWithStringAndTextDefinition(cocos2d::CCSprite *a1, __int64 a2, __int64 a3)
{
unsigned __int8 v6; // w0
unsigned int v7; // w19
void (__fastcall *v8)(cocos2d::CCSprite *, __int64); // x23
cocos2d::CCShaderCache *v9; // x0
__int64 v10; // x0
v6 = cocos2d::CCSprite::init(a1);
v7 = v6;
if ( v6 )
{
v8 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 664LL);
v9 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(*(cocos2d::CCShaderCache **)a1);
v10 = cocos2d::CCShaderCache::programForKey(v9, "ShaderPositionTextureColor");
v8(a1, v10);
cocos2d::CCLabelTTF::_updateWithTextDefinition((__int64)a1, a3, 0);
(*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 1240LL))(a1, a2);
}
return v7;
}