	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in6_ifattach                   ## -- Begin function in6_ifattach
	.p2align	4, 0x90
_in6_ifattach:                          ## @in6_ifattach
	.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	16(%rdi), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_15
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r12
	cmpl	$128, (%rdi)
	jne	LBB0_3
## %bb.2:
	movq	_ND6_IFF_AUTO_LINKLOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	movq	%r12, %rdi
	callq	_ND_IFINFO
	andl	%ebx, (%rax)
	movq	_ND6_IFF_NO_DAD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_ND_IFINFO
	orl	%ebx, (%rax)
LBB0_3:
	movl	4(%r12), %eax
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.4:
	movq	_IFF_LOOPBACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.5:
	movq	_in6addr_loopback@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_in6ifa_ifwithaddr
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rdi
	callq	_ifa_free
	jmp	LBB0_8
LBB0_16:
	movq	%r12, %rdi
	callq	_if_name
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nd6log                         ## TAILCALL
LBB0_6:
	movq	%r12, %rdi
	callq	_in6_ifattach_loopback
LBB0_8:
	movq	%r12, %rdi
	callq	_ND_IFINFO
	movq	_ND6_IFF_IFDISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_9
LBB0_13:
	movq	_V_in6_maxmtu@GOTPCREL(%rip), %rax
	movq	8(%r12), %rcx
	cmpq	%rcx, (%rax)
	jge	LBB0_15
## %bb.14:
	movq	%rcx, (%rax)
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	callq	_ND_IFINFO
	movq	_ND6_IFF_AUTO_LINKLOCAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.10:
	callq	_NET_EPOCH_ENTER
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_in6ifa_ifpforlinklocal
	movq	%rax, %r15
	callq	_NET_EPOCH_EXIT
	testq	%r15, %r15
	je	LBB0_11
## %bb.12:
	movq	%r15, %rdi
	callq	_ifa_free
	jmp	LBB0_13
LBB0_11:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_in6_ifattach_linklocal
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_ND6_IFF_AUTO_LINKLOCAL,4,2     ## @ND6_IFF_AUTO_LINKLOCAL
	.comm	_ND6_IFF_NO_DAD,4,2             ## @ND6_IFF_NO_DAD
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_in6addr_loopback,4,2           ## @in6addr_loopback
	.comm	_ND6_IFF_IFDISABLED,4,2         ## @ND6_IFF_IFDISABLED
	.comm	_V_in6_maxmtu,8,3               ## @V_in6_maxmtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in6_ifattach                   ; -- Begin function in6_ifattach
	.p2align	2
_in6_ifattach:                          ; @in6_ifattach
	.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
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _ND6_IFF_AUTO_LINKLOCAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ND6_IFF_AUTO_LINKLOCAL@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_ND_IFINFO
	ldr	w8, [x0]
	bic	w8, w8, w21
	str	w8, [x0]
Lloh6:
	adrp	x8, _ND6_IFF_NO_DAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ND6_IFF_NO_DAD@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_ND_IFINFO
	ldr	w8, [x0]
	orr	w8, w8, w21
	str	w8, [x0]
LBB0_3:
	ldr	w8, [x19, #4]
Lloh9:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
Lloh12:
	adrp	x9, _IFF_LOOPBACK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IFF_LOOPBACK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:
Lloh15:
	adrp	x0, _in6addr_loopback@GOTPAGE
Lloh16:
	ldr	x0, [x0, _in6addr_loopback@GOTPAGEOFF]
	mov	w1, #0
	bl	_in6ifa_ifwithaddr
	cbz	x0, LBB0_8
; %bb.6:
	bl	_ifa_free
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_if_name
	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
	b	_nd6log
LBB0_8:
	mov	x0, x19
	bl	_in6_ifattach_loopback
LBB0_9:
	mov	x0, x19
	bl	_ND_IFINFO
	ldr	w8, [x0]
Lloh17:
	adrp	x9, _ND6_IFF_IFDISABLED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ND6_IFF_IFDISABLED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_10:
Lloh20:
	adrp	x8, _V_in6_maxmtu@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V_in6_maxmtu@GOTPAGEOFF]
	ldr	x10, [x8]
	ldr	x9, [x19, #8]
	cmp	x10, x9
	b.ge	LBB0_12
; %bb.11:
	str	x9, [x8]
LBB0_12:
	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
LBB0_13:
	mov	x0, x19
	bl	_ND_IFINFO
	ldr	w8, [x0]
Lloh22:
	adrp	x9, _ND6_IFF_AUTO_LINKLOCAL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ND6_IFF_AUTO_LINKLOCAL@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.14:
	mov	x0, #0
	bl	_NET_EPOCH_ENTER
	mov	x0, x19
	mov	w1, #0
	bl	_in6ifa_ifpforlinklocal
	mov	x21, x0
	mov	x0, #0
	bl	_NET_EPOCH_EXIT
	cbz	x21, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_ifa_free
	b	LBB0_10
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_in6_ifattach_linklocal
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_ND6_IFF_AUTO_LINKLOCAL,4,2     ; @ND6_IFF_AUTO_LINKLOCAL
	.comm	_ND6_IFF_NO_DAD,4,2             ; @ND6_IFF_NO_DAD
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_in6addr_loopback,4,2           ; @in6addr_loopback
	.comm	_ND6_IFF_IFDISABLED,4,2         ; @ND6_IFF_IFDISABLED
	.comm	_V_in6_maxmtu,8,3               ; @V_in6_maxmtu
.subsections_via_symbols
