//
// FMOD::DSPConnection::setMix from 0x180057540 to 0x180057622 (226 bytes)
//
// 4 xrefs:
// > FMOD_DSPConnection_SetMix @ 0x1800c5ac9
// > ??> @ 0x180194348
// > ??> @ 0x1801f8e5c
// > ??> @ 0x1801f8e68
//
// 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:19 +0000
//
__int64 __fastcall FMOD::DSPConnection::setMix(__int64 a1)
{
int v1; // edi
int v2; // edx
unsigned int v3; // ebx
int v4; // r9d
__int64 v6; // [rsp+30h] [rbp-138h] BYREF
__int64 v7; // [rsp+38h] [rbp-130h] BYREF
_BYTE v8[256]; // [rsp+40h] [rbp-128h] BYREF
v6 = 0;
v1 = a1;
v3 = sub_18005AF70(a1, &v7, &v6);
if ( v3 || (LOBYTE(v4) = 1, (v3 = sub_18005A4F0(v7, v2, 64, v4, 0)) != 0) )
{
if ( *((char *)off_1801AED20 + 16) < 0 )
{
sub_1800F2F20(v8, 256);
sub_1800B20E0(v3, 8, v1, (unsigned int)"DSPConnection::setMix", (__int64)v8);
}
}
if ( v6 )
sub_180102320();
return v3;
}