//
// GManager::saveGMTo from 0x2f0338 to 0x2f03ba (130 bytes)
//
// 1 xrefs:
// > GManager::save @ 0x2f03ec
//
// 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::saveGMTo(int a1, const char *a2)
{
DS_Dictionary *v4; // r4
const char *v5[2]; // [sp+0h] [bp-8h] BYREF
v5[0] = (const char *)a1;
v5[1] = a2;
v4 = (DS_Dictionary *)operator new(0xD8u);
DS_Dictionary::DS_Dictionary(v4);
(*(void (__fastcall **)(int, DS_Dictionary *))(*(_DWORD *)a1 + 444))(a1, v4);
sub_775C20(v5, a2);
GManager::saveData(a1, v4, v5);
sub_774008(v5);
*(_BYTE *)(a1 + 269) = 0;
std::_Vector_base
::~_Vector_base((void **)&v4->dictTree.m_start);
pugi::xml_document::~xml_document(&v4->doc);
operator delete(v4);
}