//
// DS_Dictionary::stepIntoSubDictWithKey from 0x1001ea228 to 0x1001ea32c (260 bytes)
//
// 13 xrefs:
// > sub_1000AF778 @ 0x1000af80c
// > sub_1000AFC5C @ 0x1000afcf4
// > sub_1000AFF8C @ 0x1000b0010
// > sub_1000B0164 @ 0x1000b0250
// > DS_Dictionary::getArrayForKey @ 0x1001eb570
// > DS_Dictionary::setDictForKey @ 0x1001eb898
// > DS_Dictionary::setBoolMapForKey @ 0x1001eb99c
// > DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0x1001ebac8
// > DS_Dictionary::addBoolValuesToMapForKey @ 0x1001ebd60
// > DS_Dictionary::getDictForKey @ 0x1001ebe84
// > DS_Dictionary::decodeObjectForKey @ 0x1001ec0f4
// > EditorSFXManager::dataLoaded @ 0x1004ca83c
// > EditorSFXManager::dataLoaded @ 0x1004ca8d8
//
// 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
//
__int64 __fastcall DS_Dictionary::stepIntoSubDictWithKey(__int64 a1, const char *a2)
{
__int64 v4; // x0
char *v5; // x1
__int64 result; // x0
const char *v7; // x0
const char *v8; // x21
const char *v9; // x0
char *v10; // x1
__int64 v11; // [xsp+0h] [xbp-50h] BYREF
__int64 v12; // [xsp+8h] [xbp-48h] BYREF
v4 = *(_QWORD *)(a1 + 216) - 8LL;
if ( *(_BYTE *)(a1 + 232) )
v5 = "key";
else
v5 = "k";
v12 = sub_10045242C(v4, v5);
result = sub_100452410(&v12);
if ( result )
{
while ( 1 )
{
v7 = (const char *)sub_100452574(&v12);
if ( !strcmp(v7, a2) )
{
v11 = sub_10045255C(&v12);
v8 = *(_BYTE *)(a1 + 232) ? "dict" : "d";
v9 = (const char *)sub_100452494(&v11);
if ( !strcmp(v8, v9) )
break;
}
if ( *(_BYTE *)(a1 + 232) )
v10 = "key";
else
v10 = "k";
v12 = sub_100452508((int)&v12, v10);
result = sub_100452410(&v12);
if ( !result )
return result;
}
sub_100011A50(a1 + 208, &v11);
return 1;
}
return result;
}