//
// tinyxml2::XMLDocument::NewText from 0x7f9830 to 0x7f986a (58 bytes)
//
// 3 xrefs:
// > sub_7E6F24 @ 0x7e6f5c
// > sub_7E6FF4 @ 0x7e7034
// > tinyxml2::XMLText::ShallowClone @ 0x7f9886
//
// 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
//
_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_D117D0;
*((_BYTE *)v6 + 44) = 0;
}
v6[10] = v2;
tinyxml2::XMLNode::SetValue((tinyxml2::XMLNode *)v6, a2, 0);
return v6;
}