//
// cocos2d::CCMenuItemAtlasFont::initWithString from 0x18005d0c0 to 0x18005d16b (171 bytes)
//
// 3 xrefs:
// > cocos2d::CCMenuItemAtlasFont::create @ 0x18005c41f
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd048
//
// 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:49 +0000
//
char __fastcall cocos2d::CCMenuItemAtlasFont::initWithString(
__int64 *a1,
const char *a2,
const char *a3,
int a4,
unsigned int a5,
char a6,
__int64 a7,
__int64 a8)
{
cocos2d::CCLabelAtlas *v12; // rax
cocos2d::CCLabelAtlas *v13; // rbx
v12 = (cocos2d::CCLabelAtlas *)sub_1800E4AC0(0x1C8u);
if ( v12 )
v13 = cocos2d::CCLabelAtlas::CCLabelAtlas(v12);
else
v13 = nullptr;
cocos2d::CCLabelAtlas::initWithString(v13, a2, a3, a4, a5, a6);
cocos2d::CCObject::autorelease(v13);
cocos2d::CCMenuItemLabel::initWithLabel(a1, (__int64)v13, a7, a8);
return 1;
}