//
// tinyxml2::XMLDocument::NewComment from 0x5ee794 to 0x5ee7be (42 bytes)
//
// 1 xrefs:
// > tinyxml2::XMLComment::ShallowClone @ 0x5ee7d4
//
// 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::NewComment(tinyxml2::XMLDocument *this, const char *a2)
{
char *v2; // r5
tinyxml2::XMLComment *v5; // r0
tinyxml2::XMLNode *v6; // r4
v2 = (char *)this + 296;
v5 = (tinyxml2::XMLComment *)tinyxml2::MemPoolT<44>::Alloc((int)this + 296);
v6 = v5;
if ( v5 )
tinyxml2::XMLComment::XMLComment(v5, this);
*((_DWORD *)v6 + 10) = v2;
tinyxml2::XMLNode::SetValue(v6, a2, 0);
return v6;
}