//
// sub_68404 from 0x68404 to 0x6845e (90 bytes)
//
// 0 xrefs:
//
// 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_68404(int a1)
{
int v2; // r1
int result; // r0
v2 = FMOD::DSPTransceiver::sCriticalSection[*(_DWORD *)(a1 + 28) + 4];
if ( v2 )
{
sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v2, "../../src/fmod_dsp_transceiver.cpp", 941, 1);
FMOD::DSPTransceiver::sCriticalSection[*(_DWORD *)(a1 + 28) + 4] = 0;
}
if ( --FMOD::DSPTransceiver::sRefCount )
return 0;
result = j_FMOD_OS_CriticalSection_Free(FMOD::DSPTransceiver::sCriticalSection[0], 0);
if ( !result )
{
FMOD::DSPTransceiver::sCriticalSection[0] = 0;
return 0;
}
return result;
}