//
// cocos2d::CCActionManager::removeAllActionsFromTarget from 0x100218990 to 0x100218af3 (355 bytes)
//
// 8 xrefs:
// > sub_100217F80 @ 0x100217fb0
// > cocos2d::CCActionManager::removeAllActions @ 0x100217ffb
// > cocos2d::CCActionManager::dCCActionManager @ 0x100218040
// > sub_100218060 @ 0x100218090
// > cocos2d::CCNode::cleanup @ 0x10025f374
// > cocos2d::CCNode::stopAllActions @ 0x10025f3ff
// > cocos2d::CCNode::setActionManager @ 0x10026050c
// > CCCountdown::startTimerWithSeconds @ 0x1008ae05c
//
// 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:27:01 +0000
//
void __fastcall cocos2d::CCActionManager::removeAllActionsFromTarget(__int64 a1, __int64 a2)
{
__int64 v2; // rax
int v3; // r8d
unsigned int v4; // ecx
unsigned int v5; // edx
int v6; // esi
unsigned int v7; // r8d
unsigned int v8; // ecx
int v9; // edx
unsigned int v10; // esi
__int64 v11; // rcx
__int64 v12; // rdx
_QWORD *v13; // rbx
int v14; // [rsp+8h] [rbp-18h]
v14 = a2;
if ( a2 )
{
v2 = *(_QWORD *)(a1 + 56);
if ( v2 )
{
v3 = (a2 + 17973517) ^ 0x7F76D;
v4 = (-1622558010 - v3) ^ (v3 << 8);
v5 = (-17973517 - v3 - v4) ^ (v4 >> 13);
v6 = (v3 - v4 - v5) ^ (v5 >> 12);
v7 = (v4 - v5 - v6) ^ (v6 << 16);
v8 = (v5 - v6 - v7) ^ (v7 >> 5);
v9 = (v6 - v7 - v8) ^ (v8 >> 3);
v10 = (v8 - (((v7 - v8 - v9) ^ (v9 << 10)) + v9)) ^ (((v7 - v8 - v9) ^ (v9 << 10)) >> 15);
v11 = *(_QWORD *)(v2 + 40);
v12 = *(_QWORD *)(*(_QWORD *)v11 + 16LL * (v10 & (*(_DWORD *)(v11 + 8) - 1)));
if ( v12 )
{
while ( 1 )
{
v13 = (_QWORD *)(v12 - *(_QWORD *)(v11 + 32));
if ( *((_DWORD *)v13 + 22) == 4 && *(_DWORD *)v13[10] == v14 )
break;
v12 = v13[9];
if ( !v12 )
return;
}
if ( (unsigned __int8)sub_100746A30(*v13, v13[3]) && !*((_BYTE *)v13 + 32) )
{
cocos2d::CCObject::retain(v13[3]);
*((_BYTE *)v13 + 32) = 1;
}
sub_100746890(*v13);
if ( *(_QWORD **)(a1 + 64) == v13 )
*(_BYTE *)(a1 + 72) = 1;
else
cocos2d::CCActionManager::deleteHashElement(a1, (__int64)v13);
}
}
}
}