	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xilinx_pcie_msi_setup_irq
_xilinx_pcie_msi_setup_irq:             ## @xilinx_pcie_msi_setup_irq
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rsi), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_xilinx_pcie_assign_msi
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	8(%r15), %edi
	movl	%eax, %esi
	callq	_irq_create_mapping
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_irq_set_msi_desc
	movq	(%r15), %rdi
	callq	_virt_to_phys
	movq	$0, -32(%rbp)
	movl	%eax, -36(%rbp)
	movl	%ebx, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movl	%ebx, %edi
	callq	_pci_write_msi_msg
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_xilinx_pcie_msi_setup_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xilinx_pcie_msi_setup_irq
_xilinx_pcie_msi_setup_irq:             ; @xilinx_pcie_msi_setup_irq
	.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	x19, x2
	ldr	x8, [x1]
	ldr	x21, [x8]
	bl	_xilinx_pcie_assign_msi
	mov	x1, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x21, #8]
	bl	_irq_create_mapping
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
	mov	x1, x19
	bl	_irq_set_msi_desc
	ldr	x0, [x21]
	bl	_virt_to_phys
	str	xzr, [sp, #8]
	stp	w20, w0, [sp]
	mov	x1, sp
	mov	x0, x20
	bl	_pci_write_msi_msg
	mov	w1, #0
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_4:
	mov	x0, x1
	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	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_xilinx_pcie_msi_setup_irq
.subsections_via_symbols
