//
// cocos2d::CCMenuItemAtlasFont::initWithString from 0xd668b0 to 0xd6696c (188 bytes)
//
// 3 xrefs:
// > cocos2d::CCMenuItemLabel::setString @ 0xd668ac
// > cocos2d::CCMenuItemAtlasFont::create @ 0xd66a18
// > ??> @ 0x102f88
//
// 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 13:07:54 +0000
//
__int64 __fastcall cocos2d::CCMenuItemAtlasFont::initWithString(
__int64 a1,
const char *a2,
const char *a3,
int a4,
int a5,
unsigned __int8 a6,
__int64 a7,
__int64 a8,
__int64 a9,
__int64 a10)
{
cocos2d::CCAtlasNode *v11; // x19
int v18; // [xsp+48h] [xbp+48h]
v18 = a6;
v11 = (cocos2d::CCAtlasNode *)operator new(0x1C0u);
cocos2d::CCAtlasNode::CCAtlasNode(v11);
*(_QWORD *)v11 = &off_1517220;
*((_QWORD *)v11 + 40) = &off_1517678;
*((_QWORD *)v11 + 43) = &off_15176F8;
*((_QWORD *)v11 + 51) = &off_1517728;
*((_QWORD *)v11 + 52) = 0;
*((_QWORD *)v11 + 53) = 0;
*((_QWORD *)v11 + 54) = 0;
cocos2d::CCLabelAtlas::initWithString(v11, a2, a3, a4, a5, v18);
cocos2d::CCObject::autorelease(v11);
cocos2d::CCMenuItemLabel::initWithLabel(a1, (__int64)v11, a7, a9, a10);
return 1;
}