static void do_rematrixing(AC3DecodeContext *s)

{

    int bnd, i;

    int end, bndend;

    int tmp0, tmp1;



    end = FFMIN(s->end_freq[1], s->end_freq[2]);



    for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) {

        if(s->rematrixing_flags[bnd]) {

            bndend = FFMIN(end, ff_ac3_rematrix_band_tab[bnd+1]);

            for(i=ff_ac3_rematrix_band_tab[bnd]; i<bndend; i++) {

                tmp0 = s->fixed_coeffs[1][i];

                tmp1 = s->fixed_coeffs[2][i];

                s->fixed_coeffs[1][i] = tmp0 + tmp1;

                s->fixed_coeffs[2][i] = tmp0 - tmp1;

            }

        }

    }

}

static void do_rematrixing(AC3DecodeContext *s)

{

    int bnd, i;

    int end, bndend;

    int tmp0, tmp1;



    end = FFMIN(s->end_freq[1], s->end_freq[2]);



    for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) {

        if(s->rematrixing_flags[bnd]) {

            bndend = FFMIN(end, ff_ac3_rematrix_band_tab[bnd+1]);

            for(i=ff_ac3_rematrix_band_tab[bnd]; i<bndend; i++) {

                tmp0 = s->fixed_coeffs[1][i];

                tmp1 = s->fixed_coeffs[2][i];

                s->fixed_coeffs[1][i] = tmp0 + tmp1;

                s->fixed_coeffs[2][i] = tmp0 - tmp1;

            }

        }

    }

}

static void FUNC_0(AC3DecodeContext *VAR_0)

{

    int VAR_1, VAR_2;

    int VAR_3, VAR_4;

    int VAR_5, VAR_6;



    VAR_3 = FFMIN(VAR_0->end_freq[1], VAR_0->end_freq[2]);



    for(VAR_1=0; VAR_1<VAR_0->num_rematrixing_bands; VAR_1++) {

        if(VAR_0->rematrixing_flags[VAR_1]) {

            VAR_4 = FFMIN(VAR_3, ff_ac3_rematrix_band_tab[VAR_1+1]);

            for(VAR_2=ff_ac3_rematrix_band_tab[VAR_1]; VAR_2<VAR_4; VAR_2++) {

                VAR_5 = VAR_0->fixed_coeffs[1][VAR_2];

                VAR_6 = VAR_0->fixed_coeffs[2][VAR_2];

                VAR_0->fixed_coeffs[1][VAR_2] = VAR_5 + VAR_6;

                VAR_0->fixed_coeffs[2][VAR_2] = VAR_5 - VAR_6;

            }

        }

    }

}

static void FUNC_0(AC3DecodeContext *VAR_0)
{ int VAR_1, VAR_2; int VAR_3, VAR_4; int VAR_5, VAR_6; VAR_3 = FFMIN(VAR_0->end_freq[1], VAR_0->end_freq[2]); for(VAR_1=0; VAR_1<VAR_0->num_rematrixing_bands; VAR_1++) { if(VAR_0->rematrixing_flags[VAR_1]) { VAR_4 = FFMIN(VAR_3, ff_ac3_rematrix_band_tab[VAR_1+1]); for(VAR_2=ff_ac3_rematrix_band_tab[VAR_1]; VAR_2<VAR_4; VAR_2++) { VAR_5 = VAR_0->fixed_coeffs[1][VAR_2]; VAR_6 = VAR_0->fixed_coeffs[2][VAR_2]; VAR_0->fixed_coeffs[1][VAR_2] = VAR_5 + VAR_6; VAR_0->fixed_coeffs[2][VAR_2] = VAR_5 - VAR_6; } } } }