	.file	"extr_bnad.c_bnad_tx_complete.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnad_tx_complete, @function
bnad_tx_complete:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r14, QWORD PTR [rdi]
	mov	edi, DWORD PTR BNAD_TXQ_FREE_SENT[rip]
	call	test_and_set_bit@PLT
	test	rax, rax
	je	.L23
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	call	bnad_txcmpl_process@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L24
.L4:
	mov	edi, DWORD PTR BNAD_TXQ_TX_STARTED[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	mov	rdi, rax
	call	likely@PLT
	test	rax, rax
	jne	.L25
.L6:
	xor	eax, eax
	call	smp_mb__before_clear_bit@PLT
	mov	edi, DWORD PTR BNAD_TXQ_FREE_SENT[rip]
	mov	rsi, rbp
	call	clear_bit@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rdi, r14
	call	netif_queue_stopped@PLT
	test	rax, rax
	je	.L4
	mov	rdi, r14
	call	netif_carrier_ok@PLT
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR 8[rbp]
	mov	rdi, rbp
	call	BNA_QE_FREE_CNT@PLT
	cmp	rax, QWORD PTR BNAD_NETIF_WAKE_THRESHOLD[rip]
	jl	.L4
	mov	edi, DWORD PTR BNAD_TXQ_TX_STARTED[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	test	rax, rax
	je	.L4
	mov	rdi, r14
	call	netif_wake_queue@PLT
	mov	esi, DWORD PTR netif_queue_wakeup[rip]
	mov	rdi, r12
	call	BNAD_UPDATE_CTR@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, DWORD PTR 4[rbp]
	mov	rsi, r13
	call	bna_ib_ack@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	bnad_tx_complete, .-bnad_tx_complete
	.comm	netif_queue_wakeup,4,4
	.comm	BNAD_TXQ_TX_STARTED,4,4
	.comm	BNAD_TXQ_FREE_SENT,4,4
	.comm	BNAD_NETIF_WAKE_THRESHOLD,8,8
	.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_bnad.c_bnad_tx_complete.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnad_tx_complete, %function
bnad_tx_complete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L28
	ldr	r8, [r0]
	mov	r6, r0
	ldr	r0, [r7]
	mov	r4, r1
	bl	test_and_set_bit
	cmp	r0, #0
	movne	r5, #0
	beq	.L26
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	mov	r1, r4
	mov	r0, r6
	bl	bnad_txcmpl_process
	subs	r5, r0, #0
	bne	.L3
.L24:
	ldr	r9, .L28+4
.L4:
	mov	r1, r4
	ldr	r0, [r9]
	bl	test_bit
	bl	likely
	cmp	r0, #0
	bne	.L27
.L6:
	bl	smp_mb__before_clear_bit
	mov	r1, r4
	ldr	r0, [r7]
	bl	clear_bit
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r0, r8
	bl	netif_queue_stopped
	cmp	r0, #0
	beq	.L24
	mov	r0, r8
	bl	netif_carrier_ok
	cmp	r0, #0
	beq	.L24
	mov	r0, r4
	ldr	r1, [r4, #8]
	bl	BNA_QE_FREE_CNT
	ldr	r3, .L28+8
	ldr	r9, .L28+4
	ldr	r3, [r3]
	cmp	r0, r3
	blt	.L4
	mov	r1, r4
	ldr	r0, [r9]
	bl	test_bit
	cmp	r0, #0
	beq	.L4
	mov	r0, r8
	bl	netif_wake_queue
	ldr	r3, .L28+12
	mov	r0, r6
	ldr	r1, [r3]
	bl	BNAD_UPDATE_CTR
	b	.L4
.L27:
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	bna_ib_ack
	b	.L6
.L29:
	.align	2
.L28:
	.word	BNAD_TXQ_FREE_SENT
	.word	BNAD_TXQ_TX_STARTED
	.word	BNAD_NETIF_WAKE_THRESHOLD
	.word	netif_queue_wakeup
	.size	bnad_tx_complete, .-bnad_tx_complete
	.comm	netif_queue_wakeup,4,4
	.comm	BNAD_TXQ_TX_STARTED,4,4
	.comm	BNAD_TXQ_FREE_SENT,4,4
	.comm	BNAD_NETIF_WAKE_THRESHOLD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
