//
// FMOD_OS_CriticalSection_TryEnter from 0xe70b0 to 0xe70f4 (68 bytes)
//
// 1 xrefs:
// > ??> @ 0x82a8
//
// 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 FMOD_OS_CriticalSection_TryEnter(pthread_mutex_t *a1, char *a2)
{
int v3; // w0
char v4; // w8
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;
}