	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ip6_tnl_link_config
LCPI0_0:
	.quad	-4                              ## 0xfffffffffffffffc
	.quad	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ip6_tnl_link_config:                   ## @ip6_tnl_link_config
	.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	%rdi, %rbx
	movq	40(%rdi), %r14
	movl	28(%r14), %edi
	leaq	28(%rbx), %r15
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	24(%r14), %edi
	leaq	32(%rbx), %r12
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	12(%rbx), %rdi
	movq	%r15, %rsi
	callq	_ipv6_addr_copy
	leaq	8(%rbx), %rdi
	movq	%r12, %rsi
	callq	_ipv6_addr_copy
	movl	16(%rbx), %ecx
	movl	24(%rbx), %eax
	movl	%eax, 4(%rbx)
	movl	$0, (%rbx)
	movq	_IP6_TNL_F_USE_ORIG_TCLASS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	jne	LBB0_2
## %bb.1:
	movq	_IPV6_TCLASS_MASK@GOTPCREL(%rip), %rdx
	movl	20(%rbx), %eax
	andl	(%rdx), %eax
	movl	%eax, (%rbx)
LBB0_2:
	movq	_IP6_TNL_F_USE_ORIG_FLOWLABEL@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_4
## %bb.3:
	movq	_IPV6_FLOWLABEL_MASK@GOTPCREL(%rip), %rcx
	movl	20(%rbx), %edx
	andl	(%rcx), %edx
	orl	%edx, %eax
	movl	%eax, (%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_ip6_tnl_set_cap
	movl	16(%rbx), %eax
	movq	_IP6_TNL_F_CAP_XMIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.5:
	movq	_IP6_TNL_F_CAP_RCV@GOTPCREL(%rip), %rdx
	movq	_IFF_POINTOPOINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%rdx)
	je	LBB0_7
## %bb.6:
	orl	%ecx, 20(%r14)
	jmp	LBB0_8
LBB0_12:
	movq	_IFF_POINTOPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 20(%r14)
	movl	24(%rbx), %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_13
LBB0_7:
	notl	%ecx
	andl	%ecx, 20(%r14)
LBB0_8:
	movl	24(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	%r12, %rdi
	callq	_ipv6_addr_type
	movq	_IPV6_ADDR_MULTICAST@GOTPCREL(%rip), %rcx
	movq	_IPV6_ADDR_LINKLOCAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	orl	(%rcx), %r13d
	andl	%eax, %r13d
	movq	%r14, %rdi
	callq	_dev_net
	movl	24(%rbx), %ecx
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%r13d, %r8d
	callq	_rt6_lookup
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movdqu	(%rcx), %xmm0
	paddq	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%r14)
	movq	_IPV6_MIN_MTU@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%xmm0, %rdx
	cmpq	%rcx, %rdx
	cmovgq	%rdx, %rcx
	movq	%rcx, (%r14)
LBB0_11:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dst_release                    ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_IP6_TNL_F_CAP_XMIT,4,2         ## @IP6_TNL_F_CAP_XMIT
	.comm	_IP6_TNL_F_CAP_RCV,4,2          ## @IP6_TNL_F_CAP_RCV
	.comm	_IFF_POINTOPOINT,4,2            ## @IFF_POINTOPOINT
	.comm	_IPV6_ADDR_MULTICAST,4,2        ## @IPV6_ADDR_MULTICAST
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ## @IPV6_ADDR_LINKLOCAL
	.comm	_IPV6_MIN_MTU,8,3               ## @IPV6_MIN_MTU
	.no_dead_strip	_ip6_tnl_link_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ip6_tnl_link_config
lCPI0_0:
	.quad	-4                              ; 0xfffffffffffffffc
	.quad	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ip6_tnl_link_config:                   ; @ip6_tnl_link_config
	.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	x20, x0
	ldr	x19, [x0, #40]
	ldr	w0, [x19, #28]
	add	x21, x20, #28
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #24]
	add	x22, x20, #32
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	add	x0, x20, #12
	mov	x1, x21
	bl	_ipv6_addr_copy
	add	x0, x20, #8
	mov	x1, x22
	bl	_ipv6_addr_copy
	mov	w8, #0
	ldr	w9, [x20, #24]
	stp	wzr, w9, [x20]
	ldr	w9, [x20, #16]
Lloh0:
	adrp	x10, _IP6_TNL_F_USE_ORIG_TCLASS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IP6_TNL_F_USE_ORIG_TCLASS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IPV6_TCLASS_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPV6_TCLASS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w10, [x20, #20]
	and	w8, w10, w8
	str	w8, [x20]
LBB0_2:
Lloh6:
	adrp	x10, _IP6_TNL_F_USE_ORIG_FLOWLABEL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IP6_TNL_F_USE_ORIG_FLOWLABEL@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x9, _IPV6_FLOWLABEL_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPV6_FLOWLABEL_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w10, [x20, #20]
	and	w9, w10, w9
	orr	w8, w8, w9
	str	w8, [x20]
LBB0_4:
	mov	x0, x20
	bl	_ip6_tnl_set_cap
	ldr	w8, [x20, #16]
Lloh12:
	adrp	x9, _IP6_TNL_F_CAP_XMIT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IP6_TNL_F_CAP_XMIT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh15:
	adrp	x9, _IP6_TNL_F_CAP_RCV@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IP6_TNL_F_CAP_RCV@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x9]
Lloh18:
	adrp	x9, _IFF_POINTOPOINT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IFF_POINTOPOINT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w10, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	w8, [x19, #20]
	orr	w8, w8, w9
	b	LBB0_9
LBB0_7:
Lloh21:
	adrp	x8, _IFF_POINTOPOINT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IFF_POINTOPOINT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	bic	w8, w9, w8
	ldr	w9, [x20, #24]
	stp	w9, w8, [x19, #16]
	b	LBB0_13
LBB0_8:
	ldr	w8, [x19, #20]
	bic	w8, w8, w9
LBB0_9:
	str	w8, [x19, #20]
	ldr	w8, [x20, #24]
	str	w8, [x19, #16]
	mov	x0, x22
	bl	_ipv6_addr_type
Lloh24:
	adrp	x8, _IPV6_ADDR_MULTICAST@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IPV6_ADDR_MULTICAST@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _IPV6_ADDR_LINKLOCAL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IPV6_ADDR_LINKLOCAL@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w23, w8, w0
	mov	x0, x19
	bl	_dev_net
	ldr	w3, [x20, #24]
	mov	x1, x22
	mov	x2, x21
	mov	x4, x23
	bl	_rt6_lookup
	cbz	x0, LBB0_13
; %bb.10:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	q0, [x8]
Lloh30:
	adrp	x8, lCPI0_0@PAGE
Lloh31:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	add.2d	v0, v0, v1
Lloh32:
	adrp	x8, _IPV6_MIN_MTU@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IPV6_MIN_MTU@GOTPAGEOFF]
	str	q0, [x19]
Lloh34:
	ldr	x8, [x8]
	fmov	x9, d0
	cmp	x9, x8
	csel	x8, x9, x8, gt
	str	x8, [x19]
LBB0_12:
	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
	b	_dst_release
LBB0_13:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdrp	Lloh30, Lloh32
	.loh AdrpLdr	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.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	_IP6_TNL_F_CAP_XMIT,4,2         ; @IP6_TNL_F_CAP_XMIT
	.comm	_IP6_TNL_F_CAP_RCV,4,2          ; @IP6_TNL_F_CAP_RCV
	.comm	_IFF_POINTOPOINT,4,2            ; @IFF_POINTOPOINT
	.comm	_IPV6_ADDR_MULTICAST,4,2        ; @IPV6_ADDR_MULTICAST
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ; @IPV6_ADDR_LINKLOCAL
	.comm	_IPV6_MIN_MTU,8,3               ; @IPV6_MIN_MTU
	.no_dead_strip	_ip6_tnl_link_config
.subsections_via_symbols
