{"type": "func", "start": 14398624, "end": 14398804, "name": "DS_Dictionary::setArrayForKey", "pseudocode": "// \n// DS_Dictionary::setArrayForKey from 0xdbb4a0 to 0xdbb554 (180 bytes)\n// \n// 7 xrefs:\n// > GameLevelManager::encodeDataTo @ 0x808ce0\n// > GameLevelManager::encodeDataTo @ 0x808dac\n// > GJRewardItem::encodeWithCoder @ 0x8c963c\n// > LocalLevelManager::encodeDataTo @ 0x910668\n// > LocalLevelManager::encodeDataTo @ 0x910698\n// > DS_Dictionary::setObjectForKey @ 0xdbb698\n// > <???> @ 0xda938\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:08:44 +0000\n// \n\nDS_Dictionary *__fastcall DS_Dictionary::setArrayForKey(DS_Dictionary *this, const char *a2, cocos2d::CCArray *a3)\n{\n  DS_Dictionary *v3; // x21\n  unsigned int v5; // w19\n  unsigned int v6; // w1\n  cocos2d::CCObject *v7; // x0\n  char *CString; // x0\n  cocos2d::CCObject *lpsrc; // [xsp+38h] [xbp+38h]\n\n  v3 = this;\n  if ( a3 )\n  {\n    v5 = 0;\n    DS_Dictionary::setSubDictForKey(this, a2, 0, 1u);\n    DS_Dictionary::setBoolForKey(v3, \"_isArr\", 1);\n    while ( v5 < (unsigned int)cocos2d::CCArray::count(a3) )\n    {\n      lpsrc = (cocos2d::CCObject *)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(v3, CString, lpsrc);\n    }\n    return (DS_Dictionary *)DS_Dictionary::stepOutOfSubDict((__int64)v3);\n  }\n  return this;\n}", "assembly": "; \n; DS_Dictionary::setArrayForKey from 0xdbb4a0 to 0xdbb554 (180 bytes)\n; \n; 7 xrefs:\n; > GameLevelManager::encodeDataTo @ 0x808ce0\n; > GameLevelManager::encodeDataTo @ 0x808dac\n; > GJRewardItem::encodeWithCoder @ 0x8c963c\n; > LocalLevelManager::encodeDataTo @ 0x910668\n; > LocalLevelManager::encodeDataTo @ 0x910698\n; > DS_Dictionary::setObjectForKey @ 0xdbb698\n; > <???> @ 0xda938\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:08:44 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xdbb4a0\nMOV             X29, SP                                                ; +0x4, 0xdbb4a4\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0xdbb4a8\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0xdbb4ac\nMOV             X21, X0                                                ; +0x10, 0xdbb4b0\nCBZ             X2, loc_DBB544                                         ; +0x14, 0xdbb4b4\nMOV             W3, #1; bool                                           ; +0x18, 0xdbb4b8\nMOV             X20, X2                                                ; +0x1c, 0xdbb4bc\nMOV             W2, #0; bool                                           ; +0x20, 0xdbb4c0\nADRP            X22, #aKI@PAGE; \"k_%i\"                                 ; +0x24, 0xdbb4c4\nMOV             W19, #0                                                ; +0x28, 0xdbb4c8\nADD             X22, X22, #aKI@PAGEOFF; \"k_%i\"                         ; +0x2c, 0xdbb4cc\nBL              _ZN13DS_Dictionary16setSubDictForKeyEPKcbb; DS_Dictionary::setSubDictForKey(char const*,bool,bool) ; +0x30, 0xdbb4d0\nADRP            X1, #aIsarr@PAGE; \"_isArr\"                             ; +0x34, 0xdbb4d4\nMOV             X0, X21; this                                          ; +0x38, 0xdbb4d8\nADD             X1, X1, #aIsarr@PAGEOFF; \"_isArr\"                      ; +0x3c, 0xdbb4dc\nMOV             W2, #1; bool                                           ; +0x40, 0xdbb4e0\nBL              _ZN13DS_Dictionary13setBoolForKeyEPKcb; DS_Dictionary::setBoolForKey(char const*,bool) ; +0x44, 0xdbb4e4\nB               loc_DBB518                                             ; +0x48, 0xdbb4e8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c, 0xdbb4ec\nSTR             X0, [X29,#0x40+lpsrc]                                  ; +0x50, 0xdbb4f0\nMOV             W1, W19; char *                                        ; +0x54, 0xdbb4f4\nMOV             X0, X22; this                                          ; +0x58, 0xdbb4f8\nADD             W19, W19, #1                                           ; +0x5c, 0xdbb4fc\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x60, 0xdbb500\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x64, 0xdbb504\nMOV             X1, X0; char *                                         ; +0x68, 0xdbb508\nLDR             X2, [X29,#0x40+lpsrc]; lpsrc                           ; +0x6c, 0xdbb50c\nMOV             X0, X21; this                                          ; +0x70, 0xdbb510\nBL              _ZN13DS_Dictionary15setObjectForKeyEPKcPN7cocos2d8CCObjectE; DS_Dictionary::setObjectForKey(char const*,cocos2d::CCObject *) ; +0x74, 0xdbb514\nMOV             X0, X20; this                                          ; +0x78, 0xdbb518\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x7c, 0xdbb51c\nCMP             W19, W0                                                ; +0x80, 0xdbb520\nMOV             W1, W19; unsigned int                                  ; +0x84, 0xdbb524\nMOV             X0, X20; this                                          ; +0x88, 0xdbb528\nB.CC            loc_DBB4EC                                             ; +0x8c, 0xdbb52c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x90, 0xdbb530\nMOV             X0, X21; this                                          ; +0x94, 0xdbb534\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x98, 0xdbb538\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x9c, 0xdbb53c\nB               _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0xa0, 0xdbb540\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xa4, 0xdbb544\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xa8, 0xdbb548\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xac, 0xdbb54c\nRET                                                                    ; +0xb0, 0xdbb550", "xrefs": ["GameLevelManager::encodeDataTo @ 0x808ce0", "GameLevelManager::encodeDataTo @ 0x808dac", "GJRewardItem::encodeWithCoder @ 0x8c963c", "LocalLevelManager::encodeDataTo @ 0x910668", "LocalLevelManager::encodeDataTo @ 0x910698", "DS_Dictionary::setObjectForKey @ 0xdbb698", "<???> @ 0xda938"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}