//
// DS_Dictionary::removeKey from 0x5fcebc to 0x5fcf64 (168 bytes)
//
// 6 xrefs:
// > DS_Dictionary::setStringArrayForKey @ 0x5fd778
// > DS_Dictionary::setVec2ForKey @ 0x5fd950
// > DS_Dictionary::setRectForKey @ 0x5fdb2a
// > DS_Dictionary::setVec2ArrayForKey @ 0x5fdca4
// > DS_Dictionary::setRectArrayForKey @ 0x5fdec0
// > DS_Dictionary::getArrayForKey @ 0x5ff84e
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void DS_Dictionary::removeKey(DS_Dictionary *a1, const char *a2)
{
std::vector
*p_dictTree; // r6
pugi::xml_node *v5; // r0
const char *v6; // r1
const char *v7; // r0
pugi::xml_node *v8; // r7
pugi::xml_node *v9; // r0
const char *v10; // r1
pugi::xml_node v11; // [sp+4h] [bp-Ch] BYREF
pugi::xml_node v12; // [sp+8h] [bp-8h] BYREF
v11._root = (pugi::xml_node_struct *)a2;
p_dictTree = &a1->dictTree;
v5 = (pugi::xml_node *)std::vector::back((int)&a1->dictTree);
if ( a1->compatible )
v6 = "key";
else
v6 = "k";
for ( v11._root = (pugi::xml_node_struct *)pugi::xml_node::child(v5, v6);
pugi::xml_node::operator void (*)(pugi::xml_node***)(&v11);
v11._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v11, v10) )
{
v7 = (const char *)pugi::xml_node::child_value(&v11);
if ( !strcmp(v7, a2) )
{
v8 = (pugi::xml_node *)std::vector::back((int)p_dictTree);
v12._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v11);
pugi::xml_node::remove_child(v8, &v12);
v9 = (pugi::xml_node *)std::vector::back((int)p_dictTree);
pugi::xml_node::remove_child(v9, &v11);
return;
}
if ( a1->compatible )
v10 = "key";
else
v10 = "k";
}
}