//
// cocos2d::CCDictionary::setObject from 0x5c0718 to 0x5c07fc (228 bytes)
//
// 159 xrefs:
// > TextArea::fadeInCharacters @ 0x2f4a2e
// > LevelTools::createStarPackDict @ 0x32c718
// > LevelTools::sortChannelOrderObjects @ 0x32c930
// > LevelTools::sortChannelOrderObjects @ 0x32c95e
// > PlayerObject::storeCollision @ 0x33d434
// > LevelEditorLayer::getTriggerGroup @ 0x368258
// > EditorUI::addObjectsToSmartTemplate @ 0x39bf6c
// > EditorUI::addObjectsToSmartTemplate @ 0x39c37e
// > EditorUI::alignObjects @ 0x39d31e
// > EditorUI::selectObjects @ 0x3a320a
// > EditorUI::onDelete @ 0x3a4548
// > EditorUI::createSmartObjectsFromTemplate @ 0x3a4ff4
// > GameLevelManager::storeUserName @ 0x3bf2aa
// > GameLevelManager::storeUserName @ 0x3bf2c0
// > GameLevelManager::getNextFreeTemplateID @ 0x3c0454
// > GameLevelManager::storeUserInfo @ 0x3c154e
// > GameLevelManager::storeFriendRequest @ 0x3c165e
// > GameLevelManager::storeUserMessage @ 0x3c1676
// > GameLevelManager::storeUserMessageReply @ 0x3c1690
// > GameLevelManager::getAllUsedSongIDs @ 0x3c4f0c
// > GameLevelManager::getAllUsedSongIDs @ 0x3c4f28
// > GameStatsManager::storeRewardState @ 0x40e874
// > GameStatsManager::createSecretChestRewards @ 0x40f8d0
// > GameStatsManager::createSecretChestRewards @ 0x410440
// > GameStatsManager::createSecretChestRewards @ 0x4112c4
// > GameStatsManager::createSecretChestRewards @ 0x411a6a
// > GameStatsManager::createSecretChestRewards @ 0x411f96
// > GameStatsManager::createSecretChestRewards @ 0x4123aa
// > GameStatsManager::createSecretChestRewards @ 0x41286e
// > GameStatsManager::addStoreItem @ 0x41a178
// > MoreOptionsLayer::addToggle @ 0x422f28
// > MoreVideoOptionsLayer::addToggle @ 0x4259ec
// > ParentalOptionsLayer::addToggle @ 0x426abc
// > MusicDownloadManager::storeMusicObject @ 0x4584d8
// > MusicDownloadManager::storeSFXInfoObject @ 0x4587ae
// > MusicDownloadManager::createArtistsInfo @ 0x45a83c
// > MusicDownloadManager::parseMusicLibrary @ 0x45cfac
// > GJBaseGameLayer::getGroup @ 0x470da0
// > GJBaseGameLayer::getStaticGroup @ 0x470fa2
// > GJBaseGameLayer::getOptimizedGroup @ 0x470fdc
// > GJBaseGameLayer::setGroupParent @ 0x472e1c
// > GJBaseGameLayer::setGroupParent @ 0x472e40
// > GJBaseGameLayer::removeFromGroupParents @ 0x472f3a
// > GJBaseGameLayer::sortStickyGroups @ 0x47307a
// > GJBaseGameLayer::sortStickyGroups @ 0x4730aa
// > GJBaseGameLayer::groupStickyObjects @ 0x4731d6
// > GJBaseGameLayer::assignNewStickyGroups @ 0x473242
// > GJBaseGameLayer::updateObjectSection @ 0x473c4c
// > GJBaseGameLayer::createNewKeyframeAnim @ 0x475d9c
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x475f4e
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x475fa4
// > GJBaseGameLayer::parentForZLayer @ 0x47c2ba
// > GJBaseGameLayer::triggerGradientCommand @ 0x47c99e
// > GJBaseGameLayer::restoreAllUIObjects @ 0x48235c
// > GJBaseGameLayer::generateTargetGroups @ 0x48d7dc
// > GJBaseGameLayer::generateTargetGroups @ 0x48d7f0
// > GJBaseGameLayer::generateTargetGroups @ 0x48d8e6
// > GJBaseGameLayer::generateTargetGroups @ 0x48d902
// > GJBaseGameLayer::generateTargetGroups @ 0x48d998
// > GJBaseGameLayer::generateTargetGroups @ 0x48d9b8
// > GJEffectManager::getColorSprite @ 0x499c96
// > GJEffectManager::setColorAction @ 0x499d5e
// > GJEffectManager::colorActionChanged @ 0x499e78
// > GJEffectManager::processInheritedColors @ 0x49a7f6
// > GJEffectManager::processInheritedColors @ 0x49a81e
// > GJOptionsLayer::addGVToggle @ 0x4b4630
// > ConfigureHSVWidget::createTextInputNode @ 0x4b6982
// > SecretLayer::init @ 0x4cb27a
// > SecretLayer::init @ 0x4cb290
// > SecretLayer::init @ 0x4cb2b6
// > SecretLayer::init @ 0x4cb2cc
// > SecretLayer::init @ 0x4cb2f2
// > SecretLayer::init @ 0x4cb308
// > SecretLayer::init @ 0x4cb32e
// > SecretLayer::init @ 0x4cb344
// > SecretLayer::init @ 0x4cb36a
// > SecretLayer::init @ 0x4cb380
// > SecretLayer::init @ 0x4cb3a6
// > SecretLayer::init @ 0x4cb3bc
// > SecretLayer::init @ 0x4cb3e2
// > SecretLayer::init @ 0x4cb3f8
// > SecretLayer::init @ 0x4cb41e
// > SecretLayer::init @ 0x4cb444
// > SecretLayer::init @ 0x4cb46a
// > SecretLayer::init @ 0x4cb490
// > SecretLayer::init @ 0x4cb86e
// > ChallengesPage::createChallengeNode @ 0x4cc7e6
// > GauntletSelectLayer::setupGauntlets @ 0x4d91e4
// > GJShopLayer::init @ 0x4e3c2c
// > SecretLayer2::init @ 0x4ee6ca
// > SecretLayer2::init @ 0x4ee700
// > SecretLayer2::init @ 0x4ee726
// > SecretLayer2::init @ 0x4ee74c
// > SecretLayer2::init @ 0x4ee772
// > SecretLayer2::init @ 0x4ee798
// > SecretLayer2::init @ 0x4ee7be
// > SecretLayer2::init @ 0x4ee7e4
// > SecretLayer4::init @ 0x4f1a76
// > SecretLayer4::init @ 0x4f1a9c
// > SecretLayer4::init @ 0x4f1ac2
// > SecretLayer4::init @ 0x4f1ae8
// > SecretLayer4::init @ 0x4f1b0c
// > SecretLayer4::init @ 0x4f1b30
// > SecretLayer4::init @ 0x4f1b54
// > ShardsPage::init @ 0x4fb72a
// > CommunityCreditsPage::init @ 0x507b94
// > CommunityCreditsPage::init @ 0x507d2a
// > SetGroupIDLayer::updateGroupIDButtons @ 0x50979e
// > SetGroupIDLayer::updateGroupIDButtons @ 0x5097ca
// > SetGroupIDLayer::updateGroupIDButtons @ 0x50981c
// > SetGroupIDLayer::updateGroupIDButtons @ 0x50987e
// > GJMultiplayerManager::addComment @ 0x50fff8
// > GJMultiplayerManager::onJoinLobbyCompleted @ 0x510282
// > GJMultiplayerManager::onJoinLobbyCompleted @ 0x5102a8
// > GameManager::addGameAnimation @ 0x52b306
// > GameManager::addGameAnimation @ 0x52b31c
// > GameManager::addGameAnimation @ 0x52b358
// > GameManager::addGameAnimation @ 0x52b398
// > GameManager::addGameAnimation @ 0x52b3b8
// > GameManager::addDuplicateLastFrame @ 0x52e344
// > CreateParticlePopup::createParticleSlider @ 0x5315b6
// > CreateParticlePopup::createParticleSlider @ 0x5315c0
// > CreateParticlePopup::createParticleSlider @ 0x531668
// > CreateParticlePopup::createParticleSlider @ 0x531672
// > SetupTriggerPopup::updateToggleItem @ 0x540f76
// > SetupTriggerPopup::createToggleValueControlAdvanced @ 0x5424cc
// > SetupTriggerPopup::createCustomToggleValueControl @ 0x5426e0
// > SetupTriggerPopup::updateValueControls @ 0x542c10
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x544a1e
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x544a60
// > SetupTriggerPopup::setMinSliderValue @ 0x544b90
// > SetupTriggerPopup::setMaxSliderValue @ 0x544bc0
// > SetupTriggerPopup::createValueControlAdvanced @ 0x544d90
// > SetupTriggerPopup::createValueControlAdvanced @ 0x544fd0
// > SetupTriggerPopup::createValueControlAdvanced @ 0x5450ea
// > SetupTriggerPopup::createValueControlAdvanced @ 0x5452b4
// > SetupTriggerPopup::toggleCustomEaseRateVisibility @ 0x545df4
// > SetupTriggerPopup::createCustomEasingControls @ 0x545e44
// > SetupTriggerPopup::createCustomEasingControls @ 0x545e58
// > SetupTriggerPopup::createCustomEasingControls @ 0x545e6e
// > SetupTriggerPopup::createCustomEasingControls @ 0x545f4a
// > SetupTriggerPopup::createCustomEasingControls @ 0x546040
// > SetupTriggerPopup::createCustomEasingControls @ 0x546106
// > SetupTriggerPopup::textChanged @ 0x548578
// > SetupTeleportPopup::onTeleportGravity @ 0x54b30a
// > SetupAreaMoveTriggerPopup::onSpecialTarget @ 0x558048
// > CharacterColorPage::createColorMenu @ 0x565250
// > GJActionManager::runInternalAction @ 0x565ee8
// > SetupKeyframePopup::onTimeMode @ 0x573b2c
// > SecretRewardsLayer::init @ 0x5869bc
// > cocos2d::extension::CCControl::dispatchListforControlEvent @ 0x5a0b22
// > cocos2d::extension::CCControlButton::setTitleLabelForState @ 0x5a14de
// > cocos2d::extension::CCControlButton::setBackgroundSpriteForState @ 0x5a1838
// > cocos2d::extension::CCControlButton::setTitleForState @ 0x5a19f0
// > cocos2d::extension::CCControlButton::setTitleColorForState @ 0x5a1e98
// > cocos2d::CCDictionary::copyWithZone @ 0x5c084e
// > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x5e0d14
// > cocos2d::CCTMXMapInfo::startElement @ 0x5f9490
// > cocos2d::CCTouchDispatcher::registerForcePrio @ 0x5fa6ca
//
// 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
//
void cocos2d::CCDictionary::setObject(cocos2d::CCDictionary *a1, cocos2d::CCObject *a2, intptr_t a3)
{
cocos2d::CCDictionary::CCDictType m_eDictType; // r3
cocos2d::CCDictElement *m_pElements; // r1
UT_hash_table *tbl; // r7
int v8; // r0
unsigned int v9; // r2
unsigned int v10; // r3
int v11; // r0
unsigned int v12; // r2
unsigned int v13; // r3
int v14; // r0
UT_hash_handle *hh_head; // r6
unsigned int keylen; // r3
cocos2d::CCObject *prev; // r0
int v18; // [sp+4h] [bp-4h] BYREF
m_eDictType = a1->m_eDictType;
v18 = a3;
if ( m_eDictType == kCCDictUnknown )
a1->m_eDictType = kCCDictInt;
m_pElements = a1->m_pElements;
if ( m_pElements )
{
tbl = m_pElements->hh.tbl;
v8 = ((unsigned __int8)v18 + 17973517 + (HIBYTE(v18) << 24) + (BYTE2(v18) << 16) + (BYTE1(v18) << 8)) ^ 0x7F76D;
v9 = (-1622558010 - v8) ^ (v8 << 8);
v10 = (-17973517 - v8 - v9) ^ (v9 >> 13);
v11 = (v8 - v9 - v10) ^ (v10 >> 12);
v12 = (v9 - v10 - v11) ^ (v11 << 16);
v13 = (v10 - v11 - v12) ^ (v12 >> 5);
v14 = (v11 - v12 - v13) ^ (v13 >> 3);
hh_head = tbl->buckets[((v13 - v14 - ((v12 - v13 - v14) ^ (v14 << 10)))
^ (((v12 - v13 - v14) ^ (v14 << 10)) >> 15))
& (tbl->num_buckets - 1)].hh_head;
if ( hh_head )
hh_head = (UT_hash_handle *)((char *)hh_head - tbl->hho);
while ( hh_head )
{
if ( hh_head[9].tbl == (UT_hash_table *)byte_4 && !memcmp((const void *)hh_head[8].hashv, &v18, 4u) )
{
prev = (cocos2d::CCObject *)hh_head[8].prev;
if ( prev != a2 )
{
cocos2d::CCObject::release(prev);
hh_head[8].prev = a2;
cocos2d::CCObject::retain(a2);
}
return;
}
keylen = hh_head[8].keylen;
if ( !keylen )
break;
hh_head = (UT_hash_handle *)(keylen - tbl->hho);
}
}
cocos2d::CCDictionary::setObjectUnSafe(a1, a2, v18);
}