static float get_band_cost_UPAIR12_mips(struct AACEncContext *s,

                                        PutBitContext *pb, const float *in,

                                        const float *scaled, int size, int scale_idx,

                                        int cb, const float lambda, const float uplim,

                                        int *bits)

{

    const float Q34 = ff_aac_pow34sf_tab[POW_SF2_ZERO - scale_idx + SCALE_ONE_POS - SCALE_DIV_512];

    const float IQ  = ff_aac_pow2sf_tab [POW_SF2_ZERO + scale_idx - SCALE_ONE_POS + SCALE_DIV_512];

    int i;

    float cost = 0;

    int qc1, qc2, qc3, qc4;

    int curbits = 0;



    uint8_t *p_bits  = (uint8_t *)ff_aac_spectral_bits[cb-1];

    float   *p_codes = (float   *)ff_aac_codebook_vectors[cb-1];



    for (i = 0; i < size; i += 4) {

        const float *vec, *vec2;

        int curidx, curidx2;

        int sign1, count1, sign2, count2;

        int   *in_int = (int   *)&in[i];

        float *in_pos = (float *)&in[i];

        float di0, di1, di2, di3;

        int t0, t1, t2, t3, t4;



        qc1 = scaled[i  ] * Q34 + ROUND_STANDARD;

        qc2 = scaled[i+1] * Q34 + ROUND_STANDARD;

        qc3 = scaled[i+2] * Q34 + ROUND_STANDARD;

        qc4 = scaled[i+3] * Q34 + ROUND_STANDARD;



        __asm__ volatile (

            ".set push                                          \n\t"

            ".set noreorder                                     \n\t"



            "ori        %[t4],      $zero,      12              \n\t"

            "ori        %[sign1],   $zero,      0               \n\t"

            "ori        %[sign2],   $zero,      0               \n\t"

            "slt        %[t0],      %[t4],      %[qc1]          \n\t"

            "slt        %[t1],      %[t4],      %[qc2]          \n\t"

            "slt        %[t2],      %[t4],      %[qc3]          \n\t"

            "slt        %[t3],      %[t4],      %[qc4]          \n\t"

            "movn       %[qc1],     %[t4],      %[t0]           \n\t"

            "movn       %[qc2],     %[t4],      %[t1]           \n\t"

            "movn       %[qc3],     %[t4],      %[t2]           \n\t"

            "movn       %[qc4],     %[t4],      %[t3]           \n\t"

            "lw         %[t0],      0(%[in_int])                \n\t"

            "lw         %[t1],      4(%[in_int])                \n\t"

            "lw         %[t2],      8(%[in_int])                \n\t"

            "lw         %[t3],      12(%[in_int])               \n\t"

            "slt        %[t0],      %[t0],      $zero           \n\t"

            "movn       %[sign1],   %[t0],      %[qc1]          \n\t"

            "slt        %[t2],      %[t2],      $zero           \n\t"

            "movn       %[sign2],   %[t2],      %[qc3]          \n\t"

            "slt        %[t1],      %[t1],      $zero           \n\t"

            "sll        %[t0],      %[sign1],   1               \n\t"

            "or         %[t0],      %[t0],      %[t1]           \n\t"

            "movn       %[sign1],   %[t0],      %[qc2]          \n\t"

            "slt        %[t3],      %[t3],      $zero           \n\t"

            "sll        %[t0],      %[sign2],   1               \n\t"

            "or         %[t0],      %[t0],      %[t3]           \n\t"

            "movn       %[sign2],   %[t0],      %[qc4]          \n\t"

            "slt        %[count1],  $zero,      %[qc1]          \n\t"

            "slt        %[t1],      $zero,      %[qc2]          \n\t"

            "slt        %[count2],  $zero,      %[qc3]          \n\t"

            "slt        %[t2],      $zero,      %[qc4]          \n\t"

            "addu       %[count1],  %[count1],  %[t1]           \n\t"

            "addu       %[count2],  %[count2],  %[t2]           \n\t"



            ".set pop                                           \n\t"



            : [qc1]"+r"(qc1), [qc2]"+r"(qc2),

              [qc3]"+r"(qc3), [qc4]"+r"(qc4),

              [sign1]"=&r"(sign1), [count1]"=&r"(count1),

              [sign2]"=&r"(sign2), [count2]"=&r"(count2),

              [t0]"=&r"(t0), [t1]"=&r"(t1), [t2]"=&r"(t2), [t3]"=&r"(t3),

              [t4]"=&r"(t4)

            : [in_int]"r"(in_int)

            : "memory"

        );



        curidx = 13 * qc1;

        curidx += qc2;



        curidx2 = 13 * qc3;

        curidx2 += qc4;



        curbits += p_bits[curidx];

        curbits += p_bits[curidx2];

        curbits += upair12_sign_bits[curidx];

        curbits += upair12_sign_bits[curidx2];

        vec     = &p_codes[curidx*2];

        vec2    = &p_codes[curidx2*2];



        __asm__ volatile (

            ".set push                                          \n\t"

            ".set noreorder                                     \n\t"



            "lwc1       %[di0],     0(%[in_pos])                \n\t"

            "lwc1       %[di1],     4(%[in_pos])                \n\t"

            "lwc1       %[di2],     8(%[in_pos])                \n\t"

            "lwc1       %[di3],     12(%[in_pos])               \n\t"

            "abs.s      %[di0],     %[di0]                      \n\t"

            "abs.s      %[di1],     %[di1]                      \n\t"

            "abs.s      %[di2],     %[di2]                      \n\t"

            "abs.s      %[di3],     %[di3]                      \n\t"

            "lwc1       $f0,        0(%[vec])                   \n\t"

            "lwc1       $f1,        4(%[vec])                   \n\t"

            "lwc1       $f2,        0(%[vec2])                  \n\t"

            "lwc1       $f3,        4(%[vec2])                  \n\t"

            "nmsub.s    %[di0],     %[di0],     $f0,    %[IQ]   \n\t"

            "nmsub.s    %[di1],     %[di1],     $f1,    %[IQ]   \n\t"

            "nmsub.s    %[di2],     %[di2],     $f2,    %[IQ]   \n\t"

            "nmsub.s    %[di3],     %[di3],     $f3,    %[IQ]   \n\t"



            ".set pop                                           \n\t"



            : [di0]"=&f"(di0), [di1]"=&f"(di1),

              [di2]"=&f"(di2), [di3]"=&f"(di3)

            : [in_pos]"r"(in_pos), [vec]"r"(vec),

              [vec2]"r"(vec2), [IQ]"f"(IQ)

            : "$f0", "$f1", "$f2", "$f3",

              "memory"

        );



        cost += di0 * di0 + di1 * di1

                + di2 * di2 + di3 * di3;

    }



    if (bits)

        *bits = curbits;

    return cost * lambda + curbits;

}

static float get_band_cost_UPAIR12_mips(struct AACEncContext *s,

                                        PutBitContext *pb, const float *in,

                                        const float *scaled, int size, int scale_idx,

                                        int cb, const float lambda, const float uplim,

                                        int *bits)

{

    const float Q34 = ff_aac_pow34sf_tab[POW_SF2_ZERO - scale_idx + SCALE_ONE_POS - SCALE_DIV_512];

    const float IQ  = ff_aac_pow2sf_tab [POW_SF2_ZERO + scale_idx - SCALE_ONE_POS + SCALE_DIV_512];

    int i;

    float cost = 0;

    int qc1, qc2, qc3, qc4;

    int curbits = 0;



    uint8_t *p_bits  = (uint8_t *)ff_aac_spectral_bits[cb-1];

    float   *p_codes = (float   *)ff_aac_codebook_vectors[cb-1];



    for (i = 0; i < size; i += 4) {

        const float *vec, *vec2;

        int curidx, curidx2;

        int sign1, count1, sign2, count2;

        int   *in_int = (int   *)&in[i];

        float *in_pos = (float *)&in[i];

        float di0, di1, di2, di3;

        int t0, t1, t2, t3, t4;



        qc1 = scaled[i  ] * Q34 + ROUND_STANDARD;

        qc2 = scaled[i+1] * Q34 + ROUND_STANDARD;

        qc3 = scaled[i+2] * Q34 + ROUND_STANDARD;

        qc4 = scaled[i+3] * Q34 + ROUND_STANDARD;



        __asm__ volatile (

            ".set push                                          \n\t"

            ".set noreorder                                     \n\t"



            "ori        %[t4],      $zero,      12              \n\t"

            "ori        %[sign1],   $zero,      0               \n\t"

            "ori        %[sign2],   $zero,      0               \n\t"

            "slt        %[t0],      %[t4],      %[qc1]          \n\t"

            "slt        %[t1],      %[t4],      %[qc2]          \n\t"

            "slt        %[t2],      %[t4],      %[qc3]          \n\t"

            "slt        %[t3],      %[t4],      %[qc4]          \n\t"

            "movn       %[qc1],     %[t4],      %[t0]           \n\t"

            "movn       %[qc2],     %[t4],      %[t1]           \n\t"

            "movn       %[qc3],     %[t4],      %[t2]           \n\t"

            "movn       %[qc4],     %[t4],      %[t3]           \n\t"

            "lw         %[t0],      0(%[in_int])                \n\t"

            "lw         %[t1],      4(%[in_int])                \n\t"

            "lw         %[t2],      8(%[in_int])                \n\t"

            "lw         %[t3],      12(%[in_int])               \n\t"

            "slt        %[t0],      %[t0],      $zero           \n\t"

            "movn       %[sign1],   %[t0],      %[qc1]          \n\t"

            "slt        %[t2],      %[t2],      $zero           \n\t"

            "movn       %[sign2],   %[t2],      %[qc3]          \n\t"

            "slt        %[t1],      %[t1],      $zero           \n\t"

            "sll        %[t0],      %[sign1],   1               \n\t"

            "or         %[t0],      %[t0],      %[t1]           \n\t"

            "movn       %[sign1],   %[t0],      %[qc2]          \n\t"

            "slt        %[t3],      %[t3],      $zero           \n\t"

            "sll        %[t0],      %[sign2],   1               \n\t"

            "or         %[t0],      %[t0],      %[t3]           \n\t"

            "movn       %[sign2],   %[t0],      %[qc4]          \n\t"

            "slt        %[count1],  $zero,      %[qc1]          \n\t"

            "slt        %[t1],      $zero,      %[qc2]          \n\t"

            "slt        %[count2],  $zero,      %[qc3]          \n\t"

            "slt        %[t2],      $zero,      %[qc4]          \n\t"

            "addu       %[count1],  %[count1],  %[t1]           \n\t"

            "addu       %[count2],  %[count2],  %[t2]           \n\t"



            ".set pop                                           \n\t"



            : [qc1]"+r"(qc1), [qc2]"+r"(qc2),

              [qc3]"+r"(qc3), [qc4]"+r"(qc4),

              [sign1]"=&r"(sign1), [count1]"=&r"(count1),

              [sign2]"=&r"(sign2), [count2]"=&r"(count2),

              [t0]"=&r"(t0), [t1]"=&r"(t1), [t2]"=&r"(t2), [t3]"=&r"(t3),

              [t4]"=&r"(t4)

            : [in_int]"r"(in_int)

            : "memory"

        );



        curidx = 13 * qc1;

        curidx += qc2;



        curidx2 = 13 * qc3;

        curidx2 += qc4;



        curbits += p_bits[curidx];

        curbits += p_bits[curidx2];

        curbits += upair12_sign_bits[curidx];

        curbits += upair12_sign_bits[curidx2];

        vec     = &p_codes[curidx*2];

        vec2    = &p_codes[curidx2*2];



        __asm__ volatile (

            ".set push                                          \n\t"

            ".set noreorder                                     \n\t"



            "lwc1       %[di0],     0(%[in_pos])                \n\t"

            "lwc1       %[di1],     4(%[in_pos])                \n\t"

            "lwc1       %[di2],     8(%[in_pos])                \n\t"

            "lwc1       %[di3],     12(%[in_pos])               \n\t"

            "abs.s      %[di0],     %[di0]                      \n\t"

            "abs.s      %[di1],     %[di1]                      \n\t"

            "abs.s      %[di2],     %[di2]                      \n\t"

            "abs.s      %[di3],     %[di3]                      \n\t"

            "lwc1       $f0,        0(%[vec])                   \n\t"

            "lwc1       $f1,        4(%[vec])                   \n\t"

            "lwc1       $f2,        0(%[vec2])                  \n\t"

            "lwc1       $f3,        4(%[vec2])                  \n\t"

            "nmsub.s    %[di0],     %[di0],     $f0,    %[IQ]   \n\t"

            "nmsub.s    %[di1],     %[di1],     $f1,    %[IQ]   \n\t"

            "nmsub.s    %[di2],     %[di2],     $f2,    %[IQ]   \n\t"

            "nmsub.s    %[di3],     %[di3],     $f3,    %[IQ]   \n\t"



            ".set pop                                           \n\t"



            : [di0]"=&f"(di0), [di1]"=&f"(di1),

              [di2]"=&f"(di2), [di3]"=&f"(di3)

            : [in_pos]"r"(in_pos), [vec]"r"(vec),

              [vec2]"r"(vec2), [IQ]"f"(IQ)

            : "$f0", "$f1", "$f2", "$f3",

              "memory"

        );



        cost += di0 * di0 + di1 * di1

                + di2 * di2 + di3 * di3;

    }



    if (bits)

        *bits = curbits;

    return cost * lambda + curbits;

}

                                        int *bits)
static float FUNC_0(struct AACEncContext *VAR_0,

                                        PutBitContext *VAR_1, const float *VAR_2,

                                        const float *VAR_3, int VAR_4, int VAR_5,

                                        int VAR_6, const float VAR_7, const float VAR_8,

                                        int *VAR_9)

{

    const float VAR_10 = ff_aac_pow34sf_tab[POW_SF2_ZERO - VAR_5 + SCALE_ONE_POS - SCALE_DIV_512];

    const float VAR_11  = ff_aac_pow2sf_tab [POW_SF2_ZERO + VAR_5 - SCALE_ONE_POS + SCALE_DIV_512];

    int VAR_12;

    float VAR_13 = 0;

    int VAR_14, VAR_15, VAR_16, VAR_17;

    int VAR_18 = 0;



    uint8_t *p_bits  = (uint8_t *)ff_aac_spectral_bits[VAR_6-1];

    float   *VAR_19 = (float   *)ff_aac_codebook_vectors[VAR_6-1];



    for (VAR_12 = 0; VAR_12 < VAR_4; VAR_12 += 4) {

        const float *VAR_20, *VAR_21;

        int VAR_22, VAR_23;

        int VAR_24, VAR_25, VAR_26, VAR_27;

        int   *VAR_28 = (int   *)&VAR_2[VAR_12];

        float *VAR_29 = (float *)&VAR_2[VAR_12];

        float VAR_30, VAR_31, VAR_32, VAR_33;

        int VAR_34, VAR_35, VAR_36, VAR_37, VAR_38;



        VAR_14 = VAR_3[VAR_12  ] * VAR_10 + ROUND_STANDARD;

        VAR_15 = VAR_3[VAR_12+1] * VAR_10 + ROUND_STANDARD;

        VAR_16 = VAR_3[VAR_12+2] * VAR_10 + ROUND_STANDARD;

        VAR_17 = VAR_3[VAR_12+3] * VAR_10 + ROUND_STANDARD;



        __asm__ volatile (

            ".set push                                          \n\t"

            ".set noreorder                                     \n\t"



            "ori        %[VAR_38],      $zero,      12              \n\t"

            "ori        %[VAR_24],   $zero,      0               \n\t"

            "ori        %[VAR_26],   $zero,      0               \n\t"

            "slt        %[VAR_34],      %[VAR_38],      %[VAR_14]          \n\t"

            "slt        %[VAR_35],      %[VAR_38],      %[VAR_15]          \n\t"

            "slt        %[VAR_36],      %[VAR_38],      %[VAR_16]          \n\t"

            "slt        %[VAR_37],      %[VAR_38],      %[VAR_17]          \n\t"

            "movn       %[VAR_14],     %[VAR_38],      %[VAR_34]           \n\t"

            "movn       %[VAR_15],     %[VAR_38],      %[VAR_35]           \n\t"

            "movn       %[VAR_16],     %[VAR_38],      %[VAR_36]           \n\t"

            "movn       %[VAR_17],     %[VAR_38],      %[VAR_37]           \n\t"

            "lw         %[VAR_34],      0(%[VAR_28])                \n\t"

            "lw         %[VAR_35],      4(%[VAR_28])                \n\t"

            "lw         %[VAR_36],      8(%[VAR_28])                \n\t"

            "lw         %[VAR_37],      12(%[VAR_28])               \n\t"

            "slt        %[VAR_34],      %[VAR_34],      $zero           \n\t"

            "movn       %[VAR_24],   %[VAR_34],      %[VAR_14]          \n\t"

            "slt        %[VAR_36],      %[VAR_36],      $zero           \n\t"

            "movn       %[VAR_26],   %[VAR_36],      %[VAR_16]          \n\t"

            "slt        %[VAR_35],      %[VAR_35],      $zero           \n\t"

            "sll        %[VAR_34],      %[VAR_24],   1               \n\t"

            "or         %[VAR_34],      %[VAR_34],      %[VAR_35]           \n\t"

            "movn       %[VAR_24],   %[VAR_34],      %[VAR_15]          \n\t"

            "slt        %[VAR_37],      %[VAR_37],      $zero           \n\t"

            "sll        %[VAR_34],      %[VAR_26],   1               \n\t"

            "or         %[VAR_34],      %[VAR_34],      %[VAR_37]           \n\t"

            "movn       %[VAR_26],   %[VAR_34],      %[VAR_17]          \n\t"

            "slt        %[VAR_25],  $zero,      %[VAR_14]          \n\t"

            "slt        %[VAR_35],      $zero,      %[VAR_15]          \n\t"

            "slt        %[VAR_27],  $zero,      %[VAR_16]          \n\t"

            "slt        %[VAR_36],      $zero,      %[VAR_17]          \n\t"

            "addu       %[VAR_25],  %[VAR_25],  %[VAR_35]           \n\t"

            "addu       %[VAR_27],  %[VAR_27],  %[VAR_36]           \n\t"



            ".set pop                                           \n\t"



            : [VAR_14]"+r"(VAR_14), [VAR_15]"+r"(VAR_15),

              [VAR_16]"+r"(VAR_16), [VAR_17]"+r"(VAR_17),

              [VAR_24]"=&r"(VAR_24), [VAR_25]"=&r"(VAR_25),

              [VAR_26]"=&r"(VAR_26), [VAR_27]"=&r"(VAR_27),

              [VAR_34]"=&r"(VAR_34), [VAR_35]"=&r"(VAR_35), [VAR_36]"=&r"(VAR_36), [VAR_37]"=&r"(VAR_37),

              [VAR_38]"=&r"(VAR_38)

            : [VAR_28]"r"(VAR_28)

            : "memory"

        );



        VAR_22 = 13 * VAR_14;

        VAR_22 += VAR_15;



        VAR_23 = 13 * VAR_16;

        VAR_23 += VAR_17;



        VAR_18 += p_bits[VAR_22];

        VAR_18 += p_bits[VAR_23];

        VAR_18 += upair12_sign_bits[VAR_22];

        VAR_18 += upair12_sign_bits[VAR_23];

        VAR_20     = &VAR_19[VAR_22*2];

        VAR_21    = &VAR_19[VAR_23*2];



        __asm__ volatile (

            ".set push                                          \n\t"

            ".set noreorder                                     \n\t"



            "lwc1       %[VAR_30],     0(%[VAR_29])                \n\t"

            "lwc1       %[VAR_31],     4(%[VAR_29])                \n\t"

            "lwc1       %[VAR_32],     8(%[VAR_29])                \n\t"

            "lwc1       %[VAR_33],     12(%[VAR_29])               \n\t"

            "abs.VAR_0      %[VAR_30],     %[VAR_30]                      \n\t"

            "abs.VAR_0      %[VAR_31],     %[VAR_31]                      \n\t"

            "abs.VAR_0      %[VAR_32],     %[VAR_32]                      \n\t"

            "abs.VAR_0      %[VAR_33],     %[VAR_33]                      \n\t"

            "lwc1       $f0,        0(%[VAR_20])                   \n\t"

            "lwc1       $f1,        4(%[VAR_20])                   \n\t"

            "lwc1       $f2,        0(%[VAR_21])                  \n\t"

            "lwc1       $f3,        4(%[VAR_21])                  \n\t"

            "nmsub.VAR_0    %[VAR_30],     %[VAR_30],     $f0,    %[VAR_11]   \n\t"

            "nmsub.VAR_0    %[VAR_31],     %[VAR_31],     $f1,    %[VAR_11]   \n\t"

            "nmsub.VAR_0    %[VAR_32],     %[VAR_32],     $f2,    %[VAR_11]   \n\t"

            "nmsub.VAR_0    %[VAR_33],     %[VAR_33],     $f3,    %[VAR_11]   \n\t"



            ".set pop                                           \n\t"



            : [VAR_30]"=&f"(VAR_30), [VAR_31]"=&f"(VAR_31),

              [VAR_32]"=&f"(VAR_32), [VAR_33]"=&f"(VAR_33)

            : [VAR_29]"r"(VAR_29), [VAR_20]"r"(VAR_20),

              [VAR_21]"r"(VAR_21), [VAR_11]"f"(VAR_11)

            : "$f0", "$f1", "$f2", "$f3",

              "memory"

        );



        VAR_13 += VAR_30 * VAR_30 + VAR_31 * VAR_31

                + VAR_32 * VAR_32 + VAR_33 * VAR_33;

    }



    if (VAR_9)

        *VAR_9 = VAR_18;

    return VAR_13 * VAR_7 + VAR_18;

}

static float FUNC_0(struct AACEncContext *VAR_0,
PutBitContext *VAR_1, const float *VAR_2,
const float *VAR_3, int VAR_4, int VAR_5,
int VAR_6, const float VAR_7, const float VAR_8,
int *VAR_9)
{ const float VAR_10 = ff_aac_pow34sf_tab[POW_SF2_ZERO - VAR_5 + SCALE_ONE_POS - SCALE_DIV_512]; const float VAR_11  = ff_aac_pow2sf_tab [POW_SF2_ZERO + VAR_5 - SCALE_ONE_POS + SCALE_DIV_512]; int VAR_12; float VAR_13 = 0; int VAR_14, VAR_15, VAR_16, VAR_17; int VAR_18 = 0; uint8_t *p_bits  = (uint8_t *)ff_aac_spectral_bits[VAR_6-1]; float   *VAR_19 = (float   *)ff_aac_codebook_vectors[VAR_6-1]; for (VAR_12 = 0; VAR_12 < VAR_4; VAR_12 += 4) { const float *VAR_20, *VAR_21; int VAR_22, VAR_23; int VAR_24, VAR_25, VAR_26, VAR_27; int   *VAR_28 = (int   *)&VAR_2[VAR_12]; float *VAR_29 = (float *)&VAR_2[VAR_12]; float VAR_30, VAR_31, VAR_32, VAR_33; int VAR_34, VAR_35, VAR_36, VAR_37, VAR_38; VAR_14 = VAR_3[VAR_12  ] * VAR_10 + ROUND_STANDARD; VAR_15 = VAR_3[VAR_12+1] * VAR_10 + ROUND_STANDARD; VAR_16 = VAR_3[VAR_12+2] * VAR_10 + ROUND_STANDARD; VAR_17 = VAR_3[VAR_12+3] * VAR_10 + ROUND_STANDARD; __asm__ volatile (
".set push                                          \n\t"
".set noreorder                                     \n\t"
"ori        %[VAR_38],      $zero,      12              \n\t"
"ori        %[VAR_24],   $zero,      0               \n\t"
"ori        %[VAR_26],   $zero,      0               \n\t"
"slt        %[VAR_34],      %[VAR_38],      %[VAR_14]          \n\t"
"slt        %[VAR_35],      %[VAR_38],      %[VAR_15]          \n\t"
"slt        %[VAR_36],      %[VAR_38],      %[VAR_16]          \n\t"
"slt        %[VAR_37],      %[VAR_38],      %[VAR_17]          \n\t"
"movn       %[VAR_14],     %[VAR_38],      %[VAR_34]           \n\t"
"movn       %[VAR_15],     %[VAR_38],      %[VAR_35]           \n\t"
"movn       %[VAR_16],     %[VAR_38],      %[VAR_36]           \n\t"
"movn       %[VAR_17],     %[VAR_38],      %[VAR_37]           \n\t"
"lw         %[VAR_34],      0(%[VAR_28])                \n\t"
"lw         %[VAR_35],      4(%[VAR_28])                \n\t"
"lw         %[VAR_36],      8(%[VAR_28])                \n\t"
"lw         %[VAR_37],      12(%[VAR_28])               \n\t"
"slt        %[VAR_34],      %[VAR_34],      $zero           \n\t"
"movn       %[VAR_24],   %[VAR_34],      %[VAR_14]          \n\t"
"slt        %[VAR_36],      %[VAR_36],      $zero           \n\t"
"movn       %[VAR_26],   %[VAR_36],      %[VAR_16]          \n\t"
"slt        %[VAR_35],      %[VAR_35],      $zero           \n\t"
"sll        %[VAR_34],      %[VAR_24],   1               \n\t"
"or         %[VAR_34],      %[VAR_34],      %[VAR_35]           \n\t"
"movn       %[VAR_24],   %[VAR_34],      %[VAR_15]          \n\t"
"slt        %[VAR_37],      %[VAR_37],      $zero           \n\t"
"sll        %[VAR_34],      %[VAR_26],   1               \n\t"
"or         %[VAR_34],      %[VAR_34],      %[VAR_37]           \n\t"
"movn       %[VAR_26],   %[VAR_34],      %[VAR_17]          \n\t"
"slt        %[VAR_25],  $zero,      %[VAR_14]          \n\t"
"slt        %[VAR_35],      $zero,      %[VAR_15]          \n\t"
"slt        %[VAR_27],  $zero,      %[VAR_16]          \n\t"
"slt        %[VAR_36],      $zero,      %[VAR_17]          \n\t"
"addu       %[VAR_25],  %[VAR_25],  %[VAR_35]           \n\t"
"addu       %[VAR_27],  %[VAR_27],  %[VAR_36]           \n\t"
".set pop                                           \n\t"
: [VAR_14]"+r"(VAR_14), [VAR_15]"+r"(VAR_15),
[VAR_16]"+r"(VAR_16), [VAR_17]"+r"(VAR_17),
[VAR_24]"=&r"(VAR_24), [VAR_25]"=&r"(VAR_25),
[VAR_26]"=&r"(VAR_26), [VAR_27]"=&r"(VAR_27),
[VAR_34]"=&r"(VAR_34), [VAR_35]"=&r"(VAR_35), [VAR_36]"=&r"(VAR_36), [VAR_37]"=&r"(VAR_37),
[VAR_38]"=&r"(VAR_38)
: [VAR_28]"r"(VAR_28)
: "memory"
); VAR_22 = 13 * VAR_14; VAR_22 += VAR_15; VAR_23 = 13 * VAR_16; VAR_23 += VAR_17; VAR_18 += p_bits[VAR_22]; VAR_18 += p_bits[VAR_23]; VAR_18 += upair12_sign_bits[VAR_22]; VAR_18 += upair12_sign_bits[VAR_23]; VAR_20     = &VAR_19[VAR_22*2]; VAR_21    = &VAR_19[VAR_23*2]; __asm__ volatile (
".set push                                          \n\t"
".set noreorder                                     \n\t"
"lwc1       %[VAR_30],     0(%[VAR_29])                \n\t"
"lwc1       %[VAR_31],     4(%[VAR_29])                \n\t"
"lwc1       %[VAR_32],     8(%[VAR_29])                \n\t"
"lwc1       %[VAR_33],     12(%[VAR_29])               \n\t"
"abs.VAR_0      %[VAR_30],     %[VAR_30]                      \n\t"
"abs.VAR_0      %[VAR_31],     %[VAR_31]                      \n\t"
"abs.VAR_0      %[VAR_32],     %[VAR_32]                      \n\t"
"abs.VAR_0      %[VAR_33],     %[VAR_33]                      \n\t"
"lwc1       $f0,        0(%[VAR_20])                   \n\t"
"lwc1       $f1,        4(%[VAR_20])                   \n\t"
"lwc1       $f2,        0(%[VAR_21])                  \n\t"
"lwc1       $f3,        4(%[VAR_21])                  \n\t"
"nmsub.VAR_0    %[VAR_30],     %[VAR_30],     $f0,    %[VAR_11]   \n\t"
"nmsub.VAR_0    %[VAR_31],     %[VAR_31],     $f1,    %[VAR_11]   \n\t"
"nmsub.VAR_0    %[VAR_32],     %[VAR_32],     $f2,    %[VAR_11]   \n\t"
"nmsub.VAR_0    %[VAR_33],     %[VAR_33],     $f3,    %[VAR_11]   \n\t"
".set pop                                           \n\t"
: [VAR_30]"=&f"(VAR_30), [VAR_31]"=&f"(VAR_31),
[VAR_32]"=&f"(VAR_32), [VAR_33]"=&f"(VAR_33)
: [VAR_29]"r"(VAR_29), [VAR_20]"r"(VAR_20),
[VAR_21]"r"(VAR_21), [VAR_11]"f"(VAR_11)
: "$f0", "$f1", "$f2", "$f3",
"memory"
); VAR_13 += VAR_30 * VAR_30 + VAR_31 * VAR_31
+ VAR_32 * VAR_32 + VAR_33 * VAR_33; } if (VAR_9)
*VAR_9 = VAR_18; return VAR_13 * VAR_7 + VAR_18; }