// // DS_Dictionary::getRectForKey from 0x10015d380 to 0x10015d56d (493 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:25:06 +0000 // __int64 __fastcall DS_Dictionary::getRectForKey( __int64 a1, __int64 a2, const char *a3, double a4, double a5, double a6, double a7) { __int64 v9; // rdi bool v10; // zf const char *v11; // rsi const char *v12; // rsi const char *v13; // rax const char *v14; // rsi const char *v15; // r14 __int64 v16; // rdi size_t v17; // rax size_t v18; // rbx char *v19; // r15 _QWORD *v20; // rsi __int64 v21; // rbx size_t v23; // r12 char v24; // r14 _QWORD v25[2]; // [rsp+8h] [rbp-68h] BYREF __int64 v26; // [rsp+18h] [rbp-58h] BYREF __int64 v27; // [rsp+20h] [rbp-50h] _QWORD __dst[2]; // [rsp+28h] [rbp-48h] BYREF void *__p; // [rsp+38h] [rbp-38h] _QWORD v30[6]; // [rsp+40h] [rbp-30h] BYREF v27 = a1; v9 = *(_QWORD *)(a2 + 216) - 8LL; v10 = *(_BYTE *)(a2 + 232) == 0; v11 = "k"; if ( !v10 ) v11 = "key"; v30[0] = sub_100718180(v9, v11); if ( !sub_100718020(v30) ) { LABEL_16: v20 = &unk_100BE1348; goto LABEL_17; } while ( 1 ) { v13 = (const char *)sub_1007184B0(v30); if ( !strcmp(v13, a3) ) { __dst[0] = sub_1007183B0(v30); v14 = "s"; if ( *(_BYTE *)(a2 + 232) ) v14 = "string"; v25[0] = sub_100718360(v30, v14); if ( (unsigned __int8)sub_100718220(__dst, v25, a4) ) break; } v12 = "k"; if ( *(_BYTE *)(a2 + 232) ) v12 = "key"; v30[0] = sub_100718360(v30, v12); if ( !sub_100718020(v30) ) goto LABEL_16; } sub_1002787A0(v25); v26 = sub_1007183B0(v30); v15 = (const char *)sub_1007184B0(&v26); v16 = (__int64)v15; v17 = strlen(v15); if ( v17 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v18 = v17; if ( v17 >= 0x17 ) { v23 = 26; if ( (v17 | 7) != 0x17 ) v23 = (v17 | 7) + 1; v19 = (char *)operator new(v23); __p = v19; __dst[0] = v23 + 1; __dst[1] = v18; } else { LOBYTE(__dst[0]) = 2 * v17; v19 = (char *)__dst + 1; if ( !v17 ) goto LABEL_22; } v16 = (__int64)v19; memmove(v19, v15, v18); LABEL_22: v19[v18] = 0; v24 = DS_Dictionary::rectFromString(a4, a5, a6, a7, v16, (__int64)__dst, (__int64)v25); if ( (__dst[0] & 1) != 0 ) operator delete(__p); v20 = &unk_100BE1348; if ( v24 ) v20 = v25; LABEL_17: v21 = v27; sub_1002787F0(v27, v20); return v21; }