	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_fl_output
_nfp_fl_output:                         ## @nfp_fl_output
	.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
	movl	%r8d, %r14d
	movq	%rcx, %r8
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %rsi
	movq	_NFP_FL_ACTION_OPCODE_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_NFP_FL_LW_SIZ@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$32, %eax
	shrq	%cl, %rax
	movq	40(%rbp), %rdi
	movq	%rax, 16(%r12)
	movq	(%rdx), %r13
	testq	%r13, %r13
	je	LBB0_7
## %bb.1:
	movl	16(%rbp), %ebx
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	_NFP_FL_OUT_FLAGS_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.4:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_nfp_fl_netdev_is_tunnel_type
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movq	24(%rbp), %rax
	cmpl	$0, (%rax)
	je	LBB0_21
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_7:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_8:
	movq	%rsi, %rbx
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r13, %rdi
	callq	_netif_is_lag_master
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	_NFP_FL_FEATS_LAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_16
## %bb.10:
	movl	%r14d, %edi
	callq	_cpu_to_be16
	movq	%rax, 8(%r12)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_nfp_flower_lag_get_output_id
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.11:
	movq	_NFP_FL_LAG_OUT@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
LBB0_13:
	movq	40(%rbp), %rdi
LBB0_14:
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_nfp_flower_internal_port_can_offload
	testq	%rax, %rax
	je	LBB0_25
## %bb.17:
	movq	_NFP_FL_FEATS_PRE_TUN_RULES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_31
## %bb.18:
	cmpl	$0, 32(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_32
## %bb.19:
	cmpq	$0, 8(%rax)
	jne	LBB0_32
## %bb.20:
	movq	%r13, 8(%rax)
	jmp	LBB0_24
LBB0_21:
	movl	$1, (%rax)
	movq	_NFP_FL_OUT_FLAGS_USE_TUN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_cpu_to_be16
	movq	%rax, 8(%r12)
	movq	_NFP_FL_PORT_TYPE_TUN@GOTPCREL(%rip), %rax
LBB0_22:
	orl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, (%r12)
LBB0_23:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_24:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_25:
	movl	%r14d, %edi
	callq	_cpu_to_be16
	movq	%rax, 8(%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_nfp_netdev_is_nfp_repr
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_netdev_port_same_parent_id
	testl	%eax, %eax
	je	LBB0_34
LBB0_27:
	movq	%r13, %rdi
	callq	_nfp_netdev_is_nfp_repr
	testq	%rax, %rax
	je	LBB0_33
## %bb.28:
	movq	%r13, %rdi
	callq	_nfp_repr_get_port_id
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_23
## %bb.29:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_13
LBB0_30:
	leaq	L_.str.3(%rip), %rsi
	movq	40(%rbp), %rdi
	callq	_NL_SET_ERR_MSG_MOD
	jmp	LBB0_15
LBB0_31:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_13
LBB0_32:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_13
LBB0_33:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_13
LBB0_34:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_FL_ACTION_OPCODE_OUTPUT,4,2 ## @NFP_FL_ACTION_OPCODE_OUTPUT
	.comm	_NFP_FL_LW_SIZ,8,3              ## @NFP_FL_LW_SIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported offload: invalid egress interface for mirred action"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NFP_FL_OUT_FLAGS_LAST,4,2      ## @NFP_FL_OUT_FLAGS_LAST
L_.str.1:                               ## @.str.1
	.asciz	"unsupported offload: egress interface does not match the required tunnel type"

L_.str.2:                               ## @.str.2
	.asciz	"unsupported offload: cannot offload more than one tunnel mirred output per filter"

	.comm	_NFP_FL_OUT_FLAGS_USE_TUN,4,2   ## @NFP_FL_OUT_FLAGS_USE_TUN
	.comm	_NFP_FL_PORT_TYPE_TUN,4,2       ## @NFP_FL_PORT_TYPE_TUN
	.comm	_NFP_FL_FEATS_LAG,4,2           ## @NFP_FL_FEATS_LAG
L_.str.3:                               ## @.str.3
	.asciz	"invalid entry: cannot find group id for LAG action"

	.comm	_NFP_FL_LAG_OUT,4,2             ## @NFP_FL_LAG_OUT
	.comm	_NFP_FL_FEATS_PRE_TUN_RULES,4,2 ## @NFP_FL_FEATS_PRE_TUN_RULES
L_.str.4:                               ## @.str.4
	.asciz	"unsupported offload: pre-tunnel rules not supported in loaded firmware"

L_.str.5:                               ## @.str.5
	.asciz	"unsupported offload: pre-tunnel rules require single egress dev and ptype HOST action"

L_.str.6:                               ## @.str.6
	.asciz	"unsupported offload: ingress and egress interfaces are on different devices"

L_.str.7:                               ## @.str.7
	.asciz	"unsupported offload: egress interface is not an nfp port"

L_.str.8:                               ## @.str.8
	.asciz	"unsupported offload: invalid port id for egress interface"

	.no_dead_strip	_nfp_fl_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_fl_output
_nfp_fl_output:                         ; @nfp_fl_output
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x20, [x29, #24]
	ldr	x28, [x0]
Lloh0:
	adrp	x8, _NFP_FL_ACTION_OPCODE_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_FL_ACTION_OPCODE_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NFP_FL_LW_SIZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFP_FL_LW_SIZ@GOTPAGEOFF]
	str	w8, [x1, #24]
Lloh5:
	ldr	x8, [x9]
	mov	w9, #32
	lsr	x8, x9, x8
	str	x8, [x1, #16]
	ldr	x23, [x2]
	cbz	x23, LBB0_5
; %bb.1:
	mov	x22, x6
	mov	x19, x3
	mov	x21, x1
Lloh6:
	adrp	x8, _NFP_FL_OUT_FLAGS_LAST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_FL_OUT_FLAGS_LAST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w4, #0
	csel	w26, wzr, w8, eq
	cbz	w6, LBB0_6
; %bb.2:
	mov	x27, x7
	mov	x0, x23
	mov	x1, x22
	bl	_nfp_fl_netdev_is_tunnel_type
	cbz	w0, LBB0_10
; %bb.3:
	ldr	w8, [x27]
	cbz	w8, LBB0_18
; %bb.4:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_5:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_6:
	mov	x24, x5
	mov	x25, x0
	mov	x0, x23
	bl	_netif_is_lag_master
	cbz	x0, LBB0_13
; %bb.7:
	ldr	w8, [x28]
Lloh13:
	adrp	x9, _NFP_FL_FEATS_LAG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NFP_FL_FEATS_LAG@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.8:
	mov	x0, x26
	bl	_cpu_to_be16
	str	x0, [x21, #8]
	mov	x0, x25
	mov	x1, x23
	bl	_nfp_flower_lag_get_output_id
	mov	x22, x0
	tbnz	w0, #31, LBB0_26
; %bb.9:
Lloh16:
	adrp	x8, _NFP_FL_LAG_OUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NFP_FL_LAG_OUT@GOTPAGEOFF]
	b	LBB0_19
LBB0_10:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x20
	bl	_NL_SET_ERR_MSG_MOD
Lloh20:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x25
	mov	x1, x23
	bl	_nfp_flower_internal_port_can_offload
	cbz	x0, LBB0_21
; %bb.14:
	ldr	w8, [x28]
Lloh23:
	adrp	x9, _NFP_FL_FEATS_PRE_TUN_RULES@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NFP_FL_FEATS_PRE_TUN_RULES@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.15:
	ldr	w8, [x29, #16]
	cbz	w8, LBB0_28
; %bb.16:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_28
; %bb.17:
	mov	w22, #0
	str	x23, [x19, #8]
	b	LBB0_12
LBB0_18:
	mov	w8, #1
	str	w8, [x27]
Lloh26:
	adrp	x8, _NFP_FL_OUT_FLAGS_USE_TUN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NFP_FL_OUT_FLAGS_USE_TUN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w0, w8, w26
	bl	_cpu_to_be16
	str	x0, [x21, #8]
Lloh29:
	adrp	x8, _NFP_FL_PORT_TYPE_TUN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NFP_FL_PORT_TYPE_TUN@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	orr	w0, w8, w22
	bl	_cpu_to_be32
	str	x0, [x21]
LBB0_20:
	mov	w22, #0
	str	x0, [x19]
	b	LBB0_12
LBB0_21:
	mov	x0, x26
	bl	_cpu_to_be16
	str	x0, [x21, #8]
	mov	x0, x24
	bl	_nfp_netdev_is_nfp_repr
	cbz	x0, LBB0_23
; %bb.22:
	mov	x0, x24
	mov	x1, x23
	bl	_netdev_port_same_parent_id
	cbz	w0, LBB0_30
LBB0_23:
	mov	x0, x23
	bl	_nfp_netdev_is_nfp_repr
	cbz	x0, LBB0_29
; %bb.24:
	mov	x0, x23
	bl	_nfp_repr_get_port_id
	bl	_cpu_to_be32
	str	x0, [x21]
	cbnz	x0, LBB0_20
; %bb.25:
Lloh31:
	adrp	x1, l_.str.8@PAGE
Lloh32:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_11
LBB0_26:
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_NL_SET_ERR_MSG_MOD
	b	LBB0_12
LBB0_27:
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_28:
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_29:
Lloh39:
	adrp	x1, l_.str.7@PAGE
Lloh40:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_30:
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_FL_ACTION_OPCODE_OUTPUT,4,2 ; @NFP_FL_ACTION_OPCODE_OUTPUT
	.comm	_NFP_FL_LW_SIZ,8,3              ; @NFP_FL_LW_SIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported offload: invalid egress interface for mirred action"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NFP_FL_OUT_FLAGS_LAST,4,2      ; @NFP_FL_OUT_FLAGS_LAST
l_.str.1:                               ; @.str.1
	.asciz	"unsupported offload: egress interface does not match the required tunnel type"

l_.str.2:                               ; @.str.2
	.asciz	"unsupported offload: cannot offload more than one tunnel mirred output per filter"

	.comm	_NFP_FL_OUT_FLAGS_USE_TUN,4,2   ; @NFP_FL_OUT_FLAGS_USE_TUN
	.comm	_NFP_FL_PORT_TYPE_TUN,4,2       ; @NFP_FL_PORT_TYPE_TUN
	.comm	_NFP_FL_FEATS_LAG,4,2           ; @NFP_FL_FEATS_LAG
l_.str.3:                               ; @.str.3
	.asciz	"invalid entry: cannot find group id for LAG action"

	.comm	_NFP_FL_LAG_OUT,4,2             ; @NFP_FL_LAG_OUT
	.comm	_NFP_FL_FEATS_PRE_TUN_RULES,4,2 ; @NFP_FL_FEATS_PRE_TUN_RULES
l_.str.4:                               ; @.str.4
	.asciz	"unsupported offload: pre-tunnel rules not supported in loaded firmware"

l_.str.5:                               ; @.str.5
	.asciz	"unsupported offload: pre-tunnel rules require single egress dev and ptype HOST action"

l_.str.6:                               ; @.str.6
	.asciz	"unsupported offload: ingress and egress interfaces are on different devices"

l_.str.7:                               ; @.str.7
	.asciz	"unsupported offload: egress interface is not an nfp port"

l_.str.8:                               ; @.str.8
	.asciz	"unsupported offload: invalid port id for egress interface"

	.no_dead_strip	_nfp_fl_output
.subsections_via_symbols
