//
// cocos2d::CCActionManager::removeActionAtIndex from 0xd36bac to 0xd36c68 (188 bytes)
//
// 3 xrefs:
// > cocos2d::CCActionManager::removeAction @ 0xd3797c
// > cocos2d::CCActionManager::removeActionByTag @ 0xd37c74
// > ??> @ 0xaaaa0
//
// 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 13:07:23 +0000
//
void __fastcall cocos2d::CCActionManager::removeActionAtIndex(__int64 a1, unsigned int a2, __int64 a3)
{
__int64 v6; // x0
cocos2d::CCObject *v7; // x1
unsigned int v8; // w0
v6 = *(_QWORD *)a3;
v7 = *(cocos2d::CCObject **)(a3 + 24);
if ( v7 == *(cocos2d::CCObject **)(*(_QWORD *)(*(_QWORD *)a3 + 16LL) + 8LL * a2) && !*(_BYTE *)(a3 + 32) )
{
cocos2d::CCObject::retain(v7);
v6 = *(_QWORD *)a3;
*(_BYTE *)(a3 + 32) = 1;
}
cocos2d::ccArrayRemoveObjectAtIndex(v6, a2, 1);
v8 = *(_DWORD *)(a3 + 16);
if ( a2 <= v8 )
*(_DWORD *)(a3 + 16) = v8 - 1;
if ( !**(_DWORD **)a3 )
{
if ( a3 == *(_QWORD *)(a1 + 64) )
*(_BYTE *)(a1 + 72) = 1;
else
cocos2d::CCActionManager::deleteHashElement(a1, a3);
}
}