//
// FMOD::DSPConnection::setMix from 0xa8998 to 0xa8a34 (156 bytes)
//
// 4 xrefs:
// > FMOD::DSPConnection::setMix @ 0x107c3c
// > ??> @ 0x2f50
// > FMOD::DSPConnection::setMix @ 0x107c34
// > ??> @ 0x1106e0
//
// This function is hookable on this platform (idp: arm, 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 12:14:33 +0000
//
__int64 __fastcall FMOD::DSPConnection::setMix(FMOD::DSPConnection *this, long double a2)
{
unsigned int v3; // w20
__int64 v4; // x0
char v5; // w8
__int64 v6; // x0
__int16 v8[128]; // [xsp+0h] [xbp-130h] BYREF
__int64 v9; // [xsp+100h] [xbp-30h]
__int64 v10; // [xsp+108h] [xbp-28h]
v9 = 0;
v3 = sub_AAE14();
if ( v3 || (v4 = sub_AC5A0(v10, 64, 1, 0, a2), (v3 = v4) != 0) )
{
v4 = sub_A8EA0();
if ( v5 < 0 )
{
v6 = sub_7154C(v8, 256, *(float *)&a2);
v4 = sub_A8E8C(v6);
}
}
sub_A8ED4(v4);
return v3;
}