//
// FMOD::DSPConnection::setMix from 0x10048a8bc to 0x10048a9a8 (236 bytes)
//
// 1 xrefs:
// > sub_1004543D8 @ 0x1004543dc
//
// 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
//
FMOD_RESULT __fastcall FMOD::DSPConnection::setMix(FMOD::DSPConnection *a1, float a2)
{
__int64 v4; // x2
int v5; // w3
int v6; // w4
int v7; // w5
int v8; // w6
int v9; // w7
__int64 v10; // x20
__n128 v11; // q0
__int64 v13; // [xsp+8h] [xbp-148h] BYREF
__int64 v14; // [xsp+10h] [xbp-140h] BYREF
__int16 v15[128]; // [xsp+18h] [xbp-138h] BYREF
v13 = 0;
v10 = sub_1004F0628(a1, &v14, &v13);
if ( (_DWORD)v10 || (v11.n128_f32[0] = a2, v10 = sub_1004F2D8C(v14, 64, 1, 0, v11), (_DWORD)v10) )
{
if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )
{
sub_100435DC4(v15, 0x100u, a2, v4, v5, v6, v7, v8, v9);
sub_10048489C(v10, 8, (__int64)a1, (__int64)"DSPConnection::setMix", (__int64)v15);
}
}
if ( v13 )
sub_100442D80(v13);
return (unsigned int)v10;
}