static void calc_transform_coeffs_cpl(AC3DecodeContext *s)

{

    int bin, band, ch, band_end;



    bin = s->start_freq[CPL_CH];

    for (band = 0; band < s->num_cpl_bands; band++) {

        band_end = bin + s->cpl_band_sizes[band];

        for (; bin < band_end; bin++) {

            for (ch = 1; ch <= s->fbw_channels; ch++) {

                if (s->channel_in_cpl[ch]) {

                    s->fixed_coeffs[ch][bin] = ((int64_t)s->fixed_coeffs[CPL_CH][bin] *

                                                (int64_t)s->cpl_coords[ch][band]) >> 23;

                    if (ch == 2 && s->phase_flags[band])

                        s->fixed_coeffs[ch][bin] = -s->fixed_coeffs[ch][bin];

                }

            }

        }

    }

}

static void calc_transform_coeffs_cpl(AC3DecodeContext *s)

{

    int bin, band, ch, band_end;



    bin = s->start_freq[CPL_CH];

    for (band = 0; band < s->num_cpl_bands; band++) {

        band_end = bin + s->cpl_band_sizes[band];

        for (; bin < band_end; bin++) {

            for (ch = 1; ch <= s->fbw_channels; ch++) {

                if (s->channel_in_cpl[ch]) {

                    s->fixed_coeffs[ch][bin] = ((int64_t)s->fixed_coeffs[CPL_CH][bin] *

                                                (int64_t)s->cpl_coords[ch][band]) >> 23;

                    if (ch == 2 && s->phase_flags[band])

                        s->fixed_coeffs[ch][bin] = -s->fixed_coeffs[ch][bin];

                }

            }

        }

    }

}

static void FUNC_0(AC3DecodeContext *VAR_0)

{

    int VAR_1, VAR_2, VAR_3, VAR_4;



    VAR_1 = VAR_0->start_freq[CPL_CH];

    for (VAR_2 = 0; VAR_2 < VAR_0->num_cpl_bands; VAR_2++) {

        VAR_4 = VAR_1 + VAR_0->cpl_band_sizes[VAR_2];

        for (; VAR_1 < VAR_4; VAR_1++) {

            for (VAR_3 = 1; VAR_3 <= VAR_0->fbw_channels; VAR_3++) {

                if (VAR_0->channel_in_cpl[VAR_3]) {

                    VAR_0->fixed_coeffs[VAR_3][VAR_1] = ((int64_t)VAR_0->fixed_coeffs[CPL_CH][VAR_1] *

                                                (int64_t)VAR_0->cpl_coords[VAR_3][VAR_2]) >> 23;

                    if (VAR_3 == 2 && VAR_0->phase_flags[VAR_2])

                        VAR_0->fixed_coeffs[VAR_3][VAR_1] = -VAR_0->fixed_coeffs[VAR_3][VAR_1];

                }

            }

        }

    }

}

static void FUNC_0(AC3DecodeContext *VAR_0)
{ int VAR_1, VAR_2, VAR_3, VAR_4; VAR_1 = VAR_0->start_freq[CPL_CH]; for (VAR_2 = 0; VAR_2 < VAR_0->num_cpl_bands; VAR_2++) { VAR_4 = VAR_1 + VAR_0->cpl_band_sizes[VAR_2]; for (; VAR_1 < VAR_4; VAR_1++) { for (VAR_3 = 1; VAR_3 <= VAR_0->fbw_channels; VAR_3++) { if (VAR_0->channel_in_cpl[VAR_3]) { VAR_0->fixed_coeffs[VAR_3][VAR_1] = ((int64_t)VAR_0->fixed_coeffs[CPL_CH][VAR_1] *
(int64_t)VAR_0->cpl_coords[VAR_3][VAR_2]) >> 23; if (VAR_3 == 2 && VAR_0->phase_flags[VAR_2])
VAR_0->fixed_coeffs[VAR_3][VAR_1] = -VAR_0->fixed_coeffs[VAR_3][VAR_1]; } } } } }