//
// cocos2d::CCActionManager::removeAllActionsFromTarget from 0x100234150 to 0x1002342b3 (355 bytes)
//
// 8 xrefs:
// > cocos2d::CCActionManager::dCCActionManager @ 0x100233770
// > cocos2d::CCActionManager::removeAllActions @ 0x1002337bb
// > sub_1002337D0 @ 0x100233800
// > sub_100233820 @ 0x100233850
// > cocos2d::CCNode::cleanup @ 0x100272dd4
// > cocos2d::CCNode::stopAllActions @ 0x100272e5f
// > cocos2d::CCNode::setActionManager @ 0x100273f6c
// > CCCountdown::startTimerWithSeconds @ 0x1007c67cc
//
// 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
//
void __fastcall cocos2d::CCActionManager::removeAllActionsFromTarget(
cocos2d::CCActionManager *a1,
cocos2d::CCObject *a2)
{
cocos2d::_hashElement *m_pTargets; // 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
cocos2d::_hashElement *v13; // rbx
int v14; // [rsp+8h] [rbp-18h]
v14 = (int)a2;
if ( a2 )
{
m_pTargets = a1->m_pTargets;
if ( m_pTargets )
{
v3 = ((_DWORD)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 *)m_pTargets + 5);
v12 = *(_QWORD *)(*(_QWORD *)v11 + 16LL * (v10 & (*(_DWORD *)(v11 + 8) - 1)));
if ( v12 )
{
while ( 1 )
{
v13 = (cocos2d::_hashElement *)(v12 - *(_QWORD *)(v11 + 32));
if ( *((_DWORD *)v13 + 22) == 4 && **((_DWORD **)v13 + 10) == v14 )
break;
v12 = *((_QWORD *)v13 + 9);
if ( !v12 )
return;
}
if ( (unsigned __int8)sub_100667500(*(_QWORD *)v13, *((_QWORD *)v13 + 3)) && !*((_BYTE *)v13 + 32) )
{
cocos2d::CCObject::retain(*((cocos2d::CCObject **)v13 + 3));
*((_BYTE *)v13 + 32) = 1;
}
sub_100667360(*(_QWORD *)v13);
if ( a1->m_pCurrentTarget == v13 )
a1->m_bCurrentTargetSalvaged = 1;
else
cocos2d::CCActionManager::deleteHashElement(a1, v13);
}
}
}
}