//
// cocos2d::CCActionManager::removeActionAtIndex from 0x1002339c0 to 0x100233a4a (138 bytes)
//
// 0 xrefs:
//
// 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::removeActionAtIndex(
cocos2d::CCActionManager *a1,
unsigned int a2,
cocos2d::_hashElement *a3)
{
__int64 v5; // rdi
cocos2d::CCObject *v6; // rax
unsigned int v7; // eax
v5 = *(_QWORD *)a3;
v6 = *((cocos2d::CCObject **)a3 + 3);
if ( *(cocos2d::CCObject **)(*(_QWORD *)(*(_QWORD *)a3 + 16LL) + 8LL * a2) == v6 && !*((_BYTE *)a3 + 32) )
{
cocos2d::CCObject::retain(v6);
*((_BYTE *)a3 + 32) = 1;
v5 = *(_QWORD *)a3;
}
sub_100667BA0(v5, a2, 1);
v7 = *((_DWORD *)a3 + 4);
if ( v7 >= a2 )
*((_DWORD *)a3 + 4) = v7 - 1;
if ( !**(_DWORD **)a3 )
{
if ( a1->m_pCurrentTarget == a3 )
a1->m_bCurrentTargetSalvaged = 1;
else
cocos2d::CCActionManager::deleteHashElement(a1, a3);
}
}