	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_xmit_done                  ## -- Begin function efx_xmit_done
	.p2align	4, 0x90
_efx_xmit_done:                         ## @efx_xmit_done
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	40(%rdi), %r15
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	xorl	%edi, %edi
	cmpl	%esi, (%rbx)
	setb	%dil
	callq	_EFX_WARN_ON_ONCE_PARANOID
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_efx_dequeue_buffers
	movl	-32(%rbp), %eax
	addl	%eax, 4(%rbx)
	movl	-28(%rbp), %ecx
	addl	%ecx, 8(%rbx)
	cmpl	$2, %eax
	jb	LBB0_2
## %bb.1:
	incl	36(%rbx)
LBB0_2:
	xorl	%eax, %eax
	callq	_smp_mb
	movl	32(%rbx), %edi
	callq	_netif_tx_queue_stopped
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	8(%r15), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	4(%r15), %edi
	callq	_netif_device_present
	movl	%eax, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_efx_tx_queue_partner
	movl	12(%rbx), %edi
	subl	16(%rbx), %edi
	movl	12(%rax), %esi
	subl	16(%rax), %esi
	callq	_max
	cmpl	(%r15), %eax
	ja	LBB0_7
## %bb.6:
	movl	32(%rbx), %edi
	callq	_netif_tx_wake_queue
LBB0_7:
	movl	16(%rbx), %eax
	cmpl	20(%rbx), %eax
	jl	LBB0_10
## %bb.8:
	movl	28(%rbx), %edi
	callq	_READ_ONCE
	movl	%eax, 20(%rbx)
	cmpl	%eax, 16(%rbx)
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	_EFX_EMPTY_COUNT_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	16(%rbx), %eax
	movl	%eax, 24(%rbx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_EMPTY_COUNT_VALID,4,2      ## @EFX_EMPTY_COUNT_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_xmit_done                  ; -- Begin function efx_xmit_done
	.p2align	2
_efx_xmit_done:                         ; @efx_xmit_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #40]
	str	xzr, [sp, #8]
	ldr	w8, [x0]
	cmp	w8, w1
	cset	w0, lo
	bl	_EFX_WARN_ON_ONCE_PARANOID
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_efx_dequeue_buffers
	ldp	w11, w8, [sp, #8]
	ldp	w9, w10, [x19, #4]
	add	w9, w9, w8
	add	w10, w10, w11
	stp	w9, w10, [x19, #4]
	cmp	w8, #2
	b.lo	LBB0_2
; %bb.1:
	ldr	w8, [x19, #36]
	add	w8, w8, #1
	str	w8, [x19, #36]
LBB0_2:
	bl	_smp_mb
	ldr	w0, [x19, #32]
	bl	_netif_tx_queue_stopped
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w0, [x21, #8]
	bl	_likely
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w0, [x21, #4]
	bl	_netif_device_present
	bl	_likely
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_efx_tx_queue_partner
	ldp	w8, w9, [x19, #12]
	sub	w8, w8, w9
	ldp	w9, w10, [x0, #12]
	sub	w1, w9, w10
	mov	x0, x8
	bl	_max
	ldr	w8, [x21]
	cmp	w0, w8
	b.hi	LBB0_7
; %bb.6:
	ldr	w0, [x19, #32]
	bl	_netif_tx_wake_queue
LBB0_7:
	ldp	w8, w9, [x19, #16]
	cmp	w8, w9
	b.lt	LBB0_10
; %bb.8:
	ldr	w0, [x19, #28]
	bl	_READ_ONCE
	str	w0, [x19, #20]
	ldr	w8, [x19, #16]
	cmp	w8, w0
	b.ne	LBB0_10
; %bb.9:
	bl	_smp_mb
	ldr	w8, [x19, #16]
Lloh0:
	adrp	x9, _EFX_EMPTY_COUNT_VALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EFX_EMPTY_COUNT_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_EMPTY_COUNT_VALID,4,2      ; @EFX_EMPTY_COUNT_VALID
.subsections_via_symbols
