//
// cocos2d::CCActionManager::removeAllActionsFromTarget from 0x1002f49f8 to 0x1002f4b7c (388 bytes)
//
// 4 xrefs:
// > cocos2d::CCNode::cleanup @ 0x10023b728
// > cocos2d::CCNode::stopAllActions @ 0x10023b7b0
// > cocos2d::CCNode::setActionManager @ 0x10023c454
// > cocos2d::CCActionManager::dCCActionManager @ 0x1002f4180
//
// 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; // x8
int v4; // w9
unsigned int v5; // w10
unsigned int v6; // w11
int v7; // w9
unsigned int v8; // w10
unsigned int v9; // w11
int v10; // w9
__int64 v11; // x8
__int64 v12; // x9
__int64 v13; // x8
cocos2d::_hashElement *v14; // x20
if ( a2 )
{
m_pTargets = a1->m_pTargets;
if ( m_pTargets )
{
v4 = ((_DWORD)a2 + 17973517) ^ 0x7F76D;
v5 = (-1622558010 - v4) ^ (v4 << 8);
v6 = (-17973517 - v4 - v5) ^ (v5 >> 13);
v7 = (v4 - v5 - v6) ^ (v6 >> 12);
v8 = (v5 - v6 - v7) ^ (v7 << 16);
v9 = (v6 - v7 - v8) ^ (v8 >> 5);
v10 = (v7 - v8 - v9) ^ (v9 >> 3);
v11 = *((_QWORD *)m_pTargets + 5);
v12 = *(_QWORD *)(*(_QWORD *)v11
+ 16LL
* (((v9 - v10 - ((v8 - v9 - v10) ^ (v10 << 10)))
^ (((v8 - v9 - v10) ^ (v10 << 10)) >> 15))
& (*(_DWORD *)(v11 + 8) - 1)));
if ( v12 )
{
v13 = -*(_QWORD *)(v11 + 32);
while ( 1 )
{
v14 = (cocos2d::_hashElement *)(v12 + v13);
if ( *(_DWORD *)(v12 + v13 + 88) == 4 && **((_DWORD **)v14 + 10) == (_DWORD)a2 )
break;
v12 = *((_QWORD *)v14 + 9);
if ( !v12 )
return;
}
if ( (unsigned int)sub_100353648(*(_QWORD *)v14, *((_QWORD *)v14 + 3)) && (*((_BYTE *)v14 + 32) & 1) == 0 )
{
cocos2d::CCObject::retain(*((cocos2d::CCObject **)v14 + 3));
*((_BYTE *)v14 + 32) = 1;
}
sub_100353544(*(_QWORD *)v14);
if ( a1->m_pCurrentTarget == v14 )
a1->m_bCurrentTargetSalvaged = 1;
else
cocos2d::CCActionManager::deleteHashElement(a1, v14);
}
}
}
}