	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_tx_maybe_stop_queue
_efx_tx_maybe_stop_queue:               ## @efx_tx_maybe_stop_queue
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_efx_tx_queue_partner
	movq	%rax, %r14
	movq	16(%rbx), %rdi
	subq	8(%rbx), %rdi
	movq	32(%rbx), %r15
	movq	16(%rax), %rsi
	subq	8(%rax), %rsi
	callq	_max
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	setb	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rbx), %edi
	callq	_netif_tx_stop_queue
	xorl	%eax, %eax
	callq	_smp_mb
	movl	24(%rbx), %edi
	callq	_READ_ONCE
	movq	%rax, 8(%rbx)
	movl	24(%r14), %edi
	callq	_READ_ONCE
	movq	%rax, 8(%r14)
	movq	16(%rbx), %rdi
	subq	8(%rbx), %rdi
	movq	16(%r14), %rsi
	subq	%rax, %rsi
	callq	_max
	movl	%eax, %r14d
	xorl	%edi, %edi
	cmpl	4(%r15), %eax
	setae	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	xorl	%edi, %edi
	cmpl	(%r15), %r14d
	setb	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_smp_mb
	xorl	%edi, %edi
	cmpl	$0, 8(%r15)
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_tx_start_queue           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_efx_tx_maybe_stop_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_tx_maybe_stop_queue
_efx_tx_maybe_stop_queue:               ; @efx_tx_maybe_stop_queue
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_efx_tx_queue_partner
	mov	x20, x0
	ldr	x21, [x19, #32]
	ldp	x9, x8, [x19, #8]
	sub	x0, x8, x9
	ldp	x9, x8, [x20, #8]
	sub	x1, x8, x9
	bl	_max
	ldr	w8, [x21]
	cmp	w0, w8
	cset	w0, lo
	bl	_likely
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x19]
	bl	_netif_tx_stop_queue
	bl	_smp_mb
	ldr	w0, [x19, #24]
	bl	_READ_ONCE
	str	x0, [x19, #8]
	ldr	w0, [x20, #24]
	bl	_READ_ONCE
	str	x0, [x20, #8]
	ldp	x9, x8, [x19, #8]
	sub	x8, x8, x9
	ldr	x9, [x20, #16]
	sub	x1, x9, x0
	mov	x0, x8
	bl	_max
	mov	x20, x0
	ldr	w8, [x21, #4]
	cmp	w0, w8
	cset	w0, hs
	bl	_EFX_WARN_ON_ONCE_PARANOID
	ldr	w8, [x21]
	cmp	w20, w8
	cset	w0, lo
	bl	_likely
	cbz	x0, LBB0_1
; %bb.3:
	bl	_smp_mb
	ldr	w8, [x21, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_1
; %bb.4:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_netif_tx_start_queue
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_efx_tx_maybe_stop_queue
.subsections_via_symbols
