static void decode_pitch_lag_low(int *lag_int, int *lag_frac, int pitch_index,

                                 uint8_t *base_lag_int, int subframe, enum Mode mode)

{

    if (subframe == 0 || (subframe == 2 && mode != MODE_6k60)) {

        if (pitch_index < 116) {

            *lag_int  = (pitch_index + 69) >> 1;

            *lag_frac = (pitch_index - (*lag_int << 1) + 68) << 1;

        } else {

            *lag_int  = pitch_index - 24;

            *lag_frac = 0;

        }

        // XXX: same problem as before

        *base_lag_int = av_clip(*lag_int - 8 - (*lag_frac < 0),

                                AMRWB_P_DELAY_MIN, AMRWB_P_DELAY_MAX - 15);

    } else {

        *lag_int  = (pitch_index + 1) >> 1;

        *lag_frac = (pitch_index - (*lag_int << 1)) << 1;

        *lag_int += *base_lag_int;

    }

}

static void decode_pitch_lag_low(int *lag_int, int *lag_frac, int pitch_index,

                                 uint8_t *base_lag_int, int subframe, enum Mode mode)

{

    if (subframe == 0 || (subframe == 2 && mode != MODE_6k60)) {

        if (pitch_index < 116) {

            *lag_int  = (pitch_index + 69) >> 1;

            *lag_frac = (pitch_index - (*lag_int << 1) + 68) << 1;

        } else {

            *lag_int  = pitch_index - 24;

            *lag_frac = 0;

        }

        

        *base_lag_int = av_clip(*lag_int - 8 - (*lag_frac < 0),

                                AMRWB_P_DELAY_MIN, AMRWB_P_DELAY_MAX - 15);

    } else {

        *lag_int  = (pitch_index + 1) >> 1;

        *lag_frac = (pitch_index - (*lag_int << 1)) << 1;

        *lag_int += *base_lag_int;

    }

}

            *lag_frac = (pitch_index - (*lag_int << 1) + 68) << 1;         *lag_frac = (pitch_index - (*lag_int << 1)) << 1;
static void FUNC_0(int *VAR_0, int *VAR_1, int VAR_2,

                                 uint8_t *VAR_3, int VAR_4, enum Mode VAR_5)

{

    if (VAR_4 == 0 || (VAR_4 == 2 && VAR_5 != MODE_6k60)) {

        if (VAR_2 < 116) {

            *VAR_0  = (VAR_2 + 69) >> 1;

            *VAR_1 = (VAR_2 - (*VAR_0 << 1) + 68) << 1;

        } else {

            *VAR_0  = VAR_2 - 24;

            *VAR_1 = 0;

        }

        

        *VAR_3 = av_clip(*VAR_0 - 8 - (*VAR_1 < 0),

                                AMRWB_P_DELAY_MIN, AMRWB_P_DELAY_MAX - 15);

    } else {

        *VAR_0  = (VAR_2 + 1) >> 1;

        *VAR_1 = (VAR_2 - (*VAR_0 << 1)) << 1;

        *VAR_0 += *VAR_3;

    }

}

static void FUNC_0(int *VAR_0, int *VAR_1, int VAR_2,
uint8_t *VAR_3, int VAR_4, enum Mode VAR_5)
{ if (VAR_4 == 0 || (VAR_4 == 2 && VAR_5 != MODE_6k60)) { if (VAR_2 < 116) { *VAR_0  = (VAR_2 + 69) >> 1; *VAR_1 = (VAR_2 - (*VAR_0 << 1) + 68) << 1; } else { *VAR_0  = VAR_2 - 24; *VAR_1 = 0; } *VAR_3 = av_clip(*VAR_0 - 8 - (*VAR_1 < 0),
AMRWB_P_DELAY_MIN, AMRWB_P_DELAY_MAX - 15); } else { *VAR_0  = (VAR_2 + 1) >> 1; *VAR_1 = (VAR_2 - (*VAR_0 << 1)) << 1; *VAR_0 += *VAR_3; } }