//
// GManager::loadFromString from 0x5885ac to 0x588654 (168 bytes)
//
// 2 xrefs:
// > GManager::loadFromCompressedString @ 0x5886b4
// > ??> @ 0x3f978
//
// 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 __fastcall GManager::loadFromString(__int64 a1, const std::string *a2)
{
DS_Dictionary *v4; // x19
int RootSubDictFromString; // w21
pugi::xml_node *m_start; // x0
v4 = (DS_Dictionary *)operator new(0xF0u);
DS_Dictionary::DS_Dictionary(v4);
RootSubDictFromString = (unsigned __int8)DS_Dictionary::loadRootSubDictFromString(v4, a2);
sub_D174B8(a2, 0, *((_QWORD *)a2->m_data.m_data - 3), 0);
if ( RootSubDictFromString )
(*(void (__fastcall **)(__int64, DS_Dictionary *))(*(_QWORD *)a1 + 896LL))(a1, v4);
m_start = v4->dictTree.m_start;
if ( m_start )
operator delete(m_start);
pugi::xml_document::~xml_document(&v4->doc);
operator delete(v4);
}