//
// tinyxml2::XMLPrinter::PushDeclaration from 0x5ef5d4 to 0x5ef616 (66 bytes)
//
// 2 xrefs:
// > tinyxml2::XMLPrinter::PushHeader @ 0x5ef642
// > tinyxml2::XMLPrinter::Visit @ 0x5ef67e
//
// 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
//
int __fastcall tinyxml2::XMLPrinter::PushDeclaration(tinyxml2::XMLPrinter *this, const char *a2)
{
if ( *((_BYTE *)this + 4) )
tinyxml2::XMLPrinter::SealElement(this);
if ( *((int *)this + 4) < 0 && !*((_BYTE *)this + 5) && !*((_BYTE *)this + 21) )
{
tinyxml2::XMLPrinter::Print(this, "\n");
tinyxml2::XMLPrinter::PrintSpace((int)this, *((_DWORD *)this + 3));
}
*((_BYTE *)this + 5) = 0;
return tinyxml2::XMLPrinter::Print(this, "%s?>", a2);
}