	.file	"extr_a2065.c_lance_rx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lance_rx, @function
lance_rx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	netdev_priv@PLT
	mov	r13, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	r12, rax
	mov	eax, DWORD PTR LE_C0_RINT[rip]
	or	eax, DWORD PTR LE_C0_INEA[rip]
	mov	DWORD PTR [rdx], eax
	movsx	rdx, DWORD PTR [r12]
	mov	rax, QWORD PTR 8[r13]
	lea	rbp, [rax+rdx*8]
	movzx	eax, BYTE PTR 0[rbp]
	test	BYTE PTR LE_R1_OWN[rip], al
	je	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L36:
	add	DWORD PTR 20[rbx], 1
	mov	eax, DWORD PTR [r12]
	add	DWORD PTR 12[rbx], 1
	movzx	edx, BYTE PTR LE_R1_OWN[rip]
.L5:
	mov	rcx, QWORD PTR 8[r13]
	cdqe
	lea	rbp, [rcx+rax*8]
	movzx	eax, BYTE PTR 0[rbp]
	test	al, dl
	jne	.L3
.L2:
	movzx	edx, BYTE PTR LE_R1_POK[rip]
	mov	ecx, edx
	and	ecx, eax
	cmp	dl, cl
	jne	.L36
	test	BYTE PTR LE_R1_ERR[rip], al
	je	.L6
	test	BYTE PTR LE_R1_BUF[rip], al
	je	.L7
	add	DWORD PTR 28[rbx], 1
.L7:
	test	BYTE PTR LE_R1_CRC[rip], al
	je	.L8
	add	DWORD PTR 24[rbx], 1
.L8:
	test	BYTE PTR LE_R1_OFL[rip], al
	je	.L9
	add	DWORD PTR 20[rbx], 1
.L9:
	test	BYTE PTR LE_R1_FRA[rip], al
	je	.L10
	add	DWORD PTR 16[rbx], 1
.L10:
	test	BYTE PTR LE_R1_EOP[rip], al
	je	.L11
	add	DWORD PTR 12[rbx], 1
.L11:
	movzx	edx, BYTE PTR LE_R1_OWN[rip]
	mov	DWORD PTR 4[rbp], 0
	mov	BYTE PTR 0[rbp], dl
	mov	eax, DWORD PTR [r12]
	add	eax, 1
	and	eax, DWORD PTR 4[r12]
	mov	DWORD PTR [r12], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, rbx
	and	esi, 4095
	lea	r15d, -4[rsi]
	sub	esi, 2
	call	netdev_alloc_skb@PLT
	mov	r14, rax
	test	rax, rax
	je	.L37
	mov	esi, 2
	mov	rdi, rax
	call	skb_reserve@PLT
	mov	esi, r15d
	mov	rdi, r14
	call	skb_put@PLT
	movsx	rdx, DWORD PTR [r12]
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, r14
	mov	rsi, QWORD PTR [rax+rdx*8]
	mov	edx, r15d
	call	skb_copy_to_linear_data@PLT
	mov	rsi, rbx
	mov	rdi, r14
	call	eth_type_trans@PLT
	mov	rdi, r14
	mov	DWORD PTR [r14], eax
	call	netif_rx@PLT
	add	DWORD PTR 4[rbx], 1
	add	DWORD PTR [rbx], r15d
	jmp	.L11
.L37:
	movzx	eax, BYTE PTR LE_R1_OWN[rip]
	add	DWORD PTR 8[rbx], 1
	mov	DWORD PTR 4[rbp], 0
	mov	BYTE PTR 0[rbp], al
	mov	eax, DWORD PTR [r12]
	add	eax, 1
	and	eax, DWORD PTR 4[r12]
	mov	DWORD PTR [r12], eax
.L3:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	lance_rx, .-lance_rx
	.comm	RX_RING_SIZE,4,4
	.comm	LE_R1_POK,1,1
	.comm	LE_R1_OWN,1,1
	.comm	LE_R1_OFL,1,1
	.comm	LE_R1_FRA,1,1
	.comm	LE_R1_ERR,1,1
	.comm	LE_R1_EOP,1,1
	.comm	LE_R1_CRC,1,1
	.comm	LE_R1_BUF,1,1
	.comm	LE_C0_RINT,4,4
	.comm	LE_C0_INEA,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_a2065.c_lance_rx.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lance_rx, %function
lance_rx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	bl	netdev_priv
	ldr	r2, .L36
	ldr	r3, .L36+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r0, #8]
	ldr	r9, [r0, #12]
	orr	r3, r3, r1
	str	r3, [r2]
	ldr	r4, [r9, #4]
	mov	r6, r0
	ldr	r10, .L36+8
	ldr	r0, [r0]
	ldrb	r3, [r10]	@ zero_extendqisi2
	ldrb	r2, [r4, r0, lsl #3]	@ zero_extendqisi2
	add	r4, r4, r0, lsl #3
	tst	r2, r3
	bne	.L3
	ldr	fp, .L36+12
	and	r2, r2, #255
	b	.L2
.L34:
	ldr	r3, [r5, #12]
	ldr	r2, [r5, #20]
	add	r3, r3, #1
	str	r3, [r5, #12]
	mov	r3, r0
	add	r2, r2, #1
	ldrb	r1, [r10]	@ zero_extendqisi2
	str	r2, [r5, #20]
.L5:
	ldr	r4, [r9, #4]
	ldrb	r2, [r4, r3, lsl #3]	@ zero_extendqisi2
	add	r4, r4, r3, lsl #3
	tst	r2, r1
	and	r2, r2, #255
	bne	.L3
.L2:
	ldrb	r1, [fp]	@ zero_extendqisi2
	bics	r3, r1, r2
	bne	.L34
	ldr	r3, .L36+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r2, r3
	beq	.L6
	ldr	r3, .L36+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r2, r3
	ldrne	r3, [r5, #28]
	addne	r3, r3, #1
	strne	r3, [r5, #28]
	ldr	r3, .L36+24
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r2, r3
	ldrne	r3, [r5, #24]
	addne	r3, r3, #1
	strne	r3, [r5, #24]
	ldr	r3, .L36+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r2, r3
	ldrne	r3, [r5, #20]
	addne	r3, r3, #1
	strne	r3, [r5, #20]
	ldr	r3, .L36+32
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r2, r3
	ldrne	r3, [r5, #16]
	addne	r3, r3, #1
	strne	r3, [r5, #16]
	ldr	r3, .L36+36
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r2, r3
	ldrne	r3, [r5, #12]
	addne	r3, r3, #1
	strne	r3, [r5, #12]
.L11:
	mov	r3, #0
	ldrb	r1, [r10]	@ zero_extendqisi2
	str	r3, [r4, #4]
	strb	r1, [r4]
	ldm	r6, {r0, r2}
	add	r3, r0, #1
	and	r3, r3, r2
	mov	r0, r3
	str	r3, [r6]
	b	.L5
.L6:
	ldr	r2, [r4, #4]
	mov	r0, r5
	lsl	r2, r2, #20
	lsr	r2, r2, #20
	sub	r1, r2, #2
	sub	r7, r2, #4
	bl	netdev_alloc_skb
	subs	r8, r0, #0
	beq	.L35
	mov	r1, #2
	bl	skb_reserve
	mov	r1, r7
	mov	r0, r8
	bl	skb_put
	ldr	r3, [r9]
	ldr	r1, [r6]
	mov	r2, r7
	ldr	r1, [r3, r1, lsl #2]
	mov	r0, r8
	bl	skb_copy_to_linear_data
	mov	r1, r5
	mov	r0, r8
	bl	eth_type_trans
	mov	r3, r0
	mov	r0, r8
	str	r3, [r8]
	bl	netif_rx
	ldm	r5, {r2, r3}
	add	r3, r3, #1
	add	r2, r2, r7
	stm	r5, {r2, r3}
	b	.L11
.L35:
	ldr	r3, [r5, #8]
	ldrb	r2, [r10]	@ zero_extendqisi2
	add	r3, r3, #1
	str	r3, [r5, #8]
	str	r8, [r4, #4]
	strb	r2, [r4]
	ldr	r3, [r6]
	ldr	r2, [r6, #4]
	add	r3, r3, #1
	and	r3, r3, r2
	str	r3, [r6]
.L3:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L37:
	.align	2
.L36:
	.word	LE_C0_INEA
	.word	LE_C0_RINT
	.word	LE_R1_OWN
	.word	LE_R1_POK
	.word	LE_R1_ERR
	.word	LE_R1_BUF
	.word	LE_R1_CRC
	.word	LE_R1_OFL
	.word	LE_R1_FRA
	.word	LE_R1_EOP
	.size	lance_rx, .-lance_rx
	.comm	RX_RING_SIZE,4,4
	.comm	LE_R1_POK,1,1
	.comm	LE_R1_OWN,1,1
	.comm	LE_R1_OFL,1,1
	.comm	LE_R1_FRA,1,1
	.comm	LE_R1_ERR,1,1
	.comm	LE_R1_EOP,1,1
	.comm	LE_R1_CRC,1,1
	.comm	LE_R1_BUF,1,1
	.comm	LE_C0_RINT,4,4
	.comm	LE_C0_INEA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
