//
// cocos2d::CCMenuItemLabel::initWithLabel from 0xaf566c to 0xaf5744 (216 bytes)
//
// 5 xrefs:
// > cocos2d::CCMenuItemLabel::create @ 0xaf57c8
// > cocos2d::CCMenuItemLabel::create @ 0xaf585c
// > cocos2d::CCMenuItemAtlasFont::initWithString @ 0xaf59c0
// > cocos2d::CCMenuItemFont::initWithString @ 0xaf5be0
// > ??> @ 0x2e3f8
//
// 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
//
bool cocos2d::CCMenuItemLabel::initWithLabel(
cocos2d::CCMenuItemLabel *a1,
cocos2d::CCNode *a2,
cocos2d::CCObject *a3,
cocos2d::SEL_MenuHandler a4)
{
cocos2d::CCMenuItemLabel_vtbl *v6; // x3
void (__fastcall *setDisabledColor)(cocos2d::CCMenuItemLabel *__hidden, const cocos2d::ccColor3B *); // x3
_BYTE v9[8]; // [xsp+30h] [xbp+30h] BYREF
cocos2d::CCMenuItem::initWithTarget(a1, a3, a4);
v6 = a1->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
LOBYTE(a1[1].m_nTag) = -1;
BYTE1(a1[1].m_nTag) = -1;
BYTE2(a1[1].m_nTag) = -1;
memset(v9, 126, 3);
setDisabledColor = v6->setDisabledColor;
*(float *)&a1[1].m_uReference = 1.0;
setDisabledColor(a1, (const cocos2d::ccColor3B *)v9);
a1->setLabel(a1, a2);
a1->setCascadeColorEnabled(a1, 1);
a1->setCascadeOpacityEnabled(a1, 1);
return 1;
}