//
// sub_5B976 from 0x5b976 to 0x5b99a (36 bytes)
//
// 1 xrefs:
// > sub_5A3E4 @ 0x5a3f0
//
// 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 sub_5B976(int *a1, int a2)
{
int v3; // r0
int result; // r0
v3 = *a1;
if ( v3 )
j_FMOD_OS_CriticalSection_Enter(v3);
sub_54A38(a2);
result = *a1;
if ( *a1 )
return j_j_FMOD_OS_CriticalSection_Leave(result);
return result;
}