//
// sub_BBE18 from 0xbbe18 to 0xbbe70 (88 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_BBE18(int a1, int a2, int a3, int a4)
{
int v5; // r0
int v9; // r4
v5 = *(_DWORD *)(a1 + 368);
if ( !v5 || !sub_BE840(v5 + 8) )
return j_j_FMOD_OS_File_Read(*(_DWORD *)(a1 + 420), a2, a3, a4);
j_FMOD_File_SetDiskBusy(1);
v9 = j_FMOD_OS_File_Read(*(_DWORD *)(a1 + 420), a2, a3, a4);
j_FMOD_File_SetDiskBusy(0);
return v9;
}