//
// sub_1004B5D6C from 0x1004b5d6c to 0x1004b5da8 (60 bytes)
//
// 9 xrefs:
// > sub_10044CBF4 @ 0x10044cc40
// > sub_10044CBF4 @ 0x10044cc60
// > sub_10044DEB8 @ 0x10044df10
// > sub_10044DEB8 @ 0x10044df40
// > sub_10044E9B4 @ 0x10044ec40
// > sub_10044F204 @ 0x10044f350
// > sub_1004AC8F8 @ 0x1004ac938
// > sub_1004D5598 @ 0x1004d55e0
// > sub_1004D5598 @ 0x1004d55f0
//
// 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_1004B5D6C(__int64 semaphore)
{
if ( !semaphore )
return 31;
if ( semaphore_destroy(mach_task_self_, semaphore) )
return 28;
return 0;
}