//
// tinyxml2::XMLDocument::NewText from 0x5ee7d8 to 0x5ee812 (58 bytes)
//
// 3 xrefs:
// > sub_5DEB00 @ 0x5deb38
// > sub_5DEBD0 @ 0x5dec10
// > tinyxml2::XMLText::ShallowClone @ 0x5ee82e
//
// 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
//
_DWORD *__fastcall tinyxml2::XMLDocument::NewText(tinyxml2::XMLDocument *this, const char *a2)
{
char *v2; // r5
_DWORD *v5; // r0
_DWORD *v6; // r4
v2 = (char *)this + 220;
v5 = tinyxml2::MemPoolT<48>::Alloc((int)this + 220);
v6 = v5;
if ( v5 )
{
tinyxml2::XMLNode::XMLNode(v5, this);
*v6 = &off_AADE18;
*((_BYTE *)v6 + 44) = 0;
}
v6[10] = v2;
tinyxml2::XMLNode::SetValue((tinyxml2::XMLNode *)v6, a2, 0);
return v6;
}