//
// DS_Dictionary::getVec2ArrayForKey from 0x10017e410 to 0x10017e54a (314 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
std::vector *__fastcall DS_Dictionary::getVec2ArrayForKey(
std::vector *__return_ptr retstr,
DS_Dictionary *a2,
const char *a3)
{
double v4; // xmm0_8
std::string *begin; // r15
__int64 v6; // r12
unsigned __int64 v7; // r13
cocos2d::CCPoint *end; // r15
void *v9; // rdi
char *v10; // r15
std::__vector_base::pointer v11; // r14
std::__vector_base::pointer v12; // rdi
_BYTE v14[8]; // [rsp+8h] [rbp-48h] BYREF
std::vector __p; // [rsp+10h] [rbp-40h] BYREF
DS_Dictionary::getStringArrayForKey(&__p, a2, a3);
v4 = 0.0;
*(_OWORD *)&retstr->__begin_ = 0;
retstr->__end_cap_.__value_ = nullptr;
begin = __p.__begin_;
if ( __p.__end_ == __p.__begin_ )
{
LABEL_8:
if ( !begin )
return retstr;
goto LABEL_11;
}
v6 = 0;
v7 = 0;
while ( 1 )
{
sub_10028CC30(v14);
end = retstr->__end_;
if ( end >= retstr->__end_cap_.__value_ )
{
v9 = retstr;
v10 = sub_10010D050((char **)retstr, v4);
}
else
{
v9 = retstr->__end_;
v4 = sub_10028CC60(v9);
v10 = (char *)&end[1];
}
retstr->__end_ = (std::__vector_base::pointer)v10;
if ( !(unsigned __int8)DS_Dictionary::vec2FromString((__int64)v9, (__int64)&__p.__begin_[v6]) )
break;
++v7;
begin = __p.__begin_;
++v6;
if ( 0xAAAAAAAAAAAAAAABLL * (((char *)__p.__end_ - (char *)__p.__begin_) >> 3) <= v7 )
goto LABEL_8;
}
retstr->__end_ = retstr->__begin_;
begin = __p.__begin_;
if ( __p.__begin_ )
{
LABEL_11:
v11 = __p.__end_;
v12 = begin;
if ( __p.__end_ != begin )
{
do
{
if ( (v11[-1].m_data.m_short.sizex2 & 1) != 0 )
operator delete(v11[-1].m_data.m_long.longStorage);
--v11;
}
while ( v11 != begin );
v12 = __p.__begin_;
}
__p.__end_ = begin;
operator delete(v12);
}
return retstr;
}