//
// FMOD::Sound::set3DConeSettings from 0x1800a9460 to 0x1800a9633 (467 bytes)
//
// 5 xrefs:
// > FMOD_Sound_Set3DConeSettings @ 0x1800c6769
// > ??> @ 0x180186f2c
// > ??> @ 0x180186f64
// > ??> @ 0x180194348
// > ??> @ 0x1801fbcb8
//
// 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::Sound::set3DConeSettings(__int64 a1)
{
int v1; // ebp
unsigned int v2; // esi
int v3; // ebx
int v4; // ebx
int v5; // ebx
int v6; // eax
_DWORD *v8; // [rsp+30h] [rbp-178h] BYREF
__int64 v9; // [rsp+38h] [rbp-170h] BYREF
_BYTE v10[256]; // [rsp+40h] [rbp-168h] BYREF
v9 = 0;
v1 = a1;
v2 = sub_1800E1460(a1, &v8, &v9);
if ( !v2 )
{
if ( !v8[68] || v8[68] == 7 || v8[68] == 5 )
{
v2 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v8 + 88LL))(v8);
if ( !v2 )
goto LABEL_9;
}
else
{
v2 = 46;
}
}
if ( *((char *)off_1801AED20 + 16) < 0 )
{
v3 = sub_1800F2F20(v10, 256);
v4 = sub_1800F2F70(&v10[v3]) + v3;
v5 = sub_1800F2F20(&v10[v4], (unsigned int)(256 - v4)) + v4;
v6 = sub_1800F2F70(&v10[v5]);
sub_1800F2F20(&v10[v6 + v5], (unsigned int)(256 - (v6 + v5)));
sub_1800B20E0(v2, 5, v1, (unsigned int)"Sound::set3DConeSettings", (__int64)v10);
}
LABEL_9:
if ( v9 )
sub_180102300(v9, 12);
return v2;
}