//
// cocos2d::CCActionManager::removeActionAtIndex from 0xac4d94 to 0xac4e50 (188 bytes)
//
// 3 xrefs:
// > cocos2d::CCActionManager::removeAction @ 0xac5a98
// > cocos2d::CCActionManager::removeActionByTag @ 0xac5d74
// > ??> @ 0x80280
//
// 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 cocos2d::CCActionManager::removeActionAtIndex(
cocos2d::CCActionManager *a1,
unsigned int a2,
cocos2d::_hashElement *a3)
{
bool v3; // w3
cocos2d *v5; // x0
cocos2d::CCObject *v8; // x1
unsigned int v9; // w0
v5 = *(cocos2d **)a3;
v8 = *((cocos2d::CCObject **)a3 + 3);
if ( v8 == *(cocos2d::CCObject **)(*(_QWORD *)(*(_QWORD *)a3 + 16LL) + 8LL * a2) && !*((_BYTE *)a3 + 32) )
{
cocos2d::CCObject::retain(v8);
v5 = *(cocos2d **)a3;
*((_BYTE *)a3 + 32) = 1;
}
cocos2d::ccArrayRemoveObjectAtIndex(v5, (cocos2d::_ccArray *)a2, 1u, v3);
v9 = *((_DWORD *)a3 + 4);
if ( a2 <= v9 )
*((_DWORD *)a3 + 4) = v9 - 1;
if ( !**(_DWORD **)a3 )
{
if ( a3 == a1->m_pCurrentTarget )
a1->m_bCurrentTargetSalvaged = 1;
else
cocos2d::CCActionManager::deleteHashElement(a1, a3);
}
}