static void spatial_compose53i_dy(dwt_compose_t *cs, DWTELEM *buffer, int width, int height, int stride){

    int y= cs->y;

    DWTELEM *b0= cs->b0;

    DWTELEM *b1= cs->b1;

    DWTELEM *b2= buffer + mirror(y+1, height-1)*stride;

    DWTELEM *b3= buffer + mirror(y+2, height-1)*stride;



{START_TIMER

        if(b1 <= b3) vertical_compose53iL0(b1, b2, b3, width);

        if(b0 <= b2) vertical_compose53iH0(b0, b1, b2, width);

STOP_TIMER("vertical_compose53i*")}



{START_TIMER

        if(y-1 >= 0) horizontal_compose53i(b0, width);

        if(b0 <= b2) horizontal_compose53i(b1, width);

STOP_TIMER("horizontal_compose53i")}



    cs->b0 = b2;

    cs->b1 = b3;

    cs->y += 2;

}

static void spatial_compose53i_dy(dwt_compose_t *cs, DWTELEM *buffer, int width, int height, int stride){

    int y= cs->y;

    DWTELEM *b0= cs->b0;

    DWTELEM *b1= cs->b1;

    DWTELEM *b2= buffer + mirror(y+1, height-1)*stride;

    DWTELEM *b3= buffer + mirror(y+2, height-1)*stride;



{START_TIMER

        if(b1 <= b3) vertical_compose53iL0(b1, b2, b3, width);

        if(b0 <= b2) vertical_compose53iH0(b0, b1, b2, width);

STOP_TIMER("vertical_compose53i*")}



{START_TIMER

        if(y-1 >= 0) horizontal_compose53i(b0, width);

        if(b0 <= b2) horizontal_compose53i(b1, width);

STOP_TIMER("horizontal_compose53i")}



    cs->b0 = b2;

    cs->b1 = b3;

    cs->y += 2;

}

        if(y-1 >= 0) horizontal_compose53i(b0, width);         if(b1 <= b3) vertical_compose53iL0(b1, b2, b3, width);         if(b0 <= b2) vertical_compose53iH0(b0, b1, b2, width);         if(y-1 >= 0) horizontal_compose53i(b0, width);         if(b0 <= b2) horizontal_compose53i(b1, width);
static void FUNC_0(dwt_compose_t *VAR_0, DWTELEM *VAR_1, int VAR_2, int VAR_3, int VAR_4){

    int VAR_5= VAR_0->VAR_5;

    DWTELEM *b0= VAR_0->b0;

    DWTELEM *b1= VAR_0->b1;

    DWTELEM *b2= VAR_1 + mirror(VAR_5+1, VAR_3-1)*VAR_4;

    DWTELEM *b3= VAR_1 + mirror(VAR_5+2, VAR_3-1)*VAR_4;



{START_TIMER

        if(b1 <= b3) vertical_compose53iL0(b1, b2, b3, VAR_2);

        if(b0 <= b2) vertical_compose53iH0(b0, b1, b2, VAR_2);

STOP_TIMER("vertical_compose53i*")}



{START_TIMER

        if(VAR_5-1 >= 0) horizontal_compose53i(b0, VAR_2);

        if(b0 <= b2) horizontal_compose53i(b1, VAR_2);

STOP_TIMER("horizontal_compose53i")}



    VAR_0->b0 = b2;

    VAR_0->b1 = b3;

    VAR_0->VAR_5 += 2;

}

static void FUNC_0(dwt_compose_t *VAR_0, DWTELEM *VAR_1, int VAR_2, int VAR_3, int VAR_4){ int VAR_5= VAR_0->VAR_5; DWTELEM *b0= VAR_0->b0; DWTELEM *b1= VAR_0->b1; DWTELEM *b2= VAR_1 + mirror(VAR_5+1, VAR_3-1)*VAR_4; DWTELEM *b3= VAR_1 + mirror(VAR_5+2, VAR_3-1)*VAR_4; {START_TIMER if(b1 <= b3) vertical_compose53iL0(b1, b2, b3, VAR_2); if(b0 <= b2) vertical_compose53iH0(b0, b1, b2, VAR_2); STOP_TIMER("vertical_compose53i*")} {START_TIMER if(VAR_5-1 >= 0) horizontal_compose53i(b0, VAR_2); if(b0 <= b2) horizontal_compose53i(b1, VAR_2); STOP_TIMER("horizontal_compose53i")} VAR_0->b0 = b2; VAR_0->b1 = b3; VAR_0->VAR_5 += 2; }