//
// tinyxml2::XMLDocument::NewElement from 0x5ee722 to 0x5ee74c (42 bytes)
//
// 7 xrefs:
// > sub_5DEB00 @ 0x5deb28
// > sub_5DEB00 @ 0x5deb7e
// > sub_5DEBD0 @ 0x5debde
// > sub_5DEBD0 @ 0x5debfe
// > cocos2d::CCFileUtils::writeToFile @ 0x5dec88
// > cocos2d::CCFileUtils::writeToFile @ 0x5dec9a
// > tinyxml2::XMLElement::ShallowClone @ 0x5ee762
//
// 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::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;
}