//
// DS_Dictionary::getKey from 0x18001a6a0 to 0x18001a77a (218 bytes)
//
// 3 xrefs:
// > DS_Dictionary::getArrayForKey @ 0x180019a9b
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b8a58
//
// 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
//
_QWORD *__fastcall DS_Dictionary::getKey(__int64 a1, _QWORD *a2, int a3)
{
int v5; // ebx
__int64 v6; // rax
const char *v8; // rax
const char *v9; // rbx
size_t v10; // rax
_BYTE v11[32]; // [rsp+28h] [rbp-20h] BYREF
__int64 v12; // [rsp+50h] [rbp+8h] BYREF
char v13; // [rsp+68h] [rbp+20h] BYREF
v5 = 0;
sub_180083CE0(*(_QWORD *)(a1 + 216) - 8LL, &v12);
if ( sub_1800823F0(&v12) )
{
while ( v5 != a3 )
{
++v5;
v6 = sub_180084AC0(&v12, &v13);
v12 = *(_QWORD *)sub_180084AC0(v6, v11);
if ( !sub_1800823F0(&v12) )
goto LABEL_4;
}
v8 = (const char *)sub_180082AC0(&v12);
*(_OWORD *)a2 = 0;
a2[2] = 0;
v9 = v8;
a2[3] = 0;
v10 = strlen(v8);
sub_18000CEF0(a2, v9, v10);
return a2;
}
else
{
LABEL_4:
*(_OWORD *)a2 = 0;
a2[2] = 0;
a2[3] = 15;
*(_BYTE *)a2 = 0;
return a2;
}
}