//
// GManager::loadFromString from 0x1004ac140 to 0x1004ac1d6 (150 bytes)
//
// 1 xrefs:
// > GManager::loadFromCompressedString @ 0x1004ac235
//
// 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, __int64 a2)
{
DS_Dictionary *v2; // rbx
char RootSubDictFromString; // al
pugi::xml_node *begin; // rdi
v2 = (DS_Dictionary *)operator new(0xF0u);
sub_100179B00(v2);
RootSubDictFromString = DS_Dictionary::loadRootSubDictFromString((__int64)v2, (unsigned __int8 *)a2);
if ( (*(_BYTE *)a2 & 1) != 0 )
{
**(_BYTE **)(a2 + 16) = 0;
*(_QWORD *)(a2 + 8) = 0;
if ( !RootSubDictFromString )
goto LABEL_6;
goto LABEL_5;
}
*(_WORD *)a2 = 0;
if ( RootSubDictFromString )
LABEL_5:
(*(void (__fastcall **)(__int64, DS_Dictionary *))(*(_QWORD *)a1 + 896LL))(a1, v2);
LABEL_6:
begin = v2->dictTree.__begin_;
if ( begin )
{
v2->dictTree.__end_ = begin;
operator delete(begin);
}
pugi::xml_document::dxml_document(v2);
operator delete(v2);
}