//
// cocos2d::CCActionManager::deleteHashElement from 0x7bfba8 to 0x7bfc5e (182 bytes)
//
// 3 xrefs:
// > cocos2d::CCActionManager::removeActionAtIndex @ 0x7bfcd6
// > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x7c02f8
// > cocos2d::CCActionManager::update @ 0x7c051a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:19 +0000
//
void __fastcall cocos2d::CCActionManager::deleteHashElement(int a1, int a2)
{
int v4; // r6
int v5; // r3
int v6; // r2
int v7; // r3
int v8; // r1
int v9; // r2
int v10; // r2
_DWORD *v11; // r1
int v12; // r3
int v13; // r2
int v14; // r3
int v15; // r3
cocos2d::ccArrayFree(a2);
v4 = *(_DWORD *)(a2 + 24);
v5 = *(_DWORD *)(a1 + 52);
if ( v4 || *(_DWORD *)(a2 + 28) )
{
v6 = *(_DWORD *)(v5 + 20);
v7 = *(_DWORD *)(v6 + 20);
if ( a2 == *(_DWORD *)(v6 + 16) - v7 )
*(_DWORD *)(v6 + 16) = v7 + v4;
v8 = *(_DWORD *)(a2 + 24);
v9 = *(_DWORD *)(a2 + 28);
if ( v8 )
*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 52) + 20) + 20) + v8 + 8) = v9;
else
*(_DWORD *)(a1 + 52) = v9;
v10 = *(_DWORD *)(a2 + 28);
if ( v10 )
*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 52) + 20) + 20) + v10 + 4) = *(_DWORD *)(a2 + 24);
v11 = *(_DWORD **)(*(_DWORD *)(a1 + 52) + 20);
v12 = 12 * ((v11[1] - 1) & *(_DWORD *)(a2 + 48));
--*(_DWORD *)(*v11 + v12 + 4);
v13 = **(_DWORD **)(*(_DWORD *)(a1 + 52) + 20);
if ( *(_DWORD *)(v13 + v12) == a2 + 20 )
*(_DWORD *)(v13 + v12) = *(_DWORD *)(a2 + 36);
v14 = *(_DWORD *)(a2 + 32);
if ( v14 )
*(_DWORD *)(v14 + 16) = *(_DWORD *)(a2 + 36);
v15 = *(_DWORD *)(a2 + 36);
if ( v15 )
*(_DWORD *)(v15 + 12) = *(_DWORD *)(a2 + 32);
--*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 52) + 20) + 12);
}
else
{
free(**(void ***)(v5 + 20));
free(*(void **)(*(_DWORD *)(a1 + 52) + 20));
*(_DWORD *)(a1 + 52) = 0;
}
cocos2d::CCObject::release(*(cocos2d::CCObject **)(a2 + 4));
j_free((void *)a2);
}