	.file	"extr_enic_main.c_enic_set_rx_coal_setting.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	enic_set_rx_coal_setting, @function
enic_set_rx_coal_setting:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR 16[rdi]
	call	vnic_dev_port_speed@PLT
	cmp	DWORD PTR ENIC_LINK_SPEED_10G[rip], eax
	jnb	.L2
	movsx	rdx, DWORD PTR ENIC_LINK_40G_INDEX[rip]
.L3:
	mov	rax, QWORD PTR mod_range[rip]
	lea	rax, [rax+rdx*8]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 28[rbx], eax
	mov	eax, DWORD PTR ENIC_RX_COALESCE_RANGE_END[rip]
	mov	DWORD PTR 32[rbx], edx
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jle	.L5
	mov	rdx, QWORD PTR 8[rbx]
	lea	ecx, -1[rax]
	mov	esi, DWORD PTR 4[rbx]
	lea	rax, 4[rdx]
	lea	rcx, [rax+rcx*4]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	add	rax, 4
.L6:
	mov	DWORD PTR [rdx], esi
	mov	rdx, rax
	cmp	rcx, rax
	jne	.L10
.L5:
	mov	DWORD PTR 20[rbx], 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	DWORD PTR ENIC_LINK_SPEED_4G[rip], eax
	movsx	rdx, DWORD PTR ENIC_LINK_4G_INDEX[rip]
	jnb	.L3
	movsx	rdx, DWORD PTR ENIC_LINK_10G_INDEX[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	enic_set_rx_coal_setting, .-enic_set_rx_coal_setting
	.comm	mod_range,8,8
	.comm	ENIC_RX_COALESCE_RANGE_END,4,4
	.comm	ENIC_LINK_SPEED_4G,4,4
	.comm	ENIC_LINK_SPEED_10G,4,4
	.comm	ENIC_LINK_4G_INDEX,4,4
	.comm	ENIC_LINK_40G_INDEX,4,4
	.comm	ENIC_LINK_10G_INDEX,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_enic_main.c_enic_set_rx_coal_setting.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	enic_set_rx_coal_setting, %function
enic_set_rx_coal_setting:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r0, #12]
	bl	vnic_dev_port_speed
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, r0
	bcs	.L2
	ldr	r3, .L10+4
	ldr	r1, [r3]
.L3:
	ldr	r3, .L10+8
	ldr	ip, .L10+12
	ldr	r3, [r3]
	ldr	r2, [r4]
	add	r0, r3, r1, lsl #3
	ldr	r0, [r0, #4]
	ldr	r1, [r3, r1, lsl #3]
	ldr	r3, [ip]
	cmp	r2, #0
	str	r0, [r4, #28]
	str	r1, [r4, #24]
	str	r3, [r4, #20]
	ble	.L5
	ldmib	r4, {r1, r3}
	sub	r3, r3, #4
	add	r2, r3, r2, lsl #2
.L6:
	str	r1, [r3, #4]!
	cmp	r2, r3
	bne	.L6
.L5:
	mov	r3, #1
	str	r3, [r4, #16]
	pop	{r4, pc}
.L2:
	ldr	r3, .L10+16
	ldr	r3, [r3]
	cmp	r3, r0
	ldrcc	r3, .L10+20
	ldrcs	r3, .L10+24
	ldr	r1, [r3]
	b	.L3
.L11:
	.align	2
.L10:
	.word	ENIC_LINK_SPEED_10G
	.word	ENIC_LINK_40G_INDEX
	.word	mod_range
	.word	ENIC_RX_COALESCE_RANGE_END
	.word	ENIC_LINK_SPEED_4G
	.word	ENIC_LINK_10G_INDEX
	.word	ENIC_LINK_4G_INDEX
	.size	enic_set_rx_coal_setting, .-enic_set_rx_coal_setting
	.comm	mod_range,4,4
	.comm	ENIC_RX_COALESCE_RANGE_END,4,4
	.comm	ENIC_LINK_SPEED_4G,4,4
	.comm	ENIC_LINK_SPEED_10G,4,4
	.comm	ENIC_LINK_4G_INDEX,4,4
	.comm	ENIC_LINK_40G_INDEX,4,4
	.comm	ENIC_LINK_10G_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
