	.file	"extr_ftmac100.c_ftmac100_tx_complete_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ftmac100_tx_complete_packet, @function
ftmac100_tx_complete_packet:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdi], 0
	jne	.L2
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	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	r13, QWORD PTR 16[rdi]
	call	ftmac100_current_clean_txdes@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	ftmac100_txdes_owned_by_dma@PLT
	test	rax, rax
	jne	.L4
	mov	rdi, rbp
	call	ftmac100_txdes_get_skb@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	ftmac100_txdes_get_dma_addr@PLT
	mov	rdi, rbp
	mov	r14d, eax
	call	ftmac100_txdes_excessive_collision@PLT
	mov	edi, 1
	test	rax, rax
	je	.L13
.L5:
	call	unlikely@PLT
	test	rax, rax
	jne	.L14
	mov	rax, QWORD PTR [r12]
	add	DWORD PTR 4[r13], 1
	add	DWORD PTR 0[r13], eax
.L7:
	mov	r15d, DWORD PTR DMA_TO_DEVICE[rip]
	mov	rdi, r12
	call	skb_headlen@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	esi, r14d
	mov	ecx, r15d
	mov	edx, eax
	call	dma_unmap_single@PLT
	mov	rdi, r12
	call	dev_kfree_skb@PLT
	mov	rdi, rbp
	lea	rbp, 8[rbx]
	call	ftmac100_txdes_reset@PLT
	mov	rdi, rbx
	call	ftmac100_tx_clean_pointer_advance@PLT
	mov	rdi, rbp
	call	spin_lock@PLT
	sub	QWORD PTR [rbx], 1
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	rdi, r13
	call	netif_wake_queue@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	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
.L4:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L14:
	.cfi_restore_state
	add	DWORD PTR 8[r13], 1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbp
	call	ftmac100_txdes_late_collision@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ftmac100_tx_complete_packet, .-ftmac100_tx_complete_packet
	.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_ftmac100.c_ftmac100_tx_complete_packet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ftmac100_tx_complete_packet, %function
ftmac100_tx_complete_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L2
	mov	r0, #0
	bx	lr
.L2:
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r7, [r0, #12]
	bl	ftmac100_current_clean_txdes
	mov	r5, r0
	bl	ftmac100_txdes_owned_by_dma
	cmp	r0, #0
	bne	.L4
	mov	r0, r5
	bl	ftmac100_txdes_get_skb
	mov	r6, r0
	mov	r0, r5
	bl	ftmac100_txdes_get_dma_addr
	mov	r8, r0
	mov	r0, r5
	bl	ftmac100_txdes_excessive_collision
	cmp	r0, #0
	movne	r0, #1
	beq	.L13
.L5:
	bl	unlikely
	cmp	r0, #0
	ldreq	r1, [r6]
	ldrne	r3, [r7, #8]
	ldreq	r2, [r7, #4]
	ldreq	r3, [r7]
	addne	r3, r3, #1
	addeq	r3, r3, r1
	addeq	r2, r2, #1
	strne	r3, [r7, #8]
	streq	r2, [r7, #4]
	streq	r3, [r7]
	mov	r0, r6
	ldr	r9, [r4, #8]
	bl	skb_headlen
	ldr	r3, .L14
	mov	r2, r0
	mov	r1, r8
	ldr	r3, [r3]
	mov	r0, r9
	bl	dma_unmap_single
	mov	r0, r6
	bl	dev_kfree_skb
	mov	r0, r5
	bl	ftmac100_txdes_reset
	add	r5, r4, #4
	mov	r0, r4
	bl	ftmac100_tx_clean_pointer_advance
	mov	r0, r5
	bl	spin_lock
	ldr	r3, [r4]
	mov	r0, r5
	sub	r3, r3, #1
	str	r3, [r4]
	bl	spin_unlock
	mov	r0, r7
	bl	netif_wake_queue
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	mov	r0, r5
	bl	ftmac100_txdes_late_collision
	subs	r0, r0, #0
	movne	r0, #1
	b	.L5
.L15:
	.align	2
.L14:
	.word	DMA_TO_DEVICE
	.size	ftmac100_tx_complete_packet, .-ftmac100_tx_complete_packet
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
