//
// DS_Dictionary::vec2FromString from 0x100159d60 to 0x100159e55 (245 bytes)
//
// 1 xrefs:
// > DS_Dictionary::getVec2ArrayForKey @ 0x10015d8a0
//
// 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:05 +0000
//
__int64 __fastcall DS_Dictionary::vec2FromString(__int64 a1, __int64 a2, __int64 a3)
{
unsigned int v4; // ebx
char *v5; // r15
const char *v6; // rdi
float v7; // xmm0_4
const char *v8; // r15
float v9; // xmm1_4
void **v10; // r14
void **v11; // r15
void *v12; // rdi
std::string v14; // [rsp+8h] [rbp-58h] BYREF
void *v15[2]; // [rsp+20h] [rbp-40h] BYREF
__int64 v16; // [rsp+30h] [rbp-30h]
float v17; // [rsp+44h] [rbp-1Ch]
*(_OWORD *)v15 = 0;
v16 = 0;
DS_Dictionary::cleanStringWhiteSpace(&v14, a2, a2);
v4 = DS_Dictionary::splitWithForm((__int64)&v14, &v14, v15);
if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v14.__r_.__value_.__l.__data_);
if ( (_BYTE)v4 )
{
v5 = (char *)v15[0];
if ( (*(_BYTE *)v15[0] & 1) != 0 )
v6 = *((const char **)v15[0] + 2);
else
v6 = (char *)v15[0] + 1;
v7 = atof(v6);
v17 = v7;
if ( (v5[24] & 1) != 0 )
v8 = *((const char **)v5 + 5);
else
v8 = v5 + 25;
v9 = atof(v8);
sub_100278250(&v14, v17, v9);
sub_100278300(a3, &v14);
}
v10 = (void **)v15[0];
if ( v15[0] )
{
v11 = (void **)v15[1];
v12 = v15[0];
if ( v15[1] != v15[0] )
{
do
{
if ( (*(_BYTE *)(v11 - 3) & 1) != 0 )
operator delete(*(v11 - 1));
v11 -= 3;
}
while ( v11 != v10 );
v12 = v15[0];
}
v15[1] = v10;
operator delete(v12);
}
return v4;
}