	.file	"extr_tx.c_efx_tx_maybe_stop_queue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	efx_tx_maybe_stop_queue, @function
efx_tx_maybe_stop_queue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	efx_tx_queue_partner@PLT
	mov	r12, QWORD PTR 32[rbx]
	mov	rdi, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR 16[rax]
	sub	rdi, QWORD PTR 8[rbx]
	mov	rbp, rax
	sub	rsi, QWORD PTR 8[rax]
	call	max@PLT
	xor	edi, edi
	cmp	DWORD PTR [r12], eax
	seta	dil
	call	likely@PLT
	test	rax, rax
	je	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	netif_tx_stop_queue@PLT
	xor	eax, eax
	call	smp_mb@PLT
	mov	edi, DWORD PTR 24[rbx]
	call	READ_ONCE@PLT
	mov	edi, DWORD PTR 24[rbp]
	mov	QWORD PTR 8[rbx], rax
	call	READ_ONCE@PLT
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 16[rbx]
	mov	QWORD PTR 8[rbp], rax
	sub	rdi, QWORD PTR 8[rbx]
	sub	rsi, rax
	call	max@PLT
	xor	edi, edi
	cmp	DWORD PTR 4[r12], eax
	setbe	dil
	mov	ebp, eax
	call	EFX_WARN_ON_ONCE_PARANOID@PLT
	xor	edi, edi
	cmp	DWORD PTR [r12], ebp
	seta	dil
	call	likely@PLT
	test	rax, rax
	je	.L1
	xor	eax, eax
	call	smp_mb@PLT
	mov	eax, DWORD PTR 8[r12]
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	likely@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR [rbx]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	netif_tx_start_queue@PLT
	.cfi_endproc
.LFE0:
	.size	efx_tx_maybe_stop_queue, .-efx_tx_maybe_stop_queue
	.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_tx.c_efx_tx_maybe_stop_queue.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efx_tx_maybe_stop_queue, %function
efx_tx_maybe_stop_queue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	efx_tx_queue_partner
	mov	r5, r0
	ldr	r3, [r4, #4]
	ldr	r2, [r5, #4]
	ldr	r0, [r4, #8]
	ldr	r1, [r5, #8]
	sub	r0, r0, r3
	sub	r1, r1, r2
	ldr	r6, [r4, #16]
	bl	max
	ldr	r3, [r6]
	cmp	r3, r0
	movls	r0, #0
	movhi	r0, #1
	bl	likely
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r0, [r4]
	bl	netif_tx_stop_queue
	bl	smp_mb
	ldr	r0, [r4, #12]
	bl	READ_ONCE
	mov	r3, r0
	ldr	r0, [r5, #12]
	str	r3, [r4, #4]
	bl	READ_ONCE
	str	r0, [r5, #4]
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	ldr	r1, [r5, #8]
	sub	r1, r1, r0
	sub	r0, r2, r3
	bl	max
	mov	r5, r0
	ldr	r0, [r6, #4]
	cmp	r0, r5
	movhi	r0, #0
	movls	r0, #1
	bl	EFX_WARN_ON_ONCE_PARANOID
	ldr	r0, [r6]
	cmp	r0, r5
	movls	r0, #0
	movhi	r0, #1
	bl	likely
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	bl	smp_mb
	ldr	r0, [r6, #8]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	likely
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r0, [r4]
	pop	{r4, r5, r6, lr}
	b	netif_tx_start_queue
	.size	efx_tx_maybe_stop_queue, .-efx_tx_maybe_stop_queue
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
