	.file	"extr_pcnet32.c_pcnet32_tx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Tx error status=%04x err_status=%08x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Tx FIFO error!\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"out-of-sync dirty pointer, %d vs. %d, full=%d\n"
	.text
	.p2align 4
	.type	pcnet32_tx, @function
pcnet32_tx:
.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
	mov	r14, rdi
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	netdev_priv@PLT
	mov	r15d, DWORD PTR [rax]
	mov	rbx, rax
	cmp	r15d, DWORD PTR 4[rax]
	je	.L2
	mov	DWORD PTR 12[rsp], 0
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	test	ah, 24
	je	.L9
	add	DWORD PTR 4[r14], 1
.L9:
	add	DWORD PTR [r14], 1
.L8:
	mov	rax, QWORD PTR 32[rbx]
	mov	rax, QWORD PTR [rax+rbp*8]
	test	rax, rax
	je	.L10
	mov	rdx, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR 40[rbx]
	mov	ecx, DWORD PTR PCI_DMA_TODEVICE[rip]
	mov	rsi, QWORD PTR [rdx+rbp*8]
	mov	edx, DWORD PTR [rax]
	call	pci_unmap_single@PLT
	mov	rax, QWORD PTR 32[rbx]
	mov	rdi, QWORD PTR [rax+rbp*8]
	call	dev_kfree_skb_any@PLT
	mov	rax, QWORD PTR 32[rbx]
	mov	QWORD PTR [rax+rbp*8], 0
	mov	rax, QWORD PTR 24[rbx]
	mov	QWORD PTR [rax+rbp*8], 0
.L10:
	add	r15d, 1
	cmp	DWORD PTR 4[rbx], r15d
	je	.L45
.L11:
	mov	ebp, DWORD PTR 8[rbx]
	mov	rax, QWORD PTR 48[rbx]
	and	ebp, r15d
	movsx	rbp, ebp
	lea	r12, 0[rbp+rbp*2]
	sal	r12, 3
	mov	edi, DWORD PTR 16[rax+r12]
	call	le16_to_cpu@PLT
	movsx	r13d, ax
	test	r13d, r13d
	js	.L3
	add	r12, QWORD PTR 48[rbx]
	mov	QWORD PTR 8[r12], 0
	test	ah, 64
	je	.L4
	mov	edi, DWORD PTR [r12]
	call	le32_to_cpu@PLT
	add	DWORD PTR 24[r14], 1
	mov	r8d, r13d
	mov	rdx, r14
	mov	esi, DWORD PTR tx_err[rip]
	mov	r12d, eax
	mov	r9d, eax
	mov	rdi, rbx
	xor	eax, eax
	lea	rcx, .LC0[rip]
	call	netif_err@PLT
	test	r12d, 67108864
	je	.L5
	add	DWORD PTR 20[r14], 1
.L5:
	test	r12d, 134217728
	je	.L6
	add	DWORD PTR 16[r14], 1
.L6:
	test	r12d, 268435456
	je	.L7
	add	DWORD PTR 12[r14], 1
.L7:
	and	r12d, 1073741824
	je	.L8
	add	DWORD PTR 8[r14], 1
	mov	esi, DWORD PTR tx_err[rip]
	mov	rdx, r14
	xor	eax, eax
	lea	rcx, .LC1[rip]
	mov	rdi, rbx
	call	netif_err@PLT
	mov	DWORD PTR 12[rsp], 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r9d, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR 12[rbx]
	mov	ebp, DWORD PTR 8[rbx]
	mov	eax, r9d
	sub	eax, r15d
	add	ebp, edx
	and	ebp, eax
	mov	rax, QWORD PTR 16[rbx]
	cmp	edx, ebp
	jnb	.L14
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	esi, DWORD PTR drv[rip]
	mov	r8d, r15d
	mov	rdx, r14
	push	rax
	.cfi_def_cfa_offset 96
	lea	rcx, .LC2[rip]
	mov	rdi, rbx
	xor	eax, eax
	call	netif_err@PLT
	mov	eax, DWORD PTR 12[rbx]
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	add	r15d, eax
	sub	ebp, eax
	mov	rax, QWORD PTR 16[rbx]
.L14:
	test	rax, rax
	jne	.L46
.L16:
	mov	DWORD PTR [rbx], r15d
	mov	eax, DWORD PTR 12[rsp]
	add	rsp, 24
	.cfi_remember_state
	.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
.L45:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbx]
	xor	ebp, ebp
	test	rax, rax
	je	.L16
.L46:
	mov	rdi, r14
	call	netif_queue_stopped@PLT
	test	rax, rax
	je	.L16
	mov	eax, DWORD PTR 12[rbx]
	sub	eax, 2
	cmp	eax, ebp
	jbe	.L16
	mov	QWORD PTR 16[rbx], 0
	mov	rdi, r14
	call	netif_wake_queue@PLT
	jmp	.L16
.L2:
	mov	DWORD PTR 12[rsp], 0
	mov	rax, QWORD PTR 16[rax]
	xor	ebp, ebp
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	pcnet32_tx, .-pcnet32_tx
	.comm	tx_err,4,4
	.comm	drv,4,4
	.comm	PCI_DMA_TODEVICE,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_pcnet32.c_pcnet32_tx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Tx error status=%04x err_status=%08x\012\000"
	.align	2
.LC1:
	.ascii	"Tx FIFO error!\012\000"
	.align	2
.LC2:
	.ascii	"out-of-sync dirty pointer, %d vs. %d, full=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcnet32_tx, %function
pcnet32_tx:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	mov	r6, r0
	bl	netdev_priv
	ldr	r3, [r0, #4]
	ldr	r7, [r0]
	mov	r4, r0
	cmp	r7, r3
	mov	r3, #0
	beq	.L2
	mov	r9, r3
	ldr	fp, .L47
	str	r3, [sp, #20]
	b	.L11
.L4:
	tst	r8, #6144
	ldrne	r3, [r6, #4]
	addne	r3, r3, #1
	strne	r3, [r6, #4]
	ldr	r3, [r6]
	add	r3, r3, #1
	str	r3, [r6]
.L8:
	ldr	r3, [r4, #24]
	ldr	r3, [r3, r5, lsl #2]
	cmp	r3, #0
	beq	.L10
	ldr	r2, [r3]
	ldr	r1, [r4, #20]
	ldr	r3, .L47+4
	ldr	r1, [r1, r5, lsl #2]
	ldr	r3, [r3]
	ldr	r0, [r4, #28]
	bl	pci_unmap_single
	ldr	r3, [r4, #24]
	ldr	r0, [r3, r5, lsl #2]
	bl	dev_kfree_skb_any
	ldr	r2, [r4, #24]
	ldr	r3, [r4, #20]
	str	r9, [r2, r5, lsl #2]
	str	r9, [r3, r5, lsl #2]
.L10:
	ldr	r3, [r4, #4]
	add	r7, r7, #1
	cmp	r3, r7
	beq	.L45
.L11:
	ldr	r5, [r4, #8]
	ldr	r3, [r4, #36]
	and	r5, r5, r7
	add	r10, r5, r5, lsl #1
	add	r3, r3, r10, lsl #2
	ldr	r0, [r3, #8]
	bl	le16_to_cpu
	lsl	r8, r0, #16
	asr	r8, r8, #16
	cmp	r8, #0
	lsl	r3, r10, #2
	blt	.L3
	ldr	r2, [r4, #36]
	tst	r8, #16384
	add	r3, r2, r3
	str	r9, [r3, #4]
	beq	.L4
	ldr	r0, [r2, r10, lsl #2]
	bl	le32_to_cpu
	ldr	r3, [r6, #24]
	mov	r10, r0
	ldr	r1, .L47+8
	str	r0, [sp, #4]
	str	r8, [sp]
	add	r3, r3, #1
	str	r3, [r6, #24]
	mov	r2, r6
	mov	r3, fp
	mov	r0, r4
	ldr	r1, [r1]
	bl	netif_err
	tst	r10, #67108864
	ldrne	r3, [r6, #20]
	addne	r3, r3, #1
	strne	r3, [r6, #20]
	tst	r10, #134217728
	ldrne	r3, [r6, #16]
	addne	r3, r3, #1
	strne	r3, [r6, #16]
	tst	r10, #268435456
	ldrne	r3, [r6, #12]
	addne	r3, r3, #1
	strne	r3, [r6, #12]
	tst	r10, #1073741824
	beq	.L8
	ldr	r2, [r6, #8]
	ldr	r1, .L47+8
	add	r2, r2, #1
	ldr	r3, .L47+12
	str	r2, [r6, #8]
	mov	r0, r4
	mov	r2, r6
	ldr	r1, [r1]
	bl	netif_err
	mov	r3, #1
	str	r3, [sp, #20]
	b	.L8
.L3:
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #4]
	ldr	r5, [r4, #8]
	sub	r1, r2, r7
	add	r5, r3, r5
	and	r5, r5, r1
	cmp	r3, r5
	ldr	r3, [r4, #16]
	bcs	.L14
	stmib	sp, {r2, r3}
	ldr	r1, .L47+16
	str	r7, [sp]
	mov	r2, r6
	ldr	r3, .L47+20
	mov	r0, r4
	ldr	r1, [r1]
	bl	netif_err
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #16]
	add	r7, r7, r2
	sub	r5, r5, r2
.L14:
	cmp	r3, #0
	bne	.L46
.L16:
	ldr	r0, [sp, #20]
	str	r7, [r4]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L45:
	ldr	r3, [r4, #16]
	mov	r5, #0
	cmp	r3, #0
	beq	.L16
.L46:
	mov	r0, r6
	bl	netif_queue_stopped
	cmp	r0, #0
	beq	.L16
	ldr	r3, [r4, #12]
	sub	r3, r3, #2
	cmp	r3, r5
	bls	.L16
	mov	r3, #0
	mov	r0, r6
	str	r3, [r4, #16]
	bl	netif_wake_queue
	b	.L16
.L2:
	mov	r5, r3
	str	r3, [sp, #20]
	ldr	r3, [r0, #16]
	b	.L14
.L48:
	.align	2
.L47:
	.word	.LC0
	.word	PCI_DMA_TODEVICE
	.word	tx_err
	.word	.LC1
	.word	drv
	.word	.LC2
	.size	pcnet32_tx, .-pcnet32_tx
	.comm	tx_err,4,4
	.comm	drv,4,4
	.comm	PCI_DMA_TODEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
