{"type": "func", "start": 4296531520, "end": 4296531855, "name": "DS_Dictionary::getVec2ForKey", "pseudocode": "// \n// DS_Dictionary::getVec2ForKey from 0x10017de40 to 0x10017df8f (335 bytes)\n// \n// 3 xrefs:\n// > SpriteDescription::initDescription_1 @ 0x10056cbd5\n// > SpriteDescription::initDescription_1 @ 0x10056cbf3\n// > SpriteDescription::initDescription_1 @ 0x10056cc11\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::CCPoint __fastcall DS_Dictionary::getVec2ForKey(DS_Dictionary *a1, const char *a2)\n{\n  const char *v2; // rdx\n  const char *v3; // r14\n  __int64 v5; // rdi\n  bool v6; // zf\n  const char *v7; // rsi\n  const char *v8; // rsi\n  const char *v9; // rax\n  const char *v10; // rsi\n  __int64 v11; // [rsp+8h] [rbp-48h] BYREF\n  DS_Dictionary *v12; // [rsp+10h] [rbp-40h]\n  __int64 v13; // [rsp+18h] [rbp-38h] BYREF\n  _QWORD v14[6]; // [rsp+20h] [rbp-30h] BYREF\n  cocos2d::CCPoint result; // 0:xmm0_8.8\n\n  v3 = v2;\n  v12 = a1;\n  v5 = *((_QWORD *)a2 + 27) - 8LL;\n  v6 = a2[232] == 0;\n  v7 = \"k\";\n  if ( !v6 )\n    v7 = \"key\";\n  v14[0] = sub_10063B550(v5, v7);\n  if ( sub_10063B3F0(v14) )\n  {\n    while ( 1 )\n    {\n      v9 = (const char *)sub_10063B880(v14);\n      if ( !strcmp(v9, v3) )\n      {\n        v11 = sub_10063B780(v14);\n        v10 = \"s\";\n        if ( a2[232] )\n          v10 = \"string\";\n        v13 = sub_10063B730(v14, v10);\n        if ( (unsigned __int8)sub_10063B5F0(&v11, &v13) )\n          break;\n      }\n      v8 = \"k\";\n      if ( a2[232] )\n        v8 = \"key\";\n      v14[0] = sub_10063B730(v14, v8);\n      if ( !sub_10063B3F0(v14) )\n        goto LABEL_13;\n    }\n    sub_10028CC30(&v11);\n    v13 = sub_10063B780(v14);\n    sub_10063B880(&v13);\n    return cocos2d::CCPointFromString((const char *)v12);\n  }\n  else\n  {\nLABEL_13:\n    *(double *)&result = sub_10028CC60(v12);\n  }\n  return result;\n}", "assembly": "; \n; DS_Dictionary::getVec2ForKey from 0x10017de40 to 0x10017df8f (335 bytes)\n; \n; 3 xrefs:\n; > SpriteDescription::initDescription_1 @ 0x10056cbd5\n; > SpriteDescription::initDescription_1 @ 0x10056cbf3\n; > SpriteDescription::initDescription_1 @ 0x10056cc11\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, 0x10017de40\nmov     rbp, rsp                                                       ; +0x1, 0x10017de41\npush    r15                                                            ; +0x4, 0x10017de44\npush    r14                                                            ; +0x6, 0x10017de46\npush    r13                                                            ; +0x8, 0x10017de48\npush    r12                                                            ; +0xa, 0x10017de4a\npush    rbx                                                            ; +0xc, 0x10017de4c\nsub     rsp, 28h                                                       ; +0xd, 0x10017de4d\nmov     r14, rdx                                                       ; +0x11, 0x10017de51\nmov     r15, rsi                                                       ; +0x14, 0x10017de54\nmov     [rbp+var_40], rdi                                              ; +0x17, 0x10017de57\nmov     rdi, [rsi+0D8h]                                                ; +0x1b, 0x10017de5b\nadd     rdi, 0FFFFFFFFFFFFFFF8h                                        ; +0x22, 0x10017de62\nlea     r13, aKey; \"key\"                                               ; +0x26, 0x10017de66\ncmp     byte ptr [rsi+0E8h], 0                                         ; +0x2d, 0x10017de6d\nlea     rbx, aK; \"k\"                                                   ; +0x34, 0x10017de74\nmov     rsi, rbx                                                       ; +0x3b, 0x10017de7b\ncmovnz  rsi, r13                                                       ; +0x3e, 0x10017de7e\ncall    sub_10063B550                                                  ; +0x42, 0x10017de82\nmov     [rbp+var_30], rax                                              ; +0x47, 0x10017de87\nlea     rdi, [rbp+var_30]                                              ; +0x4b, 0x10017de8b\ncall    sub_10063B3F0                                                  ; +0x4f, 0x10017de8f\ntest    rax, rax                                                       ; +0x54, 0x10017de94\njz      loc_10017DF6A                                                  ; +0x57, 0x10017de97\nlea     r12, [rbp+var_30]                                              ; +0x5d, 0x10017de9d\njmp     short loc_10017DEDC                                            ; +0x61, 0x10017dea1\nalign 10h                                                              ; +0x63, 0x10017dea3\ncmp     byte ptr [r15+0E8h], 0                                         ; +0x70, 0x10017deb0\nmov     rsi, rbx                                                       ; +0x78, 0x10017deb8\ncmovnz  rsi, r13                                                       ; +0x7b, 0x10017debb\nmov     rdi, r12                                                       ; +0x7f, 0x10017debf\ncall    sub_10063B730                                                  ; +0x82, 0x10017dec2\nmov     [rbp+var_30], rax                                              ; +0x87, 0x10017dec7\nmov     rdi, r12                                                       ; +0x8b, 0x10017decb\ncall    sub_10063B3F0                                                  ; +0x8e, 0x10017dece\ntest    rax, rax                                                       ; +0x93, 0x10017ded3\njz      loc_10017DF6A                                                  ; +0x96, 0x10017ded6\nmov     rdi, r12                                                       ; +0x9c, 0x10017dedc\ncall    sub_10063B880                                                  ; +0x9f, 0x10017dedf\nmov     rdi, rax; __s1                                                 ; +0xa4, 0x10017dee4\nmov     rsi, r14; __s2                                                 ; +0xa7, 0x10017dee7\ncall    _strcmp                                                        ; +0xaa, 0x10017deea\ntest    eax, eax                                                       ; +0xaf, 0x10017deef\njnz     short loc_10017DEB0                                            ; +0xb1, 0x10017def1\nmov     rdi, r12                                                       ; +0xb3, 0x10017def3\ncall    sub_10063B780                                                  ; +0xb6, 0x10017def6\nmov     [rbp+var_48], rax                                              ; +0xbb, 0x10017defb\ncmp     byte ptr [r15+0E8h], 0                                         ; +0xbf, 0x10017deff\nlea     rsi, aS_7; \"s\"                                                 ; +0xc7, 0x10017df07\nlea     rax, aString; \"string\"                                         ; +0xce, 0x10017df0e\ncmovnz  rsi, rax                                                       ; +0xd5, 0x10017df15\nmov     rdi, r12                                                       ; +0xd9, 0x10017df19\ncall    sub_10063B730                                                  ; +0xdc, 0x10017df1c\nmov     [rbp+var_38], rax                                              ; +0xe1, 0x10017df21\nlea     rdi, [rbp+var_48]                                              ; +0xe5, 0x10017df25\nlea     rsi, [rbp+var_38]                                              ; +0xe9, 0x10017df29\ncall    sub_10063B5F0                                                  ; +0xed, 0x10017df2d\ntest    al, al                                                         ; +0xf2, 0x10017df32\njz      loc_10017DEB0                                                  ; +0xf4, 0x10017df34\nlea     rdi, [rbp+var_48]                                              ; +0xfa, 0x10017df3a\ncall    sub_10028CC30                                                  ; +0xfe, 0x10017df3e\nlea     rdi, [rbp+var_30]                                              ; +0x103, 0x10017df43\ncall    sub_10063B780                                                  ; +0x107, 0x10017df47\nmov     [rbp+var_38], rax                                              ; +0x10c, 0x10017df4c\nlea     rdi, [rbp+var_38]                                              ; +0x110, 0x10017df50\ncall    sub_10063B880                                                  ; +0x114, 0x10017df54\nmov     rbx, [rbp+var_40]                                              ; +0x119, 0x10017df59\nmov     rdi, rbx                                                       ; +0x11d, 0x10017df5d\nmov     rsi, rax                                                       ; +0x120, 0x10017df60\ncall    cocos2d__CCPointFromString                                     ; +0x123, 0x10017df63\njmp     short loc_10017DF7D                                            ; +0x128, 0x10017df68\nlea     rsi, unk_10099F0C0                                             ; +0x12a, 0x10017df6a\nmov     rbx, [rbp+var_40]                                              ; +0x131, 0x10017df71\nmov     rdi, rbx                                                       ; +0x135, 0x10017df75\ncall    sub_10028CC60                                                  ; +0x138, 0x10017df78\nmov     rax, rbx                                                       ; +0x13d, 0x10017df7d\nadd     rsp, 28h                                                       ; +0x140, 0x10017df80\npop     rbx                                                            ; +0x144, 0x10017df84\npop     r12                                                            ; +0x145, 0x10017df85\npop     r13                                                            ; +0x147, 0x10017df87\npop     r14                                                            ; +0x149, 0x10017df89\npop     r15                                                            ; +0x14b, 0x10017df8b\npop     rbp                                                            ; +0x14d, 0x10017df8d\nretn                                                                   ; +0x14e, 0x10017df8e", "xrefs": ["SpriteDescription::initDescription_1 @ 0x10056cbd5", "SpriteDescription::initDescription_1 @ 0x10056cbf3", "SpriteDescription::initDescription_1 @ 0x10056cc11"], "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"}