//
// GManager::loadFromString from 0x10024a7a4 to 0x10024a83c (152 bytes)
//
// 1 xrefs:
// > GManager::loadFromCompressedString @ 0x10024a8a4
//
// 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 *v4; // x19
int RootSubDictFromString; // w0
pugi::xml_node *begin; // x0
void *v7; // x0
v4 = (DS_Dictionary *)operator new(0xF0u);
j_DS_Dictionary::DS_Dictionary(v4);
RootSubDictFromString = DS_Dictionary::loadRootSubDictFromString(v4, (__int64 *)a2);
if ( (*(char *)(a2 + 23) & 0x80000000) == 0 )
{
*(_BYTE *)a2 = 0;
*(_BYTE *)(a2 + 23) = 0;
if ( !RootSubDictFromString )
goto LABEL_4;
goto LABEL_3;
}
**(_BYTE **)a2 = 0;
*(_QWORD *)(a2 + 8) = 0;
if ( RootSubDictFromString )
LABEL_3:
(*(void (__fastcall **)(__int64, DS_Dictionary *))(*(_QWORD *)a1 + 896LL))(a1, v4);
LABEL_4:
begin = v4->dictTree.__begin_;
if ( begin )
{
v4->dictTree.__end_ = begin;
operator delete(begin);
}
v7 = (void *)pugi::xml_document::dxml_document(v4);
operator delete(v7);
}