//
// cocos2d::CCActionManager::removeActionByTag from 0x100234450 to 0x1002345fa (426 bytes)
//
// 2 xrefs:
// > cocos2d::CCNode::stopActionByTag @ 0x10027400f
// > AppDelegate::applicationWillEnterForeground @ 0x10065c52b
//
// 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::removeActionByTag(
cocos2d::CCActionManager *a1,
unsigned int a2,
cocos2d::CCObject *a3)
{
cocos2d::_hashElement *m_pTargets; // rax
int v4; // r10d
unsigned int v5; // ecx
unsigned int v6; // r8d
int v7; // r9d
unsigned int v8; // r10d
unsigned int v9; // ecx
int v10; // r8d
unsigned int v11; // r9d
__int64 v12; // rcx
__int64 v13; // r8
__int64 v14; // rbx
_DWORD *v15; // rax
__int64 v16; // r14
__int64 v17; // r9
unsigned int v18; // eax
m_pTargets = a1->m_pTargets;
if ( m_pTargets )
{
v4 = ((_DWORD)a3 + 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 = (v9 - (((v8 - v9 - v10) ^ (v10 << 10)) + v10)) ^ (((v8 - v9 - v10) ^ (v10 << 10)) >> 15);
v12 = *((_QWORD *)m_pTargets + 5);
v13 = *(_QWORD *)(*(_QWORD *)v12 + 16LL * (v11 & (*(_DWORD *)(v12 + 8) - 1)));
if ( v13 )
{
while ( 1 )
{
v14 = v13 - *(_QWORD *)(v12 + 32);
if ( *(_DWORD *)(v14 + 88) == 4 && **(_DWORD **)(v14 + 80) == (_DWORD)a3 )
break;
v13 = *(_QWORD *)(v14 + 72);
if ( !v13 )
return;
}
v15 = *(_DWORD **)v14;
if ( **(_DWORD **)v14 )
{
v16 = 0;
while ( 1 )
{
v17 = *(_QWORD *)(*((_QWORD *)v15 + 2) + 8 * v16);
if ( *(_DWORD *)(v17 + 72) == a2 && *(cocos2d::CCObject **)(v17 + 56) == a3 )
break;
if ( **(_DWORD **)v14 == ++v16 )
return;
}
if ( v17 == *(_QWORD *)(v14 + 24) && !*(_BYTE *)(v14 + 32) )
{
cocos2d::CCObject::retain(*(cocos2d::CCObject **)(v14 + 24));
*(_BYTE *)(v14 + 32) = 1;
v15 = *(_DWORD **)v14;
}
sub_100667BA0(v15, (unsigned int)v16, 1);
v18 = *(_DWORD *)(v14 + 16);
if ( v18 >= (unsigned int)v16 )
*(_DWORD *)(v14 + 16) = v18 - 1;
if ( !**(_DWORD **)v14 )
{
if ( a1->m_pCurrentTarget == (cocos2d::_hashElement *)v14 )
a1->m_bCurrentTargetSalvaged = 1;
else
cocos2d::CCActionManager::deleteHashElement(a1, (cocos2d::_hashElement *)v14);
}
}
}
}
}