	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_max_channels
_ixgbe_max_channels:                    ## @ixgbe_max_channels
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	4(%rdi), %eax
	movq	_IXGBE_FLAG_MSIX_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_IXGBE_FLAG_SRIOV_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	24(%rdi), %rax
	movq	_RING_F_RSS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	incl	%eax
	popq	%rbp
	retq
LBB0_1:
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	(%rdi), %ecx
	cmpl	$2, %ecx
	jl	LBB0_7
## %bb.5:
	movq	16(%rdi), %rdx
	movq	_ixgbe_mac_82598EB@GOTPCREL(%rip), %rsi
	movl	$4, %eax
	cmpq	(%rsi), %rdx
	je	LBB0_9
## %bb.6:
	xorl	%eax, %eax
	cmpl	$5, %ecx
	setb	%al
	leal	8(,%rax,8), %eax
	popq	%rbp
	retq
LBB0_7:
	cmpq	$0, 8(%rdi)
	je	LBB0_10
## %bb.8:
	movq	_IXGBE_MAX_FDIR_INDICES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	popq	%rbp
	retq
LBB0_10:
	popq	%rbp
	jmp	_ixgbe_max_rss_indices          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_FLAG_MSIX_ENABLED,4,2    ## @IXGBE_FLAG_MSIX_ENABLED
	.comm	_IXGBE_FLAG_SRIOV_ENABLED,4,2   ## @IXGBE_FLAG_SRIOV_ENABLED
	.comm	_RING_F_RSS,8,3                 ## @RING_F_RSS
	.comm	_ixgbe_mac_82598EB,8,3          ## @ixgbe_mac_82598EB
	.comm	_IXGBE_MAX_FDIR_INDICES,4,2     ## @IXGBE_MAX_FDIR_INDICES
	.no_dead_strip	_ixgbe_max_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_max_channels
_ixgbe_max_channels:                    ; @ixgbe_max_channels
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _IXGBE_FLAG_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IXGBE_FLAG_MSIX_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _IXGBE_FLAG_SRIOV_ENABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IXGBE_FLAG_SRIOV_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x0, #24]
Lloh6:
	adrp	x9, _RING_F_RSS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RING_F_RSS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	add	w0, w8, #1
	ret
LBB0_3:
	mov	w0, #1
	ret
LBB0_4:
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.5:
	ldr	x9, [x0, #16]
Lloh9:
	adrp	x10, _ixgbe_mac_82598EB@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ixgbe_mac_82598EB@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.6:
	mov	w0, #4
	ret
LBB0_7:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_10
; %bb.8:
Lloh12:
	adrp	x8, _IXGBE_MAX_FDIR_INDICES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IXGBE_MAX_FDIR_INDICES@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
LBB0_9:
	mov	w9, #16
	mov	w10, #8
	cmp	w8, #4
	csel	w0, w10, w9, hi
	ret
LBB0_10:
	b	_ixgbe_max_rss_indices
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_FLAG_MSIX_ENABLED,4,2    ; @IXGBE_FLAG_MSIX_ENABLED
	.comm	_IXGBE_FLAG_SRIOV_ENABLED,4,2   ; @IXGBE_FLAG_SRIOV_ENABLED
	.comm	_RING_F_RSS,8,3                 ; @RING_F_RSS
	.comm	_ixgbe_mac_82598EB,8,3          ; @ixgbe_mac_82598EB
	.comm	_IXGBE_MAX_FDIR_INDICES,4,2     ; @IXGBE_MAX_FDIR_INDICES
	.no_dead_strip	_ixgbe_max_channels
.subsections_via_symbols
