//
// cocos2d::extension::CCControl::addTargetWithActionForControlEvent from 0x1001a5ca8 to 0x1001a5cf8 (80 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControl::addTargetWithActionForControlEvents @ 0x1001a5c80
//
// 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
//
double __fastcall cocos2d::extension::CCControl::addTargetWithActionForControlEvent(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5)
{
unsigned int v5; // w19
__int64 v7; // x21
cocos2d::CCObject *v8; // x0
double result; // d0
v5 = a5;
v7 = cocos2d::extension::CCInvocation::create(a2, a3, a4, a5);
v8 = cocos2d::extension::CCControl::dispatchListforControlEvent(a1, v5);
*(_QWORD *)&result = sub_10024A2D0(v8, v7).n128_u64[0];
return result;
}