//
// cocos2d::CCDictionary::setObject from 0xad08e8 to 0xad0ab4 (460 bytes)
//
// 161 xrefs:
// > TextArea::fadeInCharacters @ 0x592c3c
// > LevelTools::createStarPackDict @ 0x6061d4
// > LevelTools::sortChannelOrderObjects @ 0x606630
// > LevelTools::sortChannelOrderObjects @ 0x60671c
// > PlayerObject::storeCollision @ 0x622fb0
// > LevelEditorLayer::getTriggerGroup @ 0x660668
// > EditorUI::addObjectsToSmartTemplate @ 0x6b42f0
// > EditorUI::addObjectsToSmartTemplate @ 0x6b4638
// > EditorUI::alignObjects @ 0x6b5d68
// > EditorUI::selectObjects @ 0x6beb48
// > EditorUI::onDelete @ 0x6c0b78
// > EditorUI::createSmartObjectsFromTemplate @ 0x6c2354
// > GameLevelManager::storeUserName @ 0x6f0ff0
// > GameLevelManager::storeUserName @ 0x6f1010
// > GameLevelManager::getNextFreeTemplateID @ 0x6f42b0
// > GameLevelManager::storeUserInfo @ 0x6f6f00
// > GameLevelManager::storeFriendRequest @ 0x6f7110
// > GameLevelManager::storeUserMessage @ 0x6f7130
// > GameLevelManager::storeUserMessageReply @ 0x6f7158
// > GameLevelManager::getAllUsedSongIDs @ 0x70112c
// > GameLevelManager::getAllUsedSongIDs @ 0x701144
// > GameStatsManager::storeRewardState @ 0x7a6f0c
// > GameStatsManager::createSecretChestRewards @ 0x7a8a48
// > GameStatsManager::createSecretChestRewards @ 0x7a9ccc
// > GameStatsManager::createSecretChestRewards @ 0x7ab210
// > GameStatsManager::createSecretChestRewards @ 0x7abd8c
// > GameStatsManager::createSecretChestRewards @ 0x7ac550
// > GameStatsManager::createSecretChestRewards @ 0x7acb54
// > GameStatsManager::createSecretChestRewards @ 0x7ad260
// > GameStatsManager::addStoreItem @ 0x7b74fc
// > MoreOptionsLayer::addToggle @ 0x7ca1b0
// > MoreVideoOptionsLayer::addToggle @ 0x7cf534
// > ParentalOptionsLayer::addToggle @ 0x7d1bb0
// > MusicDownloadManager::storeMusicObject @ 0x82a6bc
// > MusicDownloadManager::storeSFXInfoObject @ 0x82ad1c
// > MusicDownloadManager::createArtistsInfo @ 0x830530
// > MusicDownloadManager::parseMusicLibrary @ 0x83918c
// > GJBaseGameLayer::getGroup @ 0x85d320
// > GJBaseGameLayer::getStaticGroup @ 0x85d67c
// > GJBaseGameLayer::getOptimizedGroup @ 0x85d700
// > GJBaseGameLayer::setGroupParent @ 0x860174
// > GJBaseGameLayer::setGroupParent @ 0x860224
// > GJBaseGameLayer::removeFromGroupParents @ 0x860378
// > GJBaseGameLayer::sortStickyGroups @ 0x8606b8
// > GJBaseGameLayer::sortStickyGroups @ 0x8606f8
// > GJBaseGameLayer::groupStickyObjects @ 0x8608b8
// > GJBaseGameLayer::assignNewStickyGroups @ 0x860a08
// > GJBaseGameLayer::updateObjectSection @ 0x861564
// > GJBaseGameLayer::createNewKeyframeAnim @ 0x864ef8
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x865194
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x865284
// > GJBaseGameLayer::triggerGradientCommand @ 0x86c500
// > GJBaseGameLayer::restoreAllUIObjects @ 0x878408
// > GJBaseGameLayer::generateTargetGroups @ 0x8883bc
// > GJBaseGameLayer::generateTargetGroups @ 0x8883ec
// > GJBaseGameLayer::generateTargetGroups @ 0x8884e8
// > GJBaseGameLayer::generateTargetGroups @ 0x888504
// > GJBaseGameLayer::generateTargetGroups @ 0x888718
// > GJBaseGameLayer::generateTargetGroups @ 0x888738
// > GJBaseGameLayer::parentForZLayer @ 0x8a0dc8
// > GJEffectManager::colorActionChanged @ 0x8a4310
// > GJEffectManager::getColorSprite @ 0x8bf578
// > GJEffectManager::setColorAction @ 0x8bfbb4
// > GJEffectManager::processInheritedColors @ 0x8c0ff8
// > GJEffectManager::processInheritedColors @ 0x8c10c4
// > GJOptionsLayer::addGVToggle @ 0x8db274
// > ConfigureHSVWidget::createTextInputNode @ 0x8e0a44
// > SecretLayer::init @ 0x905d64
// > SecretLayer::init @ 0x905d9c
// > SecretLayer::init @ 0x905dd4
// > SecretLayer::init @ 0x905e0c
// > SecretLayer::init @ 0x905e44
// > SecretLayer::init @ 0x905e7c
// > SecretLayer::init @ 0x905eb4
// > SecretLayer::init @ 0x906454
// > SecretLayer::init @ 0x9064a0
// > SecretLayer::init @ 0x9064c4
// > SecretLayer::init @ 0x9064e8
// > SecretLayer::init @ 0x90650c
// > SecretLayer::init @ 0x906530
// > SecretLayer::init @ 0x906554
// > SecretLayer::init @ 0x906578
// > SecretLayer::init @ 0x90659c
// > SecretLayer::init @ 0x9065c0
// > SecretLayer::init @ 0x9065e4
// > SecretLayer::init @ 0x906608
// > ChallengesPage::createChallengeNode @ 0x907db4
// > GauntletSelectLayer::setupGauntlets @ 0x91c178
// > GJShopLayer::init @ 0x92e9f8
// > SecretLayer2::init @ 0x942e24
// > SecretLayer2::init @ 0x942e48
// > SecretLayer2::init @ 0x942e6c
// > SecretLayer2::init @ 0x942e90
// > SecretLayer2::init @ 0x942eb4
// > SecretLayer2::init @ 0x942ed8
// > SecretLayer2::init @ 0x942f14
// > SecretLayer2::init @ 0x942f38
// > SecretLayer4::init @ 0x94b118
// > SecretLayer4::init @ 0x94b150
// > SecretLayer4::init @ 0x94b188
// > SecretLayer4::init @ 0x94b1c0
// > SecretLayer4::init @ 0x94b240
// > SecretLayer4::init @ 0x94b264
// > SecretLayer4::init @ 0x94b288
// > ShardsPage::init @ 0x95dcb8
// > CommunityCreditsPage::init @ 0x971cc0
// > CommunityCreditsPage::init @ 0x9721fc
// > SetGroupIDLayer::updateGroupIDButtons @ 0x976460
// > SetGroupIDLayer::updateGroupIDButtons @ 0x97649c
// > SetGroupIDLayer::updateGroupIDButtons @ 0x9767dc
// > SetGroupIDLayer::updateGroupIDButtons @ 0x97683c
// > GJMultiplayerManager::addComment @ 0x981e9c
// > GJMultiplayerManager::onJoinLobbyCompleted @ 0x9822dc
// > GJMultiplayerManager::onJoinLobbyCompleted @ 0x982388
// > GameManager::addGameAnimation @ 0x9b3c84
// > GameManager::addGameAnimation @ 0x9b3cd0
// > GameManager::addGameAnimation @ 0x9b3d18
// > GameManager::addGameAnimation @ 0x9b3d84
// > GameManager::addGameAnimation @ 0x9b3de8
// > GameManager::addGameAnimation @ 0x9b3dfc
// > GameManager::addDuplicateLastFrame @ 0x9be9b4
// > CreateParticlePopup::createParticleSlider @ 0x9c3aa8
// > CreateParticlePopup::createParticleSlider @ 0x9c3ab8
// > CreateParticlePopup::createParticleSlider @ 0x9c3bb0
// > CreateParticlePopup::createParticleSlider @ 0x9c3bc0
// > SetupTriggerPopup::updateToggleItem @ 0x9e3880
// > SetupTriggerPopup::createToggleValueControlAdvanced @ 0x9e6278
// > SetupTriggerPopup::createCustomToggleValueControl @ 0x9e6690
// > SetupTriggerPopup::updateValueControls @ 0x9e70b0
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x9e8668
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x9e86a8
// > SetupTriggerPopup::setMinSliderValue @ 0x9e89fc
// > SetupTriggerPopup::setMaxSliderValue @ 0x9e8aac
// > SetupTriggerPopup::createValueControlAdvanced @ 0x9e8d44
// > SetupTriggerPopup::createValueControlAdvanced @ 0x9e8fdc
// > SetupTriggerPopup::createValueControlAdvanced @ 0x9e9180
// > SetupTriggerPopup::createValueControlAdvanced @ 0x9e9618
// > SetupTriggerPopup::toggleCustomEaseRateVisibility @ 0x9eaa2c
// > SetupTriggerPopup::createCustomEasingControls @ 0x9eaaf4
// > SetupTriggerPopup::createCustomEasingControls @ 0x9eab3c
// > SetupTriggerPopup::createCustomEasingControls @ 0x9eab7c
// > SetupTriggerPopup::createCustomEasingControls @ 0x9eacc8
// > SetupTriggerPopup::createCustomEasingControls @ 0x9eae10
// > SetupTriggerPopup::createCustomEasingControls @ 0x9eaf34
// > SetupTriggerPopup::textChanged @ 0x9ed360
// > SetupTeleportPopup::onTeleportGravity @ 0x9f2b08
// > SetupAreaMoveTriggerPopup::onSpecialTarget @ 0xa09a44
// > CharacterColorPage::createColorMenu @ 0xa250d8
// > GJActionManager::runInternalAction @ 0xa26424
// > SetupKeyframePopup::onTimeMode @ 0xa3b2b8
// > SecretRewardsLayer::init @ 0xa639f8
// > cocos2d::extension::CCControl::dispatchListforControlEvent @ 0xa9993c
// > cocos2d::extension::CCControlButton::setTitleLabelForState @ 0xa9aca4
// > cocos2d::extension::CCControlButton::setBackgroundSpriteForState @ 0xa9aff8
// > cocos2d::extension::CCControlButton::setTitleForState @ 0xa9b38c
// > cocos2d::extension::CCControlButton::setTitleColorForState @ 0xa9b448
// > cocos2d::CCDictionary::copyWithZone @ 0xad0bec
// > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0xb0a520
// > cocos2d::CCTMXMapInfo::startElement @ 0xb3cb30
// > cocos2d::CCTouchDispatcher::registerForcePrio @ 0xb3e9b0
// > ??> @ 0x63108
//
// 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; // w0
cocos2d::CCDictElement *m_pElements; // x7
int v7; // w3
int v8; // w0
unsigned int v9; // w2
unsigned int v10; // w1
UT_hash_table *tbl; // x22
int v12; // w0
unsigned int v13; // w2
unsigned int v14; // w1
int v15; // w0
UT_hash_handle *hh_head; // x0
std::ptrdiff_t v17; // x19
__int64 v18; // x0
cocos2d::CCObject *v19; // x0
__int64 v20; // [xsp+48h] [xbp+48h] BYREF
m_eDictType = a1->m_eDictType;
v20 = a3;
if ( m_eDictType == kCCDictUnknown )
a1->m_eDictType = kCCDictInt;
m_pElements = a1->m_pElements;
if ( !m_pElements )
goto LABEL_10;
v7 = BYTE4(v20) - 1640531527 + (HIBYTE(v20) << 24) + (BYTE6(v20) << 16) + (BYTE5(v20) << 8);
v8 = ((unsigned __int8)v20 - 1622558014 + (BYTE3(v20) << 24) + (BYTE2(v20) << 16) + (BYTE1(v20) << 8) - v7) ^ 0x7F76D;
v9 = (v7 + 17973513 - v8) ^ (v8 << 8);
v10 = (-17973513 - v8 - v9) ^ (v9 >> 13);
tbl = m_pElements->hh.tbl;
v12 = (v8 - v9 - v10) ^ (v10 >> 12);
v13 = (v9 - v10 - v12) ^ (v12 << 16);
v14 = (v10 - v12 - v13) ^ (v13 >> 5);
v15 = (v12 - v13 - v14) ^ (v14 >> 3);
hh_head = tbl->buckets[((v14 - v15 - ((v13 - v14 - v15) ^ (v15 << 10)))
^ (((v13 - v14 - v15) ^ (v15 << 10)) >> 15))
& (tbl->num_buckets - 1)].hh_head;
v17 = hh_head ? (std::ptrdiff_t)hh_head - tbl->hho : 0LL;
if ( v17 )
{
while ( *(_DWORD *)(v17 + 320) != 8 || memcmp(*(const void **)(v17 + 312), &v20, 8u) )
{
v18 = *(_QWORD *)(v17 + 304);
if ( v18 )
{
v17 = v18 - tbl->hho;
if ( v17 )
continue;
}
goto LABEL_10;
}
v19 = *(cocos2d::CCObject **)(v17 + 264);
if ( v19 != a2 )
{
cocos2d::CCObject::release(v19);
*(_QWORD *)(v17 + 264) = a2;
cocos2d::CCObject::retain(a2);
}
}
else
{
LABEL_10:
cocos2d::CCDictionary::setObjectUnSafe(a1, a2, v20);
}
}