//
// DS_Dictionary::getVec2ForKey from 0x18001b7a0 to 0x18001b8eb (331 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b8ac4
//
// 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 11:21:26 +0000
//
_DWORD *__fastcall DS_Dictionary::getVec2ForKey(__int64 a1, _DWORD *a2, const char *a3)
{
const char *v6; // r8
const char *v7; // rax
const char *v8; // r8
__int64 v9; // rbx
__int64 v10; // rax
const char *v11; // r8
__int64 v13; // rax
__int64 v14; // rax
__int64 v15; // [rsp+20h] [rbp-48h] BYREF
_BYTE v16[8]; // [rsp+28h] [rbp-40h] BYREF
_BYTE v17[8]; // [rsp+30h] [rbp-38h] BYREF
_BYTE v18[48]; // [rsp+38h] [rbp-30h] BYREF
v6 = "k";
if ( *(_BYTE *)(a1 + 232) )
v6 = "key";
sub_180082A40(*(_QWORD *)(a1 + 216) - 8LL, &v15, v6);
if ( sub_1800823F0(&v15) )
{
while ( 1 )
{
v7 = (const char *)sub_180082AC0(&v15);
if ( !strcmp(v7, a3) )
{
v8 = "s";
if ( *(_BYTE *)(a1 + 232) )
v8 = "string";
v9 = sub_180084A40(&v15, v18, v8);
v10 = sub_180084AC0(&v15, v16);
if ( (unsigned __int8)sub_1800823E0(v10, v9) )
break;
}
v11 = "k";
if ( *(_BYTE *)(a1 + 232) )
v11 = "key";
v15 = *(_QWORD *)sub_180084A40(&v15, v17, v11);
if ( !sub_1800823F0(&v15) )
goto LABEL_11;
}
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v17);
v13 = sub_180084AC0(&v15, v16);
v14 = sub_180082AC0(v13);
cocos2d::CCPointFromString(a2, v14);
}
else
{
LABEL_11:
cocos2d::cc_timeval::operator=(a2, dword_1801B2368);
}
return a2;
}