//
// FMOD::ChannelControl::set3DMinMaxDistance from 0x18000cff0 to 0x18000d13b (331 bytes)
//
// 6 xrefs:
// > FMOD_ChannelGroup_Set3DMinMaxDistance @ 0x1800c5259
// > FMOD_Channel_Set3DMinMaxDistance @ 0x1800c5869
// > ??> @ 0x18017e44c
// > ??> @ 0x18017e484
// > ??> @ 0x180194348
// > ??> @ 0x1801f69f0
//
// 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:52:43 +0000
//
__int64 __fastcall FMOD::ChannelControl::set3DMinMaxDistance(__int64 a1)
{
int v1; // ebp
unsigned int v2; // esi
int v3; // ebx
int v4; // eax
__int64 v6; // [rsp+30h] [rbp-158h] BYREF
__int64 v7; // [rsp+38h] [rbp-150h] BYREF
_BYTE v8[256]; // [rsp+40h] [rbp-148h] BYREF
v6 = 0;
v1 = a1;
v2 = sub_180012360(a1, &v7, &v6);
if ( (v2 || (v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 336LL))(v7)) != 0)
&& *((char *)off_1801AED20 + 16) < 0 )
{
v3 = sub_1800F2F20(v8, 256);
v4 = sub_1800F2F70(&v8[v3]);
sub_1800F2F20(&v8[v4 + v3], (unsigned int)(256 - (v4 + v3)));
sub_1800B20E0(v2, 4, v1, (unsigned int)"ChannelControl::set3DMinMaxDistance", (__int64)v8);
}
if ( v6 )
sub_180102320();
return v2;
}