	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isatap_chksrc
_isatap_chksrc:                         ## @isatap_chksrc
	.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, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ipip6_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	___ipip6_tunnel_locate_prl
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_PRL_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	_NDISC_NODETYPE_NODEFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	%r14, %rdi
	callq	_ipv6_hdr
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ipv6_addr_is_isatap
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	(%r13), %rax
	movq	24(%rax), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_9
## %bb.6:
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_ipv6_chk_prefix
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_NDISC_NODETYPE_HOST@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_NDISC_NODETYPE_DEFAULT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$1, %r12d
LBB0_9:
	movq	_ipip6_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipip6_lock,4,2                 ## @ipip6_lock
	.comm	_PRL_DEFAULT,4,2                ## @PRL_DEFAULT
	.comm	_NDISC_NODETYPE_DEFAULT,4,2     ## @NDISC_NODETYPE_DEFAULT
	.comm	_NDISC_NODETYPE_NODEFAULT,4,2   ## @NDISC_NODETYPE_NODEFAULT
	.comm	_NDISC_NODETYPE_HOST,4,2        ## @NDISC_NODETYPE_HOST
	.no_dead_strip	_isatap_chksrc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isatap_chksrc
_isatap_chksrc:                         ; @isatap_chksrc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _ipip6_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ipip6_lock@GOTPAGEOFF]
	bl	_read_lock
	ldr	x1, [x21]
	mov	x0, x20
	bl	___ipip6_tunnel_locate_prl
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _PRL_DEFAULT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PRL_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _NDISC_NODETYPE_DEFAULT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NDISC_NODETYPE_DEFAULT@GOTPAGEOFF]
Lloh7:
	adrp	x11, _NDISC_NODETYPE_NODEFAULT@GOTPAGE
Lloh8:
	ldr	x11, [x11, _NDISC_NODETYPE_NODEFAULT@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
LBB0_2:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w19, #1
	b	LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_ipv6_hdr
	mov	x22, x0
	bl	_ipv6_addr_is_isatap
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	w1, [x20]
	mov	x0, x22
	bl	_ipv6_chk_prefix
	cbz	x0, LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _NDISC_NODETYPE_HOST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NDISC_NODETYPE_HOST@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	mov	w19, #0
LBB0_8:
Lloh11:
	adrp	x0, _ipip6_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _ipip6_lock@GOTPAGEOFF]
	bl	_read_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ipip6_lock,4,2                 ; @ipip6_lock
	.comm	_PRL_DEFAULT,4,2                ; @PRL_DEFAULT
	.comm	_NDISC_NODETYPE_DEFAULT,4,2     ; @NDISC_NODETYPE_DEFAULT
	.comm	_NDISC_NODETYPE_NODEFAULT,4,2   ; @NDISC_NODETYPE_NODEFAULT
	.comm	_NDISC_NODETYPE_HOST,4,2        ; @NDISC_NODETYPE_HOST
	.no_dead_strip	_isatap_chksrc
.subsections_via_symbols
