	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svm_complete_interrupts
_svm_complete_interrupts:               ## @svm_complete_interrupts
	.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	16(%rdi), %rax
	movl	(%rax), %r12d
	leaq	8(%rdi), %r14
	movq	_HF_IRET_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_kvm_rip_read
	cmpq	(%rbx), %rax
	je	LBB0_3
## %bb.2:
	movq	_HF_NMI_MASK@GOTPCREL(%rip), %rax
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%r14)
LBB0_3:
	movl	$0, 12(%rbx)
	movq	%r14, %rdi
	callq	_kvm_clear_exception_queue
	movq	%r14, %rdi
	callq	_kvm_clear_interrupt_queue
	movq	_SVM_EXITINTINFO_VALID@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.4:
	movq	_SVM_EXITINTINFO_VEC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%r12d, %r15d
	movq	_SVM_EXITINTINFO_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	cmpl	$130, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_13
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.7:
	movl	$1, 12(%rbx)
	jmp	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	callq	_is_nested
	testl	%eax, %eax
	jne	LBB0_8
## %bb.10:
	movl	%r15d, %edi
	callq	_kvm_exception_is_soft
	testl	%eax, %eax
	je	LBB0_11
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kvm_queue_interrupt            ## TAILCALL
LBB0_11:
	movq	_SVM_EXITINTINFO_VALID_ERR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_12
## %bb.14:
	movq	16(%rbx), %rax
	movl	4(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kvm_queue_exception_e          ## TAILCALL
LBB0_12:
	movq	%r14, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kvm_queue_exception            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HF_IRET_MASK,4,2               ## @HF_IRET_MASK
	.comm	_HF_NMI_MASK,4,2                ## @HF_NMI_MASK
	.comm	_SVM_EXITINTINFO_VALID,4,2      ## @SVM_EXITINTINFO_VALID
	.comm	_SVM_EXITINTINFO_VEC_MASK,4,2   ## @SVM_EXITINTINFO_VEC_MASK
	.comm	_SVM_EXITINTINFO_TYPE_MASK,4,2  ## @SVM_EXITINTINFO_TYPE_MASK
	.comm	_SVM_EXITINTINFO_VALID_ERR,4,2  ## @SVM_EXITINTINFO_VALID_ERR
	.no_dead_strip	_svm_complete_interrupts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svm_complete_interrupts
_svm_complete_interrupts:               ; @svm_complete_interrupts
	.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	x19, x0
	mov	x20, x0
	ldr	w8, [x20, #8]!
	ldr	x9, [x20, #8]
	ldr	w22, [x9]
Lloh0:
	adrp	x21, _HF_IRET_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HF_IRET_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_kvm_rip_read
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _HF_NMI_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HF_NMI_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
LBB0_3:
	str	wzr, [x19, #12]
	mov	x0, x20
	bl	_kvm_clear_exception_queue
	mov	x0, x20
	bl	_kvm_clear_interrupt_queue
Lloh5:
	adrp	x8, _SVM_EXITINTINFO_VALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SVM_EXITINTINFO_VALID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.4:
Lloh8:
	adrp	x8, _SVM_EXITINTINFO_VEC_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SVM_EXITINTINFO_VEC_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w21, w8, w22
Lloh11:
	adrp	x8, _SVM_EXITINTINFO_TYPE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SVM_EXITINTINFO_TYPE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w22
	cmp	w8, #130
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.6:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.7:
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_is_nested
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_kvm_exception_is_soft
	cbz	w0, LBB0_12
LBB0_10:
	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
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	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
	b	_kvm_queue_interrupt
LBB0_12:
Lloh14:
	adrp	x8, _SVM_EXITINTINFO_VALID_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SVM_EXITINTINFO_VALID_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x19, #16]
	ldr	w2, [x8, #4]
	mov	x0, x20
	mov	x1, x21
	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
	b	_kvm_queue_exception_e
LBB0_14:
	mov	x0, x20
	mov	x1, x21
	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
	b	_kvm_queue_exception
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HF_IRET_MASK,4,2               ; @HF_IRET_MASK
	.comm	_HF_NMI_MASK,4,2                ; @HF_NMI_MASK
	.comm	_SVM_EXITINTINFO_VALID,4,2      ; @SVM_EXITINTINFO_VALID
	.comm	_SVM_EXITINTINFO_VEC_MASK,4,2   ; @SVM_EXITINTINFO_VEC_MASK
	.comm	_SVM_EXITINTINFO_TYPE_MASK,4,2  ; @SVM_EXITINTINFO_TYPE_MASK
	.comm	_SVM_EXITINTINFO_VALID_ERR,4,2  ; @SVM_EXITINTINFO_VALID_ERR
	.no_dead_strip	_svm_complete_interrupts
.subsections_via_symbols
