//
// cocos2d::CCActionManager::removeAllActionsFromTarget from 0x180038830 to 0x1800389ae (382 bytes)
//
// 8 xrefs:
// > cocos2d::CCNode::cleanup @ 0x180002d93
// > cocos2d::CCNode::setActionManager @ 0x180004a2f
// > cocos2d::CCNode::stopAllActions @ 0x1800052ca
// > ??> @ 0x1801362dc
// > ??> @ 0x1801362f0
// > ??> @ 0x180136300
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0bf4
//
// 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 *this,
struct cocos2d::CCObject *a2)
{
cocos2d::_hashElement *m_pTargets; // r10
int v3; // r9d
__int64 v5; // r11
int v6; // edx
unsigned int v7; // r8d
unsigned int v8; // ecx
int v9; // edx
unsigned int v10; // r8d
unsigned int v11; // ecx
int v12; // edx
__int64 v13; // rbx
__int64 v14; // rcx
struct cocos2d::_hashElement *v15; // rbx
__int64 v16; // rbx
if ( a2 )
{
m_pTargets = this->m_pTargets;
v3 = (int)a2;
if ( m_pTargets )
{
v5 = *((_QWORD *)m_pTargets + 5);
v6 = (((BYTE1(a2) + ((BYTE2(a2) + (BYTE3(a2) << 8)) << 8)) << 8) + (unsigned __int8)a2 + 17973517) ^ 0x7F76D;
v7 = (v6 << 8) ^ (-1622558010 - v6);
v8 = (v7 >> 13) ^ (-17973517 - v7 - v6);
v9 = (v8 >> 12) ^ (v6 - v7 - v8);
v10 = (v9 << 16) ^ (v7 - v9 - v8);
v11 = (v10 >> 5) ^ (v8 - v10 - v9);
v12 = (v11 >> 3) ^ (v9 - v10 - v11);
v13 = *(_QWORD *)(*(_QWORD *)v5
+ 16
* ((unsigned int)(*(_DWORD *)(v5 + 8) - 1)
& (((unsigned __int64)((v12 << 10) ^ (v10 - v12 - v11)) >> 15)
^ (v11 - ((v12 << 10) ^ (v10 - v12 - v11)) - v12))));
if ( v13 )
{
v14 = *(_QWORD *)(v5 + 32);
v15 = (struct cocos2d::_hashElement *)(v13 - v14);
if ( v15 )
{
while ( *((_DWORD *)v15 + 22) != 4 || **((_DWORD **)v15 + 10) != v3 )
{
v16 = *((_QWORD *)v15 + 9);
if ( v16 )
{
v15 = (struct cocos2d::_hashElement *)(v16 - v14);
if ( v15 )
continue;
}
return;
}
if ( sub_18009D7E0(*(_QWORD *)v15, *((_QWORD *)v15 + 3)) && !*((_BYTE *)v15 + 32) )
{
cocos2d::CCObject::retain(*((cocos2d::CCObject **)v15 + 3));
*((_BYTE *)v15 + 32) = 1;
}
sub_18009DD50(*(_QWORD *)v15);
if ( this->m_pCurrentTarget == v15 )
this->m_bCurrentTargetSalvaged = 1;
else
cocos2d::CCActionManager::deleteHashElement(this, v15);
}
}
}
}
}