	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host_v6                        ## -- Begin function host_v6
	.p2align	4, 0x90
_host_v6:                               ## @host_v6
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-72(%rbp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_AF_INET6@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_getaddrinfo
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_3:
	movq	$0, 32(%rbx)
	movq	(%r13), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	addq	$20, %rdi
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	addq	$4, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_set_ipmask
	movq	-48(%rbp), %rdi
	callq	_freeaddrinfo
	movq	$0, 8(%rbx)
	movq	%rbx, (%rbx)
LBB0_4:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0"

L_.str.1:                               ## @.str.1
	.asciz	"address: calloc"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host_v6                        ; -- Begin function host_v6
	.p2align	2
_host_v6:                               ; @host_v6
	.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, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x21, _AF_INET6@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AF_INET6@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [sp, #24]
Lloh2:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AI_NUMERICHOST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_getaddrinfo
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_5
LBB0_2:
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	ldr	x8, [x21]
	stp	x8, xzr, [x20, #24]
	add	x0, x20, #20
	ldr	x8, [sp]
	ldr	x8, [x8]
	add	x1, x8, #4
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [sp]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_set_ipmask
	ldr	x0, [sp]
	bl	_freeaddrinfo
	stp	x20, xzr, [x20]
LBB0_5:
	mov	x0, x20
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0"

l_.str.1:                               ; @.str.1
	.asciz	"address: calloc"

.subsections_via_symbols
