static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx)

{

    int b, i, j;

    int buffer1[10];

    int buffer2[10];

    int *bp1 = buffer1;

    int *bp2 = buffer2;



    for (i=0; i < 10; i++)

        buffer2[i] = coefs[i];



    refl[9] = bp2[9];



    if ((unsigned) bp2[9] + 0x1000 > 0x1fff) {

        av_log(ractx, AV_LOG_ERROR, "Overflow. Broken sample?\n");

        return 1;

    }



    for (i=8; i >= 0; i--) {

        b = 0x1000-((bp2[i+1] * bp2[i+1]) >> 12);



        if (!b)

            b = -2;



        for (j=0; j <= i; j++)

            bp1[j] = ((bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12)) * (0x1000000 / b)) >> 12;



        refl[i] = bp1[i];



        if ((unsigned) bp1[i] + 0x1000 > 0x1fff)

            return 1;



        FFSWAP(int *, bp1, bp2);

    }

    return 0;

}

static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx)

{

    int b, i, j;

    int buffer1[10];

    int buffer2[10];

    int *bp1 = buffer1;

    int *bp2 = buffer2;



    for (i=0; i < 10; i++)

        buffer2[i] = coefs[i];



    refl[9] = bp2[9];



    if ((unsigned) bp2[9] + 0x1000 > 0x1fff) {

        av_log(ractx, AV_LOG_ERROR, "Overflow. Broken sample?\n");

        return 1;

    }



    for (i=8; i >= 0; i--) {

        b = 0x1000-((bp2[i+1] * bp2[i+1]) >> 12);



        if (!b)

            b = -2;



        for (j=0; j <= i; j++)

            bp1[j] = ((bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12)) * (0x1000000 / b)) >> 12;



        refl[i] = bp1[i];



        if ((unsigned) bp1[i] + 0x1000 > 0x1fff)

            return 1;



        FFSWAP(int *, bp1, bp2);

    }

    return 0;

}

        refl[i] = bp1[i];
static int FUNC_0(int *VAR_0, const int16_t *VAR_1, RA144Context *VAR_2)

{

    int VAR_3, VAR_4, VAR_5;

    int VAR_6[10];

    int VAR_7[10];

    int *VAR_8 = VAR_6;

    int *VAR_9 = VAR_7;



    for (VAR_4=0; VAR_4 < 10; VAR_4++)

        VAR_7[VAR_4] = VAR_1[VAR_4];



    VAR_0[9] = VAR_9[9];



    if ((unsigned) VAR_9[9] + 0x1000 > 0x1fff) {

        av_log(VAR_2, AV_LOG_ERROR, "Overflow. Broken sample?\n");

        return 1;

    }



    for (VAR_4=8; VAR_4 >= 0; VAR_4--) {

        VAR_3 = 0x1000-((VAR_9[VAR_4+1] * VAR_9[VAR_4+1]) >> 12);



        if (!VAR_3)

            VAR_3 = -2;



        for (VAR_5=0; VAR_5 <= VAR_4; VAR_5++)

            VAR_8[VAR_5] = ((VAR_9[VAR_5] - ((VAR_0[VAR_4+1] * VAR_9[VAR_4-VAR_5]) >> 12)) * (0x1000000 / VAR_3)) >> 12;



        VAR_0[VAR_4] = VAR_8[VAR_4];



        if ((unsigned) VAR_8[VAR_4] + 0x1000 > 0x1fff)

            return 1;



        FFSWAP(int *, VAR_8, VAR_9);

    }

    return 0;

}

static int FUNC_0(int *VAR_0, const int16_t *VAR_1, RA144Context *VAR_2)
{ int VAR_3, VAR_4, VAR_5; int VAR_6[10]; int VAR_7[10]; int *VAR_8 = VAR_6; int *VAR_9 = VAR_7; for (VAR_4=0; VAR_4 < 10; VAR_4++) VAR_7[VAR_4] = VAR_1[VAR_4]; VAR_0[9] = VAR_9[9]; if ((unsigned) VAR_9[9] + 0x1000 > 0x1fff) { av_log(VAR_2, AV_LOG_ERROR, "Overflow. Broken sample?\n"); return 1; } for (VAR_4=8; VAR_4 >= 0; VAR_4--) { VAR_3 = 0x1000-((VAR_9[VAR_4+1] * VAR_9[VAR_4+1]) >> 12); if (!VAR_3)
VAR_3 = -2; for (VAR_5=0; VAR_5 <= VAR_4; VAR_5++) VAR_8[VAR_5] = ((VAR_9[VAR_5] - ((VAR_0[VAR_4+1] * VAR_9[VAR_4-VAR_5]) >> 12)) * (0x1000000 / VAR_3)) >> 12; VAR_0[VAR_4] = VAR_8[VAR_4]; if ((unsigned) VAR_8[VAR_4] + 0x1000 > 0x1fff)
return 1; FFSWAP(int *, VAR_8, VAR_9); } return 0; }