	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_gen_ip_tunnel_header_gretap
_mlx5e_gen_ip_tunnel_header_gretap:     ## @mlx5e_gen_ip_tunnel_header_gretap
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdx), %r13
	movl	4(%r13), %edi
	callq	_tunnel_id_to_key32
	movl	%eax, %r14d
	movq	_IPPROTO_GRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_TUNNEL_CSUM@GOTPCREL(%rip), %rax
	movq	_TUNNEL_SEQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r13)
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	_ETH_P_TEB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 4(%r15)
	movq	%r12, %rdi
	callq	_mlx5e_tc_tun_calc_hlen_gretap
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_gre_tnl_flags_to_gre_flags
	movl	%eax, (%r15)
	movq	_TUNNEL_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%r13)
	je	LBB0_4
## %bb.3:
	movslq	%ebx, %rcx
	movl	%r14d, -16(%r15,%rcx,4)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_GRE,4,2                ## @IPPROTO_GRE
	.comm	_TUNNEL_CSUM,4,2                ## @TUNNEL_CSUM
	.comm	_TUNNEL_SEQ,4,2                 ## @TUNNEL_SEQ
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ETH_P_TEB,4,2                  ## @ETH_P_TEB
	.comm	_TUNNEL_KEY,4,2                 ## @TUNNEL_KEY
	.no_dead_strip	_mlx5e_gen_ip_tunnel_header_gretap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_gen_ip_tunnel_header_gretap
_mlx5e_gen_ip_tunnel_header_gretap:     ; @mlx5e_gen_ip_tunnel_header_gretap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x23, [x2]
	ldr	w0, [x23, #4]
	bl	_tunnel_id_to_key32
Lloh0:
	adrp	x8, _IPPROTO_GRE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_GRE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22]
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _TUNNEL_CSUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TUNNEL_CSUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _TUNNEL_SEQ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TUNNEL_SEQ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	x20, x0
Lloh12:
	adrp	x8, _ETH_P_TEB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_P_TEB@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x19, #4]
	mov	x0, x21
	bl	_mlx5e_tc_tun_calc_hlen_gretap
	mov	x21, x0
	ldr	w0, [x23]
	bl	_gre_tnl_flags_to_gre_flags
	str	w0, [x19]
	ldr	w8, [x23]
Lloh15:
	adrp	x9, _TUNNEL_KEY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TUNNEL_KEY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #0
	add	x8, x19, w21, sxtw #2
	stur	w20, [x8, #-16]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_GRE,4,2                ; @IPPROTO_GRE
	.comm	_TUNNEL_CSUM,4,2                ; @TUNNEL_CSUM
	.comm	_TUNNEL_SEQ,4,2                 ; @TUNNEL_SEQ
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ETH_P_TEB,4,2                  ; @ETH_P_TEB
	.comm	_TUNNEL_KEY,4,2                 ; @TUNNEL_KEY
	.no_dead_strip	_mlx5e_gen_ip_tunnel_header_gretap
.subsections_via_symbols
