//
// sub_1800E3FA0 from 0x1800e3fa0 to 0x1800e3fd7 (55 bytes)
//
// 1 xrefs:
// > FMOD::System::getChannel @ 0x1800ace29
//
// 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_1800E3FA0(__int64 a1, int a2, __int64 *a3)
{
if ( !a3 || a2 < 0 || a2 >= *(_DWORD *)(a1 + 480) )
return 31;
*a3 = ((a2 & 0xFFFu | (*(_DWORD *)(a1 + 69808) << 12)) << 17) | 0x1FFFFLL;
return 0;
}