//
// DS_Dictionary::getVec2ForKey from 0x10017de40 to 0x10017df8f (335 bytes)
//
// 3 xrefs:
// > SpriteDescription::initDescription_1 @ 0x10056cbd5
// > SpriteDescription::initDescription_1 @ 0x10056cbf3
// > SpriteDescription::initDescription_1 @ 0x10056cc11
//
// 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
//
cocos2d::CCPoint __fastcall DS_Dictionary::getVec2ForKey(DS_Dictionary *a1, const char *a2)
{
const char *v2; // rdx
const char *v3; // r14
__int64 v5; // rdi
bool v6; // zf
const char *v7; // rsi
const char *v8; // rsi
const char *v9; // rax
const char *v10; // rsi
__int64 v11; // [rsp+8h] [rbp-48h] BYREF
DS_Dictionary *v12; // [rsp+10h] [rbp-40h]
__int64 v13; // [rsp+18h] [rbp-38h] BYREF
_QWORD v14[6]; // [rsp+20h] [rbp-30h] BYREF
cocos2d::CCPoint result; // 0:xmm0_8.8
v3 = v2;
v12 = a1;
v5 = *((_QWORD *)a2 + 27) - 8LL;
v6 = a2[232] == 0;
v7 = "k";
if ( !v6 )
v7 = "key";
v14[0] = sub_10063B550(v5, v7);
if ( sub_10063B3F0(v14) )
{
while ( 1 )
{
v9 = (const char *)sub_10063B880(v14);
if ( !strcmp(v9, v3) )
{
v11 = sub_10063B780(v14);
v10 = "s";
if ( a2[232] )
v10 = "string";
v13 = sub_10063B730(v14, v10);
if ( (unsigned __int8)sub_10063B5F0(&v11, &v13) )
break;
}
v8 = "k";
if ( a2[232] )
v8 = "key";
v14[0] = sub_10063B730(v14, v8);
if ( !sub_10063B3F0(v14) )
goto LABEL_13;
}
sub_10028CC30(&v11);
v13 = sub_10063B780(v14);
sub_10063B880(&v13);
return cocos2d::CCPointFromString((const char *)v12);
}
else
{
LABEL_13:
*(double *)&result = sub_10028CC60(v12);
}
return result;
}