//
// tinyxml2::XMLDocument::LoadFile from 0xd98240 to 0xd982cc (140 bytes)
//
// 1 xrefs:
// > ??> @ 0xc0940
//
// This function is hookable on this platform (idp: arm, 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 13:08:22 +0000
//
__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);
}