//
// sub_1004B5DA8 from 0x1004b5da8 to 0x1004b5dd4 (44 bytes)
//
// 8 xrefs:
// > sub_10044C550 @ 0x10044c670
// > sub_10044C7E0 @ 0x10044c914
// > sub_10044E9B4 @ 0x10044eb88
// > sub_10044EFFC @ 0x10044f0b4
// > sub_1004ACA10 @ 0x1004aca94
// > sub_1004D5288 @ 0x1004d531c
// > sub_1004D5434 @ 0x1004d5514
// > sub_1004D5598 @ 0x1004d55d0
//
// 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_1004B5DA8(__int64 a1)
{
if ( !a1 )
return 31;
if ( semaphore_wait(a1) )
return 28;
return 0;
}