//
// tinyxml2::XMLConstHandle::ToElement from 0x1800d57a0 to 0x1800d57d1 (49 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c4740
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:22:32 +0000
//
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;
}