//
// tinyxml2::XMLDeclaration::ShallowClone from 0xd97c9c to 0xd97cec (80 bytes)
//
// 2 xrefs:
// > ??> @ 0x4c9f0
// > ??> @ 0x152f510
//
// 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::XMLDeclaration *__fastcall tinyxml2::XMLDeclaration::ShallowClone(
tinyxml2::XMLDeclaration *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::XMLDeclaration *)((char *)this + 24), (__int64)a2, a3, a4);
}
else
{
v4 = *((tinyxml2::XMLDocument **)this + 1);
Str = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::XMLDeclaration *)((char *)this + 24), 0, a3, a4);
}
return tinyxml2::XMLDocument::NewDeclaration(v4, Str);
}