	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_tx_xdp_buf
_nfp_net_tx_xdp_buf:                    ## @nfp_net_tx_xdp_buf
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r13d
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	movl	$1, %esi
	callq	_nfp_net_tx_full
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	16(%rbp), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_nfp_net_xdp_complete
	movl	$1, (%rbx)
LBB0_3:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_nfp_net_tx_full
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %esi
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_nfp_net_rx_drop
	jmp	LBB0_6
LBB0_5:
	movl	4(%r12), %esi
	movq	%r12, %rdi
	callq	_D_IDX
	movq	16(%r12), %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	cltq
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %r14
	movq	%rax, %r15
	shlq	$5, %r15
	movl	24(%rbx,%r15), %edx
	movq	16(%rbx,%r15), %rcx
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_nfp_net_rx_give_one
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %eax
	movl	%eax, 24(%rbx,%r15)
	movq	(%r14), %rsi
	movq	%rsi, 16(%rbx,%r15)
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, (%rbx,%r15)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, 8(%rbx,%r15)
	movl	(%r13), %edi
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	addq	%r13, %rsi
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edx
	callq	_dma_sync_single_for_device
	movq	8(%r12), %r15
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rbx
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PCIE_DESC_TX_EOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15,%rbx)
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r15,%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %r14d
	movq	%r13, %rsi
	callq	_nfp_desc_set_dma_addr
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, 24(%r15,%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15,%rbx)
	movq	$0, 16(%r15,%rbx)
	incl	4(%r12)
	incl	(%r12)
LBB0_6:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_PCIE_DESC_TX_EOP,4,2           ## @PCIE_DESC_TX_EOP
	.no_dead_strip	_nfp_net_tx_xdp_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function nfp_net_tx_xdp_buf
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nfp_net_tx_xdp_buf:                    ; @nfp_net_tx_xdp_buf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x6
	mov	x20, x5
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x24, x1
	mov	x23, x0
	mov	x0, x2
	mov	w1, #1
	bl	_nfp_net_tx_full
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x25]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_nfp_net_xdp_complete
	mov	w8, #1
	str	w8, [x25]
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	bl	_nfp_net_tx_full
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x24]
	mov	x0, x23
	mov	x2, x24
	mov	x3, x21
	mov	x4, #0
	bl	_nfp_net_rx_drop
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_D_IDX
	mov	x25, x0
	ldr	x8, [x19, #16]
	sxtw	x9, w25
	add	x26, x8, x9, lsl #5
	ldr	w2, [x26, #24]
	ldr	x3, [x26, #16]
	mov	x0, x23
	mov	x1, x24
	bl	_nfp_net_rx_give_one
	ldr	w8, [x21, #8]
	str	w8, [x26, #24]
	ldr	x8, [x21]
	str	x8, [x26, #16]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x26]
	str	w20, [x26, #8]
	ldr	w0, [x23]
	mov	w23, w22
	add	x1, x8, x23
Lloh2:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x2, x20
	bl	_dma_sync_single_for_device
	ldr	x8, [x19, #8]
	mov	w9, #48
	smaddl	x22, w25, w9, x8
Lloh5:
	adrp	x8, _PCIE_DESC_TX_EOP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCIE_DESC_TX_EOP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x22, #40]
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [x22, #32]
	ldr	x8, [x21]
	add	x1, x8, x23
	mov	x0, x22
	bl	_nfp_desc_set_dma_addr
	mov	x0, x20
	bl	_cpu_to_le16
	stp	xzr, x0, [x22, #16]
	stp	xzr, xzr, [x22]
	ldr	d0, [x19]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x19]
	mov	w0, #1
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_PCIE_DESC_TX_EOP,4,2           ; @PCIE_DESC_TX_EOP
	.no_dead_strip	_nfp_net_tx_xdp_buf
.subsections_via_symbols
