	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function geneve_build_header
_geneve_build_header:                   ## @geneve_build_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_GENEVE_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rdi)
	movl	(%rsi), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, (%rdi)
	movl	4(%rsi), %eax
	movq	_TUNNEL_OAM@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, 4(%rdi)
	movq	_TUNNEL_CRIT_OPT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 8(%rdi)
	movq	$0, 32(%rdi)
	movl	8(%rsi), %edi
	movl	28(%rbx), %esi
	callq	_tunnel_id_to_vni
	movq	_ETH_P_TEB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	_TUNNEL_GENEVE_OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_1
## %bb.2:
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ip_tunnel_info_opts_get        ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GENEVE_VER,4,2                 ## @GENEVE_VER
	.comm	_TUNNEL_OAM,4,2                 ## @TUNNEL_OAM
	.comm	_TUNNEL_CRIT_OPT,4,2            ## @TUNNEL_CRIT_OPT
	.comm	_ETH_P_TEB,4,2                  ## @ETH_P_TEB
	.comm	_TUNNEL_GENEVE_OPT,4,2          ## @TUNNEL_GENEVE_OPT
	.no_dead_strip	_geneve_build_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function geneve_build_header
_geneve_build_header:                   ; @geneve_build_header
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GENEVE_VER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GENEVE_VER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x1]
	add	w11, w9, #3
	cmp	w9, #0
	csel	w9, w11, w9, lt
	asr	w9, w9, #2
	str	w9, [x0]
Lloh3:
	adrp	x9, _TUNNEL_OAM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TUNNEL_OAM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w10
	cset	w9, ne
Lloh6:
	adrp	x11, _TUNNEL_CRIT_OPT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _TUNNEL_CRIT_OPT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w10
	str	w8, [x0, #40]
	cset	w8, ne
	stp	w9, w8, [x0, #4]
	str	xzr, [x0, #32]
	ldr	w0, [x1, #8]
	ldr	w1, [x20, #28]
	bl	_tunnel_id_to_vni
Lloh9:
	adrp	x8, _ETH_P_TEB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_P_TEB@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x20, #24]
	str	xzr, [x20, #16]
	ldr	w8, [x19, #4]
Lloh12:
	adrp	x9, _TUNNEL_GENEVE_OPT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TUNNEL_GENEVE_OPT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20, #12]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ip_tunnel_info_opts_get
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GENEVE_VER,4,2                 ; @GENEVE_VER
	.comm	_TUNNEL_OAM,4,2                 ; @TUNNEL_OAM
	.comm	_TUNNEL_CRIT_OPT,4,2            ; @TUNNEL_CRIT_OPT
	.comm	_ETH_P_TEB,4,2                  ; @ETH_P_TEB
	.comm	_TUNNEL_GENEVE_OPT,4,2          ; @TUNNEL_GENEVE_OPT
	.no_dead_strip	_geneve_build_header
.subsections_via_symbols
