//
// cocos2d::CCDictionary::removeAllObjects from 0x7c7934 to 0x7c7a3e (266 bytes)
//
// 38 xrefs:
// > AchievementManager::resetAchievements @ 0x3960ea
// > CCAnimateFrameCache::removeSpriteFrames @ 0x3c40ca
// > CCAnimateFrameCache::removeSpriteFrames @ 0x3c40d0
// > CCAnimateFrameCache::removeSpriteFrames @ 0x3c40da
// > SpriteAnimationManager::doCleanup @ 0x3d7f14
// > PlayerObject::resetCollisionLog @ 0x43535e
// > PlayerObject::resetCollisionLog @ 0x435366
// > PlayerObject::resetCollisionLog @ 0x43536e
// > PlayerObject::resetCollisionLog @ 0x435376
// > GameLevelManager::resetAllTimers @ 0x4aa7ae
// > GameLevelManager::resetAccountCaches @ 0x4aa7ba
// > GameLevelManager::resetAccountCaches @ 0x4aa7c2
// > GameLevelManager::resetAccountCaches @ 0x4aa7ca
// > GameLevelManager::resetAccountCaches @ 0x4aa7d2
// > GameLevelManager::resetAccountCaches @ 0x4aa7da
// > GameLevelManager::resetAccountCaches @ 0x4aa7e2
// > GameLevelManager::resetAccountCaches @ 0x4aa7ea
// > GameLevelManager::resetAccountCaches @ 0x4aa7f2
// > GameLevelManager::resetGauntlets @ 0x4aaca2
// > GameStatsManager::resetUserCoins @ 0x5232fe
// > GameStatsManager::resetUserCoins @ 0x52330a
// > GJBaseGameLayer::clearPickedUpItems @ 0x58f182
// > GJBaseGameLayer::clearPickedUpItems @ 0x58f190
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x595564
// > GJBaseGameLayer::orderSpawnObjects @ 0x597f4c
// > GJBaseGameLayer::preUpdateVisibility @ 0x5af2da
// > GJEffectManager::reset @ 0x5cc686
// > GJEffectManager::reset @ 0x5cc68e
// > GJEffectManager::reset @ 0x5cc696
// > SetGroupIDLayer::updateGroupIDButtons @ 0x63a298
// > SetGroupIDLayer::updateGroupIDButtons @ 0x63a2a0
// > cocos2d::CCDictionary::~CCDictionary @ 0x7c7a4e
// > cocos2d::FNTConfigRemoveCache @ 0x7d2dae
// > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x7f4290
// > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x7f4296
// > cocos2d::CCProfiler::releaseAllTimers @ 0x7f5e2c
// > cocos2d::CCTextureCache::removeAllTextures @ 0x8007ee
// > CCContentManager::clearCache @ 0x80a14a
//
// 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:26 +0000
//
void __fastcall cocos2d::CCDictionary::removeAllObjects(cocos2d::CCDictionary *this)
{
int v2; // r4
int v3; // r6
int v4; // lr
int v5; // r3
int v6; // r2
int v7; // r3
int v8; // r1
int v9; // r2
int v10; // r1
_DWORD *v11; // r1
int v12; // r3
int v13; // r2
int v14; // r3
int v15; // r3
int v16; // r3
v2 = *((_DWORD *)this + 13);
if ( v2 )
v3 = *(_DWORD *)(v2 + 272);
else
v3 = 0;
while ( v2 )
{
v4 = *(_DWORD *)(v2 + 268);
v5 = *((_DWORD *)this + 13);
if ( v4 || *(_DWORD *)(v2 + 272) )
{
v6 = *(_DWORD *)(v5 + 264);
v7 = *(_DWORD *)(v6 + 20);
if ( v2 == *(_DWORD *)(v6 + 16) - v7 )
*(_DWORD *)(v6 + 16) = v7 + v4;
v8 = *(_DWORD *)(v2 + 268);
v9 = *(_DWORD *)(v2 + 272);
if ( v8 )
*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 13) + 264) + 20) + v8 + 8) = v9;
else
*((_DWORD *)this + 13) = v9;
v10 = *(_DWORD *)(v2 + 272);
if ( v10 )
*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 13) + 264) + 20) + v10 + 4) = *(_DWORD *)(v2 + 268);
v11 = *(_DWORD **)(*((_DWORD *)this + 13) + 264);
v12 = 12 * (*(_DWORD *)(v2 + 292) & (v11[1] - 1));
--*(_DWORD *)(*v11 + v12 + 4);
v13 = **(_DWORD **)(*((_DWORD *)this + 13) + 264);
if ( *(_DWORD *)(v13 + v12) == v2 + 264 )
*(_DWORD *)(v13 + v12) = *(_DWORD *)(v2 + 280);
v14 = *(_DWORD *)(v2 + 276);
if ( v14 )
*(_DWORD *)(v14 + 16) = *(_DWORD *)(v2 + 280);
v15 = *(_DWORD *)(v2 + 280);
if ( v15 )
*(_DWORD *)(v15 + 12) = *(_DWORD *)(v2 + 276);
--*(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 13) + 264) + 12);
}
else
{
free(**(void ***)(v5 + 264));
free(*(void **)(*((_DWORD *)this + 13) + 264));
*((_DWORD *)this + 13) = 0;
}
cocos2d::CCObject::release(*(cocos2d::CCObject **)(v2 + 260));
cocos2d::CCDictElement::~CCDictElement((cocos2d::CCDictElement *)v2);
operator delete((void *)v2);
if ( v3 )
v16 = *(_DWORD *)(v3 + 272);
else
v16 = 0;
v2 = v3;
v3 = v16;
}
}