// // FMOD::ChannelControl::setDSPIndex from 0x1005058d4 to 0x100505a04 (304 bytes) // // 2 xrefs: // > sub_1004535F8 @ 0x1004535fc // > sub_100453C60 @ 0x100453c64 // // 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 // // local variable allocation has failed, the output may be wrong! FMOD_RESULT __fastcall FMOD::ChannelControl::setDSPIndex(FMOD::ChannelControl *a1, FMOD::DSP *a2, int a3) { __int64 v3; // x21 int v6; // w3 int v7; // w4 int v8; // w5 int v9; // w6 int v10; // w7 __int64 v11; // x19 int v12; // w0 __int64 v13; // x22 int v14; // w3 int v15; // w4 int v16; // w5 int v17; // w6 int v18; // w7 int v19; // w0 int v20; // w3 int v21; // w4 int v22; // w5 int v23; // w6 int v24; // w7 __int64 v26; // [xsp+8h] [xbp-158h] BYREF __int64 v27; // [xsp+10h] [xbp-150h] BYREF _BYTE v28[256]; // [xsp+18h] [xbp-148h] BYREF v3 = *(_QWORD *)&a3; v26 = 0; v11 = sub_1005088AC(a1, &v27, &v26); if ( (_DWORD)v11 || (v11 = (*(__int64 (__fastcall **)(__int64, FMOD::DSP *, __int64))(*(_QWORD *)v27 + 304LL))(v27, a2, v3), (_DWORD)v11) ) { if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 ) { v12 = sub_100436324((int)v28, 0x100u, (char)a2, v6, v7, v8, v9, v10); v13 = v12; v19 = sub_100435EB4(&v28[v12], (unsigned int)(256 - v12), ", ", v14, v15, v16, v17, v18); sub_100435CDC(&v28[v13 + v19], (unsigned int)(256 - (v13 + v19)), v3, v20, v21, v22, v23, v24); sub_10048489C(v11, 4, (__int64)a1, (__int64)"ChannelControl::setDSPIndex", (__int64)v28); } } if ( v26 ) sub_100442D80(v26); return (unsigned int)v11; }