	.file	"extr_qlge_ethtool.c_ql_update_ring_coalescing.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to load CQICB.\n"
	.text
	.p2align 4
	.type	ql_update_ring_coalescing, @function
ql_update_ring_coalescing:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 48[rdi]
	call	netif_running@PLT
	test	eax, eax
	jne	.L25
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 56[rbp]
	lea	rbx, [rax+rdx*4]
	mov	rdi, QWORD PTR 16[rbx]
	call	le16_to_cpu@PLT
	cmp	rax, QWORD PTR 8[rbp]
	je	.L3
.L6:
	mov	rax, QWORD PTR 0[rbp]
	movsx	rbx, eax
	mov	r13d, eax
	sal	rbx, 2
	cmp	eax, DWORD PTR 24[rbp]
	jl	.L9
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	add	r13d, 1
	add	rbx, 4
	cmp	DWORD PTR 24[rbp], r13d
	jle	.L5
.L9:
	mov	r12, QWORD PTR 56[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	call	cpu_to_le16@PLT
	add	r12, rbx
	mov	rdi, QWORD PTR 16[rbp]
	mov	QWORD PTR 16[r12], rax
	call	cpu_to_le16@PLT
	mov	rsi, r12
	mov	edx, 24
	mov	rdi, rbp
	mov	r8, QWORD PTR FLAGS_LI[rip]
	mov	QWORD PTR 8[r12], rax
	mov	ecx, DWORD PTR CFG_LCQ[rip]
	mov	QWORD PTR [r12], r8
	call	ql_write_cfg@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
.L23:
	mov	edx, DWORD PTR 48[rbp]
	mov	esi, DWORD PTR ifup[rip]
	mov	rdi, rbp
	lea	rcx, .LC0[rip]
	call	netif_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	call	le16_to_cpu@PLT
	cmp	rax, QWORD PTR 16[rbp]
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rbx, QWORD PTR 56[rbp]
	mov	rdi, QWORD PTR 16[rbx]
	call	le16_to_cpu@PLT
	cmp	rax, QWORD PTR 32[rbp]
	je	.L10
.L12:
	xor	ebx, ebx
	cmp	QWORD PTR 0[rbp], 0
	jne	.L11
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	add	rbx, 1
	cmp	QWORD PTR 0[rbp], rbx
	jbe	.L2
.L11:
	mov	rax, QWORD PTR 56[rbp]
	mov	rdi, QWORD PTR 32[rbp]
	lea	r12, [rax+rbx*4]
	call	cpu_to_le16@PLT
	mov	rdi, QWORD PTR 40[rbp]
	mov	QWORD PTR 16[r12], rax
	call	cpu_to_le16@PLT
	mov	rsi, r12
	mov	edx, 24
	mov	rdi, rbp
	mov	r8, QWORD PTR FLAGS_LI[rip]
	mov	QWORD PTR 8[r12], rax
	mov	ecx, DWORD PTR CFG_LCQ[rip]
	mov	QWORD PTR [r12], r8
	call	ql_write_cfg@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L13
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 8[rbx]
	call	le16_to_cpu@PLT
	cmp	rax, QWORD PTR 40[rbp]
	jne	.L12
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ql_update_ring_coalescing, .-ql_update_ring_coalescing
	.comm	ifup,4,4
	.comm	FLAGS_LI,8,8
	.comm	CFG_LCQ,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_qlge_ethtool.c_ql_update_ring_coalescing.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to load CQICB.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ql_update_ring_coalescing, %function
ql_update_ring_coalescing:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	sub	sp, sp, #12
	ldr	r0, [r0, #24]
	bl	netif_running
	cmp	r0, #0
	bne	.L23
.L2:
	mov	r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L23:
	ldr	r3, [r4]
	ldr	r5, [r4, #28]
	add	r5, r5, r3, lsl #2
	ldr	r0, [r5, #8]
	bl	le16_to_cpu
	ldr	r3, [r4, #4]
	cmp	r0, r3
	beq	.L3
.L6:
	ldr	r6, [r4]
	ldr	r3, [r4, #12]
	cmp	r6, r3
	bge	.L5
	ldr	r8, .L24
	ldr	r7, .L24+4
	b	.L4
.L7:
	ldr	r3, [r4, #12]
	cmp	r3, r6
	ble	.L5
.L4:
	ldr	r0, [r4, #4]
	ldr	r9, [r4, #28]
	bl	cpu_to_le16
	add	r5, r9, r6, lsl #2
	str	r0, [r5, #8]
	ldr	r0, [r4, #8]
	bl	cpu_to_le16
	ldr	r2, [r8]
	str	r0, [r5, #4]
	mov	r1, r5
	str	r2, [r9, r6, lsl #2]
	mov	r0, r4
	str	r2, [sp]
	ldr	r3, [r7]
	mov	r2, #12
	bl	ql_write_cfg
	subs	r5, r0, #0
	add	r6, r6, #1
	beq	.L7
.L21:
	ldr	r2, .L24+8
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r3, .L24+12
	ldr	r2, [r4, #24]
	bl	netif_err
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L3:
	ldr	r0, [r5, #4]
	bl	le16_to_cpu
	ldr	r3, [r4, #8]
	cmp	r0, r3
	bne	.L6
.L5:
	ldr	r5, [r4, #28]
	ldr	r0, [r5, #8]
	bl	le16_to_cpu
	ldr	r3, [r4, #16]
	cmp	r0, r3
	beq	.L9
.L11:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L2
	mov	r6, #0
	ldr	r8, .L24
	ldr	r7, .L24+4
	b	.L10
.L12:
	ldr	r3, [r4]
	cmp	r3, r6
	bls	.L2
.L10:
	ldr	r0, [r4, #16]
	ldr	r9, [r4, #28]
	bl	cpu_to_le16
	add	r5, r9, r6, lsl #2
	str	r0, [r5, #8]
	ldr	r0, [r4, #20]
	bl	cpu_to_le16
	ldr	r2, [r8]
	str	r0, [r5, #4]
	mov	r1, r5
	str	r2, [r9, r6, lsl #2]
	mov	r0, r4
	str	r2, [sp]
	ldr	r3, [r7]
	mov	r2, #12
	bl	ql_write_cfg
	subs	r5, r0, #0
	add	r6, r6, #1
	beq	.L12
	b	.L21
.L9:
	ldr	r0, [r5, #4]
	bl	le16_to_cpu
	ldr	r3, [r4, #20]
	cmp	r0, r3
	bne	.L11
	b	.L2
.L25:
	.align	2
.L24:
	.word	FLAGS_LI
	.word	CFG_LCQ
	.word	ifup
	.word	.LC0
	.size	ql_update_ring_coalescing, .-ql_update_ring_coalescing
	.comm	ifup,4,4
	.comm	FLAGS_LI,4,4
	.comm	CFG_LCQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
