//
// DS_Dictionary::getVec2ArrayForKey from 0xdb952c to 0xdb96d8 (428 bytes)
//
// 1 xrefs:
// > ??> @ 0xf0fa0
//
// 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
//
__int64 __usercall DS_Dictionary::getVec2ArrayForKey@(
DS_Dictionary *this@,
const char *a2@,
__int64 a3@)
{
int v4; // w24
char *v5; // x20
char *v6; // x0
__int64 v7; // x20
unsigned __int64 v8; // x21
float *v9; // x0
void *v10; // x1
__int64 v11; // x1
char *v12; // x26
char *v13; // x0
char v15[8]; // [xsp+58h] [xbp+58h] BYREF
void *v16; // [xsp+60h] [xbp+60h] BYREF
char *v17; // [xsp+68h] [xbp+68h]
v4 = (int)this;
DS_Dictionary::getStringArrayForKey(this, a2, &v16);
v5 = v17;
v6 = (char *)v16;
*(_QWORD *)a3 = 0;
*(_QWORD *)(a3 + 8) = 0;
*(_QWORD *)(a3 + 16) = 0;
if ( !(0xAAAAAAAAAAAAAAABLL * ((v5 - v6) >> 3)) )
{
v12 = v6;
goto LABEL_12;
}
v7 = 0;
v8 = 0;
while ( 1 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15);
v9 = *(float **)(a3 + 8);
if ( (unsigned __int64)v9 < *(_QWORD *)(a3 + 16) )
break;
std::vector::__push_back_slow_path(
(cocos2d::CCPoint **)a3,
(const cocos2d::CCPoint *)v15);
if ( !DS_Dictionary::vec2FromString(v4, (__int64)v16 + v7, (float *)(*(_QWORD *)(a3 + 8) - 8LL)) )
goto LABEL_9;
LABEL_6:
++v8;
v7 += 24;
if ( 0xAAAAAAAAAAAAAAABLL * ((v17 - (_BYTE *)v16) >> 3) <= v8 )
{
v12 = (char *)v16;
goto LABEL_12;
}
}
if ( v9 )
{
cocos2d::CCPoint::CCPoint(v9, (const cocos2d::CCPoint *)v15);
v9 = *(float **)(a3 + 8);
}
v10 = v16;
*(_QWORD *)(a3 + 8) = v9 + 2;
if ( DS_Dictionary::vec2FromString(v4, (__int64)v10 + v7, v9) )
goto LABEL_6;
LABEL_9:
v11 = *(_QWORD *)(a3 + 8);
if ( *(_QWORD *)a3 != v11 )
*(_QWORD *)(a3 + 8) = v11 + 8 * ~((unsigned __int64)(v11 - 8 - *(_QWORD *)a3) >> 3);
v12 = (char *)v16;
LABEL_12:
if ( v12 )
{
v13 = v17;
if ( v12 != v17 )
{
do
{
v17 = v13 - 24;
std::string::~string((__int64)(v13 - 24));
v13 = v17;
}
while ( v17 != v12 );
v13 = (char *)v16;
}
operator delete(v13);
}
return a3;
}