{"type": "func", "start": 11822116, "end": 11822296, "name": "DS_Dictionary::setArrayForKey", "pseudocode": "// \n// DS_Dictionary::setArrayForKey from 0xb46424 to 0xb464d8 (180 bytes)\n// \n// 7 xrefs:\n// > GameLevelManager::encodeDataTo @ 0x708b88\n// > GameLevelManager::encodeDataTo @ 0x708c54\n// > GJRewardItem::encodeWithCoder @ 0x7a1114\n// > LocalLevelManager::encodeDataTo @ 0x7e84d0\n// > LocalLevelManager::encodeDataTo @ 0x7e8500\n// > DS_Dictionary::setObjectForKey @ 0xb46618\n// > <???> @ 0xa66f8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid DS_Dictionary::setArrayForKey(DS_Dictionary *a1, const char *a2, cocos2d::CCArray *a3)\n{\n  unsigned int v5; // w19\n  unsigned int v6; // w1\n  cocos2d::CCString *v7; // x0\n  const char *CString; // x0\n  cocos2d::CCObject *lpsrc; // [xsp+38h] [xbp+38h]\n\n  if ( a3 )\n  {\n    v5 = 0;\n    DS_Dictionary::setSubDictForKey(a1, a2, 0, 1u);\n    DS_Dictionary::setBoolForKey(a1, \"_isArr\", 1);\n    while ( v5 < (unsigned int)cocos2d::CCArray::count(a3) )\n    {\n      lpsrc = cocos2d::CCArray::objectAtIndex(a3, v5);\n      v6 = v5++;\n      v7 = cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"k_%i\", v6);\n      CString = cocos2d::CCString::getCString(v7);\n      DS_Dictionary::setObjectForKey(a1, CString, lpsrc);\n    }\n    DS_Dictionary::stepOutOfSubDict(a1);\n  }\n}", "assembly": "; \n; DS_Dictionary::setArrayForKey from 0xb46424 to 0xb464d8 (180 bytes)\n; \n; 7 xrefs:\n; > GameLevelManager::encodeDataTo @ 0x708b88\n; > GameLevelManager::encodeDataTo @ 0x708c54\n; > GJRewardItem::encodeWithCoder @ 0x7a1114\n; > LocalLevelManager::encodeDataTo @ 0x7e84d0\n; > LocalLevelManager::encodeDataTo @ 0x7e8500\n; > DS_Dictionary::setObjectForKey @ 0xb46618\n; > <???> @ 0xa66f8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xb46424\nMOV             X29, SP                                                ; +0x4, 0xb46428\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0xb4642c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0xb46430\nMOV             X21, X0                                                ; +0x10, 0xb46434\nCBZ             X2, loc_B464C8                                         ; +0x14, 0xb46438\nMOV             W3, #1; bool                                           ; +0x18, 0xb4643c\nMOV             X20, X2                                                ; +0x1c, 0xb46440\nMOV             W2, #0; bool                                           ; +0x20, 0xb46444\nADRP            X22, #aKI@PAGE; \"k_%i\"                                 ; +0x24, 0xb46448\nMOV             W19, #0                                                ; +0x28, 0xb4644c\nADD             X22, X22, #aKI@PAGEOFF; \"k_%i\"                         ; +0x2c, 0xb46450\nBL              _ZN13DS_Dictionary16setSubDictForKeyEPKcbb; DS_Dictionary::setSubDictForKey(char const*,bool,bool) ; +0x30, 0xb46454\nADRP            X1, #aIsarr@PAGE; \"_isArr\"                             ; +0x34, 0xb46458\nMOV             X0, X21; this                                          ; +0x38, 0xb4645c\nADD             X1, X1, #aIsarr@PAGEOFF; \"_isArr\"                      ; +0x3c, 0xb46460\nMOV             W2, #1; bool                                           ; +0x40, 0xb46464\nBL              _ZN13DS_Dictionary13setBoolForKeyEPKcb; DS_Dictionary::setBoolForKey(char const*,bool) ; +0x44, 0xb46468\nB               loc_B4649C                                             ; +0x48, 0xb4646c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c, 0xb46470\nSTR             X0, [X29,#0x40+lpsrc]                                  ; +0x50, 0xb46474\nMOV             W1, W19; char *                                        ; +0x54, 0xb46478\nMOV             X0, X22; this                                          ; +0x58, 0xb4647c\nADD             W19, W19, #1                                           ; +0x5c, 0xb46480\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x60, 0xb46484\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x64, 0xb46488\nMOV             X1, X0; char *                                         ; +0x68, 0xb4648c\nLDR             X2, [X29,#0x40+lpsrc]; lpsrc                           ; +0x6c, 0xb46490\nMOV             X0, X21; this                                          ; +0x70, 0xb46494\nBL              _ZN13DS_Dictionary15setObjectForKeyEPKcPN7cocos2d8CCObjectE; DS_Dictionary::setObjectForKey(char const*,cocos2d::CCObject *) ; +0x74, 0xb46498\nMOV             X0, X20; this                                          ; +0x78, 0xb4649c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x7c, 0xb464a0\nCMP             W19, W0                                                ; +0x80, 0xb464a4\nMOV             W1, W19; unsigned int                                  ; +0x84, 0xb464a8\nMOV             X0, X20; this                                          ; +0x88, 0xb464ac\nB.CC            loc_B46470                                             ; +0x8c, 0xb464b0\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x90, 0xb464b4\nMOV             X0, X21; this                                          ; +0x94, 0xb464b8\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x98, 0xb464bc\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x9c, 0xb464c0\nB               _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0xa0, 0xb464c4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xa4, 0xb464c8\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xa8, 0xb464cc\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xac, 0xb464d0\nRET                                                                    ; +0xb0, 0xb464d4", "xrefs": ["GameLevelManager::encodeDataTo @ 0x708b88", "GameLevelManager::encodeDataTo @ 0x708c54", "GJRewardItem::encodeWithCoder @ 0x7a1114", "LocalLevelManager::encodeDataTo @ 0x7e84d0", "LocalLevelManager::encodeDataTo @ 0x7e8500", "DS_Dictionary::setObjectForKey @ 0xb46618", "<???> @ 0xa66f8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}