static int decode_cabac_field_decoding_flag(H264Context *h) {

    MpegEncContext * const s = &h->s;

    const int mb_x = s->mb_x;

    const int mb_y = s->mb_y & ~1;

    const int mba_xy = mb_x - 1 +  mb_y   *s->mb_stride;

    const int mbb_xy = mb_x     + (mb_y-2)*s->mb_stride;



    unsigned int ctx = 0;



    if( h->slice_table[mba_xy] == h->slice_num && IS_INTERLACED( s->current_picture.mb_type[mba_xy] ) ) {

        ctx += 1;

    }

    if( h->slice_table[mbb_xy] == h->slice_num && IS_INTERLACED( s->current_picture.mb_type[mbb_xy] ) ) {

        ctx += 1;

    }



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

}

static int decode_cabac_field_decoding_flag(H264Context *h) {

    MpegEncContext * const s = &h->s;

    const int mb_x = s->mb_x;

    const int mb_y = s->mb_y & ~1;

    const int mba_xy = mb_x - 1 +  mb_y   *s->mb_stride;

    const int mbb_xy = mb_x     + (mb_y-2)*s->mb_stride;



    unsigned int ctx = 0;



    if( h->slice_table[mba_xy] == h->slice_num && IS_INTERLACED( s->current_picture.mb_type[mba_xy] ) ) {

        ctx += 1;

    }

    if( h->slice_table[mbb_xy] == h->slice_num && IS_INTERLACED( s->current_picture.mb_type[mbb_xy] ) ) {

        ctx += 1;

    }



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

}

static int FUNC_0(H264Context *VAR_0) {

    MpegEncContext * const s = &VAR_0->s;

    const int VAR_1 = s->VAR_1;

    const int VAR_2 = s->VAR_2 & ~1;

    const int VAR_3 = VAR_1 - 1 +  VAR_2   *s->mb_stride;

    const int VAR_4 = VAR_1     + (VAR_2-2)*s->mb_stride;



    unsigned int VAR_5 = 0;



    if( VAR_0->slice_table[VAR_3] == VAR_0->slice_num && IS_INTERLACED( s->current_picture.mb_type[VAR_3] ) ) {

        VAR_5 += 1;

    }

    if( VAR_0->slice_table[VAR_4] == VAR_0->slice_num && IS_INTERLACED( s->current_picture.mb_type[VAR_4] ) ) {

        VAR_5 += 1;

    }



    return get_cabac( &VAR_0->cabac, &VAR_0->cabac_state[70 + VAR_5] );

}

static int FUNC_0(H264Context *VAR_0) { MpegEncContext * const s = &VAR_0->s; const int VAR_1 = s->VAR_1; const int VAR_2 = s->VAR_2 & ~1; const int VAR_3 = VAR_1 - 1 +  VAR_2   *s->mb_stride; const int VAR_4 = VAR_1     + (VAR_2-2)*s->mb_stride; unsigned int VAR_5 = 0; if( VAR_0->slice_table[VAR_3] == VAR_0->slice_num && IS_INTERLACED( s->current_picture.mb_type[VAR_3] ) ) { VAR_5 += 1; } if( VAR_0->slice_table[VAR_4] == VAR_0->slice_num && IS_INTERLACED( s->current_picture.mb_type[VAR_4] ) ) { VAR_5 += 1; } return get_cabac( &VAR_0->cabac, &VAR_0->cabac_state[70 + VAR_5] ); }