	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function nfp_net_tx_complete
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_nfp_net_tx_complete:                   ## @nfp_net_tx_complete
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -84(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	cmpq	8(%rdi), %rax
	je	LBB0_18
## %bb.1:
	movq	%rdi, %rbx
	movq	56(%rdi), %r14
	movq	16(%r14), %r13
	movl	48(%rdi), %edi
	callq	_nfp_qcp_rd_ptr_read
	movq	%rax, %rsi
	subq	16(%rbx), %rsi
	je	LBB0_18
## %bb.2:
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_D_IDX
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r15,%r14,8), %rax
	addq	$24, %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movl	$-2, -24(%rax)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	decl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rsi
	leaq	1(%rsi), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_D_IDX
	movq	40(%rbx), %r15
	cltq
	leaq	(%rax,%rax,4), %r14
	movq	24(%r15,%r14,8), %r12
	testq	%r12, %r12
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	(%rax), %ebx
	movslq	(%r15,%r14,8), %r13
	cmpq	$-1, %r13
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_skb_shinfo
	leaq	(,%r13,4), %rdi
	addq	8(%rax), %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	32(%r15,%r14,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dma_unmap_page
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	32(%r15,%r14,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	8(%r15,%r14,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	16(%r15,%r14,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	%ebx
	cmpl	%ebx, %r13d
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_napi_consume_skb
	jmp	LBB0_11
LBB0_3:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_13:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	%r14, %rdi
	callq	_u64_stats_update_begin
	addl	%r12d, 8(%r14)
	addl	%r15d, 4(%r14)
	movq	%r14, %rdi
	callq	_u64_stats_update_end
	movl	(%r13), %edi
	testl	%edi, %edi
	je	LBB0_18
## %bb.14:
	movl	32(%rbx), %esi
	callq	_netdev_get_tx_queue
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_netdev_tx_completed_queue
	movq	%rbx, %rdi
	callq	_nfp_net_tx_ring_should_wake
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r14, %rdi
	callq	_netif_tx_queue_stopped
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_netif_tx_wake_queue
LBB0_17:
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	24(%rbx), %r8
	xorl	%edi, %edi
	cmpq	%r8, %rax
	setg	%dil
	leaq	L_.str(%rip), %rsi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ONCE                      ## TAILCALL
LBB0_18:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX ring corruption rd_p=%u wr_p=%u cnt=%u\n"

	.no_dead_strip	_nfp_net_tx_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_tx_complete
_nfp_net_tx_complete:                   ; @nfp_net_tx_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w1, [sp, #28]                   ; 4-byte Folded Spill
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #56]
	ldr	x27, [x20, #16]
	ldr	w0, [x0, #48]
	bl	_nfp_qcp_rd_ptr_read
	ldr	x8, [x19, #16]
	subs	x1, x0, x8
	b.eq	LBB0_18
; %bb.2:
	stp	x0, x20, [sp, #8]               ; 16-byte Folded Spill
	mov	x0, x19
	bl	_D_IDX
	cbz	w0, LBB0_12
; %bb.3:
	mov	x25, x0
	stp	xzr, xzr, [sp, #32]             ; 16-byte Folded Spill
	mov	w20, #40
	str	x27, [sp, #48]                  ; 8-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	stp	xzr, xzr, [x23]
	mov	w8, #-2
	str	w8, [x21]
	ldr	x27, [sp, #48]                  ; 8-byte Folded Reload
	mov	w20, #40
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	w25, LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w25, w25, #1
	ldr	x1, [x19, #8]
	add	x8, x1, #1
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_D_IDX
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x28, [x19, #40]
	smaddl	x23, w0, w20, x28
	ldr	x26, [x23, #24]!
	cbz	x26, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x20, w0
	mov	x0, x26
	bl	_skb_shinfo
	ldr	w8, [x0]
	mov	w22, #40
	madd	x21, x20, x22, x28
	ldrsw	x24, [x21]
	cmn	w24, #1
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x0, x8, x24, lsl #2
	ldr	w27, [x27, #4]
	madd	x8, x20, x22, x28
	ldr	x28, [x8, #32]
	bl	_skb_frag_size
	mov	x2, x0
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x1, x28
	bl	_dma_unmap_page
	ldr	w22, [sp, #60]                  ; 4-byte Folded Reload
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w27, [x27, #4]
	madd	x20, x20, x22, x28
	ldr	x28, [x20, #32]
	mov	x0, x26
	mov	x22, x8
	bl	_skb_headlen
	mov	x2, x0
Lloh3:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x1, x28
	bl	_dma_unmap_single
	ldp	x8, x9, [x20, #8]
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	add	x10, x8, x10
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x9, x8
	stp	x10, x8, [sp, #32]              ; 16-byte Folded Spill
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w22, #1
	cmp	w24, w8
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	bl	_napi_consume_skb
	b	LBB0_4
LBB0_12:
	stp	xzr, xzr, [sp, #32]             ; 16-byte Folded Spill
LBB0_13:
	ldp	x8, x20, [sp, #8]               ; 16-byte Folded Reload
	str	x8, [x19, #16]
	mov	x0, x20
	bl	_u64_stats_update_begin
	ldp	w9, w8, [x20, #4]
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	w8, w8, w21
	add	w9, w9, w22
	stp	w9, w8, [x20, #4]
	mov	x0, x20
	bl	_u64_stats_update_end
	ldr	w0, [x27]
	cbz	w0, LBB0_18
; %bb.14:
	ldr	w1, [x19, #32]
	bl	_netdev_get_tx_queue
	mov	x20, x0
	mov	x1, x22
	mov	x2, x21
	bl	_netdev_tx_completed_queue
	mov	x0, x19
	bl	_nfp_net_tx_ring_should_wake
	cbz	x0, LBB0_17
; %bb.15:
	bl	_smp_mb
	mov	x0, x20
	bl	_netif_tx_queue_stopped
	bl	_unlikely
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_netif_tx_wake_queue
LBB0_17:
	ldp	x3, x2, [x19]
	ldr	x4, [x19, #24]
	sub	x8, x3, x2
	cmp	x8, x4
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	cset	w0, gt
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_WARN_ONCE
LBB0_18:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX ring corruption rd_p=%u wr_p=%u cnt=%u\n"

	.no_dead_strip	_nfp_net_tx_complete
.subsections_via_symbols
