//
// GManager::loadFromString from 0x1002e79c8 to 0x1002e7a60 (152 bytes)
//
// 1 xrefs:
// > GManager::loadFromCompressedString @ 0x1002e7ac8
//
// This function is hookable on this platform (idp: arm, 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 11:02:51 +0000
//
void __fastcall GManager::loadFromString(__int64 a1, __int64 a2)
{
_QWORD *v4; // x19
int RootSubDictFromString; // w0
void *v6; // x0
void *v7; // x0
v4 = operator new(0xF0u);
j_DS_Dictionary::DS_Dictionary((__int64)v4);
RootSubDictFromString = DS_Dictionary::loadRootSubDictFromString((__int64)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, _QWORD *))(*(_QWORD *)a1 + 928LL))(a1, v4);
LABEL_4:
v6 = (void *)v4[26];
if ( v6 )
{
v4[27] = v6;
operator delete(v6);
}
v7 = (void *)pugi::xml_document::dxml_document(v4);
operator delete(v7);
}