	.file	"extr_cassini.c_cas_clean_txd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cas_clean_txd, @function
cas_clean_txd:
.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
	mov	r14, rdi
	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
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movsx	rbx, esi
	lea	rax, 0[0+rbx*8]
	mov	rdi, rbx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR 24[r14]
	mov	QWORD PTR 40[rsp], rbx
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR 16[r14]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	QWORD PTR 32[rsp], rax
	call	TX_DESC_RINGN_SIZE@PLT
	lea	ebx, -1[rax]
	mov	DWORD PTR 28[rsp], eax
	mov	DWORD PTR 24[rsp], ebx
	test	eax, eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rbx, QWORD PTR 32[rsp]
	movsx	rax, ebp
	lea	rax, [rbx+rax*8]
	mov	r12, QWORD PTR [rax]
	test	r12, r12
	je	.L16
	mov	QWORD PTR [rax], 0
	xor	ebx, ebx
	lea	r13d, 1[rbp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	add	ebp, 2
	lea	r13d, 1[rbp]
.L6:
	add	ebx, 1
.L5:
	mov	rdi, r12
	call	skb_shinfo@PLT
	cmp	DWORD PTR [rax], ebx
	jl	.L17
	mov	eax, DWORD PTR 24[rsp]
	mov	rcx, QWORD PTR 8[rsp]
	and	eax, ebp
	cdqe
	lea	rdx, [rcx+rax*8]
	mov	edi, DWORD PTR 4[rdx]
	mov	QWORD PTR [rsp], rdx
	call	le64_to_cpu@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	r15d, eax
	mov	edi, DWORD PTR [rdx]
	call	le64_to_cpu@PLT
	mov	edi, DWORD PTR TX_DESC_BUFLEN[rip]
	mov	esi, eax
	call	CAS_VAL@PLT
	mov	edi, DWORD PTR 8[r14]
	mov	ecx, DWORD PTR PCI_DMA_TODEVICE[rip]
	mov	esi, r15d
	mov	edx, eax
	call	pci_unmap_page@PLT
	mov	rdi, r12
	call	skb_shinfo@PLT
	cmp	DWORD PTR [rax], ebx
	je	.L6
	mov	rdx, QWORD PTR [r14]
	mov	eax, DWORD PTR 24[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	and	eax, r13d
	mov	rdx, QWORD PTR [rdx+rcx]
	cdqe
	cmp	QWORD PTR [rdx+rax*8], 0
	jne	.L18
	mov	ebp, r13d
	add	r13d, 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r12
	mov	ebp, r13d
	call	dev_kfree_skb_any@PLT
.L4:
	cmp	DWORD PTR 28[rsp], ebp
	jg	.L2
.L8:
	mov	rax, QWORD PTR [r14]
	mov	rbx, QWORD PTR 40[rsp]
	xor	esi, esi
	mov	edx, DWORD PTR 28[rsp]
	mov	rdi, QWORD PTR [rax+rbx*8]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	sal	edx, 3
	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	memset@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	add	ebp, 1
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	cas_clean_txd, .-cas_clean_txd
	.comm	TX_DESC_BUFLEN,4,4
	.comm	PCI_DMA_TODEVICE,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_cassini.c_cas_clean_txd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cas_clean_txd, %function
cas_clean_txd:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #8]
	ldr	r2, [r0, #12]
	ldr	r3, [r3, r1, lsl #2]
	sub	sp, sp, #28
	mov	fp, r0
	mov	r0, r1
	mov	r4, r1
	str	r3, [sp, #16]
	ldr	r10, [r2, r1, lsl #2]
	str	r1, [sp, #20]
	bl	TX_DESC_RINGN_SIZE
	subs	r3, r0, #0
	str	r3, [sp, #12]
	lsl	r3, r4, #2
	movgt	r5, #0
	str	r3, [sp, #8]
	ble	.L8
.L2:
	ldr	r3, [sp, #16]
	ldr	r7, [r3, r5, lsl #2]
	cmp	r7, #0
	addeq	r5, r5, #1
	beq	.L4
	mov	r4, #0
	ldr	r3, [sp, #16]
	add	r8, r5, #1
	str	r4, [r3, r5, lsl #2]
	ldr	r3, [sp, #12]
	sub	r9, r3, #1
	b	.L5
.L7:
	ldr	r0, [r2, #4]
	bl	le64_to_cpu
	mov	r2, r0
	ldr	r3, .L14
	ldr	r0, [r10, r6, lsl #3]
	ldr	r3, [r3]
	mov	r6, r2
	str	r3, [sp, #4]
	bl	le64_to_cpu
	ldr	r3, [sp, #4]
	mov	r1, r0
	mov	r0, r3
	bl	CAS_VAL
	ldr	r3, .L14+4
	mov	r2, r0
	ldr	r3, [r3]
	mov	r1, r6
	ldr	r0, [fp, #4]
	bl	pci_unmap_page
	mov	r0, r7
	bl	skb_shinfo
	ldr	r3, [r0]
	and	r2, r9, r8
	cmp	r3, r4
	beq	.L6
	ldr	r3, [fp]
	ldr	r1, [sp, #8]
	add	r5, r5, #2
	ldr	r3, [r3, r1]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	moveq	r5, r8
	addne	r8, r5, #1
	addeq	r8, r8, #1
.L6:
	add	r4, r4, #1
.L5:
	mov	r0, r7
	bl	skb_shinfo
	ldr	r3, [r0]
	and	r6, r9, r5
	cmp	r3, r4
	add	r2, r10, r6, lsl #3
	bge	.L7
	mov	r0, r7
	bl	dev_kfree_skb_any
	mov	r5, r8
.L4:
	ldr	r3, [sp, #12]
	cmp	r3, r5
	bgt	.L2
.L8:
	ldr	r1, [sp, #20]
	ldr	r3, [fp]
	ldr	r2, [sp, #12]
	ldr	r0, [r3, r1, lsl #2]
	mov	r1, #0
	lsl	r2, r2, #2
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	memset
.L15:
	.align	2
.L14:
	.word	TX_DESC_BUFLEN
	.word	PCI_DMA_TODEVICE
	.size	cas_clean_txd, .-cas_clean_txd
	.comm	TX_DESC_BUFLEN,4,4
	.comm	PCI_DMA_TODEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
