//
// sub_1800DDB90 from 0x1800ddb90 to 0x1800ddc0e (126 bytes)
//
// 2 xrefs:
// > sub_1800DC900 @ 0x1800dcd03
// > ??> @ 0x1801bae78
//
// 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_1800DDB90(unsigned int a1)
{
_QWORD *v2; // rax
bool v3; // zf
BOOL v5; // [rsp+30h] [rbp+8h] BYREF
v2 = sub_1800D99B0((__int64)&unk_1801AB18C);
v3 = v2[9] == 0;
*((_DWORD *)v2 + 162) = a1;
if ( v3 )
{
LODWORD(v2) = sub_1800D9D60(6u, 0, 0);
if ( (_DWORD)v2 )
{
LODWORD(v2) = sub_1800D9D60(6u, 2u, 0);
v5 = (int)v2;
if ( (_DWORD)v2 || (LODWORD(v2) = DwmIsCompositionEnabled(&v5), (int)v2 >= 0) && v5 )
a1 = 0;
}
}
if ( dword_1801AC130 )
LODWORD(v2) = qword_1801AC108(a1);
return (int)v2;
}