	.file	"extr_dm9000.c_dm9000_set_features.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dm9000_set_features, @function
dm9000_set_features:
.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	ebx, esi
	call	to_dm9000_board@PLT
	mov	r12, rax
	mov	eax, DWORD PTR 0[rbp]
	xor	eax, ebx
	test	DWORD PTR NETIF_F_RXCSUM[rip], eax
	je	.L2
	xor	ebp, ebp
	mov	rdi, r12
	mov	rsi, rbp
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR DM9000_RCSR[rip]
	mov	edx, ebx
	mov	rdi, r12
	and	edx, DWORD PTR NETIF_F_RXCSUM[rip]
	cmovne	edx, DWORD PTR RCSR_CSUM[rip]
	call	iow@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	spin_unlock_irqrestore@PLT
.L2:
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dm9000_set_features, .-dm9000_set_features
	.comm	RCSR_CSUM,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	DM9000_RCSR,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_dm9000.c_dm9000_set_features.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dm9000_set_features, %function
dm9000_set_features:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r4, r1
	ldr	r6, .L12
	bl	to_dm9000_board
	ldr	r3, [r5]
	ldr	r2, [r6]
	eor	r3, r3, r4
	tst	r3, r2
	beq	.L2
	mov	r5, r0
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r2, [r6]
	ldr	r3, .L12+4
	ands	r2, r4, r2
	ldr	r1, [r3]
	ldrne	r3, .L12+8
	mov	r0, r5
	ldrne	r2, [r3]
	bl	iow
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	NETIF_F_RXCSUM
	.word	DM9000_RCSR
	.word	RCSR_CSUM
	.size	dm9000_set_features, .-dm9000_set_features
	.comm	RCSR_CSUM,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	DM9000_RCSR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
