//
// sub_1800DDB00 from 0x1800ddb00 to 0x1800ddb89 (137 bytes)
//
// 4 xrefs:
// > sub_1800DC900 @ 0x1800dccf5
// > ??> @ 0x180143428
// > ??> @ 0x180143438
// > ??> @ 0x1801bae54
//
// 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_1800DDB00(__int64 a1)
{
int v2; // ebx
BOOL v4; // [rsp+30h] [rbp+8h] BYREF
if ( !*(_QWORD *)(a1 + 72) && sub_1800D9D60(6u, 0, 0) )
{
v4 = sub_1800D9D60(6u, 2u, 0);
if ( v4 || DwmIsCompositionEnabled(&v4) >= 0 && v4 )
{
v2 = -*(_DWORD *)(a1 + 648);
if ( *(int *)(a1 + 648) > 0 )
v2 = *(_DWORD *)(a1 + 648);
for ( ; v2; --v2 )
DwmFlush();
}
}
return SwapBuffers(*(HDC *)(a1 + 632));
}