	.file	"extr_tc_tun_gre.c_mlx5e_gen_ip_tunnel_header_gretap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx5e_gen_ip_tunnel_header_gretap, @function
mlx5e_gen_ip_tunnel_header_gretap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, QWORD PTR [rdx]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, DWORD PTR 4[r13]
	call	tunnel_id_to_key32@PLT
	mov	r14d, eax
	mov	eax, DWORD PTR IPPROTO_GRE[rip]
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR TUNNEL_CSUM[rip]
	or	eax, DWORD PTR TUNNEL_SEQ[rip]
	test	DWORD PTR 0[r13], eax
	je	.L2
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR ETH_P_TEB[rip]
	call	htons@PLT
	mov	rdi, rbp
	mov	DWORD PTR 4[rbx], eax
	call	mlx5e_tc_tun_calc_hlen_gretap@PLT
	mov	edi, DWORD PTR 0[r13]
	movsx	rbp, eax
	call	gre_tnl_flags_to_gre_flags@PLT
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 0[r13]
	and	eax, DWORD PTR TUNNEL_KEY[rip]
	je	.L1
	mov	DWORD PTR -16[rbx+rbp*4], r14d
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mlx5e_gen_ip_tunnel_header_gretap, .-mlx5e_gen_ip_tunnel_header_gretap
	.comm	TUNNEL_SEQ,4,4
	.comm	TUNNEL_KEY,4,4
	.comm	TUNNEL_CSUM,4,4
	.comm	IPPROTO_GRE,4,4
	.comm	ETH_P_TEB,4,4
	.comm	EOPNOTSUPP,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_tc_tun_gre.c_mlx5e_gen_ip_tunnel_header_gretap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5e_gen_ip_tunnel_header_gretap, %function
mlx5e_gen_ip_tunnel_header_gretap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r7, [r2]
	mov	r6, r0
	ldr	r0, [r7, #4]
	mov	r5, r2
	bl	tunnel_id_to_key32
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, .L9+4
	str	r2, [r4]
	ldr	r2, .L9+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r4, [r7]
	orr	r3, r3, r2
	ands	r4, r3, r4
	beq	.L2
	ldr	r3, .L9+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L9+16
	mov	r8, r0
	ldr	r0, [r3]
	bl	htons
	mov	r3, r0
	mov	r0, r5
	str	r3, [r6, #4]
	bl	mlx5e_tc_tun_calc_hlen_gretap
	mov	r5, r0
	ldr	r0, [r7]
	bl	gre_tnl_flags_to_gre_flags
	ldr	r2, .L9+20
	ldr	r3, [r7]
	ldr	r2, [r2]
	str	r0, [r6]
	ands	r0, r3, r2
	subne	r5, r5, #-1073741820
	strne	r8, [r6, r5, lsl #2]
	movne	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	IPPROTO_GRE
	.word	TUNNEL_CSUM
	.word	TUNNEL_SEQ
	.word	EOPNOTSUPP
	.word	ETH_P_TEB
	.word	TUNNEL_KEY
	.size	mlx5e_gen_ip_tunnel_header_gretap, .-mlx5e_gen_ip_tunnel_header_gretap
	.comm	TUNNEL_SEQ,4,4
	.comm	TUNNEL_KEY,4,4
	.comm	TUNNEL_CSUM,4,4
	.comm	IPPROTO_GRE,4,4
	.comm	ETH_P_TEB,4,4
	.comm	EOPNOTSUPP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
