//
// DS_Dictionary::loadRootSubDictFromString from 0x5fee90 to 0x5fef30 (160 bytes)
//
// 1 xrefs:
// > GManager::loadFromString @ 0x2f02aa
//
// 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
//
int __fastcall DS_Dictionary::loadRootSubDictFromString(DS_Dictionary *a1, int *a2)
{
int v4; // r5
char **p_dictTree; // r7
_DWORD *v6; // r7
pugi::xml_node v8; // [sp+Ch] [bp-14h] BYREF
pugi::xml_node v9[3]; // [sp+10h] [bp-10h] BYREF
if ( !*(_DWORD *)(*a2 - 12) )
return 0;
p_dictTree = (char **)&a1->dictTree;
a1->dictTree.m_finish = a1->dictTree.m_start;
pugi::xml_node::xml_node(v9);
std::vector
::emplace_back(p_dictTree, v9);
pugi::xml_document::load_buffer((int)v9, &a1->doc, *a2, *(_DWORD *)(*a2 - 12), 116, 0);
v4 = pugi::xml_parse_result::operator bool(v9);
if ( !v4 )
return 0;
v6 = (_DWORD *)std::vector::back((int)p_dictTree);
v8._root = (pugi::xml_node_struct *)pugi::xml_node::child(&a1->doc, "plist");
*v6 = pugi::xml_node::child(&v8, "dict");
DS_Dictionary::checkCompatibility(a1);
return v4;
}