//
// sub_1800D77E0 from 0x1800d77e0 to 0x1800d7853 (115 bytes)
//
// 5 xrefs:
// > sub_1800D6CB0 @ 0x1800d6d3b
// > sub_1800D7DA0 @ 0x1800d7e53
// > sub_1800D8740 @ 0x1800d89af
// > sub_1800D8740 @ 0x1800d8aac
// > ??> @ 0x1801baa1c
//
// 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
//
BOOL __fastcall sub_1800D77E0(__int64 a1)
{
BOOL result; // eax
struct tagRECT Rect; // [rsp+20h] [rbp-28h] BYREF
GetClientRect(*(HWND *)(a1 + 880), &Rect);
ClientToScreen(*(HWND *)(a1 + 880), (LPPOINT)&Rect);
ClientToScreen(*(HWND *)(a1 + 880), (LPPOINT)&Rect.right);
result = ClipCursor(&Rect);
qword_1801ABFF0 = a1;
return result;
}