	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_kvm_event
_handle_kvm_event:                      ## @handle_kvm_event
	.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
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	_INVALID_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_per_vcpu_record
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r12
	movslq	(%r14), %rax
	cmpq	$-1, %rax
	je	LBB0_3
## %bb.2:
	cmpq	%rax, (%r12)
	jne	LBB0_8
LBB0_3:
	movq	8(%r14), %rax
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r13), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_handle_begin_event
	jmp	LBB0_7
LBB0_5:
	movq	8(%r14), %rax
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	(%r13), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_handle_end_event
LBB0_7:
	movl	%eax, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_KEY,4,2                ## @INVALID_KEY
	.no_dead_strip	_handle_kvm_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_kvm_event
_handle_kvm_event:                      ; @handle_kvm_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x22, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _INVALID_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INVALID_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	bl	_per_vcpu_record
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldrsw	x8, [x19]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	x9, [x21]
	cmp	x9, x8
	b.ne	LBB0_7
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w3, [x20]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_handle_begin_event
	b	LBB0_8
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w3, [x20]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_handle_end_event
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_KEY,4,2                ; @INVALID_KEY
	.no_dead_strip	_handle_kvm_event
.subsections_via_symbols
