	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_get_nd6               ## -- Begin function ifconfig_get_nd6
	.p2align	4, 0x90
_ifconfig_get_nd6:                      ## @ifconfig_get_nd6
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	4(%rbx), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SIOCGIFINFO_IN6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_ifconfig_ioctlwrap
	movl	$-1, %r12d
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_isnd6defif
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ND6_IFF_DEFAULTIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_3:
	movq	(%r14), %rax
	movq	_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	xorl	%r12d, %r12d
LBB0_5:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_SIOCGIFINFO_IN6,4,2            ## @SIOCGIFINFO_IN6
	.comm	_ND6_IFF_DEFAULTIF,4,2          ## @ND6_IFF_DEFAULTIF
	.comm	_OK,8,3                         ## @OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_get_nd6               ; -- Begin function ifconfig_get_nd6
	.p2align	2
_ifconfig_get_nd6:                      ; @ifconfig_get_nd6
	.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	x21, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [x19, #4]
	mov	x1, x21
	mov	w2, #4
	bl	_strlcpy
Lloh0:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SIOCGIFINFO_IN6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIOCGIFINFO_IN6@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_ifconfig_ioctlwrap
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_isnd6defif
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _ND6_IFF_DEFAULTIF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ND6_IFF_DEFAULTIF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _OK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_SIOCGIFINFO_IN6,4,2            ; @SIOCGIFINFO_IN6
	.comm	_ND6_IFF_DEFAULTIF,4,2          ; @ND6_IFF_DEFAULTIF
	.comm	_OK,8,3                         ; @OK
.subsections_via_symbols
