	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_dequeue_buffer
_efx_dequeue_buffer:                    ## @efx_dequeue_buffer
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movq	8(%r14), %rax
	movq	8(%rax), %rdi
	movq	40(%rbx), %rsi
	subq	32(%rbx), %rsi
	movq	_EFX_TX_BUF_MAP_SINGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	callq	_dma_unmap_single
	jmp	LBB0_4
LBB0_3:
	callq	_dma_unmap_page
LBB0_4:
	movq	$0, 24(%rbx)
LBB0_5:
	movq	_EFX_TX_BUF_SKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.6:
	movq	16(%rbx), %r13
	testq	%r12, %r12
	sete	%al
	testq	%r15, %r15
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_EFX_WARN_ON_PARANOID
	incl	(%r12)
	movl	(%r13), %eax
	addl	%eax, (%r15)
	cmpq	$0, 32(%r14)
	je	LBB0_10
## %bb.7:
	cmpq	$0, 24(%r14)
	jne	LBB0_9
## %bb.8:
	cmpq	$0, 16(%r14)
	je	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	callq	_efx_ptp_nic_to_kernel_time
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_skb_tstamp_tx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
LBB0_10:
	movq	16(%rbx), %rdi
	callq	_dev_consume_skb_any
	movq	8(%r14), %rdi
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdi), %edx
	movl	(%r14), %r9d
	movl	4(%r14), %r8d
	leaq	L_.str(%rip), %rcx
	callq	_netif_vdbg
LBB0_11:
	movq	$0, 8(%rbx)
	movl	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_TX_BUF_MAP_SINGLE,4,2      ## @EFX_TX_BUF_MAP_SINGLE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_EFX_TX_BUF_SKB,4,2             ## @EFX_TX_BUF_SKB
	.comm	_tx_done,4,2                    ## @tx_done
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX queue %d transmission id %x complete\n"

	.no_dead_strip	_efx_dequeue_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_dequeue_buffer
_efx_dequeue_buffer:                    ; @efx_dequeue_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x2, [x1, #24]
	cbz	x2, LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #8]
	ldp	x9, x8, [x19, #32]
	sub	x1, x8, x9
Lloh0:
	adrp	x8, _EFX_TX_BUF_MAP_SINGLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFX_TX_BUF_MAP_SINGLE@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x10]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	bl	_dma_unmap_single
	b	LBB0_4
LBB0_3:
	bl	_dma_unmap_page
LBB0_4:
	str	xzr, [x19, #24]
LBB0_5:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _EFX_TX_BUF_SKB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EFX_TX_BUF_SKB@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.6:
	ldr	x23, [x19, #16]
	cmp	x22, #0
	ccmp	x21, #0, #4, ne
	cset	w0, eq
	bl	_EFX_WARN_ON_PARANOID
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	ldr	w8, [x23]
	ldr	w9, [x21]
	add	w8, w9, w8
	str	w8, [x21]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_efx_ptp_nic_to_kernel_time
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x23
	bl	_skb_tstamp_tx
	stp	xzr, xzr, [x20, #16]
LBB0_10:
	ldr	x0, [x19, #16]
	bl	_dev_consume_skb_any
	ldr	x0, [x20, #8]
Lloh9:
	adrp	x8, _tx_done@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tx_done@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x0]
	ldp	w5, w4, [x20]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	bl	_netif_vdbg
LBB0_11:
	str	xzr, [x19, #8]
	str	wzr, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_TX_BUF_MAP_SINGLE,4,2      ; @EFX_TX_BUF_MAP_SINGLE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_EFX_TX_BUF_SKB,4,2             ; @EFX_TX_BUF_SKB
	.comm	_tx_done,4,2                    ; @tx_done
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX queue %d transmission id %x complete\n"

	.no_dead_strip	_efx_dequeue_buffer
.subsections_via_symbols
