//
// cocos2d::CCLabelAtlas::initWithString_1 from 0x100879a40 to 0x100879ac2 (130 bytes)
//
// 1 xrefs:
// > cocos2d::CCMenuItemAtlasFont::initWithString @ 0x1003a8966
//
// 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:36:54 +0000
//
bool __fastcall cocos2d::CCLabelAtlas::initWithString_1(
_DWORD *a1,
const char *a2,
const char *a3,
int a4,
int a5,
int a6)
{
_QWORD *v9; // rax
_DWORD *v10; // r14
unsigned int v11; // eax
bool result; // al
bool v13; // bl
v9 = cocos2d::CCTextureCache::sharedTextureCache();
v10 = cocos2d::CCTextureCache::addImage((__int64)v9, a3, 0);
v11 = strlen(a2);
result = cocos2d::CCAtlasNode::initWithTexture(a1, (__int64)v10, a4, a5, v11);
if ( result )
{
a1[110] = a6;
v13 = result;
(*(void (__fastcall **)(_DWORD *, const char *))(*(_QWORD *)a1 + 1080LL))(a1, a2);
return v13;
}
return result;
}