	.file	"extr_skge.c_skge_tx_done.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	skge_tx_done, @function
skge_tx_done:
.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, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	esi, DWORD PTR Q_CSR[rip]
	mov	r13d, DWORD PTR CSR_IRQ_CL_F[rip]
	mov	rdx, QWORD PTR [rax]
	mov	rbp, rax
	mov	rax, QWORD PTR txqaddr[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	Q_ADDR@PLT
	mov	edi, DWORD PTR 24[rbp]
	mov	edx, r13d
	mov	esi, eax
	call	skge_write8@PLT
	mov	rbx, QWORD PTR 8[rbp]
	cmp	rbx, QWORD PTR 16[rbp]
	jne	.L3
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, rbx
	mov	rdi, rbp
	call	skge_tx_free@PLT
	mov	rbx, QWORD PTR 8[rbx]
	cmp	QWORD PTR 16[rbp], rbx
	je	.L2
.L3:
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR BMU_OWN[rip], edx
	je	.L19
.L2:
	mov	QWORD PTR 8[rbp], rbx
	xor	eax, eax
	call	smp_mb@PLT
	mov	rdi, r12
	call	netif_queue_stopped@PLT
	xor	edi, edi
	test	rax, rax
	jne	.L20
	call	unlikely@PLT
	test	rax, rax
	jne	.L21
.L1:
	add	rsp, 8
	.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
.L20:
	.cfi_restore_state
	lea	rdi, 8[rbp]
	call	skge_avail@PLT
	xor	edi, edi
	cmp	rax, QWORD PTR TX_LOW_WATER[rip]
	setg	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L1
.L21:
	mov	rdi, r12
	call	netif_tx_lock@PLT
	mov	rdi, r12
	call	netif_queue_stopped@PLT
	xor	edi, edi
	test	rax, rax
	jne	.L22
	call	unlikely@PLT
	test	rax, rax
	jne	.L23
.L7:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	netif_tx_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	lea	rdi, 8[rbp]
	call	skge_avail@PLT
	xor	edi, edi
	cmp	rax, QWORD PTR TX_LOW_WATER[rip]
	setg	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L7
.L23:
	mov	rdi, r12
	call	netif_wake_queue@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	skge_tx_done, .-skge_tx_done
	.comm	txqaddr,8,8
	.comm	TX_LOW_WATER,8,8
	.comm	Q_CSR,4,4
	.comm	CSR_IRQ_CL_F,4,4
	.comm	BMU_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_skge.c_skge_tx_done.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	skge_tx_done, %function
skge_tx_done:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	bl	netdev_priv
	mov	r5, r0
	ldr	r3, .L25
	ldr	r1, [r0]
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r0, [r2, r1, lsl #2]
	ldr	r1, [r3]
	ldr	r4, [r5, #12]
	bl	Q_ADDR
	ldr	r3, .L25+8
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r4
	bl	skge_write8
	ldr	r4, [r5, #4]
	ldr	r3, [r5, #8]
	cmp	r4, r3
	beq	.L2
	ldr	r6, .L25+12
	b	.L3
.L21:
	mov	r1, r4
	mov	r0, r5
	bl	skge_tx_free
	ldr	r4, [r4, #4]
	ldr	r3, [r5, #8]
	cmp	r3, r4
	beq	.L2
.L3:
	ldr	r2, [r4]
	ldr	r3, [r6]
	ldr	r2, [r2]
	tst	r2, r3
	beq	.L21
.L2:
	str	r4, [r5, #4]
	bl	smp_mb
	mov	r0, r7
	bl	netif_queue_stopped
	cmp	r0, #0
	bne	.L22
.L4:
	bl	unlikely
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r7
	bl	netif_tx_lock
	mov	r0, r7
	bl	netif_queue_stopped
	cmp	r0, #0
	bne	.L23
	bl	unlikely
	cmp	r0, #0
	bne	.L24
.L7:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	netif_tx_unlock
.L22:
	add	r0, r5, #4
	bl	skge_avail
	ldr	r3, .L25+16
	ldr	r3, [r3]
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	b	.L4
.L23:
	add	r0, r5, #4
	bl	skge_avail
	ldr	r3, .L25+16
	ldr	r3, [r3]
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L7
.L24:
	mov	r0, r7
	bl	netif_wake_queue
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	netif_tx_unlock
.L26:
	.align	2
.L25:
	.word	txqaddr
	.word	Q_CSR
	.word	CSR_IRQ_CL_F
	.word	BMU_OWN
	.word	TX_LOW_WATER
	.size	skge_tx_done, .-skge_tx_done
	.comm	txqaddr,4,4
	.comm	TX_LOW_WATER,4,4
	.comm	Q_CSR,4,4
	.comm	CSR_IRQ_CL_F,4,4
	.comm	BMU_OWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
