//
// GManager::loadFromString from 0x1004a4fe0 to 0x1004a5076 (150 bytes)
//
// 1 xrefs:
// > GManager::loadFromCompressedString @ 0x1004a50d5
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:30:54 +0000
//
void __fastcall GManager::loadFromString(__int64 a1, __int64 a2)
{
_QWORD *v2; // rbx
char RootSubDictFromString; // al
void *v4; // rdi
v2 = operator new(0xF0u);
sub_100158EB0((__int64)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, _QWORD *))(*(_QWORD *)a1 + 928LL))(a1, v2);
LABEL_6:
v4 = (void *)v2[26];
if ( v4 )
{
v2[27] = v4;
operator delete(v4);
}
pugi::xml_document::dxml_document(v2);
operator delete(v2);
}