//
// sub_6DE6C from 0x6de6c to 0x6df3e (210 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_6DE6C(int a1)
{
__int64 v2; // kr00_8
char *v3; // r8
int v4; // r5
unsigned int *v5; // r6
int v6; // r0
unsigned int v7; // r0
int v9; // [sp+0h] [bp-20h] BYREF
char v10; // [sp+4h] [bp-1Ch]
v9 = dword_F61F4[2 * *(_DWORD *)(a1 + 300) + 8 + *(_DWORD *)(a1 + 304)];
j_FMOD_OS_CriticalSection_Enter(v9);
v10 = 1;
v2 = *(_QWORD *)(a1 + 300);
v3 = (char *)&unk_F6074 + 24 * v2 + 12 * HIDWORD(v2);
while ( 1 )
{
v3 = *(char **)v3;
if ( v3 == (char *)&unk_F6074 + 24 * (_DWORD)v2 + 12 * HIDWORD(v2) )
break;
v4 = *((_DWORD *)v3 + 2);
v5 = (unsigned int *)(v4 + 88);
while ( 1 )
{
v6 = *v5;
__dmb(0xBu);
if ( v6 < 1 )
break;
sub_BE8B4(*(_DWORD *)(v4 + 4) + 60 * *(_DWORD *)(a1 + 304) + 67236);
sub_6E9AC(v4);
__dmb(0xBu);
do
v7 = __ldrex(v5);
while ( __strex(v7 - 1, v5) );
__dmb(0xBu);
sub_BE8C8(*(_DWORD *)(v4 + 4) + 60 * *(_DWORD *)(a1 + 304) + 67236, 90);
}
v2 = *(_QWORD *)(a1 + 300);
}
sub_44984((int)&v9);
return 0;
}