//
// sub_1005DBED4 from 0x1005dbed4 to 0x1005dbf10 (60 bytes)
//
// 9 xrefs:
// > sub_100572D5C @ 0x100572da8
// > sub_100572D5C @ 0x100572dc8
// > sub_100574020 @ 0x100574078
// > sub_100574020 @ 0x1005740a8
// > sub_100574B1C @ 0x100574da8
// > sub_10057536C @ 0x1005754b8
// > sub_1005D2A60 @ 0x1005d2aa0
// > sub_1005FB700 @ 0x1005fb748
// > sub_1005FB700 @ 0x1005fb758
//
// 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_1005DBED4(__int64 semaphore)
{
if ( !semaphore )
return 31;
if ( semaphore_destroy(mach_task_self_, semaphore) )
return 28;
return 0;
}