//
// cocos2d::extension::CCControl::removeTargetWithActionForControlEvents from 0x1003520f0 to 0x10035229b (427 bytes)
//
// 10 xrefs:
// > ??> @ 0x100915a68
// > ??> @ 0x100916140
// > ??> @ 0x100916968
// > ??> @ 0x100917048
// > ??> @ 0x100917fa8
// > ??> @ 0x10091b4b0
// > ??> @ 0x100924b68
// > ??> @ 0x100926fd0
// > ??> @ 0x1009287b0
// > ??> @ 0x100947888
//
// 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::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;
}