//
// cocos2d::CCActionManager::removeActionAtIndex from 0x5b9420 to 0x5b947a (90 bytes)
//
// 2 xrefs:
// > cocos2d::CCActionManager::removeAction @ 0x5b9b9c
// > cocos2d::CCActionManager::removeActionByTag @ 0x5b9d3c
//
// 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)
{
cocos2d::CCObject *v6; // r0
cocos2d::CCObject *v7; // r3
unsigned int v8; // r3
v6 = *(cocos2d::CCObject **)(*(_DWORD *)(*(_DWORD *)a3 + 12) + 4 * a2);
v7 = *((cocos2d::CCObject **)a3 + 3);
if ( v6 == v7 )
{
LOBYTE(v7) = *((_BYTE *)a3 + 16);
if ( !(_BYTE)v7 )
{
cocos2d::CCObject::retain(v6);
LOBYTE(v7) = 1;
*((_BYTE *)a3 + 16) = 1;
}
}
cocos2d::ccArrayRemoveObjectAtIndex(*(cocos2d **)a3, (cocos2d::_ccArray *)a2, 1u, (bool)v7);
v8 = *((_DWORD *)a3 + 2);
if ( v8 >= a2 )
*((_DWORD *)a3 + 2) = v8 - 1;
if ( !**(_DWORD **)a3 )
{
if ( a1->m_pCurrentTarget == a3 )
a1->m_bCurrentTargetSalvaged = 1;
else
cocos2d::CCActionManager::deleteHashElement(a1, a3);
}
}