//
// tinyxml2::XMLDocument::LoadFile from 0xb2769c to 0xb27728 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x91a40
//
// 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
//
__int64 __fastcall tinyxml2::XMLDocument::LoadFile(tinyxml2::XMLNode **this, const char *a2)
{
FILE *v4; // x0
FILE *v5; // x20
tinyxml2::XMLNode::DeleteChildren(this);
tinyxml2::XMLDocument::InitDocument((tinyxml2::XMLDocument *)this);
v4 = fopen(a2, "rb");
v5 = v4;
if ( v4 )
{
tinyxml2::XMLDocument::LoadFile((__int64)this, v4);
fclose(v5);
}
else
{
tinyxml2::XMLDocument::SetError((__int64)this, 3, (__int64)a2, 0);
}
return *((unsigned int *)this + 23);
}