	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_ctrl_rx_one
_nfp_ctrl_rx_one:                       ## @nfp_ctrl_rx_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movl	8(%rcx), %esi
	movq	%rcx, %rdi
	callq	_D_IDX
	movq	16(%r15), %r14
	movslq	%eax, %rbx
	movq	_PCIE_DESC_RX_DD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14,%rbx,8)
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_dma_rmb
	incl	8(%r15)
	movq	(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	addq	%rcx, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_PCIE_DESC_RX_META_LEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	(%r14,%rbx,8), %r13d
	movl	4(%r14,%rbx,8), %edi
	callq	_le16_to_cpu
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%eax, %r14d
	subl	%r13d, %r14d
	movq	_NFP_NET_RX_BUF_HEADROOM@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %ecx
	addl	(%rax), %ecx
	movq	8(%rdx), %r12
	movq	_NFP_NET_CFG_RX_OFFSET_DYNAMIC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	cmovel	%r13d, %r12d
	addl	%ecx, %r12d
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r15d
	subl	%r13d, %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	4(%rbx), %rdi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	callq	_u64_stats_update_begin
	incl	8(%rbx)
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	addl	%r14d, (%rbx)
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_u64_stats_update_end
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx,%r14), %rsi
	addq	%r15, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_nfp_net_dma_sync_cpu_rx
	addq	8(%rbx,%r14), %r15
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r13d, %r15d
	movl	%r13d, %edx
	callq	_nfp_ctrl_meta_ok
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_nn_dp_warn
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, %r13
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	8(%rax,%rcx), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %esi
	callq	_build_skb
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r15, %rcx
LBB0_6:
	xorl	%r8d, %r8d
LBB0_7:
	callq	_nfp_net_rx_drop
LBB0_8:
	movl	$1, %eax
LBB0_9:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	-80(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nfp_net_napi_alloc_one
	xorl	%edi, %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	jmp	LBB0_7
LBB0_12:
	movq	(%r15), %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_nfp_net_dma_unmap_rx
	movl	-80(%rbp), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_nfp_net_rx_give_one
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skb_reserve
	movq	%rbx, %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_skb_put
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_nfp_app_ctrl_rx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIE_DESC_RX_DD,4,2            ## @PCIE_DESC_RX_DD
	.comm	_PCIE_DESC_RX_META_LEN_MASK,4,2 ## @PCIE_DESC_RX_META_LEN_MASK
	.comm	_NFP_NET_RX_BUF_HEADROOM,4,2    ## @NFP_NET_RX_BUF_HEADROOM
	.comm	_NFP_NET_CFG_RX_OFFSET_DYNAMIC,8,3 ## @NFP_NET_CFG_RX_OFFSET_DYNAMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incorrect metadata for ctrl packet (%d)\n"

	.no_dead_strip	_nfp_ctrl_rx_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_ctrl_rx_one
_nfp_ctrl_rx_one:                       ; @nfp_ctrl_rx_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w1, [x3, #8]
	mov	x0, x3
	bl	_D_IDX
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x24, [x19, #16]
	add	x25, x24, w0, sxtw #3
	ldr	w8, [x25]
Lloh0:
	adrp	x9, _PCIE_DESC_RX_DD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCIE_DESC_RX_DD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	sxtw	x27, w0
	bl	_dma_rmb
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x19]
	add	x8, x8, x27, lsl #4
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	w8, [x25]
Lloh3:
	adrp	x9, _PCIE_DESC_RX_META_LEN_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCIE_DESC_RX_META_LEN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w26, w9, w8
	add	x8, x24, x27, lsl #3
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	mov	x27, x0
	sub	w25, w0, w26
Lloh6:
	adrp	x8, _NFP_NET_RX_BUF_HEADROOM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_NET_RX_BUF_HEADROOM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20]
	ldr	x10, [x20, #8]
Lloh9:
	adrp	x11, _NFP_NET_CFG_RX_OFFSET_DYNAMIC@GOTPAGE
Lloh10:
	ldr	x11, [x11, _NFP_NET_CFG_RX_OFFSET_DYNAMIC@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x10, x11
	csel	w10, w26, w10, eq
	add	w8, w9, w8
	add	w23, w8, w10
	mov	x24, x21
	sub	w21, w23, w26
	add	x28, x22, #4
	mov	x0, x28
	bl	_u64_stats_update_begin
	ldr	w8, [x22, #8]
	add	w8, w8, #1
	str	w8, [x22, #8]
	ldr	w8, [x22]
	add	w8, w8, w25
	str	w8, [x22]
	mov	x0, x28
	ldr	x28, [sp]                       ; 8-byte Folded Reload
	bl	_u64_stats_update_end
	ldr	x8, [x28]
	add	x1, x8, x21
	mov	x0, x20
	mov	x2, x27
	bl	_nfp_net_dma_sync_cpu_rx
	mov	x27, x28
	ldr	x8, [x27, #8]!
	add	x1, x8, x21
	mov	x21, x24
	mov	x0, x24
	mov	x2, x26
	bl	_nfp_ctrl_meta_ok
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x26
	bl	_nn_dp_warn
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	ldr	x0, [x27]
	ldr	w1, [x20, #16]
	bl	_build_skb
	mov	x26, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
LBB0_5:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x28
	mov	x4, #0
LBB0_6:
	bl	_nfp_net_rx_drop
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	add	x1, sp, #12
	mov	x0, x20
	bl	_nfp_net_napi_alloc_one
	mov	x27, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x28
	mov	x4, x26
	b	LBB0_6
LBB0_11:
	ldr	x1, [x28]
	mov	x0, x20
	bl	_nfp_net_dma_unmap_rx
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x27
	bl	_nfp_net_rx_give_one
	mov	x0, x26
	mov	x1, x23
	bl	_skb_reserve
	mov	x0, x26
	mov	x1, x25
	bl	_skb_put
	ldr	w0, [x21]
	mov	x1, x26
	bl	_nfp_app_ctrl_rx
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIE_DESC_RX_DD,4,2            ; @PCIE_DESC_RX_DD
	.comm	_PCIE_DESC_RX_META_LEN_MASK,4,2 ; @PCIE_DESC_RX_META_LEN_MASK
	.comm	_NFP_NET_RX_BUF_HEADROOM,4,2    ; @NFP_NET_RX_BUF_HEADROOM
	.comm	_NFP_NET_CFG_RX_OFFSET_DYNAMIC,8,3 ; @NFP_NET_CFG_RX_OFFSET_DYNAMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incorrect metadata for ctrl packet (%d)\n"

	.no_dead_strip	_nfp_ctrl_rx_one
.subsections_via_symbols
