	.file	"extr_netdev.c_e1000_clean_tx_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	e1000_clean_tx_irq, @function
e1000_clean_tx_irq:
.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
	mov	r13, rdi
	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
	xor	ebx, ebx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 24[rdi]
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR 24[rsp], rax
	mov	eax, DWORD PTR [rdi]
	mov	r14, rax
	sal	rax, 5
	add	rax, QWORD PTR 16[rdi]
	mov	ebp, DWORD PTR [rax]
	push	QWORD PTR 24[rdi]
	.cfi_def_cfa_offset 104
	push	QWORD PTR 16[rdi]
	.cfi_def_cfa_offset 112
	push	QWORD PTR 8[rdi]
	.cfi_def_cfa_offset 120
	push	QWORD PTR [rdi]
	.cfi_def_cfa_offset 128
	mov	edi, ebp
	call	E1000_TX_DESC@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 12[rsp], 0
	mov	DWORD PTR 8[rsp], 0
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR E1000_TXD_STAT_DD[rip]
	mov	r15d, DWORD PTR [rax]
	call	cpu_to_le32@PLT
	test	r15d, eax
	je	.L7
	cmp	DWORD PTR 4[r13], ebx
	jbe	.L7
	xor	eax, eax
	call	rmb@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	push	QWORD PTR 24[r13]
	.cfi_def_cfa_offset 104
	mov	edi, r14d
	lea	r12d, 1[r14]
	add	ebx, 1
	push	QWORD PTR 16[r13]
	.cfi_def_cfa_offset 112
	push	QWORD PTR 8[r13]
	.cfi_def_cfa_offset 120
	push	QWORD PTR 0[r13]
	.cfi_def_cfa_offset 128
	call	E1000_TX_DESC@PLT
	mov	esi, r14d
	add	rsp, 32
	.cfi_def_cfa_offset 96
	sal	rsi, 5
	mov	r15, rax
	add	rsi, QWORD PTR 16[r13]
	cmp	ebp, r14d
	je	.L36
	mov	rdi, r13
	mov	r14d, 0
	call	e1000_put_txbuf@PLT
	cmp	DWORD PTR 4[r13], r12d
	mov	DWORD PTR [r15], 0
	cmovne	r14d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdi, r13
	mov	edx, DWORD PTR 24[rsi]
	mov	ecx, DWORD PTR 16[rsi]
	add	DWORD PTR 12[rsp], edx
	add	DWORD PTR 8[rsp], ecx
	call	e1000_put_txbuf@PLT
	cmp	DWORD PTR 4[r13], r12d
	mov	eax, 0
	mov	DWORD PTR [r15], 0
	cmove	r12d, eax
	cmp	DWORD PTR 8[r13], r12d
	je	.L16
	mov	eax, r12d
	mov	r14d, r12d
	sal	rax, 5
	add	rax, QWORD PTR 16[r13]
	mov	ebp, DWORD PTR [rax]
	push	QWORD PTR 24[r13]
	.cfi_def_cfa_offset 104
	push	QWORD PTR 16[r13]
	.cfi_def_cfa_offset 112
	push	QWORD PTR 8[r13]
	.cfi_def_cfa_offset 120
	mov	edi, ebp
	push	QWORD PTR 0[r13]
	.cfi_def_cfa_offset 128
	call	E1000_TX_DESC@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r14d, r12d
.L7:
	mov	DWORD PTR 0[r13], r14d
	test	ebx, ebx
	jne	.L37
.L10:
	mov	rax, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	je	.L12
	mov	DWORD PTR [rax], 0
	mov	ecx, r14d
	mov	rax, QWORD PTR 16[r13]
	sal	rcx, 5
	add	rax, rcx
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L38
.L13:
	mov	rax, QWORD PTR 16[rsp]
	mov	DWORD PTR 8[rax], 0
.L12:
	mov	rax, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 12[rsp]
	add	DWORD PTR 12[rax], edx
	add	DWORD PTR 16[rax], ecx
	mov	rax, QWORD PTR 24[rsp]
	add	DWORD PTR [rax], edx
	add	DWORD PTR 4[rax], ecx
	xor	eax, eax
	cmp	DWORD PTR 4[r13], ebx
	seta	al
	add	rsp, 40
	.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
.L37:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rsp]
	call	netif_carrier_ok@PLT
	test	rax, rax
	je	.L10
	mov	rdi, r13
	call	e1000_desc_unused@PLT
	cmp	rax, 31
	jle	.L10
	xor	eax, eax
	call	smp_mb@PLT
	mov	rdi, QWORD PTR 24[rsp]
	call	netif_queue_stopped@PLT
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR __E1000_DOWN[rip]
	lea	rsi, 28[rax]
	call	test_bit@PLT
	test	eax, eax
	jne	.L10
	mov	rdi, QWORD PTR 24[rsp]
	call	netif_wake_queue@PLT
	mov	rax, QWORD PTR 16[rsp]
	add	DWORD PTR 24[rax], 1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rdx, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR jiffies[rip]
	mov	esi, DWORD PTR 4[rdx]
	imul	esi, DWORD PTR HZ[rip]
	movsx	rsi, esi
	add	rsi, rax
	call	time_after@PLT
	test	rax, rax
	je	.L13
	mov	edi, DWORD PTR STATUS[rip]
	call	er32@PLT
	test	DWORD PTR E1000_STATUS_TXOFF[rip], eax
	jne	.L13
	mov	rax, QWORD PTR 16[rsp]
	lea	rdi, 20[rax]
	call	schedule_work@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	e1000_clean_tx_irq, .-e1000_clean_tx_irq
	.comm	jiffies,4,4
	.comm	__E1000_DOWN,4,4
	.comm	TX_WAKE_THRESHOLD,8,8
	.comm	STATUS,4,4
	.comm	HZ,4,4
	.comm	E1000_TXD_STAT_DD,4,4
	.comm	E1000_STATUS_TXOFF,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_netdev.c_e1000_clean_tx_irq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_clean_tx_irq, %function
e1000_clean_tx_irq:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #12]
	ldr	ip, [r0, #16]
	ldr	r4, [r0]
	sub	sp, sp, #20
	ldr	r7, [r3, r4, lsl #4]
	ldr	r3, [ip, #36]
	mov	r5, r0
	str	r3, [sp, #12]
	ldm	r0, {r0, r1, r2, r3}
	str	r7, [sp, #4]
	str	ip, [sp]
	mov	r9, #0
	str	ip, [sp, #8]
	bl	E1000_TX_DESC
	mov	r10, r9
	mov	r3, r0
	mov	r6, r9
	mov	r8, r9
.L2:
	ldr	r2, .L43
	ldr	fp, [r3]
	ldr	r0, [r2]
	bl	cpu_to_le32
	tst	fp, r0
	beq	.L7
	ldr	r3, [r5, #4]
	cmp	r3, r6
	bls	.L7
	bl	rmb
.L6:
	ldr	r3, [r5, #16]
	add	r6, r6, #1
	stm	sp, {r3, r4}
	ldm	r5, {r0, r1, r2, r3}
	bl	E1000_TX_DESC
	ldr	r1, [r5, #12]
	cmp	r7, r4
	add	r1, r1, r4, lsl #4
	mov	fp, r0
	add	r4, r4, #1
	beq	.L40
	mov	r0, r5
	bl	e1000_put_txbuf
	ldr	r3, [r5, #4]
	str	r8, [fp]
	cmp	r3, r4
	moveq	r4, #0
	b	.L6
.L40:
	ldr	r2, [r1, #12]
	ldr	r3, [r1, #8]
	mov	r0, r5
	add	r9, r9, r2
	add	r10, r10, r3
	bl	e1000_put_txbuf
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #8]
	cmp	r3, r4
	moveq	r4, #0
	cmp	r2, r4
	str	r8, [fp]
	beq	.L16
	ldm	r5, {r0, r1, r2, r3}
	ldr	ip, [r5, #16]
	ldr	r7, [r3, r4, lsl #4]
	str	ip, [sp]
	str	r7, [sp, #4]
	bl	E1000_TX_DESC
	mov	r3, r0
	b	.L2
.L16:
	mov	r4, r2
.L7:
	cmp	r6, #0
	str	r4, [r5]
	bne	.L41
.L10:
	ldr	r1, [sp, #8]
	ldr	r3, [r1]
	cmp	r3, #0
	beq	.L12
	mov	r2, #0
	ldr	r3, [r5, #12]
	str	r2, [r1]
	add	r4, r3, r4, lsl #4
	ldr	r3, [r4, #4]
	cmp	r3, r2
	bne	.L42
.L13:
	mov	r3, #0
	ldr	r2, [sp, #8]
	str	r3, [r2, #8]
.L12:
	ldr	r0, [r5, #4]
	ldr	ip, [sp, #8]
	cmp	r0, r6
	movls	r0, #0
	movhi	r0, #1
	ldr	lr, [sp, #12]
	ldr	r1, [ip, #12]
	ldr	r3, [lr]
	ldr	r2, [ip, #16]
	add	r1, r1, r10
	add	r10, r3, r10
	ldr	r3, [lr, #4]
	add	r2, r2, r9
	add	r9, r3, r9
	str	r1, [ip, #12]
	str	r2, [ip, #16]
	str	r10, [lr]
	str	r9, [lr, #4]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L41:
	ldr	r0, [sp, #12]
	bl	netif_carrier_ok
	cmp	r0, #0
	beq	.L10
	mov	r0, r5
	bl	e1000_desc_unused
	cmp	r0, #31
	ble	.L10
	bl	smp_mb
	ldr	r0, [sp, #12]
	bl	netif_queue_stopped
	cmp	r0, #0
	beq	.L10
	ldr	r3, .L43+4
	ldr	r2, [sp, #8]
	ldr	r0, [r3]
	add	r1, r2, #28
	bl	test_bit
	cmp	r0, #0
	bne	.L10
	ldr	r0, [sp, #12]
	bl	netif_wake_queue
	ldr	r2, [sp, #8]
	ldr	r3, [r2, #24]
	add	r3, r3, #1
	str	r3, [r2, #24]
	b	.L10
.L42:
	ldr	r2, .L43+8
	ldr	r1, [r1, #4]
	ldr	r0, [r2]
	ldr	r2, .L43+12
	mla	r1, r0, r1, r3
	ldr	r0, [r2]
	bl	time_after
	cmp	r0, #0
	beq	.L13
	ldr	r3, .L43+16
	ldr	r0, [r3]
	bl	er32
	ldr	r3, .L43+20
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L13
	ldr	r3, [sp, #8]
	add	r0, r3, #20
	bl	schedule_work
	b	.L12
.L44:
	.align	2
.L43:
	.word	E1000_TXD_STAT_DD
	.word	__E1000_DOWN
	.word	HZ
	.word	jiffies
	.word	STATUS
	.word	E1000_STATUS_TXOFF
	.size	e1000_clean_tx_irq, .-e1000_clean_tx_irq
	.comm	jiffies,4,4
	.comm	__E1000_DOWN,4,4
	.comm	TX_WAKE_THRESHOLD,4,4
	.comm	STATUS,4,4
	.comm	HZ,4,4
	.comm	E1000_TXD_STAT_DD,4,4
	.comm	E1000_STATUS_TXOFF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
