	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seg_setup
_seg_setup:                             ## @seg_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_kvm_vmx_segment_fields@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movslq	%edi, %r15
	movq	%r15, %rbx
	shlq	$4, %rbx
	movl	12(%r14,%rbx), %edi
	xorl	%esi, %esi
	callq	_vmcs_write16
	movl	8(%r14,%rbx), %edi
	xorl	%esi, %esi
	callq	_vmcs_writel
	movl	4(%r14,%rbx), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_vmcs_write32
	movq	_enable_unrestricted_guest@GOTPCREL(%rip), %rax
	movq	_VCPU_SREG_CS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%r15d, (%rcx)
	sete	%dl
	cmpq	$0, (%rax)
	leal	147(,%rdx,8), %eax
	movl	$243, %esi
	cmovnel	%eax, %esi
	movl	(%r14,%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmcs_write32                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kvm_vmx_segment_fields,8,3     ## @kvm_vmx_segment_fields
	.comm	_enable_unrestricted_guest,8,3  ## @enable_unrestricted_guest
	.comm	_VCPU_SREG_CS,4,2               ## @VCPU_SREG_CS
	.no_dead_strip	_seg_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seg_setup
_seg_setup:                             ; @seg_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _kvm_vmx_segment_fields@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kvm_vmx_segment_fields@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x20, x8, w0, sxtw #4
	ldr	w0, [x20, #12]
	mov	w1, #0
	bl	_vmcs_write16
	ldr	w0, [x20, #8]
	mov	w1, #0
	bl	_vmcs_writel
	ldr	w0, [x20, #4]
	mov	w1, #65535
	bl	_vmcs_write32
Lloh3:
	adrp	x8, _enable_unrestricted_guest@GOTPAGE
Lloh4:
	ldr	x8, [x8, _enable_unrestricted_guest@GOTPAGEOFF]
Lloh5:
	adrp	x9, _VCPU_SREG_CS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VCPU_SREG_CS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	ldr	w9, [x9]
	mov	w10, #147
	mov	w11, #155
	cmp	w9, w19
	csel	w9, w11, w10, eq
	cmp	x8, #0
	mov	w8, #243
	csel	w1, w8, w9, eq
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vmcs_write32
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_kvm_vmx_segment_fields,8,3     ; @kvm_vmx_segment_fields
	.comm	_enable_unrestricted_guest,8,3  ; @enable_unrestricted_guest
	.comm	_VCPU_SREG_CS,4,2               ; @VCPU_SREG_CS
	.no_dead_strip	_seg_setup
.subsections_via_symbols
