//
// sub_4D114 from 0x4d114 to 0x4d146 (50 bytes)
//
// 1 xrefs:
// > sub_57338 @ 0x577be
//
// 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_4D114(int a1, int a2)
{
int result; // r0
if ( !*(_BYTE *)(a1 + 336) )
return 0;
result = sub_4CD14(a1 + 8, a2);
if ( !result )
{
result = j_FMOD_OS_CriticalSection_Free(*(_DWORD *)(a1 + 332), 0);
if ( !result )
{
*(_BYTE *)(a1 + 336) = 0;
*(_DWORD *)(a1 + 332) = 0;
return 0;
}
}
return result;
}