//
// cocos2d::CCScheduler::removeHashElement from 0x7b4868 to 0x7b492a (194 bytes)
//
// 3 xrefs:
// > cocos2d::CCScheduler::unscheduleSelector @ 0x7b4e6c
// > cocos2d::CCScheduler::update @ 0x7b58fa
// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x7b5b3a
//
// 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:10 +0000
//
int __fastcall cocos2d::CCScheduler::removeHashElement(int a1, _DWORD *a2)
{
cocos2d::CCObject *v4; // r6
int v5; // r7
int v6; // r3
int v7; // r2
int v8; // r3
int v9; // r1
int v10; // r2
int v11; // r2
_DWORD *v12; // r1
int v13; // r3
int v14; // r2
int v15; // r3
int v16; // r3
v4 = (cocos2d::CCObject *)a2[1];
cocos2d::ccArrayFree(a2);
v5 = a2[6];
v6 = *(_DWORD *)(a1 + 72);
if ( v5 || a2[7] )
{
v7 = *(_DWORD *)(v6 + 20);
v8 = *(_DWORD *)(v7 + 20);
if ( a2 == (_DWORD *)(*(_DWORD *)(v7 + 16) - v8) )
*(_DWORD *)(v7 + 16) = v8 + v5;
v9 = a2[6];
v10 = a2[7];
if ( v9 )
*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 72) + 20) + 20) + v9 + 8) = v10;
else
*(_DWORD *)(a1 + 72) = v10;
v11 = a2[7];
if ( v11 )
*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 72) + 20) + 20) + v11 + 4) = a2[6];
v12 = *(_DWORD **)(*(_DWORD *)(a1 + 72) + 20);
v13 = 12 * (a2[12] & (v12[1] - 1));
--*(_DWORD *)(*v12 + v13 + 4);
v14 = **(_DWORD **)(*(_DWORD *)(a1 + 72) + 20);
if ( *(_DWORD **)(v14 + v13) == a2 + 5 )
*(_DWORD *)(v14 + v13) = a2[9];
v15 = a2[8];
if ( v15 )
*(_DWORD *)(v15 + 16) = a2[9];
v16 = a2[9];
if ( v16 )
*(_DWORD *)(v16 + 12) = a2[8];
--*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 72) + 20) + 12);
}
else
{
free(**(void ***)(v6 + 20));
free(*(void **)(*(_DWORD *)(a1 + 72) + 20));
*(_DWORD *)(a1 + 72) = 0;
}
free(a2);
return cocos2d::CCObject::release(v4);
}