//
// sub_1800E1290 from 0x1800e1290 to 0x1800e1339 (169 bytes)
//
// 2 xrefs:
// > sub_1800E0280 @ 0x1800e06d6
// > ??> @ 0x1801c5184
//
// 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
//
unsigned int __fastcall sub_1800E1290(_QWORD *a1)
{
__int64 v2; // rdx
__int64 v3; // rcx
__int64 v4; // r8
int Error; // eax
const char *v6; // rax
__int64 v8; // rdx
__int64 v9; // rcx
__int64 v10; // r8
int v11; // eax
const char *v12; // rax
if ( a1 )
{
if ( !(unsigned int)eglMakeCurrent(qword_1801B61E8, a1[84], a1[84], a1[83]) )
{
Error = eglGetError(v3, v2, v4);
v6 = sub_1800E1150(Error);
return (unsigned int)sub_1800DB260(0x10008u, "EGL: Failed to make context current: %s", v6);
}
}
else if ( !(unsigned int)eglMakeCurrent(qword_1801B61E8, 0, 0, 0) )
{
v11 = eglGetError(v9, v8, v10);
v12 = sub_1800E1150(v11);
return (unsigned int)sub_1800DB260(0x10008u, "EGL: Failed to clear current context: %s", v12);
}
return sub_1800DE130((__int64)&unk_1801B520C, a1);
}