	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nd6_dad_duplicated
_nd6_dad_duplicated:                    ## @nd6_dad_duplicated
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_INET6_ADDRSTRLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%r12), %rdi
	callq	_if_name
	movl	%eax, %r13d
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ip6_sprintf
	movl	12(%rbx), %r8d
	movl	8(%rbx), %r9d
	movl	(%rbx), %r10d
	movl	4(%rbx), %ebx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	callq	_log
	addq	$16, %rsp
	movq	_IN6_IFF_TENTATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	4(%r12), %eax
	movq	_IN6_IFF_DUPLICATED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r12)
	movq	(%r12), %r14
	movq	_LOG_ERR@GOTPCREL(%rip), %r15
	movl	(%r15), %r13d
	movq	%r14, %rdi
	callq	_if_name
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ip6_sprintf
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_log
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_if_name
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log
	movq	%r12, %rdi
	callq	_IN6_IS_ADDR_LINKLOCAL
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%r14), %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.2:
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_in6_get_hw_ifid
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_IN6_ARE_ADDR_EQUAL
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_ND6_IFF_IFDISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_ND_IFINFO
	orl	%ebx, (%rax)
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_if_name
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INET6_ADDRSTRLEN,4,2           ## @INET6_ADDRSTRLEN
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: DAD detected duplicate IPv6 address %s: NS in/out/loopback=%d/%d/%d, NA in=%d\n"

	.comm	_IN6_IFF_TENTATIVE,4,2          ## @IN6_IFF_TENTATIVE
	.comm	_IN6_IFF_DUPLICATED,4,2         ## @IN6_IFF_DUPLICATED
L_.str.1:                               ## @.str.1
	.asciz	"%s: DAD complete for %s - duplicate found\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: manual intervention required\n"

	.comm	_ND6_IFF_IFDISABLED,4,2         ## @ND6_IFF_IFDISABLED
L_.str.3:                               ## @.str.3
	.asciz	"%s: possible hardware address duplication detected, disable IPv6\n"

	.no_dead_strip	_nd6_dad_duplicated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nd6_dad_duplicated
_nd6_dad_duplicated:                    ; @nd6_dad_duplicated
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _INET6_ADDRSTRLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INET6_ADDRSTRLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x24, _LOG_ERR@GOTPAGE
Lloh9:
	ldr	x24, [x24, _LOG_ERR@GOTPAGEOFF]
	ldr	w22, [x24]
	ldr	x0, [x0]
	bl	_if_name
	mov	x23, x0
	mov	x0, x21
	mov	x1, x19
	bl	_ip6_sprintf
                                        ; kill: def $w0 killed $w0 def $x0
	ldp	w9, w8, [x20, #8]
	ldp	w11, w10, [x20]
	sub	sp, sp, #48
	stp	x10, x11, [sp, #24]
	stp	x8, x9, [sp, #8]
	str	x0, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_log
	add	sp, sp, #48
Lloh12:
	adrp	x8, _IN6_IFF_TENTATIVE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IN6_IFF_TENTATIVE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
Lloh15:
	adrp	x10, _IN6_IFF_DUPLICATED@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IN6_IFF_DUPLICATED@GOTPAGEOFF]
	bic	w8, w9, w8
Lloh17:
	ldr	w9, [x10]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	ldr	x20, [x19]
	ldr	w22, [x24]
	mov	x0, x20
	bl	_if_name
	mov	x23, x0
	mov	x0, x21
	mov	x1, x19
	bl	_ip6_sprintf
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_log
	add	sp, sp, #16
	ldr	w21, [x24]
	mov	x0, x20
	bl	_if_name
	mov	x2, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_log
	mov	x0, x19
	bl	_IN6_IS_ADDR_LINKLOCAL
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19]
	stur	w8, [x29, #-64]
	sub	x1, x29, #64
	mov	x0, x20
	bl	_in6_get_hw_ifid
	cbnz	w0, LBB0_5
; %bb.3:
	sub	x1, x29, #64
	mov	x0, x19
	bl	_IN6_ARE_ADDR_EQUAL
	cbz	w0, LBB0_5
; %bb.4:
Lloh22:
	adrp	x8, _ND6_IFF_IFDISABLED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ND6_IFF_IFDISABLED@GOTPAGEOFF]
Lloh24:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_ND_IFINFO
	ldr	w8, [x0]
	orr	w8, w8, w19
	str	w8, [x0]
	ldr	w19, [x24]
	mov	x0, x20
	bl	_if_name
	mov	x2, x0
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_log
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_INET6_ADDRSTRLEN,4,2           ; @INET6_ADDRSTRLEN
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: DAD detected duplicate IPv6 address %s: NS in/out/loopback=%d/%d/%d, NA in=%d\n"

	.comm	_IN6_IFF_TENTATIVE,4,2          ; @IN6_IFF_TENTATIVE
	.comm	_IN6_IFF_DUPLICATED,4,2         ; @IN6_IFF_DUPLICATED
l_.str.1:                               ; @.str.1
	.asciz	"%s: DAD complete for %s - duplicate found\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: manual intervention required\n"

	.comm	_ND6_IFF_IFDISABLED,4,2         ; @ND6_IFF_IFDISABLED
l_.str.3:                               ; @.str.3
	.asciz	"%s: possible hardware address duplication detected, disable IPv6\n"

	.no_dead_strip	_nd6_dad_duplicated
.subsections_via_symbols
