{"type": "func", "start": 4296979140, "end": 4296979352, "name": "DS_Dictionary::setArrayForKey", "pseudocode": "// \n// DS_Dictionary::setArrayForKey from 0x1001eb2c4 to 0x1001eb398 (212 bytes)\n// \n// 6 xrefs:\n// > GameLevelManager::encodeDataTo @ 0x1000b126c\n// > GameLevelManager::encodeDataTo @ 0x1000b1360\n// > DS_Dictionary::setObjectForKey @ 0x1001eb4bc\n// > LocalLevelManager::encodeDataTo @ 0x10025f048\n// > LocalLevelManager::encodeDataTo @ 0x10025f078\n// > GJRewardItem::encodeWithCoder @ 0x1003deb60\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 11:00:35 +0000\n// \n\n__int64 __fastcall DS_Dictionary::setArrayForKey(__int64 result, const char *a2, __int64 a3)\n{\n  __int64 v4; // x19\n  __int64 v5; // x21\n  void *v6; // x23\n  __int64 v7; // x0\n  int CString; // w0\n  __int64 v9; // x8\n\n  if ( a3 )\n  {\n    v4 = result;\n    DS_Dictionary::setSubDictForKey(result, a2, 0, 1);\n    DS_Dictionary::setBoolForKey(v4, \"_isArr\", 1, 0);\n    result = sub_1002E757C(a3);\n    if ( (_DWORD)result )\n    {\n      v5 = 0;\n      do\n      {\n        v6 = (void *)sub_1002E75A0(a3, v5);\n        v7 = sub_1003065B0(\"k_%i\", v5);\n        CString = cocos2d::CCString::getCString(v7);\n        DS_Dictionary::setObjectForKey(v4, CString, v6);\n        v5 = (unsigned int)(v5 + 1);\n        result = sub_1002E757C(a3);\n      }\n      while ( (unsigned int)v5 < (unsigned int)result );\n    }\n    v9 = *(_QWORD *)(v4 + 216);\n    if ( (unsigned __int64)(v9 - *(_QWORD *)(v4 + 208)) >= 9 )\n      *(_QWORD *)(v4 + 216) = v9 - 8;\n  }\n  return result;\n}", "assembly": "; \n; DS_Dictionary::setArrayForKey from 0x1001eb2c4 to 0x1001eb398 (212 bytes)\n; \n; 6 xrefs:\n; > GameLevelManager::encodeDataTo @ 0x1000b126c\n; > GameLevelManager::encodeDataTo @ 0x1000b1360\n; > DS_Dictionary::setObjectForKey @ 0x1001eb4bc\n; > LocalLevelManager::encodeDataTo @ 0x10025f048\n; > LocalLevelManager::encodeDataTo @ 0x10025f078\n; > GJRewardItem::encodeWithCoder @ 0x1003deb60\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 11:00:35 +0000\n; \nCBZ             X2, locret_1001EB394                                   ; +0x0, 0x1001eb2c4\nSUB             SP, SP, #0x50                                          ; +0x4, 0x1001eb2c8\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x8, 0x1001eb2cc\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0xc, 0x1001eb2d0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x10, 0x1001eb2d4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x14, 0x1001eb2d8\nADD             X29, SP, #0x40                                         ; +0x18, 0x1001eb2dc\nMOV             X20, X2                                                ; +0x1c, 0x1001eb2e0\nMOV             X19, X0                                                ; +0x20, 0x1001eb2e4\nMOV             W2, #0                                                 ; +0x24, 0x1001eb2e8\nMOV             W3, #1                                                 ; +0x28, 0x1001eb2ec\nBL              DS_Dictionary__setSubDictForKey                        ; +0x2c, 0x1001eb2f0\nADRL            X1, aIsarr; \"_isArr\"                                   ; +0x30, 0x1001eb2f4\nMOV             X0, X19                                                ; +0x38, 0x1001eb2fc\nMOV             W2, #1                                                 ; +0x3c, 0x1001eb300\nMOV             W3, #0                                                 ; +0x40, 0x1001eb304\nBL              DS_Dictionary__setBoolForKey                           ; +0x44, 0x1001eb308\nMOV             X0, X20                                                ; +0x48, 0x1001eb30c\nBL              sub_1002E757C                                          ; +0x4c, 0x1001eb310\nCBZ             W0, loc_1001EB368                                      ; +0x50, 0x1001eb314\nMOV             W21, #0                                                ; +0x54, 0x1001eb318\nADRL            X22, aKI; \"k_%i\"                                       ; +0x58, 0x1001eb31c\nMOV             X0, X20                                                ; +0x60, 0x1001eb324\nMOV             X1, X21                                                ; +0x64, 0x1001eb328\nBL              sub_1002E75A0                                          ; +0x68, 0x1001eb32c\nMOV             X23, X0                                                ; +0x6c, 0x1001eb330\nSTR             X21, [SP,#0x40+var_40]                                 ; +0x70, 0x1001eb334\nMOV             X0, X22                                                ; +0x74, 0x1001eb338\nBL              sub_1003065B0                                          ; +0x78, 0x1001eb33c\nBL              cocos2d__CCString__getCString                          ; +0x7c, 0x1001eb340\nMOV             X1, X0; int                                            ; +0x80, 0x1001eb344\nMOV             X0, X19; int                                           ; +0x84, 0x1001eb348\nMOV             X2, X23; lpsrc                                         ; +0x88, 0x1001eb34c\nBL              DS_Dictionary__setObjectForKey                         ; +0x8c, 0x1001eb350\nADD             W21, W21, #1                                           ; +0x90, 0x1001eb354\nMOV             X0, X20                                                ; +0x94, 0x1001eb358\nBL              sub_1002E757C                                          ; +0x98, 0x1001eb35c\nCMP             W21, W0                                                ; +0x9c, 0x1001eb360\nB.CC            loc_1001EB324                                          ; +0xa0, 0x1001eb364\nLDP             X9, X8, [X19,#0xD0]                                    ; +0xa4, 0x1001eb368\nSUB             X9, X8, X9                                             ; +0xa8, 0x1001eb36c\nCMP             X9, #9                                                 ; +0xac, 0x1001eb370\nB.CC            loc_1001EB380                                          ; +0xb0, 0x1001eb374\nSUB             X8, X8, #8                                             ; +0xb4, 0x1001eb378\nSTR             X8, [X19,#0xD8]                                        ; +0xb8, 0x1001eb37c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xbc, 0x1001eb380\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xc0, 0x1001eb384\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xc4, 0x1001eb388\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0xc8, 0x1001eb38c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xcc, 0x1001eb390\nRET                                                                    ; +0xd0, 0x1001eb394", "xrefs": ["GameLevelManager::encodeDataTo @ 0x1000b126c", "GameLevelManager::encodeDataTo @ 0x1000b1360", "DS_Dictionary::setObjectForKey @ 0x1001eb4bc", "LocalLevelManager::encodeDataTo @ 0x10025f048", "LocalLevelManager::encodeDataTo @ 0x10025f078", "GJRewardItem::encodeWithCoder @ 0x1003deb60"], "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"}