//
// cocos2d::CCMenuItem::initWithTarget from 0x5d5538 to 0x5d5598 (96 bytes)
//
// 7 xrefs:
// > CCMenuItemToggler::init @ 0x2e6b8e
// > cocos2d::CCMenuItem::create @ 0x5d55ba
// > cocos2d::CCMenuItemLabel::initWithLabel @ 0x5d565a
// > cocos2d::CCMenuItemSprite::initWithNormalSprite @ 0x5d5b70
// > cocos2d::CCMenuItemToggle::createWithTarget @ 0x5d5f40
// > cocos2d::CCMenuItemToggle::initWithTarget @ 0x5d5f9e
// > cocos2d::CCMenuItemToggle::initWithItem @ 0x5d607a
//
// 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::CCMenuItem::initWithTarget(cocos2d::CCMenuItem *a1, cocos2d::CCObject *a2, cocos2d::SEL_MenuHandler a3)
{
void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9
cocos2d::CCPoint v7; // [sp+Ch] [bp+0h] BYREF
setAnchorPoint = a1->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v7, 0.5, 0.5);
setAnchorPoint(a1, &v7);
a1->m_pListener = a2;
a1->m_pfnSelector = a3;
a1->m_bSelected = 0;
a1->m_bEnabled = 1;
return 1;
}