	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vmx_get_segment
LCPI0_0:
	.long	15                              ## 0xf
	.long	1                               ## 0x1
	.long	3                               ## 0x3
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vmx_get_segment:                       ## @vmx_get_segment
	.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	%rsi, %r14
	movq	_kvm_vmx_segment_fields@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	%edx, %rbx
	shlq	$4, %rbx
	movl	12(%r15,%rbx), %edi
	callq	_vmcs_readl
	movl	%eax, 48(%r14)
	movl	8(%r15,%rbx), %edi
	callq	_vmcs_read32
	movq	%rax, 40(%r14)
	movl	4(%r15,%rbx), %edi
	callq	_vmcs_read16
	movl	%eax, 36(%r14)
	movl	(%r15,%rbx), %edi
	callq	_vmcs_read32
	movq	_AR_UNUSABLE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_emulate_invalid_guest_state@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	cmovnel	%eax, %ecx
	testl	%edx, %edx
	cmovel	%eax, %ecx
	movl	%ecx, %eax
	shrl	$4, %eax
	movl	%ecx, %edx
	shrl	$5, %edx
	movl	%ecx, %esi
	shrl	$7, %esi
	movd	%ecx, %xmm0
	pinsrd	$1, %eax, %xmm0
	pinsrd	$2, %edx, %xmm0
	pinsrd	$3, %esi, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%r14)
	movl	%ecx, %eax
	shrl	$12, %eax
	andl	$1, %eax
	movl	%eax, 16(%r14)
	movl	%ecx, %eax
	shrl	$13, %eax
	andl	$1, %eax
	movl	%eax, 20(%r14)
	movl	%ecx, %eax
	shrl	$14, %eax
	andl	$1, %eax
	movl	%eax, 24(%r14)
	movl	%ecx, %eax
	shrl	$15, %eax
	andl	$1, %eax
	movl	%eax, 28(%r14)
	shrl	$16, %ecx
	andl	$1, %ecx
	movl	%ecx, 32(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kvm_vmx_segment_fields,8,3     ## @kvm_vmx_segment_fields
	.comm	_AR_UNUSABLE_MASK,4,2           ## @AR_UNUSABLE_MASK
	.comm	_emulate_invalid_guest_state,4,2 ## @emulate_invalid_guest_state
	.no_dead_strip	_vmx_get_segment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function vmx_get_segment
lCPI0_0:
	.long	4294967292                      ; 0xfffffffc
	.long	4294967291                      ; 0xfffffffb
	.long	4294967289                      ; 0xfffffff9
	.long	4294967284                      ; 0xfffffff4
lCPI0_1:
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.long	1                               ; 0x1
lCPI0_2:
	.long	4294967283                      ; 0xfffffff3
	.long	4294967282                      ; 0xfffffff2
	.long	4294967281                      ; 0xfffffff1
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vmx_get_segment:                       ; @vmx_get_segment
	.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, x1
Lloh0:
	adrp	x8, _kvm_vmx_segment_fields@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kvm_vmx_segment_fields@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x20, x8, w2, sxtw #4
	ldr	w0, [x20, #12]
	bl	_vmcs_readl
	str	w0, [x19, #48]
	ldr	w0, [x20, #8]
	bl	_vmcs_read32
	str	x0, [x19, #40]
	ldr	w0, [x20, #4]
	bl	_vmcs_read16
	str	w0, [x19, #36]
	ldr	w0, [x20]
	bl	_vmcs_read32
Lloh3:
	adrp	x8, _AR_UNUSABLE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_UNUSABLE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _emulate_invalid_guest_state@GOTPAGE
Lloh7:
	ldr	x9, [x9, _emulate_invalid_guest_state@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, #0
	ccmp	w8, #0, #4, eq
	csel	w8, w0, wzr, eq
	and	w9, w8, #0xf
	str	w9, [x19]
	dup.4s	v0, w8
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	ushl.4s	v1, v0, v1
Lloh11:
	adrp	x8, lCPI0_1@PAGE
Lloh12:
	ldr	q2, [x8, lCPI0_1@PAGEOFF]
	and.16b	v1, v1, v2
	stur	q1, [x19, #4]
Lloh13:
	adrp	x8, lCPI0_2@PAGE
Lloh14:
	ldr	q1, [x8, lCPI0_2@PAGEOFF]
	ushl.4s	v0, v0, v1
	movi.4s	v1, #1
	and.16b	v0, v0, v1
	stur	q0, [x19, #20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpAdrp	Lloh9, Lloh11
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_kvm_vmx_segment_fields,8,3     ; @kvm_vmx_segment_fields
	.comm	_AR_UNUSABLE_MASK,4,2           ; @AR_UNUSABLE_MASK
	.comm	_emulate_invalid_guest_state,4,2 ; @emulate_invalid_guest_state
	.no_dead_strip	_vmx_get_segment
.subsections_via_symbols
