	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function in6_validate_ifra
_in6_validate_ifra:                     ## @in6_validate_ifra
	.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	$72, %rsp
	.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, %r12
	movq	%rdi, %rbx
	movq	%rsp, %r13
	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
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	testq	%r12, %r12
	je	LBB0_11
## %bb.2:
	movq	_IFF_POINTOPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.3:
	movq	48(%r12), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	cmpl	$24, 8(%r12)
	jne	LBB0_11
## %bb.7:
	movq	16(%r12), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	movl	(%r12), %eax
	cmpq	$25, %rax
	jae	LBB0_11
## %bb.9:
	testq	%r14, %r14
	jne	LBB0_15
## %bb.10:
	testl	%eax, %eax
	jne	LBB0_15
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.14:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	4(%r12), %rdi
	leaq	(%r12,%rax,4), %rsi
	callq	_in6_mask2len
	testl	%eax, %eax
	jg	LBB0_18
	jmp	LBB0_11
LBB0_17:
	leaq	16(%r14), %rdi
	xorl	%esi, %esi
	callq	_in6_mask2len
LBB0_18:
	movq	64(%r12), %rcx
	movq	%rcx, -80(%rbp)
	movups	48(%r12), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	_IFF_LOOPBACK@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	movq	_IFF_POINTOPOINT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%ecx, (%rbx)
	movq	_AF_INET6@GOTPCREL(%rip), %rdi
	je	LBB0_25
## %bb.19:
	movq	-96(%rbp), %rcx
	cmpq	(%rdi), %rcx
	jne	LBB0_25
## %bb.20:
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	-80(%rbp), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-104(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_in6_setscope
	testq	%rax, %rax
	jne	LBB0_11
## %bb.21:
	movq	-88(%rbp), %rax
	movq	-104(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	cmpq	%rcx, %rax
	jne	LBB0_11
	jmp	LBB0_24
LBB0_23:
	movq	%rcx, -88(%rbp)
LBB0_24:
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	callq	_sa6_embedscope
	testq	%rax, %rax
	movq	_IFF_POINTOPOINT@GOTPCREL(%rip), %rdx
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movq	_AF_INET6@GOTPCREL(%rip), %rdi
	movq	_IFF_LOOPBACK@GOTPCREL(%rip), %r8
	jne	LBB0_11
LBB0_25:
	leaq	48(%r12), %rsi
	movaps	-96(%rbp), %xmm0
	movups	%xmm0, (%rsi)
	movq	-80(%rbp), %rcx
	movq	%rcx, 16(%rsi)
	movq	(%rsi), %rcx
	cmpq	(%rdi), %rcx
	jne	LBB0_28
## %bb.26:
	movl	(%r8), %ecx
	orl	(%rdx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_32
## %bb.27:
	cmpl	$128, %eax
	jne	LBB0_33
LBB0_28:
	movq	40(%r12), %rcx
	cmpq	%rcx, 32(%r12)
	jg	LBB0_11
## %bb.29:
	testq	%rcx, %rcx
	je	LBB0_34
## %bb.30:
	testq	%r14, %r14
	je	LBB0_40
LBB0_35:
	xorl	%ebx, %ebx
	cmpl	$0, (%r12)
	je	LBB0_13
## %bb.36:
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.37:
	leaq	16(%r14), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %r12d
	xorl	%esi, %esi
	callq	_in6_mask2len
	cmpl	%r12d, %eax
	je	LBB0_13
## %bb.38:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ip6_sprintf
	movl	%eax, %edi
	jmp	LBB0_39
LBB0_32:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	jmp	LBB0_39
LBB0_33:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
LBB0_39:
	callq	_nd6log
	jmp	LBB0_11
LBB0_34:
	movl	%eax, %ebx
	leaq	24(%r12), %rsi
	movq	%r15, %rdi
	callq	_ip6_sprintf
	movl	%eax, %edi
	callq	_nd6log
	movl	%ebx, %eax
	testq	%r14, %r14
	jne	LBB0_35
LBB0_40:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INET6_ADDRSTRLEN,4,2           ## @INET6_ADDRSTRLEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IFF_POINTOPOINT,4,2            ## @IFF_POINTOPOINT
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in6_update_ifa: a destination can be specified for a p2p or a loopback IF only\n"

L_.str.1:                               ## @.str.1
	.asciz	"in6_update_ifa: prefixlen should be 128 when dstaddr is specified\n"

	.no_dead_strip	_in6_validate_ifra
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function in6_validate_ifra
_in6_validate_ifra:                     ; @in6_validate_ifra
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
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	x20, x9, x8
	mov	sp, x20
	cbz	x0, LBB0_9
; %bb.1:
	cbz	x21, LBB0_9
; %bb.2:
	ldr	w8, [x22]
Lloh8:
	adrp	x25, _IFF_POINTOPOINT@GOTPAGE
Lloh9:
	ldr	x25, [x25, _IFF_POINTOPOINT@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x21, #48]
Lloh10:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _AF_UNSPEC@GOTPAGE
Lloh14:
	ldr	x10, [x10, _AF_UNSPEC@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_13
LBB0_4:
	ldr	w8, [x21, #8]
	cmp	w8, #24
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x21, #16]
Lloh16:
	adrp	x26, _AF_INET6@GOTPAGE
Lloh17:
	ldr	x26, [x26, _AF_INET6@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
	ldr	w8, [x21]
	cmp	w8, #25
	b.hs	LBB0_9
; %bb.7:
	cbnz	x19, LBB0_14
; %bb.8:
	cbnz	w8, LBB0_14
LBB0_9:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_39
; %bb.12:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh23:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_10
LBB0_14:
	cbz	w8, LBB0_16
; %bb.15:
	add	x0, x21, #4
	add	x1, x21, x8, lsl #2
	bl	_in6_mask2len
	mov	x23, x0
	cmp	w0, #0
	b.gt	LBB0_17
	b	LBB0_9
LBB0_16:
	add	x0, x19, #16
	mov	x1, #0
	bl	_in6_mask2len
	mov	x23, x0
LBB0_17:
	ldr	q0, [x21, #48]
	stur	q0, [x29, #-112]
	ldr	x8, [x21, #64]
	stur	x8, [x29, #-96]
	ldr	w8, [x22]
	ldr	w9, [x25]
Lloh25:
	adrp	x27, _IFF_LOOPBACK@GOTPAGE
Lloh26:
	ldr	x27, [x27, _IFF_LOOPBACK@GOTPAGEOFF]
	ldr	w10, [x27]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_24
; %bb.18:
	ldur	x8, [x29, #-112]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.19:
	ldur	w8, [x29, #-96]
	stur	w8, [x29, #-120]
	sub	x0, x29, #120
	sub	x2, x29, #128
	mov	x1, x22
	bl	_in6_setscope
	cbnz	x0, LBB0_9
; %bb.20:
	ldur	x9, [x29, #-104]
	ldur	x8, [x29, #-128]
	cbz	x9, LBB0_22
; %bb.21:
	cmp	x9, x8
	b.ne	LBB0_9
	b	LBB0_23
LBB0_22:
	stur	x8, [x29, #-104]
LBB0_23:
	sub	x0, x29, #112
	mov	w1, #0
	bl	_sa6_embedscope
	cbnz	x0, LBB0_9
LBB0_24:
	add	x8, x21, #48
	ldur	q0, [x29, #-112]
	str	q0, [x8]
	ldur	x9, [x29, #-96]
	str	x9, [x8, #16]
	ldr	x8, [x8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.25:
	ldr	w8, [x22]
	ldr	w9, [x25]
	ldr	w10, [x27]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_30
; %bb.26:
	cmp	w23, #128
	b.ne	LBB0_31
LBB0_27:
	ldp	x9, x8, [x21, #32]
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.28:
	cbz	x8, LBB0_32
; %bb.29:
	cbnz	x19, LBB0_33
	b	LBB0_36
LBB0_30:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	b	LBB0_38
LBB0_31:
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	b	LBB0_38
LBB0_32:
	add	x1, x21, #24
	mov	x0, x20
	bl	_ip6_sprintf
	bl	_nd6log
	cbz	x19, LBB0_36
LBB0_33:
	ldr	w8, [x21]
	cbz	w8, LBB0_36
; %bb.34:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_36
; %bb.35:
	add	x0, x19, #16
	mov	x1, #0
	bl	_in6_mask2len
	cmp	w0, w23
	b.ne	LBB0_37
LBB0_36:
	mov	w0, #0
	b	LBB0_11
LBB0_37:
	mov	x0, x20
	mov	x1, x19
	bl	_ip6_sprintf
LBB0_38:
	bl	_nd6log
	b	LBB0_9
LBB0_39:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_INET6_ADDRSTRLEN,4,2           ; @INET6_ADDRSTRLEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IFF_POINTOPOINT,4,2            ; @IFF_POINTOPOINT
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in6_update_ifa: a destination can be specified for a p2p or a loopback IF only\n"

l_.str.1:                               ; @.str.1
	.asciz	"in6_update_ifa: prefixlen should be 128 when dstaddr is specified\n"

	.no_dead_strip	_in6_validate_ifra
.subsections_via_symbols
