	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sa6_checkzone                  ## -- Begin function sa6_checkzone
	.p2align	4, 0x90
_sa6_checkzone:                         ## @sa6_checkzone
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_in6_addrscope
	movl	%eax, %r15d
	movq	_IPV6_ADDR_SCOPE_GLOBAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_3:
	movq	%rbx, %rdi
	callq	_IN6_IS_ADDR_MULTICAST
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	_IPV6_ADDR_SCOPE_LINKLOCAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_9
## %bb.5:
	movq	_IPV6_ADDR_SCOPE_INTFACELOCAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_9
## %bb.6:
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	jne	LBB0_18
## %bb.7:
	movq	_V_ip6_use_defzone@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_18
## %bb.8:
	movq	_V_sid_default@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r15d, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_18
LBB0_9:
	movq	%rbx, %rdi
	callq	_IN6_IS_ADDR_LOOPBACK
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	(%r14), %rbx
	movq	_V_loif@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_in6_getscopezone
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:
	cmpq	%rax, %rbx
	je	LBB0_13
	jmp	LBB0_16
LBB0_11:
	movq	%rax, (%r14)
LBB0_13:
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	jne	LBB0_18
## %bb.14:
	movq	_V_ip6_use_defzone@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_16
## %bb.15:
	movq	_V_sid_default@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r15d, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, (%r14)
	testq	%rcx, %rcx
	jne	LBB0_18
LBB0_16:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPV6_ADDR_SCOPE_GLOBAL,4,2     ## @IPV6_ADDR_SCOPE_GLOBAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPV6_ADDR_SCOPE_LINKLOCAL,4,2  ## @IPV6_ADDR_SCOPE_LINKLOCAL
	.comm	_IPV6_ADDR_SCOPE_INTFACELOCAL,4,2 ## @IPV6_ADDR_SCOPE_INTFACELOCAL
	.comm	_V_ip6_use_defzone,8,3          ## @V_ip6_use_defzone
	.comm	_V_sid_default,8,3              ## @V_sid_default
	.comm	_V_loif,4,2                     ## @V_loif
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sa6_checkzone                  ; -- Begin function sa6_checkzone
	.p2align	2
_sa6_checkzone:                         ; @sa6_checkzone
	.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	x19, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_in6_addrscope
Lloh0:
	adrp	x8, _IPV6_ADDR_SCOPE_GLOBAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPV6_ADDR_SCOPE_GLOBAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _EINVAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w0, wzr, w9, eq
	b	LBB0_16
LBB0_2:
	mov	x20, x0
	mov	x0, x21
	bl	_IN6_IS_ADDR_MULTICAST
	cbz	x0, LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _IPV6_ADDR_SCOPE_LINKLOCAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPV6_ADDR_SCOPE_LINKLOCAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IPV6_ADDR_SCOPE_INTFACELOCAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPV6_ADDR_SCOPE_INTFACELOCAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w20, w8
	ccmp	w20, w9, #4, ne
	b.eq	LBB0_7
; %bb.4:
	mov	w0, #0
	ldr	x8, [x19]
	cbnz	x8, LBB0_16
; %bb.5:
Lloh12:
	adrp	x8, _V_ip6_use_defzone@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V_ip6_use_defzone@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.6:
	mov	w0, #0
Lloh15:
	adrp	x8, _V_sid_default@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V_sid_default@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x8, [x8, w20, sxtw #3]
	str	x8, [x19]
	b	LBB0_16
LBB0_7:
	mov	x0, x21
	bl	_IN6_IS_ADDR_LOOPBACK
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x21, [x19]
Lloh18:
	adrp	x8, _V_loif@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V_loif@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_in6_getscopezone
	cbz	x21, LBB0_14
; %bb.9:
	cmp	x21, x0
	b.ne	LBB0_13
LBB0_10:
	ldr	x8, [x19]
	cbnz	x8, LBB0_15
LBB0_11:
Lloh21:
	adrp	x8, _V_ip6_use_defzone@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V_ip6_use_defzone@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
Lloh24:
	adrp	x8, _V_sid_default@GOTPAGE
Lloh25:
	ldr	x8, [x8, _V_sid_default@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x8, [x8, w20, sxtw #3]
	str	x8, [x19]
	cbnz	x8, LBB0_15
LBB0_13:
Lloh27:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_14:
	str	x0, [x19]
	ldr	x8, [x19]
	cbz	x8, LBB0_11
LBB0_15:
	mov	w0, #0
LBB0_16:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_IPV6_ADDR_SCOPE_GLOBAL,4,2     ; @IPV6_ADDR_SCOPE_GLOBAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPV6_ADDR_SCOPE_LINKLOCAL,4,2  ; @IPV6_ADDR_SCOPE_LINKLOCAL
	.comm	_IPV6_ADDR_SCOPE_INTFACELOCAL,4,2 ; @IPV6_ADDR_SCOPE_INTFACELOCAL
	.comm	_V_ip6_use_defzone,8,3          ; @V_ip6_use_defzone
	.comm	_V_sid_default,8,3              ; @V_sid_default
	.comm	_V_loif,4,2                     ; @V_loif
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
.subsections_via_symbols
