static void ttafilter_init(TTAContext *s, TTAFilter *c, int32_t shift) {

    memset(c, 0, sizeof(TTAFilter));

    if (s->pass) {

        int i;

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

            c->qm[i] = sign_extend(s->crc_pass[i], 8);

    }

    c->shift = shift;

   c->round = shift_1[shift-1];

//    c->round = 1 << (shift - 1);

}

static void ttafilter_init(TTAContext *s, TTAFilter *c, int32_t shift) {

    memset(c, 0, sizeof(TTAFilter));

    if (s->pass) {

        int i;

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

            c->qm[i] = sign_extend(s->crc_pass[i], 8);

    }

    c->shift = shift;

   c->round = shift_1[shift-1];



}

static void FUNC_0(TTAContext *VAR_0, TTAFilter *VAR_1, int32_t VAR_2) {

    memset(VAR_1, 0, sizeof(TTAFilter));

    if (VAR_0->pass) {

        int VAR_3;

        for (VAR_3 = 0; VAR_3 < 8; VAR_3++)

            VAR_1->qm[VAR_3] = sign_extend(VAR_0->crc_pass[VAR_3], 8);

    }

    VAR_1->VAR_2 = VAR_2;

   VAR_1->round = shift_1[VAR_2-1];



}

static void FUNC_0(TTAContext *VAR_0, TTAFilter *VAR_1, int32_t VAR_2) { memset(VAR_1, 0, sizeof(TTAFilter)); if (VAR_0->pass) { int VAR_3; for (VAR_3 = 0; VAR_3 < 8; VAR_3++) VAR_1->qm[VAR_3] = sign_extend(VAR_0->crc_pass[VAR_3], 8); } VAR_1->VAR_2 = VAR_2; VAR_1->round = shift_1[VAR_2-1]; }