{"type": "func", "start": 4296399216, "end": 4296399530, "name": "DS_Dictionary::getRectArrayForKey", "pseudocode": "// \n// DS_Dictionary::getRectArrayForKey from 0x10015d970 to 0x10015daaa (314 bytes)\n// \n// 0 xrefs:\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 12:25:06 +0000\n// \n\n__int64 __fastcall DS_Dictionary::getRectArrayForKey(\n        __int64 a1,\n        __int64 a2,\n        const char *a3,\n        double a4,\n        double a5,\n        double a6,\n        double a7)\n{\n  void **v8; // r15\n  __int64 v9; // r12\n  unsigned __int64 v10; // r13\n  unsigned __int64 v11; // r15\n  __int64 v12; // rdi\n  __int64 v13; // r15\n  void **v14; // r14\n  void **v15; // rdi\n  _BYTE v17[16]; // [rsp+0h] [rbp-50h] BYREF\n  __int128 __p; // [rsp+10h] [rbp-40h] BYREF\n\n  DS_Dictionary::getStringArrayForKey(&__p, a2, a3, a4);\n  *(_OWORD *)a1 = 0;\n  *(_QWORD *)(a1 + 16) = 0;\n  v8 = (void **)__p;\n  if ( *((_QWORD *)&__p + 1) == (_QWORD)__p )\n  {\nLABEL_8:\n    if ( !v8 )\n      return a1;\n    goto LABEL_11;\n  }\n  v9 = 0;\n  v10 = 0;\n  while ( 1 )\n  {\n    sub_1002787A0(v17);\n    v11 = *(_QWORD *)(a1 + 8);\n    if ( v11 >= *(_QWORD *)(a1 + 16) )\n    {\n      v12 = a1;\n      v13 = sub_100162F80(a1, v17);\n    }\n    else\n    {\n      v12 = *(_QWORD *)(a1 + 8);\n      sub_1002787F0(v12, v17);\n      v13 = v11 + 16;\n    }\n    *(_QWORD *)(a1 + 8) = v13;\n    if ( !(unsigned __int8)DS_Dictionary::rectFromString(0.0, a5, a6, a7, v12, v9 + __p, v13 - 16) )\n      break;\n    ++v10;\n    v8 = (void **)__p;\n    v9 += 24;\n    if ( 0xAAAAAAAAAAAAAAABLL * ((__int64)(*((_QWORD *)&__p + 1) - __p) >> 3) <= v10 )\n      goto LABEL_8;\n  }\n  *(_QWORD *)(a1 + 8) = *(_QWORD *)a1;\n  v8 = (void **)__p;\n  if ( (_QWORD)__p )\n  {\nLABEL_11:\n    v14 = *((void ***)&__p + 1);\n    v15 = v8;\n    if ( *((void ***)&__p + 1) != v8 )\n    {\n      do\n      {\n        if ( (*(_BYTE *)(v14 - 3) & 1) != 0 )\n          operator delete(*(v14 - 1));\n        v14 -= 3;\n      }\n      while ( v14 != v8 );\n      v15 = (void **)__p;\n    }\n    *((_QWORD *)&__p + 1) = v8;\n    operator delete(v15);\n  }\n  return a1;\n}", "assembly": "; \n; DS_Dictionary::getRectArrayForKey from 0x10015d970 to 0x10015daaa (314 bytes)\n; \n; 0 xrefs:\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 12:25:06 +0000\n; \npush    rbp                                                            ; +0x0, 0x10015d970\nmov     rbp, rsp                                                       ; +0x1, 0x10015d971\npush    r15                                                            ; +0x4, 0x10015d974\npush    r14                                                            ; +0x6, 0x10015d976\npush    r13                                                            ; +0x8, 0x10015d978\npush    r12                                                            ; +0xa, 0x10015d97a\npush    rbx                                                            ; +0xc, 0x10015d97c\nsub     rsp, 28h                                                       ; +0xd, 0x10015d97d\nmov     rbx, rdi                                                       ; +0x11, 0x10015d981\nlea     rdi, [rbp+__p]                                                 ; +0x14, 0x10015d984\ncall    DS_Dictionary__getStringArrayForKey                            ; +0x18, 0x10015d988\nxorps   xmm0, xmm0                                                     ; +0x1d, 0x10015d98d\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x20, 0x10015d990\nmov     qword ptr [rbx+10h], 0                                         ; +0x23, 0x10015d993\nmov     r15, [rbp+__p]                                                 ; +0x2b, 0x10015d99b\ncmp     [rbp+var_38], r15                                              ; +0x2f, 0x10015d99f\njz      loc_10015DA46                                                  ; +0x33, 0x10015d9a3\nxor     r12d, r12d                                                     ; +0x39, 0x10015d9a9\nlea     r14, [rbp+var_50]                                              ; +0x3c, 0x10015d9ac\nxor     r13d, r13d                                                     ; +0x40, 0x10015d9b0\nnop     word ptr [rax+rax+00000000h]                                   ; +0x43, 0x10015d9b3\nmov     rdi, r14                                                       ; +0x50, 0x10015d9c0\ncall    sub_1002787A0                                                  ; +0x53, 0x10015d9c3\nmov     r15, [rbx+8]                                                   ; +0x58, 0x10015d9c8\ncmp     r15, [rbx+10h]                                                 ; +0x5c, 0x10015d9cc\njnb     short loc_10015D9F0                                            ; +0x60, 0x10015d9d0\nmov     rdi, r15                                                       ; +0x62, 0x10015d9d2\nmov     rsi, r14                                                       ; +0x65, 0x10015d9d5\ncall    sub_1002787F0                                                  ; +0x68, 0x10015d9d8\nadd     r15, 10h                                                       ; +0x6d, 0x10015d9dd\njmp     short loc_10015D9FE                                            ; +0x71, 0x10015d9e1\nalign 10h                                                              ; +0x73, 0x10015d9e3\nmov     rdi, rbx                                                       ; +0x80, 0x10015d9f0\nmov     rsi, r14                                                       ; +0x83, 0x10015d9f3\ncall    sub_100162F80                                                  ; +0x86, 0x10015d9f6\nmov     r15, rax                                                       ; +0x8b, 0x10015d9fb\nmov     [rbx+8], r15                                                   ; +0x8e, 0x10015d9fe\nmov     rsi, [rbp+__p]                                                 ; +0x92, 0x10015da02\nadd     rsi, r12                                                       ; +0x96, 0x10015da06\nadd     r15, 0FFFFFFFFFFFFFFF0h                                        ; +0x99, 0x10015da09\nmov     rdx, r15                                                       ; +0x9d, 0x10015da0d\ncall    DS_Dictionary__rectFromString                                  ; +0xa0, 0x10015da10\ntest    al, al                                                         ; +0xa5, 0x10015da15\njz      short loc_10015DA4D                                            ; +0xa7, 0x10015da17\ninc     r13                                                            ; +0xa9, 0x10015da19\nmov     r15, [rbp+__p]                                                 ; +0xac, 0x10015da1c\nmov     rax, [rbp+var_38]                                              ; +0xb0, 0x10015da20\nsub     rax, r15                                                       ; +0xb4, 0x10015da24\nsar     rax, 3                                                         ; +0xb7, 0x10015da27\nmov     rcx, 0AAAAAAAAAAAAAAABh                                        ; +0xbb, 0x10015da2b\nimul    rax, rcx                                                       ; +0xc5, 0x10015da35\nadd     r12, 18h                                                       ; +0xc9, 0x10015da39\ncmp     rax, r13                                                       ; +0xcd, 0x10015da3d\nja      loc_10015D9C0                                                  ; +0xd0, 0x10015da40\ntest    r15, r15                                                       ; +0xd6, 0x10015da46\njnz     short loc_10015DA5D                                            ; +0xd9, 0x10015da49\njmp     short loc_10015DA98                                            ; +0xdb, 0x10015da4b\nmov     rax, [rbx]                                                     ; +0xdd, 0x10015da4d\nmov     [rbx+8], rax                                                   ; +0xe0, 0x10015da50\nmov     r15, [rbp+__p]                                                 ; +0xe4, 0x10015da54\ntest    r15, r15                                                       ; +0xe8, 0x10015da58\njz      short loc_10015DA98                                            ; +0xeb, 0x10015da5b\nmov     r14, [rbp+var_38]                                              ; +0xed, 0x10015da5d\nmov     rdi, r15                                                       ; +0xf1, 0x10015da61\ncmp     r14, r15                                                       ; +0xf4, 0x10015da64\njnz     short loc_10015DA79                                            ; +0xf7, 0x10015da67\njmp     short loc_10015DA8F                                            ; +0xf9, 0x10015da69\nalign 10h                                                              ; +0xfb, 0x10015da6b\nadd     r14, 0FFFFFFFFFFFFFFE8h                                        ; +0x100, 0x10015da70\ncmp     r14, r15                                                       ; +0x104, 0x10015da74\njz      short loc_10015DA8B                                            ; +0x107, 0x10015da77\ntest    byte ptr [r14-18h], 1                                          ; +0x109, 0x10015da79\njz      short loc_10015DA70                                            ; +0x10e, 0x10015da7e\nmov     rdi, [r14-8]; __p                                              ; +0x110, 0x10015da80\ncall    __ZdlPv; operator delete(void *)                               ; +0x114, 0x10015da84\njmp     short loc_10015DA70                                            ; +0x119, 0x10015da89\nmov     rdi, [rbp+__p]; __p                                            ; +0x11b, 0x10015da8b\nmov     [rbp+var_38], r15                                              ; +0x11f, 0x10015da8f\ncall    __ZdlPv; operator delete(void *)                               ; +0x123, 0x10015da93\nmov     rax, rbx                                                       ; +0x128, 0x10015da98\nadd     rsp, 28h                                                       ; +0x12b, 0x10015da9b\npop     rbx                                                            ; +0x12f, 0x10015da9f\npop     r12                                                            ; +0x130, 0x10015daa0\npop     r13                                                            ; +0x132, 0x10015daa2\npop     r14                                                            ; +0x134, 0x10015daa4\npop     r15                                                            ; +0x136, 0x10015daa6\npop     rbp                                                            ; +0x138, 0x10015daa8\nretn                                                                   ; +0x139, 0x10015daa9", "xrefs": [], "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"}