//
// cocos2d::extension::CCControl::addTargetWithActionForControlEvents from 0x1001a5c30 to 0x1001a5ca8 (120 bytes)
//
// 4 xrefs:
// > ??> @ 0x1007ae2d8
// > ??> @ 0x1007af5e0
// > ??> @ 0x1007b0400
// > ??> @ 0x1007b6388
//
// 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
//
__int64 __fastcall cocos2d::extension::CCControl::addTargetWithActionForControlEvents(
__int64 result,
__int64 a2,
__int64 a3,
__int64 a4,
int a5)
{
__int64 v9; // x23
int i; // w24
v9 = result;
for ( i = 0; i != 9; ++i )
{
if ( ((1 << i) & a5) != 0 )
result = cocos2d::extension::CCControl::addTargetWithActionForControlEvent(v9, a2, a3, a4);
}
return result;
}