static void gen_movl_seg_T0(DisasContext *s, int seg_reg)

{

    if (s->pe && !s->vm86) {

        tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T0);

        gen_helper_load_seg(cpu_env, tcg_const_i32(seg_reg), cpu_tmp2_i32);

        /* abort translation because the addseg value may change or

           because ss32 may change. For R_SS, translation must always

           stop as a special handling must be done to disable hardware

           interrupts for the next instruction */

        if (seg_reg == R_SS || (s->code32 && seg_reg < R_FS))

            s->is_jmp = DISAS_TB_JUMP;

    } else {

        gen_op_movl_seg_T0_vm(seg_reg);

        if (seg_reg == R_SS)

            s->is_jmp = DISAS_TB_JUMP;

    }

}

static void gen_movl_seg_T0(DisasContext *s, int seg_reg)

{

    if (s->pe && !s->vm86) {

        tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T0);

        gen_helper_load_seg(cpu_env, tcg_const_i32(seg_reg), cpu_tmp2_i32);

        







        if (seg_reg == R_SS || (s->code32 && seg_reg < R_FS))

            s->is_jmp = DISAS_TB_JUMP;

    } else {

        gen_op_movl_seg_T0_vm(seg_reg);

        if (seg_reg == R_SS)

            s->is_jmp = DISAS_TB_JUMP;

    }

}

static void FUNC_0(DisasContext *VAR_0, int VAR_1)

{

    if (VAR_0->pe && !VAR_0->vm86) {

        tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T0);

        gen_helper_load_seg(cpu_env, tcg_const_i32(VAR_1), cpu_tmp2_i32);

        







        if (VAR_1 == R_SS || (VAR_0->code32 && VAR_1 < R_FS))

            VAR_0->is_jmp = DISAS_TB_JUMP;

    } else {

        gen_op_movl_seg_T0_vm(VAR_1);

        if (VAR_1 == R_SS)

            VAR_0->is_jmp = DISAS_TB_JUMP;

    }

}

static void FUNC_0(DisasContext *VAR_0, int VAR_1)
{ if (VAR_0->pe && !VAR_0->vm86) { tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T0); gen_helper_load_seg(cpu_env, tcg_const_i32(VAR_1), cpu_tmp2_i32); if (VAR_1 == R_SS || (VAR_0->code32 && VAR_1 < R_FS))
VAR_0->is_jmp = DISAS_TB_JUMP; } else { gen_op_movl_seg_T0_vm(VAR_1); if (VAR_1 == R_SS)
VAR_0->is_jmp = DISAS_TB_JUMP; } }