//
// cocos2d::CCMenuItem::initWithTarget from 0x1000552d8 to 0x100055348 (112 bytes)
//
// 1 xrefs:
// > CCMenuItemToggler::init @ 0x1002241c0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:57:45 +0000
//
__int64 __fastcall cocos2d::CCMenuItem::initWithTarget(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
float v9; // [xsp+8h] [xbp-28h] BYREF
sub_1000262BC(&v9, 0.5, 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 296LL))(a1, &v9);
*(_QWORD *)(a1 + 344) = a2;
*(_QWORD *)(a1 + 352) = a3;
*(_QWORD *)(a1 + 360) = a4;
*(_WORD *)(a1 + 338) = 256;
return 1;
}