	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host_dns                       ## -- Begin function host_dns
	.p2align	4, 0x90
_host_dns:                              ## @host_dns
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	callq	_strdup
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	%r14, %rdi
	movl	$58, %esi
	callq	_strrchr
	movq	%rax, %rbx
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movb	$0, (%rbx)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_5:
	leaq	-120(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	leaq	-72(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	jne	LBB0_30
## %bb.6:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	je	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_AF_INET@GOTPCREL(%rip), %rsi
	movq	_AF_INET6@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %r15d
LBB0_27:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r12), %r12
	movl	%r15d, %eax
	testq	%r12, %r12
	je	LBB0_28
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r13
	movq	(%rsi), %r14
	cmpq	%r14, %r13
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	(%rdi), %r13
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %r15d
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_err
	movq	(%r12), %r13
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	$0, 32(%rbx)
	movq	%r13, (%rbx)
	movq	%rbx, %rdi
	addq	$28, %rdi
	movq	8(%r12), %rsi
	cmpq	%r14, %r13
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$4, %edx
	callq	_memcpy
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r14, %r13
	jne	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %r15d
	testl	%eax, %eax
	jne	LBB0_27
	jmp	LBB0_16
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$4, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	-64(%rbp), %esi                 ## 4-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_set_ipmask
	movq	$0, 16(%rbx)
	movq	%rbx, 8(%rbx)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rcx), %rax
	movq	%rbx, 16(%rax)
	movq	%rbx, 8(%rcx)
	jmp	LBB0_26
LBB0_24:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rcx
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_AF_INET@GOTPCREL(%rip), %rsi
	movq	_AF_INET6@GOTPCREL(%rip), %rdi
	jmp	LBB0_27
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %r15d
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movl	$1, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %r15d
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_27
LBB0_28:
	movq	%rcx, %rbx
	movq	-72(%rbp), %rdi
	jmp	LBB0_29
LBB0_7:
	xorl	%ebx, %ebx
LBB0_29:
	callq	_freeaddrinfo
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_30:
	movq	%r14, %rdi
	callq	_free
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"host_dns: strdup"

L_.str.1:                               ## @.str.1
	.asciz	":0"

	.comm	_PF_UNSPEC,8,3                  ## @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
L_.str.2:                               ## @.str.2
	.asciz	"host_dns: calloc"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_host_dns                       ; -- Begin function host_dns
	.p2align	2
_host_dns:                              ; @host_dns
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	stp	w1, w2, [sp, #16]               ; 8-byte Folded Spill
	bl	_strdup
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	mov	x0, x19
	mov	w1, #58
	bl	_strrchr
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_5
LBB0_4:
	mov	w25, #1
	b	LBB0_6
LBB0_5:
	mov	w25, #0
	strb	wzr, [x22]
LBB0_6:
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh4:
	adrp	x8, _PF_UNSPEC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PF_UNSPEC@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [sp, #32]
Lloh7:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	add	x2, sp, #32
	add	x3, sp, #24
	mov	x0, x19
	mov	x1, #0
	bl	_getaddrinfo
	mov	x22, #0
	cbnz	w0, LBB0_30
; %bb.7:
	ldr	x26, [sp, #24]
	cbz	x26, LBB0_28
; %bb.8:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	w8, #0
	mov	w9, #0
	mov	x22, #0
Lloh10:
	adrp	x27, _AF_INET@GOTPAGE
Lloh11:
	ldr	x27, [x27, _AF_INET@GOTPAGEOFF]
Lloh12:
	adrp	x28, _AF_INET6@GOTPAGE
Lloh13:
	ldr	x28, [x28, _AF_INET6@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x22, #8]
	str	x24, [x8, #16]
	str	x24, [x22, #8]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x26, [x26, #16]
	mov	x8, x20
	mov	x9, x23
	cbz	x26, LBB0_27
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x26]
	ldr	x19, [x27]
	ldr	x10, [x28]
	cmp	x21, x19
	ccmp	x21, x10, #4, ne
	b.ne	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	tbz	w25, #0, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x9
	mov	x20, x8
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	mov	x24, x0
	cbnz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #1
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
	ldr	x21, [x26]
	ldr	x19, [x27]
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	str	xzr, [x24, #32]
	str	x21, [x24]
	add	x0, x24, #28
	ldr	x1, [x26, #8]
	cmp	x21, x19
	b.ne	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w2, #4
	bl	_memcpy
	ldr	w1, [sp, #16]                   ; 4-byte Folded Reload
	b	LBB0_23
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x9
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x20, x8
	b	LBB0_10
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	x21, x19
	b.ne	LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w23, #1
	mov	x20, x8
	cbnz	w9, LBB0_19
	b	LBB0_14
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x1, x1, #4
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x26, #8]
	ldr	w8, [x8]
	str	w8, [x24, #24]
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
LBB0_23:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	bl	_set_ipmask
	stp	x24, xzr, [x24, #8]
	cbnz	x22, LBB0_9
; %bb.24:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, x24
	b	LBB0_10
LBB0_25:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w20, #1
	mov	x23, x9
	cbz	w8, LBB0_14
; %bb.26:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x9
	b	LBB0_10
LBB0_27:
	ldr	x0, [sp, #24]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_29
LBB0_28:
	mov	x0, #0
	mov	x22, #0
LBB0_29:
	bl	_freeaddrinfo
LBB0_30:
	mov	x0, x19
	bl	_free
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"host_dns: strdup"

l_.str.1:                               ; @.str.1
	.asciz	":0"

	.comm	_PF_UNSPEC,8,3                  ; @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
l_.str.2:                               ; @.str.2
	.asciz	"host_dns: calloc"

.subsections_via_symbols
