//
// cocos2d::CCActionManager::removeAllActions from 0x1800386a0 to 0x18003882f (399 bytes)
//
// 6 xrefs:
// > cocos2d::CCActionManager::~CCActionManager @ 0x1800377e3
// > sub_180037800 @ 0x18003786c
// > ??> @ 0x1801362b0
// > ??> @ 0x1801362c0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0bd0
//
// 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::removeAllActions(cocos2d::CCActionManager *this)
{
cocos2d::_hashElement *m_pTargets; // rsi
__int64 v3; // r9
cocos2d::_hashElement *v4; // r10
__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
m_pTargets = this->m_pTargets;
while ( m_pTargets )
{
v3 = *((_QWORD *)m_pTargets + 1);
m_pTargets = *((cocos2d::_hashElement **)m_pTargets + 7);
if ( v3 )
{
v4 = this->m_pTargets;
if ( v4 )
{
v5 = *((_QWORD *)v4 + 5);
v6 = (((BYTE1(v3) + ((BYTE2(v3) + (BYTE3(v3) << 8)) << 8)) << 8) + 17973517 + (unsigned __int8)v3) ^ 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) != (_DWORD)v3 )
{
v16 = *((_QWORD *)v15 + 9);
if ( v16 )
{
v15 = (struct cocos2d::_hashElement *)(v16 - v14);
if ( v15 )
continue;
}
goto LABEL_17;
}
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);
}
}
}
}
LABEL_17:
;
}
}