//
// sub_1800E4900 from 0x1800e4900 to 0x1800e4a07 (263 bytes)
//
// 2 xrefs:
// > FMOD::System::getRecordDriverInfo @ 0x1800ae959
// > ??> @ 0x1801ffc24
//
// 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_1800E4900(
__int64 a1,
int a2,
_BYTE *a3,
int a4,
_OWORD *a5,
_DWORD *a6,
_DWORD *a7,
_DWORD *a8,
_DWORD *a9)
{
__int64 v10; // rdi
__int64 result; // rax
v10 = a2;
result = sub_1800E8520();
if ( !(_DWORD)result )
{
if ( (int)v10 < 0 || (int)v10 >= *(_DWORD *)(a1 + 1684) )
{
return 31;
}
else
{
if ( a3 )
sub_1800B7D20(a3, *(char **)(56 * v10 + *(_QWORD *)(a1 + 1696)), a4);
if ( a5 )
*a5 = *(_OWORD *)(56 * v10 + *(_QWORD *)(a1 + 1696) + 28);
if ( a6 )
*a6 = *(_DWORD *)(56 * v10 + *(_QWORD *)(a1 + 1696) + 12);
if ( a7 )
*a7 = *(_DWORD *)(56 * v10 + *(_QWORD *)(a1 + 1696) + 20);
if ( a8 )
*a8 = *(_DWORD *)(56 * v10 + *(_QWORD *)(a1 + 1696) + 16);
if ( a9 )
*a9 = *(_DWORD *)(56 * v10 + *(_QWORD *)(a1 + 1696) + 24);
return 0;
}
}
return result;
}