static void FUNC(dequant)(int16_t *coeffs, int16_t log2_size)

{

    int shift  = 15 - BIT_DEPTH - log2_size;

    int x, y;

    int size = 1 << log2_size;



    if (shift > 0) {

        int offset = 1 << (shift - 1);

        for (y = 0; y < size; y++) {

            for (x = 0; x < size; x++) {

                *coeffs = (*coeffs + offset) >> shift;

                coeffs++;

            }

        }

    } else {

        for (y = 0; y < size; y++) {

            for (x = 0; x < size; x++) {

                *coeffs = *coeffs << -shift;

                coeffs++;

            }

        }

    }

}

static void FUNC(dequant)(int16_t *coeffs, int16_t log2_size)

{

    int shift  = 15 - BIT_DEPTH - log2_size;

    int x, y;

    int size = 1 << log2_size;



    if (shift > 0) {

        int offset = 1 << (shift - 1);

        for (y = 0; y < size; y++) {

            for (x = 0; x < size; x++) {

                *coeffs = (*coeffs + offset) >> shift;

                coeffs++;

            }

        }

    } else {

        for (y = 0; y < size; y++) {

            for (x = 0; x < size; x++) {

                *coeffs = *coeffs << -shift;

                coeffs++;

            }

        }

    }

}

                *coeffs = *coeffs << -shift;
static void FUNC_0(dequant)(int16_t *coeffs, int16_t log2_size)

{

    int VAR_0  = 15 - BIT_DEPTH - log2_size;

    int VAR_1, VAR_2;

    int VAR_3 = 1 << log2_size;



    if (VAR_0 > 0) {

        int VAR_4 = 1 << (VAR_0 - 1);

        for (VAR_2 = 0; VAR_2 < VAR_3; VAR_2++) {

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

                *coeffs = (*coeffs + VAR_4) >> VAR_0;

                coeffs++;

            }

        }

    } else {

        for (VAR_2 = 0; VAR_2 < VAR_3; VAR_2++) {

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

                *coeffs = *coeffs << -VAR_0;

                coeffs++;

            }

        }

    }

}

static void FUNC_0(dequant)(int16_t *coeffs, int16_t log2_size)
{ int VAR_0  = 15 - BIT_DEPTH - log2_size; int VAR_1, VAR_2; int VAR_3 = 1 << log2_size; if (VAR_0 > 0) { int VAR_4 = 1 << (VAR_0 - 1); for (VAR_2 = 0; VAR_2 < VAR_3; VAR_2++) { for (VAR_1 = 0; VAR_1 < VAR_3; VAR_1++) { *coeffs = (*coeffs + VAR_4) >> VAR_0; coeffs++; } } } else { for (VAR_2 = 0; VAR_2 < VAR_3; VAR_2++) { for (VAR_1 = 0; VAR_1 < VAR_3; VAR_1++) { *coeffs = *coeffs << -VAR_0; coeffs++; } } } }