//
// sub_4ECEC from 0x4ecec to 0x4ed5e (114 bytes)
//
// 1 xrefs:
// > sub_581BC @ 0x5820e
//
// 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:42 +0000
//
int __fastcall sub_4ECEC(_DWORD *a1)
{
int v2; // r0
int v3; // r5
int v4; // r0
int v5; // r0
int v6; // r0
int v7; // r0
v2 = a1[2] - 1;
a1[2] = v2;
if ( v2 )
return 0;
v3 = sub_447A8();
if ( !v3 )
{
v3 = sub_BB164();
if ( !v3 )
{
v3 = sub_C005C();
if ( !v3 )
{
v4 = a1[68];
if ( v4 )
{
j_FMOD_OS_CriticalSection_Free(v4, 0);
a1[68] = 0;
}
v5 = a1[67];
if ( v5 )
{
j_FMOD_OS_CriticalSection_Free(v5, 0);
a1[67] = 0;
}
v6 = a1[66];
if ( v6 )
{
j_FMOD_OS_CriticalSection_Free(v6, 0);
a1[66] = 0;
}
v7 = a1[1];
v3 = 0;
if ( v7 )
{
j_FMOD_OS_CriticalSection_Free(v7, 0);
a1[1] = 0;
}
}
}
}
return v3;
}