//
// cocos2d::CCActionManager::removeAction from 0x1002f4b7c to 0x1002f4cb0 (308 bytes)
//
// 1 xrefs:
// > cocos2d::CCActionManager::update @ 0x1002f4fd8
//
// 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::removeAction(cocos2d::CCActionManager *a1, cocos2d::CCAction *a2)
{
cocos2d::CCNode *m_pOriginalTarget; // x9
cocos2d::_hashElement *m_pTargets; // x8
int v5; // w9
unsigned int v6; // w10
unsigned int v7; // w11
int v8; // w9
unsigned int v9; // w10
unsigned int v10; // w11
int v11; // w9
__int64 v12; // x8
__int64 v13; // x9
__int64 v14; // x8
cocos2d::_hashElement *v15; // x20
unsigned int v16; // w0
int v17; // [xsp+8h] [xbp-18h]
if ( a2 )
{
m_pOriginalTarget = a2->m_pOriginalTarget;
v17 = (int)m_pOriginalTarget;
m_pTargets = a1->m_pTargets;
if ( m_pTargets )
{
v5 = ((_DWORD)m_pOriginalTarget + 17973517) ^ 0x7F76D;
v6 = (-1622558010 - v5) ^ (v5 << 8);
v7 = (-17973517 - v5 - v6) ^ (v6 >> 13);
v8 = (v5 - v6 - v7) ^ (v7 >> 12);
v9 = (v6 - v7 - v8) ^ (v8 << 16);
v10 = (v7 - v8 - v9) ^ (v9 >> 5);
v11 = (v8 - v9 - v10) ^ (v10 >> 3);
v12 = *((_QWORD *)m_pTargets + 5);
v13 = *(_QWORD *)(*(_QWORD *)v12
+ 16LL
* (((v10 - v11 - ((v9 - v10 - v11) ^ (v11 << 10)))
^ (((v9 - v10 - v11) ^ (v11 << 10)) >> 15))
& (*(_DWORD *)(v12 + 8) - 1)));
if ( v13 )
{
v14 = -*(_QWORD *)(v12 + 32);
while ( 1 )
{
v15 = (cocos2d::_hashElement *)(v13 + v14);
if ( *(_DWORD *)(v13 + v14 + 88) == 4 && **((_DWORD **)v15 + 10) == v17 )
break;
v13 = *((_QWORD *)v15 + 9);
if ( !v13 )
return;
}
v16 = sub_100353614(*(_QWORD *)v15);
if ( v16 != -1 )
cocos2d::CCActionManager::removeActionAtIndex(a1, v16, v15);
}
}
}
}