	.file	"extr_atl1c_main.c_atl1c_clean_rx_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Multi rfd not support yet!\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"wrong packet! rrs word3 is %x\n"
	.text
	.p2align 4
	.type	atl1c_clean_rx_irq, @function
atl1c_clean_rx_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 16[rdi]
	mov	r14, QWORD PTR 24[rdi]
	mov	DWORD PTR 12[rsp], edx
	mov	QWORD PTR 16[rsp], rax
	lea	rax, 8[rdi]
	mov	QWORD PTR [rsp], rax
	mov	DWORD PTR 24[rsp], 0
	cmp	edx, DWORD PTR [rsi]
	jg	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	mov	edx, r12d
	mov	rsi, rbx
	call	atl1c_clean_rrd@PLT
	mov	edi, DWORD PTR [rbx]
	mov	eax, DWORD PTR RRS_RX_ERR_SUM[rip]
	or	eax, DWORD PTR RRS_802_3_LEN_ERR[rip]
	test	eax, edi
	jne	.L35
	mov	ecx, DWORD PTR RRS_PKT_SIZE_SHIFT[rip]
	sar	edi, cl
	and	edi, DWORD PTR RRS_PKT_SIZE_MASK[rip]
	call	le16_to_cpu@PLT
	xor	edi, edi
	cmp	r12d, 1
	sete	dil
	mov	DWORD PTR 8[rsp], eax
	call	likely@PLT
	test	rax, rax
	je	.L11
	mov	ecx, DWORD PTR RRS_RX_RFD_INDEX_SHIFT[rip]
	mov	r13d, DWORD PTR 4[rbx]
	mov	rdi, r14
	sar	r13d, cl
	and	r13d, DWORD PTR RRS_RX_RFD_INDEX_MASK[rip]
	mov	ecx, DWORD PTR PCI_DMA_FROMDEVICE[rip]
	movsx	r13, r13d
	sal	r13, 4
	add	r13, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR 8[r13]
	mov	esi, DWORD PTR 12[r13]
	call	pci_unmap_single@PLT
	mov	r13, QWORD PTR 0[r13]
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r12d
	mov	rsi, rbx
	call	atl1c_clean_rfd@PLT
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, r13
	sub	esi, DWORD PTR ETH_FCS_LEN[rip]
	call	skb_put@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, r13
	call	eth_type_trans@PLT
	mov	rdx, rbx
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR 0[r13], eax
	call	atl1c_rx_checksum@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR RRS_VLAN_INS[rip], eax
	jne	.L36
.L13:
	mov	rdi, r13
	call	netif_receive_skb@PLT
	mov	eax, DWORD PTR [r15]
	add	DWORD PTR 24[rsp], 1
	add	eax, 1
	mov	DWORD PTR [r15], eax
.L10:
	cmp	eax, DWORD PTR 12[rsp]
	jge	.L4
.L2:
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rbp
	call	ATL1C_RRD_DESC@PLT
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	call	RRS_RXD_IS_VALID@PLT
	mov	edi, eax
	call	likely@PLT
	test	rax, rax
	je	.L4
	mov	ecx, DWORD PTR RRS_RX_RFD_CNT_SHIFT[rip]
	mov	r12d, DWORD PTR 4[rbx]
	xor	edi, edi
	sar	r12d, cl
	and	r12d, DWORD PTR RRS_RX_RFD_CNT_MASK[rip]
	cmp	r12d, 1
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L6
	mov	rdi, rbp
	call	netif_msg_rx_err@PLT
	test	rax, rax
	je	.L6
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	xor	eax, eax
	call	dev_warn@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r12d
	mov	rsi, rbx
	call	atl1c_clean_rfd@PLT
	mov	rdi, rbp
	call	netif_msg_rx_err@PLT
	test	rax, rax
	jne	.L37
	mov	eax, DWORD PTR [r15]
	cmp	eax, DWORD PTR 12[rsp]
	jl	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 24[rsp]
	test	eax, eax
	jne	.L38
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	mov	ebx, DWORD PTR 28[rsp]
	mov	esi, ebx
	call	AT_TAG_TO_VLAN@PLT
	mov	edi, ebx
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR ETH_P_8021Q[rip]
	mov	ebx, eax
	mov	DWORD PTR 28[rsp], eax
	call	htons@PLT
	mov	edx, ebx
	mov	rdi, r13
	mov	esi, eax
	call	__vlan_hwaccel_put_tag@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L37:
	mov	edx, DWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	xor	eax, eax
	call	dev_warn@PLT
	mov	eax, DWORD PTR [r15]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L38:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	atl1c_alloc_rx_buffer@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	call	netif_msg_rx_err@PLT
	test	rax, rax
	je	.L4
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	xor	eax, eax
	call	dev_warn@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	atl1c_clean_rx_irq, .-atl1c_clean_rx_irq
	.comm	RRS_VLAN_INS,4,4
	.comm	RRS_RX_RFD_INDEX_SHIFT,4,4
	.comm	RRS_RX_RFD_INDEX_MASK,4,4
	.comm	RRS_RX_RFD_CNT_SHIFT,4,4
	.comm	RRS_RX_RFD_CNT_MASK,4,4
	.comm	RRS_RX_ERR_SUM,4,4
	.comm	RRS_PKT_SIZE_SHIFT,4,4
	.comm	RRS_PKT_SIZE_MASK,4,4
	.comm	RRS_802_3_LEN_ERR,4,4
	.comm	PCI_DMA_FROMDEVICE,4,4
	.comm	ETH_P_8021Q,4,4
	.comm	ETH_FCS_LEN,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_atl1c_main.c_atl1c_clean_rx_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Multi rfd not support yet!\012\000"
	.align	2
.LC1:
	.ascii	"wrong packet! rrs word3 is %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atl1c_clean_rx_irq, %function
atl1c_clean_rx_irq:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r1]
	sub	sp, sp, #36
	cmp	r2, r3
	ldr	r3, [r0, #8]
	mov	r9, r1
	ldr	r1, [r0, #12]
	str	r3, [sp, #24]
	add	r3, r0, #4
	str	r2, [sp, #16]
	str	r1, [sp, #20]
	str	r3, [sp, #12]
	ble	.L1
	mov	r3, #0
	mov	r6, r0
	ldr	fp, .L34
	ldr	r10, .L34+4
	str	r3, [sp, #4]
	b	.L2
.L6:
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	bl	atl1c_clean_rrd
	ldr	r3, .L34+8
	ldr	r1, [r10]
	ldr	r3, [r3]
	ldr	r2, [r4]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L31
	ldr	r1, .L34+12
	ldr	r3, .L34+16
	ldr	r0, [r1]
	ldr	r3, [r3]
	and	r0, r3, r2, asr r0
	bl	le16_to_cpu
	mov	r8, r0
	sub	r0, r5, #1
	clz	r0, r0
	lsr	r0, r0, #5
	str	r8, [sp, #8]
	bl	likely
	cmp	r0, #0
	beq	.L11
	ldr	r2, .L34+20
	ldr	r3, .L34+24
	ldr	r7, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4, #4]
	ldr	r8, [r6, #4]
	and	r7, r7, r2, asr r3
	ldr	r0, .L34+28
	add	r7, r7, r7, lsl #1
	add	r3, r8, r7, lsl #2
	ldr	r2, [r3, #4]
	ldr	r1, [r3, #8]
	ldr	r3, [r0]
	ldr	r0, [sp, #20]
	bl	pci_unmap_single
	mov	r2, r5
	mov	r1, r4
	ldr	r0, [sp, #12]
	ldr	r5, [r8, r7, lsl #2]
	bl	atl1c_clean_rfd
	ldr	r3, .L34+32
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r3, [sp, #8]
	sub	r1, r3, r1
	bl	skb_put
	ldr	r1, [sp, #24]
	mov	r0, r5
	bl	eth_type_trans
	mov	r2, r4
	str	r0, [r5]
	mov	r1, r5
	mov	r0, r6
	bl	atl1c_rx_checksum
	ldr	r3, .L34+36
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L32
.L13:
	mov	r0, r5
	bl	netif_receive_skb
	ldr	r3, [r9]
	ldr	r2, [sp, #4]
	add	r3, r3, #1
	add	r2, r2, #1
	str	r2, [sp, #4]
	str	r3, [r9]
.L10:
	ldr	r2, [sp, #16]
	cmp	r3, r2
	bge	.L4
.L2:
	ldr	r1, [r6]
	mov	r0, r6
	bl	ATL1C_RRD_DESC
	mov	r4, r0
	ldr	r0, [r0]
	bl	RRS_RXD_IS_VALID
	bl	likely
	cmp	r0, #0
	beq	.L4
	ldr	r1, .L34+40
	ldr	r2, [r4, #4]
	ldr	r3, [fp]
	ldr	r5, [r1]
	and	r5, r5, r2, asr r3
	subs	r0, r5, #1
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L6
	mov	r0, r6
	bl	netif_msg_rx_err
	cmp	r0, #0
	beq	.L6
	ldr	r1, .L34+44
	ldr	r0, [sp, #20]
	bl	dev_warn
	b	.L6
.L31:
	mov	r2, r5
	mov	r1, r4
	ldr	r0, [sp, #12]
	bl	atl1c_clean_rfd
	mov	r0, r6
	bl	netif_msg_rx_err
	cmp	r0, #0
	ldreq	r3, [r9]
	beq	.L10
	ldr	r2, [r4]
	ldr	r1, .L34+48
	ldr	r0, [sp, #20]
	bl	dev_warn
	ldr	r3, [r9]
	ldr	r2, [sp, #16]
	cmp	r3, r2
	blt	.L2
.L4:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	bne	.L33
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L32:
	ldr	r0, [r4, #8]
	ldr	r4, [sp, #28]
	mov	r1, r4
	bl	AT_TAG_TO_VLAN
	mov	r0, r4
	bl	le16_to_cpu
	ldr	r3, .L34+52
	mov	r4, r0
	str	r0, [sp, #28]
	ldr	r0, [r3]
	bl	htons
	mov	r2, r4
	mov	r1, r0
	mov	r0, r5
	bl	__vlan_hwaccel_put_tag
	b	.L13
.L33:
	mov	r0, r6
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	atl1c_alloc_rx_buffer
.L11:
	mov	r0, r6
	bl	netif_msg_rx_err
	cmp	r0, #0
	beq	.L4
	ldr	r0, [sp, #20]
	ldr	r1, .L34+44
	bl	dev_warn
	b	.L4
.L35:
	.align	2
.L34:
	.word	RRS_RX_RFD_CNT_SHIFT
	.word	RRS_802_3_LEN_ERR
	.word	RRS_RX_ERR_SUM
	.word	RRS_PKT_SIZE_SHIFT
	.word	RRS_PKT_SIZE_MASK
	.word	RRS_RX_RFD_INDEX_MASK
	.word	RRS_RX_RFD_INDEX_SHIFT
	.word	PCI_DMA_FROMDEVICE
	.word	ETH_FCS_LEN
	.word	RRS_VLAN_INS
	.word	RRS_RX_RFD_CNT_MASK
	.word	.LC0
	.word	.LC1
	.word	ETH_P_8021Q
	.size	atl1c_clean_rx_irq, .-atl1c_clean_rx_irq
	.comm	RRS_VLAN_INS,4,4
	.comm	RRS_RX_RFD_INDEX_SHIFT,4,4
	.comm	RRS_RX_RFD_INDEX_MASK,4,4
	.comm	RRS_RX_RFD_CNT_SHIFT,4,4
	.comm	RRS_RX_RFD_CNT_MASK,4,4
	.comm	RRS_RX_ERR_SUM,4,4
	.comm	RRS_PKT_SIZE_SHIFT,4,4
	.comm	RRS_PKT_SIZE_MASK,4,4
	.comm	RRS_802_3_LEN_ERR,4,4
	.comm	PCI_DMA_FROMDEVICE,4,4
	.comm	ETH_P_8021Q,4,4
	.comm	ETH_FCS_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
