//
// DS_Dictionary::getKey from 0x1001ea3b4 to 0x1001ea444 (144 bytes)
//
// 1 xrefs:
// > DS_Dictionary::getArrayForKey @ 0x1001eb5b8
//
// This function is hookable on this platform (idp: arm, 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:00:35 +0000
//
_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_1004525C0(*(_QWORD *)(a1 + 216) - 8LL);
result = (_QWORD *)sub_100452410(&v9);
if ( result )
{
v6 = a2 + 1;
while ( --v6 )
{
v8 = sub_10045255C(&v9);
v9 = sub_10045255C(&v8);
result = (_QWORD *)sub_100452410(&v9);
if ( !result )
goto LABEL_5;
}
v7 = (char *)sub_100452574(&v9);
return sub_100009900(a3, v7);
}
else
{
LABEL_5:
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
}
return result;
}