	.file	"extr_aq_ethtool.c_aq_ethtool_set_coalesce.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aq_ethtool_set_coalesce, @function
aq_ethtool_set_coalesce:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	netdev_priv@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	aq_nic_get_cfg@PLT
	cmp	QWORD PTR 64[rbx], 0
	jne	.L2
	cmp	QWORD PTR 56[rbx], 0
	jne	.L2
	mov	edx, DWORD PTR [rbx]
	cmp	edx, 1
	jg	.L2
	cmp	QWORD PTR 48[rbx], 0
	jne	.L2
	cmp	QWORD PTR 40[rbx], 0
	jne	.L2
	mov	ecx, DWORD PTR 4[rbx]
	cmp	ecx, 1
	jg	.L2
	cmp	QWORD PTR 32[rbx], 0
	jne	.L2
	cmp	QWORD PTR 24[rbx], 0
	jne	.L2
	mov	rsi, QWORD PTR 8[rbx]
	xor	edi, edi
	test	rsi, rsi
	sete	dil
	cmp	edx, edi
	jne	.L2
	mov	rdx, QWORD PTR 16[rbx]
	xor	edi, edi
	test	rdx, rdx
	sete	dil
	cmp	ecx, edi
	jne	.L2
	cmp	rsi, rdx
	mov	rcx, rdx
	cmovge	rcx, rsi
	cmp	QWORD PTR AQ_CFG_INTERRUPT_MODERATION_USEC_MAX[rip], rcx
	jge	.L5
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	mov	ecx, DWORD PTR AQ_CFG_INTERRUPT_MODERATION_ON[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rdi, rbp
	mov	QWORD PTR [rax], rsi
	mov	DWORD PTR 16[rax], ecx
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	aq_nic_update_interrupt_moderation_settings@PLT
	.cfi_endproc
.LFE0:
	.size	aq_ethtool_set_coalesce, .-aq_ethtool_set_coalesce
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	AQ_CFG_INTERRUPT_MODERATION_USEC_MAX,8,8
	.comm	AQ_CFG_INTERRUPT_MODERATION_ON,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_aq_ethtool.c_aq_ethtool_set_coalesce.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aq_ethtool_set_coalesce, %function
aq_ethtool_set_coalesce:
	@ 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	aq_nic_get_cfg
	ldr	r3, [r4, #36]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [r4, #32]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [r4]
	cmp	r3, #1
	bgt	.L2
	ldr	r1, [r4, #28]
	cmp	r1, #0
	bne	.L2
	ldr	r1, [r4, #24]
	cmp	r1, #0
	bne	.L2
	ldr	r1, [r4, #4]
	cmp	r1, #1
	bgt	.L2
	mov	r2, r0
	ldr	r0, [r4, #20]
	cmp	r0, #0
	bne	.L2
	ldr	r0, [r4, #16]
	cmp	r0, #0
	bne	.L2
	ldr	ip, [r4, #8]
	clz	r0, ip
	lsr	r0, r0, #5
	cmp	r3, r0
	bne	.L2
	ldr	r0, [r4, #12]
	clz	r3, r0
	lsr	r3, r3, #5
	cmp	r1, r3
	bne	.L2
	cmp	ip, r0
	movge	r3, ip
	movlt	r3, r0
	ldr	r1, .L8
	ldr	r1, [r1]
	cmp	r1, r3
	bge	.L5
	ldr	r3, .L8+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L8+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, .L8+12
	str	r0, [r2, #4]
	ldr	r3, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	str	r3, [r2, #8]
	str	ip, [r2]
	b	aq_nic_update_interrupt_moderation_settings
.L9:
	.align	2
.L8:
	.word	AQ_CFG_INTERRUPT_MODERATION_USEC_MAX
	.word	EINVAL
	.word	EOPNOTSUPP
	.word	AQ_CFG_INTERRUPT_MODERATION_ON
	.size	aq_ethtool_set_coalesce, .-aq_ethtool_set_coalesce
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	AQ_CFG_INTERRUPT_MODERATION_USEC_MAX,4,4
	.comm	AQ_CFG_INTERRUPT_MODERATION_ON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
