//
// sub_6AD56 from 0x6ad56 to 0x6ad9e (72 bytes)
//
// 2 xrefs:
// > sub_6AC9C @ 0x6acd0
// > sub_6AD9E @ 0x6adbe
//
// 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_6AD56(_DWORD *a1)
{
int v2; // r6
int v3; // r0
int v4; // r5
int v6; // [sp+0h] [bp-18h] BYREF
char v7; // [sp+4h] [bp-14h]
v6 = a1[6];
j_FMOD_OS_CriticalSection_Enter(v6);
v2 = -1;
v7 = 1;
while ( ++v2 < a1[9] )
{
v3 = sub_C0668(a1[7]);
if ( v3 )
{
v4 = v3;
goto LABEL_6;
}
}
v4 = 0;
a1[9] = 0;
LABEL_6:
sub_44984((int)&v6);
return v4;
}