static void add_wav(int16_t *dest, int n, int skip_first, int *m,

                    const int16_t *s1, const int8_t *s2, const int8_t *s3)

{

    int i;

    int v[3];



    v[0] = 0;

    for (i=!skip_first; i<3; i++)

        v[i] = (gain_val_tab[n][i] * m[i]) >> gain_exp_tab[n];





        dest[i] = (s1[i]*v[0] + s2[i]*v[1] + s3[i]*v[2]) >> 12;





static void add_wav(int16_t *dest, int n, int skip_first, int *m,

                    const int16_t *s1, const int8_t *s2, const int8_t *s3)

{

    int i;

    int v[3];



    v[0] = 0;

    for (i=!skip_first; i<3; i++)

        v[i] = (gain_val_tab[n][i] * m[i]) >> gain_exp_tab[n];





        dest[i] = (s1[i]*v[0] + s2[i]*v[1] + s3[i]*v[2]) >> 12;





static void FUNC_0(int16_t *VAR_0, int VAR_1, int VAR_2, int *VAR_3,

                    const int16_t *VAR_4, const int8_t *VAR_5, const int8_t *VAR_6)

{

    int VAR_7;

    int VAR_8[3];



    VAR_8[0] = 0;

    for (VAR_7=!VAR_2; VAR_7<3; VAR_7++)

        VAR_8[VAR_7] = (gain_val_tab[VAR_1][VAR_7] * VAR_3[VAR_7]) >> gain_exp_tab[VAR_1];





        VAR_0[VAR_7] = (VAR_4[VAR_7]*VAR_8[0] + VAR_5[VAR_7]*VAR_8[1] + VAR_6[VAR_7]*VAR_8[2]) >> 12;





static void FUNC_0(int16_t *VAR_0, int VAR_1, int VAR_2, int *VAR_3,
const int16_t *VAR_4, const int8_t *VAR_5, const int8_t *VAR_6)
{ int VAR_7; int VAR_8[3]; VAR_8[0] = 0; for (VAR_7=!VAR_2; VAR_7<3; VAR_7++) VAR_8[VAR_7] = (gain_val_tab[VAR_1][VAR_7] * VAR_3[VAR_7]) >> gain_exp_tab[VAR_1]; VAR_0[VAR_7] = (VAR_4[VAR_7]*VAR_8[0] + VAR_5[VAR_7]*VAR_8[1] + VAR_6[VAR_7]*VAR_8[2]) >> 12;