//
// DS_Dictionary::stepIntoSubDictWithKey from 0xdbaf7c to 0xdbb0e0 (356 bytes)
//
// 19 xrefs:
// > CCAnimateFrameCache::addDict @ 0x68dee0
// > CCAnimateFrameCache::addDict @ 0x68df28
// > CCAnimateFrameCache::addDict @ 0x68dfb0
// > CCAnimateFrameCache::addDict @ 0x68e020
// > CCAnimateFrameCache::addDict @ 0x68e124
// > GameLevelManager::collectPlatformerJournalKeys @ 0x82fce0
// > GameLevelManager::prunePlatformerJournalKeys @ 0x82ff9c
// > sub_833644 @ 0x83389c
// > GameLevelManager::replayPlatformerSaveJournal @ 0x845090
// > EditorSFXManager::dataLoaded @ 0xcc41c0
// > EditorSFXManager::dataLoaded @ 0xcc4290
// > DS_Dictionary::decodeObjectForKey @ 0xdbb138
// > DS_Dictionary::setBoolMapForKey @ 0xdbb394
// > DS_Dictionary::setDictForKey @ 0xdbb750
// > DS_Dictionary::getDictForKey @ 0xdbbb30
// > DS_Dictionary::getArrayForKey @ 0xdbbed0
// > DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0xdbc908
// > DS_Dictionary::addBoolValuesToMapForKey @ 0xdbcacc
// > ??> @ 0xd2940
//
// 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 13:08:44 +0000
//
__int64 __fastcall DS_Dictionary::stepIntoSubDictWithKey(DS_Dictionary *this, const char *a2)
{
int v4; // w1
pugi::xml_node *v5; // x0
const char *v6; // x1
const char *v7; // x1
__int64 result; // x0
const char *v9; // x0
const char *v10; // x27
const char *v11; // x0
__int64 *v12; // x1
__int64 i; // [xsp+68h] [xbp+68h] BYREF
__int64 sibling; // [xsp+70h] [xbp+70h] BYREF
v4 = *((unsigned __int8 *)this + 232);
v5 = (pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL);
if ( v4 )
v6 = "key";
else
v6 = "k";
for ( i = pugi::xml_node::child(v5, v6); ; i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v7) )
{
result = pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);
if ( !result )
break;
v9 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);
if ( !strcmp(v9, a2) )
{
sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);
v10 = *((_BYTE *)this + 232) ? "dict" : &byte_11B7208;
v11 = (const char *)pugi::xml_node::name((pugi::xml_node *)&sibling);
if ( !strcmp(v10, v11) )
{
v12 = *((__int64 **)this + 27);
if ( v12 == *((__int64 **)this + 28) )
{
std::vector
::__push_back_slow_path((char **)this + 26, &sibling);
return 1;
}
else
{
if ( v12 )
{
*v12 = sibling;
v12 = *((__int64 **)this + 27);
}
*((_QWORD *)this + 27) = v12 + 1;
return 1;
}
}
}
v7 = "key";
if ( !*((_BYTE *)this + 232) )
v7 = "k";
}
return result;
}