//
// cocos2d::CCActionManager::removeActionAtIndex from 0x100218200 to 0x10021828a (138 bytes)
//
// 0 xrefs:
//
// 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 12:27:00 +0000
//
void __fastcall cocos2d::CCActionManager::removeActionAtIndex(__int64 a1, unsigned int a2, __int64 a3)
{
__int64 v5; // rdi
__int64 v6; // rax
unsigned int v7; // eax
v5 = *(_QWORD *)a3;
v6 = *(_QWORD *)(a3 + 24);
if ( *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a3 + 16LL) + 8LL * a2) == v6 && !*(_BYTE *)(a3 + 32) )
{
cocos2d::CCObject::retain(v6);
*(_BYTE *)(a3 + 32) = 1;
v5 = *(_QWORD *)a3;
}
sub_1007470D0(v5, a2, 1);
v7 = *(_DWORD *)(a3 + 16);
if ( v7 >= a2 )
*(_DWORD *)(a3 + 16) = v7 - 1;
if ( !**(_DWORD **)a3 )
{
if ( *(_QWORD *)(a1 + 64) == a3 )
*(_BYTE *)(a1 + 72) = 1;
else
cocos2d::CCActionManager::deleteHashElement(a1, a3);
}
}