//
// sub_1800D6610 from 0x1800d6610 to 0x1800d66c4 (180 bytes)
//
// 3 xrefs:
// > sub_1800D44F0 @ 0x1800d47db
// > sub_1800D4950 @ 0x1800d49d9
// > ??> @ 0x1801ba8d8
//
// 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_1800D6610(__int64 a1)
{
__int64 (__fastcall *v2)(__int64); // rax
HWND v3; // rcx
HICON v4; // rcx
HICON v5; // rcx
if ( *(_QWORD *)(a1 + 72) )
sub_1800D8570();
v2 = *(__int64 (__fastcall **)(__int64))(a1 + 624);
if ( v2 )
LODWORD(v2) = v2(a1);
if ( qword_1801ABFE8 == a1 )
LODWORD(v2) = sub_1800D7F00(a1);
if ( qword_1801ABFF0 == a1 )
{
LODWORD(v2) = ClipCursor(nullptr);
qword_1801ABFF0 = 0;
}
v3 = *(HWND *)(a1 + 880);
if ( v3 )
{
RemovePropW(v3, L"GLFW");
LODWORD(v2) = DestroyWindow(*(HWND *)(a1 + 880));
*(_QWORD *)(a1 + 880) = 0;
}
v4 = *(HICON *)(a1 + 888);
if ( v4 )
LODWORD(v2) = DestroyIcon(v4);
v5 = *(HICON *)(a1 + 896);
if ( v5 )
LODWORD(v2) = DestroyIcon(v5);
return (int)v2;
}