//
// sub_6806C from 0x6806c to 0x6815e (242 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_6806C(int *a1)
{
int v2; // r3
int v3; // r8
int v4; // r5
int v5; // r4
_DWORD *v6; // r0
int v7; // r0
int v8; // r6
int v9; // r0
int v11; // r8
int i; // r6
int v13; // [sp+8h] [bp-20h] BYREF
int v14; // [sp+Ch] [bp-1Ch] BYREF
int v15; // [sp+10h] [bp-18h] BYREF
char v16; // [sp+14h] [bp-14h]
v15 = FMOD::DSPTransceiver::sCriticalSection[0];
j_FMOD_OS_CriticalSection_Enter(FMOD::DSPTransceiver::sCriticalSection[0]);
v16 = 1;
if ( !FMOD::DSPTransceiver::sCriticalSection[a1[7] + 4] )
{
v9 = sub_BD580(
*(int *)((char *)&dword_14C + (_DWORD)off_E8000),
2432,
"../../src/fmod_dsp_transceiver.cpp",
"GNU",
0);
FMOD::DSPTransceiver::sCriticalSection[a1[7] + 4] = v9;
if ( !v9 )
{
v8 = 38;
goto LABEL_16;
}
v14 = 0;
v7 = (*(int (__fastcall **)(int *, int *))(a1[6] + 16))(a1, &v14);
if ( v7 || (v13 = 0, (v7 = (*(int (__fastcall **)(int *, int *, _DWORD))(a1[6] + 28))(a1, &v13, 0)) != 0) )
{
LABEL_14:
v8 = v7;
goto LABEL_16;
}
v11 = sub_537B4(v13);
for ( i = 0; i != 2432; i += 76 )
sub_679CE((_DWORD *)(FMOD::DSPTransceiver::sCriticalSection[a1[7] + 4] + i), v14, v11);
}
v3 = *a1;
v4 = 0;
v5 = *(_DWORD *)(*a1 + 164);
while ( v4 < *(_DWORD *)(v5 + 72) )
{
v6 = *(_DWORD **)(*(_DWORD *)(v5 + 76) + 4 * v4);
if ( *v6 == 1 )
{
v7 = sub_AB28A(v3, v4, v6[12], v2);
}
else
{
if ( *v6 )
goto LABEL_9;
v7 = sub_AB218(v3, v4, v6[12]);
}
if ( v7 )
goto LABEL_14;
LABEL_9:
++v4;
}
sub_67D78(v3);
v8 = 0;
LABEL_16:
sub_44984((int)&v15);
return v8;
}