	.file	"extr_lan78xx.c_lan78xx_rx_csum_offload.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lan78xx_rx_csum_offload, @function
lan78xx_rx_csum_offload:
.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, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR NETIF_F_RXCSUM[rip], eax
	jne	.L2
.L4:
	mov	eax, DWORD PTR CHECKSUM_NONE[rip]
	mov	DWORD PTR 0[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
	mov	rbx, rdi
	mov	edi, DWORD PTR RX_CMD_A_ICSM_[rip]
	mov	r12d, edx
	mov	r13d, ecx
	and	edi, edx
	call	unlikely@PLT
	test	rax, rax
	jne	.L4
	test	DWORD PTR RX_CMD_A_FVTG_[rip], r12d
	je	.L5
	mov	rax, QWORD PTR [rbx]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR NETIF_F_HW_VLAN_CTAG_RX[rip], eax
	je	.L4
.L5:
	mov	ecx, DWORD PTR RX_CMD_B_CSUM_SHIFT_[rip]
	mov	edi, r13d
	sar	edi, cl
	call	ntohs@PLT
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR CHECKSUM_COMPLETE[rip]
	mov	DWORD PTR 0[rbp], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	lan78xx_rx_csum_offload, .-lan78xx_rx_csum_offload
	.comm	RX_CMD_B_CSUM_SHIFT_,4,4
	.comm	RX_CMD_A_ICSM_,4,4
	.comm	RX_CMD_A_FVTG_,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	NETIF_F_HW_VLAN_CTAG_RX,4,4
	.comm	CHECKSUM_NONE,4,4
	.comm	CHECKSUM_COMPLETE,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_lan78xx.c_lan78xx_rx_csum_offload.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lan78xx_rx_csum_offload, %function
lan78xx_rx_csum_offload:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, [r0]
	mov	r4, r0
	ldr	r0, .L14
	ldr	ip, [ip]
	ldr	r0, [r0]
	mov	r5, r1
	tst	ip, r0
	bne	.L2
.L4:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r7, r3
	ldr	r3, .L14+8
	mov	r6, r2
	ldr	r0, [r3]
	and	r0, r0, r2
	bl	unlikely
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L14+12
	ldr	r3, [r3]
	tst	r6, r3
	beq	.L5
	ldr	r2, [r4]
	ldr	r3, .L14+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L4
.L5:
	ldr	r3, .L14+20
	ldr	r0, [r3]
	asr	r0, r7, r0
	bl	ntohs
	ldr	r3, .L14+24
	str	r0, [r5, #4]
	ldr	r3, [r3]
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	NETIF_F_RXCSUM
	.word	CHECKSUM_NONE
	.word	RX_CMD_A_ICSM_
	.word	RX_CMD_A_FVTG_
	.word	NETIF_F_HW_VLAN_CTAG_RX
	.word	RX_CMD_B_CSUM_SHIFT_
	.word	CHECKSUM_COMPLETE
	.size	lan78xx_rx_csum_offload, .-lan78xx_rx_csum_offload
	.comm	RX_CMD_B_CSUM_SHIFT_,4,4
	.comm	RX_CMD_A_ICSM_,4,4
	.comm	RX_CMD_A_FVTG_,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	NETIF_F_HW_VLAN_CTAG_RX,4,4
	.comm	CHECKSUM_NONE,4,4
	.comm	CHECKSUM_COMPLETE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
