//
// DS_Dictionary::getKey from 0x100161690 to 0x100161720 (144 bytes)
//
// 1 xrefs:
// > DS_Dictionary::getArrayForKey @ 0x100162778
//
// 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
//
_QWORD *__usercall DS_Dictionary::getKey@(__int64 a1@, int a2@, _QWORD *a3@)
{
_QWORD *result; // x0
int v6; // w20
char *v7; // x0
__int64 v8; // [xsp+0h] [xbp-20h] BYREF
__int64 v9; // [xsp+8h] [xbp-18h] BYREF
v9 = sub_1003AB5F8(*(_QWORD *)(a1 + 216) - 8LL);
result = (_QWORD *)sub_1003AB448(&v9);
if ( result )
{
v6 = a2 + 1;
while ( --v6 )
{
v8 = sub_1003AB594(&v9);
v9 = sub_1003AB594(&v8);
result = (_QWORD *)sub_1003AB448(&v9);
if ( !result )
goto LABEL_5;
}
v7 = (char *)sub_1003AB5AC(&v9);
return sub_100009900(a3, v7);
}
else
{
LABEL_5:
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
}
return result;
}