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

{

    lhs->selector = rhs->selector;

    lhs->base = rhs->base;

    lhs->limit = rhs->limit;

    lhs->flags =

	(rhs->type << DESC_TYPE_SHIFT)

	| (rhs->present * DESC_P_MASK)

	| (rhs->dpl << DESC_DPL_SHIFT)

	| (rhs->db << DESC_B_SHIFT)

	| (rhs->s * DESC_S_MASK)

	| (rhs->l << DESC_L_SHIFT)

	| (rhs->g * DESC_G_MASK)

	| (rhs->avl * DESC_AVL_MASK);

}

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

{

    lhs->selector = rhs->selector;

    lhs->base = rhs->base;

    lhs->limit = rhs->limit;

    lhs->flags =

	(rhs->type << DESC_TYPE_SHIFT)

	| (rhs->present * DESC_P_MASK)

	| (rhs->dpl << DESC_DPL_SHIFT)

	| (rhs->db << DESC_B_SHIFT)

	| (rhs->s * DESC_S_MASK)

	| (rhs->l << DESC_L_SHIFT)

	| (rhs->g * DESC_G_MASK)

	| (rhs->avl * DESC_AVL_MASK);

}

static void FUNC_0(SegmentCache *VAR_0, const struct kvm_segment *VAR_1)

{

    VAR_0->selector = VAR_1->selector;

    VAR_0->base = VAR_1->base;

    VAR_0->limit = VAR_1->limit;

    VAR_0->flags =

	(VAR_1->type << DESC_TYPE_SHIFT)

	| (VAR_1->present * DESC_P_MASK)

	| (VAR_1->dpl << DESC_DPL_SHIFT)

	| (VAR_1->db << DESC_B_SHIFT)

	| (VAR_1->s * DESC_S_MASK)

	| (VAR_1->l << DESC_L_SHIFT)

	| (VAR_1->g * DESC_G_MASK)

	| (VAR_1->avl * DESC_AVL_MASK);

}

static void FUNC_0(SegmentCache *VAR_0, const struct kvm_segment *VAR_1)
{ VAR_0->selector = VAR_1->selector; VAR_0->base = VAR_1->base; VAR_0->limit = VAR_1->limit; VAR_0->flags =
(VAR_1->type << DESC_TYPE_SHIFT)
| (VAR_1->present * DESC_P_MASK)
| (VAR_1->dpl << DESC_DPL_SHIFT)
| (VAR_1->db << DESC_B_SHIFT)
| (VAR_1->s * DESC_S_MASK)
| (VAR_1->l << DESC_L_SHIFT)
| (VAR_1->g * DESC_G_MASK)
| (VAR_1->avl * DESC_AVL_MASK); }