	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_vgpu_set_msi_trigger
_intel_vgpu_set_msi_trigger:            ## @intel_vgpu_set_msi_trigger
	.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, %r14
	movq	_VFIO_IRQ_SET_DATA_EVENTFD@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_4
## %bb.1:
	movl	(%r9), %edi
	callq	_eventfd_ctx_fdget
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_gvt_vgpu_err
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.5:
	movq	_VFIO_IRQ_SET_DATA_NONE@GOTPCREL(%rip), %rax
	andl	(%rax), %r8d
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_intel_vgpu_release_msi_eventfd_ctx
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, (%r14)
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VFIO_IRQ_SET_DATA_EVENTFD,4,2  ## @VFIO_IRQ_SET_DATA_EVENTFD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eventfd_ctx_fdget failed\n"

	.comm	_VFIO_IRQ_SET_DATA_NONE,4,2     ## @VFIO_IRQ_SET_DATA_NONE
	.no_dead_strip	_intel_vgpu_set_msi_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_vgpu_set_msi_trigger
_intel_vgpu_set_msi_trigger:            ; @intel_vgpu_set_msi_trigger
	.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	x8, _VFIO_IRQ_SET_DATA_EVENTFD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VFIO_IRQ_SET_DATA_EVENTFD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w4
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x5]
	bl	_eventfd_ctx_fdget
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gvt_vgpu_err
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	cbnz	w3, LBB0_7
; %bb.4:
Lloh5:
	adrp	x8, _VFIO_IRQ_SET_DATA_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VFIO_IRQ_SET_DATA_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w4
	cbz	w8, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_intel_vgpu_release_msi_eventfd_ctx
	b	LBB0_7
LBB0_6:
	str	x20, [x19]
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VFIO_IRQ_SET_DATA_EVENTFD,4,2  ; @VFIO_IRQ_SET_DATA_EVENTFD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eventfd_ctx_fdget failed\n"

	.comm	_VFIO_IRQ_SET_DATA_NONE,4,2     ; @VFIO_IRQ_SET_DATA_NONE
	.no_dead_strip	_intel_vgpu_set_msi_trigger
.subsections_via_symbols
