//
// DS_Dictionary::vec2FromString from 0xdb93e8 to 0xdb952c (324 bytes)
//
// 3 xrefs:
// > DS_Dictionary::getVec2ArrayForKey @ 0xdb95c8
// > DS_Dictionary::getVec2ArrayForKey @ 0xdb9630
// > ??> @ 0x57b08
//
// This function is hookable on this platform (idp: arm, 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 13:08:43 +0000
//
bool __fastcall DS_Dictionary::vec2FromString(int a1, __int64 a2, float *a3)
{
_BOOL4 v5; // w19
_BOOL4 v6; // w21
const char *v7; // x0
float v8; // s8
const char *v9; // x0
float v10; // s1
void **v11; // x19
void **v12; // x0
float v14; // [xsp+50h] [xbp+50h] BYREF
void *v15; // [xsp+58h] [xbp+58h] BYREF
void **v16; // [xsp+60h] [xbp+60h]
__int64 v17; // [xsp+68h] [xbp+68h]
__int64 v18[3]; // [xsp+70h] [xbp+70h] BYREF
v15 = nullptr;
v16 = nullptr;
v17 = 0;
DS_Dictionary::cleanStringWhiteSpace(a2, v18);
v5 = DS_Dictionary::splitWithForm(a1, (size_t *)v18, (__int64 *)&v15);
v6 = v5;
if ( (v18[0] & 1) != 0 )
operator delete((void *)v18[2]);
if ( v5 )
{
v7 = (char *)v15 + 1;
if ( (*(_BYTE *)v15 & 1) != 0 )
v7 = *((const char **)v15 + 2);
v8 = atof(v7);
v9 = (char *)v15 + 25;
if ( (*((_BYTE *)v15 + 24) & 1) != 0 )
v9 = *((const char **)v15 + 5);
v10 = atof(v9);
cocos2d::CCPoint::CCPoint(&v14, v8, v10);
cocos2d::CCPoint::operator=(a3, &v14);
}
v11 = (void **)v15;
if ( v15 )
{
v12 = v16;
if ( v15 != v16 )
{
do
{
v16 = v12 - 3;
if ( (*(_BYTE *)(v12 - 3) & 1) != 0 )
operator delete(*(v12 - 1));
v12 = v16;
}
while ( v11 != v16 );
v12 = (void **)v15;
}
operator delete(v12);
}
return v6;
}