//
// sub_1800E4A60 from 0x1800e4a60 to 0x1800e4af6 (150 bytes)
//
// 2 xrefs:
// > FMOD::System::getRecordPosition @ 0x1800aeb99
// > ??> @ 0x1801ffc3c
//
// 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_1800E4A60(__int64 a1, int a2, _DWORD *a3)
{
__int64 v4; // rbx
__int64 result; // rax
unsigned int v7; // r9d
__int64 v8; // rdx
v4 = a2;
result = sub_1800E8520();
if ( !(_DWORD)result )
{
if ( (int)v4 < 0 || (int)v4 >= *(_DWORD *)(a1 + 1684) )
{
return 31;
}
else
{
v7 = 0;
if ( a3 )
{
v8 = *(_QWORD *)(56 * v4 + *(_QWORD *)(a1 + 1696) + 48);
if ( v8 )
*a3 = *(_DWORD *)(v8 + 52);
else
*a3 = 0;
}
if ( (*(_BYTE *)(56 * v4 + *(_QWORD *)(a1 + 1696) + 24) & 1) == 0 )
return 80;
return v7;
}
}
return result;
}