//
// FMOD_OS_CriticalSection_TryEnter from 0xc05a8 to 0xc05c8 (32 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall FMOD_OS_CriticalSection_TryEnter(pthread_mutex_t *a1, char *a2)
{
int v3; // r0
char v4; // r0
v3 = pthread_mutex_trylock(a1);
if ( !v3 )
{
v4 = 1;
goto LABEL_5;
}
if ( v3 == 16 )
{
v4 = 0;
LABEL_5:
*a2 = v4;
return 0;
}
return 28;
}