//
// cocos2d::CCDictionary::objectForKey from 0x5bfd08 to 0x5bfdca (194 bytes)
//
// 189 xrefs:
// > TextArea::fadeInCharacters @ 0x2f4a16
// > LevelTools::moveTriggerObjectsToArray @ 0x32c768
// > LevelTools::sortChannelOrderObjects @ 0x32c84a
// > LevelTools::sortChannelOrderObjects @ 0x32c85e
// > LevelTools::sortChannelOrderObjects @ 0x32c8ca
// > LevelTools::sortChannelOrderObjects @ 0x32c8f6
// > LevelTools::sortChannelOrderObjects @ 0x32c948
// > PlayerObject::postCollision @ 0x34cbbc
// > PlayerObject::postCollision @ 0x34ce68
// > LevelEditorLayer::reverseKeyframeAnimationOrder @ 0x3694b8
// > LevelEditorLayer::duplicateKeyframeAnimation @ 0x371336
// > EditorUI::addObjectsToSmartTemplate @ 0x39c326
// > EditorUI::addObjectsToSmartTemplate @ 0x39c524
// > EditorUI::alignObjects @ 0x39d30a
// > EditorUI::createNewKeyframeAnim @ 0x3a356e
// > EditorUI::onDelete @ 0x3a4536
// > EditorUI::createSmartObjectsFromTemplate @ 0x3a520e
// > GameLevelManager::getNextFreeTemplateID @ 0x3c0464
// > GameLevelManager::userInfoForAccountID @ 0x3c1560
// > GameLevelManager::friendRequestFromAccountID @ 0x3c1668
// > GameLevelManager::getStoredUserMessage @ 0x3c1680
// > GameLevelManager::getStoredUserMessageReply @ 0x3c169a
// > GameLevelManager::getAllUsedSongIDs @ 0x3c4ef8
// > GameLevelManager::getAllUsedSongIDs @ 0x3c4f14
// > GameStatsManager::getStoreItem @ 0x40c860
// > GameStatsManager::getRewardItem @ 0x40d46c
// > GameStatsManager::areRewardsLoaded @ 0x40d478
// > GameStatsManager::getRewardForSecretChest @ 0x40e4ac
// > ParentalOptionsLayer::onToggle @ 0x421ddc
// > MoreOptionsLayer::onToggle @ 0x4224b6
// > MoreVideoOptionsLayer::onToggle @ 0x426286
// > MusicDownloadManager::getMusicArtistForID @ 0x4584e2
// > MusicDownloadManager::getMusicObject @ 0x4584ee
// > MusicDownloadManager::storeSFXInfoObject @ 0x4587bc
// > MusicDownloadManager::getSFXObject @ 0x4587dc
// > MusicDownloadManager::clearUnusedSongs @ 0x459b8c
// > MusicDownloadManager::createSongsInfo @ 0x45ca10
// > MusicDownloadManager::parseMusicLibrary @ 0x45d180
// > KeybindingsLayer::onToggle @ 0x46b20e
// > GJBaseGameLayer::getGroupParent @ 0x471084
// > GJBaseGameLayer::tryGetGroupParent @ 0x4710c6
// > GJBaseGameLayer::tryGetMainObject @ 0x471112
// > GJBaseGameLayer::removeGroupParent @ 0x472d94
// > GJBaseGameLayer::setGroupParent @ 0x472e28
// > GJBaseGameLayer::removeFromGroupParents @ 0x472f06
// > GJBaseGameLayer::addToGroupParents @ 0x472f66
// > GJBaseGameLayer::sortStickyGroups @ 0x473064
// > GJBaseGameLayer::getStickyGroup @ 0x4730f4
// > GJBaseGameLayer::ungroupStickyObjects @ 0x473120
// > GJBaseGameLayer::assignNewStickyGroups @ 0x47322c
// > GJBaseGameLayer::getTargetGroup @ 0x473324
// > GJBaseGameLayer::getTargetGroupOrigin @ 0x47333c
// > GJBaseGameLayer::updateKeyframeOrder @ 0x475db4
// > GJBaseGameLayer::addKeyframe @ 0x475e28
// > GJBaseGameLayer::removeKeyframe @ 0x475e6e
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x475f26
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x475f84
// > GJBaseGameLayer::getActiveOrderSpawnObjects @ 0x478fc8
// > GJBaseGameLayer::parentForZLayer @ 0x47c25e
// > GJBaseGameLayer::triggerGradientCommand @ 0x47c984
// > GJBaseGameLayer::controlGradientTrigger @ 0x47cb74
// > GJBaseGameLayer::playKeyframeAnimation @ 0x488882
// > GJBaseGameLayer::generateTargetGroups @ 0x48d7b0
// > GJBaseGameLayer::generateTargetGroups @ 0x48d7e4
// > GJBaseGameLayer::generateTargetGroups @ 0x48d82c
// > GJBaseGameLayer::generateTargetGroups @ 0x48d8bc
// > GJBaseGameLayer::generateTargetGroups @ 0x48d8d0
// > GJBaseGameLayer::generateTargetGroups @ 0x48d912
// > GJBaseGameLayer::generateTargetGroups @ 0x48d972
// > GJBaseGameLayer::generateTargetGroups @ 0x48d982
// > GJBaseGameLayer::getGroupParentsString @ 0x48df12
// > GJOptionsLayer::onToggle @ 0x4a7c1a
// > ConfigureHSVWidget::updateLabels @ 0x4b6c7e
// > ConfigureHSVWidget::updateLabels @ 0x4b6cba
// > ConfigureHSVWidget::updateLabels @ 0x4b6cf6
// > SecretLayer::selectAThread @ 0x4c98b2
// > ChallengesPage::exitNodeAtSlot @ 0x4cbd90
// > ChallengesPage::createChallengeNode @ 0x4cc720
// > ChallengesPage::challengeStatusFinished @ 0x4ccff8
// > GauntletSelectLayer::onPlay @ 0x4d6de8
// > GauntletSelectLayer::unlockAnimationStep2 @ 0x4d6eca
// > GauntletSelectLayer::unlockAnimationStep3 @ 0x4d72c2
// > GauntletSelectLayer::playUnlockAnimation @ 0x4d7588
// > GauntletSelectLayer::showUnlockGauntlet @ 0x4d9e90
// > GJShopLayer::didPurchaseItem @ 0x4e190e
// > SecretLayer2::selectAThread @ 0x4ec3e2
// > SecretLayer4::selectAThread @ 0x4f09ea
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x4f5830
// > SetupInstantCollisionTriggerPopup::updateSpecialNodes @ 0x4f58e4
// > ShardsPage::goToPage @ 0x4fb2e8
// > ShardsPage::init @ 0x4fb714
// > CommunityCreditsPage::goToPage @ 0x506cfc
// > CommunityCreditsPage::init @ 0x507b7e
// > SetGroupIDLayer::updateGroupIDButtons @ 0x5097f2
// > SetGroupIDLayer::updateGroupIDButtons @ 0x5097fc
// > SetGroupIDLayer::updateGroupIDButtons @ 0x509962
// > SetGroupIDLayer::updateGroupIDButtons @ 0x509990
// > SetGroupIDLayer::callRemoveFromGroup @ 0x509cc2
// > GJMultiplayerManager::getLastCommentIDForGame @ 0x50ff1e
// > GJMultiplayerManager::addComment @ 0x50ffe2
// > GJMultiplayerManager::addComment @ 0x51003e
// > sub_52911A @ 0x52912a
// > sub_52913C @ 0x52914c
// > GameManager::addCustomAnimationFrame @ 0x52b3ea
// > GameManager::addCustomAnimationFrame @ 0x52b424
// > GameManager::framesForAnimation @ 0x52e2b2
// > GameManager::frameTimeForAnimation @ 0x52e392
// > GameManager::defaultFrameForAnimation @ 0x52e43a
// > CreateParticlePopup::updateSliderForType @ 0x531106
// > CreateParticlePopup::updateInputNodeStringForType @ 0x53125c
// > CreateParticlePopup::toggleGravityMode @ 0x532108
// > CreateParticlePopup::toggleGravityMode @ 0x53211a
// > CreateParticlePopup::toggleGravityMode @ 0x53212c
// > CreateParticlePopup::toggleGravityMode @ 0x532140
// > CreateParticlePopup::toggleGravityMode @ 0x53215c
// > CreateParticlePopup::toggleGravityMode @ 0x53216e
// > CreateParticlePopup::toggleGravityMode @ 0x532180
// > CreateParticlePopup::toggleGravityMode @ 0x532194
// > MPLobbyLayer::updateComments @ 0x535324
// > MPLobbyLayer::joinLobbyFinished @ 0x5355f2
// > SetupTriggerPopup::updateInputNode @ 0x540b86
// > SetupTriggerPopup::updateToggleItem @ 0x540f80
// > SetupTriggerPopup::toggleGroup @ 0x541682
// > SetupTriggerPopup::toggleGroup @ 0x5416a4
// > SetupTriggerPopup::goToPage @ 0x541830
// > SetupTriggerPopup::goToPage @ 0x54185a
// > SetupTriggerPopup::toggleDisableButtons @ 0x5423e2
// > SetupTriggerPopup::updateCustomToggleTrigger @ 0x54273c
// > SetupTriggerPopup::updateLabel @ 0x542756
// > SetupTriggerPopup::getTruncatedValueByTag @ 0x542bc2
// > SetupTriggerPopup::updateSlider @ 0x542be6
// > SetupTriggerPopup::getValue @ 0x544a8c
// > SetupTriggerPopup::updateInputNodeLabel @ 0x544b30
// > SetupTriggerPopup::getMinSliderValue @ 0x544b9a
// > SetupTriggerPopup::getMaxSliderValue @ 0x545476
// > SetupTriggerPopup::updateCustomEaseLabel @ 0x545c54
// > SetupTriggerPopup::updateCustomEaseLabel @ 0x545c7e
// > SetupTriggerPopup::updateCustomEaseRateLabel @ 0x545cf6
// > SetupTriggerPopup::toggleCustomEaseRateVisibility @ 0x545dca
// > SetupTriggerPopup::valueChanged @ 0x548490
// > SetupTriggerPopup::valueChanged @ 0x54849c
// > SetupTriggerPopup::valueChanged @ 0x5484c8
// > SetupTriggerPopup::valueChanged @ 0x5484d4
// > SetupTriggerPopup::triggerArrowChanged @ 0x548624
// > SetupTriggerPopup::updateValue @ 0x548702
// > SetupTriggerPopup::onCustomEaseArrow @ 0x548922
// > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x5519f0
// > SetupShaderEffectPopup::valueDidChange @ 0x551c58
// > SetupAreaMoveTriggerPopup::updateEnterTargetIDState @ 0x557eba
// > SetupAreaMoveTriggerPopup::init @ 0x559444
// > SetupAreaAnimTriggerPopup::init @ 0x55bece
// > SetupAreaAnimTriggerPopup::updateTargetIDLabel @ 0x55c086
// > SetupEnterEffectPopup::init @ 0x55d818
// > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x55ea7c
// > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x55eb68
// > SetupAdvFollowPopup::valueDidChange @ 0x55eca2
// > SetupAdvFollowRetargetPopup::valueDidChange @ 0x55edd6
// > GJActionManager::getInternalAction @ 0x565efe
// > GJActionManager::stopInternalAction @ 0x565f0c
// > GJActionManager::updateInternalActions @ 0x565f66
// > SetupKeyframePopup::onClose @ 0x573462
// > SetupKeyframePopup::refreshPreviewArt @ 0x574836
// > SetupKeyframePopup::onCustomButton @ 0x574b20
// > SetupSequenceTriggerPopup::onCustomToggleTriggerValue @ 0x5800b2
// > SetupSequenceTriggerPopup::onCustomToggleTriggerValue @ 0x5800c6
// > SetupSequenceTriggerPopup::onCustomToggleTriggerValue @ 0x5800e8
// > SetupSequenceTriggerPopup::onCustomToggleTriggerValue @ 0x5800fc
// > SetupSequenceTriggerPopup::onCustomToggleTriggerValue @ 0x580110
// > SecretRewardsLayer::updateUnlockedLabel @ 0x585b18
// > cocos2d::extension::CCControl::dispatchListforControlEvent @ 0x5a0b0a
// > cocos2d::extension::CCControlButton::getTitleColorForState @ 0x5a1466
// > cocos2d::extension::CCControlButton::getTitleColorForState @ 0x5a1472
// > cocos2d::extension::CCControlButton::setTitleLabelForState @ 0x5a14b4
// > cocos2d::extension::CCControlButton::setBackgroundSpriteForState @ 0x5a1810
// > cocos2d::extension::CCControlButton::getTitleLabelForState @ 0x5a19a0
// > cocos2d::extension::CCControlButton::getTitleLabelForState @ 0x5a19b0
// > cocos2d::extension::CCControlButton::getBackgroundSpriteForState @ 0x5a19be
// > cocos2d::extension::CCControlButton::getBackgroundSpriteForState @ 0x5a19ce
// > cocos2d::extension::CCControlButton::getTitleForState @ 0x5a1df2
// > cocos2d::extension::CCControlButton::getTitleForState @ 0x5a1dfe
// > cocos2d::CCDictionary::valueForKey @ 0x5bfe60
// > cocos2d::CCDictionary::randomObject @ 0x5c0e28
// > cocos2d::CCEGLViewProtocol::getSetOfTouchesEndOrCancel @ 0x5e0a18
// > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x5e0c5e
// > cocos2d::CCEGLViewProtocol::handleTouchesMove @ 0x5e0dd6
// > cocos2d::CCTMXTiledMap::propertiesForGID @ 0x5f8858
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f9be6
// > cocos2d::CCTouchDispatcher::registerForcePrio @ 0x5fa69c
// > cocos2d::CCTouchDispatcher::unregisterForcePrio @ 0x5fa6e0
//
// 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::CCObject *cocos2d::CCDictionary::objectForKey(cocos2d::CCDictionary *a1, intptr_t a2)
{
cocos2d::CCDictionary::CCDictType m_eDictType; // r3
cocos2d::CCObject *result; // r0
_DWORD *m_uID; // r5
int v5; // r1
unsigned int v6; // r2
unsigned int v7; // r3
int v8; // r1
unsigned int v9; // r2
unsigned int v10; // r3
int v11; // r1
char *v12; // r4
intptr_t v13; // [sp+4h] [bp-4h] BYREF
m_eDictType = a1->m_eDictType;
v13 = a2;
if ( m_eDictType == kCCDictUnknown )
return nullptr;
result = (cocos2d::CCObject *)a1->m_pElements;
if ( result )
{
m_uID = (_DWORD *)result[5].m_uID;
v5 = ((unsigned __int8)v13 + 17973517 + (HIBYTE(v13) << 24) + (BYTE2(v13) << 16) + (BYTE1(v13) << 8)) ^ 0x7F76D;
v6 = (-1622558010 - v5) ^ (v5 << 8);
v7 = (-17973517 - v5 - v6) ^ (v6 >> 13);
v8 = (v5 - v6 - v7) ^ (v7 >> 12);
v9 = (v6 - v7 - v8) ^ (v8 << 16);
v10 = (v7 - v8 - v9) ^ (v9 >> 5);
v11 = (v8 - v9 - v10) ^ (v10 >> 3);
v12 = *(char **)(*m_uID
+ 12
* (((v10 - v11 - ((v9 - v10 - v11) ^ (v11 << 10)))
^ (((v9 - v10 - v11) ^ (v11 << 10)) >> 15))
& (m_uID[1] - 1)));
if ( v12 )
v12 -= m_uID[5];
while ( 1 )
{
if ( !v12 )
return nullptr;
if ( *((_DWORD *)v12 + 72) == 4 && !memcmp(*((const void **)v12 + 71), &v13, 4u) )
break;
result = *((cocos2d::CCObject **)v12 + 70);
if ( !result )
return result;
v12 = (char *)result - m_uID[5];
}
return *((cocos2d::CCObject **)v12 + 65);
}
return result;
}