{"type": "func", "start": 6442555936, "end": 6442556272, "name": "DS_Dictionary::getArrayForKey", "pseudocode": "// \n// DS_Dictionary::getArrayForKey from 0x180019a20 to 0x180019b70 (336 bytes)\n// \n// 4 xrefs:\n// > DS_Dictionary::getDictForKey @ 0x180019efc\n// > DS_Dictionary::getObjectForKey @ 0x18001a996\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b8a04\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:25 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCArray *__fastcall DS_Dictionary::getArrayForKey(DS_Dictionary *this, const char *a2, char a3)\n{\n  cocos2d::CCArray *v5; // rbp\n  signed int NumKeys; // esi\n  signed int i; // ebx\n  const char *v8; // rdx\n  struct cocos2d::CCObject *ObjectForKey; // rax\n  char *v10; // rcx\n  char *v11[3]; // [rsp+30h] [rbp-38h] BYREF\n  unsigned __int64 v12; // [rsp+48h] [rbp-20h]\n\n  if ( !a3 && !DS_Dictionary::stepIntoSubDictWithKey(this, a2) )\n    return cocos2d::CCArray::create();\n  v5 = cocos2d::CCArray::create();\n  DS_Dictionary::removeKey(this, \"_isArr\");\n  NumKeys = DS_Dictionary::getNumKeys(this);\n  for ( i = 0; i < NumKeys; ++i )\n  {\n    DS_Dictionary::getKey(this, v11, (unsigned int)i);\n    v8 = (const char *)v11;\n    if ( v12 > 0xF )\n      v8 = v11[0];\n    ObjectForKey = DS_Dictionary::getObjectForKey(this, v8);\n    if ( ObjectForKey )\n      cocos2d::CCArray::addObject(v5, ObjectForKey);\n    if ( v12 > 0xF )\n    {\n      v10 = v11[0];\n      if ( v12 + 1 >= 0x1000 )\n      {\n        v10 = *((char **)v11[0] - 1);\n        if ( (unsigned __int64)(v11[0] - v10 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free_0(v10);\n    }\n  }\n  if ( (unsigned __int64)((__int64)(*((_QWORD *)this + 27) - *((_QWORD *)this + 26)) >> 3) > 1 )\n    *((_QWORD *)this + 27) -= 8LL;\n  return v5;\n}", "assembly": "; \n; DS_Dictionary::getArrayForKey from 0x180019a20 to 0x180019b70 (336 bytes)\n; \n; 4 xrefs:\n; > DS_Dictionary::getDictForKey @ 0x180019efc\n; > DS_Dictionary::getObjectForKey @ 0x18001a996\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b8a04\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:25 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180019a20\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180019a25\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x180019a2a\npush    rdi                                                            ; +0xf, 0x180019a2f\nsub     rsp, 60h                                                       ; +0x10, 0x180019a30\nmov     rax, cs:__security_cookie                                      ; +0x14, 0x180019a34\nxor     rax, rsp                                                       ; +0x1b, 0x180019a3b\nmov     [rsp+68h+var_18], rax                                          ; +0x1e, 0x180019a3e\nmov     rdi, rcx                                                       ; +0x23, 0x180019a43\ntest    r8b, r8b                                                       ; +0x26, 0x180019a46\njnz     short loc_180019A5E                                            ; +0x29, 0x180019a49\ncall    ?stepIntoSubDictWithKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::stepIntoSubDictWithKey(char const *) ; +0x2b, 0x180019a4b\ntest    al, al                                                         ; +0x30, 0x180019a50\njnz     short loc_180019A5E                                            ; +0x32, 0x180019a52\ncall    ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x34, 0x180019a54\njmp     loc_180019B33                                                  ; +0x39, 0x180019a59\ncall    ?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x3e, 0x180019a5e\nmov     rbp, rax                                                       ; +0x43, 0x180019a63\nlea     rdx, aIsarr; \"_isArr\"                                          ; +0x46, 0x180019a66\nmov     rcx, rdi; this                                                 ; +0x4d, 0x180019a6d\ncall    ?removeKey@DS_Dictionary@@QEAAXPEBD@Z; DS_Dictionary::removeKey(char const *) ; +0x50, 0x180019a70\nmov     rcx, rdi; this                                                 ; +0x55, 0x180019a75\ncall    ?getNumKeys@DS_Dictionary@@QEAAIXZ; DS_Dictionary::getNumKeys(void) ; +0x58, 0x180019a78\nmov     esi, eax                                                       ; +0x5d, 0x180019a7d\nxor     ebx, ebx                                                       ; +0x5f, 0x180019a7f\ntest    eax, eax                                                       ; +0x61, 0x180019a81\njle     loc_180019B0A                                                  ; +0x63, 0x180019a83\nnop     dword ptr [rax+00000000h]                                      ; +0x69, 0x180019a89\nmov     r8d, ebx                                                       ; +0x70, 0x180019a90\nlea     rdx, [rsp+68h+var_38]                                          ; +0x73, 0x180019a93\nmov     rcx, rdi                                                       ; +0x78, 0x180019a98\ncall    ?getKey@DS_Dictionary@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@I@Z; DS_Dictionary::getKey(uint) ; +0x7b, 0x180019a9b\nnop                                                                    ; +0x80, 0x180019aa0\nlea     rdx, [rsp+68h+var_38]                                          ; +0x81, 0x180019aa1\ncmp     [rsp+68h+var_20], 0Fh                                          ; +0x86, 0x180019aa6\ncmova   rdx, [rsp+68h+var_38]; char *                                  ; +0x8c, 0x180019aac\nmov     rcx, rdi; this                                                 ; +0x92, 0x180019ab2\ncall    ?getObjectForKey@DS_Dictionary@@QEAAPEAVCCObject@cocos2d@@PEBD@Z; DS_Dictionary::getObjectForKey(char const *) ; +0x95, 0x180019ab5\ntest    rax, rax                                                       ; +0x9a, 0x180019aba\njz      short loc_180019ACB                                            ; +0x9d, 0x180019abd\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0x9f, 0x180019abf\nmov     rcx, rbp; this                                                 ; +0xa2, 0x180019ac2\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xa5, 0x180019ac5\nnop                                                                    ; +0xaa, 0x180019aca\nmov     rdx, [rsp+68h+var_20]                                          ; +0xab, 0x180019acb\ncmp     rdx, 0Fh                                                       ; +0xb0, 0x180019ad0\njbe     short loc_180019B04                                            ; +0xb4, 0x180019ad4\ninc     rdx                                                            ; +0xb6, 0x180019ad6\nmov     rcx, [rsp+68h+var_38]                                          ; +0xb9, 0x180019ad9\nmov     rax, rcx                                                       ; +0xbe, 0x180019ade\ncmp     rdx, 1000h                                                     ; +0xc1, 0x180019ae1\njb      short loc_180019AFF                                            ; +0xc8, 0x180019ae8\nadd     rdx, 27h ; '''                                                 ; +0xca, 0x180019aea\nmov     rcx, [rcx-8]; Block                                            ; +0xce, 0x180019aee\nsub     rax, rcx                                                       ; +0xd2, 0x180019af2\nsub     rax, 8                                                         ; +0xd5, 0x180019af5\ncmp     rax, 1Fh                                                       ; +0xd9, 0x180019af9\nja      short loc_180019B56                                            ; +0xdd, 0x180019afd\ncall    j_j_free_0                                                     ; +0xdf, 0x180019aff\ninc     ebx                                                            ; +0xe4, 0x180019b04\ncmp     ebx, esi                                                       ; +0xe6, 0x180019b06\njl      short loc_180019A90                                            ; +0xe8, 0x180019b08\nmov     rcx, [rdi+0D8h]                                                ; +0xea, 0x180019b0a\nmov     rax, rcx                                                       ; +0xf1, 0x180019b11\nsub     rax, [rdi+0D0h]                                                ; +0xf4, 0x180019b14\nsar     rax, 3                                                         ; +0xfb, 0x180019b1b\ncmp     rax, 1                                                         ; +0xff, 0x180019b1f\njbe     short loc_180019B30                                            ; +0x103, 0x180019b23\nlea     rax, [rcx-8]                                                   ; +0x105, 0x180019b25\nmov     [rdi+0D8h], rax                                                ; +0x109, 0x180019b29\nmov     rax, rbp                                                       ; +0x110, 0x180019b30\nmov     rcx, [rsp+68h+var_18]                                          ; +0x113, 0x180019b33\nxor     rcx, rsp; StackCookie                                          ; +0x118, 0x180019b38\ncall    __security_check_cookie                                        ; +0x11b, 0x180019b3b\nlea     r11, [rsp+68h+var_8]                                           ; +0x120, 0x180019b40\nmov     rbx, [r11+18h]                                                 ; +0x125, 0x180019b45\nmov     rbp, [r11+20h]                                                 ; +0x129, 0x180019b49\nmov     rsi, [r11+28h]                                                 ; +0x12d, 0x180019b4d\nmov     rsp, r11                                                       ; +0x131, 0x180019b51\npop     rdi                                                            ; +0x134, 0x180019b54\nretn                                                                   ; +0x135, 0x180019b55\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x136, 0x180019b56\nxor     r9d, r9d; LineNo                                               ; +0x13f, 0x180019b5f\nxor     r8d, r8d; FileName                                             ; +0x142, 0x180019b62\nxor     edx, edx; FunctionName                                         ; +0x145, 0x180019b65\nxor     ecx, ecx; Expression                                           ; +0x147, 0x180019b67\ncall    cs:_invoke_watson                                              ; +0x149, 0x180019b69\nalign 10h                                                              ; +0x14f, 0x180019b6f", "xrefs": ["DS_Dictionary::getDictForKey @ 0x180019efc", "DS_Dictionary::getObjectForKey @ 0x18001a996", "<???> @ 0x18014cf68", "<???> @ 0x1801b8a04"], "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"}