//
// tinyxml2::XMLDeclaration::ShallowClone from 0xb270f8 to 0xb27148 (80 bytes)
//
// 2 xrefs:
// > ??> @ 0x33fd8
// > ??> @ 0x12196b0
//
// 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::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);
}