//
// sub_1800E4090 from 0x1800e4090 to 0x1800e40fe (110 bytes)
//
// 3 xrefs:
// > FMOD::System::getDSPInfoByType @ 0x1800ad2c9
// > ??> @ 0x1801ffb94
// > ??> @ 0x1801ffba0
//
// 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_1800E4090(__int64 a1, int a2, _QWORD *a3)
{
__int64 result; // rax
__int64 v5; // rcx
_QWORD *v6; // [rsp+30h] [rbp+8h] BYREF
if ( !*(_QWORD *)(a1 + 69128) )
return 67;
if ( !a3 )
return 31;
*a3 = 0;
if ( a2 > -1 && (unsigned int)(a2 - 2) > 0x22 )
return 31;
v5 = *(_QWORD *)(a1 + 69128);
v6 = nullptr;
result = sub_1800D7BE0(v5, a2, &v6);
if ( !(_DWORD)result )
{
*a3 = *v6;
return 0;
}
return result;
}