//
// sub_6AFD4 from 0x6afd4 to 0x6b018 (68 bytes)
//
// 2 xrefs:
// > sub_6B1E0 @ 0x6b20e
// > sub_6B1E0 @ 0x6b218
//
// 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_6AFD4(_DWORD *a1)
{
int result; // r0
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), *a1, "../../src/fmod_profile_client.cpp", 370, 1);
result = j_FMOD_OS_CriticalSection_Free(a1[6], 0);
if ( !result )
{
result = sub_C061C(a1[7]);
if ( !result )
return sub_C061C(a1[8]);
}
return result;
}