//
// sub_1800E7310 from 0x1800e7310 to 0x1800e7362 (82 bytes)
//
// 1 xrefs:
// > FMOD::System::setDSPBufferSize @ 0x1800b0f99
//
// 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_1800E7310(__int64 a1, unsigned int a2, int a3)
{
if ( *(_BYTE *)(a1 + 8) )
return 27;
if ( !a2 || a3 < 2 || ((a3 * (unsigned __int64)a2) & 0xFFFFFFFF80000000uLL) != 0 )
return 31;
if ( (a2 & 3) != 0 )
a2 = (a2 + 3) & 0xFFFFFFFC;
*(_DWORD *)(a1 + 1752) = a2;
*(_DWORD *)(a1 + 1756) = a3 * a2;
return 0;
}