	.file	"extr_ftgmac100.c_ftgmac100_tx_complete_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ftgmac100_tx_complete_packet, @function
ftgmac100_tx_complete_packet:
.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
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r15d, DWORD PTR [rdi]
	mov	rax, QWORD PTR 16[rdi]
	mov	r14, QWORD PTR 24[rdi]
	lea	r13, [rax+r15*4]
	mov	edi, DWORD PTR 0[r13]
	call	le32_to_cpu@PLT
	mov	ebp, eax
	xor	eax, eax
	test	DWORD PTR FTGMAC100_TXDES0_TXDMA_OWN[rip], ebp
	jne	.L1
	mov	rax, QWORD PTR 8[rbx]
	mov	r8d, ebp
	mov	rcx, r13
	mov	esi, r15d
	mov	rdi, rbx
	mov	rdx, QWORD PTR [rax+r15*8]
	add	DWORD PTR 4[r14], 1
	mov	rax, QWORD PTR [rdx]
	add	DWORD PTR [r14], eax
	call	ftgmac100_free_tx_packet@PLT
	mov	edi, DWORD PTR 4[rbx]
	and	edi, ebp
	call	cpu_to_le32@PLT
	mov	esi, r15d
	mov	rdi, rbx
	mov	DWORD PTR 0[r13], eax
	call	ftgmac100_next_tx_pointer@PLT
	mov	DWORD PTR [rbx], eax
	mov	eax, 1
.L1:
	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
	.cfi_endproc
.LFE0:
	.size	ftgmac100_tx_complete_packet, .-ftgmac100_tx_complete_packet
	.comm	FTGMAC100_TXDES0_TXDMA_OWN,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_ftgmac100.c_ftgmac100_tx_complete_packet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ftgmac100_tx_complete_packet, %function
ftgmac100_tx_complete_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0]
	ldr	r7, [r0, #12]
	ldr	r8, [r0, #16]
	mov	r4, r0
	sub	sp, sp, #8
	ldr	r0, [r7, r6, lsl #2]
	bl	le32_to_cpu
	ldr	r2, .L6
	add	r3, r7, r6, lsl #2
	ldr	r2, [r2]
	tst	r0, r2
	movne	r0, #0
	bne	.L1
	mov	r5, r0
	ldr	r2, [r4, #8]
	ldr	r0, [r8]
	ldr	r2, [r2, r6, lsl #2]
	ldr	r1, [r8, #4]
	ldr	ip, [r2]
	add	r1, r1, #1
	add	r0, r0, ip
	stm	r8, {r0, r1}
	mov	r1, r6
	mov	r0, r4
	str	r5, [sp]
	bl	ftgmac100_free_tx_packet
	ldr	r0, [r4, #4]
	and	r0, r0, r5
	bl	cpu_to_le32
	mov	r1, r6
	str	r0, [r7, r6, lsl #2]
	mov	r0, r4
	bl	ftgmac100_next_tx_pointer
	mov	r3, r0
	mov	r0, #1
	str	r3, [r4]
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	FTGMAC100_TXDES0_TXDMA_OWN
	.size	ftgmac100_tx_complete_packet, .-ftgmac100_tx_complete_packet
	.comm	FTGMAC100_TXDES0_TXDMA_OWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
