static void calc_thr_3gpp(const FFPsyWindowInfo *wi, const int num_bands, AacPsyChannel *pch,

                          const uint8_t *band_sizes, const float *coefs)

{

    int i, w, g;

    int start = 0;

    for (w = 0; w < wi->num_windows*16; w += 16) {

        for (g = 0; g < num_bands; g++) {

            AacPsyBand *band = &pch->band[w+g];



            float form_factor = 0.0f;

            float Temp;

            band->energy = 0.0f;

            for (i = 0; i < band_sizes[g]; i++) {

                band->energy += coefs[start+i] * coefs[start+i];

                form_factor  += sqrtf(fabs(coefs[start+i]));

            }

            Temp = band->energy > 0 ? sqrtf((float)band_sizes[g] / band->energy) : 0;

            band->thr      = band->energy * 0.001258925f;

            band->nz_lines = form_factor * sqrtf(Temp);



            start += band_sizes[g];

        }

    }

}

static void calc_thr_3gpp(const FFPsyWindowInfo *wi, const int num_bands, AacPsyChannel *pch,

                          const uint8_t *band_sizes, const float *coefs)

{

    int i, w, g;

    int start = 0;

    for (w = 0; w < wi->num_windows*16; w += 16) {

        for (g = 0; g < num_bands; g++) {

            AacPsyBand *band = &pch->band[w+g];



            float form_factor = 0.0f;

            float Temp;

            band->energy = 0.0f;

            for (i = 0; i < band_sizes[g]; i++) {

                band->energy += coefs[start+i] * coefs[start+i];

                form_factor  += sqrtf(fabs(coefs[start+i]));

            }

            Temp = band->energy > 0 ? sqrtf((float)band_sizes[g] / band->energy) : 0;

            band->thr      = band->energy * 0.001258925f;

            band->nz_lines = form_factor * sqrtf(Temp);



            start += band_sizes[g];

        }

    }

}

                          const uint8_t *band_sizes, const float *coefs)     int start = 0;             for (i = 0; i < band_sizes[g]; i++) {                 band->energy += coefs[start+i] * coefs[start+i];                 form_factor  += sqrtf(fabs(coefs[start+i]));     int start = 0;
static void FUNC_0(const FFPsyWindowInfo *VAR_0, const int VAR_1, AacPsyChannel *VAR_2,

                          const uint8_t *VAR_3, const float *VAR_4)

{

    int VAR_5, VAR_6, VAR_7;

    int VAR_8 = 0;

    for (VAR_6 = 0; VAR_6 < VAR_0->num_windows*16; VAR_6 += 16) {

        for (VAR_7 = 0; VAR_7 < VAR_1; VAR_7++) {

            AacPsyBand *band = &VAR_2->band[VAR_6+VAR_7];



            float form_factor = 0.0f;

            float Temp;

            band->energy = 0.0f;

            for (VAR_5 = 0; VAR_5 < VAR_3[VAR_7]; VAR_5++) {

                band->energy += VAR_4[VAR_8+VAR_5] * VAR_4[VAR_8+VAR_5];

                form_factor  += sqrtf(fabs(VAR_4[VAR_8+VAR_5]));

            }

            Temp = band->energy > 0 ? sqrtf((float)VAR_3[VAR_7] / band->energy) : 0;

            band->thr      = band->energy * 0.001258925f;

            band->nz_lines = form_factor * sqrtf(Temp);



            VAR_8 += VAR_3[VAR_7];

        }

    }

}

static void FUNC_0(const FFPsyWindowInfo *VAR_0, const int VAR_1, AacPsyChannel *VAR_2,
const uint8_t *VAR_3, const float *VAR_4)
{ int VAR_5, VAR_6, VAR_7; int VAR_8 = 0; for (VAR_6 = 0; VAR_6 < VAR_0->num_windows*16; VAR_6 += 16) { for (VAR_7 = 0; VAR_7 < VAR_1; VAR_7++) { AacPsyBand *band = &VAR_2->band[VAR_6+VAR_7]; float form_factor = 0.0f; float Temp; band->energy = 0.0f; for (VAR_5 = 0; VAR_5 < VAR_3[VAR_7]; VAR_5++) { band->energy += VAR_4[VAR_8+VAR_5] * VAR_4[VAR_8+VAR_5]; form_factor  += sqrtf(fabs(VAR_4[VAR_8+VAR_5])); } Temp = band->energy > 0 ? sqrtf((float)VAR_3[VAR_7] / band->energy) : 0; band->thr      = band->energy * 0.001258925f; band->nz_lines = form_factor * sqrtf(Temp); VAR_8 += VAR_3[VAR_7]; } } }