	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_flower_calc_opt_layer
_nfp_flower_calc_opt_layer:             ## @nfp_flower_calc_opt_layer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	movq	_NFP_FL_MAX_GENEVE_OPT_KEY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	testq	%rdi, %rdi
	jle	LBB0_4
## %bb.3:
	movq	_NFP_FLOWER_LAYER2_GENEVE_OP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rsi)
	addl	$4, (%rdx)
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_FL_MAX_GENEVE_OPT_KEY,8,3  ## @NFP_FL_MAX_GENEVE_OPT_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported offload: geneve options exceed maximum length"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NFP_FLOWER_LAYER2_GENEVE_OP,4,2 ## @NFP_FLOWER_LAYER2_GENEVE_OP
	.no_dead_strip	_nfp_flower_calc_opt_layer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_flower_calc_opt_layer
_nfp_flower_calc_opt_layer:             ; @nfp_flower_calc_opt_layer
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NFP_FL_MAX_GENEVE_OPT_KEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_FL_MAX_GENEVE_OPT_KEY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x3
	bl	_NL_SET_ERR_MSG_MOD
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
	mov	w0, #0
Lloh8:
	adrp	x8, _NFP_FLOWER_LAYER2_GENEVE_OP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NFP_FLOWER_LAYER2_GENEVE_OP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x1]
	orr	w8, w9, w8
	str	w8, [x1]
	ldr	w8, [x2]
	add	w8, w8, #4
	str	w8, [x2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_FL_MAX_GENEVE_OPT_KEY,8,3  ; @NFP_FL_MAX_GENEVE_OPT_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported offload: geneve options exceed maximum length"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NFP_FLOWER_LAYER2_GENEVE_OP,4,2 ; @NFP_FLOWER_LAYER2_GENEVE_OP
	.no_dead_strip	_nfp_flower_calc_opt_layer
.subsections_via_symbols
