	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_interrupt_window
_handle_interrupt_window:               ## @handle_interrupt_window
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_CPU_BASED_VM_EXEC_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_vmcs_read32
	movq	_CPU_BASED_VIRTUAL_INTR_PENDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r14), %edi
	callq	_vmcs_write32
	incl	12(%rbx)
	movl	8(%rbx), %edi
	callq	_irqchip_in_kernel
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_kvm_cpu_has_interrupt
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_KVM_EXIT_IRQ_WINDOW_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU_BASED_VM_EXEC_CONTROL,4,2  ## @CPU_BASED_VM_EXEC_CONTROL
	.comm	_CPU_BASED_VIRTUAL_INTR_PENDING,4,2 ## @CPU_BASED_VIRTUAL_INTR_PENDING
	.comm	_KVM_EXIT_IRQ_WINDOW_OPEN,4,2   ## @KVM_EXIT_IRQ_WINDOW_OPEN
	.no_dead_strip	_handle_interrupt_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_interrupt_window
_handle_interrupt_window:               ; @handle_interrupt_window
	.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
Lloh0:
	adrp	x20, _CPU_BASED_VM_EXEC_CONTROL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CPU_BASED_VM_EXEC_CONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_vmcs_read32
Lloh2:
	adrp	x8, _CPU_BASED_VIRTUAL_INTR_PENDING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CPU_BASED_VIRTUAL_INTR_PENDING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x20]
	bl	_vmcs_write32
	ldp	w0, w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #12]
	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, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_1
; %bb.4:
	mov	x0, x19
	bl	_kvm_cpu_has_interrupt
	cbnz	w0, LBB0_1
; %bb.5:
Lloh5:
	adrp	x8, _KVM_EXIT_IRQ_WINDOW_OPEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KVM_EXIT_IRQ_WINDOW_OPEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU_BASED_VM_EXEC_CONTROL,4,2  ; @CPU_BASED_VM_EXEC_CONTROL
	.comm	_CPU_BASED_VIRTUAL_INTR_PENDING,4,2 ; @CPU_BASED_VIRTUAL_INTR_PENDING
	.comm	_KVM_EXIT_IRQ_WINDOW_OPEN,4,2   ; @KVM_EXIT_IRQ_WINDOW_OPEN
	.no_dead_strip	_handle_interrupt_window
.subsections_via_symbols
