//
// tinyxml2::XMLDocument::Print from 0xb2811c to 0xb281e0 (196 bytes)
//
// 2 xrefs:
// > tinyxml2::XMLDocument::SaveFile @ 0xb28218
// > ??> @ 0x98970
//
// 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
//
__int64 __fastcall tinyxml2::XMLDocument::Print(tinyxml2::XMLDocument *this, tinyxml2::XMLPrinter *a2)
{
long double v4; // q0
tinyxml2::XMLPrinter *v5; // x1
_QWORD v7[21]; // [xsp+38h] [xbp+38h] BYREF
void *v8; // [xsp+E0h] [xbp+E0h]
__int64 v9; // [xsp+E8h] [xbp+E8h] BYREF
void *p; // [xsp+140h] [xbp+140h]
__int64 v11; // [xsp+148h] [xbp+148h] BYREF
v4 = tinyxml2::XMLPrinter::XMLPrinter((__int64)v7, (__int64)&_sF + 152, 0);
if ( a2 )
v5 = a2;
else
v5 = (tinyxml2::XMLPrinter *)v7;
(*(void (__fastcall **)(tinyxml2::XMLDocument *, tinyxml2::XMLPrinter *, long double))(*(_QWORD *)this + 112LL))(
this,
v5,
v4);
v7[0] = off_12198D0;
if ( p != &v11 && p )
operator delete[](p);
if ( v8 != &v9 && v8 )
operator delete[](v8);
return _stack_chk_guard;
}