	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ipv6
_get_ipv6:                              ## @get_ipv6
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_INET6_ADDRSTRLEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_IF_NAMESIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r15
	addq	%rax, %r15
	movl	%r15d, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rcx
	movq	(%r12), %r13
	cmpb	$91, (%r13)
	jne	LBB0_13
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	1(%r13), %r14
	movq	$-1, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14), %eax
	incq	%r14
	incq	%rbx
	cmpb	$93, %al
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%al, %al
	jne	LBB0_2
## %bb.4:
	incq	%rbx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	jmp	LBB0_7
LBB0_13:
	incq	%r13
	jmp	LBB0_11
LBB0_5:
	leaq	1(%rbx), %rdx
	cmpq	%r15, %rdx
	jle	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_7:
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_seterr
	xorl	%r13d, %r13d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.12:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	1(%r13), %rsi
	movq	%rcx, %r15
	movq	%rcx, %rdi
	movl	%ebx, %edx
	callq	_strncpy
	movq	%r15, %rax
	addq	%r13, %rax
	subq	(%r12), %rax
	movb	$0, (%rax,%rbx)
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_AI_CANONNAME@GOTPCREL(%rip), %rax
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -72(%rbp)
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	leaq	-80(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_seterr
	jmp	LBB0_11
LBB0_10:
	leaq	-1(%r14), %r13
	movq	-80(%rbp), %rdi
	callq	_freeaddrinfo
	movq	%r14, (%r12)
	jmp	LBB0_11
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INET6_ADDRSTRLEN,4,2           ## @INET6_ADDRSTRLEN
	.comm	_IF_NAMESIZE,4,2                ## @IF_NAMESIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unterminated IPv6 address '%.*s'"

L_.str.1:                               ## @.str.1
	.asciz	"IPv6 address too long '%.*s'"

	.comm	_AI_CANONNAME,4,2               ## @AI_CANONNAME
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
L_.str.2:                               ## @.str.2
	.asciz	"%s: %s"

	.no_dead_strip	_get_ipv6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ipv6
_get_ipv6:                              ; @get_ipv6
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _INET6_ADDRSTRLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INET6_ADDRSTRLEN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IF_NAMESIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IF_NAMESIZE@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
Lloh8:
	ldrsw	x9, [x9]
	add	x8, x9, x8
	and	x9, x8, #0xffffffff
	add	x10, x9, #15
	and	x12, x10, #0x1fffffff0
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x12
	mov	sp, x21
	ldr	x22, [x1]
	ldrb	w9, [x22]
	cmp	w9, #91
	b.ne	LBB0_5
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x22, x23
	ldrb	w9, [x9, #1]
	add	x23, x23, #1
	cmp	w9, #93
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w9, LBB0_2
; %bb.4:
	stp	x23, x22, [sp, #-16]!
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_5:
	add	x19, x22, #1
	b	LBB0_11
LBB0_6:
	cmp	x23, x8
	b.le	LBB0_8
; %bb.7:
	stp	x23, x22, [sp, #-16]!
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	add	x1, x22, #1
	sub	w2, w23, #1
	mov	x0, x21
	bl	_strncpy
	ldr	x8, [x20]
	add	x9, x22, x21
	sub	x8, x9, x8
	add	x8, x8, x23
	sturb	wzr, [x8, #-1]
	sub	x0, x29, #72
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh15:
	adrp	x8, _AI_CANONNAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AI_CANONNAME@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _AI_NUMERICHOST@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _AF_INET6@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AF_INET6@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh23:
	ldr	w9, [x10]
Lloh24:
	adrp	x10, _SOCK_DGRAM@GOTPAGE
Lloh25:
	ldr	x10, [x10, _SOCK_DGRAM@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	stp	w10, w9, [x29, #-64]
Lloh27:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w8, w9, [x29, #-72]
	sub	x2, x29, #72
	sub	x3, x29, #80
	mov	x0, x21
	mov	x1, #0
	bl	_getaddrinfo
	cbz	w0, LBB0_13
; %bb.9:
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #-16]!
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_seterr
	add	sp, sp, #16
	mov	x19, #0
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x19
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	add	x19, x22, x23
	ldur	x0, [x29, #-80]
	bl	_freeaddrinfo
	add	x8, x22, x23
	add	x8, x8, #1
	str	x8, [x20]
	b	LBB0_11
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_INET6_ADDRSTRLEN,4,2           ; @INET6_ADDRSTRLEN
	.comm	_IF_NAMESIZE,4,2                ; @IF_NAMESIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unterminated IPv6 address '%.*s'"

l_.str.1:                               ; @.str.1
	.asciz	"IPv6 address too long '%.*s'"

	.comm	_AI_CANONNAME,4,2               ; @AI_CANONNAME
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
l_.str.2:                               ; @.str.2
	.asciz	"%s: %s"

	.no_dead_strip	_get_ipv6
.subsections_via_symbols
