//
// sub_4EBE8 from 0x4ebe8 to 0x4ec16 (46 bytes)
//
// 1 xrefs:
// > sub_5B6F0 @ 0x5b72e
//
// 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_4EBE8(int a1, int a2, int a3, int a4)
{
int v6; // [sp+0h] [bp-10h] BYREF
int v7; // [sp+4h] [bp-Ch]
v6 = a3;
v7 = a4;
v6 = *(_DWORD *)(*(_DWORD *)(a1 + 12) + 332);
j_FMOD_OS_CriticalSection_Enter(v6);
LOBYTE(v7) = 1;
sub_5006E(*(_DWORD *)(*(_DWORD *)(a1 + 12) + 340));
return sub_44984((int)&v6);
}