//
// cocos2d::CCDictionary::removeAllObjects from 0xd4391c to 0xd43acc (432 bytes)
//
// 39 xrefs:
// > AchievementManager::resetAchievements @ 0x6436e4
// > CCAnimateFrameCache::removeSpriteFrames @ 0x68d950
// > CCAnimateFrameCache::removeSpriteFrames @ 0x68d958
// > CCAnimateFrameCache::removeSpriteFrames @ 0x68d968
// > SpriteAnimationManager::doCleanup @ 0x6af8ac
// > PlayerObject::resetCollisionLog @ 0x74edd8
// > PlayerObject::resetCollisionLog @ 0x74ede0
// > PlayerObject::resetCollisionLog @ 0x74ede8
// > PlayerObject::resetCollisionLog @ 0x74edf0
// > GameLevelManager::resetAllTimers @ 0x800c08
// > GameLevelManager::resetAccountCaches @ 0x800c20
// > GameLevelManager::resetAccountCaches @ 0x800c28
// > GameLevelManager::resetAccountCaches @ 0x800c30
// > GameLevelManager::resetAccountCaches @ 0x800c38
// > GameLevelManager::resetAccountCaches @ 0x800c40
// > GameLevelManager::resetAccountCaches @ 0x800c48
// > GameLevelManager::resetAccountCaches @ 0x800c50
// > GameLevelManager::resetAccountCaches @ 0x800c58
// > GameLevelManager::resetGauntlets @ 0x80208c
// > GameStatsManager::resetUserCoins @ 0x8ddb1c
// > GameStatsManager::resetUserCoins @ 0x8ddb2c
// > GJBaseGameLayer::clearPickedUpItems @ 0x99e70c
// > GJBaseGameLayer::clearPickedUpItems @ 0x99e71c
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x9a79fc
// > GJBaseGameLayer::orderSpawnObjects @ 0x9ab518
// > GJBaseGameLayer::preUpdateVisibility @ 0x9db51c
// > GJEffectManager::reset @ 0xa08134
// > GJEffectManager::reset @ 0xa0813c
// > GJEffectManager::reset @ 0xa08144
// > SetGroupIDLayer::updateGroupIDButtons @ 0xaba68c
// > SetGroupIDLayer::updateGroupIDButtons @ 0xaba694
// > cocos2d::CCDictionary::~CCDictionary @ 0xd43aec
// > cocos2d::FNTConfigRemoveCache @ 0xd5572c
// > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0xd8c028
// > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0xd8c030
// > cocos2d::CCProfiler::releaseAllTimers @ 0xd8f2b0
// > cocos2d::CCTextureCache::removeAllTextures @ 0xda5488
// > CCContentManager::clearCache @ 0xdb488c
// > ??> @ 0x73e58
//
// 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:32 +0000
//
void __fastcall cocos2d::CCDictionary::removeAllObjects(cocos2d::CCDictionary *this)
{
__int64 v1; // x19
__int64 v3; // x21
__int64 v4; // x1
__int64 v5; // x4
__int64 v6; // x1
__int64 v7; // x2
__int64 v8; // x3
__int64 v9; // x2
__int64 v10; // x0
__int64 v11; // x2
__int64 v12; // x0
__int64 v13; // x0
__int64 v14; // x0
__int64 v15; // x0
v1 = *((_QWORD *)this + 7);
if ( v1 )
{
v3 = *(_QWORD *)(v1 + 288);
v4 = *((_QWORD *)this + 7);
while ( 1 )
{
v15 = *(_QWORD *)(v1 + 280);
if ( !v15 )
break;
v5 = *(_QWORD *)(v4 + 272);
v6 = v1 + 272;
v7 = *(_QWORD *)(v5 + 32);
if ( v1 == *(_QWORD *)(v5 + 24) - v7 )
goto LABEL_20;
LABEL_4:
*(_QWORD *)(v15 + v7 + 16) = *(_QWORD *)(v1 + 288);
v8 = *((_QWORD *)this + 7);
LABEL_5:
v9 = *(_QWORD *)(v6 + 16);
if ( v9 )
{
*(_QWORD *)(v9 + *(_QWORD *)(*(_QWORD *)(v8 + 272) + 32LL) + 8) = *(_QWORD *)(v6 + 8);
v8 = *((_QWORD *)this + 7);
}
v10 = *(_QWORD *)(v8 + 272);
v11 = 16LL * ((unsigned int)(*(_DWORD *)(v10 + 8) - 1) & *(_DWORD *)(v6 + 52));
--*(_DWORD *)(*(_QWORD *)v10 + v11 + 8);
v12 = **(_QWORD **)(*((_QWORD *)this + 7) + 272LL);
if ( *(_QWORD *)(v12 + v11) == v6 )
*(_QWORD *)(v12 + v11) = *(_QWORD *)(v6 + 32);
v13 = *(_QWORD *)(v6 + 24);
if ( v13 )
*(_QWORD *)(v13 + 32) = *(_QWORD *)(v6 + 32);
v14 = *(_QWORD *)(v6 + 32);
if ( v14 )
*(_QWORD *)(v14 + 24) = *(_QWORD *)(v6 + 24);
--*(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 272LL) + 16LL);
LABEL_14:
cocos2d::CCObject::release(*(cocos2d::CCObject **)(v1 + 264));
cocos2d::CCDictElement::~CCDictElement((cocos2d::CCDictElement *)v1);
operator delete((void *)v1);
if ( !v3 )
return;
v1 = v3;
v4 = *((_QWORD *)this + 7);
v3 = *(_QWORD *)(v3 + 288);
}
v8 = *(_QWORD *)(v1 + 288);
if ( !v8 )
{
free(**(void ***)(v4 + 272));
free(*(void **)(*((_QWORD *)this + 7) + 272LL));
*((_QWORD *)this + 7) = 0;
goto LABEL_14;
}
v5 = *(_QWORD *)(v4 + 272);
v6 = v1 + 272;
v7 = *(_QWORD *)(v5 + 32);
if ( v1 != *(_QWORD *)(v5 + 24) - v7 )
{
*((_QWORD *)this + 7) = v8;
goto LABEL_5;
}
LABEL_20:
*(_QWORD *)(v5 + 24) = v15 + v7;
v15 = *(_QWORD *)(v1 + 280);
if ( !v15 )
{
v8 = *(_QWORD *)(v1 + 288);
*((_QWORD *)this + 7) = v8;
goto LABEL_5;
}
v7 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 272LL) + 32LL);
goto LABEL_4;
}
}