//
// cocos2d::CCLabelTTF::initWithStringAndTextDefinition from 0x1003a6d90 to 0x1003a6dfb (107 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:29:22 +0000
//
__int64 __fastcall cocos2d::CCLabelTTF::initWithStringAndTextDefinition(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
unsigned int v5; // r12d
__int64 v6; // rax
__int64 v7; // rax
result = cocos2d::CCSprite::init(a1);
if ( (_BYTE)result )
{
v5 = result;
v6 = cocos2d::CCShaderCache::sharedShaderCache();
v7 = cocos2d::CCShaderCache::programForKey(v6, "ShaderPositionTextureColor");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 664LL))(a1, v7);
cocos2d::CCLabelTTF::_updateWithTextDefinition(a1, a3, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1240LL))(a1, a2);
return v5;
}
return result;
}