//
// DS_Dictionary::removeAllKeys from 0xdb64a4 to 0xdb6574 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0xfc358
//
// 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:42 +0000
//
__int64 __fastcall DS_Dictionary::removeAllKeys(DS_Dictionary *this)
{
pugi::xml_node *v2; // x20
const char *v3; // x1
__int64 v5; // [xsp+58h] [xbp+58h] BYREF
__int64 sibling; // [xsp+60h] [xbp+60h] BYREF
while ( 1 )
{
v3 = *((_BYTE *)this + 232) ? "key" : "k";
v5 = pugi::xml_node::child((pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL), v3);
if ( !pugi::xml_node::operator void (*)(pugi::xml_node***)(&v5) )
break;
v2 = (pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL);
sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&v5);
pugi::xml_node::remove_child(v2, (const pugi::xml_node *)&sibling);
pugi::xml_node::remove_child((pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL), (const pugi::xml_node *)&v5);
}
return _stack_chk_guard;
}