//
// cocos2d::extension::CCControl::addTargetWithActionForControlEvents from 0x5a0b56 to 0x5a0b90 (58 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall cocos2d::extension::CCControl::addTargetWithActionForControlEvents(
int result,
int a2,
int a3,
int a4,
int a5)
{
cocos2d::extension::CCControl *v5; // r7
int i; // r4
v5 = (cocos2d::extension::CCControl *)result;
for ( i = 0; i != 9; ++i )
{
if ( ((1 << i) & a5) != 0 )
result = cocos2d::extension::CCControl::addTargetWithActionForControlEvent(v5, a2, a3, a4, 1 << i);
}
return result;
}