	.file	"extr_dl2k.c_free_list.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	free_list, @function
free_list:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	netdev_priv@PLT
	mov	edx, DWORD PTR RX_RING_SIZE[rip]
	mov	rbp, rax
	test	edx, edx
	jle	.L7
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR 32[rax]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r13, rbx
	mov	r12, QWORD PTR [rax+rbx*8]
	sal	r13, 4
	lea	rdi, [rdx+r13]
	test	r12, r12
	je	.L5
	mov	r15d, DWORD PTR PCI_DMA_FROMDEVICE[rip]
	mov	r14d, DWORD PTR [r12]
	call	desc_to_dma@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	edx, r14d
	mov	esi, eax
	mov	ecx, r15d
	call	pci_unmap_single@PLT
	mov	rdi, r12
	call	dev_kfree_skb@PLT
	mov	rax, QWORD PTR 32[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	mov	QWORD PTR [rax+rbx*8], 0
	lea	rdi, [rdx+r13]
.L5:
	add	rbx, 1
	cmp	DWORD PTR RX_RING_SIZE[rip], ebx
	mov	QWORD PTR 8[rdi], 0
	mov	QWORD PTR [rdi], 0
	jg	.L6
.L7:
	mov	eax, DWORD PTR TX_RING_SIZE[rip]
	test	eax, eax
	jle	.L1
	mov	rax, QWORD PTR 0[rbp]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r12, QWORD PTR [rax+rbx*8]
	test	r12, r12
	je	.L8
	mov	rdi, rbx
	mov	r14d, DWORD PTR PCI_DMA_TODEVICE[rip]
	mov	r13d, DWORD PTR [r12]
	sal	rdi, 4
	add	rdi, QWORD PTR 8[rbp]
	call	desc_to_dma@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	ecx, r14d
	mov	edx, r13d
	mov	esi, eax
	call	pci_unmap_single@PLT
	mov	rdi, r12
	call	dev_kfree_skb@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR [rax+rbx*8], 0
.L8:
	add	rbx, 1
	cmp	DWORD PTR TX_RING_SIZE[rip], ebx
	jg	.L3
.L1:
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	free_list, .-free_list
	.comm	TX_RING_SIZE,4,4
	.comm	RX_RING_SIZE,4,4
	.comm	PCI_DMA_TODEVICE,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_dl2k.c_free_list.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_list, %function
free_list:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	bl	netdev_priv
	ldr	r9, .L21
	mov	r5, r0
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L7
	mov	r4, #0
	mov	r7, r4
	ldr	r2, [r0, #12]
	ldr	r3, [r0, #16]
	ldr	r10, .L21+4
.L6:
	ldr	r6, [r3, r4, lsl #2]
	lsl	r8, r4, #3
	cmp	r6, #0
	add	r0, r2, r4, lsl #3
	beq	.L5
	ldr	fp, [r5, #8]
	bl	desc_to_dma
	ldr	r3, [r10]
	mov	r1, r0
	ldr	r2, [r6]
	mov	r0, fp
	bl	pci_unmap_single
	mov	r0, r6
	bl	dev_kfree_skb
	ldr	r2, [r5, #12]
	ldr	r3, [r5, #16]
	add	r0, r2, r8
	str	r7, [r3, r4, lsl #2]
.L5:
	ldr	r1, [r9]
	add	r4, r4, #1
	cmp	r1, r4
	str	r7, [r0, #4]
	str	r7, [r0]
	bgt	.L6
.L7:
	ldr	r7, .L21+8
	ldr	r3, [r7]
	cmp	r3, #0
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r4, #0
	mov	r9, r4
	ldr	r3, [r5]
	ldr	r8, .L21+12
.L3:
	ldr	r6, [r3, r4, lsl #2]
	cmp	r6, #0
	beq	.L8
	ldmib	r5, {r0, r10}
	add	r0, r0, r4, lsl #3
	bl	desc_to_dma
	ldr	r3, [r8]
	mov	r1, r0
	ldr	r2, [r6]
	mov	r0, r10
	bl	pci_unmap_single
	mov	r0, r6
	bl	dev_kfree_skb
	ldr	r3, [r5]
	str	r9, [r3, r4, lsl #2]
.L8:
	ldr	r2, [r7]
	add	r4, r4, #1
	cmp	r2, r4
	bgt	.L3
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	.align	2
.L21:
	.word	RX_RING_SIZE
	.word	PCI_DMA_FROMDEVICE
	.word	TX_RING_SIZE
	.word	PCI_DMA_TODEVICE
	.size	free_list, .-free_list
	.comm	TX_RING_SIZE,4,4
	.comm	RX_RING_SIZE,4,4
	.comm	PCI_DMA_TODEVICE,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
