	.file	"extr_ixgbe_ethtool.c_ixgbe_get_channels.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ixgbe_get_channels, @function
ixgbe_get_channels:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	netdev_priv@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	ixgbe_max_channels@PLT
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR 24[rbp], eax
	test	DWORD PTR IXGBE_FLAG_MSIX_ENABLED[rip], edx
	je	.L2
	mov	rax, QWORD PTR NON_Q_VECTORS[rip]
	mov	QWORD PTR 16[rbp], rax
	mov	QWORD PTR 8[rbp], rax
.L2:
	mov	rcx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR RING_F_RSS[rip]
	mov	eax, DWORD PTR [rcx+rax*4]
	mov	DWORD PTR 0[rbp], eax
	cmp	eax, 1
	je	.L1
	test	DWORD PTR IXGBE_FLAG_SRIOV_ENABLED[rip], edx
	jne	.L1
	cmp	DWORD PTR 4[rbx], 1
	jg	.L1
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR RING_F_FDIR[rip]
	mov	eax, DWORD PTR [rcx+rax*4]
	mov	DWORD PTR 0[rbp], eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ixgbe_get_channels, .-ixgbe_get_channels
	.comm	RING_F_RSS,8,8
	.comm	RING_F_FDIR,8,8
	.comm	NON_Q_VECTORS,8,8
	.comm	IXGBE_FLAG_SRIOV_ENABLED,4,4
	.comm	IXGBE_FLAG_MSIX_ENABLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ixgbe_ethtool.c_ixgbe_get_channels.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_get_channels, %function
ixgbe_get_channels:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	bl	netdev_priv
	mov	r5, r0
	bl	ixgbe_max_channels
	ldr	r3, .L15
	ldr	r2, [r5]
	ldr	r3, [r3]
	ldr	r1, [r5, #8]
	tst	r2, r3
	ldrne	r3, .L15+4
	str	r0, [r4, #12]
	ldrne	r3, [r3]
	strne	r3, [r4, #8]
	strne	r3, [r4, #4]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #1
	str	r3, [r4]
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L15+12
	ldr	r3, [r3]
	tst	r2, r3
	popne	{r4, r5, r6, pc}
	ldr	r3, [r5, #4]
	cmp	r3, #1
	popgt	{r4, r5, r6, pc}
	ldr	r3, [r5, #12]
	cmp	r3, #0
	ldrne	r3, .L15+16
	ldrne	r3, [r3]
	ldrne	r3, [r1, r3, lsl #2]
	strne	r3, [r4]
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	IXGBE_FLAG_MSIX_ENABLED
	.word	NON_Q_VECTORS
	.word	RING_F_RSS
	.word	IXGBE_FLAG_SRIOV_ENABLED
	.word	RING_F_FDIR
	.size	ixgbe_get_channels, .-ixgbe_get_channels
	.comm	RING_F_RSS,4,4
	.comm	RING_F_FDIR,4,4
	.comm	NON_Q_VECTORS,4,4
	.comm	IXGBE_FLAG_SRIOV_ENABLED,4,4
	.comm	IXGBE_FLAG_MSIX_ENABLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
