//
// cocos2d::CCActionManager::removeActionAtIndex from 0x1800384a0 to 0x18003852e (142 bytes)
//
// 4 xrefs:
// > cocos2d::CCActionManager::removeAction @ 0x180038481
// > cocos2d::CCActionManager::removeActionByTag @ 0x180038684
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0bb8
//
// 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 *this,
unsigned int a2,
struct cocos2d::_hashElement *a3)
{
cocos2d::CCObject *v4; // rcx
struct cocos2d::_hashElement *v5; // rbx
unsigned int v7; // eax
v4 = *((cocos2d::CCObject **)a3 + 3);
v5 = a3;
if ( *(cocos2d::CCObject **)(*(_QWORD *)(*(_QWORD *)a3 + 16LL) + 8LL * a2) == v4 && !*((_BYTE *)a3 + 32) )
{
cocos2d::CCObject::retain(v4);
*((_BYTE *)v5 + 32) = 1;
}
LOBYTE(a3) = 1;
sub_18009DEE0(*(_QWORD *)v5, a2, a3);
v7 = *((_DWORD *)v5 + 4);
if ( v7 >= a2 )
*((_DWORD *)v5 + 4) = v7 - 1;
if ( !**(_DWORD **)v5 )
{
if ( this->m_pCurrentTarget == v5 )
this->m_bCurrentTargetSalvaged = 1;
else
cocos2d::CCActionManager::deleteHashElement(this, v5);
}
}