{"type": "func", "start": 4296418436, "end": 4296418648, "name": "DS_Dictionary::setArrayForKey", "pseudocode": "// \n// DS_Dictionary::setArrayForKey from 0x100162484 to 0x100162558 (212 bytes)\n// \n// 6 xrefs:\n// > GameLevelManager::encodeDataTo @ 0x10009aedc\n// > GameLevelManager::encodeDataTo @ 0x10009afd0\n// > DS_Dictionary::setObjectForKey @ 0x10016267c\n// > LocalLevelManager::encodeDataTo @ 0x1001c92c8\n// > LocalLevelManager::encodeDataTo @ 0x1001c92f8\n// > GJRewardItem::encodeWithCoder @ 0x100340264\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 __fastcall DS_Dictionary::setArrayForKey(DS_Dictionary *a1, const char *a2, cocos2d::CCArray *a3)\n{\n  __int64 v5; // x21\n  cocos2d::CCObject *v6; // x23\n  cocos2d::CCString *v7; // x0\n  const char *CString; // x0\n  std::__vector_base<pugi::xml_node>::pointer end; // x8\n\n  if ( a3 )\n  {\n    DS_Dictionary::setSubDictForKey(a1, a2, 0, 1);\n    DS_Dictionary::setBoolForKey(a1, \"_isArr\", 1, 0);\n    if ( (unsigned int)sub_10024A36C(a3) )\n    {\n      v5 = 0;\n      do\n      {\n        v6 = (cocos2d::CCObject *)sub_10024A388(a3, v5);\n        v7 = (cocos2d::CCString *)sub_100268F4C(\"k_%i\", v5);\n        CString = cocos2d::CCString::getCString(v7);\n        DS_Dictionary::setObjectForKey(a1, CString, v6);\n        v5 = (unsigned int)(v5 + 1);\n      }\n      while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(a3) );\n    }\n    end = a1->dictTree.__end_;\n    if ( (unsigned __int64)((char *)end - (char *)a1->dictTree.__begin_) >= 9 )\n      a1->dictTree.__end_ = end - 1;\n  }\n}", "assembly": "; \n; DS_Dictionary::setArrayForKey from 0x100162484 to 0x100162558 (212 bytes)\n; \n; 6 xrefs:\n; > GameLevelManager::encodeDataTo @ 0x10009aedc\n; > GameLevelManager::encodeDataTo @ 0x10009afd0\n; > DS_Dictionary::setObjectForKey @ 0x10016267c\n; > LocalLevelManager::encodeDataTo @ 0x1001c92c8\n; > LocalLevelManager::encodeDataTo @ 0x1001c92f8\n; > GJRewardItem::encodeWithCoder @ 0x100340264\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\nCBZ             X2, locret_100162554                                   ; +0x0, 0x100162484\nSUB             SP, SP, #0x50                                          ; +0x4, 0x100162488\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x8, 0x10016248c\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0xc, 0x100162490\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x10, 0x100162494\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x14, 0x100162498\nADD             X29, SP, #0x40                                         ; +0x18, 0x10016249c\nMOV             X20, X2                                                ; +0x1c, 0x1001624a0\nMOV             X19, X0                                                ; +0x20, 0x1001624a4\nMOV             W2, #0                                                 ; +0x24, 0x1001624a8\nMOV             W3, #1                                                 ; +0x28, 0x1001624ac\nBL              DS_Dictionary__setSubDictForKey                        ; +0x2c, 0x1001624b0\nADRL            X1, aIsarr; \"_isArr\"                                   ; +0x30, 0x1001624b4\nMOV             X0, X19                                                ; +0x38, 0x1001624bc\nMOV             W2, #1                                                 ; +0x3c, 0x1001624c0\nMOV             W3, #0                                                 ; +0x40, 0x1001624c4\nBL              DS_Dictionary__setBoolForKey                           ; +0x44, 0x1001624c8\nMOV             X0, X20                                                ; +0x48, 0x1001624cc\nBL              sub_10024A36C                                          ; +0x4c, 0x1001624d0\nCBZ             W0, loc_100162528                                      ; +0x50, 0x1001624d4\nMOV             W21, #0                                                ; +0x54, 0x1001624d8\nADRL            X22, aKI; \"k_%i\"                                       ; +0x58, 0x1001624dc\nMOV             X0, X20                                                ; +0x60, 0x1001624e4\nMOV             X1, X21                                                ; +0x64, 0x1001624e8\nBL              sub_10024A388                                          ; +0x68, 0x1001624ec\nMOV             X23, X0                                                ; +0x6c, 0x1001624f0\nSTR             X21, [SP,#0x40+var_40]                                 ; +0x70, 0x1001624f4\nMOV             X0, X22                                                ; +0x74, 0x1001624f8\nBL              sub_100268F4C                                          ; +0x78, 0x1001624fc\nBL              cocos2d__CCString__getCString                          ; +0x7c, 0x100162500\nMOV             X1, X0; int                                            ; +0x80, 0x100162504\nMOV             X0, X19; int                                           ; +0x84, 0x100162508\nMOV             X2, X23; lpsrc                                         ; +0x88, 0x10016250c\nBL              DS_Dictionary__setObjectForKey                         ; +0x8c, 0x100162510\nADD             W21, W21, #1                                           ; +0x90, 0x100162514\nMOV             X0, X20                                                ; +0x94, 0x100162518\nBL              sub_10024A36C                                          ; +0x98, 0x10016251c\nCMP             W21, W0                                                ; +0x9c, 0x100162520\nB.CC            loc_1001624E4                                          ; +0xa0, 0x100162524\nLDP             X9, X8, [X19,#0xD0]                                    ; +0xa4, 0x100162528\nSUB             X9, X8, X9                                             ; +0xa8, 0x10016252c\nCMP             X9, #9                                                 ; +0xac, 0x100162530\nB.CC            loc_100162540                                          ; +0xb0, 0x100162534\nSUB             X8, X8, #8                                             ; +0xb4, 0x100162538\nSTR             X8, [X19,#0xD8]                                        ; +0xb8, 0x10016253c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xbc, 0x100162540\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xc0, 0x100162544\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xc4, 0x100162548\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0xc8, 0x10016254c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xcc, 0x100162550\nRET                                                                    ; +0xd0, 0x100162554", "xrefs": ["GameLevelManager::encodeDataTo @ 0x10009aedc", "GameLevelManager::encodeDataTo @ 0x10009afd0", "DS_Dictionary::setObjectForKey @ 0x10016267c", "LocalLevelManager::encodeDataTo @ 0x1001c92c8", "LocalLevelManager::encodeDataTo @ 0x1001c92f8", "GJRewardItem::encodeWithCoder @ 0x100340264"], "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"}