//
// cocos2d::extension::CCControl::addTargetWithActionForControlEvents from 0x180004030 to 0x180004096 (102 bytes)
//
// 12 xrefs:
// > ??> @ 0x180026050
// > ??> @ 0x180026670
// > ??> @ 0x180026bf0
// > ??> @ 0x180027328
// > ??> @ 0x1800278f8
// > ??> @ 0x180027f00
// > ??> @ 0x1800284d0
// > ??> @ 0x180028ac0
// > ??> @ 0x180029108
// > ??> @ 0x18002a5e8
// > ??> @ 0x180032408
// > ??> @ 0x18004b348
//
// 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:15:35 +0000
//
__int64 __fastcall cocos2d::extension::CCControl::addTargetWithActionForControlEvents(
__int64 a1,
__int64 a2,
__int64 a3,
int a4)
{
unsigned int v8; // ebx
__int64 v9; // rdi
__int64 result; // rax
v8 = 1;
v9 = 9;
do
{
if ( (v8 & a4) != 0 )
result = cocos2d::extension::CCControl::addTargetWithActionForControlEvent(a1, a2, a3, v8);
v8 = __ROL4__(v8, 1);
--v9;
}
while ( v9 );
return result;
}