//
// cocos2d::CCDictionary::setObject_1 from 0x1004a5cf4 to 0x1004a5e78 (388 bytes)
//
// 174 xrefs:
// > sub_10000C170 @ 0x10000c1d4
// > GJEffectManager::getColorSprite @ 0x10000f660
// > sub_10000F854 @ 0x10000f92c
// > sub_10000F854 @ 0x10000f960
// > sub_10000FFA4 @ 0x10000ffd8
// > sub_100010074 @ 0x100010088
// > ChallengesPage::createChallengeNode @ 0x1000360e0
// > sub_10003976C @ 0x1000397d0
// > SetGroupIDLayer::updateGroupIDButtons @ 0x100041910
// > SetGroupIDLayer::updateGroupIDButtons @ 0x10004196c
// > SetGroupIDLayer::updateGroupIDButtons @ 0x100041a0c
// > SetGroupIDLayer::updateGroupIDButtons @ 0x100041a70
// > sub_100099D7C @ 0x100099efc
// > sub_10009AD1C @ 0x10009b030
// > sub_10009B1F0 @ 0x10009b494
// > sub_10009B79C @ 0x10009b864
// > GameLevelManager::storeUserName @ 0x1000a75f4
// > GameLevelManager::storeUserName @ 0x1000a7614
// > sub_1000B0A1C @ 0x1000b0a78
// > sub_1000BE9B0 @ 0x1000be9e4
// > sub_1000CDF34 @ 0x1000cdfa0
// > sub_1000CDF34 @ 0x1000ce000
// > MoreVideoOptionsLayer::addToggle @ 0x100115780
// > ParentalOptionsLayer::addMasterToggle @ 0x100116ddc
// > ParentalOptionsLayer::addToggle @ 0x100117388
// > sub_10011BAB0 @ 0x10011bcd8
// > sub_100124500 @ 0x100124700
// > PlayLayer::startMusic @ 0x100142788
// > CharacterColorPage::createColorMenu @ 0x100153534
// > EditorUI::alignObjectsOnAxis @ 0x10015f0ac
// > EditorUI::alignObjects @ 0x10015f508
// > EditorUI::createViewButton @ 0x100189198
// > EditorUI::selectObjects @ 0x1001a5ffc
// > SetupTriggerPopup::textChanged @ 0x1001ad93c
// > SetupTriggerPopup::triggerSliderChanged @ 0x1001ae964
// > sub_1001AEC2C @ 0x1001aec60
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x1001af160
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x1001af490
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x1001af600
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x1001af620
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x1001af648
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x1001af8b4
// > sub_1001AF9D4 @ 0x1001afa00
// > sub_1001AFA04 @ 0x1001afa30
// > SetupTriggerPopup::createToggleValueControlAdvanced @ 0x1001afec8
// > SetupTriggerPopup::createCustomToggleValueControl @ 0x1001b0114
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x1001b0890
// > SetupTriggerPopup::updateDefaultTriggerValues @ 0x1001b0980
// > SetupTriggerPopup::updateToggleItem @ 0x1001b15d8
// > sub_1001B17C0 @ 0x1001b17d4
// > SetupTriggerPopup::createCustomEasingControls @ 0x1001b27e4
// > SetupTriggerPopup::createCustomEasingControls @ 0x1001b2808
// > SetupTriggerPopup::createCustomEasingControls @ 0x1001b2824
// > SetupTriggerPopup::createCustomEasingControls @ 0x1001b2970
// > SetupTriggerPopup::createCustomEasingControls @ 0x1001b2abc
// > SetupTriggerPopup::createCustomEasingControls @ 0x1001b2bd0
// > sub_1001B3158 @ 0x1001b326c
// > GJShopLayer::init @ 0x1001c9fbc
// > cocos2d::CCTouchDispatcher::registerForcePrio @ 0x1001cd624
// > cocos2d::CCTouchDispatcher::registerForcePrio @ 0x1001cd664
// > sub_1001CD6DC @ 0x1001cd7e0
// > MusicDownloadManager::createArtistsInfo @ 0x1001d4288
// > MusicDownloadManager::getCustomSFXRoot @ 0x1001d638c
// > MusicDownloadManager::createCustomSFXFolder @ 0x1001d6a78
// > MusicDownloadManager::createCustomSFXPlacement @ 0x1001d6d20
// > MusicDownloadManager::parseMusicLibrary @ 0x1001dbf98
// > MusicDownloadManager::parseMusicLibrary @ 0x1001dc5d0
// > sub_1001DFB88 @ 0x1001dfba4
// > CommunityCreditsPage::init @ 0x100236870
// > CommunityCreditsPage::init @ 0x100236a08
// > cocos2d::extension::CCControl::dispatchListforControlEvent @ 0x10023ab88
// > sub_10023E224 @ 0x10023e414
// > sub_10023E558 @ 0x10023e5f4
// > sub_10023E558 @ 0x10023e65c
// > sub_10024A470 @ 0x10024a4ac
// > GauntletSelectLayer::setupGauntlets @ 0x100254f44
// > GJMultiplayerManager::onJoinLobbyCompleted @ 0x100266be0
// > GJMultiplayerManager::onJoinLobbyCompleted @ 0x100266c44
// > sub_100267408 @ 0x100267454
// > GJBaseGameLayer::sortStickyGroups @ 0x10027b280
// > GJBaseGameLayer::sortStickyGroups @ 0x10027b30c
// > GJBaseGameLayer::generateTargetGroups @ 0x10027b91c
// > GJBaseGameLayer::generateTargetGroups @ 0x10027b95c
// > GJBaseGameLayer::generateTargetGroups @ 0x10027ba94
// > GJBaseGameLayer::generateTargetGroups @ 0x10027bac8
// > GJBaseGameLayer::generateTargetGroups @ 0x10027bbf8
// > GJBaseGameLayer::generateTargetGroups @ 0x10027bc14
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x10027c678
// > GJBaseGameLayer::refreshKeyframeAnims @ 0x10027c728
// > GJBaseGameLayer::getGroup @ 0x10027cafc
// > GJBaseGameLayer::parentForZLayer @ 0x10027db5c
// > GJBaseGameLayer::triggerGradientCommand @ 0x10028b47c
// > GJBaseGameLayer::getOptimizedGroup @ 0x10028dff8
// > GJBaseGameLayer::getStaticGroup @ 0x10028e05c
// > GJBaseGameLayer::setGroupParent @ 0x10028e3d4
// > GJBaseGameLayer::setGroupParent @ 0x10028e40c
// > sub_10028E54C @ 0x10028e68c
// > sub_10028E6D8 @ 0x10028e82c
// > GJBaseGameLayer::groupStickyObjects @ 0x10028eec0
// > GJBaseGameLayer::assignNewStickyGroups @ 0x10028efec
// > GJBaseGameLayer::restoreAllUIObjects @ 0x10028f750
// > GJBaseGameLayer::updateObjectSection @ 0x10029055c
// > GJBaseGameLayer::createNewKeyframeAnim @ 0x100297538
// > sub_1002C141C @ 0x1002c1488
// > sub_1002C1490 @ 0x1002c14fc
// > sub_1002C1554 @ 0x1002c15b8
// > sub_1002C15D0 @ 0x1002c1634
// > sub_10036D4D8 @ 0x10036d874
// > sub_10036D4D8 @ 0x10036d884
// > sub_10036D4D8 @ 0x10036d988
// > sub_10036D4D8 @ 0x10036d998
// > GJOptionsLayer::addGVToggle @ 0x100371db8
// > cocos2d::CCEGLViewProtocol::handleTouchesBegin @ 0x100381f38
// > SecretRewardsLayer::init @ 0x100383f30
// > GJActionManager::runInternalAction @ 0x10039ae00
// > SecretLayer2::init @ 0x1003a657c
// > SecretLayer2::init @ 0x1003a65d0
// > SecretLayer2::init @ 0x1003a6610
// > SecretLayer2::init @ 0x1003a6650
// > SecretLayer2::init @ 0x1003a6690
// > SecretLayer2::init @ 0x1003a66d0
// > SecretLayer2::init @ 0x1003a6710
// > SecretLayer2::init @ 0x1003a6750
// > sub_1003C9BB4 @ 0x1003c9c30
// > GameStatsManager::storeRewardState @ 0x1003d1344
// > sub_1003D5318 @ 0x1003d6fbc
// > sub_1003D5318 @ 0x1003d8568
// > sub_1003D5318 @ 0x1003d9e84
// > sub_1003D5318 @ 0x1003dac5c
// > sub_1003D5318 @ 0x1003db5bc
// > sub_1003D5318 @ 0x1003dbd30
// > sub_1003D5318 @ 0x1003dc9d4
// > sub_1003ED918 @ 0x1003ed968
// > sub_1003ED918 @ 0x1003ed984
// > sub_1003ED918 @ 0x1003ed9e8
// > sub_1003ED918 @ 0x1003eda58
// > sub_1003ED918 @ 0x1003eda98
// > SecretLayer4::init @ 0x1003f3814
// > SecretLayer4::init @ 0x1003f3854
// > SecretLayer4::init @ 0x1003f3894
// > SecretLayer4::init @ 0x1003f38d4
// > SecretLayer4::init @ 0x1003f3914
// > SecretLayer4::init @ 0x1003f3954
// > SecretLayer4::init @ 0x1003f3994
// > sub_100403388 @ 0x1004033c8
// > ShardsPage::init @ 0x100448b2c
// > SecretLayer::init @ 0x100463ef4
// > SecretLayer::init @ 0x100463f20
// > SecretLayer::init @ 0x100463f60
// > SecretLayer::init @ 0x100463f8c
// > SecretLayer::init @ 0x100463fcc
// > SecretLayer::init @ 0x100463ff8
// > SecretLayer::init @ 0x100464038
// > SecretLayer::init @ 0x100464064
// > SecretLayer::init @ 0x1004640a4
// > SecretLayer::init @ 0x1004640d0
// > SecretLayer::init @ 0x100464110
// > SecretLayer::init @ 0x10046413c
// > SecretLayer::init @ 0x10046417c
// > SecretLayer::init @ 0x1004641a8
// > SecretLayer::init @ 0x1004641e8
// > SecretLayer::init @ 0x100464228
// > SecretLayer::init @ 0x100464268
// > SecretLayer::init @ 0x1004642a8
// > SecretLayer::init @ 0x1004642fc
// > EditorUI::onDelete @ 0x1004742d8
// > EditorUI::addObjectsToSmartTemplate @ 0x1004781ec
// > EditorUI::addObjectsToSmartTemplate @ 0x1004787f4
// > EditorUI::createSmartObjectsFromTemplate @ 0x100478f84
// > cocos2d::CCDictionary::copyWithZone @ 0x1004a680c
// > FindObjectPopup::onBuildWindowContent @ 0x1004dd750
// > sub_1004E6D68 @ 0x1004e71a0
// > sub_10053CB4C @ 0x10053cb8c
// > MoveStepPopup::textChanged @ 0x10053ccf8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:06:04 +0000
//
_DWORD *__fastcall cocos2d::CCDictionary::setObject_1(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // x8
int v5; // w10
unsigned int v6; // w9
unsigned int v7; // w11
int v8; // w10
unsigned int v9; // w9
unsigned int v10; // w11
int v11; // w10
__int64 v12; // x8
__int64 v13; // x9
__int64 v14; // x8
__int64 v15; // x20
_DWORD *result; // x0
if ( !*(_DWORD *)(a1 + 64) )
*(_DWORD *)(a1 + 64) = 2;
v4 = *(_QWORD *)(a1 + 56);
if ( !v4 )
return (_DWORD *)cocos2d::CCDictionary::setObjectUnSafe();
v5 = ((a3 & 0xFF000000) - (HIDWORD(a3) - 1640531527) + (a3 & 0xFFFF00) + (unsigned __int8)a3 - 1622558014) ^ 0x7F76D;
v6 = (HIDWORD(a3) - 1640531527 - v5 + 17973513) ^ (v5 << 8);
v7 = (-17973513 - 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 = *(_QWORD *)(v4 + 272);
v13 = *(_QWORD *)(*(_QWORD *)v12
+ 16LL
* (((v10 - v11 - ((v9 - v10 - v11) ^ (v11 << 10)))
^ (((v9 - v10 - v11) ^ (v11 << 10)) >> 15))
& (*(_DWORD *)(v12 + 8) - 1)));
if ( !v13 )
return (_DWORD *)cocos2d::CCDictionary::setObjectUnSafe();
v14 = -*(_QWORD *)(v12 + 32);
while ( 1 )
{
v15 = v13 + v14;
if ( *(_DWORD *)(v13 + v14 + 320) == 8 && **(_QWORD **)(v15 + 312) == a3 )
break;
v13 = *(_QWORD *)(v15 + 304);
if ( !v13 )
return (_DWORD *)cocos2d::CCDictionary::setObjectUnSafe();
}
result = *(_DWORD **)(v15 + 264);
if ( result != (_DWORD *)a2 )
{
cocos2d::CCObject::release(result);
*(_QWORD *)(v15 + 264) = a2;
return (_DWORD *)cocos2d::CCObject::retain(a2);
}
return result;
}