//
// tinyxml2::XMLConstHandle::ToElement from 0x1800d13d0 to 0x1800d1401 (49 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ba374
//
// 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
//
const struct tinyxml2::XMLElement *__fastcall tinyxml2::XMLConstHandle::ToElement(tinyxml2::XMLConstHandle *this)
{
const struct tinyxml2::XMLElement *(__fastcall ***v2)(_QWORD); // rcx
v2 = *(const struct tinyxml2::XMLElement *(__fastcall ****)(_QWORD))this;
if ( v2 && (__int64)(**v2)(v2) )
return (***(const struct tinyxml2::XMLElement *(__fastcall ****)(_QWORD))this)(*(_QWORD *)this);
else
return nullptr;
}