	.file	"extr_netxen_nic_ethtool.c_netxen_nic_set_flags.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"rx csum is off, cannot toggle LRO\n"
	.text
	.p2align 4
	.type	netxen_nic_set_flags, @function
netxen_nic_set_flags:
.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
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	ethtool_op_get_flags@PLT
	mov	esi, DWORD PTR ETH_FLAG_LRO[rip]
	xor	eax, ebx
	mov	r12d, esi
	not	r12d
	and	r12d, eax
	jne	.L18
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR NX_FW_CAPABILITY_HW_LRO[rip], eax
	je	.L18
	mov	eax, DWORD PTR 4[r13]
	test	eax, eax
	je	.L21
	mov	eax, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR NETIF_F_LRO[rip]
	and	esi, ebx
	sete	dil
	test	eax, edx
	setne	cl
	cmp	dil, cl
	jne	.L1
	test	esi, esi
	je	.L7
	mov	ebx, DWORD PTR NETXEN_NIC_LRO_ENABLED[rip]
	or	eax, edx
.L8:
	mov	DWORD PTR 0[rbp], eax
	mov	esi, ebx
	mov	rdi, r13
	call	netxen_config_hw_lro@PLT
	test	rax, rax
	jne	.L19
	test	ebx, ebx
	jne	.L1
	mov	rdi, r13
	call	netxen_send_lro_cleanup@PLT
	test	rax, rax
	je	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	netdev_info@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	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
.L7:
	.cfi_restore_state
	not	edx
	mov	ebx, DWORD PTR NETXEN_NIC_LRO_DISABLED[rip]
	and	eax, edx
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	netxen_nic_set_flags, .-netxen_nic_set_flags
	.comm	NX_FW_CAPABILITY_HW_LRO,4,4
	.comm	NETXEN_NIC_LRO_ENABLED,4,4
	.comm	NETXEN_NIC_LRO_DISABLED,4,4
	.comm	NETIF_F_LRO,4,4
	.comm	ETH_FLAG_LRO,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_netxen_nic_ethtool.c_netxen_nic_set_flags.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rx csum is off, cannot toggle LRO\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	netxen_nic_set_flags, %function
netxen_nic_set_flags:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r0
	bl	netdev_priv
	mov	r7, r0
	mov	r0, r6
	bl	ethtool_op_get_flags
	ldr	r2, .L22
	eor	r3, r0, r5
	ldr	r1, [r2]
	bics	r4, r3, r1
	bne	.L18
	ldr	r3, .L22+4
	ldr	r2, [r7]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L18
	ldr	r3, [r7, #4]
	cmp	r3, #0
	beq	.L21
	ldr	r2, .L22+8
	ldr	r3, [r6]
	ldr	r2, [r2]
	ands	r1, r1, r5
	moveq	ip, #1
	movne	ip, #0
	tst	r3, r2
	movne	r0, #1
	moveq	r0, #0
	cmp	ip, r0
	bne	.L1
	cmp	r1, #0
	ldrne	r1, .L22+12
	ldreq	r1, .L22+16
	orrne	r3, r3, r2
	ldr	r5, [r1]
	biceq	r3, r3, r2
	mov	r1, r5
	mov	r0, r7
	str	r3, [r6]
	bl	netxen_config_hw_lro
	cmp	r0, #0
	bne	.L19
	cmp	r5, #0
	bne	.L1
	mov	r0, r7
	bl	netxen_send_lro_cleanup
	cmp	r0, #0
	beq	.L1
.L19:
	ldr	r3, .L22+20
	ldr	r3, [r3]
	rsb	r4, r3, #0
	b	.L1
.L21:
	mov	r0, r6
	ldr	r1, .L22+24
	bl	netdev_info
.L18:
	ldr	r3, .L22+28
	ldr	r3, [r3]
	rsb	r4, r3, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	.align	2
.L22:
	.word	ETH_FLAG_LRO
	.word	NX_FW_CAPABILITY_HW_LRO
	.word	NETIF_F_LRO
	.word	NETXEN_NIC_LRO_ENABLED
	.word	NETXEN_NIC_LRO_DISABLED
	.word	EIO
	.word	.LC0
	.word	EINVAL
	.size	netxen_nic_set_flags, .-netxen_nic_set_flags
	.comm	NX_FW_CAPABILITY_HW_LRO,4,4
	.comm	NETXEN_NIC_LRO_ENABLED,4,4
	.comm	NETXEN_NIC_LRO_DISABLED,4,4
	.comm	NETIF_F_LRO,4,4
	.comm	ETH_FLAG_LRO,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
