static int decode_cabac_mb_cbp_chroma( H264Context *h) {

    int ctx;

    int cbp_a, cbp_b;



    cbp_a = (h->left_cbp>>4)&0x03;

    cbp_b = (h-> top_cbp>>4)&0x03;



    ctx = 0;

    if( cbp_a > 0 ) ctx++;

    if( cbp_b > 0 ) ctx += 2;

    if( get_cabac( &h->cabac, &h->cabac_state[77 + ctx] ) == 0 )

        return 0;



    ctx = 4;

    if( cbp_a == 2 ) ctx++;

    if( cbp_b == 2 ) ctx += 2;

    return 1 + get_cabac( &h->cabac, &h->cabac_state[77 + ctx] );

}

static int decode_cabac_mb_cbp_chroma( H264Context *h) {

    int ctx;

    int cbp_a, cbp_b;



    cbp_a = (h->left_cbp>>4)&0x03;

    cbp_b = (h-> top_cbp>>4)&0x03;



    ctx = 0;

    if( cbp_a > 0 ) ctx++;

    if( cbp_b > 0 ) ctx += 2;

    if( get_cabac( &h->cabac, &h->cabac_state[77 + ctx] ) == 0 )

        return 0;



    ctx = 4;

    if( cbp_a == 2 ) ctx++;

    if( cbp_b == 2 ) ctx += 2;

    return 1 + get_cabac( &h->cabac, &h->cabac_state[77 + ctx] );

}

static int FUNC_0( H264Context *VAR_0) {

    int VAR_1;

    int VAR_2, VAR_3;



    VAR_2 = (VAR_0->left_cbp>>4)&0x03;

    VAR_3 = (VAR_0-> top_cbp>>4)&0x03;



    VAR_1 = 0;

    if( VAR_2 > 0 ) VAR_1++;

    if( VAR_3 > 0 ) VAR_1 += 2;

    if( get_cabac( &VAR_0->cabac, &VAR_0->cabac_state[77 + VAR_1] ) == 0 )

        return 0;



    VAR_1 = 4;

    if( VAR_2 == 2 ) VAR_1++;

    if( VAR_3 == 2 ) VAR_1 += 2;

    return 1 + get_cabac( &VAR_0->cabac, &VAR_0->cabac_state[77 + VAR_1] );

}

static int FUNC_0( H264Context *VAR_0) { int VAR_1; int VAR_2, VAR_3; VAR_2 = (VAR_0->left_cbp>>4)&0x03; VAR_3 = (VAR_0-> top_cbp>>4)&0x03; VAR_1 = 0; if( VAR_2 > 0 ) VAR_1++; if( VAR_3 > 0 ) VAR_1 += 2; if( get_cabac( &VAR_0->cabac, &VAR_0->cabac_state[77 + VAR_1] ) == 0 )
return 0; VAR_1 = 4; if( VAR_2 == 2 ) VAR_1++; if( VAR_3 == 2 ) VAR_1 += 2; return 1 + get_cabac( &VAR_0->cabac, &VAR_0->cabac_state[77 + VAR_1] ); }