	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_ctrl_tx_one
_nfp_ctrl_tx_one:                       ## @nfp_ctrl_tx_one
	.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
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rdx), %r13d
	movq	16(%rsi), %r14
	movq	24(%rsi), %r15
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_skb_shinfo
	movl	(%rax), %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_nn_dp_warn
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_15:
	movq	%rbx, %rdi
	callq	_u64_stats_update_begin
	incl	4(%rbx)
	movq	%rbx, %rdi
	callq	_u64_stats_update_end
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, -76(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_nfp_net_tx_full
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_u64_stats_update_begin
	incl	12(%rbx)
	movq	%rbx, %rdi
	callq	_u64_stats_update_end
	addq	$8, %rbx
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdi
	je	LBB0_4
## %bb.5:
	callq	___skb_queue_head
	movl	$1, %eax
	jmp	LBB0_17
LBB0_6:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	callq	_nfp_app_ctrl_has_meta
	testq	%rax, %rax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_skb_headroom
	xorl	%edi, %edi
	cmpl	$8, %eax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_4:
	callq	___skb_queue_tail
	movl	$1, %eax
	jmp	LBB0_17
LBB0_7:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
LBB0_10:
	movq	_NFP_META_PORT_ID_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_skb_push
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_put_unaligned_be32
	movq	_NFP_NET_META_PORTID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_skb_push
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_put_unaligned_be32
	movl	$8, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_11:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %r14d
	movl	4(%r12), %r13d
	movq	%r12, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movq	%r15, %r14
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_dma_map_single
	movl	%eax, %r13d
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
LBB0_14:
	callq	_nn_dp_warn
	jmp	LBB0_15
LBB0_12:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %esi
	movq	%r14, %rdi
	callq	_D_IDX
	movq	16(%r14), %rcx
	cltq
	leaq	(%rax,%rax,2), %rbx
	movq	%r12, 16(%rcx,%rbx,8)
	movl	%r13d, 12(%rcx,%rbx,8)
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, (%rcx,%rbx,8)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rcx,%rbx,8)
	movq	8(%r14), %r15
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PCIE_DESC_TX_EOP@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, (%r15,%rbx)
	movq	%r12, %rdi
	callq	_skb_headlen
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r15,%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_nfp_desc_set_dma_addr
	movl	(%r12), %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r15,%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15,%rbx)
	movq	$0, 24(%r15,%rbx)
	incl	4(%r14)
	incl	(%r14)
	movq	%r14, %rdi
	callq	_nfp_net_tx_xmit_more_flush
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Driver's CTRL TX does not implement gather\n"

L_.str.1:                               ## @.str.1
	.asciz	"CTRL TX on skb without headroom\n"

	.comm	_NFP_META_PORT_ID_CTRL,4,2      ## @NFP_META_PORT_ID_CTRL
	.comm	_NFP_NET_META_PORTID,4,2        ## @NFP_NET_META_PORTID
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_PCIE_DESC_TX_EOP,4,2           ## @PCIE_DESC_TX_EOP
L_.str.2:                               ## @.str.2
	.asciz	"Failed to DMA map TX CTRL buffer\n"

	.no_dead_strip	_nfp_ctrl_tx_one
.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_ctrl_tx_one
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nfp_ctrl_tx_one:                       ; @nfp_ctrl_tx_one
	.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	x23, x3
	mov	x19, x2
	mov	x21, x1
	mov	x24, x0
	ldr	w25, [x2]
	ldp	x20, x22, [x1, #16]
	mov	x0, x2
	bl	_skb_shinfo
	ldr	w0, [x0]
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x22
	bl	_nn_dp_warn
	mov	x0, x21
	bl	_u64_stats_update_begin
	ldr	w8, [x21, #4]
	add	w8, w8, #1
	str	w8, [x21, #4]
	mov	x0, x21
	bl	_u64_stats_update_end
	mov	x0, x19
	bl	_dev_kfree_skb_any
LBB0_3:
	mov	w0, #0
LBB0_4:
	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
LBB0_5:
	mov	x0, x20
	mov	w1, #1
	bl	_nfp_net_tx_full
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x21
	bl	_u64_stats_update_begin
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
	mov	x0, x21
	bl	_u64_stats_update_end
	add	x0, x21, #8
	mov	x1, x19
	cbz	w23, LBB0_11
; %bb.7:
	bl	___skb_queue_head
	mov	w0, #1
	b	LBB0_4
LBB0_8:
	ldr	w0, [x24]
	bl	_nfp_app_ctrl_has_meta
	cbz	x0, LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_skb_headroom
	cmp	w0, #8
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.10:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_11:
	bl	___skb_queue_tail
	mov	w0, #1
	b	LBB0_4
LBB0_12:
	mov	w26, #0
	b	LBB0_14
LBB0_13:
Lloh4:
	adrp	x8, _NFP_META_PORT_ID_CTRL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NFP_META_PORT_ID_CTRL@GOTPAGEOFF]
Lloh6:
	ldr	w23, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_skb_push
	mov	x1, x0
	mov	x0, x23
	bl	_put_unaligned_be32
Lloh7:
	adrp	x8, _NFP_NET_META_PORTID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NFP_NET_META_PORTID@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_skb_push
	mov	x1, x0
	mov	x0, x23
	bl	_put_unaligned_be32
	mov	w26, #8
LBB0_14:
	ldr	w23, [x22]
	ldr	w24, [x19, #4]
	mov	x0, x19
	bl	_skb_headlen
	mov	x2, x0
Lloh10:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x24
	bl	_dma_map_single
	mov	x23, x0
	ldr	w0, [x22]
	mov	x1, x23
	bl	_dma_mapping_error
	cbz	x0, LBB0_16
; %bb.15:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_16:
	ldr	w1, [x20, #4]
	mov	x0, x20
	bl	_D_IDX
	mov	w8, #24
	ldp	x10, x9, [x20, #8]
	smaddl	x8, w0, w8, x9
Lloh15:
	adrp	x9, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	x19, [x8, #16]
	str	d0, [x8]
	stp	w25, w23, [x8, #8]
	mov	w8, #48
	smaddl	x21, w0, w8, x10
Lloh17:
	adrp	x8, _PCIE_DESC_TX_EOP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCIE_DESC_TX_EOP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w8, w8, w26
	str	w8, [x21]
	mov	x0, x19
	bl	_skb_headlen
	bl	_cpu_to_le16
	str	x0, [x21, #40]
	mov	x0, x21
	mov	x1, x23
	bl	_nfp_desc_set_dma_addr
	ldr	w0, [x19]
	bl	_cpu_to_le16
	stp	xzr, x0, [x21, #24]
	stp	xzr, xzr, [x21, #8]
	ldr	d0, [x20]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x20]
	mov	x0, x20
	bl	_nfp_net_tx_xmit_more_flush
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdr	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Driver's CTRL TX does not implement gather\n"

l_.str.1:                               ; @.str.1
	.asciz	"CTRL TX on skb without headroom\n"

	.comm	_NFP_META_PORT_ID_CTRL,4,2      ; @NFP_META_PORT_ID_CTRL
	.comm	_NFP_NET_META_PORTID,4,2        ; @NFP_NET_META_PORTID
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_PCIE_DESC_TX_EOP,4,2           ; @PCIE_DESC_TX_EOP
l_.str.2:                               ; @.str.2
	.asciz	"Failed to DMA map TX CTRL buffer\n"

	.no_dead_strip	_nfp_ctrl_tx_one
.subsections_via_symbols
