//
// cocos2d::CCDictionary::removeAllObjects from 0x1002f8490 to 0x1002f8607 (375 bytes)
//
// 64 xrefs:
// > GameStatsManager::resetUserCoins @ 0x1000349fe
// > GameStatsManager::resetUserCoins @ 0x100034a10
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x1000f9c48
// > GJBaseGameLayer::clearPickedUpItems @ 0x1001071f0
// > GJBaseGameLayer::clearPickedUpItems @ 0x100107202
// > GJBaseGameLayer::preUpdateVisibility @ 0x10012ed99
// > GJBaseGameLayer::resetLevelVariables @ 0x100138e0d
// > GJBaseGameLayer::resetLevelVariables @ 0x100138e19
// > GJBaseGameLayer::orderSpawnObjects @ 0x100141ba8
// > CCContentManager::clearCache @ 0x100163b29
// > GJEffectManager::reset @ 0x1002c8229
// > GJEffectManager::reset @ 0x1002c8235
// > GJEffectManager::reset @ 0x1002c8241
// > sub_1002F8460 @ 0x1002f8473
// > cocos2d::CCDictionary::dCCDictionary @ 0x1002f8623
// > sub_1002F8640 @ 0x1002f8653
// > SetGroupIDLayer::updateGroupIDButtons @ 0x100300b7a
// > SetGroupIDLayer::updateGroupIDButtons @ 0x100300b91
// > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x10030861e
// > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x100308627
// > PlayerObject::flipGravity @ 0x1003f09b6
// > PlayerObject::flipGravity @ 0x1003f09c2
// > PlayerObject::flipGravity @ 0x1003f09ce
// > PlayerObject::flipGravity @ 0x1003f09da
// > PlayerObject::resetCollisionLog @ 0x1003f1564
// > PlayerObject::resetCollisionLog @ 0x1003f1570
// > PlayerObject::resetCollisionLog @ 0x1003f157c
// > PlayerObject::resetCollisionLog @ 0x1003f1588
// > PlayerObject::spiderTestJumpInternal @ 0x1003fb403
// > PlayerObject::spiderTestJumpInternal @ 0x1003fb40f
// > PlayerObject::spiderTestJumpInternal @ 0x1003fb41b
// > PlayerObject::spiderTestJumpInternal @ 0x1003fb427
// > PlayerObject::spiderTestJumpX @ 0x1003fc56a
// > PlayerObject::spiderTestJumpX @ 0x1003fc576
// > PlayerObject::spiderTestJumpX @ 0x1003fc582
// > PlayerObject::spiderTestJumpX @ 0x1003fc58e
// > PlayerObject::spiderTestJumpY @ 0x1003fd40b
// > PlayerObject::spiderTestJumpY @ 0x1003fd417
// > PlayerObject::spiderTestJumpY @ 0x1003fd423
// > PlayerObject::spiderTestJumpY @ 0x1003fd42f
// > PlayerObject::rotateGameplay @ 0x1003ff7ad
// > PlayerObject::rotateGameplay @ 0x1003ff7b9
// > PlayerObject::rotateGameplay @ 0x1003ff7c5
// > PlayerObject::rotateGameplay @ 0x1003ff7d1
// > cocos2d::CCProfiler::releaseAllTimers @ 0x1004e6f59
// > GameLevelManager::resetAllTimers @ 0x10054ac6c
// > sub_10054AC80 @ 0x10054ac90
// > sub_10054AC80 @ 0x10054ac9c
// > sub_10054AC80 @ 0x10054aca8
// > sub_10054AC80 @ 0x10054acb4
// > sub_10054AC80 @ 0x10054acc0
// > sub_10054AC80 @ 0x10054accc
// > sub_10054AC80 @ 0x10054acd8
// > sub_10054AC80 @ 0x10054ace4
// > sub_10054AC80 @ 0x10054ad07
// > GameLevelManager::resetGauntlets @ 0x10055e54c
// > CCAnimateFrameCache::removeSpriteFrames @ 0x100599b6d
// > CCAnimateFrameCache::removeSpriteFrames @ 0x100599b76
// > CCAnimateFrameCache::removeSpriteFrames @ 0x100599b85
// > cocos2d::FNTConfigRemoveCache @ 0x1006a6860
// > cocos2d::CCLabelBMFont::purgeCachedData @ 0x1006a9ce0
// > cocos2d::CCTextureCache::removeAllTextures @ 0x1006c1d29
// > SpriteAnimationManager::doCleanup @ 0x1008035a0
// > AchievementManager::resetAchievements @ 0x100864f7c
//
// This function is hookable on this platform (idp: pc, 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 12:28:29 +0000
//
void __fastcall cocos2d::CCDictionary::removeAllObjects(__int64 a1)
{
__int64 v1; // r14
__int64 *v2; // rbx
__int64 v3; // rax
__int64 v4; // r15
__int64 v5; // rcx
__int64 v6; // rdx
__int64 v7; // rsi
__int64 v8; // rdx
_QWORD *v9; // rsi
__int64 *v10; // rcx
__int64 v11; // rdx
__int64 v12; // rax
__int64 v13; // rax
__int64 v14; // rdx
v1 = *(_QWORD *)(a1 + 56);
if ( v1 )
{
v2 = (__int64 *)(a1 + 56);
while ( 1 )
{
v3 = *(_QWORD *)(v1 + 280);
v4 = *(_QWORD *)(v1 + 288);
if ( v3 )
break;
v5 = *v2;
if ( v4 )
goto LABEL_8;
free(**(void ***)(v5 + 272));
free(*(void **)(*v2 + 272));
*v2 = 0;
LABEL_4:
cocos2d::CCObject::release(*(_QWORD *)(v1 + 264));
operator delete((void *)v1);
v1 = v4;
if ( !v4 )
return;
}
v5 = *v2;
LABEL_8:
v6 = *(_QWORD *)(v5 + 272);
v7 = *(_QWORD *)(v6 + 32);
if ( v1 == *(_QWORD *)(v6 + 24) - v7 )
*(_QWORD *)(v6 + 24) = v7 + v3;
v8 = *(_QWORD *)(v1 + 288);
v9 = (_QWORD *)(v7 + v3 + 16);
if ( !v3 )
{
v9 = (_QWORD *)(a1 + 56);
v5 = *(_QWORD *)(v1 + 288);
}
*v9 = v8;
v10 = *(__int64 **)(v5 + 272);
if ( v8 )
*(_QWORD *)(v10[4] + v8 + 8) = v3;
v11 = *v10;
v12 = 16LL * (*(_DWORD *)(v1 + 324) & (unsigned int)(*((_DWORD *)v10 + 2) - 1));
--*(_DWORD *)(v11 + v12 + 8);
if ( *(_QWORD *)(v11 + v12) == v1 + 272 )
{
*(_QWORD *)(v12 + v11) = *(_QWORD *)(v1 + 304);
v13 = *(_QWORD *)(v1 + 296);
v14 = *(_QWORD *)(v1 + 304);
if ( !v13 )
goto LABEL_17;
}
else
{
v13 = *(_QWORD *)(v1 + 296);
v14 = *(_QWORD *)(v1 + 304);
if ( !v13 )
{
LABEL_17:
if ( v14 )
*(_QWORD *)(v14 + 24) = v13;
--*((_DWORD *)v10 + 4);
goto LABEL_4;
}
}
*(_QWORD *)(v13 + 32) = v14;
goto LABEL_17;
}
}