//
// tinyxml2::XMLElement::ShallowClone from 0x7f97a4 to 0x7f97ec (72 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:13 +0000
//
tinyxml2::XMLElement *__fastcall tinyxml2::XMLElement::ShallowClone(
tinyxml2::XMLElement *this,
tinyxml2::XMLDocument *a2)
{
tinyxml2::XMLDocument *v3; // r5
const char *Str; // r0
tinyxml2::XMLNode *v5; // r0
_DWORD *v6; // r4
tinyxml2::XMLElement *v7; // r5
tinyxml2::XMLUtil *v8; // r7
const char *v9; // r6
tinyxml2::XMLAttribute *Attribute; // r0
v3 = a2;
if ( !a2 )
v3 = *((tinyxml2::XMLDocument **)this + 1);
Str = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::XMLElement *)((char *)this + 12));
v5 = tinyxml2::XMLDocument::NewElement(v3, Str);
v6 = *((_DWORD **)this + 12);
v7 = v5;
while ( v6 )
{
v8 = (tinyxml2::XMLUtil *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v6 + 1));
v9 = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v6 + 4));
Attribute = tinyxml2::XMLElement::FindOrCreateAttribute(v7, v8);
tinyxml2::XMLAttribute::SetAttribute(Attribute, v9);
v6 = (_DWORD *)v6[7];
}
return v7;
}