//
// tinyxml2::XMLText::ShallowClone from 0xb26ef8 to 0xb26f40 (72 bytes)
//
// 2 xrefs:
// > ??> @ 0x34b00
// > ??> @ 0x1219570
//
// 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
//
_QWORD *__fastcall tinyxml2::XMLText::ShallowClone(
tinyxml2::XMLText *this,
tinyxml2::XMLDocument *a2,
__int64 a3,
int *a4)
{
tinyxml2::XMLDocument *v4; // x20
const char *Str; // x0
_QWORD *result; // x0
v4 = a2;
if ( !a2 )
v4 = *((tinyxml2::XMLDocument **)this + 1);
Str = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::XMLText *)((char *)this + 24), (__int64)a2, a3, a4);
result = tinyxml2::XMLDocument::NewText(v4, Str);
*((_BYTE *)result + 88) = *((_BYTE *)this + 88);
return result;
}