static void init_quantized_coeffs_elem0 (int8_t *quantized_coeffs, GetBitContext *gb, int length)

{

    int i, k, run, level, diff;



    if (BITS_LEFT(length,gb) < 16)

        return;

    level = qdm2_get_vlc(gb, &vlc_tab_level, 0, 2);



    quantized_coeffs[0] = level;



    for (i = 0; i < 7; ) {

        if (BITS_LEFT(length,gb) < 16)

            break;

        run = qdm2_get_vlc(gb, &vlc_tab_run, 0, 1) + 1;



        if (BITS_LEFT(length,gb) < 16)

            break;

        diff = qdm2_get_se_vlc(&vlc_tab_diff, gb, 2);



        for (k = 1; k <= run; k++)

            quantized_coeffs[i + k] = (level + ((k * diff) / run));



        level += diff;

        i += run;

    }

}

static void init_quantized_coeffs_elem0 (int8_t *quantized_coeffs, GetBitContext *gb, int length)

{

    int i, k, run, level, diff;



    if (BITS_LEFT(length,gb) < 16)

        return;

    level = qdm2_get_vlc(gb, &vlc_tab_level, 0, 2);



    quantized_coeffs[0] = level;



    for (i = 0; i < 7; ) {

        if (BITS_LEFT(length,gb) < 16)

            break;

        run = qdm2_get_vlc(gb, &vlc_tab_run, 0, 1) + 1;



        if (BITS_LEFT(length,gb) < 16)

            break;

        diff = qdm2_get_se_vlc(&vlc_tab_diff, gb, 2);



        for (k = 1; k <= run; k++)

            quantized_coeffs[i + k] = (level + ((k * diff) / run));



        level += diff;

        i += run;

    }

}

static void FUNC_0 (int8_t *VAR_0, GetBitContext *VAR_1, int VAR_2)

{

    int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;



    if (BITS_LEFT(VAR_2,VAR_1) < 16)

        return;

    VAR_6 = qdm2_get_vlc(VAR_1, &vlc_tab_level, 0, 2);



    VAR_0[0] = VAR_6;



    for (VAR_3 = 0; VAR_3 < 7; ) {

        if (BITS_LEFT(VAR_2,VAR_1) < 16)

            break;

        VAR_5 = qdm2_get_vlc(VAR_1, &vlc_tab_run, 0, 1) + 1;



        if (BITS_LEFT(VAR_2,VAR_1) < 16)

            break;

        VAR_7 = qdm2_get_se_vlc(&vlc_tab_diff, VAR_1, 2);



        for (VAR_4 = 1; VAR_4 <= VAR_5; VAR_4++)

            VAR_0[VAR_3 + VAR_4] = (VAR_6 + ((VAR_4 * VAR_7) / VAR_5));



        VAR_6 += VAR_7;

        VAR_3 += VAR_5;

    }

}

static void FUNC_0 (int8_t *VAR_0, GetBitContext *VAR_1, int VAR_2)
{ int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; if (BITS_LEFT(VAR_2,VAR_1) < 16)
return; VAR_6 = qdm2_get_vlc(VAR_1, &vlc_tab_level, 0, 2); VAR_0[0] = VAR_6; for (VAR_3 = 0; VAR_3 < 7; ) { if (BITS_LEFT(VAR_2,VAR_1) < 16)
break; VAR_5 = qdm2_get_vlc(VAR_1, &vlc_tab_run, 0, 1) + 1; if (BITS_LEFT(VAR_2,VAR_1) < 16)
break; VAR_7 = qdm2_get_se_vlc(&vlc_tab_diff, VAR_1, 2); for (VAR_4 = 1; VAR_4 <= VAR_5; VAR_4++) VAR_0[VAR_3 + VAR_4] = (VAR_6 + ((VAR_4 * VAR_7) / VAR_5)); VAR_6 += VAR_7; VAR_3 += VAR_5; } }