{"type": "func", "start": 4296533376, "end": 4296533690, "name": "DS_Dictionary::getRectArrayForKey", "pseudocode": "// \n// DS_Dictionary::getRectArrayForKey from 0x10017e580 to 0x10017e6ba (314 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nstd::vector<cocos2d::CCRect> *__fastcall DS_Dictionary::getRectArrayForKey(\n        std::vector<cocos2d::CCRect> *__return_ptr retstr,\n        DS_Dictionary *a2,\n        const char *a3)\n{\n  double v4; // xmm0_8\n  std::string *begin; // r15\n  __int64 v6; // r12\n  unsigned __int64 v7; // r13\n  cocos2d::CCRect *end; // r15\n  void *v9; // rdi\n  cocos2d::CCRect *v10; // r15\n  std::__vector_base<std::string>::pointer v11; // r14\n  std::__vector_base<std::string>::pointer v12; // rdi\n  _BYTE v14[16]; // [rsp+0h] [rbp-50h] BYREF\n  std::vector<std::string> __p; // [rsp+10h] [rbp-40h] BYREF\n\n  DS_Dictionary::getStringArrayForKey(&__p, a2, a3);\n  v4 = 0.0;\n  *(_OWORD *)&retstr->__begin_ = 0;\n  retstr->__end_cap_.__value_ = nullptr;\n  begin = __p.__begin_;\n  if ( __p.__end_ == __p.__begin_ )\n  {\nLABEL_8:\n    if ( !begin )\n      return retstr;\n    goto LABEL_11;\n  }\n  v6 = 0;\n  v7 = 0;\n  while ( 1 )\n  {\n    sub_10028D130(v14, a2);\n    end = retstr->__end_;\n    if ( end >= retstr->__end_cap_.__value_ )\n    {\n      v9 = retstr;\n      v10 = (cocos2d::CCRect *)sub_100183B90(retstr, v14);\n    }\n    else\n    {\n      v9 = retstr->__end_;\n      v4 = sub_10028D180(v9);\n      v10 = end + 1;\n    }\n    retstr->__end_ = v10;\n    a2 = (DS_Dictionary *)&__p.__begin_[v6];\n    if ( !(unsigned __int8)DS_Dictionary::rectFromString(v4, (__int64)v9, (__int64)&__p.__begin_[v6], (__int64)&v10[-1]) )\n      break;\n    ++v7;\n    begin = __p.__begin_;\n    ++v6;\n    if ( 0xAAAAAAAAAAAAAAABLL * (((char *)__p.__end_ - (char *)__p.__begin_) >> 3) <= v7 )\n      goto LABEL_8;\n  }\n  retstr->__end_ = retstr->__begin_;\n  begin = __p.__begin_;\n  if ( __p.__begin_ )\n  {\nLABEL_11:\n    v11 = __p.__end_;\n    v12 = begin;\n    if ( __p.__end_ != begin )\n    {\n      do\n      {\n        if ( (v11[-1].m_data.m_short.sizex2 & 1) != 0 )\n          operator delete(v11[-1].m_data.m_long.longStorage);\n        --v11;\n      }\n      while ( v11 != begin );\n      v12 = __p.__begin_;\n    }\n    __p.__end_ = begin;\n    operator delete(v12);\n  }\n  return retstr;\n}", "assembly": "; \n; DS_Dictionary::getRectArrayForKey from 0x10017e580 to 0x10017e6ba (314 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10017e580\nmov     rbp, rsp                                                       ; +0x1, 0x10017e581\npush    r15                                                            ; +0x4, 0x10017e584\npush    r14                                                            ; +0x6, 0x10017e586\npush    r13                                                            ; +0x8, 0x10017e588\npush    r12                                                            ; +0xa, 0x10017e58a\npush    rbx                                                            ; +0xc, 0x10017e58c\nsub     rsp, 28h                                                       ; +0xd, 0x10017e58d\nmov     rbx, rdi                                                       ; +0x11, 0x10017e591\nlea     rdi, [rbp+__p]                                                 ; +0x14, 0x10017e594\ncall    DS_Dictionary__getStringArrayForKey                            ; +0x18, 0x10017e598\nxorps   xmm0, xmm0                                                     ; +0x1d, 0x10017e59d\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x20, 0x10017e5a0\nmov     qword ptr [rbx+10h], 0                                         ; +0x23, 0x10017e5a3\nmov     r15, [rbp+__p]                                                 ; +0x2b, 0x10017e5ab\ncmp     [rbp+var_38], r15                                              ; +0x2f, 0x10017e5af\njz      loc_10017E656                                                  ; +0x33, 0x10017e5b3\nxor     r12d, r12d                                                     ; +0x39, 0x10017e5b9\nlea     r14, [rbp+var_50]                                              ; +0x3c, 0x10017e5bc\nxor     r13d, r13d                                                     ; +0x40, 0x10017e5c0\nnop     word ptr [rax+rax+00000000h]                                   ; +0x43, 0x10017e5c3\nmov     rdi, r14                                                       ; +0x50, 0x10017e5d0\ncall    sub_10028D130                                                  ; +0x53, 0x10017e5d3\nmov     r15, [rbx+8]                                                   ; +0x58, 0x10017e5d8\ncmp     r15, [rbx+10h]                                                 ; +0x5c, 0x10017e5dc\njnb     short loc_10017E600                                            ; +0x60, 0x10017e5e0\nmov     rdi, r15                                                       ; +0x62, 0x10017e5e2\nmov     rsi, r14                                                       ; +0x65, 0x10017e5e5\ncall    sub_10028D180                                                  ; +0x68, 0x10017e5e8\nadd     r15, 10h                                                       ; +0x6d, 0x10017e5ed\njmp     short loc_10017E60E                                            ; +0x71, 0x10017e5f1\nalign 20h                                                              ; +0x73, 0x10017e5f3\nmov     rdi, rbx                                                       ; +0x80, 0x10017e600\nmov     rsi, r14                                                       ; +0x83, 0x10017e603\ncall    sub_100183B90                                                  ; +0x86, 0x10017e606\nmov     r15, rax                                                       ; +0x8b, 0x10017e60b\nmov     [rbx+8], r15                                                   ; +0x8e, 0x10017e60e\nmov     rsi, [rbp+__p]                                                 ; +0x92, 0x10017e612\nadd     rsi, r12                                                       ; +0x96, 0x10017e616\nadd     r15, 0FFFFFFFFFFFFFFF0h                                        ; +0x99, 0x10017e619\nmov     rdx, r15                                                       ; +0x9d, 0x10017e61d\ncall    DS_Dictionary__rectFromString                                  ; +0xa0, 0x10017e620\ntest    al, al                                                         ; +0xa5, 0x10017e625\njz      short loc_10017E65D                                            ; +0xa7, 0x10017e627\ninc     r13                                                            ; +0xa9, 0x10017e629\nmov     r15, [rbp+__p]                                                 ; +0xac, 0x10017e62c\nmov     rax, [rbp+var_38]                                              ; +0xb0, 0x10017e630\nsub     rax, r15                                                       ; +0xb4, 0x10017e634\nsar     rax, 3                                                         ; +0xb7, 0x10017e637\nmov     rcx, 0AAAAAAAAAAAAAAABh                                        ; +0xbb, 0x10017e63b\nimul    rax, rcx                                                       ; +0xc5, 0x10017e645\nadd     r12, 18h                                                       ; +0xc9, 0x10017e649\ncmp     rax, r13                                                       ; +0xcd, 0x10017e64d\nja      loc_10017E5D0                                                  ; +0xd0, 0x10017e650\ntest    r15, r15                                                       ; +0xd6, 0x10017e656\njnz     short loc_10017E66D                                            ; +0xd9, 0x10017e659\njmp     short loc_10017E6A8                                            ; +0xdb, 0x10017e65b\nmov     rax, [rbx]                                                     ; +0xdd, 0x10017e65d\nmov     [rbx+8], rax                                                   ; +0xe0, 0x10017e660\nmov     r15, [rbp+__p]                                                 ; +0xe4, 0x10017e664\ntest    r15, r15                                                       ; +0xe8, 0x10017e668\njz      short loc_10017E6A8                                            ; +0xeb, 0x10017e66b\nmov     r14, [rbp+var_38]                                              ; +0xed, 0x10017e66d\nmov     rdi, r15                                                       ; +0xf1, 0x10017e671\ncmp     r14, r15                                                       ; +0xf4, 0x10017e674\njnz     short loc_10017E689                                            ; +0xf7, 0x10017e677\njmp     short loc_10017E69F                                            ; +0xf9, 0x10017e679\nalign 20h                                                              ; +0xfb, 0x10017e67b\nadd     r14, 0FFFFFFFFFFFFFFE8h                                        ; +0x100, 0x10017e680\ncmp     r14, r15                                                       ; +0x104, 0x10017e684\njz      short loc_10017E69B                                            ; +0x107, 0x10017e687\ntest    byte ptr [r14-18h], 1                                          ; +0x109, 0x10017e689\njz      short loc_10017E680                                            ; +0x10e, 0x10017e68e\nmov     rdi, [r14-8]; __p                                              ; +0x110, 0x10017e690\ncall    __ZdlPv; operator delete(void *)                               ; +0x114, 0x10017e694\njmp     short loc_10017E680                                            ; +0x119, 0x10017e699\nmov     rdi, [rbp+__p]; __p                                            ; +0x11b, 0x10017e69b\nmov     [rbp+var_38], r15                                              ; +0x11f, 0x10017e69f\ncall    __ZdlPv; operator delete(void *)                               ; +0x123, 0x10017e6a3\nmov     rax, rbx                                                       ; +0x128, 0x10017e6a8\nadd     rsp, 28h                                                       ; +0x12b, 0x10017e6ab\npop     rbx                                                            ; +0x12f, 0x10017e6af\npop     r12                                                            ; +0x130, 0x10017e6b0\npop     r13                                                            ; +0x132, 0x10017e6b2\npop     r14                                                            ; +0x134, 0x10017e6b4\npop     r15                                                            ; +0x136, 0x10017e6b6\npop     rbp                                                            ; +0x138, 0x10017e6b8\nretn                                                                   ; +0x139, 0x10017e6b9", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}