//
// tinyxml2::XMLComment::ShallowClone from 0xd97898 to 0xd978e8 (80 bytes)
//
// 2 xrefs:
// > ??> @ 0x4e298
// > ??> @ 0x152f470
//
// 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
//
tinyxml2::XMLComment *__fastcall tinyxml2::XMLComment::ShallowClone(
tinyxml2::XMLComment *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::XMLComment *)((char *)this + 24), (__int64)a2, a3, a4);
}
else
{
v4 = *((tinyxml2::XMLDocument **)this + 1);
Str = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::XMLComment *)((char *)this + 24), 0, a3, a4);
}
return tinyxml2::XMLDocument::NewComment(v4, Str);
}