//
// cocos2d::CCLabelTTF::initWithString from 0x100076fe0 to 0x1000770c0 (224 bytes)
//
// 2 xrefs:
// > cocos2d::CCLabelTTF::init @ 0x1000770f8
// > cocos2d::CCLabelTTF::initWithString_1 @ 0x10007710c
//
// 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 10:58:13 +0000
//
__int64 __fastcall cocos2d::CCLabelTTF::initWithString(
__int64 a1,
__int64 a2,
char *a3,
float *a4,
int a5,
int a6,
float a7)
{
__int64 v14; // x20
__int64 v15; // x0
__int64 v16; // x0
_QWORD *v17; // x23
double v19; // [xsp+8h] [xbp-58h] BYREF
v14 = cocos2d::CCSprite::init(a1);
if ( (_DWORD)v14 )
{
v15 = cocos2d::CCShaderCache::sharedShaderCache();
v16 = cocos2d::CCShaderCache::programForKey(v15, "ShaderPositionTextureColor");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 664LL))(a1, v16);
sub_1000262C4((float *)&v19, *a4, a4[1]);
sub_100026450((_QWORD *)(a1 + 608), &v19);
*(_DWORD *)(a1 + 616) = a5;
*(_DWORD *)(a1 + 620) = a6;
v17 = operator new(0x18u);
sub_100009900(v17, a3);
*(_QWORD *)(a1 + 624) = v17;
*(float *)(a1 + 632) = a7;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1240LL))(a1, a2);
}
return v14;
}