	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmcs_getdesc                   ## -- Begin function vmcs_getdesc
	.p2align	4, 0x90
_vmcs_getdesc:                          ## @vmcs_getdesc
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movl	%ebx, %edi
	callq	_vmcs_seg_desc_encoding
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_panic
LBB0_2:
	testl	%r12d, %r12d
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_VMPTRLD
LBB0_4:
	movq	-64(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_vmread
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	-40(%rbp), %rax
	movq	%rax, 16(%r15)
	movq	-56(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_vmread
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	-40(%rbp), %rax
	movq	%rax, 8(%r15)
	movq	-48(%rbp), %rdi
	movq	_VMCS_INVALID_ENCODING@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	(%rax), %rdi
	je	LBB0_9
## %bb.7:
	leaq	-40(%rbp), %rsi
	callq	_vmread
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	-40(%rbp), %rax
	movq	%rax, (%r15)
	xorl	%ebx, %ebx
LBB0_9:
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_VMCLEAR
LBB0_11:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmcs_getdesc: invalid segment register %d"

	.comm	_VMCS_INVALID_ENCODING,8,3      ## @VMCS_INVALID_ENCODING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmcs_getdesc                   ; -- Begin function vmcs_getdesc
	.p2align	2
_vmcs_getdesc:                          ; @vmcs_getdesc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x22
	bl	_vmcs_seg_desc_encoding
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_panic
LBB0_2:
	cbnz	w20, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_VMPTRLD
LBB0_4:
	ldr	x0, [sp, #24]
	mov	x1, sp
	bl	_vmread
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	x8, [sp]
	str	x8, [x21, #16]
	ldr	x0, [sp, #16]
	mov	x1, sp
	bl	_vmread
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.6:
	ldp	x8, x0, [sp]
	str	x8, [x21, #8]
Lloh2:
	adrp	x8, _VMCS_INVALID_ENCODING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMCS_INVALID_ENCODING@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	mov	w22, #0
	b	LBB0_10
LBB0_8:
	mov	x1, sp
	bl	_vmread
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	x8, [sp]
	str	x8, [x21]
LBB0_10:
	cbnz	w20, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_VMCLEAR
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmcs_getdesc: invalid segment register %d"

	.comm	_VMCS_INVALID_ENCODING,8,3      ; @VMCS_INVALID_ENCODING
.subsections_via_symbols
