	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxlan_build_gbp_hdr
_vxlan_build_gbp_hdr:                   ## @vxlan_build_gbp_hdr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdx), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.1:
	movq	_VXLAN_HF_GBP@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_VXLAN_GBP_DONT_LEARN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	movl	$1, %eax
	cmovel	%ecx, %eax
	movl	%eax, (%rbx)
	movq	_VXLAN_GBP_POLICY_APPLIED@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_3
## %bb.2:
	movl	$1, 4(%rbx)
LBB0_3:
	movq	_VXLAN_GBP_ID_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_htons
	movl	%eax, 8(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VXLAN_HF_GBP,4,2               ## @VXLAN_HF_GBP
	.comm	_VXLAN_GBP_DONT_LEARN,4,2       ## @VXLAN_GBP_DONT_LEARN
	.comm	_VXLAN_GBP_POLICY_APPLIED,4,2   ## @VXLAN_GBP_POLICY_APPLIED
	.comm	_VXLAN_GBP_ID_MASK,4,2          ## @VXLAN_GBP_ID_MASK
	.no_dead_strip	_vxlan_build_gbp_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxlan_build_gbp_hdr
_vxlan_build_gbp_hdr:                   ; @vxlan_build_gbp_hdr
	.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
	ldr	w8, [x2]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, _VXLAN_HF_GBP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VXLAN_HF_GBP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x0]
	orr	w9, w10, w9
	str	w9, [x0]
Lloh3:
	adrp	x10, _VXLAN_GBP_DONT_LEARN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VXLAN_GBP_DONT_LEARN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	csinc	w9, w9, wzr, eq
	str	w9, [x0]
Lloh6:
	adrp	x9, _VXLAN_GBP_POLICY_APPLIED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VXLAN_GBP_POLICY_APPLIED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	w9, #1
	str	w9, [x19, #4]
LBB0_3:
Lloh9:
	adrp	x9, _VXLAN_GBP_ID_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VXLAN_GBP_ID_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_htons
	str	w0, [x19, #8]
LBB0_4:
	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	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VXLAN_HF_GBP,4,2               ; @VXLAN_HF_GBP
	.comm	_VXLAN_GBP_DONT_LEARN,4,2       ; @VXLAN_GBP_DONT_LEARN
	.comm	_VXLAN_GBP_POLICY_APPLIED,4,2   ; @VXLAN_GBP_POLICY_APPLIED
	.comm	_VXLAN_GBP_ID_MASK,4,2          ; @VXLAN_GBP_ID_MASK
	.no_dead_strip	_vxlan_build_gbp_hdr
.subsections_via_symbols
