//
// cocos2d::CCActionManager::removeActionAtIndex from 0x1002f4310 to 0x1002f43cc (188 bytes)
//
// 2 xrefs:
// > cocos2d::CCActionManager::removeAction @ 0x1002f4c9c
// > cocos2d::CCActionManager::removeActionByTag @ 0x1002f4dec
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall cocos2d::CCActionManager::removeActionAtIndex(
cocos2d::CCActionManager *a1,
unsigned int a2,
cocos2d::_hashElement *a3)
{
__int64 v4; // x21
__int64 v6; // x0
unsigned int v7; // w8
v4 = *(_QWORD *)&a2;
v6 = *(_QWORD *)a3;
if ( *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a3 + 16LL) + 8LL * a2) == *((_QWORD *)a3 + 3)
&& (*((_BYTE *)a3 + 32) & 1) == 0 )
{
cocos2d::CCObject::retain(*((cocos2d::CCObject **)a3 + 3));
*((_BYTE *)a3 + 32) = 1;
v6 = *(_QWORD *)a3;
}
sub_100353940(v6, v4, 1);
v7 = *((_DWORD *)a3 + 4);
if ( v7 >= (unsigned int)v4 )
*((_DWORD *)a3 + 4) = v7 - 1;
if ( !**(_DWORD **)a3 )
{
if ( a1->m_pCurrentTarget == a3 )
a1->m_bCurrentTargetSalvaged = 1;
else
cocos2d::CCActionManager::deleteHashElement(a1, a3);
}
}