static void put_cabac(CABACContext *c, uint8_t * const state, int bit){

    int RangeLPS= ff_h264_lps_range[2*(c->range&0xC0) + *state];



    if(bit == ((*state)&1)){

        c->range -= RangeLPS;

        *state= ff_h264_mps_state[*state];

    }else{

        c->low += c->range - RangeLPS;

        c->range = RangeLPS;

        *state= ff_h264_lps_state[*state];

    }



    renorm_cabac_encoder(c);

}

static void put_cabac(CABACContext *c, uint8_t * const state, int bit){

    int RangeLPS= ff_h264_lps_range[2*(c->range&0xC0) + *state];



    if(bit == ((*state)&1)){

        c->range -= RangeLPS;

        *state= ff_h264_mps_state[*state];

    }else{

        c->low += c->range - RangeLPS;

        c->range = RangeLPS;

        *state= ff_h264_lps_state[*state];

    }



    renorm_cabac_encoder(c);

}

static void FUNC_0(CABACContext *VAR_0, uint8_t * const VAR_1, int VAR_2){

    int VAR_3= ff_h264_lps_range[2*(VAR_0->range&0xC0) + *VAR_1];



    if(VAR_2 == ((*VAR_1)&1)){

        VAR_0->range -= VAR_3;

        *VAR_1= ff_h264_mps_state[*VAR_1];

    }else{

        VAR_0->low += VAR_0->range - VAR_3;

        VAR_0->range = VAR_3;

        *VAR_1= ff_h264_lps_state[*VAR_1];

    }



    renorm_cabac_encoder(VAR_0);

}

static void FUNC_0(CABACContext *VAR_0, uint8_t * const VAR_1, int VAR_2){ int VAR_3= ff_h264_lps_range[2*(VAR_0->range&0xC0) + *VAR_1]; if(VAR_2 == ((*VAR_1)&1)){ VAR_0->range -= VAR_3; *VAR_1= ff_h264_mps_state[*VAR_1]; }else{ VAR_0->low += VAR_0->range - VAR_3; VAR_0->range = VAR_3; *VAR_1= ff_h264_lps_state[*VAR_1]; } renorm_cabac_encoder(VAR_0); }