//
// tinyxml2::XMLPrinter::PushComment from 0xb28e3c to 0xb28ec4 (136 bytes)
//
// 2 xrefs:
// > tinyxml2::XMLPrinter::Visit @ 0xb28ee4
// > ??> @ 0x80f88
//
// 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
//
__int64 __fastcall tinyxml2::XMLPrinter::PushComment(tinyxml2::XMLPrinter *this, const char *a2)
{
const char *v2; // x2
const char *v5; // [xsp+28h] [xbp+28h]
v2 = a2;
if ( *((_BYTE *)this + 8) )
{
tinyxml2::XMLPrinter::SealElement(this);
v2 = a2;
}
if ( (*((_DWORD *)this + 7) & 0x80000000) != 0 && !*((_BYTE *)this + 9) && !*((_BYTE *)this + 33) )
{
v5 = v2;
tinyxml2::XMLPrinter::Print(this, &byte_F1AB78);
tinyxml2::XMLPrinter::PrintSpace(this, *((_DWORD *)this + 6));
v2 = v5;
}
*((_BYTE *)this + 9) = 0;
return tinyxml2::XMLPrinter::Print(this, "", v2);
}