//
// sub_4E9FC from 0x4e9fc to 0x4ea42 (70 bytes)
//
// 1 xrefs:
// > sub_5B778 @ 0x5b7dc
//
// 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_4E9FC(int *a1, int a2, int a3)
{
int v5; // r4
int v7; // [sp+Ch] [bp-14h] BYREF
char v8; // [sp+10h] [bp-10h]
int v9; // [sp+14h] [bp-Ch] BYREF
v9 = a3;
v7 = *(_DWORD *)(a1[3] + 332);
j_FMOD_OS_CriticalSection_Enter(v7);
v8 = 1;
if ( a2 )
v5 = sub_4E314(a1, a2, &v9, 0, 1, (int (__fastcall *)(int, int, int *, int *, int))sub_4EA48);
else
v5 = 31;
sub_44984((int)&v7);
return v5;
}