{"type": "func", "start": 6442575920, "end": 6442576407, "name": "DS_Dictionary::setArrayForKey", "pseudocode": "// \n// DS_Dictionary::setArrayForKey from 0x18001e830 to 0x18001ea17 (487 bytes)\n// \n// 5 xrefs:\n// > DS_Dictionary::setObjectForKey @ 0x18001f63b\n// > <???> @ 0x18013c4f0\n// > <???> @ 0x18013c524\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b8d28\n// \n// This function is hookable on this platform (idp: pc, 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:21:27 +0000\n// \n\nvoid __fastcall DS_Dictionary::setArrayForKey(DS_Dictionary *this, const char *a2, struct cocos2d::CCArray *a3)\n{\n  const char *v6; // rbx\n  const char *v7; // r8\n  __int64 v8; // rax\n  const char *v9; // r8\n  __int64 v10; // rax\n  const char *v11; // r8\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v13; // rdi\n  cocos2d::CCString *v14; // rax\n  const char *CString; // rax\n  _BYTE v16[16]; // [rsp+20h] [rbp-38h] BYREF\n  __int64 v17; // [rsp+70h] [rbp+18h] BYREF\n  __int64 v18; // [rsp+78h] [rbp+20h] BYREF\n\n  if ( a3 )\n  {\n    cocos2d::CCThread::CCThread((cocos2d::CCThread *)&v17);\n    v6 = \"k\";\n    v7 = \"k\";\n    if ( *((_BYTE *)this + 232) )\n      v7 = \"key\";\n    v17 = *(_QWORD *)sub_180082790(*((_QWORD *)this + 27) - 8LL, v16, v7);\n    v8 = sub_180082820(&v17, v16, 3);\n    sub_180088520(v8, a2);\n    v9 = \"d\";\n    if ( *((_BYTE *)this + 232) )\n      v9 = \"dict\";\n    sub_180083ED0(*((_QWORD *)this + 27) - 8LL, &v18, v9, &v17);\n    sub_18001C710((const void **)this + 26, &v18);\n    cocos2d::CCThread::CCThread((cocos2d::CCThread *)&v17);\n    if ( *((_BYTE *)this + 232) )\n      v6 = \"key\";\n    v17 = *(_QWORD *)sub_180082790(*((_QWORD *)this + 27) - 8LL, &v18, v6);\n    v10 = sub_180082820(&v17, &v18, 3);\n    sub_180088520(v10, \"_isArr\");\n    v11 = \"t\";\n    if ( *((_BYTE *)this + 232) )\n      v11 = \"true\";\n    sub_180083ED0(*((_QWORD *)this + 27) - 8LL, &v18, v11, &v17);\n    for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(a3); ++i )\n    {\n      v13 = cocos2d::CCArray::stringAtIndex(a3, i);\n      v14 = cocos2d::CCString::createWithFormat(\"k_%i\", i);\n      CString = cocos2d::CCString::getCString(v14);\n      DS_Dictionary::setObjectForKey(this, CString, v13);\n    }\n    if ( (unsigned __int64)((__int64)(*((_QWORD *)this + 27) - *((_QWORD *)this + 26)) >> 3) > 1 )\n      *((_QWORD *)this + 27) -= 8LL;\n  }\n}", "assembly": "; \n; DS_Dictionary::setArrayForKey from 0x18001e830 to 0x18001ea17 (487 bytes)\n; \n; 5 xrefs:\n; > DS_Dictionary::setObjectForKey @ 0x18001f63b\n; > <???> @ 0x18013c4f0\n; > <???> @ 0x18013c524\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b8d28\n; \n; This function is hookable on this platform (idp: pc, 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:21:27 +0000\n; \ntest    r8, r8                                                         ; +0x0, 0x18001e830\njz      locret_18001EA16                                               ; +0x3, 0x18001e833\npush    rbp                                                            ; +0x9, 0x18001e839\npush    rsi                                                            ; +0xa, 0x18001e83a\npush    rdi                                                            ; +0xb, 0x18001e83b\nsub     rsp, 40h                                                       ; +0xc, 0x18001e83c\nmov     rbp, rcx                                                       ; +0x10, 0x18001e840\nmov     [rsp+58h+arg_0], rbx                                           ; +0x13, 0x18001e843\nmov     [rsp+58h+var_20], r14                                          ; +0x18, 0x18001e848\nlea     rcx, [rsp+58h+arg_10]; this                                    ; +0x1d, 0x18001e84d\nmov     [rsp+58h+var_28], r15                                          ; +0x22, 0x18001e852\nmov     rsi, r8                                                        ; +0x27, 0x18001e857\nmov     rdi, rdx                                                       ; +0x2a, 0x18001e85a\ncall    ??0CCThread@cocos2d@@QEAA@XZ; cocos2d::CCThread::CCThread(void) ; +0x2d, 0x18001e85d\ncmp     byte ptr [rbp+0E8h], 0                                         ; +0x32, 0x18001e862\nlea     rbx, aK; \"k\"                                                   ; +0x39, 0x18001e869\nmov     rcx, [rbp+0D8h]                                                ; +0x40, 0x18001e870\nlea     r15, aKey; \"key\"                                               ; +0x47, 0x18001e877\nmov     r8, rbx                                                        ; +0x4e, 0x18001e87e\nlea     rdx, [rsp+58h+var_38]                                          ; +0x51, 0x18001e881\ncmovnz  r8, r15                                                        ; +0x56, 0x18001e886\nsub     rcx, 8                                                         ; +0x5a, 0x18001e88a\ncall    sub_180082790                                                  ; +0x5e, 0x18001e88e\nmov     r8d, 3                                                         ; +0x63, 0x18001e893\nlea     rdx, [rsp+58h+var_38]                                          ; +0x69, 0x18001e899\nmov     rcx, [rax]                                                     ; +0x6e, 0x18001e89e\nmov     [rsp+58h+arg_10], rcx                                          ; +0x71, 0x18001e8a1\nlea     rcx, [rsp+58h+arg_10]                                          ; +0x76, 0x18001e8a6\ncall    sub_180082820                                                  ; +0x7b, 0x18001e8ab\nmov     rcx, rax                                                       ; +0x80, 0x18001e8b0\nmov     rdx, rdi                                                       ; +0x83, 0x18001e8b3\ncall    sub_180088520                                                  ; +0x86, 0x18001e8b6\ncmp     byte ptr [rbp+0E8h], 0                                         ; +0x8b, 0x18001e8bb\nlea     rax, aDict_1; \"dict\"                                           ; +0x92, 0x18001e8c2\nmov     rcx, [rbp+0D8h]                                                ; +0x99, 0x18001e8c9\nlea     r8, aD; \"d\"                                                    ; +0xa0, 0x18001e8d0\ncmovnz  r8, rax                                                        ; +0xa7, 0x18001e8d7\nlea     r9, [rsp+58h+arg_10]                                           ; +0xab, 0x18001e8db\nsub     rcx, 8                                                         ; +0xb0, 0x18001e8e0\nlea     rdx, [rsp+58h+arg_18]                                          ; +0xb4, 0x18001e8e4\ncall    sub_180083ED0                                                  ; +0xb9, 0x18001e8e9\nlea     rdx, [rsp+58h+arg_18]                                          ; +0xbe, 0x18001e8ee\nlea     rcx, [rbp+0D0h]                                                ; +0xc3, 0x18001e8f3\ncall    sub_18001C710                                                  ; +0xca, 0x18001e8fa\nlea     rcx, [rsp+58h+arg_10]; this                                    ; +0xcf, 0x18001e8ff\ncall    ??0CCThread@cocos2d@@QEAA@XZ; cocos2d::CCThread::CCThread(void) ; +0xd4, 0x18001e904\ncmp     byte ptr [rbp+0E8h], 0                                         ; +0xd9, 0x18001e909\nlea     rdx, [rsp+58h+arg_18]                                          ; +0xe0, 0x18001e910\nmov     rcx, [rbp+0D8h]                                                ; +0xe5, 0x18001e915\ncmovnz  rbx, r15                                                       ; +0xec, 0x18001e91c\nsub     rcx, 8                                                         ; +0xf0, 0x18001e920\nmov     r8, rbx                                                        ; +0xf4, 0x18001e924\ncall    sub_180082790                                                  ; +0xf7, 0x18001e927\nmov     r8d, 3                                                         ; +0xfc, 0x18001e92c\nlea     rdx, [rsp+58h+arg_18]                                          ; +0x102, 0x18001e932\nmov     rcx, [rax]                                                     ; +0x107, 0x18001e937\nmov     [rsp+58h+arg_10], rcx                                          ; +0x10a, 0x18001e93a\nlea     rcx, [rsp+58h+arg_10]                                          ; +0x10f, 0x18001e93f\ncall    sub_180082820                                                  ; +0x114, 0x18001e944\nmov     rcx, rax                                                       ; +0x119, 0x18001e949\nlea     rdx, aIsarr; \"_isArr\"                                          ; +0x11c, 0x18001e94c\ncall    sub_180088520                                                  ; +0x123, 0x18001e953\ncmp     byte ptr [rbp+0E8h], 0                                         ; +0x128, 0x18001e958\nlea     rax, Str1; \"true\"                                              ; +0x12f, 0x18001e95f\nmov     rcx, [rbp+0D8h]                                                ; +0x136, 0x18001e966\nlea     r8, aT; \"t\"                                                    ; +0x13d, 0x18001e96d\ncmovnz  r8, rax                                                        ; +0x144, 0x18001e974\nlea     r9, [rsp+58h+arg_10]                                           ; +0x148, 0x18001e978\nsub     rcx, 8                                                         ; +0x14d, 0x18001e97d\nlea     rdx, [rsp+58h+arg_18]                                          ; +0x151, 0x18001e981\ncall    sub_180083ED0                                                  ; +0x156, 0x18001e986\nmov     rcx, rsi; this                                                 ; +0x15b, 0x18001e98b\nxor     ebx, ebx                                                       ; +0x15e, 0x18001e98e\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x160, 0x18001e990\nmov     r15, [rsp+58h+var_28]                                          ; +0x165, 0x18001e995\ntest    eax, eax                                                       ; +0x16a, 0x18001e99a\njz      short loc_18001E9DF                                            ; +0x16c, 0x18001e99c\nxchg    ax, ax                                                         ; +0x16e, 0x18001e99e\nmov     edx, ebx; unsigned int                                         ; +0x170, 0x18001e9a0\nmov     rcx, rsi; this                                                 ; +0x172, 0x18001e9a2\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x175, 0x18001e9a5\nmov     edx, ebx                                                       ; +0x17a, 0x18001e9aa\nlea     rcx, aKI; \"k_%i\"                                               ; +0x17c, 0x18001e9ac\nmov     rdi, rax                                                       ; +0x183, 0x18001e9b3\ncall    ?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x186, 0x18001e9b6\nmov     rcx, rax; this                                                 ; +0x18b, 0x18001e9bb\ncall    ?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x18e, 0x18001e9be\nmov     r8, rdi; struct cocos2d::CCObject *                            ; +0x193, 0x18001e9c3\nmov     rdx, rax; char *                                               ; +0x196, 0x18001e9c6\nmov     rcx, rbp; this                                                 ; +0x199, 0x18001e9c9\ncall    ?setObjectForKey@DS_Dictionary@@QEAAXPEBDPEAVCCObject@cocos2d@@@Z; DS_Dictionary::setObjectForKey(char const *,cocos2d::CCObject *) ; +0x19c, 0x18001e9cc\nmov     rcx, rsi; this                                                 ; +0x1a1, 0x18001e9d1\ninc     ebx                                                            ; +0x1a4, 0x18001e9d4\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1a6, 0x18001e9d6\ncmp     ebx, eax                                                       ; +0x1ab, 0x18001e9db\njb      short loc_18001E9A0                                            ; +0x1ad, 0x18001e9dd\nmov     rcx, [rbp+0D8h]                                                ; +0x1af, 0x18001e9df\nmov     r14, [rsp+58h+var_20]                                          ; +0x1b6, 0x18001e9e6\nmov     rax, rcx                                                       ; +0x1bb, 0x18001e9eb\nsub     rax, [rbp+0D0h]                                                ; +0x1be, 0x18001e9ee\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x1c5, 0x18001e9f5\nsar     rax, 3                                                         ; +0x1ca, 0x18001e9fa\ncmp     rax, 1                                                         ; +0x1ce, 0x18001e9fe\njbe     short loc_18001EA0F                                            ; +0x1d2, 0x18001ea02\nlea     rax, [rcx-8]                                                   ; +0x1d4, 0x18001ea04\nmov     [rbp+0D8h], rax                                                ; +0x1d8, 0x18001ea08\nadd     rsp, 40h                                                       ; +0x1df, 0x18001ea0f\npop     rdi                                                            ; +0x1e3, 0x18001ea13\npop     rsi                                                            ; +0x1e4, 0x18001ea14\npop     rbp                                                            ; +0x1e5, 0x18001ea15\nretn                                                                   ; +0x1e6, 0x18001ea16", "xrefs": ["DS_Dictionary::setObjectForKey @ 0x18001f63b", "<???> @ 0x18013c4f0", "<???> @ 0x18013c524", "<???> @ 0x18014cf68", "<???> @ 0x1801b8d28"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}