	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_xdp_complete
_nfp_net_xdp_complete:                  ## @nfp_net_xdp_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r15
	movl	32(%rdi), %edi
	callq	_nfp_qcp_rd_ptr_read
	movl	$1, %r14d
	subl	(%rbx), %eax
	je	LBB0_6
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_D_IDX
	movq	_NFP_NET_XDP_MAX_COMPLETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%r14d, %r14d
	cmpl	%eax, %esi
	setge	%r12b
	movl	%eax, %edi
	callq	_min
	movl	%eax, %r15d
	movl	(%rbx), %esi
	addl	%eax, %esi
	movq	%rbx, %rdi
	callq	_D_IDX
	movl	%eax, (%rbx)
	testl	%r15d, %r15d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_2
## %bb.3:
	movl	4(%rbx), %esi
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_D_IDX
	movl	4(%rbx), %esi
	incl	%esi
	movl	%esi, 4(%rbx)
	movq	24(%rbx), %rcx
	cltq
	addl	(%rcx,%rax,4), %r13d
	decl	%r15d
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%r13d, %r13d
LBB0_5:
	movb	%r12b, %r14b
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	callq	_u64_stats_update_begin
	addl	%r13d, 8(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, (%r15)
	movq	%r12, %rdi
	callq	_u64_stats_update_end
	movslq	4(%rbx), %rdx
	movq	8(%rbx), %rcx
	movq	16(%rbx), %r8
	movq	%rcx, %rax
	subq	%rdx, %rax
	xorl	%edi, %edi
	cmpq	%r8, %rax
	setg	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN_ONCE
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_XDP_MAX_COMPLETE,4,2   ## @NFP_NET_XDP_MAX_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XDP TX ring corruption rd_p=%u wr_p=%u cnt=%u\n"

	.no_dead_strip	_nfp_net_xdp_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_xdp_complete
_nfp_net_xdp_complete:                  ; @nfp_net_xdp_complete
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x23, [x0, #40]
	ldr	w0, [x0, #32]
	bl	_nfp_qcp_rd_ptr_read
	ldr	w8, [x19]
	subs	w1, w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #1
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_D_IDX
Lloh0:
	adrp	x8, _NFP_NET_XDP_MAX_COMPLETE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_NET_XDP_MAX_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cmp	w1, w0
	cset	w20, ge
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_min
	mov	x21, x0
	ldr	w8, [x19]
	add	w1, w8, w0
	mov	x0, x19
	bl	_D_IDX
	str	w0, [x19]
	mov	w24, #0
	cbz	w21, LBB0_5
; %bb.3:
	ldr	w1, [x19, #4]
	mov	x22, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w22, w22, #1
	mov	x0, x19
	bl	_D_IDX
	ldr	w8, [x19, #4]
	add	w1, w8, #1
	str	w1, [x19, #4]
	ldr	x8, [x19, #24]
	sbfiz	x9, x0, #2, #32
	ldr	w8, [x8, x9]
	add	w24, w8, w24
	cbnz	w22, LBB0_4
LBB0_5:
	add	x22, x23, #4
	mov	x0, x22
	bl	_u64_stats_update_begin
	ldr	w8, [x23, #8]
	add	w8, w8, w24
	str	w8, [x23, #8]
	ldr	w8, [x23]
	add	w8, w8, w21
	str	w8, [x23]
	mov	x0, x22
	bl	_u64_stats_update_end
	ldrsw	x2, [x19, #4]
	ldp	x3, x4, [x19, #8]
	sub	x8, x3, x2
	cmp	x8, x4
	cset	w0, gt
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN_ONCE
LBB0_6:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_XDP_MAX_COMPLETE,4,2   ; @NFP_NET_XDP_MAX_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XDP TX ring corruption rd_p=%u wr_p=%u cnt=%u\n"

	.no_dead_strip	_nfp_net_xdp_complete
.subsections_via_symbols
