//
// sub_51E14 from 0x51e14 to 0x51e88 (116 bytes)
//
// 1 xrefs:
// > sub_5F434 @ 0x5f45c
//
// 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
//
__int64 sub_51E14()
{
__int64 v0; // x0
__int64 i; // x20
v0 = *(__int64 *)((char *)&qword_138 + (_QWORD)off_114000);
if ( v0 )
{
FMOD_OS_CriticalSection_Enter(v0);
for ( i = 0; i != 40; i += 8 )
{
if ( *(_QWORD *)((char *)&unk_11F750 + i) )
{
sub_51E88();
*(_QWORD *)((char *)&unk_11F750 + i) = 0;
}
}
FMOD_OS_CriticalSection_Leave(*(__int64 *)((char *)&qword_138 + (_QWORD)off_114000));
}
return 0;
}