//
// sub_4D114 from 0x4d114 to 0x4d146 (50 bytes)
//
// 1 xrefs:
// > sub_57338 @ 0x577be
//
// 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:41 +0000
//
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;
}