//
// tinyxml2::XMLPrinter::PrintString from 0x18009ef80 to 0x18009f09d (285 bytes)
//
// 17 xrefs:
// > tinyxml2::XMLPrinter::PushAttribute @ 0x18009f218
// > tinyxml2::XMLPrinter::PushAttribute @ 0x18009f29b
// > tinyxml2::XMLPrinter::PushAttribute @ 0x18009f32b
// > tinyxml2::XMLPrinter::PushAttribute @ 0x18009f3c0
// > tinyxml2::XMLPrinter::PushAttribute @ 0x18009f45c
// > tinyxml2::XMLPrinter::PushText @ 0x18009f6a3
// > tinyxml2::XMLPrinter::PushText @ 0x18009f733
// > tinyxml2::XMLPrinter::PushText @ 0x18009f7cc
// > tinyxml2::XMLPrinter::PushText @ 0x18009f858
// > tinyxml2::XMLPrinter::PushText @ 0x18009f910
// > tinyxml2::XMLPrinter::PushText @ 0x18009f984
// > tinyxml2::XMLPrinter::VisitEnter @ 0x1800a10d0
// > ??> @ 0x1801480f8
// > ??> @ 0x180148134
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c12d8
// > ??> @ 0x1801c12e4
//
// 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::PrintString(tinyxml2::XMLPrinter *this, const char *a2, unsigned __int8 a3)
{
const char *v3; // rbx
const char *v5; // rdi
char *v6; // rbp
char i; // al
__int64 v8; // r8
const char *v9; // rax
v3 = a2;
v5 = a2;
v6 = (char *)this + 64 * (unsigned __int64)a3;
if ( *((_BYTE *)this + 32) )
{
for ( i = *a2; i; ++v5 )
{
if ( (unsigned __int8)(i - 1) <= 0x3Eu && v6[*v5 + 34] )
{
for ( ; v3 < v5; ++v3 )
tinyxml2::XMLPrinter::Print(this, "%c", (unsigned int)*v3);
v8 = 0;
v9 = (const char *)&unk_18010AC5C;
while ( *v9 != *v5 )
{
++v8;
v9 += 16;
if ( (__int64)v9 >= (__int64)"apos" )
goto LABEL_12;
}
tinyxml2::XMLPrinter::Print(this, "&%s;", (&off_18010AC50)[2 * v8]);
LABEL_12:
++v3;
}
i = v5[1];
}
}
if ( !*((_BYTE *)this + 32) || v5 - v3 > 0 )
tinyxml2::XMLPrinter::Print(this, "%s", v3);
}