//
// tinyxml2::XMLPrinter::PushText from 0x18009bc60 to 0x18009bce2 (130 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b7170
//
// 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 tinyxml2::XMLPrinter::PushText(tinyxml2::XMLPrinter *this)
{
bool v2; // zf
char Buffer[208]; // [rsp+20h] [rbp-E8h] BYREF
sub_18009CFD0(Buffer, 0xC8u, "%d");
v2 = *((_BYTE *)this + 8) == 0;
*((_DWORD *)this + 7) = *((_DWORD *)this + 6) - 1;
if ( !v2 )
{
*((_BYTE *)this + 8) = 0;
tinyxml2::XMLPrinter::Print(this, ">");
}
tinyxml2::XMLPrinter::PrintString(this, Buffer, 1u);
}