static inline void idct_col(int16_t *blk, const uint8_t *quant)

{

    int t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, tA, tB, tC, tD, tE, tF;

    int t10, t11, t12, t13;

    int s0, s1, s2, s3, s4, s5, s6, s7;



    s0 = (int) blk[0 * 8] * quant[0 * 8];

    s1 = (int) blk[1 * 8] * quant[1 * 8];

    s2 = (int) blk[2 * 8] * quant[2 * 8];

    s3 = (int) blk[3 * 8] * quant[3 * 8];

    s4 = (int) blk[4 * 8] * quant[4 * 8];

    s5 = (int) blk[5 * 8] * quant[5 * 8];

    s6 = (int) blk[6 * 8] * quant[6 * 8];

    s7 = (int) blk[7 * 8] * quant[7 * 8];



    t0  =  (s3 * 19266 + s5 * 12873) >> 15;

    t1  =  (s5 * 19266 - s3 * 12873) >> 15;

    t2  = ((s7 * 4520  + s1 * 22725) >> 15) - t0;

    t3  = ((s1 * 4520  - s7 * 22725) >> 15) - t1;

    t4  = t0 * 2 + t2;

    t5  = t1 * 2 + t3;

    t6  = t2 - t3;

    t7  = t3 * 2 + t6;

    t8  = (t6 * 11585) >> 14;

    t9  = (t7 * 11585) >> 14;

    tA  = (s2 * 8867 - s6 * 21407) >> 14;

    tB  = (s6 * 8867 + s2 * 21407) >> 14;

    tC  = (s0 >> 1) - (s4 >> 1);

    tD  = (s4 >> 1) * 2 + tC;

    tE  = tC - (tA >> 1);

    tF  = tD - (tB >> 1);

    t10 = tF - t5;

    t11 = tE - t8;

    t12 = tE + (tA >> 1) * 2 - t9;

    t13 = tF + (tB >> 1) * 2 - t4;



    blk[0 * 8] = t13 + t4 * 2;

    blk[1 * 8] = t12 + t9 * 2;

    blk[2 * 8] = t11 + t8 * 2;

    blk[3 * 8] = t10 + t5 * 2;

    blk[4 * 8] = t10;

    blk[5 * 8] = t11;

    blk[6 * 8] = t12;

    blk[7 * 8] = t13;

}

static inline void idct_col(int16_t *blk, const uint8_t *quant)

{

    int t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, tA, tB, tC, tD, tE, tF;

    int t10, t11, t12, t13;

    int s0, s1, s2, s3, s4, s5, s6, s7;



    s0 = (int) blk[0 * 8] * quant[0 * 8];

    s1 = (int) blk[1 * 8] * quant[1 * 8];

    s2 = (int) blk[2 * 8] * quant[2 * 8];

    s3 = (int) blk[3 * 8] * quant[3 * 8];

    s4 = (int) blk[4 * 8] * quant[4 * 8];

    s5 = (int) blk[5 * 8] * quant[5 * 8];

    s6 = (int) blk[6 * 8] * quant[6 * 8];

    s7 = (int) blk[7 * 8] * quant[7 * 8];



    t0  =  (s3 * 19266 + s5 * 12873) >> 15;

    t1  =  (s5 * 19266 - s3 * 12873) >> 15;

    t2  = ((s7 * 4520  + s1 * 22725) >> 15) - t0;

    t3  = ((s1 * 4520  - s7 * 22725) >> 15) - t1;

    t4  = t0 * 2 + t2;

    t5  = t1 * 2 + t3;

    t6  = t2 - t3;

    t7  = t3 * 2 + t6;

    t8  = (t6 * 11585) >> 14;

    t9  = (t7 * 11585) >> 14;

    tA  = (s2 * 8867 - s6 * 21407) >> 14;

    tB  = (s6 * 8867 + s2 * 21407) >> 14;

    tC  = (s0 >> 1) - (s4 >> 1);

    tD  = (s4 >> 1) * 2 + tC;

    tE  = tC - (tA >> 1);

    tF  = tD - (tB >> 1);

    t10 = tF - t5;

    t11 = tE - t8;

    t12 = tE + (tA >> 1) * 2 - t9;

    t13 = tF + (tB >> 1) * 2 - t4;



    blk[0 * 8] = t13 + t4 * 2;

    blk[1 * 8] = t12 + t9 * 2;

    blk[2 * 8] = t11 + t8 * 2;

    blk[3 * 8] = t10 + t5 * 2;

    blk[4 * 8] = t10;

    blk[5 * 8] = t11;

    blk[6 * 8] = t12;

    blk[7 * 8] = t13;

}

    t0  =  (s3 * 19266 + s5 * 12873) >> 15;     t1  =  (s5 * 19266 - s3 * 12873) >> 15;     t2  = ((s7 * 4520  + s1 * 22725) >> 15) - t0;     t3  = ((s1 * 4520  - s7 * 22725) >> 15) - t1;     tA  = (s2 * 8867 - s6 * 21407) >> 14;     tB  = (s6 * 8867 + s2 * 21407) >> 14;
static inline void FUNC_0(int16_t *VAR_0, const uint8_t *VAR_1)

{

    int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17;

    int VAR_18, VAR_19, VAR_20, VAR_21;

    int VAR_22, VAR_23, VAR_24, VAR_25, VAR_26, VAR_27, VAR_28, VAR_29;



    VAR_22 = (int) VAR_0[0 * 8] * VAR_1[0 * 8];

    VAR_23 = (int) VAR_0[1 * 8] * VAR_1[1 * 8];

    VAR_24 = (int) VAR_0[2 * 8] * VAR_1[2 * 8];

    VAR_25 = (int) VAR_0[3 * 8] * VAR_1[3 * 8];

    VAR_26 = (int) VAR_0[4 * 8] * VAR_1[4 * 8];

    VAR_27 = (int) VAR_0[5 * 8] * VAR_1[5 * 8];

    VAR_28 = (int) VAR_0[6 * 8] * VAR_1[6 * 8];

    VAR_29 = (int) VAR_0[7 * 8] * VAR_1[7 * 8];



    VAR_2  =  (VAR_25 * 19266 + VAR_27 * 12873) >> 15;

    VAR_3  =  (VAR_27 * 19266 - VAR_25 * 12873) >> 15;

    VAR_4  = ((VAR_29 * 4520  + VAR_23 * 22725) >> 15) - VAR_2;

    VAR_5  = ((VAR_23 * 4520  - VAR_29 * 22725) >> 15) - VAR_3;

    VAR_6  = VAR_2 * 2 + VAR_4;

    VAR_7  = VAR_3 * 2 + VAR_5;

    VAR_8  = VAR_4 - VAR_5;

    VAR_9  = VAR_5 * 2 + VAR_8;

    VAR_10  = (VAR_8 * 11585) >> 14;

    VAR_11  = (VAR_9 * 11585) >> 14;

    VAR_12  = (VAR_24 * 8867 - VAR_28 * 21407) >> 14;

    VAR_13  = (VAR_28 * 8867 + VAR_24 * 21407) >> 14;

    VAR_14  = (VAR_22 >> 1) - (VAR_26 >> 1);

    VAR_15  = (VAR_26 >> 1) * 2 + VAR_14;

    VAR_16  = VAR_14 - (VAR_12 >> 1);

    VAR_17  = VAR_15 - (VAR_13 >> 1);

    VAR_18 = VAR_17 - VAR_7;

    VAR_19 = VAR_16 - VAR_10;

    VAR_20 = VAR_16 + (VAR_12 >> 1) * 2 - VAR_11;

    VAR_21 = VAR_17 + (VAR_13 >> 1) * 2 - VAR_6;



    VAR_0[0 * 8] = VAR_21 + VAR_6 * 2;

    VAR_0[1 * 8] = VAR_20 + VAR_11 * 2;

    VAR_0[2 * 8] = VAR_19 + VAR_10 * 2;

    VAR_0[3 * 8] = VAR_18 + VAR_7 * 2;

    VAR_0[4 * 8] = VAR_18;

    VAR_0[5 * 8] = VAR_19;

    VAR_0[6 * 8] = VAR_20;

    VAR_0[7 * 8] = VAR_21;

}

static inline void FUNC_0(int16_t *VAR_0, const uint8_t *VAR_1)
{ int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17; int VAR_18, VAR_19, VAR_20, VAR_21; int VAR_22, VAR_23, VAR_24, VAR_25, VAR_26, VAR_27, VAR_28, VAR_29; VAR_22 = (int) VAR_0[0 * 8] * VAR_1[0 * 8]; VAR_23 = (int) VAR_0[1 * 8] * VAR_1[1 * 8]; VAR_24 = (int) VAR_0[2 * 8] * VAR_1[2 * 8]; VAR_25 = (int) VAR_0[3 * 8] * VAR_1[3 * 8]; VAR_26 = (int) VAR_0[4 * 8] * VAR_1[4 * 8]; VAR_27 = (int) VAR_0[5 * 8] * VAR_1[5 * 8]; VAR_28 = (int) VAR_0[6 * 8] * VAR_1[6 * 8]; VAR_29 = (int) VAR_0[7 * 8] * VAR_1[7 * 8]; VAR_2  =  (VAR_25 * 19266 + VAR_27 * 12873) >> 15; VAR_3  =  (VAR_27 * 19266 - VAR_25 * 12873) >> 15; VAR_4  = ((VAR_29 * 4520  + VAR_23 * 22725) >> 15) - VAR_2; VAR_5  = ((VAR_23 * 4520  - VAR_29 * 22725) >> 15) - VAR_3; VAR_6  = VAR_2 * 2 + VAR_4; VAR_7  = VAR_3 * 2 + VAR_5; VAR_8  = VAR_4 - VAR_5; VAR_9  = VAR_5 * 2 + VAR_8; VAR_10  = (VAR_8 * 11585) >> 14; VAR_11  = (VAR_9 * 11585) >> 14; VAR_12  = (VAR_24 * 8867 - VAR_28 * 21407) >> 14; VAR_13  = (VAR_28 * 8867 + VAR_24 * 21407) >> 14; VAR_14  = (VAR_22 >> 1) - (VAR_26 >> 1); VAR_15  = (VAR_26 >> 1) * 2 + VAR_14; VAR_16  = VAR_14 - (VAR_12 >> 1); VAR_17  = VAR_15 - (VAR_13 >> 1); VAR_18 = VAR_17 - VAR_7; VAR_19 = VAR_16 - VAR_10; VAR_20 = VAR_16 + (VAR_12 >> 1) * 2 - VAR_11; VAR_21 = VAR_17 + (VAR_13 >> 1) * 2 - VAR_6; VAR_0[0 * 8] = VAR_21 + VAR_6 * 2; VAR_0[1 * 8] = VAR_20 + VAR_11 * 2; VAR_0[2 * 8] = VAR_19 + VAR_10 * 2; VAR_0[3 * 8] = VAR_18 + VAR_7 * 2; VAR_0[4 * 8] = VAR_18; VAR_0[5 * 8] = VAR_19; VAR_0[6 * 8] = VAR_20; VAR_0[7 * 8] = VAR_21; }