	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gre_build_header               ## -- Begin function gre_build_header
	.p2align	4, 0x90
_gre_build_header:                      ## @gre_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%edx, %esi
	callq	_skb_push
	movq	8(%r14), %rbx
	movl	(%r12), %edi
	callq	_tnl_flags_to_gre_flags
	movl	%eax, 4(%rbx)
	movl	24(%r12), %eax
	movl	%eax, (%rbx)
	movl	(%r12), %eax
	movq	_TUNNEL_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_TUNNEL_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edi
	orl	%edx, %edi
	movq	_TUNNEL_SEQ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%esi, %edi
	testl	%eax, %edi
	je	LBB0_8
## %bb.1:
	movslq	%r15d, %rdi
	leaq	(%rbx,%rdi,4), %r15
	addq	$-16, %r15
	testl	%eax, %esi
	je	LBB0_3
## %bb.2:
	movq	16(%r12), %rsi
	movq	%rsi, (%r15)
	addq	$-8, %r15
LBB0_3:
	testl	%eax, %edx
	je	LBB0_5
## %bb.4:
	movq	8(%r12), %rdx
	movq	%rdx, (%r15)
	addq	$-8, %r15
LBB0_5:
	testl	%eax, %ecx
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	_SKB_GSO_GRE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	$0, (%r15)
	movl	(%r14), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_skb_checksum
	movl	%eax, %edi
	callq	_csum_fold
	movl	%eax, (%r15)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TUNNEL_KEY,4,2                 ## @TUNNEL_KEY
	.comm	_TUNNEL_CSUM,4,2                ## @TUNNEL_CSUM
	.comm	_TUNNEL_SEQ,4,2                 ## @TUNNEL_SEQ
	.comm	_SKB_GSO_GRE,4,2                ## @SKB_GSO_GRE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gre_build_header               ; -- Begin function gre_build_header
	.p2align	2
_gre_build_header:                      ; @gre_build_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x1, x2
	bl	_skb_push
	ldr	x22, [x19, #8]
	ldr	w0, [x20]
	bl	_tnl_flags_to_gre_flags
	ldr	w8, [x20, #24]
	stp	w8, w0, [x22]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _TUNNEL_KEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TUNNEL_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
Lloh3:
	adrp	x9, _TUNNEL_CSUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TUNNEL_CSUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w12, w9, w10
Lloh6:
	adrp	x11, _TUNNEL_SEQ@GOTPAGE
Lloh7:
	ldr	x11, [x11, _TUNNEL_SEQ@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w12, w12, w11
	tst	w12, w8
	b.eq	LBB0_8
; %bb.1:
	add	x12, x22, w21, sxtw #2
	sub	x21, x12, #16
	tst	w11, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x11, [x20, #16]
	str	x11, [x21], #-8
LBB0_3:
	tst	w10, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x10, [x20, #8]
	str	x10, [x21], #-8
LBB0_5:
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0]
Lloh9:
	adrp	x9, _SKB_GSO_GRE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SKB_GSO_GRE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:
	str	xzr, [x21]
	ldr	w2, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	bl	_skb_checksum
	bl	_csum_fold
	str	w0, [x21]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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	_TUNNEL_KEY,4,2                 ; @TUNNEL_KEY
	.comm	_TUNNEL_CSUM,4,2                ; @TUNNEL_CSUM
	.comm	_TUNNEL_SEQ,4,2                 ; @TUNNEL_SEQ
	.comm	_SKB_GSO_GRE,4,2                ; @SKB_GSO_GRE
.subsections_via_symbols
