static void disas_cc(DisasContext *s, uint32_t insn)

{

    unsigned int sf, op, y, cond, rn, nzcv, is_imm;

    int label_continue = -1;

    TCGv_i64 tcg_tmp, tcg_y, tcg_rn;



    if (!extract32(insn, 29, 1)) {

        unallocated_encoding(s);

        return;

    }

    if (insn & (1 << 10 | 1 << 4)) {

        unallocated_encoding(s);

        return;

    }

    sf = extract32(insn, 31, 1);

    op = extract32(insn, 30, 1);

    is_imm = extract32(insn, 11, 1);

    y = extract32(insn, 16, 5); /* y = rm (reg) or imm5 (imm) */

    cond = extract32(insn, 12, 4);

    rn = extract32(insn, 5, 5);

    nzcv = extract32(insn, 0, 4);



    if (cond < 0x0e) { /* not always */

        int label_match = gen_new_label();

        label_continue = gen_new_label();

        arm_gen_test_cc(cond, label_match);

        /* nomatch: */

        tcg_tmp = tcg_temp_new_i64();

        tcg_gen_movi_i64(tcg_tmp, nzcv << 28);

        gen_set_nzcv(tcg_tmp);

        tcg_temp_free_i64(tcg_tmp);

        tcg_gen_br(label_continue);

        gen_set_label(label_match);

    }

    /* match, or condition is always */

    if (is_imm) {

        tcg_y = new_tmp_a64(s);

        tcg_gen_movi_i64(tcg_y, y);

    } else {

        tcg_y = cpu_reg(s, y);

    }

    tcg_rn = cpu_reg(s, rn);



    tcg_tmp = tcg_temp_new_i64();

    if (op) {

        gen_sub_CC(sf, tcg_tmp, tcg_rn, tcg_y);

    } else {

        gen_add_CC(sf, tcg_tmp, tcg_rn, tcg_y);

    }

    tcg_temp_free_i64(tcg_tmp);



    if (cond < 0x0e) { /* continue */

        gen_set_label(label_continue);

    }

}

static void disas_cc(DisasContext *s, uint32_t insn)

{

    unsigned int sf, op, y, cond, rn, nzcv, is_imm;

    int label_continue = -1;

    TCGv_i64 tcg_tmp, tcg_y, tcg_rn;



    if (!extract32(insn, 29, 1)) {

        unallocated_encoding(s);

        return;

    }

    if (insn & (1 << 10 | 1 << 4)) {

        unallocated_encoding(s);

        return;

    }

    sf = extract32(insn, 31, 1);

    op = extract32(insn, 30, 1);

    is_imm = extract32(insn, 11, 1);

    y = extract32(insn, 16, 5); 

    cond = extract32(insn, 12, 4);

    rn = extract32(insn, 5, 5);

    nzcv = extract32(insn, 0, 4);



    if (cond < 0x0e) { 

        int label_match = gen_new_label();

        label_continue = gen_new_label();

        arm_gen_test_cc(cond, label_match);

        

        tcg_tmp = tcg_temp_new_i64();

        tcg_gen_movi_i64(tcg_tmp, nzcv << 28);

        gen_set_nzcv(tcg_tmp);

        tcg_temp_free_i64(tcg_tmp);

        tcg_gen_br(label_continue);

        gen_set_label(label_match);

    }

    

    if (is_imm) {

        tcg_y = new_tmp_a64(s);

        tcg_gen_movi_i64(tcg_y, y);

    } else {

        tcg_y = cpu_reg(s, y);

    }

    tcg_rn = cpu_reg(s, rn);



    tcg_tmp = tcg_temp_new_i64();

    if (op) {

        gen_sub_CC(sf, tcg_tmp, tcg_rn, tcg_y);

    } else {

        gen_add_CC(sf, tcg_tmp, tcg_rn, tcg_y);

    }

    tcg_temp_free_i64(tcg_tmp);



    if (cond < 0x0e) { 

        gen_set_label(label_continue);

    }

}

static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)

{

    unsigned int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;

    int VAR_9 = -1;

    TCGv_i64 tcg_tmp, tcg_y, tcg_rn;



    if (!extract32(VAR_1, 29, 1)) {

        unallocated_encoding(VAR_0);

        return;

    }

    if (VAR_1 & (1 << 10 | 1 << 4)) {

        unallocated_encoding(VAR_0);

        return;

    }

    VAR_2 = extract32(VAR_1, 31, 1);

    VAR_3 = extract32(VAR_1, 30, 1);

    VAR_8 = extract32(VAR_1, 11, 1);

    VAR_4 = extract32(VAR_1, 16, 5); 

    VAR_5 = extract32(VAR_1, 12, 4);

    VAR_6 = extract32(VAR_1, 5, 5);

    VAR_7 = extract32(VAR_1, 0, 4);



    if (VAR_5 < 0x0e) { 

        int VAR_10 = gen_new_label();

        VAR_9 = gen_new_label();

        arm_gen_test_cc(VAR_5, VAR_10);

        

        tcg_tmp = tcg_temp_new_i64();

        tcg_gen_movi_i64(tcg_tmp, VAR_7 << 28);

        gen_set_nzcv(tcg_tmp);

        tcg_temp_free_i64(tcg_tmp);

        tcg_gen_br(VAR_9);

        gen_set_label(VAR_10);

    }

    

    if (VAR_8) {

        tcg_y = new_tmp_a64(VAR_0);

        tcg_gen_movi_i64(tcg_y, VAR_4);

    } else {

        tcg_y = cpu_reg(VAR_0, VAR_4);

    }

    tcg_rn = cpu_reg(VAR_0, VAR_6);



    tcg_tmp = tcg_temp_new_i64();

    if (VAR_3) {

        gen_sub_CC(VAR_2, tcg_tmp, tcg_rn, tcg_y);

    } else {

        gen_add_CC(VAR_2, tcg_tmp, tcg_rn, tcg_y);

    }

    tcg_temp_free_i64(tcg_tmp);



    if (VAR_5 < 0x0e) { 

        gen_set_label(VAR_9);

    }

}

static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)
{ unsigned int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9 = -1; TCGv_i64 tcg_tmp, tcg_y, tcg_rn; if (!extract32(VAR_1, 29, 1)) { unallocated_encoding(VAR_0); return; } if (VAR_1 & (1 << 10 | 1 << 4)) { unallocated_encoding(VAR_0); return; } VAR_2 = extract32(VAR_1, 31, 1); VAR_3 = extract32(VAR_1, 30, 1); VAR_8 = extract32(VAR_1, 11, 1); VAR_4 = extract32(VAR_1, 16, 5); VAR_5 = extract32(VAR_1, 12, 4); VAR_6 = extract32(VAR_1, 5, 5); VAR_7 = extract32(VAR_1, 0, 4); if (VAR_5 < 0x0e) { int VAR_10 = gen_new_label(); VAR_9 = gen_new_label(); arm_gen_test_cc(VAR_5, VAR_10); tcg_tmp = tcg_temp_new_i64(); tcg_gen_movi_i64(tcg_tmp, VAR_7 << 28); gen_set_nzcv(tcg_tmp); tcg_temp_free_i64(tcg_tmp); tcg_gen_br(VAR_9); gen_set_label(VAR_10); } if (VAR_8) { tcg_y = new_tmp_a64(VAR_0); tcg_gen_movi_i64(tcg_y, VAR_4); } else { tcg_y = cpu_reg(VAR_0, VAR_4); } tcg_rn = cpu_reg(VAR_0, VAR_6); tcg_tmp = tcg_temp_new_i64(); if (VAR_3) { gen_sub_CC(VAR_2, tcg_tmp, tcg_rn, tcg_y); } else { gen_add_CC(VAR_2, tcg_tmp, tcg_rn, tcg_y); } tcg_temp_free_i64(tcg_tmp); if (VAR_5 < 0x0e) { gen_set_label(VAR_9); } }