//
// cocos2d::CCActionManager::removeActionAtIndex from 0x180038bc0 to 0x180038c4e (142 bytes)
//
// 4 xrefs:
// > cocos2d::CCActionManager::removeAction @ 0x180038ba6
// > cocos2d::CCActionManager::removeActionByTag @ 0x180038da4
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bace4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:36 +0000
//
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_1800A1B70(*(_QWORD *)v5, a2, a3);
v7 = *((_DWORD *)v5 + 4);
if ( v7 >= a2 )
*((_DWORD *)v5 + 4) = v7 - 1;
if ( !**(_DWORD **)v5 )
{
if ( *((struct cocos2d::_hashElement **)this + 8) == v5 )
*((_BYTE *)this + 72) = 1;
else
cocos2d::CCActionManager::deleteHashElement(this, v5);
}
}