//
// sub_1800DE660 from 0x1800de660 to 0x1800de6a3 (67 bytes)
//
// 4 xrefs:
// > sub_1800DA2E0 @ 0x1800da344
// > sub_1800DE0E0 @ 0x1800de461
// > sub_1800DE0E0 @ 0x1800de4a7
// > ??> @ 0x1801baeb4
//
// 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
//
int __fastcall sub_1800DE660(__int64 a1, __int64 a2, __int64 a3)
{
int result; // eax
if ( qword_1801AC168 )
{
result = eglTerminate(qword_1801AC168, a2, a3);
qword_1801AC168 = 0;
}
if ( qword_1801AC198 )
{
result = FreeLibrary(qword_1801AC198);
qword_1801AC198 = nullptr;
}
return result;
}