	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_pcie_ep_get_msix
_dw_pcie_ep_get_msix:                   ## @dw_pcie_ep_get_msix
	.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
	callq	_epc_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_dw_pcie_from_ep
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_PCI_MSIX_FLAGS@GOTPCREL(%rip), %rcx
	addl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_dw_pcie_readw_dbi
	movq	_PCI_MSIX_FLAGS_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.3:
	movq	_PCI_MSIX_FLAGS_QSIZE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCI_MSIX_FLAGS,4,2             ## @PCI_MSIX_FLAGS
	.comm	_PCI_MSIX_FLAGS_ENABLE,4,2      ## @PCI_MSIX_FLAGS_ENABLE
	.comm	_PCI_MSIX_FLAGS_QSIZE,4,2       ## @PCI_MSIX_FLAGS_QSIZE
	.no_dead_strip	_dw_pcie_ep_get_msix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_pcie_ep_get_msix
_dw_pcie_ep_get_msix:                   ; @dw_pcie_ep_get_msix
	.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
	bl	_epc_get_drvdata
	mov	x19, x0
	bl	_to_dw_pcie_from_ep
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _PCI_MSIX_FLAGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_MSIX_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w1, w9, w8
	bl	_dw_pcie_readw_dbi
Lloh3:
	adrp	x8, _PCI_MSIX_FLAGS_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_MSIX_FLAGS_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _PCI_MSIX_FLAGS_QSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_MSIX_FLAGS_QSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w0, w8, w0
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCI_MSIX_FLAGS,4,2             ; @PCI_MSIX_FLAGS
	.comm	_PCI_MSIX_FLAGS_ENABLE,4,2      ; @PCI_MSIX_FLAGS_ENABLE
	.comm	_PCI_MSIX_FLAGS_QSIZE,4,2       ; @PCI_MSIX_FLAGS_QSIZE
	.no_dead_strip	_dw_pcie_ep_get_msix
.subsections_via_symbols
