//
// sub_1800B41E0 from 0x1800b41e0 to 0x1800b426f (143 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016e738
// > ??> @ 0x1801fcee8
//
// 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 sub_1800B41E0(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // rcx
unsigned int v5; // esi
__int64 v6; // rbp
unsigned int v7; // ebx
v4 = *(_QWORD *)(a1 + 408);
v5 = a3;
v6 = a2;
if ( v4 )
{
if ( (unsigned __int8)sub_1800B8840(v4 + 16) )
{
FMOD_File_SetDiskBusy(1);
v7 = FMOD_OS_File_Read(*(_QWORD *)(a1 + 496), v6, v5);
FMOD_File_SetDiskBusy(0);
return v7;
}
a3 = v5;
a2 = v6;
}
return FMOD_OS_File_Read(*(_QWORD *)(a1 + 496), a2, a3);
}