	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip6ip6_tnl_xmit
_ip6ip6_tnl_xmit:                       ## @ip6ip6_tnl_xmit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_ipv6_hdr
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	_IPPROTO_IPV6@GOTPCREL(%rip), %rcx
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	(%rcx), %rax
	jne	LBB0_19
LBB0_2:
	movq	%rbx, %rdi
	callq	_ip6_tnl_xmit_ctl
	testl	%eax, %eax
	je	LBB0_19
## %bb.3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ip6_tnl_addr_conflict
	testq	%rax, %rax
	jne	LBB0_19
## %bb.4:
	movq	%r13, %rdi
	callq	_skb_network_header
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_parse_tlv_tnl_enc_lim
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r13, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_skb_network_header
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.7:
	decl	%edx
	jmp	LBB0_10
LBB0_8:
	movq	_IP6_TNL_F_IGN_ENCAP_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-1, %edx
	testl	%eax, 8(%rbx)
	jne	LBB0_10
## %bb.9:
	movl	12(%rbx), %edx
LBB0_10:
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rsi
	addq	$16, %rsi
	leaq	-64(%rbp), %rdi
	movl	$16, %edx
	callq	_memcpy
	movq	_IPPROTO_IPV6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%r12, %rdi
	callq	_ipv6_get_dsfield
	movl	8(%rbx), %ecx
	movq	_IP6_TNL_F_USE_ORIG_TCLASS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_12
## %bb.11:
	movq	_IPV6_TCLASS_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%r12), %edx
	orl	%edx, -64(%rbp)
LBB0_12:
	movq	_IP6_TNL_F_USE_ORIG_FLOWLABEL@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	je	LBB0_14
## %bb.13:
	movq	_IPV6_FLOWLABEL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r12), %ecx
	orl	%ecx, -64(%rbp)
LBB0_14:
	leaq	-64(%rbp), %rcx
	leaq	-72(%rbp), %r9
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ip6_tnl_xmit2
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_19
## %bb.17:
	movq	_ICMPV6_PKT_TOOBIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rcx
	movq	%r13, %rdi
	xorl	%edx, %edx
	movq	%r15, %r8
	jmp	LBB0_18
LBB0_15:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_6:
	movq	_ICMPV6_PARAMPROB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICMPV6_HDR_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$2, %rcx
	movq	(%r13), %r8
	movq	%r13, %rdi
LBB0_18:
	callq	_icmpv6_send
LBB0_19:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_IPV6,8,3               ## @IPPROTO_IPV6
	.comm	_ICMPV6_PARAMPROB,4,2           ## @ICMPV6_PARAMPROB
	.comm	_ICMPV6_HDR_FIELD,4,2           ## @ICMPV6_HDR_FIELD
	.comm	_IP6_TNL_F_IGN_ENCAP_LIMIT,4,2  ## @IP6_TNL_F_IGN_ENCAP_LIMIT
	.comm	_IP6_TNL_F_USE_ORIG_TCLASS,4,2  ## @IP6_TNL_F_USE_ORIG_TCLASS
	.comm	_IPV6_TCLASS_MASK,4,2           ## @IPV6_TCLASS_MASK
	.comm	_IP6_TNL_F_USE_ORIG_FLOWLABEL,4,2 ## @IP6_TNL_F_USE_ORIG_FLOWLABEL
	.comm	_IPV6_FLOWLABEL_MASK,4,2        ## @IPV6_FLOWLABEL_MASK
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_ICMPV6_PKT_TOOBIG,4,2          ## @ICMPV6_PKT_TOOBIG
	.no_dead_strip	_ip6ip6_tnl_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip6ip6_tnl_xmit
_ip6ip6_tnl_xmit:                       ; @ip6ip6_tnl_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x22, x0
	mov	x0, x19
	bl	_ipv6_hdr
	ldr	x8, [x22]
Lloh0:
	adrp	x24, _IPPROTO_IPV6@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IPPROTO_IPV6@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, #0
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_18
; %bb.1:
	mov	x21, x0
	mov	x0, x22
	bl	_ip6_tnl_xmit_ctl
	cbz	w0, LBB0_18
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	bl	_ip6_tnl_addr_conflict
	cbnz	x0, LBB0_18
; %bb.3:
	mov	x0, x19
	bl	_skb_network_header
	mov	x1, x0
	mov	x0, x19
	bl	_parse_tlv_tnl_enc_lim
	cbz	x0, LBB0_6
; %bb.4:
	mov	x23, x0
	mov	x0, x19
	bl	_skb_network_header
	ldr	w8, [x0, x23, lsl #2]
	cbz	w8, LBB0_8
; %bb.5:
	sub	w23, w8, #1
	b	LBB0_10
LBB0_6:
	ldr	w8, [x22, #8]
Lloh2:
	adrp	x9, _IP6_TNL_F_IGN_ENCAP_LIMIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IP6_TNL_F_IGN_ENCAP_LIMIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	mov	w23, #-1
	b	LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _ICMPV6_PARAMPROB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ICMPV6_PARAMPROB@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _ICMPV6_HDR_FIELD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ICMPV6_HDR_FIELD@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x3, x23, #2
	ldr	x4, [x19]
	mov	x0, x19
	b	LBB0_17
LBB0_9:
	ldr	w23, [x22, #12]
LBB0_10:
	add	x1, x22, #16
	add	x0, sp, #16
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x24]
	str	x8, [sp, #24]
	mov	x0, x21
	bl	_ipv6_get_dsfield
	mov	x2, x0
	ldr	w8, [x22, #8]
Lloh11:
	adrp	x9, _IP6_TNL_F_USE_ORIG_TCLASS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IP6_TNL_F_USE_ORIG_TCLASS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
Lloh14:
	adrp	x9, _IPV6_TCLASS_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IPV6_TCLASS_MASK@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh16:
	ldr	w9, [x9]
	and	w9, w9, w10
	ldr	w10, [sp, #16]
	orr	w9, w10, w9
	str	w9, [sp, #16]
LBB0_12:
Lloh17:
	adrp	x9, _IP6_TNL_F_USE_ORIG_FLOWLABEL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IP6_TNL_F_USE_ORIG_FLOWLABEL@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
Lloh20:
	adrp	x8, _IPV6_FLOWLABEL_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IPV6_FLOWLABEL_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh22:
	ldr	w8, [x8]
	and	w8, w8, w9
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
LBB0_14:
	add	x3, sp, #16
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x4, x23
	bl	_ip6_tnl_xmit2
	cbz	w0, LBB0_19
; %bb.15:
Lloh23:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_18
; %bb.16:
Lloh26:
	adrp	x8, _ICMPV6_PKT_TOOBIG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ICMPV6_PKT_TOOBIG@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	x3, [sp, #8]
	mov	x0, x19
	mov	w2, #0
	mov	x4, x20
LBB0_17:
	bl	_icmpv6_send
LBB0_18:
	mov	w0, #-1
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_IPV6,8,3               ; @IPPROTO_IPV6
	.comm	_ICMPV6_PARAMPROB,4,2           ; @ICMPV6_PARAMPROB
	.comm	_ICMPV6_HDR_FIELD,4,2           ; @ICMPV6_HDR_FIELD
	.comm	_IP6_TNL_F_IGN_ENCAP_LIMIT,4,2  ; @IP6_TNL_F_IGN_ENCAP_LIMIT
	.comm	_IP6_TNL_F_USE_ORIG_TCLASS,4,2  ; @IP6_TNL_F_USE_ORIG_TCLASS
	.comm	_IPV6_TCLASS_MASK,4,2           ; @IPV6_TCLASS_MASK
	.comm	_IP6_TNL_F_USE_ORIG_FLOWLABEL,4,2 ; @IP6_TNL_F_USE_ORIG_FLOWLABEL
	.comm	_IPV6_FLOWLABEL_MASK,4,2        ; @IPV6_FLOWLABEL_MASK
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_ICMPV6_PKT_TOOBIG,4,2          ; @ICMPV6_PKT_TOOBIG
	.no_dead_strip	_ip6ip6_tnl_xmit
.subsections_via_symbols
