//
// 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!
//
// 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
//
__int64 __fastcall sub_1800C1490(_QWORD *a1)
{
HANDLE SemaphoreA; // rax
SemaphoreA = CreateSemaphoreA(nullptr, 0, 0xFFFF, nullptr);
if ( !SemaphoreA )
return 28;
*a1 = SemaphoreA;
return 0;
}