	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function inet6_set_iftoken
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_inet6_set_iftoken:                     ## @inet6_set_iftoken
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	40(%rdi), %r15
	movq	%rsi, %rdi
	callq	_ipv6_addr_any
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	_IFF_LOOPBACK@GOTPCREL(%rip), %rax
	movq	_IFF_NOARP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r15)
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	callq	_ipv6_accept_ra
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	cmpq	$0, 32(%r12)
	jle	LBB0_1
## %bb.6:
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_write_lock_bh
	movl	$1, %edi
	callq	_BUILD_BUG_ON
	movq	24(%r12), %rdi
	addq	$8, %rdi
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_write_unlock_bh
	cmpl	$0, 16(%r12)
	je	LBB0_7
LBB0_10:
	movq	%r14, %rdi
	callq	_write_lock_bh
LBB0_11:
	movq	8(%r12), %rbx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	32(%rbx), %rbx
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_spin_lock
	cmpq	$0, 24(%rbx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	jmp	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	callq	_write_unlock_bh
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_addrconf_verify
	jmp	LBB0_17
LBB0_7:
	movq	_IF_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_10
## %bb.8:
	movq	_IFA_F_TENTATIVE@GOTPCREL(%rip), %rax
	movq	_IFA_F_OPTIMISTIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ipv6_get_lladdr
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	_in6addr_linklocal_allrouters@GOTPCREL(%rip), %rdx
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ndisc_send_rs
	movq	%r14, %rdi
	callq	_write_lock_bh
	movq	_IF_RS_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_IFF_NOARP,4,2                  ## @IFF_NOARP
	.comm	_IF_READY,4,2                   ## @IF_READY
	.comm	_IFA_F_TENTATIVE,4,2            ## @IFA_F_TENTATIVE
	.comm	_IFA_F_OPTIMISTIC,4,2           ## @IFA_F_OPTIMISTIC
	.comm	_in6addr_linklocal_allrouters,4,2 ## @in6addr_linklocal_allrouters
	.comm	_IF_RS_SENT,4,2                 ## @IF_RS_SENT
	.no_dead_strip	_inet6_set_iftoken
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inet6_set_iftoken
_inet6_set_iftoken:                     ; @inet6_set_iftoken
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x22, x1
	mov	x19, x0
	ldr	x21, [x0, #40]
	mov	x0, x1
	bl	_ipv6_addr_any
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _IFF_LOOPBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_LOOPBACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _IFF_NOARP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IFF_NOARP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x0, x19
	bl	_ipv6_accept_ra
	cbz	w0, LBB0_3
; %bb.6:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	b.le	LBB0_3
; %bb.7:
	add	x20, x19, #4
	mov	x0, x20
	bl	_write_lock_bh
	mov	w0, #1
	bl	_BUILD_BUG_ON
	ldr	x8, [x19, #24]
	add	x0, x8, #8
	ldr	x8, [x22]
	add	x1, x8, #8
	mov	w2, #8
	bl	_memcpy
	mov	x0, x20
	bl	_write_unlock_bh
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_write_lock_bh
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_14
LBB0_9:
	mov	x0, x20
	bl	_write_unlock_bh
	mov	w0, #0
	bl	_addrconf_verify
	mov	w0, #0
	b	LBB0_4
LBB0_10:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _IF_READY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IF_READY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.11:
Lloh12:
	adrp	x8, _IFA_F_TENTATIVE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IFA_F_TENTATIVE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IFA_F_OPTIMISTIC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IFA_F_OPTIMISTIC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x1, sp, #8
	mov	x0, x21
	bl	_ipv6_get_lladdr
	cbnz	w0, LBB0_8
; %bb.12:
Lloh18:
	adrp	x2, _in6addr_linklocal_allrouters@GOTPAGE
Lloh19:
	ldr	x2, [x2, _in6addr_linklocal_allrouters@GOTPAGEOFF]
	add	x1, sp, #8
	mov	x0, x21
	bl	_ndisc_send_rs
	mov	x0, x20
	bl	_write_lock_bh
Lloh20:
	adrp	x8, _IF_RS_SENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IF_RS_SENT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_14
	b	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	_spin_unlock
	ldr	x19, [x19, #32]
	cbz	x19, LBB0_9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	stp	xzr, xzr, [x19, #8]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_IFF_NOARP,4,2                  ; @IFF_NOARP
	.comm	_IF_READY,4,2                   ; @IF_READY
	.comm	_IFA_F_TENTATIVE,4,2            ; @IFA_F_TENTATIVE
	.comm	_IFA_F_OPTIMISTIC,4,2           ; @IFA_F_OPTIMISTIC
	.comm	_in6addr_linklocal_allrouters,4,2 ; @in6addr_linklocal_allrouters
	.comm	_IF_RS_SENT,4,2                 ; @IF_RS_SENT
	.no_dead_strip	_inet6_set_iftoken
.subsections_via_symbols
