static inline int wv_get_value_integer(WavpackFrameContext *s, uint32_t *crc,

                                       int S)

{

    unsigned bit;



    if (s->extra_bits) {

        S <<= s->extra_bits;



        if (s->got_extra_bits &&

            get_bits_left(&s->gb_extra_bits) >= s->extra_bits) {

            S   |= get_bits_long(&s->gb_extra_bits, s->extra_bits);

            *crc = *crc * 9 + (S & 0xffff) * 3 + ((unsigned)S >> 16);

        }

    }



    bit = (S & s->and) | s->or;

    bit = ((S + bit) << s->shift) - bit;



    if (s->hybrid)

        bit = av_clip(bit, s->hybrid_minclip, s->hybrid_maxclip);



    return bit << s->post_shift;

}

static inline int wv_get_value_integer(WavpackFrameContext *s, uint32_t *crc,

                                       int S)

{

    unsigned bit;



    if (s->extra_bits) {

        S <<= s->extra_bits;



        if (s->got_extra_bits &&

            get_bits_left(&s->gb_extra_bits) >= s->extra_bits) {

            S   |= get_bits_long(&s->gb_extra_bits, s->extra_bits);

            *crc = *crc * 9 + (S & 0xffff) * 3 + ((unsigned)S >> 16);

        }

    }



    bit = (S & s->and) | s->or;

    bit = ((S + bit) << s->shift) - bit;



    if (s->hybrid)

        bit = av_clip(bit, s->hybrid_minclip, s->hybrid_maxclip);



    return bit << s->post_shift;

}

        S <<= s->extra_bits;
static inline int FUNC_0(WavpackFrameContext *VAR_0, uint32_t *VAR_1,

                                       int VAR_2)

{

    unsigned VAR_3;



    if (VAR_0->extra_bits) {

        VAR_2 <<= VAR_0->extra_bits;



        if (VAR_0->got_extra_bits &&

            get_bits_left(&VAR_0->gb_extra_bits) >= VAR_0->extra_bits) {

            VAR_2   |= get_bits_long(&VAR_0->gb_extra_bits, VAR_0->extra_bits);

            *VAR_1 = *VAR_1 * 9 + (VAR_2 & 0xffff) * 3 + ((unsigned)VAR_2 >> 16);

        }

    }



    VAR_3 = (VAR_2 & VAR_0->and) | VAR_0->or;

    VAR_3 = ((VAR_2 + VAR_3) << VAR_0->shift) - VAR_3;



    if (VAR_0->hybrid)

        VAR_3 = av_clip(VAR_3, VAR_0->hybrid_minclip, VAR_0->hybrid_maxclip);



    return VAR_3 << VAR_0->post_shift;

}

static inline int FUNC_0(WavpackFrameContext *VAR_0, uint32_t *VAR_1,
int VAR_2)
{ unsigned VAR_3; if (VAR_0->extra_bits) { VAR_2 <<= VAR_0->extra_bits; if (VAR_0->got_extra_bits &&
get_bits_left(&VAR_0->gb_extra_bits) >= VAR_0->extra_bits) { VAR_2   |= get_bits_long(&VAR_0->gb_extra_bits, VAR_0->extra_bits); *VAR_1 = *VAR_1 * 9 + (VAR_2 & 0xffff) * 3 + ((unsigned)VAR_2 >> 16); } } VAR_3 = (VAR_2 & VAR_0->and) | VAR_0->or; VAR_3 = ((VAR_2 + VAR_3) << VAR_0->shift) - VAR_3; if (VAR_0->hybrid)
VAR_3 = av_clip(VAR_3, VAR_0->hybrid_minclip, VAR_0->hybrid_maxclip); return VAR_3 << VAR_0->post_shift; }