static inline short adpcm_ms_expand_nibble(ADPCMChannelStatus *c, int nibble)

{

    int predictor;



    predictor = (((c->sample1) * (c->coeff1)) + ((c->sample2) * (c->coeff2))) / 64;

    predictor += ((nibble & 0x08)?(nibble - 0x10):(nibble)) * c->idelta;



    c->sample2 = c->sample1;

    c->sample1 = av_clip_int16(predictor);

    c->idelta = (ff_adpcm_AdaptationTable[(int)nibble] * c->idelta) >> 8;

    if (c->idelta < 16) c->idelta = 16;







    return c->sample1;

static inline short adpcm_ms_expand_nibble(ADPCMChannelStatus *c, int nibble)

{

    int predictor;



    predictor = (((c->sample1) * (c->coeff1)) + ((c->sample2) * (c->coeff2))) / 64;

    predictor += ((nibble & 0x08)?(nibble - 0x10):(nibble)) * c->idelta;



    c->sample2 = c->sample1;

    c->sample1 = av_clip_int16(predictor);

    c->idelta = (ff_adpcm_AdaptationTable[(int)nibble] * c->idelta) >> 8;

    if (c->idelta < 16) c->idelta = 16;







    return c->sample1;

static inline short FUNC_0(ADPCMChannelStatus *VAR_0, int VAR_1)

{

    int VAR_2;



    VAR_2 = (((VAR_0->sample1) * (VAR_0->coeff1)) + ((VAR_0->sample2) * (VAR_0->coeff2))) / 64;

    VAR_2 += ((VAR_1 & 0x08)?(VAR_1 - 0x10):(VAR_1)) * VAR_0->idelta;



    VAR_0->sample2 = VAR_0->sample1;

    VAR_0->sample1 = av_clip_int16(VAR_2);

    VAR_0->idelta = (ff_adpcm_AdaptationTable[(int)VAR_1] * VAR_0->idelta) >> 8;

    if (VAR_0->idelta < 16) VAR_0->idelta = 16;







    return VAR_0->sample1;

static inline short FUNC_0(ADPCMChannelStatus *VAR_0, int VAR_1)
{ int VAR_2; VAR_2 = (((VAR_0->sample1) * (VAR_0->coeff1)) + ((VAR_0->sample2) * (VAR_0->coeff2))) / 64; VAR_2 += ((VAR_1 & 0x08)?(VAR_1 - 0x10):(VAR_1)) * VAR_0->idelta; VAR_0->sample2 = VAR_0->sample1; VAR_0->sample1 = av_clip_int16(VAR_2); VAR_0->idelta = (ff_adpcm_AdaptationTable[(int)VAR_1] * VAR_0->idelta) >> 8; if (VAR_0->idelta < 16) VAR_0->idelta = 16; return VAR_0->sample1;