void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size){

    c->bytestream_start=

    c->bytestream= buf;

    c->bytestream_end= buf + buf_size;



#if CABAC_BITS == 16

    c->low =  (*c->bytestream++)<<18;

    c->low+=  (*c->bytestream++)<<10;

#else

    c->low =  (*c->bytestream++)<<10;

#endif

    c->low+= ((*c->bytestream++)<<2) + 2;

    c->range= 0x1FE;

}

void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size){

    c->bytestream_start=

    c->bytestream= buf;

    c->bytestream_end= buf + buf_size;



#if CABAC_BITS == 16

    c->low =  (*c->bytestream++)<<18;

    c->low+=  (*c->bytestream++)<<10;

#else

    c->low =  (*c->bytestream++)<<10;

#endif

    c->low+= ((*c->bytestream++)<<2) + 2;

    c->range= 0x1FE;

}

void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size){
void FUNC_0(CABACContext *VAR_0, const uint8_t *VAR_1, int VAR_2){

    VAR_0->bytestream_start=

    VAR_0->bytestream= VAR_1;

    VAR_0->bytestream_end= VAR_1 + VAR_2;



#if CABAC_BITS == 16

    VAR_0->low =  (*VAR_0->bytestream++)<<18;

    VAR_0->low+=  (*VAR_0->bytestream++)<<10;

#else

    VAR_0->low =  (*VAR_0->bytestream++)<<10;

#endif

    VAR_0->low+= ((*VAR_0->bytestream++)<<2) + 2;

    VAR_0->range= 0x1FE;

}

void FUNC_0(CABACContext *VAR_0, const uint8_t *VAR_1, int VAR_2){ VAR_0->bytestream_start=
VAR_0->bytestream= VAR_1; VAR_0->bytestream_end= VAR_1 + VAR_2; #if CABAC_BITS == 16
VAR_0->low =  (*VAR_0->bytestream++)<<18; VAR_0->low+=  (*VAR_0->bytestream++)<<10; #else
VAR_0->low =  (*VAR_0->bytestream++)<<10; #endif
VAR_0->low+= ((*VAR_0->bytestream++)<<2) + 2; VAR_0->range= 0x1FE; }