//
// cocos2d::CCMenuItem::initWithTarget from 0x1003be7b0 to 0x1003be825 (117 bytes)
//
// 1 xrefs:
// > CCMenuItemToggler::init @ 0x100059893
//
// 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 __fastcall cocos2d::CCMenuItem::initWithTarget(
cocos2d::CCMenuItem *a1,
cocos2d::CCObject *a2,
cocos2d::SEL_MenuHandler a3)
{
__int64 v3; // rax
size_t adj; // rbx
void (__cdecl *ptr)(cocos2d::CCObject *); // r14
float v7[12]; // [rsp+0h] [rbp-30h] BYREF
*(_QWORD *)v7 = v3;
adj = a3.adj;
ptr = a3.ptr;
sub_10028CBE0(v7, 0.5, 0.5);
((void (__fastcall *)(cocos2d::CCMenuItem *, float *))a1->setAnchorPoint)(a1, v7);
a1->m_pListener = a2;
a1->m_pfnSelector.ptr = ptr;
a1->m_pfnSelector.adj = adj;
*(_WORD *)&a1->m_bSelected = 256;
return 1;
}