//
// FMOD_OS_CriticalSection_TryEnter from 0xc05a8 to 0xc05c8 (32 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:41:48 +0000
//
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;
}