//
// cocos2d::CCMenuItemAtlasFont::initWithString from 0x1003a88d0 to 0x1003a8a2e (350 bytes)
//
// 2 xrefs:
// > cocos2d::CCMenuItemAtlasFont::create_1 @ 0x1003a87a4
// > cocos2d::CCMenuItemAtlasFont::create @ 0x1003a8893
//
// 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:29:22 +0000
//
char __fastcall cocos2d::CCMenuItemAtlasFont::initWithString(
__int64 a1,
__int64 a2,
__int64 a3,
unsigned int a4,
unsigned int a5,
char a6,
__int64 a7,
__int128 a8)
{
_QWORD *v11; // r14
float v13; // [rsp+8h] [rbp-58h] BYREF
__int128 v14; // [rsp+10h] [rbp-50h]
unsigned int v15; // [rsp+2Ch] [rbp-34h]
unsigned int v16; // [rsp+30h] [rbp-30h]
_WORD v17[22]; // [rsp+34h] [rbp-2Ch] BYREF
v15 = a5;
v16 = a4;
v14 = a8;
v11 = operator new(0x1C0u);
cocos2d::CCAtlasNode::CCAtlasNode((__int64)v11);
*v11 = off_100BA2748;
v11[40] = off_100BA2BA0;
v11[43] = off_100BA2C20;
v11[51] = off_100BA2C50;
*((_WORD *)v11 + 208) = 0;
cocos2d::CCLabelAtlas::initWithString_1(v11, a2, a3, v16, v15, (unsigned int)a6);
cocos2d::CCObject::autorelease(v11);
sub_100278250(&v13, 0.5, 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 296LL))(a1, &v13);
*(_QWORD *)(a1 + 344) = a7;
*(_OWORD *)(a1 + 352) = v14;
*(_WORD *)(a1 + 338) = 256;
*(_DWORD *)(a1 + 396) = 1065353216;
*(_WORD *)(a1 + 392) = -1;
*(_BYTE *)(a1 + 394) = -1;
memset(v17, 126, 3);
(*(void (__fastcall **)(__int64, _WORD *))(*(_QWORD *)a1 + 1080LL))(a1, v17);
(*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 1096LL))(a1, v11);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 984LL))(a1, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 936LL))(a1, 1);
return 1;
}