{"type": "func", "start": 4296397360, "end": 4296397695, "name": "DS_Dictionary::getVec2ForKey", "pseudocode": "// \n// DS_Dictionary::getVec2ForKey from 0x10015d230 to 0x10015d37f (335 bytes)\n// \n// 3 xrefs:\n// > SpriteDescription::initDescription_1 @ 0x100599c95\n// > SpriteDescription::initDescription_1 @ 0x100599cb3\n// > SpriteDescription::initDescription_1 @ 0x100599cd1\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::getVec2ForKey(__int64 a1, __int64 a2, const char *a3, double a4)\n{\n  __int64 v6; // rdi\n  bool v7; // zf\n  const char *v8; // rsi\n  const char *v9; // rsi\n  const char *v10; // rax\n  const char *v11; // rsi\n  __int64 v12; // rax\n  __int64 v13; // rbx\n  __int64 v15; // [rsp+8h] [rbp-48h] BYREF\n  __int64 v16; // [rsp+10h] [rbp-40h]\n  __int64 v17; // [rsp+18h] [rbp-38h] BYREF\n  _QWORD v18[6]; // [rsp+20h] [rbp-30h] BYREF\n\n  v16 = a1;\n  v6 = *(_QWORD *)(a2 + 216) - 8LL;\n  v7 = *(_BYTE *)(a2 + 232) == 0;\n  v8 = \"k\";\n  if ( !v7 )\n    v8 = \"key\";\n  v18[0] = sub_100718180(v6, v8);\n  if ( sub_100718020(v18) )\n  {\n    while ( 1 )\n    {\n      v10 = (const char *)sub_1007184B0(v18);\n      if ( !strcmp(v10, a3) )\n      {\n        v15 = sub_1007183B0(v18);\n        v11 = \"s\";\n        if ( *(_BYTE *)(a2 + 232) )\n          v11 = \"string\";\n        v17 = sub_100718360(v18, v11);\n        if ( (unsigned __int8)sub_100718220(&v15, &v17, a4) )\n          break;\n      }\n      v9 = \"k\";\n      if ( *(_BYTE *)(a2 + 232) )\n        v9 = \"key\";\n      v18[0] = sub_100718360(v18, v9);\n      if ( !sub_100718020(v18) )\n        goto LABEL_13;\n    }\n    sub_1002782A0(&v15);\n    v17 = sub_1007183B0(v18);\n    v12 = sub_1007184B0(&v17);\n    v13 = v16;\n    cocos2d::CCPointFromString(v16, v12);\n  }\n  else\n  {\nLABEL_13:\n    v13 = v16;\n    sub_1002782D0(v16, &unk_100BE1338);\n  }\n  return v13;\n}", "assembly": "; \n; DS_Dictionary::getVec2ForKey from 0x10015d230 to 0x10015d37f (335 bytes)\n; \n; 3 xrefs:\n; > SpriteDescription::initDescription_1 @ 0x100599c95\n; > SpriteDescription::initDescription_1 @ 0x100599cb3\n; > SpriteDescription::initDescription_1 @ 0x100599cd1\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, 0x10015d230\nmov     rbp, rsp                                                       ; +0x1, 0x10015d231\npush    r15                                                            ; +0x4, 0x10015d234\npush    r14                                                            ; +0x6, 0x10015d236\npush    r13                                                            ; +0x8, 0x10015d238\npush    r12                                                            ; +0xa, 0x10015d23a\npush    rbx                                                            ; +0xc, 0x10015d23c\nsub     rsp, 28h                                                       ; +0xd, 0x10015d23d\nmov     r14, rdx                                                       ; +0x11, 0x10015d241\nmov     r15, rsi                                                       ; +0x14, 0x10015d244\nmov     [rbp+var_40], rdi                                              ; +0x17, 0x10015d247\nmov     rdi, [rsi+0D8h]                                                ; +0x1b, 0x10015d24b\nadd     rdi, 0FFFFFFFFFFFFFFF8h                                        ; +0x22, 0x10015d252\nlea     r13, aKey; \"key\"                                               ; +0x26, 0x10015d256\ncmp     byte ptr [rsi+0E8h], 0                                         ; +0x2d, 0x10015d25d\nlea     rbx, aK; \"k\"                                                   ; +0x34, 0x10015d264\nmov     rsi, rbx                                                       ; +0x3b, 0x10015d26b\ncmovnz  rsi, r13                                                       ; +0x3e, 0x10015d26e\ncall    sub_100718180                                                  ; +0x42, 0x10015d272\nmov     [rbp+var_30], rax                                              ; +0x47, 0x10015d277\nlea     rdi, [rbp+var_30]                                              ; +0x4b, 0x10015d27b\ncall    sub_100718020                                                  ; +0x4f, 0x10015d27f\ntest    rax, rax                                                       ; +0x54, 0x10015d284\njz      loc_10015D35A                                                  ; +0x57, 0x10015d287\nlea     r12, [rbp+var_30]                                              ; +0x5d, 0x10015d28d\njmp     short loc_10015D2CC                                            ; +0x61, 0x10015d291\nalign 20h                                                              ; +0x63, 0x10015d293\ncmp     byte ptr [r15+0E8h], 0                                         ; +0x70, 0x10015d2a0\nmov     rsi, rbx                                                       ; +0x78, 0x10015d2a8\ncmovnz  rsi, r13                                                       ; +0x7b, 0x10015d2ab\nmov     rdi, r12                                                       ; +0x7f, 0x10015d2af\ncall    sub_100718360                                                  ; +0x82, 0x10015d2b2\nmov     [rbp+var_30], rax                                              ; +0x87, 0x10015d2b7\nmov     rdi, r12                                                       ; +0x8b, 0x10015d2bb\ncall    sub_100718020                                                  ; +0x8e, 0x10015d2be\ntest    rax, rax                                                       ; +0x93, 0x10015d2c3\njz      loc_10015D35A                                                  ; +0x96, 0x10015d2c6\nmov     rdi, r12                                                       ; +0x9c, 0x10015d2cc\ncall    sub_1007184B0                                                  ; +0x9f, 0x10015d2cf\nmov     rdi, rax; __s1                                                 ; +0xa4, 0x10015d2d4\nmov     rsi, r14; __s2                                                 ; +0xa7, 0x10015d2d7\ncall    _strcmp                                                        ; +0xaa, 0x10015d2da\ntest    eax, eax                                                       ; +0xaf, 0x10015d2df\njnz     short loc_10015D2A0                                            ; +0xb1, 0x10015d2e1\nmov     rdi, r12                                                       ; +0xb3, 0x10015d2e3\ncall    sub_1007183B0                                                  ; +0xb6, 0x10015d2e6\nmov     [rbp+var_48], rax                                              ; +0xbb, 0x10015d2eb\ncmp     byte ptr [r15+0E8h], 0                                         ; +0xbf, 0x10015d2ef\nlea     rsi, aS_10; \"s\"                                                ; +0xc7, 0x10015d2f7\nlea     rax, aString; \"string\"                                         ; +0xce, 0x10015d2fe\ncmovnz  rsi, rax                                                       ; +0xd5, 0x10015d305\nmov     rdi, r12                                                       ; +0xd9, 0x10015d309\ncall    sub_100718360                                                  ; +0xdc, 0x10015d30c\nmov     [rbp+var_38], rax                                              ; +0xe1, 0x10015d311\nlea     rdi, [rbp+var_48]                                              ; +0xe5, 0x10015d315\nlea     rsi, [rbp+var_38]                                              ; +0xe9, 0x10015d319\ncall    sub_100718220                                                  ; +0xed, 0x10015d31d\ntest    al, al                                                         ; +0xf2, 0x10015d322\njz      loc_10015D2A0                                                  ; +0xf4, 0x10015d324\nlea     rdi, [rbp+var_48]                                              ; +0xfa, 0x10015d32a\ncall    sub_1002782A0                                                  ; +0xfe, 0x10015d32e\nlea     rdi, [rbp+var_30]                                              ; +0x103, 0x10015d333\ncall    sub_1007183B0                                                  ; +0x107, 0x10015d337\nmov     [rbp+var_38], rax                                              ; +0x10c, 0x10015d33c\nlea     rdi, [rbp+var_38]                                              ; +0x110, 0x10015d340\ncall    sub_1007184B0                                                  ; +0x114, 0x10015d344\nmov     rbx, [rbp+var_40]                                              ; +0x119, 0x10015d349\nmov     rdi, rbx                                                       ; +0x11d, 0x10015d34d\nmov     rsi, rax                                                       ; +0x120, 0x10015d350\ncall    cocos2d__CCPointFromString                                     ; +0x123, 0x10015d353\njmp     short loc_10015D36D                                            ; +0x128, 0x10015d358\nlea     rsi, unk_100BE1338                                             ; +0x12a, 0x10015d35a\nmov     rbx, [rbp+var_40]                                              ; +0x131, 0x10015d361\nmov     rdi, rbx                                                       ; +0x135, 0x10015d365\ncall    sub_1002782D0                                                  ; +0x138, 0x10015d368\nmov     rax, rbx                                                       ; +0x13d, 0x10015d36d\nadd     rsp, 28h                                                       ; +0x140, 0x10015d370\npop     rbx                                                            ; +0x144, 0x10015d374\npop     r12                                                            ; +0x145, 0x10015d375\npop     r13                                                            ; +0x147, 0x10015d377\npop     r14                                                            ; +0x149, 0x10015d379\npop     r15                                                            ; +0x14b, 0x10015d37b\npop     rbp                                                            ; +0x14d, 0x10015d37d\nretn                                                                   ; +0x14e, 0x10015d37e", "xrefs": ["SpriteDescription::initDescription_1 @ 0x100599c95", "SpriteDescription::initDescription_1 @ 0x100599cb3", "SpriteDescription::initDescription_1 @ 0x100599cd1"], "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"}