	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolver_set_nameserver_hostname
_resolver_set_nameserver_hostname:      ## @resolver_set_nameserver_hostname
	.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, %r15
	movq	%rdi, %r14
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_ldns_resolver_ip6
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.2:
	movq	_PF_INET6@GOTPCREL(%rip), %rcx
	cmpl	$129, %eax
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rcx
	cmpl	$129, %eax
	jne	LBB0_5
LBB0_4:
	movq	_PF_INET@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %eax
	movl	%eax, -52(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-72(%rbp), %r12
	leaq	-48(%rbp), %r13
	movq	_EAI_AGAIN@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_getaddrinfo
	cmpl	(%rbx), %eax
	je	LBB0_6
## %bb.7:
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_die
LBB0_9:
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.10:
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %r15
	leaq	L_.str.2(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_ldns_sockaddr_storage2rdf
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_LDNS_STATUS_MEM_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ldns_get_errorstr_by_id
	movslq	%eax, %rdx
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ldns_resolver_push_nameserver
	cmpq	(%r15), %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rdi
	callq	_ldns_get_errorstr_by_id
	movslq	%eax, %rdx
	movl	$1, %edi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_15
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_PF_INET6,4,2                   ## @PF_INET6
	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_EAI_AGAIN,4,2                  ## @EAI_AGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't get address for '%s': %s"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't allocate an rdf: %s"

	.comm	_LDNS_STATUS_MEM_ERR,8,3        ## @LDNS_STATUS_MEM_ERR
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
L_.str.2:                               ## @.str.2
	.asciz	"couldn't push a nameserver address: %s"

	.no_dead_strip	_resolver_set_nameserver_hostname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolver_set_nameserver_hostname
_resolver_set_nameserver_hostname:      ; @resolver_set_nameserver_hostname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x19
	bl	_ldns_resolver_ip6
Lloh0:
	adrp	x8, _PF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PF_INET6@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PF_INET6@GOTPAGEOFF]
Lloh4:
	adrp	x10, _PF_UNSPEC@GOTPAGE
Lloh5:
	ldr	x10, [x10, _PF_UNSPEC@GOTPAGEOFF]
	cmp	w0, #128
	csel	x9, x9, x10, eq
	cmp	w0, #129
	csel	x8, x8, x9, eq
Lloh6:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
Lloh9:
	adrp	x21, _EAI_AGAIN@GOTPAGE
Lloh10:
	ldr	x21, [x21, _EAI_AGAIN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, #0
	bl	_getaddrinfo
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_1
; %bb.2:
	cbz	w0, LBB0_4
; %bb.3:
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_die
LBB0_4:
	ldr	x23, [sp, #16]
	cbz	x23, LBB0_11
; %bb.5:
Lloh13:
	adrp	x24, _LDNS_STATUS_MEM_ERR@GOTPAGE
Lloh14:
	ldr	x24, [x24, _LDNS_STATUS_MEM_ERR@GOTPAGEOFF]
Lloh15:
	adrp	x20, l_.str.1@PAGE
Lloh16:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh17:
	adrp	x25, _LDNS_STATUS_OK@GOTPAGE
Lloh18:
	ldr	x25, [x25, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh19:
	adrp	x21, l_.str.2@PAGE
Lloh20:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	mov	x1, #0
	bl	_ldns_sockaddr_storage2rdf
	mov	x22, x0
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x24]
	bl	_ldns_get_errorstr_by_id
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
	mov	w0, #1
	mov	x1, x20
	bl	_die
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_ldns_resolver_push_nameserver
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	bl	_ldns_get_errorstr_by_id
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
	mov	w0, #1
	mov	x1, x21
	bl	_die
	b	LBB0_6
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_PF_INET6,4,2                   ; @PF_INET6
	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_EAI_AGAIN,4,2                  ; @EAI_AGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't get address for '%s': %s"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't allocate an rdf: %s"

	.comm	_LDNS_STATUS_MEM_ERR,8,3        ; @LDNS_STATUS_MEM_ERR
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
l_.str.2:                               ; @.str.2
	.asciz	"couldn't push a nameserver address: %s"

	.no_dead_strip	_resolver_set_nameserver_hostname
.subsections_via_symbols
