//
// cocos2d::CCDictionary::allKeys from 0x5bf95c to 0x5bfa0e (178 bytes)
//
// 73 xrefs:
// > AchievementManager::getAllAchievementsSorted @ 0x2da27e
// > AchievementManager::storeAchievementUnlocks @ 0x2da488
// > CCAnimateFrameCache::addDict @ 0x2e4f1a
// > FileSaveManager::firstLoad @ 0x2eaa1c
// > FileSaveManager::firstLoad @ 0x2eaabc
// > ObjectManager::setup @ 0x2f1c46
// > ObjectManager::loadCopiedAnimations @ 0x2f1db0
// > ObjectManager::loadCopiedAnimations @ 0x2f1e20
// > ObjectManager::replaceAllOccurencesOfString @ 0x2f1f32
// > ObjectManager::replaceAllOccurencesOfString @ 0x2f2058
// > ObjectManager::loadCopiedSets @ 0x2f21ec
// > SpriteAnimationManager::createAnimations @ 0x2f2efc
// > SpriteAnimationManager::loadAnimations @ 0x2f3b70
// > PlayLayer::levelComplete @ 0x313432
// > GameManager::getOrderedCustomObjectKeys @ 0x3231d2
// > GameManager::firstLoad @ 0x324484
// > GameManager::recountUserStats @ 0x328290
// > LevelTools::sortChannelOrderObjects @ 0x32c82a
// > PlayerObject::postCollision @ 0x34d720
// > PlayerObject::postCollision @ 0x34d7ae
// > EditorUI::alignObjects @ 0x39d32e
// > EditorUI::selectObjects @ 0x3a3282
// > EditorUI::onDelete @ 0x3a43f0
// > GameLevelManager::getSavedLevels @ 0x3bf662
// > GameLevelManager::updateLevelOrders @ 0x3bf81a
// > GameLevelManager::limitSavedLevels @ 0x3bffb4
// > GameLevelManager::cleanupDailyLevels @ 0x3c005c
// > GameLevelManager::writeSpecialFilters @ 0x3c0b6a
// > GameLevelManager::getCompletedLevels @ 0x3c6af6
// > GameLevelManager::getCompletedWeeklyLevels @ 0x3c6b9a
// > GameLevelManager::getCompletedDailyLevels @ 0x3c6c96
// > GameLevelManager::getCompletedEventLevels @ 0x3c6d8e
// > GameLevelManager::purgeUnusedLevels @ 0x3c79c6
// > GameLevelManager::getGJRewards @ 0x3d3daa
// > GameStatsManager::getCompletedMapPacks @ 0x40cb6e
// > GameStatsManager::getTotalCollectedCurrency @ 0x40dc28
// > GameStatsManager::getTotalCollectedCurrency @ 0x40dcb4
// > GameStatsManager::getTotalCollectedCurrency @ 0x40dd42
// > GameStatsManager::getTotalCollectedDiamonds @ 0x40df9a
// > GameStatsManager::logCoins @ 0x40e580
// > GameStatsManager::processOnlineChests @ 0x41d026
// > GameStatsManager::removeErrorFromSpecialChests @ 0x41d0c6
// > GameStatsManager::recountSpecialStats @ 0x41d224
// > GameStatsManager::recountSpecialStats @ 0x41d256
// > GameStatsManager::dataLoaded @ 0x41d764
// > GameStatsManager::dataLoaded @ 0x41d8ce
// > GameStatsManager::dataLoaded @ 0x41dca2
// > GameStatsManager::createSpecialChestItems @ 0x42038a
// > LocalLevelManager::dataLoaded @ 0x43323c
// > LocalLevelManager::dataLoaded @ 0x43349c
// > MusicDownloadManager::dataLoaded @ 0x4582fe
// > MusicDownloadManager::dataLoaded @ 0x4583c8
// > GJBaseGameLayer::processItems @ 0x46f3b6
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x475eb6
// > GJBaseGameLayer::resetSpawnChannelIndex @ 0x48b066
// > SecretLayer::selectAThread @ 0x4c9840
// > SecretLayer2::selectAThread @ 0x4ec370
// > SecretLayer4::selectAThread @ 0x4f0978
// > SetGroupIDLayer::updateGroupIDButtons @ 0x509908
// > GJSmartTemplate::dataLoaded @ 0x53b3c8
// > GJSmartTemplate::logTemplateStatus @ 0x53c8f0
// > GJSmartTemplate::getTemplateState @ 0x53ca3e
// > GJSmartTemplate::generateRemapDict @ 0x53ccc0
// > SetupSmartBlockLayer::onCreateAll @ 0x53d276
// > BrowseSmartTemplateLayer::init @ 0x53fec6
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x544884
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x544894
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x5448fa
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x54490a
// > SetupAreaAnimTriggerPopup::updateDefaultTriggerValues @ 0x55c15c
// > GJActionManager::updateInternalActions @ 0x565f36
// > cocos2d::CCDictionary::randomObject @ 0x5c0e14
// > DS_Dictionary::setDictForKey @ 0x5ff496
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCArray *cocos2d::CCDictionary::allKeys(cocos2d::CCDictionary *a1)
{
cocos2d::CCArray *v2; // r0
unsigned int v3; // r1
cocos2d::CCArray *v5; // r0
cocos2d::CCDictionary::CCDictType m_eDictType; // r3
cocos2d::CCArray *v7; // r7
cocos2d::CCDictElement *m_pElements; // r4
cocos2d::CCDictElement *next; // r5
cocos2d::CCString *v10; // r6
cocos2d::CCDictElement *v11; // r3
cocos2d::CCDictElement *v12; // r4
cocos2d::CCDictElement *v13; // r5
cocos2d::CCObject *v14; // r0
cocos2d::CCObject_vtbl *m_iKey; // r4
cocos2d::CCObject *v16; // r6
cocos2d::CCDictElement *v17; // r3
v2 = (cocos2d::CCArray *)cocos2d::CCDictionary::count(a1);
if ( (int)v2 <= 0 )
return (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
v5 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity(v2, v3);
m_eDictType = a1->m_eDictType;
v7 = v5;
if ( m_eDictType == kCCDictStr )
{
m_pElements = a1->m_pElements;
if ( m_pElements )
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
else
next = nullptr;
while ( m_pElements )
{
v10 = (cocos2d::CCString *)operator new(0x38u);
cocos2d::CCString::CCString(v10, (const char *)m_pElements);
cocos2d::CCArray::addObject(v7, v10);
cocos2d::CCObject::release(v10);
if ( next )
v11 = (cocos2d::CCDictElement *)next->hh.next;
else
v11 = nullptr;
m_pElements = next;
next = v11;
}
}
else if ( m_eDictType == kCCDictInt )
{
v12 = a1->m_pElements;
if ( v12 )
v13 = (cocos2d::CCDictElement *)v12->hh.next;
else
v13 = nullptr;
while ( v12 )
{
v14 = (cocos2d::CCObject *)operator new(0x38u);
m_iKey = (cocos2d::CCObject_vtbl *)v12->m_iKey;
v16 = v14;
cocos2d::CCObject::CCObject(v14);
v16[1].__vftable = m_iKey;
v16->__vftable = (cocos2d::CCObject_vtbl *)&off_A45350;
cocos2d::CCArray::addObject(v7, v16);
cocos2d::CCObject::release(v16);
if ( v13 )
v17 = (cocos2d::CCDictElement *)v13->hh.next;
else
v17 = nullptr;
v12 = v13;
v13 = v17;
}
}
return v7;
}