//
// FMOD::System::set3DListenerAttributes from 0x1800b07d0 to 0x1800b09e9 (537 bytes)
//
// 6 xrefs:
// > FMOD_System_Set3DListenerAttributes @ 0x1800c6e3b
// > ??> @ 0x1801885e4
// > ??> @ 0x180188618
// > ??> @ 0x180194348
// > ??> @ 0x1801fca20
// > ??> @ 0x1801fca2c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall FMOD::System::set3DListenerAttributes(
__int64 a1,
unsigned int a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6)
{
int v8; // r13d
unsigned int v10; // esi
int v11; // ebx
int v12; // ebx
int v13; // ebx
int v14; // ebx
int v15; // ebx
int v16; // ebx
int v17; // ebx
int v18; // eax
__int64 v20; // [rsp+30h] [rbp-168h] BYREF
__int64 v21; // [rsp+38h] [rbp-160h] BYREF
_BYTE v22[256]; // [rsp+40h] [rbp-158h] BYREF
v8 = a1;
v20 = 0;
v10 = FMOD::SystemI::validate(a1, &v21, &v20);
if ( (v10 || (v10 = sub_1800E6AB0(v21, a2, a3, a4, a5, a6)) != 0) && *((char *)off_1801AED20 + 16) < 0 )
{
v11 = sub_1800F2EC0(v22, 256, a2);
v12 = sub_1800F2F70(&v22[v11]) + v11;
v13 = sub_1800F31D0(&v22[v12], (unsigned int)(256 - v12), a3) + v12;
v14 = sub_1800F2F70(&v22[v13]) + v13;
v15 = sub_1800F31D0(&v22[v14], (unsigned int)(256 - v14), a4) + v14;
v16 = sub_1800F2F70(&v22[v15]) + v15;
v17 = sub_1800F31D0(&v22[v16], (unsigned int)(256 - v16), a5) + v16;
v18 = sub_1800F2F70(&v22[v17]);
sub_1800F31D0(&v22[v18 + v17], (unsigned int)(256 - (v18 + v17)), a6);
sub_1800B20E0(v10, 1, v8, (unsigned int)"System::set3DListenerAttributes", (__int64)v22);
}
if ( v20 )
sub_180102320(v20);
return v10;
}