//
// cocos2d::extension::CCControl::addTargetWithActionForControlEvents from 0x1800045c0 to 0x180004626 (102 bytes)
//
// 12 xrefs:
// > ??> @ 0x180023b28
// > ??> @ 0x180024128
// > ??> @ 0x180024698
// > ??> @ 0x180024da0
// > ??> @ 0x180025350
// > ??> @ 0x180025938
// > ??> @ 0x180025ee8
// > ??> @ 0x1800264b8
// > ??> @ 0x180026ae0
// > ??> @ 0x180027f70
// > ??> @ 0x18002fdf8
// > ??> @ 0x1800493fc
//
// 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 a1,
__int64 a2,
__int64 a3,
int a4)
{
unsigned int v4; // ebx
__int64 v9; // rdi
__int64 result; // rax
v4 = 1;
v9 = 9;
do
{
if ( (v4 & a4) != 0 )
result = cocos2d::extension::CCControl::addTargetWithActionForControlEvent(a1, a2, a3, v4);
v4 = __ROL4__(v4, 1);
--v9;
}
while ( v9 );
return result;
}