//
// FMOD::System::getRecordPosition from 0x1800aeb40 to 0x1800aec6f (303 bytes)
//
// 5 xrefs:
// > FMOD_System_GetRecordPosition @ 0x1800c6c29
// > ??> @ 0x180188dc8
// > ??> @ 0x180188dfc
// > ??> @ 0x180194348
// > ??> @ 0x1801fc654
//
// 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:53:56 +0000
//
__int64 __fastcall FMOD::System::getRecordPosition(__int64 a1, unsigned int a2, __int64 a3)
{
int v5; // r14d
unsigned int v6; // esi
int v7; // ebx
int v8; // eax
__int64 v10; // [rsp+30h] [rbp-148h] BYREF
__int64 v11; // [rsp+38h] [rbp-140h] BYREF
_BYTE v12[256]; // [rsp+40h] [rbp-138h] BYREF
v10 = 0;
v5 = a1;
v6 = FMOD::SystemI::validate(a1, &v11, &v10);
if ( (v6 || (v6 = sub_1800E4A60(v11, a2, a3)) != 0) && *((char *)off_1801AED20 + 16) < 0 )
{
v7 = sub_1800F2EC0(v12, 256, a2);
v8 = sub_1800F2F70(&v12[v7]);
sub_1800F3060(&v12[v8 + v7], (unsigned int)(256 - (v8 + v7)), a3);
sub_1800B20E0(v6, 1, v5, (unsigned int)"System::getRecordPosition", (__int64)v12);
}
if ( v10 )
sub_180102320(v10);
return v6;
}