	.file	"extr_pcnet32.c_pcnet32_purge_rx_ring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcnet32_purge_rx_ring, @function
pcnet32_purge_rx_ring:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	netdev_priv@PLT
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L1
	mov	rbx, rax
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 32[rbx]
	lea	r12, 0[0+rbp*8]
	mov	QWORD PTR [rax+rbp*8], 0
	xor	eax, eax
	call	wmb@PLT
	mov	rax, QWORD PTR 16[rbx]
	add	rax, r12
	cmp	QWORD PTR [rax], 0
	je	.L3
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 24[rbx]
	mov	ecx, DWORD PTR PCI_DMA_FROMDEVICE[rip]
	mov	edx, DWORD PTR PKT_BUF_SIZE[rip]
	mov	rsi, QWORD PTR [rax+rbp*8]
	call	pci_unmap_single@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	rdi, QWORD PTR [rax+rbp*8]
	call	dev_kfree_skb_any@PLT
	mov	rax, QWORD PTR 16[rbx]
	add	rax, r12
.L3:
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR 8[rbx]
	add	rbp, 1
	mov	QWORD PTR [rax+r12], 0
	cmp	DWORD PTR [rbx], ebp
	jg	.L2
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pcnet32_purge_rx_ring, .-pcnet32_purge_rx_ring
	.comm	PKT_BUF_SIZE,4,4
	.comm	PCI_DMA_FROMDEVICE,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_pcnet32.c_pcnet32_purge_rx_ring.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcnet32_purge_rx_ring, %function
pcnet32_purge_rx_ring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	bl	netdev_priv
	ldr	r3, [r0]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r4, #0
	mov	r5, r0
	mov	r7, r4
	ldr	r9, .L12
	ldr	r8, .L12+4
.L2:
	ldr	r3, [r5, #16]
	lsl	r6, r4, #2
	str	r7, [r3, r4, lsl #2]
	bl	wmb
	ldr	r3, [r5, #8]
	ldr	r2, [r3, r4, lsl #2]
	add	r3, r3, r6
	cmp	r2, #0
	beq	.L3
	ldr	r2, [r5, #4]
	ldr	r3, [r9]
	ldr	r1, [r2, r4, lsl #2]
	ldr	r0, [r5, #12]
	ldr	r2, [r8]
	bl	pci_unmap_single
	ldr	r3, [r5, #8]
	ldr	r0, [r3, r4, lsl #2]
	bl	dev_kfree_skb_any
	ldr	r3, [r5, #8]
	add	r3, r3, r6
.L3:
	ldr	r1, [r5]
	ldr	r2, [r5, #4]
	add	r4, r4, #1
	cmp	r1, r4
	str	r7, [r3]
	str	r7, [r2, r6]
	bgt	.L2
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	PCI_DMA_FROMDEVICE
	.word	PKT_BUF_SIZE
	.size	pcnet32_purge_rx_ring, .-pcnet32_purge_rx_ring
	.comm	PKT_BUF_SIZE,4,4
	.comm	PCI_DMA_FROMDEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
