//
// DS_Dictionary::removeAllKeys from 0x80b028 to 0x80b0a4 (124 bytes)
//
// 0 xrefs:
//
// 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:29 +0000
//
int __fastcall DS_Dictionary::removeAllKeys(DS_Dictionary *this)
{
const char *v2; // r1
int result; // r0
pugi::xml_node *v4; // r7
int v5; // [sp+4h] [bp-10h] BYREF
int sibling; // [sp+8h] [bp-Ch] BYREF
while ( 1 )
{
v2 = *((_BYTE *)this + 212) ? "key" : "k";
v5 = pugi::xml_node::child((pugi::xml_node *)(*((_DWORD *)this + 51) - 4), v2);
result = pugi::xml_node::operator void (*)(pugi::xml_node***)(&v5);
if ( !result )
break;
v4 = (pugi::xml_node *)(*((_DWORD *)this + 51) - 4);
sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&v5);
pugi::xml_node::remove_child(v4, (const pugi::xml_node *)&sibling);
pugi::xml_node::remove_child((pugi::xml_node *)(*((_DWORD *)this + 51) - 4), (const pugi::xml_node *)&v5);
}
return result;
}