	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function in6_getaddr
_in6_getaddr:                           ## @in6_getaddr
	.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	%rdi, %r14
	movq	_sin6tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r13
	movq	_newaddr@GOTPCREL(%rip), %rax
	andl	$1, (%rax)
	movl	$24, (%r13)
	movq	_MASK@GOTPCREL(%rip), %r15
	cmpl	%ecx, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
LBB0_2:
	movq	_ADDR@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movb	$0, (%rax)
	incq	%rax
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_in6_getprefix
	movq	_explicit_prefix@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_5:
	movq	8(%r13), %rbx
	movq	_AF_INET6@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rbx
	jne	LBB0_10
## %bb.6:
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_bzero
	movq	%rbx, -56(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	(%r12), %rdi
	addq	$16, %r13
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_inet_pton
	cmpl	$1, %eax
	je	LBB0_10
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
	jmp	LBB0_10
LBB0_9:
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movl	4(%rax), %edi
	movq	%r13, %rsi
	callq	_bcopy
	movq	-48(%rbp), %rdi
	callq	_freeaddrinfo
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sin6tab,8,3                    ## @sin6tab
	.comm	_newaddr,4,2                    ## @newaddr
	.comm	_MASK,4,2                       ## @MASK
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_ADDR,4,2                       ## @ADDR
	.comm	_explicit_prefix,4,2            ## @explicit_prefix
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: bad value"

	.no_dead_strip	_in6_getaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function in6_getaddr
_in6_getaddr:                           ; @in6_getaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x8, _sin6tab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sin6tab@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x20, [x8, w1, sxtw #3]
Lloh3:
	adrp	x8, _newaddr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _newaddr@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, #0x1
	str	w9, [x8]
	mov	w8, #24
	str	w8, [x20]
Lloh5:
	adrp	x22, _MASK@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MASK@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh7:
	adrp	x21, _AF_INET6@GOTPAGE
Lloh8:
	ldr	x21, [x21, _AF_INET6@GOTPAGEOFF]
	cmp	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x21]
	str	x8, [x20, #8]
LBB0_2:
Lloh9:
	adrp	x8, _ADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADDR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_5
; %bb.4:
	strb	wzr, [x0], #1
	ldr	w1, [x22]
	bl	_in6_getprefix
Lloh12:
	adrp	x8, _explicit_prefix@GOTPAGE
Lloh13:
	ldr	x8, [x8, _explicit_prefix@GOTPAGEOFF]
	mov	w9, #1
Lloh14:
	str	w9, [x8]
LBB0_5:
	ldr	x22, [x20, #8]
	ldr	x8, [x21]
	cmp	x22, x8
	b.ne	LBB0_10
; %bb.6:
	add	x0, sp, #16
	mov	w1, #16
	bl	_bzero
	str	x22, [sp, #24]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, #0
	bl	_getaddrinfo
	cbz	w0, LBB0_9
; %bb.7:
	ldr	x0, [x21]
	add	x2, x20, #16
	mov	x1, x19
	bl	_inet_pton
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.8:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
	b	LBB0_10
LBB0_9:
	ldr	x8, [sp, #8]
	ldp	w2, w0, [x8]
	mov	x1, x20
	bl	_bcopy
	ldr	x0, [sp, #8]
	bl	_freeaddrinfo
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_sin6tab,8,3                    ; @sin6tab
	.comm	_newaddr,4,2                    ; @newaddr
	.comm	_MASK,4,2                       ; @MASK
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_ADDR,4,2                       ; @ADDR
	.comm	_explicit_prefix,4,2            ; @explicit_prefix
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: bad value"

	.no_dead_strip	_in6_getaddr
.subsections_via_symbols
