//
// DS_Dictionary::getAllKeys from 0x80bbc4 to 0x80bc6e (170 bytes)
//
// 3 xrefs:
// > GameLevelManager::collectPlatformerJournalKeys @ 0x4b5bce
// > sub_4C60B4 @ 0x4c6108
// > GameLevelManager::replayPlatformerSaveJournal @ 0x4cfb1c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:31 +0000
//
DS_Dictionary *__fastcall DS_Dictionary::getAllKeys(DS_Dictionary *this, int a2)
{
int v3; // r3
int v4; // r0
const char *v5; // r0
const char *v6; // r9
size_t v7; // r0
_DWORD *v8; // r3
int v9; // r1
int v10; // r2
int i; // [sp+0h] [bp-1Ch] BYREF
int sibling; // [sp+4h] [bp-18h] BYREF
int v14; // [sp+8h] [bp-14h] BYREF
int v15; // [sp+Ch] [bp-10h]
int v16; // [sp+10h] [bp-Ch]
int v17; // [sp+14h] [bp-8h]
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
v3 = _stack_chk_guard;
*(_DWORD *)this = 0;
v4 = *(_DWORD *)(a2 + 204);
v17 = v3;
for ( i = pugi::xml_node::first_child((pugi::xml_node *)(v4 - 4));
pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);
i = pugi::xml_node::next_sibling((pugi::xml_node *)&sibling) )
{
v5 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);
v14 = 0;
v15 = 0;
v16 = 0;
v6 = v5;
v7 = strlen(v5);
std::string::__init(&v14, v6, v7);
v8 = *((_DWORD **)this + 1);
if ( (unsigned int)v8 >= *((_DWORD *)this + 2) )
{
std::vector::__push_back_slow_path((void **)this, &v14);
}
else
{
if ( v8 )
{
v9 = v15;
v10 = v16;
*v8 = v14;
v8[1] = v9;
v8[2] = v10;
v14 = 0;
v15 = 0;
v16 = 0;
}
*((_DWORD *)this + 1) += 12;
}
std::string::~string((int)&v14);
sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);
}
return this;
}