	.file	"extr_ip_vs_xmit.c_ipvs_gre_encap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ipvs_gre_encap, @function
ipvs_gre_encap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR IPPROTO_IPIP[rip]
	cmp	QWORD PTR [rcx], rax
	je	.L9
	mov	edi, DWORD PTR ETH_P_IPV6[rip]
	call	htons@PLT
	mov	r13d, eax
.L3:
	mov	rax, QWORD PTR [r12]
	mov	r12d, DWORD PTR [rax]
	and	r12d, DWORD PTR IP_VS_TUNNEL_ENCAP_FLAG_CSUM[rip]
	cmovne	r12d, DWORD PTR TUNNEL_CSUM[rip]
	mov	edi, r12d
	call	gre_calc_hlen@PLT
	mov	ecx, r13d
	mov	edx, r12d
	mov	rdi, rbp
	mov	rsi, rax
	xor	r9d, r9d
	xor	r8d, r8d
	call	gre_build_header@PLT
	mov	rax, QWORD PTR IPPROTO_GRE[rip]
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR ETH_P_IP[rip]
	call	htons@PLT
	mov	r13d, eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ipvs_gre_encap, .-ipvs_gre_encap
	.comm	TUNNEL_CSUM,4,4
	.comm	IP_VS_TUNNEL_ENCAP_FLAG_CSUM,4,4
	.comm	IPPROTO_IPIP,8,8
	.comm	IPPROTO_GRE,8,8
	.comm	ETH_P_IPV6,4,4
	.comm	ETH_P_IP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ip_vs_xmit.c_ipvs_gre_encap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipvs_gre_encap, %function
ipvs_gre_encap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r3
	mov	r4, r2
	ldr	r3, .L10
	ldr	r0, [r5]
	ldr	r3, [r3]
	sub	sp, sp, #12
	cmp	r0, r3
	ldreq	r3, .L10+4
	ldrne	r3, .L10+8
	mov	r6, r1
	ldr	r0, [r3]
	bl	htons
	ldr	r3, .L10+12
	ldr	r2, [r4]
	mov	r7, r0
	ldr	r4, [r2]
	ldr	r2, [r3]
	ands	r4, r4, r2
	ldrne	r3, .L10+16
	ldrne	r4, [r3]
	mov	r0, r4
	bl	gre_calc_hlen
	mov	ip, #0
	mov	r1, r0
	mov	r3, r7
	mov	r2, r4
	mov	r0, r6
	str	ip, [sp, #4]
	str	ip, [sp]
	bl	gre_build_header
	ldr	r3, .L10+20
	ldr	r3, [r3]
	str	r3, [r5]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	.align	2
.L10:
	.word	IPPROTO_IPIP
	.word	ETH_P_IP
	.word	ETH_P_IPV6
	.word	IP_VS_TUNNEL_ENCAP_FLAG_CSUM
	.word	TUNNEL_CSUM
	.word	IPPROTO_GRE
	.size	ipvs_gre_encap, .-ipvs_gre_encap
	.comm	TUNNEL_CSUM,4,4
	.comm	IP_VS_TUNNEL_ENCAP_FLAG_CSUM,4,4
	.comm	IPPROTO_IPIP,4,4
	.comm	IPPROTO_GRE,4,4
	.comm	ETH_P_IPV6,4,4
	.comm	ETH_P_IP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
