//
// cocos2d::extension::CCControl::removeTargetWithActionForControlEvents from 0x10033d800 to 0x10033d9ab (427 bytes)
//
// 10 xrefs:
// > ??> @ 0x100b1d8b8
// > ??> @ 0x100b1dfb0
// > ??> @ 0x100b1e7f8
// > ??> @ 0x100b1eef8
// > ??> @ 0x100b1fea8
// > ??> @ 0x100b23650
// > ??> @ 0x100b2d130
// > ??> @ 0x100b2f668
// > ??> @ 0x100b30f08
// > ??> @ 0x100b52698
//
// 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:28:42 +0000
//
__int64 __fastcall cocos2d::extension::CCControl::removeTargetWithActionForControlEvents(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int16 a5)
{
__int64 result; // rax
if ( (a5 & 1) != 0 )
{
result = cocos2d::extension::CCControl::removeTargetWithActionForControlEvent(a1, a2, a3, a4, 1);
if ( (a5 & 2) == 0 )
{
LABEL_3:
if ( (a5 & 4) == 0 )
goto LABEL_4;
goto LABEL_13;
}
}
else if ( (a5 & 2) == 0 )
{
goto LABEL_3;
}
result = cocos2d::extension::CCControl::removeTargetWithActionForControlEvent(a1, a2, a3, a4, 2);
if ( (a5 & 4) == 0 )
{
LABEL_4:
if ( (a5 & 8) == 0 )
goto LABEL_5;
goto LABEL_14;
}
LABEL_13:
result = cocos2d::extension::CCControl::removeTargetWithActionForControlEvent(a1, a2, a3, a4, 4);
if ( (a5 & 8) == 0 )
{
LABEL_5:
if ( (a5 & 0x10) == 0 )
goto LABEL_6;
goto LABEL_15;
}
LABEL_14:
result = cocos2d::extension::CCControl::removeTargetWithActionForControlEvent(a1, a2, a3, a4, 8);
if ( (a5 & 0x10) == 0 )
{
LABEL_6:
if ( (a5 & 0x20) == 0 )
goto LABEL_7;
goto LABEL_16;
}
LABEL_15:
result = cocos2d::extension::CCControl::removeTargetWithActionForControlEvent(a1, a2, a3, a4, 16);
if ( (a5 & 0x20) == 0 )
{
LABEL_7:
if ( (a5 & 0x40) == 0 )
goto LABEL_8;
goto LABEL_17;
}
LABEL_16:
result = cocos2d::extension::CCControl::removeTargetWithActionForControlEvent(a1, a2, a3, a4, 32);
if ( (a5 & 0x40) == 0 )
{
LABEL_8:
if ( (a5 & 0x80u) == 0 )
goto LABEL_9;
goto LABEL_18;
}
LABEL_17:
result = cocos2d::extension::CCControl::removeTargetWithActionForControlEvent(a1, a2, a3, a4, 64);
if ( (a5 & 0x80u) == 0 )
{
LABEL_9:
if ( (a5 & 0x100) == 0 )
return result;
return cocos2d::extension::CCControl::removeTargetWithActionForControlEvent(a1, a2, a3, a4, 256);
}
LABEL_18:
result = cocos2d::extension::CCControl::removeTargetWithActionForControlEvent(a1, a2, a3, a4, 128);
if ( (a5 & 0x100) != 0 )
return cocos2d::extension::CCControl::removeTargetWithActionForControlEvent(a1, a2, a3, a4, 256);
return result;
}