//
// tinyxml2::XMLPrinter::PushText from 0xd996f8 to 0xd9978c (148 bytes)
//
// 7 xrefs:
// > tinyxml2::XMLPrinter::Visit @ 0xd997b4
// > tinyxml2::XMLPrinter::PushText @ 0xd9980c
// > tinyxml2::XMLPrinter::PushText @ 0xd99878
// > tinyxml2::XMLPrinter::PushText @ 0xd998e4
// > tinyxml2::XMLPrinter::PushText @ 0xd9994c
// > tinyxml2::XMLPrinter::PushText @ 0xd999b4
// > ??> @ 0x83998
//
// 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::XMLPrinter::PushText(tinyxml2::XMLPrinter *this, const char *a2, unsigned __int8 a3)
{
int v4; // w21
int v6; // w2
v4 = a3;
v6 = *((unsigned __int8 *)this + 8);
*((_DWORD *)this + 7) = *((_DWORD *)this + 6) - 1;
if ( v6 )
tinyxml2::XMLPrinter::SealElement(this);
if ( !v4 )
return tinyxml2::XMLPrinter::PrintString(this, a2, 1);
tinyxml2::XMLPrinter::Print(this, "");
}