//
// sub_6AD56 from 0x6ad56 to 0x6ad9e (72 bytes)
//
// 2 xrefs:
// > sub_6AC9C @ 0x6acd0
// > sub_6AD9E @ 0x6adbe
//
// 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:57 +0000
//
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;
}