//
// cocos2d::CCMenuItemFont::initWithString from 0xd67660 to 0xd67710 (176 bytes)
//
// 3 xrefs:
// > cocos2d::CCMenuItemFont::create @ 0xd677a4
// > cocos2d::CCMenuItemFont::create @ 0xd67848
// > ??> @ 0x90418
//
// 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::CCMenuItemFont::initWithString(
__int64 a1,
cocos2d::CCLabelTTF *this,
__int64 a3,
__int64 a4,
__int64 a5)
{
__int64 *v5; // x20
size_t v9; // x2
__int64 *v10; // x1
const char *v11; // x2
char *v12; // x1
unsigned int v13; // w0
cocos2d::CCLabelTTF *v14; // x0
__int64 v16; // [xsp+30h] [xbp+30h]
__int64 v17; // [xsp+30h] [xbp+30h]
__int64 v18; // [xsp+38h] [xbp+38h]
__int64 v19; // [xsp+38h] [xbp+38h]
v5 = (__int64 *)(a1 + 408);
if ( (char *)(a1 + 408) != &byte_1560400 )
{
if ( (byte_1560400 & 1) != 0 )
{
v10 = (__int64 *)qword_1560410;
v9 = *(__int64 *)((char *)&qword_1560401 + 7);
}
else
{
v9 = (unsigned __int8)byte_1560400 >> 1;
v10 = &qword_1560401;
}
v16 = a4;
v18 = a5;
std::string::assign(v5, v10, v9);
a4 = v16;
a5 = v18;
}
v11 = (const char *)*(unsigned __int8 *)(a1 + 408);
v12 = (char *)(a1 + 409);
v13 = dword_154A0A8;
*(_DWORD *)(a1 + 400) = dword_154A0A8;
if ( ((unsigned __int8)v11 & 1) != 0 )
v12 = (char *)v5[2];
v17 = a4;
v19 = a5;
v14 = cocos2d::CCLabelTTF::create(this, v12, v11, (float)v13);
cocos2d::CCMenuItemLabel::initWithLabel(a1, (__int64)v14, a3, v17, v19);
return 1;
}