	.file	"extr_ethoc.c_ethoc_tx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ethoc_tx, @function
ethoc_tx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	lea	r13, 12[rax]
	mov	rbp, rax
	mov	rdi, r13
	call	spin_lock@PLT
	mov	eax, DWORD PTR 0[rbp]
	cmp	DWORD PTR 4[rbp], eax
	je	.L6
	lea	rbx, 4[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	add	DWORD PTR 0[rbp], 1
	mov	rsi, rbx
	mov	rdi, rbp
	call	ethoc_update_tx_stats@PLT
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, DWORD PTR 4[rbp]
	je	.L6
.L4:
	xor	edx, edx
	mov	rdi, rbp
	div	DWORD PTR 8[rbp]
	mov	esi, edx
	mov	rdx, rbx
	call	ethoc_read_bd@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR TX_BD_READY[rip], eax
	je	.L11
	mov	eax, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 4[rbp]
	sub	edx, DWORD PTR 0[rbp]
	shr	eax
	cmp	edx, eax
	jbe	.L6
.L5:
	mov	esi, DWORD PTR INT_MASK_TX[rip]
	mov	rdi, rbp
	call	ethoc_ack_irq@PLT
	mov	rdi, r13
	call	spin_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, r12
	call	netif_wake_queue@PLT
	jmp	.L5
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ethoc_tx, .-ethoc_tx
	.comm	TX_BD_READY,4,4
	.comm	INT_MASK_TX,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_ethoc.c_ethoc_tx.c"
	.text
	.global	__aeabi_uidivmod
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ethoc_tx, %function
ethoc_tx:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L13
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	netdev_priv
	mov	r4, r0
	add	r7, r0, #12
	mov	r0, r7
	bl	spin_lock
	ldm	r4, {r0, r3}
	cmp	r3, r0
	beq	.L6
	ldr	r5, .L13+4
	b	.L4
.L11:
	ldr	r3, [r4]
	mov	r1, sp
	add	r3, r3, #1
	str	r3, [r4]
	mov	r0, r4
	bl	ethoc_update_tx_stats
	ldm	r4, {r0, r3}
	cmp	r0, r3
	beq	.L6
.L4:
	ldr	r1, [r4, #8]
	bl	__aeabi_uidivmod
	mov	r2, sp
	mov	r0, r4
	bl	ethoc_read_bd
	ldr	r2, [sp]
	ldr	r3, [r5]
	tst	r2, r3
	beq	.L11
	ldr	r2, [r4, #8]
	ldm	r4, {r1, r3}
	sub	r3, r3, r1
	cmp	r3, r2, lsr #1
	bls	.L6
.L5:
	ldr	r3, .L13+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	ethoc_ack_irq
	mov	r0, r7
	bl	spin_unlock
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r0, r6
	bl	netif_wake_queue
	b	.L5
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	TX_BD_READY
	.word	INT_MASK_TX
	.size	ethoc_tx, .-ethoc_tx
	.comm	TX_BD_READY,4,4
	.comm	INT_MASK_TX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
