static void disas_fp_ccomp(DisasContext *s, uint32_t insn)

{

    unsigned int mos, type, rm, cond, rn, op, nzcv;

    TCGv_i64 tcg_flags;

    int label_continue = -1;



    mos = extract32(insn, 29, 3);

    type = extract32(insn, 22, 2); /* 0 = single, 1 = double */

    rm = extract32(insn, 16, 5);

    cond = extract32(insn, 12, 4);

    rn = extract32(insn, 5, 5);

    op = extract32(insn, 4, 1);

    nzcv = extract32(insn, 0, 4);



    if (mos || type > 1) {

        unallocated_encoding(s);

        return;

    }



    if (!fp_access_check(s)) {

        return;

    }



    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_flags = tcg_const_i64(nzcv << 28);

        gen_set_nzcv(tcg_flags);

        tcg_temp_free_i64(tcg_flags);

        tcg_gen_br(label_continue);

        gen_set_label(label_match);

    }



    handle_fp_compare(s, type, rn, rm, false, op);



    if (cond < 0x0e) {

        gen_set_label(label_continue);

    }

}

static void disas_fp_ccomp(DisasContext *s, uint32_t insn)

{

    unsigned int mos, type, rm, cond, rn, op, nzcv;

    TCGv_i64 tcg_flags;

    int label_continue = -1;



    mos = extract32(insn, 29, 3);

    type = extract32(insn, 22, 2); 

    rm = extract32(insn, 16, 5);

    cond = extract32(insn, 12, 4);

    rn = extract32(insn, 5, 5);

    op = extract32(insn, 4, 1);

    nzcv = extract32(insn, 0, 4);



    if (mos || type > 1) {

        unallocated_encoding(s);

        return;

    }



    if (!fp_access_check(s)) {

        return;

    }



    if (cond < 0x0e) { 

        int label_match = gen_new_label();

        label_continue = gen_new_label();

        arm_gen_test_cc(cond, label_match);

        

        tcg_flags = tcg_const_i64(nzcv << 28);

        gen_set_nzcv(tcg_flags);

        tcg_temp_free_i64(tcg_flags);

        tcg_gen_br(label_continue);

        gen_set_label(label_match);

    }



    handle_fp_compare(s, type, rn, rm, false, op);



    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;

    TCGv_i64 tcg_flags;

    int VAR_9 = -1;



    VAR_2 = extract32(VAR_1, 29, 3);

    VAR_3 = extract32(VAR_1, 22, 2); 

    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, 4, 1);

    VAR_8 = extract32(VAR_1, 0, 4);



    if (VAR_2 || VAR_3 > 1) {

        unallocated_encoding(VAR_0);

        return;

    }



    if (!fp_access_check(VAR_0)) {

        return;

    }



    if (VAR_5 < 0x0e) { 

        int VAR_10 = gen_new_label();

        VAR_9 = gen_new_label();

        arm_gen_test_cc(VAR_5, VAR_10);

        

        tcg_flags = tcg_const_i64(VAR_8 << 28);

        gen_set_nzcv(tcg_flags);

        tcg_temp_free_i64(tcg_flags);

        tcg_gen_br(VAR_9);

        gen_set_label(VAR_10);

    }



    handle_fp_compare(VAR_0, VAR_3, VAR_6, VAR_4, false, VAR_7);



    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; TCGv_i64 tcg_flags; int VAR_9 = -1; VAR_2 = extract32(VAR_1, 29, 3); VAR_3 = extract32(VAR_1, 22, 2); 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, 4, 1); VAR_8 = extract32(VAR_1, 0, 4); if (VAR_2 || VAR_3 > 1) { unallocated_encoding(VAR_0); return; } if (!fp_access_check(VAR_0)) { return; } if (VAR_5 < 0x0e) { int VAR_10 = gen_new_label(); VAR_9 = gen_new_label(); arm_gen_test_cc(VAR_5, VAR_10); tcg_flags = tcg_const_i64(VAR_8 << 28); gen_set_nzcv(tcg_flags); tcg_temp_free_i64(tcg_flags); tcg_gen_br(VAR_9); gen_set_label(VAR_10); } handle_fp_compare(VAR_0, VAR_3, VAR_6, VAR_4, false, VAR_7); if (VAR_5 < 0x0e) { gen_set_label(VAR_9); } }