//
// cocos2d::CCLabelAtlas::initWithString from 0x180047dc0 to 0x180047e4d (141 bytes)
//
// 5 xrefs:
// > cocos2d::CCLabelAtlas::create @ 0x180047446
// > cocos2d::CCLabelAtlas::initWithString @ 0x180047c59
// > cocos2d::CCMenuItemAtlasFont::initWithString @ 0x18005d126
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bb9c8
//
// 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 11:21:41 +0000
//
char __fastcall cocos2d::CCLabelAtlas::initWithString(
cocos2d::CCLabelAtlas *this,
const char *Str,
const char *a3,
int a4,
unsigned int a5,
unsigned int a6)
{
cocos2d::CCTextureCache *v10; // rax
struct cocos2d::CCTexture2D *v11; // rbx
unsigned int v12; // eax
v10 = cocos2d::CCTextureCache::sharedTextureCache();
v11 = cocos2d::CCTextureCache::addImage(v10, a3, 0);
v12 = strlen(Str);
if ( !cocos2d::CCAtlasNode::initWithTexture(this, v11, a4, a5, v12) )
return 0;
*((_DWORD *)this + 112) = a6;
(**((void (__fastcall ***)(char *, const char *))this + 51))((char *)this + 408, Str);
return 1;
}