//
// tinyxml2::XMLDocument::Print from 0x18009afa0 to 0x18009b072 (210 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6ffc
//
// 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
//
// Hidden C++ exception states: #wind=1
void __fastcall tinyxml2::XMLDocument::Print(tinyxml2::XMLDocument *this, struct tinyxml2::XMLPrinter *a2)
{
FILE *v4; // rax
struct tinyxml2::XMLPrinter *v5; // rdx
_QWORD v6[21]; // [rsp+20h] [rbp-178h] BYREF
void *v7; // [rsp+C8h] [rbp-D0h]
char v8; // [rsp+D0h] [rbp-C8h] BYREF
void *v9; // [rsp+128h] [rbp-70h]
char v10; // [rsp+130h] [rbp-68h] BYREF
void *Block; // [rsp+150h] [rbp-48h]
char v12; // [rsp+158h] [rbp-40h] BYREF
v4 = _acrt_iob_func(1u);
tinyxml2::XMLPrinter::XMLPrinter((tinyxml2::XMLPrinter *)v6, v4, 0);
v5 = (struct tinyxml2::XMLPrinter *)v6;
if ( a2 )
v5 = a2;
(*(void (__fastcall **)(tinyxml2::XMLDocument *, struct tinyxml2::XMLPrinter *))(*(_QWORD *)this + 112LL))(this, v5);
v6[0] = &tinyxml2::XMLPrinter::`vftable';
if ( Block != &v12 )
j_j_free_0(Block);
if ( v9 != &v10 )
j_j_free_0(v9);
if ( v7 != &v8 )
j_j_free_0(v7);
}