//
// cocos2d::CCMenuItemLabel::initWithLabel from 0x18005aec0 to 0x18005af62 (162 bytes)
//
// 6 xrefs:
// > cocos2d::CCMenuItemLabel::create @ 0x18005a95c
// > cocos2d::CCMenuItemLabel::create @ 0x18005a9cc
// > cocos2d::CCMenuItemAtlasFont::initWithString @ 0x18005b149
// > cocos2d::CCMenuItemFont::initWithString @ 0x18005b1fd
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b2d6c
//
// 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::CCMenuItemLabel::initWithLabel(__int64 *a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v6; // rax
__int64 v7; // rdx
__int64 v8; // rdx
_BYTE v10[3]; // [rsp+30h] [rbp+8h] BYREF
cocos2d::CCMenuItem::initWithTarget(a1, a3, a4);
*((_WORD *)a1 + 196) = -1;
*((_BYTE *)a1 + 394) = -1;
v6 = *a1;
*((_DWORD *)a1 + 99) = 1065353216;
memset(v10, 126, sizeof(v10));
(*(void (__fastcall **)(__int64 *, _BYTE *))(v6 + 944))(a1, v10);
(*(void (__fastcall **)(__int64 *, __int64))(*a1 + 960))(a1, a2);
LOBYTE(v7) = 1;
(*(void (__fastcall **)(__int64 *, __int64))(a1[40] + 72))(a1 + 40, v7);
LOBYTE(v8) = 1;
(*(void (__fastcall **)(__int64 *, __int64))(a1[40] + 96))(a1 + 40, v8);
return 1;
}