//
// FMOD::System::set3DSettings from 0x1800b0b90 to 0x1800b0d24 (404 bytes)
//
// 6 xrefs:
// > FMOD_System_Set3DSettings @ 0x1800c6e69
// > ??> @ 0x1801884d0
// > ??> @ 0x180188508
// > ??> @ 0x180194348
// > ??> @ 0x1801fca74
// > ??> @ 0x1801fca80
//
// 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:57 +0000
//
__int64 __fastcall FMOD::System::set3DSettings(__int64 a1)
{
int v1; // ebp
unsigned int v2; // esi
int v3; // ebx
int v4; // ebx
int v5; // ebx
int v6; // eax
__int64 v8; // [rsp+30h] [rbp-178h] BYREF
__int64 v9; // [rsp+38h] [rbp-170h] BYREF
_BYTE v10[256]; // [rsp+40h] [rbp-168h] BYREF
v8 = 0;
v1 = a1;
v2 = FMOD::SystemI::validate(a1, &v9, &v8);
if ( (v2 || (v2 = sub_1800E7050(v9)) != 0) && *((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, 1, v1, (unsigned int)"System::set3DSettings", (__int64)v10);
}
if ( v8 )
sub_180102320(v8);
return v2;
}