	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_fl_push_mpls
_nfp_fl_push_mpls:                      ## @nfp_fl_push_mpls
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NFP_FL_ACTION_OPCODE_PUSH_MPLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_NFP_FL_LW_SIZ@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$24, %eax
	shrq	%cl, %rax
	movq	%rax, 8(%rdi)
	movl	(%rsi), %eax
	movq	_ACT_MPLS_BOS_NOT_SET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_3
LBB0_1:
	movq	%rdi, %r14
	movq	_MPLS_LS_S_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_MPLS_LS_TC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	4(%rsi), %edi
	movl	%edi, %edx
	shll	%cl, %edx
	movq	_ACT_MPLS_TC_NOT_SET@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpl	(%rcx), %edi
	movl	8(%rsi), %ebx
	cmovel	%r15d, %edx
	movq	_MPLS_LS_LABEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movl	12(%rsi), %edi
	movq	_MPLS_LS_TTL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	orl	%ebx, %edi
	orl	%edx, %edi
	movl	16(%rsi), %eax
	movl	%eax, 4(%r14)
	callq	_cpu_to_be32
	movl	%eax, (%r14)
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_FL_ACTION_OPCODE_PUSH_MPLS,4,2 ## @NFP_FL_ACTION_OPCODE_PUSH_MPLS
	.comm	_NFP_FL_LW_SIZ,8,3              ## @NFP_FL_LW_SIZ
	.comm	_ACT_MPLS_BOS_NOT_SET,4,2       ## @ACT_MPLS_BOS_NOT_SET
	.comm	_MPLS_LS_S_SHIFT,4,2            ## @MPLS_LS_S_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported offload: BOS field must explicitly be set for MPLS push"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ACT_MPLS_TC_NOT_SET,4,2        ## @ACT_MPLS_TC_NOT_SET
	.comm	_MPLS_LS_TC_SHIFT,4,2           ## @MPLS_LS_TC_SHIFT
	.comm	_MPLS_LS_LABEL_SHIFT,4,2        ## @MPLS_LS_LABEL_SHIFT
	.comm	_MPLS_LS_TTL_SHIFT,4,2          ## @MPLS_LS_TTL_SHIFT
	.no_dead_strip	_nfp_fl_push_mpls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_fl_push_mpls
_nfp_fl_push_mpls:                      ; @nfp_fl_push_mpls
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _NFP_FL_ACTION_OPCODE_PUSH_MPLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_FL_ACTION_OPCODE_PUSH_MPLS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
Lloh3:
	adrp	x8, _NFP_FL_LW_SIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_FL_LW_SIZ@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #24
	lsr	x8, x9, x8
	str	x8, [x0, #8]
	ldr	w8, [x1]
Lloh6:
	adrp	x9, _ACT_MPLS_BOS_NOT_SET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACT_MPLS_BOS_NOT_SET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_NL_SET_ERR_MSG_MOD
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x0
Lloh14:
	adrp	x9, _MPLS_LS_S_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MPLS_LS_S_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _ACT_MPLS_TC_NOT_SET@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ACT_MPLS_TC_NOT_SET@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh19:
	ldr	w9, [x10]
Lloh20:
	adrp	x10, _MPLS_LS_TC_SHIFT@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MPLS_LS_TC_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	ldp	w11, w12, [x1, #4]
	lsl	w10, w11, w10
	cmp	w11, w9
	csel	w9, wzr, w10, eq
Lloh23:
	adrp	x10, _MPLS_LS_LABEL_SHIFT@GOTPAGE
Lloh24:
	ldr	x10, [x10, _MPLS_LS_LABEL_SHIFT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh25:
	ldr	w9, [x10]
	lsl	w9, w12, w9
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _MPLS_LS_TTL_SHIFT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MPLS_LS_TTL_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	ldp	w10, w11, [x1, #12]
	lsl	w9, w10, w9
	orr	w0, w8, w9
	str	w11, [x19, #4]
	bl	_cpu_to_be32
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_FL_ACTION_OPCODE_PUSH_MPLS,4,2 ; @NFP_FL_ACTION_OPCODE_PUSH_MPLS
	.comm	_NFP_FL_LW_SIZ,8,3              ; @NFP_FL_LW_SIZ
	.comm	_ACT_MPLS_BOS_NOT_SET,4,2       ; @ACT_MPLS_BOS_NOT_SET
	.comm	_MPLS_LS_S_SHIFT,4,2            ; @MPLS_LS_S_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported offload: BOS field must explicitly be set for MPLS push"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ACT_MPLS_TC_NOT_SET,4,2        ; @ACT_MPLS_TC_NOT_SET
	.comm	_MPLS_LS_TC_SHIFT,4,2           ; @MPLS_LS_TC_SHIFT
	.comm	_MPLS_LS_LABEL_SHIFT,4,2        ; @MPLS_LS_LABEL_SHIFT
	.comm	_MPLS_LS_TTL_SHIFT,4,2          ; @MPLS_LS_TTL_SHIFT
	.no_dead_strip	_nfp_fl_push_mpls
.subsections_via_symbols
