int ff_hevc_cu_qp_delta_abs(HEVCContext *s)

{

    int prefix_val = 0;

    int suffix_val = 0;

    int inc = 0;



    while (prefix_val < 5 && GET_CABAC(elem_offset[CU_QP_DELTA] + inc)) {

        prefix_val++;

        inc = 1;

    }

    if (prefix_val >= 5) {

        int k = 0;

        while (k < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc)) {

            suffix_val += 1 << k;

            k++;

        }

        if (k == CABAC_MAX_BIN)

            av_log(s->avctx, AV_LOG_ERROR, "CABAC_MAX_BIN : %d\n", k);



        while (k--)

            suffix_val += get_cabac_bypass(&s->HEVClc->cc) << k;

    }

    return prefix_val + suffix_val;

}

int ff_hevc_cu_qp_delta_abs(HEVCContext *s)

{

    int prefix_val = 0;

    int suffix_val = 0;

    int inc = 0;



    while (prefix_val < 5 && GET_CABAC(elem_offset[CU_QP_DELTA] + inc)) {

        prefix_val++;

        inc = 1;

    }

    if (prefix_val >= 5) {

        int k = 0;

        while (k < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc)) {

            suffix_val += 1 << k;

            k++;

        }

        if (k == CABAC_MAX_BIN)

            av_log(s->avctx, AV_LOG_ERROR, "CABAC_MAX_BIN : %d\n", k);



        while (k--)

            suffix_val += get_cabac_bypass(&s->HEVClc->cc) << k;

    }

    return prefix_val + suffix_val;

}

        if (k == CABAC_MAX_BIN)
int FUNC_0(HEVCContext *VAR_0)

{

    int VAR_1 = 0;

    int VAR_2 = 0;

    int VAR_3 = 0;



    while (VAR_1 < 5 && GET_CABAC(elem_offset[CU_QP_DELTA] + VAR_3)) {

        VAR_1++;

        VAR_3 = 1;

    }

    if (VAR_1 >= 5) {

        int VAR_4 = 0;

        while (VAR_4 < CABAC_MAX_BIN && get_cabac_bypass(&VAR_0->HEVClc->cc)) {

            VAR_2 += 1 << VAR_4;

            VAR_4++;

        }

        if (VAR_4 == CABAC_MAX_BIN)

            av_log(VAR_0->avctx, AV_LOG_ERROR, "CABAC_MAX_BIN : %d\n", VAR_4);



        while (VAR_4--)

            VAR_2 += get_cabac_bypass(&VAR_0->HEVClc->cc) << VAR_4;

    }

    return VAR_1 + VAR_2;

}

int FUNC_0(HEVCContext *VAR_0)
{ int VAR_1 = 0; int VAR_2 = 0; int VAR_3 = 0; while (VAR_1 < 5 && GET_CABAC(elem_offset[CU_QP_DELTA] + VAR_3)) { VAR_1++; VAR_3 = 1; } if (VAR_1 >= 5) { int VAR_4 = 0; while (VAR_4 < CABAC_MAX_BIN && get_cabac_bypass(&VAR_0->HEVClc->cc)) { VAR_2 += 1 << VAR_4; VAR_4++; } if (VAR_4 == CABAC_MAX_BIN)
av_log(VAR_0->avctx, AV_LOG_ERROR, "CABAC_MAX_BIN : %d\n", VAR_4); while (VAR_4--)
VAR_2 += get_cabac_bypass(&VAR_0->HEVClc->cc) << VAR_4; } return VAR_1 + VAR_2; }