//
// tinyxml2::XMLElement::ShallowClone from 0x1800a06c0 to 0x1800a074b (139 bytes)
//
// 3 xrefs:
// > ??> @ 0x18010b038
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c153c
//
// This function is hookable on this platform (idp: pc, 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 11:22:13 +0000
//
struct tinyxml2::XMLNode *__fastcall tinyxml2::XMLElement::ShallowClone(
tinyxml2::XMLElement *this,
struct XMLDocument *a2)
{
tinyxml2::XMLDocument *v2; // rbx
const char *Str; // rax
struct tinyxml2::XMLNode *result; // rax
_QWORD *v6; // rdi
tinyxml2::XMLElement *v7; // rsi
const char *v8; // rbx
const char *v9; // rax
struct tinyxml2::XMLAttribute *Attribute; // rax
v2 = a2;
if ( !a2 )
v2 = *((tinyxml2::XMLDocument **)this + 1);
Str = tinyxml2::StrPair::GetStr((tinyxml2::XMLElement *)((char *)this + 24));
result = tinyxml2::XMLDocument::NewElement(v2, Str);
v6 = *((_QWORD **)this + 12);
v7 = result;
if ( v6 )
{
do
{
v8 = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v6 + 4));
v9 = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v6 + 1));
Attribute = tinyxml2::XMLElement::FindOrCreateAttribute(v7, v9);
tinyxml2::StrPair::SetStr((void **)Attribute + 4, v8, 0);
v6 = (_QWORD *)v6[7];
}
while ( v6 );
return v7;
}
return result;
}