	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_setcap
_vmx_setcap:                            ## @vmx_setcap
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movslq	%esi, %rsi
	leaq	(,%rsi,4), %r13
	addq	8(%rdi), %r13
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	-128(%rdx), %eax
	cmpl	$4, %eax
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %r8
	movslq	(%r8,%rax,4), %rax
	addq	%r8, %rax
	jmpq	*%rax
LBB0_8:
	movq	_cap_unrestricted_guest@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.9:
	movq	(%rdi), %rax
	leaq	(%rsi,%rsi,2), %rdx
	leaq	(%rax,%rdx,4), %r15
	addq	$4, %r15
	movq	_VMCS_SEC_PROC_BASED_CTLS@GOTPCREL(%rip), %rax
	movq	_PROCBASED2_UNRESTRICTED_GUEST@GOTPCREL(%rip), %rsi
	jmp	LBB0_12
LBB0_6:
	movq	_cap_pause_exit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.7:
	leaq	(%rsi,%rsi,2), %r15
	shlq	$2, %r15
	addq	(%rdi), %r15
	movq	_VMCS_PRI_PROC_BASED_CTLS@GOTPCREL(%rip), %rax
	movq	_PROCBASED_PAUSE_EXITING@GOTPCREL(%rip), %rsi
	jmp	LBB0_12
LBB0_4:
	movq	_cap_monitor_trap@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.5:
	leaq	(%rsi,%rsi,2), %r15
	shlq	$2, %r15
	addq	(%rdi), %r15
	movq	_VMCS_PRI_PROC_BASED_CTLS@GOTPCREL(%rip), %rax
	movq	_PROCBASED_MTF@GOTPCREL(%rip), %rsi
	jmp	LBB0_12
LBB0_2:
	movq	_cap_halt_exit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.3:
	leaq	(%rsi,%rsi,2), %r15
	shlq	$2, %r15
	addq	(%rdi), %r15
	movq	_VMCS_PRI_PROC_BASED_CTLS@GOTPCREL(%rip), %rax
	movq	_PROCBASED_HLT_EXITING@GOTPCREL(%rip), %rsi
	jmp	LBB0_12
LBB0_10:
	movq	_cap_invpcid@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.11:
	movq	(%rdi), %rax
	leaq	(%rsi,%rsi,2), %rdx
	leaq	(%rax,%rdx,4), %r15
	addq	$4, %r15
	movq	_VMCS_SEC_PROC_BASED_CTLS@GOTPCREL(%rip), %rax
	movq	_PROCBASED2_ENABLE_INVPCID@GOTPCREL(%rip), %rsi
LBB0_12:
	movl	(%r15), %edx
	movl	(%rsi), %r14d
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_13:
	testl	%ebx, %ebx
	jne	LBB0_22
## %bb.14:
	xorl	%r15d, %r15d
                                        ## implicit-def: $ebx
                                        ## implicit-def: $r14d
                                        ## implicit-def: $edx
LBB0_15:
	movl	%edx, %eax
	orl	%r14d, %eax
	notl	%r14d
	andl	%edx, %r14d
	movl	%ecx, %r12d
	testl	%ecx, %ecx
	cmovnel	%eax, %r14d
	movq	%r13, %rdi
	callq	_VMPTRLD
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_vmwrite
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_VMCLEAR
	testl	%ebx, %ebx
	jne	LBB0_22
## %bb.16:
	testq	%r15, %r15
	je	LBB0_18
## %bb.17:
	movl	%r14d, (%r15)
LBB0_18:
	movl	$1, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	testl	%r12d, %r12d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_20
## %bb.19:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	leaq	(%rdx,%rdx,2), %rdx
	orl	%eax, 8(%rcx,%rdx,4)
	jmp	LBB0_21
LBB0_20:
	notl	%eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	leaq	(%rdx,%rdx,2), %rdx
	andl	%eax, 8(%rcx,%rdx,4)
LBB0_21:
	xorl	%ebx, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_cap_halt_exit,4,2              ## @cap_halt_exit
	.comm	_PROCBASED_HLT_EXITING,4,2      ## @PROCBASED_HLT_EXITING
	.comm	_VMCS_PRI_PROC_BASED_CTLS,4,2   ## @VMCS_PRI_PROC_BASED_CTLS
	.comm	_cap_monitor_trap,4,2           ## @cap_monitor_trap
	.comm	_PROCBASED_MTF,4,2              ## @PROCBASED_MTF
	.comm	_cap_pause_exit,4,2             ## @cap_pause_exit
	.comm	_PROCBASED_PAUSE_EXITING,4,2    ## @PROCBASED_PAUSE_EXITING
	.comm	_cap_unrestricted_guest,4,2     ## @cap_unrestricted_guest
	.comm	_PROCBASED2_UNRESTRICTED_GUEST,4,2 ## @PROCBASED2_UNRESTRICTED_GUEST
	.comm	_VMCS_SEC_PROC_BASED_CTLS,4,2   ## @VMCS_SEC_PROC_BASED_CTLS
	.comm	_cap_invpcid,4,2                ## @cap_invpcid
	.comm	_PROCBASED2_ENABLE_INVPCID,4,2  ## @PROCBASED2_ENABLE_INVPCID
	.no_dead_strip	_vmx_setcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_setcap
_vmx_setcap:                            ; @vmx_setcap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	sxtw	x25, w1
Lloh0:
	adrp	x9, _ENOENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x9]
	sub	w9, w2, #128
	cmp	w9, #4
	b.hi	LBB0_13
; %bb.1:
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh5:
	adrp	x9, _cap_unrestricted_guest@GOTPAGE
Lloh6:
	ldr	x9, [x9, _cap_unrestricted_guest@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cbz	w9, LBB0_13
; %bb.3:
	ldr	x9, [x19]
	mov	w10, #12
	madd	x9, x25, x10, x9
	add	x26, x9, #4
Lloh8:
	adrp	x9, _VMCS_SEC_PROC_BASED_CTLS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VMCS_SEC_PROC_BASED_CTLS@GOTPAGEOFF]
Lloh10:
	adrp	x10, _PROCBASED2_UNRESTRICTED_GUEST@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PROCBASED2_UNRESTRICTED_GUEST@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
Lloh12:
	adrp	x9, _cap_pause_exit@GOTPAGE
Lloh13:
	ldr	x9, [x9, _cap_pause_exit@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cbz	w9, LBB0_13
; %bb.5:
	ldr	x9, [x19]
	mov	w10, #12
	madd	x26, x25, x10, x9
Lloh15:
	adrp	x9, _VMCS_PRI_PROC_BASED_CTLS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VMCS_PRI_PROC_BASED_CTLS@GOTPAGEOFF]
Lloh17:
	adrp	x10, _PROCBASED_PAUSE_EXITING@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PROCBASED_PAUSE_EXITING@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh19:
	adrp	x9, _cap_monitor_trap@GOTPAGE
Lloh20:
	ldr	x9, [x9, _cap_monitor_trap@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cbz	w9, LBB0_13
; %bb.7:
	ldr	x9, [x19]
	mov	w10, #12
	madd	x26, x25, x10, x9
Lloh22:
	adrp	x9, _VMCS_PRI_PROC_BASED_CTLS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _VMCS_PRI_PROC_BASED_CTLS@GOTPAGEOFF]
Lloh24:
	adrp	x10, _PROCBASED_MTF@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PROCBASED_MTF@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh26:
	adrp	x9, _cap_halt_exit@GOTPAGE
Lloh27:
	ldr	x9, [x9, _cap_halt_exit@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cbz	w9, LBB0_13
; %bb.9:
	ldr	x9, [x19]
	mov	w10, #12
	madd	x26, x25, x10, x9
Lloh29:
	adrp	x9, _VMCS_PRI_PROC_BASED_CTLS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VMCS_PRI_PROC_BASED_CTLS@GOTPAGEOFF]
Lloh31:
	adrp	x10, _PROCBASED_HLT_EXITING@GOTPAGE
Lloh32:
	ldr	x10, [x10, _PROCBASED_HLT_EXITING@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh33:
	adrp	x9, _cap_invpcid@GOTPAGE
Lloh34:
	ldr	x9, [x9, _cap_invpcid@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	cbz	w9, LBB0_13
; %bb.11:
	ldr	x9, [x19]
	mov	w10, #12
	madd	x9, x25, x10, x9
	add	x26, x9, #4
Lloh36:
	adrp	x9, _VMCS_SEC_PROC_BASED_CTLS@GOTPAGE
Lloh37:
	ldr	x9, [x9, _VMCS_SEC_PROC_BASED_CTLS@GOTPAGEOFF]
Lloh38:
	adrp	x10, _PROCBASED2_ENABLE_INVPCID@GOTPAGE
Lloh39:
	ldr	x10, [x10, _PROCBASED2_ENABLE_INVPCID@GOTPAGEOFF]
LBB0_12:
	ldr	w11, [x26]
	ldr	w10, [x10]
	ldr	w22, [x9]
	b	LBB0_15
LBB0_13:
	cbnz	w22, LBB0_22
; %bb.14:
	mov	x26, #0
                                        ; implicit-def: $w22
                                        ; implicit-def: $w10
                                        ; implicit-def: $w11
LBB0_15:
	add	x24, x8, w1, sxtw #2
	orr	w8, w11, w10
	bic	w9, w11, w10
	cmp	w20, #0
	csel	w23, w9, w8, eq
	mov	x0, x24
	bl	_VMPTRLD
	mov	x0, x22
	mov	x1, x23
	bl	_vmwrite
	mov	x22, x0
	mov	x0, x24
	bl	_VMCLEAR
	cbnz	w22, LBB0_22
; %bb.16:
	cbz	x26, LBB0_18
; %bb.17:
	str	w23, [x26]
LBB0_18:
	mov	w8, #1
	lsl	w8, w8, w21
	mov	w22, #0
	cbz	w20, LBB0_20
; %bb.19:
	ldr	x9, [x19]
	mov	w10, #12
	madd	x9, x25, x10, x9
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	b	LBB0_21
LBB0_20:
	ldr	x9, [x19]
	mov	w10, #12
	madd	x9, x25, x10, x9
	ldr	w10, [x9, #8]
	bic	w8, w10, w8
LBB0_21:
	str	w8, [x9, #8]
LBB0_22:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_cap_halt_exit,4,2              ; @cap_halt_exit
	.comm	_PROCBASED_HLT_EXITING,4,2      ; @PROCBASED_HLT_EXITING
	.comm	_VMCS_PRI_PROC_BASED_CTLS,4,2   ; @VMCS_PRI_PROC_BASED_CTLS
	.comm	_cap_monitor_trap,4,2           ; @cap_monitor_trap
	.comm	_PROCBASED_MTF,4,2              ; @PROCBASED_MTF
	.comm	_cap_pause_exit,4,2             ; @cap_pause_exit
	.comm	_PROCBASED_PAUSE_EXITING,4,2    ; @PROCBASED_PAUSE_EXITING
	.comm	_cap_unrestricted_guest,4,2     ; @cap_unrestricted_guest
	.comm	_PROCBASED2_UNRESTRICTED_GUEST,4,2 ; @PROCBASED2_UNRESTRICTED_GUEST
	.comm	_VMCS_SEC_PROC_BASED_CTLS,4,2   ; @VMCS_SEC_PROC_BASED_CTLS
	.comm	_cap_invpcid,4,2                ; @cap_invpcid
	.comm	_PROCBASED2_ENABLE_INVPCID,4,2  ; @PROCBASED2_ENABLE_INVPCID
	.no_dead_strip	_vmx_setcap
.subsections_via_symbols
