//
// sub_4ECA0 from 0x4eca0 to 0x4ecec (76 bytes)
//
// 1 xrefs:
// > FMOD_System_Create @ 0x4326a
//
// 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_4ECA0(int a1)
{
int v2; // r0
int result; // r0
v2 = *(_DWORD *)(a1 + 8);
if ( v2 )
goto LABEL_2;
result = j_FMOD_OS_CriticalSection_Create(a1 + 268, 0);
if ( !result )
{
result = j_FMOD_OS_CriticalSection_Create(a1 + 264, 0);
if ( !result )
{
result = j_FMOD_OS_CriticalSection_Create(a1 + 272, 0);
if ( !result )
{
result = j_FMOD_OS_CriticalSection_Create(a1 + 4, 0);
if ( !result )
{
result = sub_C0034();
if ( !result )
{
v2 = *(_DWORD *)(a1 + 8);
LABEL_2:
*(_DWORD *)(a1 + 8) = v2 + 1;
return 0;
}
}
}
}
}
return result;
}