	.file	"extr_atl1c_main.c_atl1c_clean_tx_ring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atl1c_clean_tx_ring, @function
atl1c_clean_tx_ring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sal	rbp, 5
	add	rbp, QWORD PTR 16[rdi]
	mov	r13, QWORD PTR 0[rbp]
	mov	r14, QWORD PTR 8[rdi]
	test	r13, r13
	je	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, r14
	lea	rsi, [rax+rbx*4]
	add	rbx, 1
	call	atl1c_clean_buffer@PLT
	cmp	r13, rbx
	jne	.L3
.L2:
	mov	edi, DWORD PTR [r12]
	call	netdev_reset_queue@PLT
	mov	edi, DWORD PTR 20[rbp]
	lea	edx, 0[0+r13*4]
	xor	esi, esi
	call	memset@PLT
	lea	rdi, 16[rbp]
	xor	esi, esi
	call	atomic_set@PLT
	mov	QWORD PTR 8[rbp], 0
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	atl1c_clean_tx_ring, .-atl1c_clean_tx_ring
	.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_tx_ring.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atl1c_clean_tx_ring, %function
atl1c_clean_tx_ring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0, #8]
	add	r1, r1, r1, lsl #2
	ldr	r6, [r5, r1, lsl #2]
	mov	r8, r0
	cmp	r6, #0
	ldr	r7, [r0, #4]
	add	r5, r5, r1, lsl #2
	beq	.L2
	mov	r4, #0
.L3:
	ldr	r1, [r5, #16]
	mov	r0, r7
	add	r1, r1, r4, lsl #2
	add	r4, r4, #1
	bl	atl1c_clean_buffer
	cmp	r6, r4
	bne	.L3
.L2:
	ldr	r0, [r8]
	bl	netdev_reset_queue
	mov	r1, #0
	lsl	r2, r6, #2
	ldr	r0, [r5, #12]
	bl	memset
	mov	r1, #0
	add	r0, r5, #8
	bl	atomic_set
	mov	r3, #0
	str	r3, [r5, #4]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	atl1c_clean_tx_ring, .-atl1c_clean_tx_ring
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
