//
// sub_1800E0CD0 from 0x1800e0cd0 to 0x1800e0d13 (67 bytes)
//
// 4 xrefs:
// > sub_1800E0750 @ 0x1800e0ad1
// > sub_1800E0750 @ 0x1800e0b17
// > sub_1800E2230 @ 0x1800e2294
// > ??> @ 0x1801c5118
//
// 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:36 +0000
//
int __fastcall sub_1800E0CD0(__int64 a1, __int64 a2, __int64 a3)
{
int result; // eax
if ( qword_1801B61E8 )
{
result = eglTerminate(qword_1801B61E8, a2, a3);
qword_1801B61E8 = 0;
}
if ( hLibModule )
{
result = FreeLibrary(hLibModule);
hLibModule = nullptr;
}
return result;
}