//
// cocos2d::CCMenuItemFont::initWithString from 0x1003a8bb0 to 0x1003a8cd9 (297 bytes)
//
// 2 xrefs:
// > cocos2d::CCMenuItemFont::create @ 0x1003a8b72
// > cocos2d::CCMenuItemFont::create_1 @ 0x1003a8d60
//
// 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::CCMenuItemFont::initWithString(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
__int64 v8; // rsi
__int64 v9; // r13
float v11; // [rsp+0h] [rbp-40h] BYREF
__int64 v12; // [rsp+8h] [rbp-38h]
_WORD v13[22]; // [rsp+14h] [rbp-2Ch] BYREF
v12 = a5;
std::string::operator=((std::string *)(a1 + 408), &_str);
*(_DWORD *)(a1 + 400) = dword_100BDEAF8;
if ( (*(_BYTE *)(a1 + 408) & 1) != 0 )
v8 = *(_QWORD *)(a1 + 424);
else
v8 = a1 + 409;
v9 = cocos2d::CCLabelTTF::create_2(a2, v8);
sub_100278250(&v11, 0.5, 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 296LL))(a1, &v11);
*(_QWORD *)(a1 + 344) = a3;
*(_QWORD *)(a1 + 352) = a4;
*(_QWORD *)(a1 + 360) = v12;
*(_WORD *)(a1 + 338) = 256;
*(_DWORD *)(a1 + 396) = 1065353216;
*(_WORD *)(a1 + 392) = -1;
*(_BYTE *)(a1 + 394) = -1;
memset(v13, 126, 3);
(*(void (__fastcall **)(__int64, _WORD *))(*(_QWORD *)a1 + 1080LL))(a1, v13);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1096LL))(a1, v9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 984LL))(a1, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 936LL))(a1, 1);
return 1;
}