//
// tinyxml2::XMLDocument::NewElement from 0x7f977a to 0x7f97a4 (42 bytes)
//
// 7 xrefs:
// > sub_7E6F24 @ 0x7e6f4c
// > sub_7E6F24 @ 0x7e6fa2
// > sub_7E6FF4 @ 0x7e7002
// > sub_7E6FF4 @ 0x7e7022
// > cocos2d::CCFileUtils::writeToFile @ 0x7e70ac
// > cocos2d::CCFileUtils::writeToFile @ 0x7e70be
// > tinyxml2::XMLElement::ShallowClone @ 0x7f97ba
//
// 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::XMLNode *__fastcall tinyxml2::XMLDocument::NewElement(tinyxml2::XMLDocument *this, const char *a2)
{
char *v2; // r5
tinyxml2::XMLElement *v5; // r0
tinyxml2::XMLNode *v6; // r4
v2 = (char *)this + 68;
v5 = (tinyxml2::XMLElement *)tinyxml2::MemPoolT<52>::Alloc((int)this + 68);
v6 = v5;
if ( v5 )
tinyxml2::XMLElement::XMLElement(v5, this);
*((_DWORD *)v6 + 10) = v2;
tinyxml2::XMLNode::SetValue(v6, a2, 0);
return v6;
}