//
// cocos2d::CCDictionary::allKeys from 0xacf388 to 0xacf4c0 (312 bytes)
//
// 74 xrefs:
// > AchievementManager::getAllAchievementsSorted @ 0x552920
// > AchievementManager::storeAchievementUnlocks @ 0x552f04
// > CCAnimateFrameCache::addDict @ 0x573458
// > FileSaveManager::firstLoad @ 0x57d668
// > FileSaveManager::firstLoad @ 0x57d854
// > ObjectManager::setup @ 0x58b778
// > ObjectManager::loadCopiedAnimations @ 0x58bcd4
// > ObjectManager::loadCopiedAnimations @ 0x58bd88
// > ObjectManager::replaceAllOccurencesOfString @ 0x58c130
// > ObjectManager::replaceAllOccurencesOfString @ 0x58c510
// > ObjectManager::loadCopiedSets @ 0x58cb48
// > SpriteAnimationManager::createAnimations @ 0x58e6fc
// > SpriteAnimationManager::loadAnimations @ 0x590bcc
// > PlayLayer::levelComplete @ 0x5d0c4c
// > GameManager::getOrderedCustomObjectKeys @ 0x5ed6f8
// > GameManager::firstLoad @ 0x5f0bc0
// > GameManager::recountUserStats @ 0x5f9fec
// > LevelTools::sortChannelOrderObjects @ 0x606458
// > PlayerObject::postCollision @ 0x638f08
// > PlayerObject::postCollision @ 0x639908
// > EditorUI::alignObjects @ 0x6b5d8c
// > EditorUI::selectObjects @ 0x6beb9c
// > EditorUI::onDelete @ 0x6c0b90
// > GameLevelManager::getSavedLevels @ 0x6f1ae8
// > GameLevelManager::updateLevelOrders @ 0x6f1e24
// > GameLevelManager::limitSavedLevels @ 0x6f3298
// > GameLevelManager::cleanupDailyLevels @ 0x6f33f4
// > GameLevelManager::writeSpecialFilters @ 0x6f51f8
// > GameLevelManager::getCompletedLevels @ 0x706274
// > GameLevelManager::getCompletedWeeklyLevels @ 0x70640c
// > GameLevelManager::getCompletedDailyLevels @ 0x706634
// > GameLevelManager::getCompletedEventLevels @ 0x706854
// > GameLevelManager::purgeUnusedLevels @ 0x7087c4
// > GameLevelManager::getGJRewards @ 0x729e08
// > GameStatsManager::getCompletedMapPacks @ 0x7a247c
// > GameStatsManager::getTotalCollectedCurrency @ 0x7a4a44
// > GameStatsManager::getTotalCollectedCurrency @ 0x7a4ac8
// > GameStatsManager::getTotalCollectedCurrency @ 0x7a4b4c
// > GameStatsManager::getTotalCollectedDiamonds @ 0x7a52b4
// > GameStatsManager::logCoins @ 0x7a6900
// > GameStatsManager::processOnlineChests @ 0x7bd288
// > GameStatsManager::removeErrorFromSpecialChests @ 0x7bd484
// > GameStatsManager::recountSpecialStats @ 0x7bd84c
// > GameStatsManager::recountSpecialStats @ 0x7bd998
// > GameStatsManager::dataLoaded @ 0x7be044
// > GameStatsManager::dataLoaded @ 0x7be1bc
// > GameStatsManager::dataLoaded @ 0x7be4f4
// > GameStatsManager::createSpecialChestItems @ 0x7c2e88
// > LocalLevelManager::dataLoaded @ 0x7e99f4
// > LocalLevelManager::dataLoaded @ 0x7e9ea8
// > MusicDownloadManager::dataLoaded @ 0x829ed4
// > MusicDownloadManager::dataLoaded @ 0x829f98
// > GJBaseGameLayer::processItems @ 0x85a4ac
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x865108
// > GJBaseGameLayer::resetSpawnChannelIndex @ 0x884dd0
// > SecretLayer::selectAThread @ 0x902670
// > SecretLayer2::selectAThread @ 0x93ffc0
// > SecretLayer4::selectAThread @ 0x94832c
// > SetGroupIDLayer::updateGroupIDButtons @ 0x976520
// > GJSmartTemplate::dataLoaded @ 0x9d57c8
// > GJSmartTemplate::logTemplateStatus @ 0x9da6d8
// > GJSmartTemplate::getTemplateState @ 0x9dab04
// > GJSmartTemplate::generateRemapDict @ 0x9db468
// > SetupSmartBlockLayer::onCreateAll @ 0x9dc594
// > BrowseSmartTemplateLayer::init @ 0x9df918
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x9e83d0
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x9e83e8
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x9e849c
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x9e851c
// > SetupAreaAnimTriggerPopup::updateDefaultTriggerValues @ 0xa12914
// > GJActionManager::updateInternalActions @ 0xa264cc
// > cocos2d::CCDictionary::randomObject @ 0xad1570
// > DS_Dictionary::setDictForKey @ 0xb46790
// > ??> @ 0x57990
//
// 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; // x0
unsigned int v3; // w1
cocos2d::CCArray *v4; // x21
cocos2d::CCDictionary::CCDictType m_eDictType; // w0
cocos2d::CCDictElement *v7; // x22
cocos2d::CCDictElement *j; // x19
cocos2d::CCString *v9; // x20
const char *v10; // x1
cocos2d::CCDictElement *m_pElements; // x22
cocos2d::CCDictElement *i; // x20
cocos2d::CCObject *v13; // x0
std::intptr_t m_iKey; // x22
cocos2d::CCObject *v15; // x19
v2 = (cocos2d::CCArray *)cocos2d::CCDictionary::count(a1);
if ( (int)v2 <= 0 )
return (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
v4 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity(v2, v3);
m_eDictType = a1->m_eDictType;
if ( m_eDictType != kCCDictStr )
{
if ( m_eDictType == kCCDictInt )
{
m_pElements = a1->m_pElements;
if ( m_pElements )
{
for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next )
{
v13 = (cocos2d::CCObject *)operator new(0x40u);
m_iKey = m_pElements->m_iKey;
v15 = v13;
cocos2d::CCObject::CCObject(v13);
LODWORD(v15[1].__vftable) = m_iKey;
v15->__vftable = (cocos2d::CCObject_vtbl *)&off_1148430;
m_pElements = i;
cocos2d::CCArray::addObject(v4, v15);
cocos2d::CCObject::release(v15);
if ( !i )
break;
}
return v4;
}
}
return v4;
}
v7 = a1->m_pElements;
if ( !v7 )
return v4;
for ( j = (cocos2d::CCDictElement *)v7->hh.next; ; j = (cocos2d::CCDictElement *)j->hh.next )
{
v9 = (cocos2d::CCString *)operator new(0x40u);
v10 = (const char *)v7;
v7 = j;
cocos2d::CCString::CCString(v9, v10);
cocos2d::CCArray::addObject(v4, v9);
cocos2d::CCObject::release(v9);
if ( !j )
break;
}
return v4;
}