//
// FMOD_File_SetDiskBusy from 0x1800b4150 to 0x1800b41a8 (88 bytes)
//
// 5 xrefs:
// > sub_1800B41E0 @ 0x1800b421e
// > sub_1800B41E0 @ 0x1800b423c
// > FMOD5_File_SetDiskBusy @ 0x1800f4360
// > ??> @ 0x180194348
// > ??> @ 0x1801fcedc
//
// 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 __fastcall FMOD_File_SetDiskBusy(int a1)
{
if ( a1 )
{
FMOD_OS_CriticalSection_Enter(*((_QWORD *)off_1801AED20 + 35));
*((_DWORD *)off_1801AED20 + 1) = 1;
}
else
{
*((_DWORD *)off_1801AED20 + 1) = 0;
FMOD_OS_CriticalSection_Leave(*((_QWORD *)off_1801AED20 + 35));
}
return 0;
}