static void set_seg(struct kvm_segment *lhs, const SegmentCache *rhs)

{

    unsigned flags = rhs->flags;

    lhs->selector = rhs->selector;

    lhs->base = rhs->base;

    lhs->limit = rhs->limit;

    lhs->type = (flags >> DESC_TYPE_SHIFT) & 15;

    lhs->present = (flags & DESC_P_MASK) != 0;

    lhs->dpl = rhs->selector & 3;

    lhs->db = (flags >> DESC_B_SHIFT) & 1;

    lhs->s = (flags & DESC_S_MASK) != 0;

    lhs->l = (flags >> DESC_L_SHIFT) & 1;

    lhs->g = (flags & DESC_G_MASK) != 0;

    lhs->avl = (flags & DESC_AVL_MASK) != 0;

    lhs->unusable = 0;

}

static void set_seg(struct kvm_segment *lhs, const SegmentCache *rhs)

{

    unsigned flags = rhs->flags;

    lhs->selector = rhs->selector;

    lhs->base = rhs->base;

    lhs->limit = rhs->limit;

    lhs->type = (flags >> DESC_TYPE_SHIFT) & 15;

    lhs->present = (flags & DESC_P_MASK) != 0;

    lhs->dpl = rhs->selector & 3;

    lhs->db = (flags >> DESC_B_SHIFT) & 1;

    lhs->s = (flags & DESC_S_MASK) != 0;

    lhs->l = (flags >> DESC_L_SHIFT) & 1;

    lhs->g = (flags & DESC_G_MASK) != 0;

    lhs->avl = (flags & DESC_AVL_MASK) != 0;

    lhs->unusable = 0;

}

    lhs->dpl = rhs->selector & 3;
static void FUNC_0(struct kvm_segment *VAR_0, const SegmentCache *VAR_1)

{

    unsigned VAR_2 = VAR_1->VAR_2;

    VAR_0->selector = VAR_1->selector;

    VAR_0->base = VAR_1->base;

    VAR_0->limit = VAR_1->limit;

    VAR_0->type = (VAR_2 >> DESC_TYPE_SHIFT) & 15;

    VAR_0->present = (VAR_2 & DESC_P_MASK) != 0;

    VAR_0->dpl = VAR_1->selector & 3;

    VAR_0->db = (VAR_2 >> DESC_B_SHIFT) & 1;

    VAR_0->s = (VAR_2 & DESC_S_MASK) != 0;

    VAR_0->l = (VAR_2 >> DESC_L_SHIFT) & 1;

    VAR_0->g = (VAR_2 & DESC_G_MASK) != 0;

    VAR_0->avl = (VAR_2 & DESC_AVL_MASK) != 0;

    VAR_0->unusable = 0;

}

static void FUNC_0(struct kvm_segment *VAR_0, const SegmentCache *VAR_1)
{ unsigned VAR_2 = VAR_1->VAR_2; VAR_0->selector = VAR_1->selector; VAR_0->base = VAR_1->base; VAR_0->limit = VAR_1->limit; VAR_0->type = (VAR_2 >> DESC_TYPE_SHIFT) & 15; VAR_0->present = (VAR_2 & DESC_P_MASK) != 0; VAR_0->dpl = VAR_1->selector & 3; VAR_0->db = (VAR_2 >> DESC_B_SHIFT) & 1; VAR_0->s = (VAR_2 & DESC_S_MASK) != 0; VAR_0->l = (VAR_2 >> DESC_L_SHIFT) & 1; VAR_0->g = (VAR_2 & DESC_G_MASK) != 0; VAR_0->avl = (VAR_2 & DESC_AVL_MASK) != 0; VAR_0->unusable = 0; }