	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in6_setscope                   ## -- Begin function in6_setscope
	.p2align	4, 0x90
_in6_setscope:                          ## @in6_setscope
	.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, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_IN6_IS_ADDR_LOOPBACK
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_IFF_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_3:
	movq	%rbx, %rdi
	callq	_in6_addrscope
	movl	%eax, %r12d
	movq	_IPV6_ADDR_SCOPE_INTFACELOCAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_5
## %bb.4:
	movq	_IPV6_ADDR_SCOPE_LINKLOCAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_5
## %bb.6:
	movq	_IPV6_ADDR_SCOPE_GLOBAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpl	(%rax), %r12d
	je	LBB0_8
## %bb.7:
	callq	_NET_EPOCH_ENTER
	movq	%r15, %rdi
	callq	_SID
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %r13d
	callq	_NET_EPOCH_EXIT
	jmp	LBB0_8
LBB0_5:
	movl	4(%r15), %r13d
	movzwl	%r13w, %edi
	callq	_htons
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
LBB0_8:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movl	%r13d, (%r14)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPV6_ADDR_SCOPE_INTFACELOCAL,4,2 ## @IPV6_ADDR_SCOPE_INTFACELOCAL
	.comm	_IPV6_ADDR_SCOPE_LINKLOCAL,4,2  ## @IPV6_ADDR_SCOPE_LINKLOCAL
	.comm	_IPV6_ADDR_SCOPE_GLOBAL,4,2     ## @IPV6_ADDR_SCOPE_GLOBAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in6_setscope                   ; -- Begin function in6_setscope
	.p2align	2
_in6_setscope:                          ; @in6_setscope
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_IN6_IS_ADDR_LOOPBACK
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IFF_LOOPBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_LOOPBACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_2:
	mov	w20, #0
	mov	w0, #0
	cbnz	x19, LBB0_8
	b	LBB0_9
LBB0_3:
	mov	x0, x21
	bl	_in6_addrscope
Lloh3:
	adrp	x8, _IPV6_ADDR_SCOPE_INTFACELOCAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPV6_ADDR_SCOPE_INTFACELOCAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IPV6_ADDR_SCOPE_LINKLOCAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPV6_ADDR_SCOPE_LINKLOCAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_6
; %bb.4:
	ldr	w20, [x20, #4]
	and	w0, w20, #0xffff
	bl	_htons
	ldr	x8, [x21]
	str	w0, [x8, #4]
	mov	w0, #0
	cbnz	x19, LBB0_8
	b	LBB0_9
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_6:
	mov	x22, x0
Lloh12:
	adrp	x8, _IPV6_ADDR_SCOPE_GLOBAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPV6_ADDR_SCOPE_GLOBAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.7:
	mov	x0, #0
	bl	_NET_EPOCH_ENTER
	mov	x0, x20
	bl	_SID
	ldr	x8, [x0]
	ldr	w20, [x8, w22, sxtw #2]
	mov	x0, #0
	bl	_NET_EPOCH_EXIT
	mov	w0, #0
	cbz	x19, LBB0_9
LBB0_8:
	str	w20, [x19]
LBB0_9:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPV6_ADDR_SCOPE_INTFACELOCAL,4,2 ; @IPV6_ADDR_SCOPE_INTFACELOCAL
	.comm	_IPV6_ADDR_SCOPE_LINKLOCAL,4,2  ; @IPV6_ADDR_SCOPE_LINKLOCAL
	.comm	_IPV6_ADDR_SCOPE_GLOBAL,4,2     ; @IPV6_ADDR_SCOPE_GLOBAL
.subsections_via_symbols
