//
// cocos2d::CCMenuItem::initWithTarget from 0x1003a7bb0 to 0x1003a7c25 (117 bytes)
//
// 1 xrefs:
// > CCMenuItemToggler::init @ 0x10001eac3
//
// This function is hookable on this platform (idp: pc, 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 12:29:22 +0000
//
char __fastcall cocos2d::CCMenuItem::initWithTarget(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v4; // rax
float v8[12]; // [rsp+0h] [rbp-30h] BYREF
*(_QWORD *)v8 = v4;
sub_100278250(v8, 0.5, 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 296LL))(a1, v8);
*(_QWORD *)(a1 + 344) = a2;
*(_QWORD *)(a1 + 352) = a3;
*(_QWORD *)(a1 + 360) = a4;
*(_WORD *)(a1 + 338) = 256;
return 1;
}