	.file	"extr_tg3.c_tg3_free_rings.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tg3_free_rings, @function
tg3_free_rings:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR [rdi]
	test	ecx, ecx
	jle	.L18
	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
	xor	r13d, r13d
	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
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12, r13
	mov	rdi, r14
	mov	r15d, r13d
	sal	r12, 4
	add	r12, QWORD PTR 8[r14]
	lea	rsi, 8[r12]
	call	tg3_rx_prodring_free@PLT
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	je	.L3
	mov	edx, DWORD PTR TG3_TX_RING_SIZE[rip]
	test	edx, edx
	jle	.L4
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR [r12]
.L6:
	mov	rbp, QWORD PTR [rax+rbx*8]
	test	rbp, rbp
	je	.L5
	mov	rdi, rbp
	call	skb_shinfo@PLT
	mov	rdi, r12
	mov	esi, ebx
	mov	rdx, QWORD PTR [rax]
	sub	rdx, 1
	call	tg3_tx_skb_unmap@PLT
	mov	rdi, rbp
	call	dev_consume_skb_any@PLT
.L5:
	add	rbx, 1
	cmp	DWORD PTR TG3_TX_RING_SIZE[rip], ebx
	jg	.L22
.L4:
	mov	edi, DWORD PTR 4[r14]
	mov	esi, r15d
	call	netdev_get_tx_queue@PLT
	mov	edi, eax
	call	netdev_tx_reset_queue@PLT
.L3:
	add	r13, 1
	cmp	DWORD PTR [r14], r13d
	jg	.L2
	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
.L18:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE0:
	.size	tg3_free_rings, .-tg3_free_rings
	.comm	TG3_TX_RING_SIZE,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_tg3.c_tg3_free_rings.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tg3_free_rings, %function
tg3_free_rings:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	bxle	lr
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r0
	mov	r7, #0
	ldr	r9, .L22
.L2:
	ldr	r4, [r8, #8]
	mov	r0, r8
	add	r6, r4, r7, lsl #3
	add	r1, r6, #4
	bl	tg3_rx_prodring_free
	ldr	r3, [r4, r7, lsl #3]
	cmp	r3, #0
	beq	.L3
	ldr	r2, [r9]
	cmp	r2, #0
	ble	.L4
	mov	r4, #0
	b	.L6
.L21:
	ldr	r3, [r6]
.L6:
	ldr	r5, [r3, r4, lsl #2]
	cmp	r5, #0
	beq	.L5
	mov	r0, r5
	bl	skb_shinfo
	ldr	r2, [r0]
	mov	r1, r4
	mov	r0, r6
	sub	r2, r2, #1
	bl	tg3_tx_skb_unmap
	mov	r0, r5
	bl	dev_consume_skb_any
.L5:
	ldr	r3, [r9]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L21
.L4:
	mov	r1, r7
	ldr	r0, [r8, #4]
	bl	netdev_get_tx_queue
	bl	netdev_tx_reset_queue
.L3:
	ldr	r3, [r8]
	add	r7, r7, #1
	cmp	r3, r7
	bgt	.L2
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	.align	2
.L22:
	.word	TG3_TX_RING_SIZE
	.size	tg3_free_rings, .-tg3_free_rings
	.comm	TG3_TX_RING_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
