	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip6_tnl_set_cap
_ip6_tnl_set_cap:                       ## @ip6_tnl_set_cap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$20, %rdi
	callq	_ipv6_addr_type
	movl	%eax, %r14d
	leaq	16(%rbx), %rdi
	callq	_ipv6_addr_type
	movq	_IP6_TNL_F_CAP_XMIT@GOTPCREL(%rip), %r9
	movq	_IP6_TNL_F_CAP_RCV@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	orl	(%r9), %edx
	notl	%edx
	andl	(%rbx), %edx
	movl	%edx, (%rbx)
	movq	_IPV6_ADDR_UNICAST@GOTPCREL(%rip), %r10
	movl	(%r10), %edi
	movq	_IPV6_ADDR_MULTICAST@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%edi, %esi
	testl	%r14d, %esi
	je	LBB0_9
## %bb.1:
	andl	%eax, %esi
	je	LBB0_9
## %bb.2:
	movl	%eax, %esi
	orl	%r14d, %esi
	movq	_IPV6_ADDR_LOOPBACK@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	jne	LBB0_9
## %bb.3:
	movq	_IPV6_ADDR_LINKLOCAL@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_5
## %bb.4:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
LBB0_5:
	testl	%r14d, %edi
	je	LBB0_7
## %bb.6:
	orl	(%r9), %edx
	movl	%edx, (%rbx)
	movl	(%r10), %edi
LBB0_7:
	testl	%eax, %edi
	je	LBB0_9
## %bb.8:
	orl	(%r8), %edx
	movl	%edx, (%rbx)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_IPV6_ADDR_UNICAST,4,2          ## @IPV6_ADDR_UNICAST
	.comm	_IPV6_ADDR_MULTICAST,4,2        ## @IPV6_ADDR_MULTICAST
	.comm	_IPV6_ADDR_LOOPBACK,4,2         ## @IPV6_ADDR_LOOPBACK
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ## @IPV6_ADDR_LINKLOCAL
	.no_dead_strip	_ip6_tnl_set_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip6_tnl_set_cap
_ip6_tnl_set_cap:                       ; @ip6_tnl_set_cap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #20
	bl	_ipv6_addr_type
	mov	x20, x0
	add	x0, x19, #16
	bl	_ipv6_addr_type
Lloh0:
	adrp	x11, _IP6_TNL_F_CAP_XMIT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _IP6_TNL_F_CAP_XMIT@GOTPAGEOFF]
	ldr	w9, [x11]
Lloh2:
	adrp	x8, _IP6_TNL_F_CAP_RCV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IP6_TNL_F_CAP_RCV@GOTPAGEOFF]
	ldr	w10, [x8]
	orr	w9, w10, w9
	ldr	w10, [x19]
	bic	w9, w10, w9
	str	w9, [x19]
Lloh4:
	adrp	x12, _IPV6_ADDR_UNICAST@GOTPAGE
Lloh5:
	ldr	x12, [x12, _IPV6_ADDR_UNICAST@GOTPAGEOFF]
	ldr	w10, [x12]
Lloh6:
	adrp	x13, _IPV6_ADDR_MULTICAST@GOTPAGE
Lloh7:
	ldr	x13, [x13, _IPV6_ADDR_MULTICAST@GOTPAGEOFF]
Lloh8:
	ldr	w13, [x13]
	orr	w13, w13, w10
	and	w14, w13, w20
	and	w13, w13, w0
	cmp	w14, #0
	ccmp	w13, #0, #4, ne
	b.eq	LBB0_8
; %bb.1:
	orr	w13, w0, w20
Lloh9:
	adrp	x14, _IPV6_ADDR_LOOPBACK@GOTPAGE
Lloh10:
	ldr	x14, [x14, _IPV6_ADDR_LOOPBACK@GOTPAGEOFF]
Lloh11:
	ldr	w14, [x14]
	tst	w14, w13
	b.ne	LBB0_8
; %bb.2:
Lloh12:
	adrp	x14, _IPV6_ADDR_LINKLOCAL@GOTPAGE
Lloh13:
	ldr	x14, [x14, _IPV6_ADDR_LINKLOCAL@GOTPAGEOFF]
Lloh14:
	ldr	w14, [x14]
	tst	w14, w13
	b.eq	LBB0_4
; %bb.3:
	ldr	x13, [x19, #8]
	cbz	x13, LBB0_8
LBB0_4:
	tst	w10, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w10, [x11]
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	w10, [x12]
LBB0_6:
	tst	w10, w0
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x8]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.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	_IPV6_ADDR_UNICAST,4,2          ; @IPV6_ADDR_UNICAST
	.comm	_IPV6_ADDR_MULTICAST,4,2        ; @IPV6_ADDR_MULTICAST
	.comm	_IPV6_ADDR_LOOPBACK,4,2         ; @IPV6_ADDR_LOOPBACK
	.comm	_IPV6_ADDR_LINKLOCAL,4,2        ; @IPV6_ADDR_LINKLOCAL
	.no_dead_strip	_ip6_tnl_set_cap
.subsections_via_symbols
