//
// tinyxml2::XMLDocument::SaveFile from 0xd98d80 to 0xd98e2c (172 bytes)
//
// 2 xrefs:
// > tinyxml2::XMLDocument::SaveFile @ 0xd98e6c
// > ??> @ 0x4e3b8
//
// 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 13:08:23 +0000
//
__int64 __fastcall tinyxml2::XMLDocument::SaveFile(tinyxml2::XMLDocument *a1, __int64 a2, char a3)
{
unsigned int v4; // w21
_QWORD v6[21]; // [xsp+38h] [xbp+38h] BYREF
void *v7; // [xsp+E0h] [xbp+E0h]
__int64 v8; // [xsp+E8h] [xbp+E8h] BYREF
void *v9; // [xsp+140h] [xbp+140h]
__int64 v10; // [xsp+148h] [xbp+148h] BYREF
tinyxml2::XMLPrinter::XMLPrinter((__int64)v6, a2, a3);
tinyxml2::XMLDocument::Print(a1, (tinyxml2::XMLPrinter *)v6);
v4 = *((_DWORD *)a1 + 23);
v6[0] = off_152F730;
if ( v9 != &v10 && v9 )
operator delete[](v9);
if ( v7 != &v8 && v7 )
operator delete[](v7);
return v4;
}