//
// DS_Dictionary::removeKey from 0xdb6290 to 0xdb639c (268 bytes)
//
// 1 xrefs:
// > ??> @ 0x6bbd8
//
// 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::removeKey(DS_Dictionary *this, int a2)
{
int v4; // w1
pugi::xml_node *v5; // x0
const char *v6; // x1
int v7; // w19
const char *v8; // x1
__int64 v10; // x19
__int64 i; // [xsp+58h] [xbp+58h] BYREF
__int64 sibling; // [xsp+60h] [xbp+60h] BYREF
v4 = *((unsigned __int8 *)this + 232);
v5 = (pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL);
if ( v4 )
v6 = "key";
else
v6 = "k";
v7 = 0;
for ( i = pugi::xml_node::child(v5, v6);
pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);
i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v8) )
{
if ( v7 == a2 )
{
v10 = *((_QWORD *)this + 27);
sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);
pugi::xml_node::remove_child((pugi::xml_node *)(v10 - 8), (const pugi::xml_node *)&sibling);
pugi::xml_node::remove_child((pugi::xml_node *)(*((_QWORD *)this + 27) - 8LL), (const pugi::xml_node *)&i);
return _stack_chk_guard;
}
++v7;
if ( *((_BYTE *)this + 232) )
v8 = "key";
else
v8 = "k";
}
return _stack_chk_guard;
}