static void do_branch_reg(DisasContext *dc, int32_t offset, uint32_t insn,

                          TCGv r_cond, TCGv r_reg)

{

    unsigned int cond = GET_FIELD_SP(insn, 25, 27), a = (insn & (1 << 29));

    target_ulong target = dc->pc + offset;



    flush_cond(dc, r_cond);

    gen_cond_reg(r_cond, cond, r_reg);

    if (a) {

        gen_branch_a(dc, target, dc->npc, r_cond);

        dc->is_br = 1;

    } else {

        dc->pc = dc->npc;

        dc->jump_pc[0] = target;

        dc->jump_pc[1] = dc->npc + 4;

        dc->npc = JUMP_PC;

    }

}

static void do_branch_reg(DisasContext *dc, int32_t offset, uint32_t insn,

                          TCGv r_cond, TCGv r_reg)

{

    unsigned int cond = GET_FIELD_SP(insn, 25, 27), a = (insn & (1 << 29));

    target_ulong target = dc->pc + offset;



    flush_cond(dc, r_cond);

    gen_cond_reg(r_cond, cond, r_reg);

    if (a) {

        gen_branch_a(dc, target, dc->npc, r_cond);

        dc->is_br = 1;

    } else {

        dc->pc = dc->npc;

        dc->jump_pc[0] = target;

        dc->jump_pc[1] = dc->npc + 4;

        dc->npc = JUMP_PC;

    }

}

static void FUNC_0(DisasContext *VAR_0, int32_t VAR_1, uint32_t VAR_2,

                          TCGv VAR_3, TCGv VAR_4)

{

    unsigned int VAR_5 = GET_FIELD_SP(VAR_2, 25, 27), VAR_6 = (VAR_2 & (1 << 29));

    target_ulong target = VAR_0->pc + VAR_1;



    flush_cond(VAR_0, VAR_3);

    gen_cond_reg(VAR_3, VAR_5, VAR_4);

    if (VAR_6) {

        gen_branch_a(VAR_0, target, VAR_0->npc, VAR_3);

        VAR_0->is_br = 1;

    } else {

        VAR_0->pc = VAR_0->npc;

        VAR_0->jump_pc[0] = target;

        VAR_0->jump_pc[1] = VAR_0->npc + 4;

        VAR_0->npc = JUMP_PC;

    }

}

static void FUNC_0(DisasContext *VAR_0, int32_t VAR_1, uint32_t VAR_2,
TCGv VAR_3, TCGv VAR_4)
{ unsigned int VAR_5 = GET_FIELD_SP(VAR_2, 25, 27), VAR_6 = (VAR_2 & (1 << 29)); target_ulong target = VAR_0->pc + VAR_1; flush_cond(VAR_0, VAR_3); gen_cond_reg(VAR_3, VAR_5, VAR_4); if (VAR_6) { gen_branch_a(VAR_0, target, VAR_0->npc, VAR_3); VAR_0->is_br = 1; } else { VAR_0->pc = VAR_0->npc; VAR_0->jump_pc[0] = target; VAR_0->jump_pc[1] = VAR_0->npc + 4; VAR_0->npc = JUMP_PC; } }