	.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_ring_reset
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_nfp_net_tx_ring_reset:                 ## @nfp_net_tx_ring_reset
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%rsi)
	je	LBB0_1
LBB0_9:
	movl	48(%rbx), %edx
	movl	52(%rbx), %edi
	xorl	%esi, %esi
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movups	%xmm0, 32(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_10
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rsi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r13,8), %rax
	addq	$8, %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movl	$-2, (%r15)
	incq	40(%rbx)
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%rsi, (%rbx)
	cmpq	$0, 24(%rbx)
	jne	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	8(%rbx), %rsi
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_D_IDX
	movq	56(%rbx), %r14
	cltq
	leaq	(%rax,%rax,2), %r13
	leaq	(%r14,%r13,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r14,%r13,8), %r12
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	(%rax), %r15d
	cmpl	$-1, (%r14,%r13,8)
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_skb_shinfo
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movslq	(%r12), %rdi
	shlq	$2, %rdi
	addq	8(%rax), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r14,%r13,8), %rax
	movq	%rax, -64(%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	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dma_unmap_page
	movq	%r12, %rax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r14,%r13,8), %rax
	movq	%rax, -64(%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	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	-72(%rbp), %rax                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%r15d
	cmpl	%r15d, (%rax)
	movq	%rax, %r15
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb_any
	jmp	LBB0_8
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.12:
	movl	16(%rbx), %esi
	callq	_netdev_get_tx_queue
	movq	%rax, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_tx_reset_queue          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_nfp_net_tx_ring_reset
.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_ring_reset
_nfp_net_tx_ring_reset:                 ; @nfp_net_tx_ring_reset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_3
LBB0_1:
	ldp	w2, w0, [x19, #48]
	mov	w1, #0
	bl	_memset
	stp	xzr, xzr, [x19]
	stp	xzr, xzr, [x19, #32]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x1, [x19]
	mov	w24, #24
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	stp	xzr, xzr, [x28]
	mov	w8, #-2
	str	w8, [x27]
	ldr	x8, [x19, #40]
	add	x8, x8, #1
	str	x8, [x19, #40]
	ldr	x8, [x19]
	add	x1, x8, #1
	str	x1, [x19]
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	cmp	x1, x8
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_D_IDX
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x23, [x19, #56]
	sxtw	x26, w0
	smaddl	x27, w0, w24, x23
	mov	x28, x27
	ldr	x21, [x28, #8]!
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w25, [x0]
	ldr	w8, [x27]
	cmn	w8, #1
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	ldrsw	x9, [x27]
	add	x0, x8, x9, lsl #2
	ldr	w22, [x20, #4]
	madd	x8, x26, x24, x23
	ldr	x23, [x8, #16]
	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, x22
	mov	x1, x23
	bl	_dma_unmap_page
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w22, [x20, #4]
	madd	x8, x26, x24, x23
	ldr	x23, [x8, #16]
	mov	x0, x21
	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, x22
	mov	x1, x23
	bl	_dma_unmap_single
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	sub	w9, w25, #1
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_dev_kfree_skb_any
	b	LBB0_4
LBB0_11:
	ldr	w0, [x20]
	cbz	w0, LBB0_2
; %bb.12:
	ldr	w1, [x19, #16]
	bl	_netdev_get_tx_queue
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_netdev_tx_reset_queue
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_nfp_net_tx_ring_reset
.subsections_via_symbols
