	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_set_intercept
_svm_set_intercept:                     ## @svm_set_intercept
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpl	$5, %edx
	setb	%dil
	movslq	%edx, %r12
	movq	%r12, %rsi
	callq	_KASSERT
	movq	%r15, %rdi
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_svm_get_vmcb_ctrl
	movq	%rax, %r14
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %r13d
	movl	%ebx, %ecx
	notl	%ecx
	andl	%r13d, %ecx
	orl	%r13d, %ebx
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	cmovel	%ecx, %ebx
	movl	%ebx, (%rax,%r12,4)
	cmpl	%r13d, %ebx
	jne	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_VMCB_CACHE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_svm_set_dirty
	movl	(%r15), %edi
	movq	(%r14), %rax
	movl	(%rax,%r12,4), %r9d
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %esi
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VCPU_CTR3                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCB_CACHE_I,4,2               ## @VMCB_CACHE_I
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"intercept[%d] modified from %#x to %#x"

	.no_dead_strip	_svm_set_intercept
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_set_intercept
_svm_set_intercept:                     ; @svm_set_intercept
	.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	x25, x4
	mov	x26, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	w2, #5
	cset	w0, lo
	sxtw	x22, w19
	mov	x1, x22
	bl	_KASSERT
	mov	x0, x21
	mov	x1, x20
	bl	_svm_get_vmcb_ctrl
	ldr	x8, [x0]
	sbfiz	x9, x19, #2, #32
	ldr	w23, [x8, x9]
	bic	w10, w23, w26
	orr	w11, w23, w26
	cmp	w25, #0
	csel	w10, w10, w11, eq
	str	w10, [x8, x9]
	cmp	w10, w23
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x24, x0
Lloh0:
	adrp	x8, _VMCB_CACHE_I@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCB_CACHE_I@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_svm_set_dirty
	ldr	w0, [x21]
	ldr	x8, [x24]
	ldr	w5, [x8, x22, lsl #2]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x3, x19
	mov	x4, x23
	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
	b	_VCPU_CTR3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCB_CACHE_I,4,2               ; @VMCB_CACHE_I
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"intercept[%d] modified from %#x to %#x"

	.no_dead_strip	_svm_set_intercept
.subsections_via_symbols
