//
// sub_1800C1490 from 0x1800c1490 to 0x1800c14c7 (55 bytes)
//
// 7 xrefs:
// > sub_1800B61E0 @ 0x1800b62a1
// > sub_1800B8690 @ 0x1800b8736
// > sub_1800B8690 @ 0x1800b8753
// > sub_1801120C0 @ 0x18011213b
// > sub_1801120C0 @ 0x180112148
// > sub_180114120 @ 0x180114237
// > ??> @ 0x1801fdbb4
//
// 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 10:54:03 +0000
//
__int64 __fastcall sub_1800C1490(_QWORD *a1)
{
HANDLE SemaphoreA; // rax
SemaphoreA = CreateSemaphoreA(nullptr, 0, 0xFFFF, nullptr);
if ( !SemaphoreA )
return 28;
*a1 = SemaphoreA;
return 0;
}