	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dw_pcie_ep_raise_msi_irq       ## -- Begin function dw_pcie_ep_raise_msi_irq
	.p2align	4, 0x90
_dw_pcie_ep_raise_msi_irq:              ## @dw_pcie_ep_raise_msi_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	%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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_to_dw_pcie_from_ep
	movl	(%r15), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%ebx, %r14d
	movq	16(%r15), %r12
	movq	_PCI_MSI_FLAGS@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dw_pcie_readw_dbi
	movl	%eax, %ebx
	movq	_PCI_MSI_FLAGS_64BIT@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_PCI_MSI_ADDRESS_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%r15), %esi
	movq	%r13, %rdi
	callq	_dw_pcie_readl_dbi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %esi
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	movq	_PCI_MSI_ADDRESS_HI@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dw_pcie_readl_dbi
	movl	(%r15), %esi
	movq	_PCI_MSI_DATA_64@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	movq	_PCI_MSI_DATA_32@GOTPCREL(%rip), %rax
LBB0_5:
	movl	%r14d, %ebx
	addl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dw_pcie_readw_dbi
	movl	%eax, %r13d
	movq	(%r12), %rax
	movl	(%rax), %r14d
	movl	4(%r15), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r14d, %r8d
	callq	_dw_pcie_ep_map_addr
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	decl	%r14d
	andl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	orl	%eax, %r13d
	addq	8(%r15), %r14
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	_writel
	movl	4(%r15), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_dw_pcie_ep_unmap_addr
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCI_MSI_FLAGS,4,2              ## @PCI_MSI_FLAGS
	.comm	_PCI_MSI_FLAGS_64BIT,4,2        ## @PCI_MSI_FLAGS_64BIT
	.comm	_PCI_MSI_ADDRESS_LO,4,2         ## @PCI_MSI_ADDRESS_LO
	.comm	_PCI_MSI_ADDRESS_HI,4,2         ## @PCI_MSI_ADDRESS_HI
	.comm	_PCI_MSI_DATA_64,4,2            ## @PCI_MSI_DATA_64
	.comm	_PCI_MSI_DATA_32,4,2            ## @PCI_MSI_DATA_32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dw_pcie_ep_raise_msi_irq       ; -- Begin function dw_pcie_ep_raise_msi_irq
	.p2align	2
_dw_pcie_ep_raise_msi_irq:              ; @dw_pcie_ep_raise_msi_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_to_dw_pcie_from_ep
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x23, x0
	ldr	x22, [x20, #16]
Lloh0:
	adrp	x9, _PCI_MSI_FLAGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_MSI_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w1, w9, w8
	bl	_dw_pcie_readw_dbi
Lloh3:
	adrp	x8, _PCI_MSI_FLAGS_64BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_MSI_FLAGS_64BIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w25, w8, w0
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _PCI_MSI_ADDRESS_LO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_MSI_ADDRESS_LO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	x0, x23
	bl	_dw_pcie_readl_dbi
	mov	x24, x0
	ldr	w8, [x20]
	cbz	w25, LBB0_4
; %bb.2:
Lloh9:
	adrp	x9, _PCI_MSI_ADDRESS_HI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_MSI_ADDRESS_HI@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	x0, x23
	bl	_dw_pcie_readl_dbi
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _PCI_MSI_DATA_64@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCI_MSI_DATA_64@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x9, _PCI_MSI_DATA_32@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PCI_MSI_DATA_32@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	x0, x23
	bl	_dw_pcie_readw_dbi
	mov	x23, x0
	ldr	x8, [x22]
	ldr	w25, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x22
	mov	x1, x19
	mov	x4, x25
	bl	_dw_pcie_ep_map_addr
	cbnz	w0, LBB0_7
; %bb.6:
	sub	w8, w25, #1
	and	w8, w8, w24
	sub	w9, w21, #1
	orr	w0, w23, w9
	ldr	x9, [x20, #8]
	add	x1, x9, x8
	bl	_writel
	ldr	w2, [x20, #4]
	mov	x0, x22
	mov	x1, x19
	bl	_dw_pcie_ep_unmap_addr
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCI_MSI_FLAGS,4,2              ; @PCI_MSI_FLAGS
	.comm	_PCI_MSI_FLAGS_64BIT,4,2        ; @PCI_MSI_FLAGS_64BIT
	.comm	_PCI_MSI_ADDRESS_LO,4,2         ; @PCI_MSI_ADDRESS_LO
	.comm	_PCI_MSI_ADDRESS_HI,4,2         ; @PCI_MSI_ADDRESS_HI
	.comm	_PCI_MSI_DATA_64,4,2            ; @PCI_MSI_DATA_64
	.comm	_PCI_MSI_DATA_32,4,2            ; @PCI_MSI_DATA_32
.subsections_via_symbols
