	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvmgt_inject_msi
_kvmgt_inject_msi:                      ## @kvmgt_inject_msi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_handle_valid
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	movl	$1, %esi
	callq	_eventfd_signal
	cmpl	$1, %eax
	je	LBB0_6
## %bb.4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ESRCH@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_kvmgt_inject_msi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvmgt_inject_msi
_kvmgt_inject_msi:                      ; @kvmgt_inject_msi
	.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
	bl	_handle_valid
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	x0, [x8]
	cbz	x0, LBB0_7
; %bb.2:
	mov	w1, #1
	bl	_eventfd_signal
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _ESRCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_kvmgt_inject_msi
.subsections_via_symbols
