//
// sub_68404 from 0x68404 to 0x6845e (90 bytes)
//
// 0 xrefs:
//
// 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:56 +0000
//
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;
}