//
// tinyxml2::XMLPrinter::OpenElement from 0x18009de10 to 0x18009deb4 (164 bytes)
//
// 3 xrefs:
// > tinyxml2::XMLPrinter::VisitEnter @ 0x1800a108f
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1170
//
// This function is hookable on this platform (idp: pc, 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 11:22:12 +0000
//
void __fastcall tinyxml2::XMLPrinter::OpenElement(tinyxml2::XMLPrinter *this, const char *a2)
{
if ( *((_BYTE *)this + 8) )
{
*((_BYTE *)this + 8) = 0;
tinyxml2::XMLPrinter::Print(this, ">");
}
tinyxml2::DynArray::EnsureCapacity((__int64)this + 168, *((_DWORD *)this + 65) + 1);
*(_QWORD *)(*((_QWORD *)this + 21) + 8LL * (int)(*((_DWORD *)this + 65))++) = a2;
if ( *((int *)this + 7) < 0 && !*((_BYTE *)this + 9) && !*((_BYTE *)this + 33) )
{
tinyxml2::XMLPrinter::Print(this, "\n");
tinyxml2::XMLPrinter::PrintSpace(this, *((_DWORD *)this + 6));
}
tinyxml2::XMLPrinter::Print(this, "<%s", a2);
++*((_DWORD *)this + 6);
*((_WORD *)this + 4) = 1;
}