	.file	"extr_xgmac.c_xgmac_free_tx_skbufs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xgmac_free_tx_skbufs, @function
xgmac_free_tx_skbufs:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	test	rax, rax
	je	.L15
	mov	edx, DWORD PTR DMA_TX_RING_SZ[rip]
	test	edx, edx
	jle	.L15
	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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	call	desc_get_buf_len@PLT
	mov	rdi, rbp
	mov	r14d, eax
	call	desc_get_buf_addr@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	ecx, r15d
	mov	edx, r14d
	mov	esi, eax
	call	dma_unmap_single@PLT
	mov	rdi, rbp
	call	desc_get_tx_ls@PLT
	test	rax, rax
	jne	.L19
.L6:
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR [rax+r13], 0
.L3:
	add	rbx, 1
	cmp	DWORD PTR DMA_TX_RING_SZ[rip], ebx
	jle	.L20
.L7:
	cmp	QWORD PTR [rax+rbx*8], 0
	lea	r13, 0[0+rbx*8]
	je	.L3
	mov	rax, QWORD PTR 16[r12]
	lea	rbp, [rax+rbx*4]
	mov	rdi, rbp
	call	desc_get_tx_fs@PLT
	mov	r15d, DWORD PTR DMA_TO_DEVICE[rip]
	mov	rdi, rbp
	test	rax, rax
	jne	.L21
	call	desc_get_buf_len@PLT
	mov	rdi, rbp
	mov	r14d, eax
	call	desc_get_buf_addr@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	ecx, r15d
	mov	edx, r14d
	mov	esi, eax
	call	dma_unmap_page@PLT
	mov	rdi, rbp
	call	desc_get_tx_ls@PLT
	test	rax, rax
	je	.L6
.L19:
	mov	rax, QWORD PTR [r12]
	mov	rdi, QWORD PTR [rax+r13]
	call	dev_kfree_skb_any@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE0:
	.size	xgmac_free_tx_skbufs, .-xgmac_free_tx_skbufs
	.comm	DMA_TX_RING_SZ,4,4
	.comm	DMA_TO_DEVICE,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_xgmac.c_xgmac_free_tx_skbufs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xgmac_free_tx_skbufs, %function
xgmac_free_tx_skbufs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, .L24
	sub	sp, sp, #12
	ldr	r2, [r8]
	cmp	r2, #0
	ble	.L1
	mov	r4, #0
	mov	r6, r0
	mov	r9, r4
	ldr	r10, .L24+4
	b	.L7
.L23:
	bl	desc_get_buf_addr
	mov	fp, r0
	mov	r0, r5
	bl	desc_get_buf_len
	ldr	r3, [sp, #4]
	mov	r2, r0
	mov	r1, fp
	mov	r0, r3
	ldr	r3, [r10]
	bl	dma_unmap_single
	mov	r0, r5
	bl	desc_get_tx_ls
	cmp	r0, #0
	bne	.L22
.L6:
	ldr	r3, [r6]
	str	r9, [r3, r7]
.L3:
	ldr	r2, [r8]
	add	r4, r4, #1
	cmp	r2, r4
	ble	.L1
.L7:
	ldr	r2, [r3, r4, lsl #2]
	lsl	r7, r4, #2
	cmp	r2, #0
	beq	.L3
	ldr	r5, [r6, #8]
	add	r5, r5, r7
	mov	r0, r5
	bl	desc_get_tx_fs
	ldr	r3, [r6, #4]
	cmp	r0, #0
	str	r3, [sp, #4]
	mov	r0, r5
	bne	.L23
	bl	desc_get_buf_addr
	mov	fp, r0
	mov	r0, r5
	bl	desc_get_buf_len
	ldr	r3, [sp, #4]
	mov	r2, r0
	mov	r1, fp
	mov	r0, r3
	ldr	r3, [r10]
	bl	dma_unmap_page
	mov	r0, r5
	bl	desc_get_tx_ls
	cmp	r0, #0
	beq	.L6
.L22:
	ldr	r3, [r6]
	ldr	r0, [r3, r7]
	bl	dev_kfree_skb_any
	b	.L6
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	.align	2
.L24:
	.word	DMA_TX_RING_SZ
	.word	DMA_TO_DEVICE
	.size	xgmac_free_tx_skbufs, .-xgmac_free_tx_skbufs
	.comm	DMA_TX_RING_SZ,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
