	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_get_pcie_msix_count_generic ## -- Begin function ixgbe_get_pcie_msix_count_generic
	.p2align	4, 0x90
_ixgbe_get_pcie_msix_count_generic:     ## @ixgbe_get_pcie_msix_count_generic
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	4(%rdi), %ecx
	addl	$-128, %ecx
	movl	$1, %eax
	cmpl	$5, %ecx
	ja	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movslq	%ecx, %rax
	leaq	l_switch.table.ixgbe_get_pcie_msix_count_generic(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.ixgbe_get_pcie_msix_count_generic.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %esi
	movl	(%rcx), %r15d
	callq	_ixgbe_read_pci_cfg_word
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_ixgbe_removed
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%r14d, %ecx
	movq	_IXGBE_PCIE_MSIX_TBL_SZ_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	leal	1(%rcx), %eax
	cmpl	%r15d, %ecx
	cmovgel	%r15d, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_PCIE_MSIX_82598_CAPS,4,2 ## @IXGBE_PCIE_MSIX_82598_CAPS
	.comm	_IXGBE_MAX_MSIX_VECTORS_82598,4,2 ## @IXGBE_MAX_MSIX_VECTORS_82598
	.comm	_IXGBE_PCIE_MSIX_82599_CAPS,4,2 ## @IXGBE_PCIE_MSIX_82599_CAPS
	.comm	_IXGBE_MAX_MSIX_VECTORS_82599,4,2 ## @IXGBE_MAX_MSIX_VECTORS_82599
	.comm	_IXGBE_PCIE_MSIX_TBL_SZ_MASK,4,2 ## @IXGBE_PCIE_MSIX_TBL_SZ_MASK
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ixgbe_get_pcie_msix_count_generic
l_switch.table.ixgbe_get_pcie_msix_count_generic:
	.quad	_IXGBE_MAX_MSIX_VECTORS_82599
	.quad	_IXGBE_MAX_MSIX_VECTORS_82599
	.quad	_IXGBE_MAX_MSIX_VECTORS_82599
	.quad	_IXGBE_MAX_MSIX_VECTORS_82599
	.quad	_IXGBE_MAX_MSIX_VECTORS_82599
	.quad	_IXGBE_MAX_MSIX_VECTORS_82598

	.p2align	3                               ## @switch.table.ixgbe_get_pcie_msix_count_generic.1
l_switch.table.ixgbe_get_pcie_msix_count_generic.1:
	.quad	_IXGBE_PCIE_MSIX_82599_CAPS
	.quad	_IXGBE_PCIE_MSIX_82599_CAPS
	.quad	_IXGBE_PCIE_MSIX_82599_CAPS
	.quad	_IXGBE_PCIE_MSIX_82599_CAPS
	.quad	_IXGBE_PCIE_MSIX_82599_CAPS
	.quad	_IXGBE_PCIE_MSIX_82598_CAPS

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_get_pcie_msix_count_generic ; -- Begin function ixgbe_get_pcie_msix_count_generic
	.p2align	2
_ixgbe_get_pcie_msix_count_generic:     ; @ixgbe_get_pcie_msix_count_generic
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #4]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_2
; %bb.1:
	mov	x19, x0
	sbfiz	x8, x8, #3, #32
Lloh0:
	adrp	x9, l_switch.table.ixgbe_get_pcie_msix_count_generic@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ixgbe_get_pcie_msix_count_generic@PAGEOFF
	ldr	x9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.ixgbe_get_pcie_msix_count_generic.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.ixgbe_get_pcie_msix_count_generic.1@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	w1, [x8]
	ldr	w21, [x9]
	bl	_ixgbe_read_pci_cfg_word
	mov	x20, x0
	ldr	w0, [x19]
	bl	_ixgbe_removed
	cmp	x0, #0
	csel	w8, w20, wzr, eq
Lloh4:
	adrp	x9, _IXGBE_PCIE_MSIX_TBL_SZ_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IXGBE_PCIE_MSIX_TBL_SZ_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	and	w8, w8, w9
	cmp	w8, w21
	csinc	w0, w21, w8, ge
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_PCIE_MSIX_82598_CAPS,4,2 ; @IXGBE_PCIE_MSIX_82598_CAPS
	.comm	_IXGBE_MAX_MSIX_VECTORS_82598,4,2 ; @IXGBE_MAX_MSIX_VECTORS_82598
	.comm	_IXGBE_PCIE_MSIX_82599_CAPS,4,2 ; @IXGBE_PCIE_MSIX_82599_CAPS
	.comm	_IXGBE_MAX_MSIX_VECTORS_82599,4,2 ; @IXGBE_MAX_MSIX_VECTORS_82599
	.comm	_IXGBE_PCIE_MSIX_TBL_SZ_MASK,4,2 ; @IXGBE_PCIE_MSIX_TBL_SZ_MASK
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ixgbe_get_pcie_msix_count_generic
l_switch.table.ixgbe_get_pcie_msix_count_generic:
	.quad	_IXGBE_MAX_MSIX_VECTORS_82599
	.quad	_IXGBE_MAX_MSIX_VECTORS_82599
	.quad	_IXGBE_MAX_MSIX_VECTORS_82599
	.quad	_IXGBE_MAX_MSIX_VECTORS_82599
	.quad	_IXGBE_MAX_MSIX_VECTORS_82599
	.quad	_IXGBE_MAX_MSIX_VECTORS_82598

	.p2align	3                               ; @switch.table.ixgbe_get_pcie_msix_count_generic.1
l_switch.table.ixgbe_get_pcie_msix_count_generic.1:
	.quad	_IXGBE_PCIE_MSIX_82599_CAPS
	.quad	_IXGBE_PCIE_MSIX_82599_CAPS
	.quad	_IXGBE_PCIE_MSIX_82599_CAPS
	.quad	_IXGBE_PCIE_MSIX_82599_CAPS
	.quad	_IXGBE_PCIE_MSIX_82599_CAPS
	.quad	_IXGBE_PCIE_MSIX_82598_CAPS

.subsections_via_symbols
