	.file	"extr_nfp_net_common.c_nfp_ctrl_tx_one.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Driver's CTRL TX does not implement gather\n"
	.align 8
.LC1:
	.string	"CTRL TX on skb without headroom\n"
	.align 8
.LC2:
	.string	"Failed to DMA map TX CTRL buffer\n"
	.text
	.p2align 4
	.type	nfp_ctrl_tx_one, @function
nfp_ctrl_tx_one:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15d, DWORD PTR [rdx]
	mov	r14, QWORD PTR 24[rsi]
	mov	DWORD PTR 12[rsp], ecx
	mov	r13, QWORD PTR 16[rsi]
	call	skb_shinfo@PLT
	mov	edi, DWORD PTR [rax]
	call	WARN_ON_ONCE@PLT
	test	rax, rax
	jne	.L13
	mov	rdi, r13
	mov	esi, 1
	call	nfp_net_tx_full@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L14
	mov	edi, DWORD PTR [rbx]
	call	nfp_app_ctrl_has_meta@PLT
	test	rax, rax
	je	.L10
	mov	rdi, r12
	call	skb_headroom@PLT
	xor	edi, edi
	cmp	eax, 7
	setle	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L15
	mov	esi, 4
	mov	rdi, r12
	call	skb_push@PLT
	mov	edi, DWORD PTR NFP_META_PORT_ID_CTRL[rip]
	mov	esi, eax
	call	put_unaligned_be32@PLT
	mov	esi, 4
	mov	rdi, r12
	call	skb_push@PLT
	mov	edi, DWORD PTR NFP_NET_META_PORTID[rip]
	mov	esi, eax
	call	put_unaligned_be32@PLT
	mov	DWORD PTR 12[rsp], 8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	call	u64_stats_update_begin@PLT
	add	DWORD PTR 12[rbp], 1
	mov	rdi, rbp
	call	u64_stats_update_end@PLT
	mov	eax, DWORD PTR 12[rsp]
	lea	rdi, 8[rbp]
	mov	rsi, r12
	test	eax, eax
	jne	.L5
	call	__skb_queue_tail@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	nn_dp_warn@PLT
.L3:
	mov	rdi, rbp
	call	u64_stats_update_begin@PLT
	add	DWORD PTR 4[rbp], 1
	mov	rdi, rbp
	call	u64_stats_update_end@PLT
	mov	rdi, r12
	call	dev_kfree_skb_any@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	DWORD PTR 12[rsp], 0
.L7:
	mov	ebx, DWORD PTR DMA_TO_DEVICE[rip]
	mov	rdi, r12
	call	skb_headlen@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	edi, DWORD PTR [r14]
	mov	ecx, ebx
	mov	edx, eax
	call	dma_map_single@PLT
	mov	edi, DWORD PTR [r14]
	mov	esi, eax
	mov	ebx, eax
	call	dma_mapping_error@PLT
	test	rax, rax
	jne	.L16
	mov	esi, DWORD PTR 4[r13]
	mov	rdi, r13
	call	D_IDX@PLT
	mov	rdi, r12
	movabs	rcx, 8589934591
	cdqe
	lea	rbp, [rax+rax*2]
	mov	rax, QWORD PTR 16[r13]
	lea	rax, [rax+rbp*8]
	sal	rbp, 4
	add	rbp, QWORD PTR 8[r13]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 16[rax], r12
	mov	DWORD PTR 12[rax], ebx
	mov	DWORD PTR 8[rax], r15d
	mov	eax, DWORD PTR 12[rsp]
	or	eax, DWORD PTR PCIE_DESC_TX_EOP[rip]
	mov	DWORD PTR 0[rbp], eax
	call	skb_headlen@PLT
	mov	edi, eax
	call	cpu_to_le16@PLT
	mov	esi, ebx
	mov	rdi, rbp
	mov	QWORD PTR 40[rbp], rax
	call	nfp_desc_set_dma_addr@PLT
	mov	edi, DWORD PTR [r12]
	call	cpu_to_le16@PLT
	mov	QWORD PTR 24[rbp], 0
	mov	rdi, r13
	mov	QWORD PTR 32[rbp], rax
	mov	QWORD PTR 16[rbp], 0
	mov	QWORD PTR 8[rbp], 0
	add	DWORD PTR 4[r13], 1
	add	DWORD PTR 0[r13], 1
	call	nfp_net_tx_xmit_more_flush@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	call	__skb_queue_head@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	nn_dp_warn@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	call	nn_dp_warn@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	nfp_ctrl_tx_one, .-nfp_ctrl_tx_one
	.comm	PCIE_DESC_TX_EOP,4,4
	.comm	NFP_NET_META_PORTID,4,4
	.comm	NFP_META_PORT_ID_CTRL,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_nfp_net_common.c_nfp_ctrl_tx_one.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Driver's CTRL TX does not implement gather\012\000"
	.align	2
.LC1:
	.ascii	"CTRL TX on skb without headroom\012\000"
	.align	2
.LC2:
	.ascii	"Failed to DMA map TX CTRL buffer\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfp_ctrl_tx_one, %function
nfp_ctrl_tx_one:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	mov	r0, r2
	mov	r5, r2
	mov	r4, r1
	mov	r8, r3
	ldr	r10, [r2]
	ldr	r9, [r1, #20]
	ldr	r7, [r1, #16]
	bl	skb_shinfo
	ldr	r0, [r0]
	bl	WARN_ON_ONCE
	cmp	r0, #0
	bne	.L13
	mov	r1, #1
	mov	r0, r7
	bl	nfp_net_tx_full
	bl	unlikely
	cmp	r0, #0
	bne	.L14
	ldr	r0, [r6]
	bl	nfp_app_ctrl_has_meta
	cmp	r0, #0
	beq	.L10
	mov	r0, r5
	bl	skb_headroom
	cmp	r0, #7
	movgt	r0, #0
	movle	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L15
	ldr	r3, .L17
	mov	r1, #4
	mov	r0, r5
	ldr	r6, [r3]
	bl	skb_push
	mov	r1, r0
	mov	r0, r6
	bl	put_unaligned_be32
	ldr	r3, .L17+4
	mov	r1, #4
	mov	r0, r5
	ldr	r6, [r3]
	bl	skb_push
	mov	r1, r0
	mov	r0, r6
	bl	put_unaligned_be32
	mov	r8, #8
	b	.L7
.L14:
	mov	r0, r4
	bl	u64_stats_update_begin
	ldr	r3, [r4, #12]
	mov	r0, r4
	add	r3, r3, #1
	str	r3, [r4, #12]
	bl	u64_stats_update_end
	cmp	r8, #0
	mov	r1, r5
	add	r0, r4, #8
	bne	.L5
	mov	r6, #1
	bl	__skb_queue_tail
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r0, r9
	ldr	r1, .L17+8
	bl	nn_dp_warn
.L3:
	mov	r6, #0
	mov	r0, r4
	bl	u64_stats_update_begin
	ldr	r3, [r4, #4]
	mov	r0, r4
	add	r3, r3, #1
	str	r3, [r4, #4]
	bl	u64_stats_update_end
	mov	r0, r5
	bl	dev_kfree_skb_any
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r8, r0
.L7:
	mov	r0, r5
	ldr	r6, [r9]
	ldr	fp, [r5, #4]
	bl	skb_headlen
	ldr	r3, .L17+12
	mov	r2, r0
	mov	r1, fp
	mov	r0, r6
	ldr	r3, [r3]
	bl	dma_map_single
	mov	fp, r0
	ldr	r0, [r9]
	mov	r1, fp
	bl	dma_mapping_error
	subs	r6, r0, #0
	bne	.L16
	ldr	r1, [r7, #4]
	mov	r0, r7
	bl	D_IDX
	mov	ip, #1
	mvn	lr, #0
	ldr	r3, .L17+16
	ldr	r2, [r7, #12]
	ldr	r9, [r3]
	add	r1, r0, r0, lsl #2
	orr	r8, r9, r8
	ldr	r9, [r7, #8]
	add	r3, r2, r1, lsl #2
	add	r4, r0, r0, lsl ip
	str	r5, [r3, #16]
	str	fp, [r3, #12]
	mov	r0, r5
	str	lr, [r2, r1, lsl #2]
	str	ip, [r3, #4]
	str	r10, [r3, #8]
	str	r8, [r9, r4, lsl #3]
	bl	skb_headlen
	bl	cpu_to_le16
	add	r4, r9, r4, lsl #3
	mov	r1, fp
	str	r0, [r4, #20]
	mov	r0, r4
	bl	nfp_desc_set_dma_addr
	ldr	r0, [r5]
	bl	cpu_to_le16
	ldr	r2, [r7, #4]
	ldr	r3, [r7]
	add	r2, r2, #1
	add	r3, r3, #1
	str	r0, [r4, #16]
	str	r6, [r4, #12]
	str	r6, [r4, #8]
	str	r6, [r4, #4]
	mov	r0, r7
	str	r2, [r7, #4]
	str	r3, [r7]
	bl	nfp_net_tx_xmit_more_flush
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r6, #1
	bl	__skb_queue_head
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r0, r9
	ldr	r1, .L17+20
	bl	nn_dp_warn
	b	.L3
.L16:
	mov	r0, r9
	ldr	r1, .L17+24
	bl	nn_dp_warn
	b	.L3
.L18:
	.align	2
.L17:
	.word	NFP_META_PORT_ID_CTRL
	.word	NFP_NET_META_PORTID
	.word	.LC0
	.word	DMA_TO_DEVICE
	.word	PCIE_DESC_TX_EOP
	.word	.LC1
	.word	.LC2
	.size	nfp_ctrl_tx_one, .-nfp_ctrl_tx_one
	.comm	PCIE_DESC_TX_EOP,4,4
	.comm	NFP_NET_META_PORTID,4,4
	.comm	NFP_META_PORT_ID_CTRL,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
