//
// cocos2d::CCMenuItemFont::initWithString from 0x18005b170 to 0x18005b21f (175 bytes)
//
// 4 xrefs:
// > cocos2d::CCMenuItemFont::create @ 0x18005a48c
// > cocos2d::CCMenuItemFont::create @ 0x18005a4fc
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b2d9c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char __fastcall cocos2d::CCMenuItemFont::initWithString(__int64 a1, const char *a2, __int64 a3, __int64 a4)
{
const char *v5; // rbx
void **v6; // rdx
void **v10; // rcx
int v11; // eax
struct cocos2d::CCLabelTTF *v12; // rax
v5 = (const char *)(a1 + 408);
v6 = &qword_1801A2B80;
if ( (void **)(a1 + 408) != &qword_1801A2B80 )
{
v10 = (void **)(a1 + 408);
if ( *(&Size + 1) > 0xF )
v6 = (void **)qword_1801A2B80;
sub_180010050(v10, v6, Size);
}
v11 = dword_1801A2B78;
*(_DWORD *)(a1 + 400) = dword_1801A2B78;
if ( *((_QWORD *)v5 + 3) > 0xFu )
v5 = *(const char **)v5;
v12 = cocos2d::CCLabelTTF::create(a2, v5, (float)v11);
cocos2d::CCMenuItemLabel::initWithLabel((__int64 *)a1, (__int64)v12, a3, a4);
return 1;
}