//
// sub_1800E3FA0 from 0x1800e3fa0 to 0x1800e3fd7 (55 bytes)
//
// 1 xrefs:
// > FMOD::System::getChannel @ 0x1800ace29
//
// 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:54:17 +0000
//
__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;
}