//
// sub_4CD14 from 0x4cd14 to 0x4cd74 (96 bytes)
//
// 1 xrefs:
// > sub_4D114 @ 0x4d124
//
// 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_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;
}