	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdns_pcie_ep_set_msi
_cdns_pcie_ep_set_msi:                  ## @cdns_pcie_ep_set_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	%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, %ebx
	movl	%esi, %r14d
	callq	_epc_get_drvdata
	movq	%rax, %r15
	movq	_CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_PCI_MSI_FLAGS@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	addq	%r12, %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_cdns_pcie_ep_fn_readw
	movq	_PCI_MSI_FLAGS_QMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	addl	%ebx, %ebx
	orl	%ecx, %ebx
	movq	_PCI_MSI_FLAGS_64BIT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_PCI_MSI_FLAGS_MASKBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	%ebx, %ecx
	addq	(%r13), %r12
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_cdns_pcie_ep_fn_writew
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET,8,3 ## @CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET
	.comm	_PCI_MSI_FLAGS,8,3              ## @PCI_MSI_FLAGS
	.comm	_PCI_MSI_FLAGS_QMASK,4,2        ## @PCI_MSI_FLAGS_QMASK
	.comm	_PCI_MSI_FLAGS_64BIT,4,2        ## @PCI_MSI_FLAGS_64BIT
	.comm	_PCI_MSI_FLAGS_MASKBIT,4,2      ## @PCI_MSI_FLAGS_MASKBIT
	.no_dead_strip	_cdns_pcie_ep_set_msi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdns_pcie_ep_set_msi
_cdns_pcie_ep_set_msi:                  ; @cdns_pcie_ep_set_msi
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	bl	_epc_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x8, _CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x23, _PCI_MSI_FLAGS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PCI_MSI_FLAGS@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x2, x8, x22
	mov	x1, x20
	bl	_cdns_pcie_ep_fn_readw
Lloh5:
	adrp	x8, _PCI_MSI_FLAGS_QMASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_MSI_FLAGS_QMASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w8, w0, w8
	orr	w8, w8, w19, lsl #1
Lloh8:
	adrp	x9, _PCI_MSI_FLAGS_64BIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PCI_MSI_FLAGS_64BIT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _PCI_MSI_FLAGS_MASKBIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PCI_MSI_FLAGS_MASKBIT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	bic	w3, w8, w9
	ldr	x8, [x23]
	add	x2, x8, x22
	mov	x0, x21
	mov	x1, x20
	bl	_cdns_pcie_ep_fn_writew
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET,8,3 ; @CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET
	.comm	_PCI_MSI_FLAGS,8,3              ; @PCI_MSI_FLAGS
	.comm	_PCI_MSI_FLAGS_QMASK,4,2        ; @PCI_MSI_FLAGS_QMASK
	.comm	_PCI_MSI_FLAGS_64BIT,4,2        ; @PCI_MSI_FLAGS_64BIT
	.comm	_PCI_MSI_FLAGS_MASKBIT,4,2      ; @PCI_MSI_FLAGS_MASKBIT
	.no_dead_strip	_cdns_pcie_ep_set_msi
.subsections_via_symbols
