//
// tinyxml2::XMLPrinter::PushComment from 0xd999dc to 0xd99a64 (136 bytes)
//
// 2 xrefs:
// > tinyxml2::XMLPrinter::Visit @ 0xd99a84
// > ??> @ 0xab9e8
//
// 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::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_11AAA48);
tinyxml2::XMLPrinter::PrintSpace(this, *((_DWORD *)this + 6));
v2 = v5;
}
*((_BYTE *)this + 9) = 0;
return tinyxml2::XMLPrinter::Print(this, "", v2);
}