//
// tinyxml2::XMLPrinter::PushDeclaration from 0x18009b860 to 0x18009b8d2 (114 bytes)
//
// 3 xrefs:
// > tinyxml2::XMLPrinter::Visit @ 0x18009d328
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b711c
//
// 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::PushDeclaration(tinyxml2::XMLPrinter *this, const char *a2)
{
if ( *((_BYTE *)this + 8) )
{
*((_BYTE *)this + 8) = 0;
tinyxml2::XMLPrinter::Print(this, ">");
}
if ( *((int *)this + 7) < 0 && !*((_BYTE *)this + 9) && !*((_BYTE *)this + 33) )
{
tinyxml2::XMLPrinter::Print(this, "\n");
tinyxml2::XMLPrinter::PrintSpace(this, *((_DWORD *)this + 6));
}
*((_BYTE *)this + 9) = 0;
tinyxml2::XMLPrinter::Print(this, "%s?>", a2);
}