	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd6_setdefaultiface            ## -- Begin function nd6_setdefaultiface
	.p2align	4, 0x90
_nd6_setdefaultiface:                   ## @nd6_setdefaultiface
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	movl	%edi, %ebx
	movq	_V_if_index@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jl	LBB0_2
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	movl	%ebx, %edi
	callq	_ifnet_byindex
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	_V_nd6_defifindex@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%ebx, (%rcx)
	je	LBB0_11
## %bb.6:
	movl	%ebx, (%rcx)
	movl	%ebx, %edi
	callq	_ifnet_byindex
	movq	%rax, %rdi
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_7:
	movq	_V_nd6_defifindex@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.8:
	movl	$0, (%rax)
	xorl	%edi, %edi
LBB0_9:
	movq	_V_nd6_defifp@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	callq	_scope6_setdefault
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_if_index,4,2                 ## @V_if_index
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V_nd6_defifindex,4,2           ## @V_nd6_defifindex
	.comm	_V_nd6_defifp,8,3               ## @V_nd6_defifp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd6_setdefaultiface            ; -- Begin function nd6_setdefaultiface
	.p2align	2
_nd6_setdefaultiface:                   ; @nd6_setdefaultiface
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _V_if_index@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_if_index@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.lt	LBB0_6
; %bb.2:
	cbz	w19, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_ifnet_byindex
	cbz	x0, LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _V_nd6_defifindex@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V_nd6_defifindex@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, w19
	b.eq	LBB0_10
; %bb.5:
	str	w19, [x8]
	mov	x0, x19
	bl	_ifnet_byindex
	b	LBB0_9
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_7:
Lloh8:
	adrp	x8, _V_nd6_defifindex@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V_nd6_defifindex@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_10
; %bb.8:
	mov	x0, #0
	str	wzr, [x8]
LBB0_9:
Lloh10:
	adrp	x8, _V_nd6_defifp@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V_nd6_defifp@GOTPAGEOFF]
Lloh12:
	str	x0, [x8]
	bl	_scope6_setdefault
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_V_if_index,4,2                 ; @V_if_index
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V_nd6_defifindex,4,2           ; @V_nd6_defifindex
	.comm	_V_nd6_defifp,8,3               ; @V_nd6_defifp
.subsections_via_symbols
