//
// sub_5B976 from 0x5b976 to 0x5b99a (36 bytes)
//
// 1 xrefs:
// > sub_5A3E4 @ 0x5a3f0
//
// 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:40:48 +0000
//
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;
}