{"type": "func", "start": 6442560240, "end": 6442560593, "name": "DS_Dictionary::getRectArrayForKey", "pseudocode": "// \n// DS_Dictionary::getRectArrayForKey from 0x18001aaf0 to 0x18001ac51 (353 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b8a7c\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:26 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall DS_Dictionary::getRectArrayForKey(__int64 a1, __int64 a2)\n{\n  int v4; // esi\n  __int64 v5; // r14\n  char *v6; // rbp\n  unsigned __int64 v7; // r15\n  __int64 v8; // rbx\n  cocos2d::CCRect *v9; // rax\n  cocos2d::CCRect *v10; // rcx\n  __int64 i; // rbx\n  char *v12; // rax\n  char v14[20]; // [rsp+34h] [rbp-54h] BYREF\n  void *Block; // [rsp+48h] [rbp-40h] BYREF\n  __int64 v16; // [rsp+50h] [rbp-38h]\n  __int64 v17; // [rsp+58h] [rbp-30h]\n\n  DS_Dictionary::getStringArrayForKey(a1, &Block);\n  *(_QWORD *)a2 = 0;\n  *(_QWORD *)(a2 + 8) = 0;\n  *(_QWORD *)(a2 + 16) = 0;\n  v4 = 0;\n  v5 = v16;\n  v6 = (char *)Block;\n  v7 = (v16 - (__int64)Block) >> 5;\n  if ( v7 )\n  {\n    v8 = 0;\n    while ( 1 )\n    {\n      v9 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14);\n      v10 = *(cocos2d::CCRect **)(a2 + 8);\n      if ( v10 == *(cocos2d::CCRect **)(a2 + 16) )\n      {\n        sub_180015F00((unsigned __int64 *)a2, *(const struct cocos2d::CCRect **)(a2 + 8), v9);\n      }\n      else\n      {\n        cocos2d::CCRect::CCRect(v10, v9);\n        *(_QWORD *)(a2 + 8) += 16LL;\n      }\n      if ( !(unsigned __int8)DS_Dictionary::rectFromString(a1, &v6[32 * v8], *(_QWORD *)(a2 + 8) - 16LL) )\n        break;\n      v8 = ++v4;\n      if ( v4 >= v7 )\n        goto LABEL_11;\n    }\n    if ( *(_QWORD *)a2 != *(_QWORD *)(a2 + 8) )\n      *(_QWORD *)(a2 + 8) = *(_QWORD *)a2;\n  }\nLABEL_11:\n  if ( v6 )\n  {\n    for ( i = (__int64)v6; i != v5; i += 32 )\n      sub_180005C70(i);\n    v12 = v6;\n    if ( ((v17 - (_QWORD)v6) & 0xFFFFFFFFFFFFFFE0uLL) >= 0x1000 )\n    {\n      v6 = *((char **)v6 - 1);\n      if ( (unsigned __int64)(v12 - v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v6);\n  }\n  return a2;\n}", "assembly": "; \n; DS_Dictionary::getRectArrayForKey from 0x18001aaf0 to 0x18001ac51 (353 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b8a7c\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:26 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18001aaf0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x18001aaf5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x18001aafa\nmov     [rsp+arg_8], rdx                                               ; +0xf, 0x18001aaff\npush    rdi                                                            ; +0x14, 0x18001ab04\npush    r12                                                            ; +0x15, 0x18001ab05\npush    r13                                                            ; +0x17, 0x18001ab07\npush    r14                                                            ; +0x19, 0x18001ab09\npush    r15                                                            ; +0x1b, 0x18001ab0b\nsub     rsp, 60h                                                       ; +0x1d, 0x18001ab0d\nmov     rdi, rdx                                                       ; +0x21, 0x18001ab11\nmov     r12, rcx                                                       ; +0x24, 0x18001ab14\nxor     r13d, r13d                                                     ; +0x27, 0x18001ab17\nmov     [rsp+88h+var_58], r13d                                         ; +0x2a, 0x18001ab1a\nlea     rdx, [rsp+88h+Block]                                           ; +0x2f, 0x18001ab1f\ncall    ?getStringArrayForKey@DS_Dictionary@@QEAA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@PEBD@Z; DS_Dictionary::getStringArrayForKey(char const *) ; +0x34, 0x18001ab24\nnop                                                                    ; +0x39, 0x18001ab29\nmov     [rdi], r13                                                     ; +0x3a, 0x18001ab2a\nmov     [rdi+8], r13                                                   ; +0x3d, 0x18001ab2d\nmov     [rdi+10h], r13                                                 ; +0x41, 0x18001ab31\nmov     [rsp+88h+var_58], 1                                            ; +0x45, 0x18001ab35\nmov     esi, r13d                                                      ; +0x4d, 0x18001ab3d\nmov     r14, [rsp+88h+var_38]                                          ; +0x50, 0x18001ab40\nmov     r15, r14                                                       ; +0x55, 0x18001ab45\nmov     rbp, [rsp+88h+Block]                                           ; +0x58, 0x18001ab48\nsub     r15, rbp                                                       ; +0x5d, 0x18001ab4d\nsar     r15, 5                                                         ; +0x60, 0x18001ab50\ntest    r15, r15                                                       ; +0x64, 0x18001ab54\njz      short loc_18001ABC6                                            ; +0x67, 0x18001ab57\nmov     ebx, r13d                                                      ; +0x69, 0x18001ab59\nnop     dword ptr [rax+00h]                                            ; +0x6c, 0x18001ab5c\nlea     rcx, [rsp+88h+var_54]; this                                    ; +0x70, 0x18001ab60\ncall    ??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void)      ; +0x75, 0x18001ab65\nmov     rcx, [rdi+8]; this                                             ; +0x7a, 0x18001ab6a\ncmp     rcx, [rdi+10h]                                                 ; +0x7e, 0x18001ab6e\njz      short loc_18001AB83                                            ; +0x82, 0x18001ab72\nmov     rdx, rax; struct cocos2d::CCRect *                             ; +0x84, 0x18001ab74\ncall    ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x87, 0x18001ab77\nadd     qword ptr [rdi+8], 10h                                         ; +0x8c, 0x18001ab7c\njmp     short loc_18001AB91                                            ; +0x91, 0x18001ab81\nmov     r8, rax                                                        ; +0x93, 0x18001ab83\nmov     rdx, rcx                                                       ; +0x96, 0x18001ab86\nmov     rcx, rdi                                                       ; +0x99, 0x18001ab89\ncall    sub_180015F00                                                  ; +0x9c, 0x18001ab8c\nmov     r8, [rdi+8]                                                    ; +0xa1, 0x18001ab91\nsub     r8, 10h                                                        ; +0xa5, 0x18001ab95\nshl     rbx, 5                                                         ; +0xa9, 0x18001ab99\nlea     rdx, [rbx+rbp]                                                 ; +0xad, 0x18001ab9d\nmov     rcx, r12                                                       ; +0xb1, 0x18001aba1\ncall    ?rectFromString@DS_Dictionary@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAVCCRect@cocos2d@@@Z; DS_Dictionary::rectFromString(std::string const &,cocos2d::CCRect &) ; +0xb4, 0x18001aba4\ntest    al, al                                                         ; +0xb9, 0x18001aba9\njz      short loc_18001ABB9                                            ; +0xbb, 0x18001abab\ninc     esi                                                            ; +0xbd, 0x18001abad\nmovsxd  rbx, esi                                                       ; +0xbf, 0x18001abaf\ncmp     rbx, r15                                                       ; +0xc2, 0x18001abb2\njb      short loc_18001AB60                                            ; +0xc5, 0x18001abb5\njmp     short loc_18001ABC6                                            ; +0xc7, 0x18001abb7\nmov     rax, [rdi]                                                     ; +0xc9, 0x18001abb9\ncmp     rax, [rdi+8]                                                   ; +0xcc, 0x18001abbc\njz      short loc_18001ABC6                                            ; +0xd0, 0x18001abc0\nmov     [rdi+8], rax                                                   ; +0xd2, 0x18001abc2\ntest    rbp, rbp                                                       ; +0xd6, 0x18001abc6\njz      short loc_18001AC2F                                            ; +0xd9, 0x18001abc9\nmov     rbx, rbp                                                       ; +0xdb, 0x18001abcb\ncmp     rbp, r14                                                       ; +0xde, 0x18001abce\njz      short loc_18001ABE4                                            ; +0xe1, 0x18001abd1\nmov     rcx, rbx                                                       ; +0xe3, 0x18001abd3\ncall    sub_180005C70                                                  ; +0xe6, 0x18001abd6\nadd     rbx, 20h ; ' '                                                 ; +0xeb, 0x18001abdb\ncmp     rbx, r14                                                       ; +0xef, 0x18001abdf\njnz     short loc_18001ABD3                                            ; +0xf2, 0x18001abe2\nmov     rdx, [rsp+88h+var_30]                                          ; +0xf4, 0x18001abe4\nsub     rdx, rbp                                                       ; +0xf9, 0x18001abe9\nand     rdx, 0FFFFFFFFFFFFFFE0h                                        ; +0xfc, 0x18001abec\nmov     rax, rbp                                                       ; +0x100, 0x18001abf0\ncmp     rdx, 1000h                                                     ; +0x103, 0x18001abf3\njb      short loc_18001AC27                                            ; +0x10a, 0x18001abfa\nadd     rdx, 27h ; '''                                                 ; +0x10c, 0x18001abfc\nmov     rbp, [rbp-8]                                                   ; +0x110, 0x18001ac00\nsub     rax, rbp                                                       ; +0x114, 0x18001ac04\nsub     rax, 8                                                         ; +0x117, 0x18001ac07\ncmp     rax, 1Fh                                                       ; +0x11b, 0x18001ac0b\njbe     short loc_18001AC27                                            ; +0x11f, 0x18001ac0f\nmov     [rsp+88h+Reserved], r13; Reserved                              ; +0x121, 0x18001ac11\nxor     r9d, r9d; LineNo                                               ; +0x126, 0x18001ac16\nxor     r8d, r8d; FileName                                             ; +0x129, 0x18001ac19\nxor     edx, edx; FunctionName                                         ; +0x12c, 0x18001ac1c\nxor     ecx, ecx; Expression                                           ; +0x12e, 0x18001ac1e\ncall    cs:_invoke_watson                                              ; +0x130, 0x18001ac20\ndb 0CCh                                                                ; +0x136, 0x18001ac26\nmov     rcx, rbp; Block                                                ; +0x137, 0x18001ac27\ncall    j_j_free_0                                                     ; +0x13a, 0x18001ac2a\nmov     rax, rdi                                                       ; +0x13f, 0x18001ac2f\nlea     r11, [rsp+88h+var_28]                                          ; +0x142, 0x18001ac32\nmov     rbx, [r11+30h]                                                 ; +0x147, 0x18001ac37\nmov     rbp, [r11+40h]                                                 ; +0x14b, 0x18001ac3b\nmov     rsi, [r11+48h]                                                 ; +0x14f, 0x18001ac3f\nmov     rsp, r11                                                       ; +0x153, 0x18001ac43\npop     r15                                                            ; +0x156, 0x18001ac46\npop     r14                                                            ; +0x158, 0x18001ac48\npop     r13                                                            ; +0x15a, 0x18001ac4a\npop     r12                                                            ; +0x15c, 0x18001ac4c\npop     rdi                                                            ; +0x15e, 0x18001ac4e\nretn                                                                   ; +0x15f, 0x18001ac4f\ndb 0CCh                                                                ; +0x160, 0x18001ac50", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b8a7c"], "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"}