{"type": "func", "start": 6442563696, "end": 6442564041, "name": "DS_Dictionary::getVec2ForKey", "pseudocode": "// \n// DS_Dictionary::getVec2ForKey from 0x18001b870 to 0x18001b9c9 (345 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801aea70\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\ncocos2d *__fastcall DS_Dictionary::getVec2ForKey(DS_Dictionary *this, cocos2d *a2, __int64 a3)\n{\n  const char *v6; // r8\n  unsigned __int8 *v7; // rax\n  __int64 v8; // r8\n  int v9; // ecx\n  int v10; // edx\n  const char *v11; // r8\n  __int64 v12; // rbx\n  __int64 v13; // rax\n  const char *v14; // r8\n  __int64 v16; // rax\n  const char *v17; // rax\n  __int64 v18; // [rsp+20h] [rbp-48h] BYREF\n  _BYTE v19[8]; // [rsp+28h] [rbp-40h] BYREF\n  cocos2d::CCSize v20; // [rsp+30h] [rbp-38h] BYREF\n  _BYTE v21[48]; // [rsp+38h] [rbp-30h] BYREF\n\n  v6 = \"k\";\n  if ( this->compatible )\n    v6 = \"key\";\n  sub_18007FB10(&this->dictTree._Mypair._Myval2._Mylast[-1], &v18, v6);\n  if ( sub_18007F4E0(&v18) )\n  {\n    while ( 1 )\n    {\n      v7 = (unsigned __int8 *)sub_18007FB70(&v18);\n      v8 = a3 - (_QWORD)v7;\n      do\n      {\n        v9 = v7[v8];\n        v10 = *v7 - v9;\n        if ( v10 )\n          break;\n        ++v7;\n      }\n      while ( v9 );\n      if ( !v10 )\n      {\n        v11 = \"s\";\n        if ( this->compatible )\n          v11 = \"string\";\n        v12 = sub_180081A50(&v18, v21, v11);\n        v13 = sub_180081AB0(&v18, v19);\n        if ( (unsigned __int8)std::operator==<_EXCEPTION_RECORD const,_EXCEPTION_RECORD const>(v13, v12) )\n          break;\n      }\n      v14 = \"k\";\n      if ( this->compatible )\n        v14 = \"key\";\n      v18 = *(_QWORD *)sub_180081A50(&v18, &v20, v14);\n      if ( !sub_18007F4E0(&v18) )\n        goto LABEL_14;\n    }\n    cocos2d::CCSize::CCSize(&v20);\n    v16 = sub_180081AB0(&v18, v19);\n    v17 = (const char *)sub_18007FB70(v16);\n    cocos2d::CCPointFromString(a2, v17);\n  }\n  else\n  {\nLABEL_14:\n    cocos2d::cc_timeval::operator=(a2, dword_1801A8348);\n  }\n  return a2;\n}", "assembly": "; \n; DS_Dictionary::getVec2ForKey from 0x18001b870 to 0x18001b9c9 (345 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801aea70\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x18001b870\npush    rbp                                                            ; +0x5, 0x18001b875\npush    rsi                                                            ; +0x6, 0x18001b876\npush    rdi                                                            ; +0x7, 0x18001b877\npush    r14                                                            ; +0x8, 0x18001b878\npush    r15                                                            ; +0xa, 0x18001b87a\nsub     rsp, 40h                                                       ; +0xc, 0x18001b87c\nmov     rbp, r8                                                        ; +0x10, 0x18001b880\nmov     rdi, rdx                                                       ; +0x13, 0x18001b883\nmov     rsi, rcx                                                       ; +0x16, 0x18001b886\nlea     r15, aKey; \"key\"                                               ; +0x19, 0x18001b889\nlea     r8, aK; \"k\"                                                    ; +0x20, 0x18001b890\ncmp     byte ptr [rcx+0E8h], 0                                         ; +0x27, 0x18001b897\ncmovnz  r8, r15                                                        ; +0x2e, 0x18001b89e\nmov     rcx, [rcx+0D8h]                                                ; +0x32, 0x18001b8a2\nsub     rcx, 8                                                         ; +0x39, 0x18001b8a9\nlea     rdx, [rsp+68h+var_48]                                          ; +0x3d, 0x18001b8ad\ncall    sub_18007FB10                                                  ; +0x42, 0x18001b8b2\nlea     rcx, [rsp+68h+var_48]                                          ; +0x47, 0x18001b8b7\ncall    sub_18007F4E0                                                  ; +0x4c, 0x18001b8bc\ntest    rax, rax                                                       ; +0x51, 0x18001b8c1\njz      loc_18001B975                                                  ; +0x54, 0x18001b8c4\nlea     r14, aString; \"string\"                                         ; +0x5a, 0x18001b8ca\nlea     rcx, [rsp+68h+var_48]                                          ; +0x61, 0x18001b8d1\ncall    sub_18007FB70                                                  ; +0x66, 0x18001b8d6\nmov     r8, rbp                                                        ; +0x6b, 0x18001b8db\nsub     r8, rax                                                        ; +0x6e, 0x18001b8de\nmovzx   edx, byte ptr [rax]                                            ; +0x71, 0x18001b8e1\nmovzx   ecx, byte ptr [rax+r8]                                         ; +0x74, 0x18001b8e4\nsub     edx, ecx                                                       ; +0x79, 0x18001b8e9\njnz     short loc_18001B8F4                                            ; +0x7b, 0x18001b8eb\ninc     rax                                                            ; +0x7d, 0x18001b8ed\ntest    ecx, ecx                                                       ; +0x80, 0x18001b8f0\njnz     short loc_18001B8E1                                            ; +0x82, 0x18001b8f2\ntest    edx, edx                                                       ; +0x84, 0x18001b8f4\njnz     short loc_18001B939                                            ; +0x86, 0x18001b8f6\nlea     r8, aS; \"s\"                                                    ; +0x88, 0x18001b8f8\ncmp     [rsi+0E8h], dl                                                 ; +0x8f, 0x18001b8ff\ncmovnz  r8, r14                                                        ; +0x95, 0x18001b905\nlea     rdx, [rsp+68h+var_30]                                          ; +0x99, 0x18001b909\nlea     rcx, [rsp+68h+var_48]                                          ; +0x9e, 0x18001b90e\ncall    sub_180081A50                                                  ; +0xa3, 0x18001b913\nmov     rbx, rax                                                       ; +0xa8, 0x18001b918\nlea     rdx, [rsp+68h+var_40]                                          ; +0xab, 0x18001b91b\nlea     rcx, [rsp+68h+var_48]                                          ; +0xb0, 0x18001b920\ncall    sub_180081AB0                                                  ; +0xb5, 0x18001b925\nmov     rcx, rax                                                       ; +0xba, 0x18001b92a\nmov     rdx, rbx                                                       ; +0xbd, 0x18001b92d\ncall    ??$?8$$CBU_EXCEPTION_RECORD@@$$CBU0@@std@@YA_NAEBV?$shared_ptr@$$CBU_EXCEPTION_RECORD@@@0@0@Z; std::operator==<_EXCEPTION_RECORD const,_EXCEPTION_RECORD const>(std::shared_ptr<_EXCEPTION_RECORD const> const &,std::shared_ptr<_EXCEPTION_RECORD const> const &) ; +0xc0, 0x18001b930\ntest    al, al                                                         ; +0xc5, 0x18001b935\njnz     short loc_18001B99B                                            ; +0xc7, 0x18001b937\nlea     r8, aK; \"k\"                                                    ; +0xc9, 0x18001b939\ncmp     byte ptr [rsi+0E8h], 0                                         ; +0xd0, 0x18001b940\ncmovnz  r8, r15                                                        ; +0xd7, 0x18001b947\nlea     rdx, [rsp+68h+var_38]                                          ; +0xdb, 0x18001b94b\nlea     rcx, [rsp+68h+var_48]                                          ; +0xe0, 0x18001b950\ncall    sub_180081A50                                                  ; +0xe5, 0x18001b955\nmov     rcx, [rax]                                                     ; +0xea, 0x18001b95a\nmov     [rsp+68h+var_48], rcx                                          ; +0xed, 0x18001b95d\nlea     rcx, [rsp+68h+var_48]                                          ; +0xf2, 0x18001b962\ncall    sub_18007F4E0                                                  ; +0xf7, 0x18001b967\ntest    rax, rax                                                       ; +0xfc, 0x18001b96c\njnz     loc_18001B8D1                                                  ; +0xff, 0x18001b96f\nlea     rdx, dword_1801A8348                                           ; +0x105, 0x18001b975\nmov     rcx, rdi                                                       ; +0x10c, 0x18001b97c\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x10f, 0x18001b97f\nmov     rax, rdi                                                       ; +0x114, 0x18001b984\nmov     rbx, [rsp+68h+arg_10]                                          ; +0x117, 0x18001b987\nadd     rsp, 40h                                                       ; +0x11f, 0x18001b98f\npop     r15                                                            ; +0x123, 0x18001b993\npop     r14                                                            ; +0x125, 0x18001b995\npop     rdi                                                            ; +0x127, 0x18001b997\npop     rsi                                                            ; +0x128, 0x18001b998\npop     rbp                                                            ; +0x129, 0x18001b999\nretn                                                                   ; +0x12a, 0x18001b99a\nlea     rcx, [rsp+68h+var_38]; this                                    ; +0x12b, 0x18001b99b\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x130, 0x18001b9a0\nlea     rdx, [rsp+68h+var_40]                                          ; +0x135, 0x18001b9a5\nlea     rcx, [rsp+68h+var_48]                                          ; +0x13a, 0x18001b9aa\ncall    sub_180081AB0                                                  ; +0x13f, 0x18001b9af\nmov     rcx, rax                                                       ; +0x144, 0x18001b9b4\ncall    sub_18007FB70                                                  ; +0x147, 0x18001b9b7\nmov     rdx, rax                                                       ; +0x14c, 0x18001b9bc\nmov     rcx, rdi                                                       ; +0x14f, 0x18001b9bf\ncall    ?CCPointFromString@cocos2d@@YA?AVCCPoint@1@PEBD@Z; cocos2d::CCPointFromString(char const *) ; +0x152, 0x18001b9c2\njmp     short loc_18001B984                                            ; +0x157, 0x18001b9c7", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801aea70"], "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"}