//
// tinyxml2::XMLDocument::Print from 0x18009ec50 to 0x18009ed22 (210 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c129c
//
// This function is hookable on this platform (idp: pc, 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 11:22:12 +0000
//
// 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);
}