	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_nss_for_name
_set_nss_for_name:                      ## @set_nss_for_name
	.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	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_ldns_rdf_clone
	movq	%rax, %rbx
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ldns_dnssec_zone_find_rrset
	testq	%rax, %rax
	jne	LBB0_2
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_ldns_dname_left_chop
	movq	%r12, %r13
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ldns_rdf_deep_free
	movq	%r12, %rbx
	testq	%r12, %r12
	movq	%r13, %r12
	jne	LBB0_1
## %bb.22:
	leaq	L_.str(%rip), %rdi
	callq	_error
	jmp	LBB0_26
LBB0_2:
	movq	%rax, %r13
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	callq	_ldns_rdf_deep_free
	movq	%r15, %rdi
	callq	_ldns_resolver_pop_nameserver
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	jmp	LBB0_4
LBB0_5:
	movq	(%r13), %r14
	testq	%r14, %r14
	je	LBB0_16
## %bb.6:
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_16
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_ldns_rr_rdf
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_ldns_dnssec_zone_find_rrset
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_ldns_rr_rdf
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ldns_resolver_push_nameserver
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_ldns_rr_rdf
	movl	(%r12), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_ldns_dnssec_zone_find_rrset
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_ldns_rr_rdf
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ldns_resolver_push_nameserver
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_13
	jmp	LBB0_15
LBB0_16:
	movq	%r15, %rdi
	callq	_ldns_resolver_nameserver_count
	movl	$1, %ecx
	testq	%rax, %rax
	jg	LBB0_27
## %bb.17:
	xorl	%eax, %eax
	callq	_ldns_rr_list_new
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_ldns_rr_rdf
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_ldns_get_rr_list_addr_by_name
	movq	%rax, %r13
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_ldns_rr_list_cat
	movq	%r13, %rdi
	callq	_ldns_rr_list_free
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_18
LBB0_19:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_20
## %bb.23:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ldns_resolver_push_nameserver_rr_list
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.28:
	movq	%rbx, %rdi
	callq	_ldns_rr_list_deep_free
	movl	$1, %ecx
	jmp	LBB0_27
LBB0_20:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_25
LBB0_24:
	leaq	L_.str.2(%rip), %rdi
LBB0_25:
	callq	_error
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_add_rr_list_to_referrals
	movq	%rbx, %rdi
	callq	_ldns_rr_list_deep_free
LBB0_26:
	xorl	%ecx, %ecx
LBB0_27:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_NS,4,2            ## @LDNS_RR_TYPE_NS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No referrals for name found"

	.comm	_LDNS_RR_TYPE_A,4,2             ## @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,4,2          ## @LDNS_RR_TYPE_AAAA
L_.str.1:                               ## @.str.1
	.asciz	"Could not find the nameserver ip addr; abort"

	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
L_.str.2:                               ## @.str.2
	.asciz	"Error adding new nameservers"

	.no_dead_strip	_set_nss_for_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_nss_for_name
_set_nss_for_name:                      ; @set_nss_for_name
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x4
	mov	x22, x3
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_ldns_rdf_clone
	mov	x24, x0
Lloh0:
	adrp	x25, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x24
	bl	_ldns_dnssec_zone_find_rrset
	cbnz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_ldns_dname_left_chop
	mov	x23, x0
	mov	x0, x24
	bl	_ldns_rdf_deep_free
	mov	x24, x23
	cbnz	x23, LBB0_1
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	b	LBB0_25
LBB0_4:
	mov	x23, x0
	mov	x0, x24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ldns_rdf_deep_free
	mov	x0, x20
	bl	_ldns_resolver_pop_nameserver
	cbnz	x0, LBB0_5
; %bb.6:
	ldr	x24, [x23]
	cbz	x24, LBB0_15
; %bb.7:
Lloh4:
	adrp	x25, _LDNS_RR_TYPE_A@GOTPAGE
Lloh5:
	ldr	x25, [x25, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh6:
	adrp	x26, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh7:
	ldr	x26, [x26, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x24, [x24, #8]
	cbz	x24, LBB0_15
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	ldr	w0, [x24]
	mov	w1, #0
	bl	_ldns_rr_rdf
	mov	x1, x0
	ldr	w2, [x25]
	mov	x0, x19
	bl	_ldns_dnssec_zone_find_rrset
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x27, [x0]
	cbz	x27, LBB0_12
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x27]
	mov	w1, #0
	bl	_ldns_rr_rdf
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_resolver_push_nameserver
	ldr	x27, [x27, #8]
	cbnz	x27, LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x24]
	mov	w1, #0
	bl	_ldns_rr_rdf
	mov	x1, x0
	ldr	w2, [x26]
	mov	x0, x19
	bl	_ldns_dnssec_zone_find_rrset
	cbz	x0, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x27, [x0]
	cbz	x27, LBB0_8
LBB0_14:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x27]
	mov	w1, #0
	bl	_ldns_rr_rdf
	mov	x1, x0
	mov	x0, x20
	bl	_ldns_resolver_push_nameserver
	ldr	x27, [x27, #8]
	cbnz	x27, LBB0_14
	b	LBB0_8
LBB0_15:
	mov	x0, x20
	bl	_ldns_resolver_nameserver_count
	cmp	x0, #0
	b.le	LBB0_17
; %bb.16:
	mov	w0, #1
	b	LBB0_26
LBB0_17:
	bl	_ldns_rr_list_new
	mov	x24, x0
	ldr	x25, [x23]
	cbz	x25, LBB0_19
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	mov	w1, #0
	bl	_ldns_rr_rdf
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	mov	w3, #0
	bl	_ldns_get_rr_list_addr_by_name
	mov	x23, x0
	mov	x0, x24
	mov	x1, x23
	bl	_ldns_rr_list_cat
	mov	x0, x23
	bl	_ldns_rr_list_free
	ldr	x25, [x25, #8]
	cbnz	x25, LBB0_18
LBB0_19:
	mov	x0, x24
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_22
; %bb.20:
	mov	x0, x20
	mov	x1, x24
	bl	_ldns_resolver_push_nameserver_rr_list
Lloh8:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_23
; %bb.21:
	mov	x0, x24
	bl	_ldns_rr_list_deep_free
	mov	w0, #1
	b	LBB0_26
LBB0_22:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_24:
	bl	_error
	mov	x0, x19
	mov	x1, x24
	bl	_add_rr_list_to_referrals
	mov	x0, x24
	bl	_ldns_rr_list_deep_free
LBB0_25:
	mov	w0, #0
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NS,4,2            ; @LDNS_RR_TYPE_NS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No referrals for name found"

	.comm	_LDNS_RR_TYPE_A,4,2             ; @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,4,2          ; @LDNS_RR_TYPE_AAAA
l_.str.1:                               ; @.str.1
	.asciz	"Could not find the nameserver ip addr; abort"

	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
l_.str.2:                               ; @.str.2
	.asciz	"Error adding new nameservers"

	.no_dead_strip	_set_nss_for_name
.subsections_via_symbols
