	.file	"extr_ionic_ethtool.c_ionic_set_coalesce.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bad HW value in dev.intr_coal_div = %d\n"
	.align 8
.LC1:
	.string	"only the rx-usecs can be changed\n"
	.text
	.p2align 4
	.type	ionic_set_coalesce, @function
ionic_set_coalesce:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	netdev_priv@PLT
	cmp	QWORD PTR 168[rbx], 0
	jne	.L15
	cmp	QWORD PTR 160[rbx], 0
	jne	.L15
	cmp	QWORD PTR 152[rbx], 0
	jne	.L15
	cmp	QWORD PTR 144[rbx], 0
	jne	.L15
	cmp	QWORD PTR 136[rbx], 0
	jne	.L15
	cmp	QWORD PTR 128[rbx], 0
	jne	.L15
	cmp	QWORD PTR 120[rbx], 0
	jne	.L15
	cmp	QWORD PTR 112[rbx], 0
	jne	.L15
	cmp	QWORD PTR 104[rbx], 0
	jne	.L15
	cmp	QWORD PTR 96[rbx], 0
	jne	.L15
	cmp	QWORD PTR 88[rbx], 0
	jne	.L15
	cmp	QWORD PTR 80[rbx], 0
	jne	.L15
	cmp	QWORD PTR 72[rbx], 0
	jne	.L15
	cmp	QWORD PTR 64[rbx], 0
	jne	.L15
	cmp	QWORD PTR 56[rbx], 0
	jne	.L15
	cmp	QWORD PTR 48[rbx], 0
	jne	.L15
	cmp	QWORD PTR 40[rbx], 0
	jne	.L15
	cmp	QWORD PTR 32[rbx], 0
	jne	.L15
	cmp	QWORD PTR 24[rbx], 0
	jne	.L15
	cmp	QWORD PTR 16[rbx], 0
	jne	.L15
	mov	rdi, QWORD PTR 16[rax]
	mov	r12, rax
	cmp	QWORD PTR 8[rdi], 0
	je	.L17
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rbx], rax
	je	.L6
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	netdev_warn@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	mov	rsi, QWORD PTR 8[rbx]
	call	ionic_coal_usec_to_hw@PLT
	cmp	QWORD PTR IONIC_INTR_CTRL_COAL_MAX[rip], rax
	mov	rbp, rax
	jl	.L18
	test	rax, rax
	jne	.L8
	xor	ebp, ebp
	cmp	QWORD PTR 8[rbx], 0
	setne	bpl
.L8:
	mov	rdi, QWORD PTR 16[r12]
	mov	rsi, rbp
	call	ionic_coal_hw_to_usec@PLT
	cmp	QWORD PTR [r12], rax
	je	.L11
	mov	esi, DWORD PTR 32[r12]
	mov	edi, DWORD PTR IONIC_LIF_UP[rip]
	mov	QWORD PTR [r12], rax
	call	test_bit@PLT
	test	rax, rax
	je	.L11
	xor	ebx, ebx
	jmp	.L10
.L12:
	mov	rax, QWORD PTR 24[r12]
	mov	edx, ebx
	add	ebx, 1
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR 16[r12]
	mov	rdx, rbp
	mov	esi, DWORD PTR [rcx]
	mov	edi, DWORD PTR [rax]
	call	ionic_intr_coal_init@PLT
.L10:
	cmp	DWORD PTR 8[r12], ebx
	ja	.L12
.L11:
	xor	eax, eax
	jmp	.L1
.L18:
	mov	eax, DWORD PTR ERANGE[rip]
	neg	eax
	jmp	.L1
.L17:
	xor	edx, edx
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	netdev_warn@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ionic_set_coalesce, .-ionic_set_coalesce
	.comm	IONIC_LIF_UP,4,4
	.comm	IONIC_INTR_CTRL_COAL_MAX,8,8
	.comm	ERANGE,4,4
	.comm	EIO,4,4
	.comm	EINVAL,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_ionic_ethtool.c_ionic_set_coalesce.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bad HW value in dev.intr_coal_div = %d\012\000"
	.align	2
.LC1:
	.ascii	"only the rx-usecs can be changed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ionic_set_coalesce, %function
ionic_set_coalesce:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r7, r0
	bl	netdev_priv
	ldr	r3, [r4, #84]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #80]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #76]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #72]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #68]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #64]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #60]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #56]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #52]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #48]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #44]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #40]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #36]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #32]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #28]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #24]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L15
	ldr	r5, [r4, #8]
	cmp	r5, #0
	bne	.L15
	mov	r6, r0
	ldr	r0, [r0, #8]
	ldr	r2, [r0, #4]
	cmp	r2, #0
	beq	.L17
	ldr	r2, [r4]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L6
	mov	r0, r7
	ldr	r1, .L19
	bl	netdev_warn
.L15:
	ldr	r3, .L19+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r1, [r4, #4]
	bl	ionic_coal_usec_to_hw
	ldr	r3, .L19+8
	mov	r7, r0
	ldr	r3, [r3]
	cmp	r3, r0
	blt	.L18
	cmp	r0, #0
	bne	.L8
	ldr	r7, [r4, #4]
	subs	r7, r7, #0
	movne	r7, #1
.L8:
	mov	r1, r7
	ldr	r0, [r6, #8]
	bl	ionic_coal_hw_to_usec
	ldr	r2, [r6]
	cmp	r2, r0
	beq	.L1
	ldr	r2, .L19+12
	str	r0, [r6]
	ldr	r1, [r6, #16]
	ldr	r0, [r2]
	bl	test_bit
	cmp	r0, #0
	beq	.L1
	mov	r4, #0
	b	.L10
.L12:
	ldr	r3, [r6, #12]
	ldr	r2, [r6, #8]
	ldr	r3, [r3, r4, lsl #2]
	ldr	r0, [r2]
	ldr	r1, [r3]
	mov	r2, r7
	add	r4, r4, #1
	bl	ionic_intr_coal_init
.L10:
	ldr	r3, [r6, #4]
	cmp	r3, r4
	bhi	.L12
	b	.L1
.L18:
	ldr	r3, .L19+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L17:
	mov	r0, r7
	ldr	r1, .L19+20
	bl	netdev_warn
	ldr	r3, .L19+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	EINVAL
	.word	IONIC_INTR_CTRL_COAL_MAX
	.word	IONIC_LIF_UP
	.word	ERANGE
	.word	.LC0
	.word	EIO
	.size	ionic_set_coalesce, .-ionic_set_coalesce
	.comm	IONIC_LIF_UP,4,4
	.comm	IONIC_INTR_CTRL_COAL_MAX,4,4
	.comm	ERANGE,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
