//
// cocos2d::CCMenuItemFont::initWithString from 0x7de28c to 0x7de302 (118 bytes)
//
// 2 xrefs:
// > cocos2d::CCMenuItemFont::create @ 0x7de332
// > cocos2d::CCMenuItemFont::create @ 0x7de360
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:47 +0000
//
int __fastcall cocos2d::CCMenuItemFont::initWithString(_DWORD *a1, cocos2d::CCLabelTTF *this, int a3, int a4, int a5)
{
int *v6; // r0
cocos2d::CCLabelTTF *v7; // r6
char *v9; // r1
size_t v10; // r2
unsigned int v11; // s15
int v12; // r3
float v13; // s15
cocos2d::CCLabelTTF *v14; // r0
v6 = a1 + 80;
v7 = this;
if ( v6 != &dword_D2F43C )
{
if ( (dword_D2F43C & 1) != 0 )
{
v9 = (char *)dword_D2F444;
v10 = dword_D2F440;
}
else
{
v10 = (int)(unsigned __int8)dword_D2F43C >> 1;
v9 = (char *)&dword_D2F43C + 1;
}
std::string::assign(v6, v9, v10);
}
v11 = dword_D1FE3C;
v12 = *((unsigned __int8 *)a1 + 320) << 31;
if ( (a1[80] & 1) == 0 )
this = (cocos2d::CCLabelTTF *)((char *)a1 + 321);
a1[79] = dword_D1FE3C;
v13 = (float)v11;
if ( v12 < 0 )
this = (cocos2d::CCLabelTTF *)a1[82];
v14 = cocos2d::CCLabelTTF::create(v7, (const char *)this, (const char *)LODWORD(v13), *(float *)&v12);
cocos2d::CCMenuItemLabel::initWithLabel((int)a1, (int)v14, a3);
return 1;
}