	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cr8_write_interception
_cr8_write_interception:                ## @cr8_write_interception
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	callq	_kvm_get_cr8
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_cr_interception
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_irqchip_in_kernel
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_INTERCEPT_CR8_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	16(%rbx), %rdi
	andl	%eax, (%rdi)
	movq	_VMCB_INTERCEPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mark_dirty
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_kvm_get_cr8
	cmpq	%rax, %r15
	jle	LBB0_4
## %bb.3:
	movq	_KVM_EXIT_SET_TPR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTERCEPT_CR8_MASK,4,2         ## @INTERCEPT_CR8_MASK
	.comm	_VMCB_INTERCEPTS,4,2            ## @VMCB_INTERCEPTS
	.comm	_KVM_EXIT_SET_TPR,4,2           ## @KVM_EXIT_SET_TPR
	.no_dead_strip	_cr8_write_interception
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cr8_write_interception
_cr8_write_interception:                ; @cr8_write_interception
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	x22, [x0, #8]
	bl	_kvm_get_cr8
	mov	x21, x0
	mov	x0, x20
	bl	_cr_interception
	mov	x19, x0
	ldr	w0, [x20]
	bl	_irqchip_in_kernel
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _INTERCEPT_CR8_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTERCEPT_CR8_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x0, [x20, #16]
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
Lloh3:
	adrp	x8, _VMCB_INTERCEPTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMCB_INTERCEPTS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_mark_dirty
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_kvm_get_cr8
	cmp	x21, x0
	b.le	LBB0_4
; %bb.3:
	mov	w19, #0
Lloh6:
	adrp	x8, _KVM_EXIT_SET_TPR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KVM_EXIT_SET_TPR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_INTERCEPT_CR8_MASK,4,2         ; @INTERCEPT_CR8_MASK
	.comm	_VMCB_INTERCEPTS,4,2            ; @VMCB_INTERCEPTS
	.comm	_KVM_EXIT_SET_TPR,4,2           ; @KVM_EXIT_SET_TPR
	.no_dead_strip	_cr8_write_interception
.subsections_via_symbols
