	.file	"extr_tlan.c_TLan_ResetLists.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TLAN: out of memory for received data.\n"
	.text
	.p2align 4
	.type	TLan_ResetLists, @function
TLan_ResetLists:
.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, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdi
	call	netdev_priv@PLT
	mov	QWORD PTR 56[rax], 0
	mov	r12, rax
	mov	QWORD PTR 48[rax], 0
	mov	eax, DWORD PTR TLAN_NUM_TX_LISTS[rip]
	test	eax, eax
	jle	.L2
	mov	rdi, QWORD PTR 40[r12]
	lea	ebx, -1[rax]
	mov	esi, DWORD PTR TLAN_CSTAT_UNUSED[rip]
	sal	rbx, 5
	lea	rdx, 16[rdi]
	lea	rcx, 48[rdi+rbx]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR [rdx]
	mov	DWORD PTR 8[rdx], esi
	add	rdx, 32
	mov	QWORD PTR 8[rax], 0
	mov	DWORD PTR 32[rax], 0
	mov	QWORD PTR 40[rax], 0
	mov	QWORD PTR 136[rax], 0
	mov	QWORD PTR 152[rax], 0
	cmp	rdx, rcx
	jne	.L3
	add	rbx, rdi
.L2:
	mov	QWORD PTR 32[r12], 0
	mov	eax, DWORD PTR TLAN_NUM_RX_LISTS[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR [r12], edx
	test	eax, eax
	jle	.L7
	xor	r15d, r15d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR NET_IP_ALIGN[rip]
	mov	rdi, rax
	add	r15, 1
	call	skb_reserve@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 16[r12]
	mov	ecx, DWORD PTR PCI_DMA_FROMDEVICE[rip]
	mov	edx, DWORD PTR TLAN_MAX_FRAME_SIZE[rip]
	mov	r13, QWORD PTR 16[rbx]
	call	pci_map_single@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	mov	QWORD PTR 8[r13], rax
	call	TLan_StoreSKB@PLT
	mov	rbp, QWORD PTR [rsp]
	mov	rax, QWORD PTR 16[rbx]
	add	rbp, r14
	cmp	DWORD PTR TLAN_NUM_RX_LISTS[rip], r15d
	mov	DWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 8[rbx], rbp
	jle	.L7
.L8:
	mov	rax, QWORD PTR 24[r12]
	mov	rbx, QWORD PTR 8[r12]
	mov	r14, r15
	mov	r13d, r15d
	sal	r14, 5
	mov	esi, DWORD PTR TLAN_MAX_FRAME_SIZE[rip]
	mov	edx, DWORD PTR TLAN_LAST_BUFFER[rip]
	add	rax, 32
	add	rbx, r14
	mov	rdi, QWORD PTR 8[rsp]
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR TLAN_CSTAT_READY[rip]
	or	edx, esi
	mov	DWORD PTR [rbx], esi
	add	esi, 7
	mov	DWORD PTR 24[rbx], eax
	mov	rax, QWORD PTR 16[rbx]
	mov	DWORD PTR [rax], edx
	call	netdev_alloc_skb@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L5
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	cmp	DWORD PTR TLAN_NUM_RX_LISTS[rip], r15d
	jle	.L7
	movsx	rbp, r15d
	sal	rbp, 5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 8[r12]
	xor	esi, esi
	add	r13d, 1
	add	rdi, rbp
	add	rbp, 32
	call	TLan_StoreSKB@PLT
	cmp	DWORD PTR TLAN_NUM_RX_LISTS[rip], r13d
	jg	.L9
.L7:
	mov	QWORD PTR 8[rbx], 0
	add	rsp, 24
	.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	TLan_ResetLists, .-TLan_ResetLists
	.comm	TLAN_NUM_TX_LISTS,4,4
	.comm	TLAN_NUM_RX_LISTS,4,4
	.comm	TLAN_MAX_FRAME_SIZE,4,4
	.comm	TLAN_LAST_BUFFER,4,4
	.comm	TLAN_CSTAT_UNUSED,4,4
	.comm	TLAN_CSTAT_READY,4,4
	.comm	PCI_DMA_FROMDEVICE,4,4
	.comm	NET_IP_ALIGN,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_tlan.c_TLan_ResetLists.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TLAN: out of memory for received data.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	TLan_ResetLists, %function
TLan_ResetLists:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	str	r0, [sp, #4]
	bl	netdev_priv
	mov	r2, #0
	ldr	r3, .L18
	mov	r9, r0
	ldr	lr, [r3]
	str	r2, [r0, #28]
	cmp	lr, r2
	str	r2, [r0, #24]
	ble	.L2
	ldr	r7, [r0, #20]
	ldr	r3, .L18+4
	mov	r1, r7
	ldr	r0, [r3]
	add	ip, r7, lr, lsl #4
.L3:
	ldr	r3, [r1, #8]
	str	r0, [r1, #12]
	add	r1, r1, #16
	cmp	ip, r1
	str	r2, [r3, #4]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	str	r2, [r3, #68]
	str	r2, [r3, #76]
	bne	.L3
	sub	lr, lr, #1
	add	r7, r7, lr, lsl #4
.L2:
	mov	r4, #0
	ldr	r10, .L18+8
	str	r4, [r9, #16]
	ldr	r3, [r10]
	cmp	r3, r4
	sub	r3, r3, #1
	str	r3, [r9]
	ble	.L7
	ldr	fp, .L18+12
	b	.L8
.L5:
	ldr	r3, .L18+16
	add	r4, r4, #1
	ldr	r1, [r3]
	bl	skb_reserve
	ldr	r3, .L18+20
	ldr	r2, .L18+24
	ldr	ip, [r7, #8]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r6]
	ldr	r0, [r9, #8]
	str	ip, [sp]
	bl	pci_map_single
	ldr	ip, [sp]
	mov	r1, r6
	str	r0, [ip, #4]
	mov	r0, r7
	bl	TLan_StoreSKB
	ldr	r2, [r10]
	ldr	r3, [r7, #8]
	cmp	r2, r4
	mov	r2, #0
	add	r5, r8, r5
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r5, [r7, #4]
	ble	.L7
.L8:
	ldr	r0, .L18+28
	ldr	r2, [r9, #4]
	ldr	r3, .L18+24
	ldr	r0, [r0]
	ldr	r1, [r3]
	add	r7, r2, r4, lsl #4
	ldr	r3, [fp]
	ldr	r5, [r9, #12]
	str	r0, [r7, #12]
	ldr	r0, [r7, #8]
	orr	r3, r3, r1
	str	r1, [r2, r4, lsl #4]
	str	r3, [r0]
	add	r1, r1, #7
	ldr	r0, [sp, #4]
	bl	netdev_alloc_skb
	subs	r6, r0, #0
	add	r8, r5, #16
	lsl	r5, r4, #4
	bne	.L5
	ldr	r0, .L18+32
	bl	pr_err
	ldr	r3, [r10]
	cmp	r3, r4
	movgt	r0, r5
	bgt	.L6
	b	.L7
.L17:
	lsl	r0, r4, #4
.L6:
	ldr	r3, [r9, #4]
	mov	r1, #0
	add	r0, r3, r0
	bl	TLan_StoreSKB
	ldr	r3, [r10]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L17
.L7:
	mov	r3, #0
	str	r3, [r7, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	TLAN_NUM_TX_LISTS
	.word	TLAN_CSTAT_UNUSED
	.word	TLAN_NUM_RX_LISTS
	.word	TLAN_LAST_BUFFER
	.word	NET_IP_ALIGN
	.word	PCI_DMA_FROMDEVICE
	.word	TLAN_MAX_FRAME_SIZE
	.word	TLAN_CSTAT_READY
	.word	.LC0
	.size	TLan_ResetLists, .-TLan_ResetLists
	.comm	TLAN_NUM_TX_LISTS,4,4
	.comm	TLAN_NUM_RX_LISTS,4,4
	.comm	TLAN_MAX_FRAME_SIZE,4,4
	.comm	TLAN_LAST_BUFFER,4,4
	.comm	TLAN_CSTAT_UNUSED,4,4
	.comm	TLAN_CSTAT_READY,4,4
	.comm	PCI_DMA_FROMDEVICE,4,4
	.comm	NET_IP_ALIGN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
