	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_fl_push_geneve_options
_nfp_fl_push_geneve_options:            ## @nfp_fl_push_geneve_options
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	(%rdx), %rbx
	movq	%rbx, %rdi
	callq	_ip_tunnel_info_opts
	movq	%rbx, %rdi
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	_NFP_FL_MAX_GENEVE_OPT_CNT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	movq	_NFP_FL_MAX_GENEVE_OPT_ACT@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	testl	%r10d, %r10d
	cmovlel	%r12d, %r10d
	movl	(%rsi), %r9d
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %r8
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, %r10d
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%rax), %rbx
	shlq	$2, %rbx
	addl	%ebx, %r15d
	addl	$40, %r15d
	cmpl	%r9d, %r15d
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	16(%rbx), %rdx
	subl	%edx, %ecx
	leaq	(%rax,%rbx,4), %rax
	addq	$64, %rax
	incl	%r12d
	testl	%ecx, %ecx
	jg	LBB0_3
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
LBB0_7:
	movq	%r14, %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %r14d
	leal	(%r14,%r15), %eax
	movq	_NFP_FL_MAX_A_SIZ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_10
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rdx, %r14
	jmp	LBB0_9
LBB0_10:
	movl	%eax, (%rsi)
	callq	_ip_tunnel_info_opts
	movq	%rax, %rbx
	xorl	%eax, %eax
	testl	%r12d, %r12d
	je	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rdx
	leaq	40(,%rdx,4), %rax
	subl	%eax, %r15d
	leal	(%r15,%r14), %ecx
	movslq	%ecx, %rsi
	movq	(%r13), %rdi
	movq	_NFP_FL_ACTION_OPCODE_PUSH_GENEVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rdi,%rsi,4)
	movq	_NFP_FL_LW_SIZ@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shrq	%cl, %rax
	movq	%rax, 24(%rdi,%rsi,4)
	movq	$0, 16(%rdi,%rsi,4)
	movl	12(%rbx), %eax
	movl	%eax, 12(%rdi,%rsi,4)
	movl	8(%rbx), %eax
	movl	%eax, 8(%rdi,%rsi,4)
	movl	%edx, (%rdi,%rsi,4)
	shlq	$2, %rdx
	leaq	(%rdi,%rsi,4), %rdi
	addq	$4, %rdi
	movl	4(%rbx), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	(%rbx), %rax
	shlq	$4, %rax
	addq	%rax, %rbx
	addq	$64, %rbx
	decl	%r12d
	jne	LBB0_11
## %bb.12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	movq	%r8, %rsi
LBB0_9:
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_FL_MAX_GENEVE_OPT_CNT,4,2  ## @NFP_FL_MAX_GENEVE_OPT_CNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported offload: maximum allowed number of geneve options exceeded"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NFP_FL_MAX_GENEVE_OPT_ACT,4,2  ## @NFP_FL_MAX_GENEVE_OPT_ACT
L_.str.1:                               ## @.str.1
	.asciz	"unsupported offload: maximum allowed action list size exceeded at push geneve options"

	.comm	_NFP_FL_MAX_A_SIZ,4,2           ## @NFP_FL_MAX_A_SIZ
	.comm	_NFP_FL_ACTION_OPCODE_PUSH_GENEVE,4,2 ## @NFP_FL_ACTION_OPCODE_PUSH_GENEVE
	.comm	_NFP_FL_LW_SIZ,8,3              ## @NFP_FL_LW_SIZ
	.no_dead_strip	_nfp_fl_push_geneve_options
.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_geneve_options
_nfp_fl_push_geneve_options:            ; @nfp_fl_push_geneve_options
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x2]
	mov	x0, x22
	bl	_ip_tunnel_info_opts
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w23, #0
	mov	w24, #0
Lloh0:
	adrp	x9, _NFP_FL_MAX_GENEVE_OPT_CNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_FL_MAX_GENEVE_OPT_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
Lloh3:
	adrp	x9, _NFP_FL_MAX_GENEVE_OPT_ACT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFP_FL_MAX_GENEVE_OPT_ACT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w10, #0
	csel	w10, w10, wzr, gt
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
Lloh8:
	adrp	x11, l_.str.1@PAGE
Lloh9:
	add	x11, x11, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, w23
	b.eq	LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x12, [x0]
	lsl	x12, x12, #2
	add	w13, w24, w12
	add	w24, w13, #40
	cmp	w24, w9
	b.gt	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x12, x12, #16
	sub	w8, w8, w12
	add	x0, x0, x12, lsl #2
	add	w23, w23, #1
	cmp	w8, #0
	b.gt	LBB0_2
	b	LBB0_6
LBB0_5:
	mov	w24, #0
	mov	w23, #0
LBB0_6:
	ldr	w25, [x21]
Lloh10:
	adrp	x8, _NFP_FL_MAX_A_SIZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NFP_FL_MAX_A_SIZ@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x8]
	add	w8, w25, w24
	cmp	w8, w9
	b.le	LBB0_8
; %bb.7:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_8:
	str	w8, [x21]
	mov	x0, x22
	bl	_ip_tunnel_info_opts
	cbz	w23, LBB0_11
; %bb.9:
	mov	x20, x0
Lloh15:
	adrp	x21, _NFP_FL_ACTION_OPCODE_PUSH_GENEVE@GOTPAGE
Lloh16:
	ldr	x21, [x21, _NFP_FL_ACTION_OPCODE_PUSH_GENEVE@GOTPAGEOFF]
Lloh17:
	adrp	x22, _NFP_FL_LW_SIZ@GOTPAGE
Lloh18:
	ldr	x22, [x22, _NFP_FL_LW_SIZ@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w23, w23, #1
	ldrsw	x8, [x20]
	lsl	x2, x8, #2
	add	x9, x2, #40
	sub	w24, w24, w9
	add	w10, w24, w25
	ldr	x11, [x19]
	add	x10, x11, w10, sxtw #2
	ldr	w11, [x21]
	str	w11, [x10, #32]
	ldr	x11, [x22]
	lsr	x9, x9, x11
	stp	xzr, x9, [x10, #16]
	ldr	d0, [x20, #8]
	str	d0, [x10, #8]
	str	w8, [x10]
	add	x0, x10, #4
	ldr	w1, [x20, #4]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x8, [x20]
	add	x8, x20, x8, lsl #4
	add	x20, x8, #64
	cbnz	w23, LBB0_10
LBB0_11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
	mov	x1, x11
LBB0_13:
	mov	x0, x20
	bl	_NL_SET_ERR_MSG_MOD
Lloh19:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_FL_MAX_GENEVE_OPT_CNT,4,2  ; @NFP_FL_MAX_GENEVE_OPT_CNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported offload: maximum allowed number of geneve options exceeded"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NFP_FL_MAX_GENEVE_OPT_ACT,4,2  ; @NFP_FL_MAX_GENEVE_OPT_ACT
l_.str.1:                               ; @.str.1
	.asciz	"unsupported offload: maximum allowed action list size exceeded at push geneve options"

	.comm	_NFP_FL_MAX_A_SIZ,4,2           ; @NFP_FL_MAX_A_SIZ
	.comm	_NFP_FL_ACTION_OPCODE_PUSH_GENEVE,4,2 ; @NFP_FL_ACTION_OPCODE_PUSH_GENEVE
	.comm	_NFP_FL_LW_SIZ,8,3              ; @NFP_FL_LW_SIZ
	.no_dead_strip	_nfp_fl_push_geneve_options
.subsections_via_symbols
