	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interrupt_window_interception
_interrupt_window_interception:         ## @interrupt_window_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	callq	_svm_clear_vintr
	movq	_V_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	16(%rbx), %rdi
	andl	%eax, (%rdi)
	movq	_VMCB_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mark_dirty
	movl	4(%rbx), %edi
	callq	_irqchip_in_kernel
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_kvm_cpu_has_interrupt
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	incl	(%rbx)
	movq	_KVM_EXIT_IRQ_WINDOW_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_V_IRQ_MASK,4,2                 ## @V_IRQ_MASK
	.comm	_VMCB_INTR,4,2                  ## @VMCB_INTR
	.comm	_KVM_EXIT_IRQ_WINDOW_OPEN,4,2   ## @KVM_EXIT_IRQ_WINDOW_OPEN
	.no_dead_strip	_interrupt_window_interception
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interrupt_window_interception
_interrupt_window_interception:         ; @interrupt_window_interception
	.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, x0
	ldr	x20, [x0, #8]
	bl	_svm_clear_vintr
Lloh0:
	adrp	x8, _V_IRQ_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_IRQ_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x0, [x19, #16]
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
Lloh3:
	adrp	x8, _VMCB_INTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMCB_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_mark_dirty
	ldr	w0, [x19, #4]
	bl	_irqchip_in_kernel
	cbz	w0, LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_1
; %bb.4:
	mov	x0, x19
	bl	_kvm_cpu_has_interrupt
	cbnz	w0, LBB0_1
; %bb.5:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh6:
	adrp	x8, _KVM_EXIT_IRQ_WINDOW_OPEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KVM_EXIT_IRQ_WINDOW_OPEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V_IRQ_MASK,4,2                 ; @V_IRQ_MASK
	.comm	_VMCB_INTR,4,2                  ; @VMCB_INTR
	.comm	_KVM_EXIT_IRQ_WINDOW_OPEN,4,2   ; @KVM_EXIT_IRQ_WINDOW_OPEN
	.no_dead_strip	_interrupt_window_interception
.subsections_via_symbols
