//
// cocos2d::CCMenuItemLabel::create from 0x1003bebd0 to 0x1003bed0e (318 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCMenuItemLabel *__fastcall cocos2d::CCMenuItemLabel::create(
cocos2d::CCNode *a1,
cocos2d::CCObject *a2,
cocos2d::SEL_MenuHandler a3)
{
size_t adj; // r15
void (__cdecl *ptr)(cocos2d::CCObject *); // r12
cocos2d::CCMenuItemLabel *v5; // rbx
float v7; // [rsp+0h] [rbp-40h] BYREF
cocos2d::CCNode *v8; // [rsp+8h] [rbp-38h]
_WORD v9[22]; // [rsp+14h] [rbp-2Ch] BYREF
adj = a3.adj;
ptr = a3.ptr;
v8 = a1;
v5 = (cocos2d::CCMenuItemLabel *)operator new(0x190u);
cocos2d::CCNodeRGBA::CCNodeRGBA((__int64)v5);
*(_WORD *)&v5->m_bSelected = 0;
*(_OWORD *)&v5->m_pListener = 0;
*(_OWORD *)&v5->m_pfnSelector.adj = 0;
v5->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCMenuItemLabel_vtbl *)off_10092B9B0;
v5->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_10092BE00;
*(_QWORD *)&v5[1].m_uID = 0;
v5[1].m_uReference = 0;
sub_10028CBE0(&v7, 0.5, 0.5);
((void (__fastcall *)(cocos2d::CCMenuItemLabel *, float *))v5->setAnchorPoint)(v5, &v7);
v5->m_pListener = a2;
v5->m_pfnSelector.ptr = ptr;
v5->m_pfnSelector.adj = adj;
*(_WORD *)&v5->m_bSelected = 256;
v5[1].m_uReference = 1065353216;
LOWORD(v5[1].m_nTag) = -1;
BYTE2(v5[1].m_nTag) = -1;
memset(v9, 126, 3);
((void (__fastcall *)(cocos2d::CCMenuItemLabel *, _WORD *))v5->setDisabledColor)(v5, v9);
((void (__fastcall *)(cocos2d::CCMenuItemLabel *, cocos2d::CCNode *))v5->setLabel)(v5, v8);
((void (__fastcall *)(cocos2d::CCMenuItemLabel *, __int64))v5->setCascadeColorEnabled)(v5, 1);
((void (__fastcall *)(cocos2d::CCMenuItemLabel *, __int64))v5->setCascadeOpacityEnabled)(v5, 1);
cocos2d::CCObject::autorelease(v5);
return v5;
}