	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	leaq	-88(%rbp), %rbx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	movq	_EAI_AGAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.1:
	movq	_EAI_NONAME@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.2:
	testl	%eax, %eax
	je	LBB0_3
## %bb.19:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_log_warnx
	movl	$-1, %r15d
	jmp	LBB0_18
LBB0_3:
	movq	-48(%rbp), %rbx
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.4:
	movq	_MAX_SERVERS_DNS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.5:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r14
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	cmpq	%r13, %r14
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	jne	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	callq	_fatal
	movq	(%rbx), %r14
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, (%r12)
	cmpq	%r13, %r14
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$8, (%r12)
	movq	8(%rbx), %rax
	movl	4(%rax), %eax
	movl	%eax, 4(%r12)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$8, (%r12)
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_TAILQ_INSERT_HEAD
	incl	%r15d
	movq	_MAX_SERVERS_DNS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%eax, %r15d
	jl	LBB0_6
LBB0_16:
	movq	-48(%rbp), %rbx
LBB0_17:
	movq	%rbx, %rdi
	callq	_freeaddrinfo
LBB0_18:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_UNSPEC,8,3                  ## @PF_UNSPEC
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_EAI_AGAIN,4,2                  ## @EAI_AGAIN
	.comm	_EAI_NONAME,4,2                 ## @EAI_NONAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not parse \"%s\": %s"

	.comm	_MAX_SERVERS_DNS,4,2            ## @MAX_SERVERS_DNS
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_next,4,2                       ## @next
.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, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x1
	mov	x21, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _PF_UNSPEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_UNSPEC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh3:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, #0
	bl	_getaddrinfo
	mov	w20, #0
Lloh6:
	adrp	x8, _EAI_AGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAI_AGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _EAI_NONAME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EAI_NONAME@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_16
; %bb.1:
	cbz	w0, LBB0_3
; %bb.2:
	bl	_gai_strerror
	mov	x2, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_log_warnx
	mov	w20, #-1
	b	LBB0_16
LBB0_3:
	mov	w20, #0
	ldr	x21, [sp, #8]
	cbz	x21, LBB0_15
; %bb.4:
Lloh14:
	adrp	x23, _MAX_SERVERS_DNS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _MAX_SERVERS_DNS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.5:
	mov	w20, #0
Lloh16:
	adrp	x24, _AF_INET@GOTPAGE
Lloh17:
	ldr	x24, [x24, _AF_INET@GOTPAGEOFF]
Lloh18:
	adrp	x25, _AF_INET6@GOTPAGE
Lloh19:
	ldr	x25, [x25, _AF_INET6@GOTPAGEOFF]
Lloh20:
	adrp	x27, _next@GOTPAGE
Lloh21:
	ldr	x27, [x27, _next@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	w8, #8
	str	w8, [x0], #4
	ldr	x8, [x21, #8]
	add	x1, x8, #4
	mov	w2, #4
	bl	_memcpy
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x22
	bl	_TAILQ_INSERT_HEAD
	add	w20, w20, #1
	ldr	w8, [x23]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x21, [x21, #16]
	cmp	x21, #0
	ccmp	w20, w8, #0, ne
	b.ge	LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x21]
	ldr	x26, [x24]
	ldr	x9, [x25]
	cmp	x28, x26
	ccmp	x28, x9, #4, ne
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	mov	x22, x0
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_fatal
	ldr	x28, [x21]
	ldr	x26, [x24]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	str	x28, [x22]
	cmp	x28, x26
	b.ne	LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #8
	str	w8, [x22]
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #4]
	str	w8, [x22, #4]
	b	LBB0_7
LBB0_14:
	ldr	x21, [sp, #8]
LBB0_15:
	mov	x0, x21
	bl	_freeaddrinfo
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_UNSPEC,8,3                  ; @PF_UNSPEC
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_EAI_AGAIN,4,2                  ; @EAI_AGAIN
	.comm	_EAI_NONAME,4,2                 ; @EAI_NONAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not parse \"%s\": %s"

	.comm	_MAX_SERVERS_DNS,4,2            ; @MAX_SERVERS_DNS
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_next,4,2                       ; @next
.subsections_via_symbols
