//
// tinyxml2::XMLText::ShallowClone from 0xd97a9c to 0xd97ae4 (72 bytes)
//
// 2 xrefs:
// > ??> @ 0x4d8c0
// > ??> @ 0x152f3d0
//
// 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:22 +0000
//
_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;
}