//
// cocos2d::CCActionManager::removeActionAtIndex from 0x100390a8c to 0x100390b48 (188 bytes)
//
// 2 xrefs:
// > cocos2d::CCActionManager::removeAction @ 0x100391418
// > cocos2d::CCActionManager::removeActionByTag @ 0x100391568
//
// This function is hookable on this platform (idp: arm, 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:03:37 +0000
//
void __fastcall cocos2d::CCActionManager::removeActionAtIndex(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // x0
unsigned int v7; // w8
v6 = *(_QWORD *)a3;
if ( *(_QWORD *)(*(_QWORD *)(*(_QWORD *)a3 + 16LL) + 8LL * (unsigned int)a2) == *(_QWORD *)(a3 + 24)
&& (*(_BYTE *)(a3 + 32) & 1) == 0 )
{
cocos2d::CCObject::retain(*(_QWORD *)(a3 + 24));
*(_BYTE *)(a3 + 32) = 1;
v6 = *(_QWORD *)a3;
}
sub_1003F3230(v6, a2, 1);
v7 = *(_DWORD *)(a3 + 16);
if ( v7 >= (unsigned int)a2 )
*(_DWORD *)(a3 + 16) = v7 - 1;
if ( !**(_DWORD **)a3 )
{
if ( *(_QWORD *)(a1 + 64) == a3 )
*(_BYTE *)(a1 + 72) = 1;
else
cocos2d::CCActionManager::deleteHashElement(a1, a3);
}
}