	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvm_vcpu_ioctl_x86_set_vcpu_events
_kvm_vcpu_ioctl_x86_set_vcpu_events:    ## @kvm_vcpu_ioctl_x86_set_vcpu_events
	.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	_KVM_VCPUEVENT_VALID_NMI_PENDING@GOTPCREL(%rip), %r12
	movq	_KVM_VCPUEVENT_VALID_SIPI_VECTOR@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	orl	(%r12), %eax
	notl	%eax
	testl	%eax, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_vcpu_load
	movups	40(%rbx), %xmm0
	movups	%xmm0, 32(%r14)
	movq	32(%rbx), %rax
	movq	%rax, 16(%r14)
	movl	28(%rbx), %ecx
	movl	%ecx, 28(%r14)
	movl	24(%rbx), %ecx
	movl	%ecx, 24(%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	48(%r14), %edi
	callq	_irqchip_in_kernel
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	48(%r14), %edi
	callq	_kvm_pic_clear_isr_ack
LBB0_5:
	movl	16(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.6:
	movl	12(%rbx), %eax
	movl	%eax, 4(%r14)
LBB0_7:
	movq	_kvm_x86_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	*(%rax)
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.8:
	movl	4(%rbx), %eax
	movl	%eax, (%r14)
LBB0_9:
	movq	%r14, %rdi
	callq	_vcpu_put
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVM_VCPUEVENT_VALID_NMI_PENDING,4,2 ## @KVM_VCPUEVENT_VALID_NMI_PENDING
	.comm	_KVM_VCPUEVENT_VALID_SIPI_VECTOR,4,2 ## @KVM_VCPUEVENT_VALID_SIPI_VECTOR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_kvm_x86_ops,8,3                ## @kvm_x86_ops
	.no_dead_strip	_kvm_vcpu_ioctl_x86_set_vcpu_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvm_vcpu_ioctl_x86_set_vcpu_events
_kvm_vcpu_ioctl_x86_set_vcpu_events:    ; @kvm_vcpu_ioctl_x86_set_vcpu_events
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x22, _KVM_VCPUEVENT_VALID_NMI_PENDING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _KVM_VCPUEVENT_VALID_NMI_PENDING@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh2:
	adrp	x21, _KVM_VCPUEVENT_VALID_SIPI_VECTOR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _KVM_VCPUEVENT_VALID_SIPI_VECTOR@GOTPAGEOFF]
	ldr	w10, [x21]
	orr	w9, w10, w9
	bics	wzr, w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	bl	_vcpu_load
	ldur	q0, [x20, #40]
	str	q0, [x19, #32]
	ldr	x8, [x20, #32]
	str	x8, [x19, #16]
	ldr	d0, [x20, #24]
	str	d0, [x19, #24]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w0, [x19, #48]
	bl	_irqchip_in_kernel
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #48]
	bl	_kvm_pic_clear_isr_ack
LBB0_5:
	ldr	w8, [x20, #16]
	str	w8, [x19, #8]
	ldr	w8, [x20]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x20, #12]
	str	w8, [x19, #4]
LBB0_7:
Lloh7:
	adrp	x8, _kvm_x86_ops@GOTPAGE
Lloh8:
	ldr	x8, [x8, _kvm_x86_ops@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x20, #8]
	mov	x0, x19
	blr	x8
	ldr	w8, [x20]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x20, #4]
	str	w8, [x19]
LBB0_9:
	mov	x0, x19
	bl	_vcpu_put
	mov	w0, #0
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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_KVM_VCPUEVENT_VALID_NMI_PENDING,4,2 ; @KVM_VCPUEVENT_VALID_NMI_PENDING
	.comm	_KVM_VCPUEVENT_VALID_SIPI_VECTOR,4,2 ; @KVM_VCPUEVENT_VALID_SIPI_VECTOR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_kvm_x86_ops,8,3                ; @kvm_x86_ops
	.no_dead_strip	_kvm_vcpu_ioctl_x86_set_vcpu_events
.subsections_via_symbols
