//
// 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 (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 10:53:58 +0000
//
__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;
}