	.file	"extr_ethtool.c_efx_ethtool_set_ringparam.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"RX queues cannot be smaller than %u\n"
	.align 8
.LC1:
	.string	"increasing TX queue size to minimum of %u\n"
	.text
	.p2align 4
	.type	efx_ethtool_set_ringparam, @function
efx_ethtool_set_ringparam:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	netdev_priv@PLT
	cmp	QWORD PTR 24[rbx], 0
	jne	.L8
	cmp	QWORD PTR 16[rbx], 0
	jne	.L8
	mov	rbp, rax
	mov	eax, DWORD PTR EFX_MAX_DMAQ_SIZE[rip]
	cmp	DWORD PTR 8[rbx], eax
	jg	.L8
	mov	r12, QWORD PTR [rbx]
	mov	rdi, rbp
	call	EFX_TXQ_MAX_ENT@PLT
	cmp	r12, rax
	jg	.L8
	mov	r8d, DWORD PTR EFX_RXQ_MIN_ENT[rip]
	cmp	DWORD PTR 8[rbx], r8d
	jl	.L10
	mov	rdi, rbp
	call	EFX_TXQ_MIN_ENT@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	esi, eax
	call	max@PLT
	mov	r12, rax
	cmp	QWORD PTR [rbx], rax
	jne	.L11
.L6:
	mov	esi, DWORD PTR 8[rbx]
	mov	rdx, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	efx_realloc_channels@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR drv[rip]
	lea	rcx, .LC0[rip]
	mov	rdi, rbp
	call	netif_err@PLT
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR drv[rip]
	mov	r8, rax
	mov	rdi, rbp
	lea	rcx, .LC1[rip]
	call	netif_warn@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	efx_ethtool_set_ringparam, .-efx_ethtool_set_ringparam
	.comm	drv,4,4
	.comm	EINVAL,4,4
	.comm	EFX_RXQ_MIN_ENT,4,4
	.comm	EFX_MAX_DMAQ_SIZE,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_ethtool.c_efx_ethtool_set_ringparam.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"RX queues cannot be smaller than %u\012\000"
	.align	2
.LC1:
	.ascii	"increasing TX queue size to minimum of %u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efx_ethtool_set_ringparam, %function
efx_ethtool_set_ringparam:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	sub	sp, sp, #8
	bl	netdev_priv
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L12
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L8
	ldr	r6, [r4]
	mov	r5, r0
	bl	EFX_TXQ_MAX_ENT
	cmp	r6, r0
	bgt	.L8
	ldr	r3, .L12+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L10
	mov	r0, r5
	ldr	r6, [r4]
	bl	EFX_TXQ_MIN_ENT
	mov	r1, r0
	mov	r0, r6
	bl	max
	ldr	r3, [r4]
	mov	r6, r0
	cmp	r3, r0
	bne	.L11
.L6:
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r4, #4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	efx_realloc_channels
.L10:
	ldr	r1, .L12+8
	ldr	r2, [r5]
	str	r3, [sp]
	mov	r0, r5
	ldr	r1, [r1]
	ldr	r3, .L12+12
	bl	netif_err
.L8:
	ldr	r3, .L12+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L12+8
	ldr	r2, [r5]
	str	r0, [sp]
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r3, .L12+20
	bl	netif_warn
	b	.L6
.L13:
	.align	2
.L12:
	.word	EFX_MAX_DMAQ_SIZE
	.word	EFX_RXQ_MIN_ENT
	.word	drv
	.word	.LC0
	.word	EINVAL
	.word	.LC1
	.size	efx_ethtool_set_ringparam, .-efx_ethtool_set_ringparam
	.comm	drv,4,4
	.comm	EINVAL,4,4
	.comm	EFX_RXQ_MIN_ENT,4,4
	.comm	EFX_MAX_DMAQ_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
