//
// sub_1005DBF10 from 0x1005dbf10 to 0x1005dbf3c (44 bytes)
//
// 8 xrefs:
// > sub_1005726B8 @ 0x1005727d8
// > sub_100572948 @ 0x100572a7c
// > sub_100574B1C @ 0x100574cf0
// > sub_100575164 @ 0x10057521c
// > sub_1005D2B78 @ 0x1005d2bfc
// > sub_1005FB3F0 @ 0x1005fb484
// > sub_1005FB59C @ 0x1005fb67c
// > sub_1005FB700 @ 0x1005fb738
//
// This function is hookable on this platform (idp: arm, 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 11:09:37 +0000
//
__int64 __fastcall sub_1005DBF10(__int64 a1)
{
if ( !a1 )
return 31;
if ( semaphore_wait(a1) )
return 28;
return 0;
}