//
// GManager::loadFromString from 0x6a8cf0 to 0x6a8dbc (204 bytes)
//
// 2 xrefs:
// > GManager::loadFromCompressedString @ 0x6a8e18
// > ??> @ 0xe7040
//
// 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 12:50:47 +0000
//
void __fastcall GManager::loadFromString(__int64 a1, __int64 a2)
{
DS_Dictionary *v4; // x19
char RootSubDictFromString; // w0
char *v6; // x0
char *v7; // x2
v4 = (DS_Dictionary *)operator new(0xF0u);
DS_Dictionary::DS_Dictionary(v4);
RootSubDictFromString = DS_Dictionary::loadRootSubDictFromString(v4, a2);
if ( (*(_BYTE *)a2 & 1) != 0 )
{
**(_BYTE **)(a2 + 16) = 0;
*(_QWORD *)(a2 + 8) = 0;
}
else
{
*(_BYTE *)(a2 + 1) = 0;
*(_BYTE *)a2 = 0;
}
if ( RootSubDictFromString )
(*(void (__fastcall **)(__int64, DS_Dictionary *))(*(_QWORD *)a1 + 928LL))(a1, v4);
v6 = *((char **)v4 + 26);
if ( v6 )
{
v7 = *((char **)v4 + 27);
if ( v6 != v7 )
*((_QWORD *)v4 + 27) = &v7[8 * ~((unsigned __int64)(v7 - 8 - v6) >> 3)];
operator delete(v6);
}
pugi::xml_document::~xml_document(v4);
operator delete(v4);
}