//
// sub_4CD14 from 0x4cd14 to 0x4cd74 (96 bytes)
//
// 1 xrefs:
// > sub_4D114 @ 0x4d124
//
// 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_4CD14(int a1, int a2)
{
int v3; // r5
int v5; // r0
int v6; // r1
v3 = sub_BE788(a1, a2);
if ( !v3 )
{
v5 = *(_DWORD *)(a1 + 316);
if ( v5 )
{
v3 = j_FMOD_OS_CriticalSection_Free(v5, 0);
if ( v3 )
return v3;
*(_DWORD *)(a1 + 316) = 0;
}
v6 = *(_DWORD *)(a1 + 300);
v3 = 0;
if ( v6 )
{
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v6, "../../src/fmod_geometry_mgr.cpp", 117, 1);
*(_DWORD *)(a1 + 300) = 0;
}
}
return v3;
}