//
// DS_Dictionary::stepIntoSubDictWithKey from 0x100161520 to 0x100161624 (260 bytes)
//
// 7 xrefs:
// > DS_Dictionary::getArrayForKey @ 0x100162730
// > DS_Dictionary::setDictForKey @ 0x100162a58
// > DS_Dictionary::setBoolMapForKey @ 0x100162b5c
// > DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0x100162c88
// > DS_Dictionary::addBoolValuesToMapForKey @ 0x100162f20
// > DS_Dictionary::getDictForKey @ 0x100163044
// > DS_Dictionary::decodeObjectForKey @ 0x1001632b4
//
// 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
//
bool __fastcall DS_Dictionary::stepIntoSubDictWithKey(DS_Dictionary *a1, const char *a2)
{
std::__vector_base
::pointer v4; // x0
char *v5; // x1
__int64 v6; // x0
const char *v7; // x0
const char *v8; // x21
const char *v9; // x0
char *v10; // x1
__int64 v12; // [xsp+0h] [xbp-50h] BYREF
__int64 v13; // [xsp+8h] [xbp-48h] BYREF
v4 = a1->dictTree.__end_ - 1;
if ( a1->compatible )
v5 = "key";
else
v5 = "k";
v13 = sub_1003AB464((int)v4, v5);
v6 = sub_1003AB448(&v13);
if ( v6 )
{
while ( 1 )
{
v7 = (const char *)sub_1003AB5AC(&v13);
if ( !strcmp(v7, a2) )
{
v12 = sub_1003AB594(&v13);
v8 = a1->compatible ? "dict" : "d";
v9 = (const char *)sub_1003AB4CC(&v12);
if ( !strcmp(v8, v9) )
break;
}
if ( a1->compatible )
v10 = "key";
else
v10 = "k";
v13 = sub_1003AB540((int)&v13, v10);
v6 = sub_1003AB448(&v13);
if ( !v6 )
return v6;
}
sub_1000115B8((__int64)&a1->dictTree, &v12);
LOBYTE(v6) = 1;
}
return v6;
}