//
// sub_1800DEA20 from 0x1800dea20 to 0x1800dea94 (116 bytes)
//
// 3 xrefs:
// > sub_1800DDC10 @ 0x1800de0b1
// > ??> @ 0x1801baef0
// > ??> @ 0x1801baefc
//
// 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_1800DEA20(_QWORD *a1)
{
HMODULE v2; // rcx
int result; // eax
v2 = (HMODULE)a1[85];
if ( v2 )
{
result = FreeLibrary(v2);
a1[85] = 0;
}
if ( a1[84] )
{
result = eglDestroySurface(qword_1801AC168);
a1[84] = 0;
}
if ( a1[83] )
{
result = eglDestroyContext(qword_1801AC168);
a1[83] = 0;
}
return result;
}