	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_tc_tun_create_header_ipv4 ## -- Begin function mlx5e_tc_tun_create_header_ipv4
	.p2align	4, 0x90
_mlx5e_tc_tun_create_header_ipv4:       ## @mlx5e_tc_tun_create_header_ipv4
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	(%rdi), %edi
	movq	_max_encap_header_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_ESW
	movl	%eax, %r15d
	movq	72(%r14), %r12
	movq	$0, -48(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -56(%rbp)
	movl	12(%r12), %eax
	movl	%eax, -60(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -64(%rbp)
	movl	(%r12), %eax
	movl	%eax, -52(%rbp)
	leaq	-52(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-88(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-64(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mlx5e_route_lookup_ipv4
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movq	-72(%rbp), %rdi
	callq	_is_vlan_dev
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
	movq	64(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %ebx
	addl	$28, %ebx
	cmpl	%ebx, %r15d
	jge	LBB0_6
## %bb.5:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_mlx5_core_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, %r15
	movl	%ebx, -80(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax
	movl	40(%rax), %ecx
	leaq	48(%r14), %rdi
	movl	%ecx, 56(%r14)
	movq	32(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 52(%r14)
	movl	24(%rax), %esi
	movq	16(%rax), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	-88(%rbp), %rdi
	movq	%rdi, 16(%r14)
	movq	-72(%rbp), %rax
	movq	%rax, 40(%r14)
	callq	_netdev_priv
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_mlx5e_rep_encap_entry_attach
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	movq	-48(%rbp), %rdi
	addq	$4, %rdi
	callq	_read_lock_bh
	movq	-48(%rbp), %rax
	movl	(%rax), %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movl	8(%rax), %esi
	movl	36(%r14), %edi
	callq	_ether_addr_copy
	movq	-48(%rbp), %rdi
	addq	$4, %rdi
	callq	_read_unlock_bh
	movq	-72(%rbp), %rsi
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_gen_eth_tnl_hdr
	movl	4(%r12), %ecx
	movl	%ecx, 24(%rax)
	movabsq	$21474836484, %rcx              ## imm = 0x500000004
	movq	%rcx, (%rax)
	movl	-52(%rbp), %ecx
	movl	%ecx, 8(%rax)
	movl	-60(%rbp), %ecx
	movl	%ecx, 20(%rax)
	movl	-64(%rbp), %ecx
	movl	%ecx, 16(%rax)
	leaq	28(%rax), %rdi
	leaq	12(%rax), %rsi
	movq	%r14, %rdx
	callq	_mlx5e_gen_ip_tunnel_header
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
LBB0_15:
	movq	16(%r14), %rdi
	callq	_netdev_priv
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_mlx5e_rep_encap_entry_detach
LBB0_16:
	movq	%r15, %rdi
	callq	_kfree
LBB0_17:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_neigh_release
	jmp	LBB0_19
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%r14)
	movq	%r15, 8(%r14)
	movq	_NUD_VALID@GOTPCREL(%rip), %rax
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.13:
	movl	(%r13), %edi
	movl	32(%r14), %esi
	movq	_MLX5_FLOW_NAMESPACE_FDB@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rcx
	callq	_mlx5_packet_reformat_alloc
	movl	%eax, 28(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:
	movl	28(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_12:
	movq	-48(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_neigh_event_send
	jmp	LBB0_17
LBB0_20:
	movq	_MLX5_ENCAP_ENTRY_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r14)
	movq	-88(%rbp), %rdi
	callq	_netdev_priv
	movl	%eax, %edi
	callq	_mlx5e_rep_queue_neigh_stats_work
	movq	-48(%rbp), %rdi
	callq	_neigh_release
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_max_encap_header_size,4,2      ## @max_encap_header_size
	.comm	_VLAN_ETH_HLEN,4,2              ## @VLAN_ETH_HLEN
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encap size %d too big, max supported is %d\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_NUD_VALID,4,2                  ## @NUD_VALID
	.comm	_MLX5_FLOW_NAMESPACE_FDB,4,2    ## @MLX5_FLOW_NAMESPACE_FDB
	.comm	_MLX5_ENCAP_ENTRY_VALID,4,2     ## @MLX5_ENCAP_ENTRY_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mlx5e_tc_tun_create_header_ipv4
lCPI0_0:
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mlx5e_tc_tun_create_header_ipv4
	.p2align	2
_mlx5e_tc_tun_create_header_ipv4:       ; @mlx5e_tc_tun_create_header_ipv4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _max_encap_header_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_encap_header_size@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_ESW
	mov	x21, x0
	ldr	x24, [x19, #72]
	str	xzr, [sp, #24]
	ldr	w8, [x24, #4]
	str	w8, [sp, #16]
	ldr	d0, [x24, #8]
	str	d0, [sp, #8]
	ldr	w8, [x24]
	str	w8, [sp, #4]
	add	x2, sp, #40
	add	x3, sp, #32
	add	x4, sp, #8
	add	x5, sp, #24
	add	x6, sp, #4
	mov	x0, x20
	mov	x1, x22
	bl	_mlx5e_route_lookup_ipv4
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	x0, [sp, #32]
	bl	_is_vlan_dev
Lloh3:
	adrp	x8, _VLAN_ETH_HLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w22, [x8]
	ldr	x8, [x19, #64]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	add	w8, w22, w0
	add	w22, w8, #28
	cmp	w21, w22
	b.ge	LBB0_3
; %bb.2:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_mlx5_core_warn
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x21, x0
	ldr	x8, [sp, #24]
	ldr	w9, [x8, #40]
	add	x0, x19, #48
	str	w9, [x19, #56]
	ldr	x9, [x8, #32]
	ldr	w9, [x9]
	str	w9, [x19, #52]
	ldr	w1, [x8, #24]
	ldr	x8, [x8, #16]
	ldr	w2, [x8]
	bl	_memcpy
	ldp	x8, x0, [sp, #32]
	str	x0, [x19, #16]
	str	x8, [x19, #40]
	bl	_netdev_priv
	mov	x1, x19
	bl	_mlx5e_rep_encap_entry_attach
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x8, [sp, #24]
	add	x0, x8, #4
	bl	_read_lock_bh
	ldr	x8, [sp, #24]
	ldr	w25, [x8]
	ldr	w0, [x19, #36]
	ldr	w1, [x8, #8]
	bl	_ether_addr_copy
	ldr	x8, [sp, #24]
	add	x0, x8, #4
	bl	_read_unlock_bh
	ldr	x1, [sp, #32]
Lloh14:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_gen_eth_tnl_hdr
	ldr	w8, [x24, #4]
	str	w8, [x0, #24]
Lloh17:
	adrp	x8, lCPI0_0@PAGE
Lloh18:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	ldr	w8, [sp, #4]
	str	w8, [x0, #8]
	ldr	d0, [sp, #8]
	str	d0, [x0, #16]
	add	x8, x0, #28
	add	x1, x0, #12
	mov	x0, x8
	mov	x2, x19
	bl	_mlx5e_gen_ip_tunnel_header
	mov	x23, x0
	cbz	w0, LBB0_12
LBB0_6:
	ldr	x0, [x19, #16]
	bl	_netdev_priv
	mov	x1, x19
	bl	_mlx5e_rep_encap_entry_detach
LBB0_7:
	mov	x0, x21
	bl	_kfree
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_11
LBB0_8:
	bl	_neigh_release
	b	LBB0_11
LBB0_9:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	str	w22, [x19]
	str	x21, [x19, #8]
Lloh21:
	adrp	x8, _NUD_VALID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NUD_VALID@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_15
; %bb.13:
	ldr	w0, [x20]
	ldr	w1, [x19, #32]
Lloh24:
	adrp	x8, _MLX5_FLOW_NAMESPACE_FDB@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MLX5_FLOW_NAMESPACE_FDB@GOTPAGEOFF]
Lloh26:
	ldr	w4, [x8]
	mov	x2, x22
	mov	x3, x21
	bl	_mlx5_packet_reformat_alloc
	str	w0, [x19, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w0, [x19, #28]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_6
LBB0_15:
	ldr	x0, [sp, #24]
	mov	x1, #0
	bl	_neigh_event_send
	mov	w23, #0
	ldr	x0, [sp, #24]
	cbnz	x0, LBB0_8
	b	LBB0_11
LBB0_16:
Lloh27:
	adrp	x8, _MLX5_ENCAP_ENTRY_VALID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MLX5_ENCAP_ENTRY_VALID@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x0, [sp, #40]
	bl	_netdev_priv
	bl	_mlx5e_rep_queue_neigh_stats_work
	ldr	x0, [sp, #24]
	bl	_neigh_release
	mov	w23, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_max_encap_header_size,4,2      ; @max_encap_header_size
	.comm	_VLAN_ETH_HLEN,4,2              ; @VLAN_ETH_HLEN
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encap size %d too big, max supported is %d\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_NUD_VALID,4,2                  ; @NUD_VALID
	.comm	_MLX5_FLOW_NAMESPACE_FDB,4,2    ; @MLX5_FLOW_NAMESPACE_FDB
	.comm	_MLX5_ENCAP_ENTRY_VALID,4,2     ; @MLX5_ENCAP_ENTRY_VALID
.subsections_via_symbols
