//
// tinyxml2::XMLUnknown::ShallowClone from 0xb272f0 to 0xb27340 (80 bytes)
//
// 2 xrefs:
// > ??> @ 0x346e0
// > ??> @ 0x1219750
//
// 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
//
tinyxml2::XMLUnknown *__fastcall tinyxml2::XMLUnknown::ShallowClone(
tinyxml2::XMLUnknown *this,
tinyxml2::XMLDocument *a2,
__int64 a3,
int *a4)
{
tinyxml2::XMLDocument *v4; // x19
const char *Str; // x1
v4 = a2;
if ( a2 )
{
Str = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::XMLUnknown *)((char *)this + 24), (__int64)a2, a3, a4);
}
else
{
v4 = *((tinyxml2::XMLDocument **)this + 1);
Str = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::XMLUnknown *)((char *)this + 24), 0, a3, a4);
}
return tinyxml2::XMLDocument::NewUnknown(v4, Str);
}