	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_root_hints                ## -- Begin function read_root_hints
	.p2align	4, 0x90
_read_root_hints:                       ## @read_root_hints
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$0, -52(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdi
	leaq	-52(%rbp), %r9
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ldns_zone_new_frm_fp_l
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_fclose
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	callq	_ldns_rr_list_new
	movq	%rax, %r14
	movq	-48(%rbp), %rdi
	callq	_ldns_zone_rrs
	movl	%eax, %edi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	xorl	%ebx, %ebx
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %r12
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	-48(%rbp), %rdi
	callq	_ldns_zone_rrs
	movl	%eax, %edi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %rbx
	jae	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	callq	_ldns_zone_rrs
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ldns_rr_get_type
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_ldns_rr_clone
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_list_push_rr
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_ldns_rr_get_type
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_ldns_rr_clone
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ldns_rr_list_push_rr
	jmp	LBB0_10
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	movq	%r15, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_12
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_ldns_get_errorstr_by_id
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_12
LBB0_11:
	movq	-48(%rbp), %rdi
	callq	_ldns_zone_deep_free
LBB0_12:
	movq	%r14, %rax
	addq	$24, %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	"r"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Unable to open %s for reading: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
L_.str.2:                               ## @.str.2
	.asciz	"Error reading root hints file: %s\n"

	.comm	_LDNS_RR_TYPE_A,8,3             ## @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ## @LDNS_RR_TYPE_AAAA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_root_hints                ; -- Begin function read_root_hints
	.p2align	2
_read_root_hints:                       ; @read_root_hints
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	str	wzr, [sp, #28]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	add	x0, sp, #16
	add	x5, sp, #28
	mov	x1, x20
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_ldns_zone_new_frm_fp_l
	mov	x19, x0
	mov	x0, x20
	bl	_fclose
Lloh2:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_10
; %bb.2:
	bl	_ldns_rr_list_new
	mov	x19, x0
	ldr	x0, [sp, #16]
	bl	_ldns_zone_rrs
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_12
; %bb.3:
	mov	x20, #0
Lloh5:
	adrp	x22, _LDNS_RR_TYPE_A@GOTPAGE
Lloh6:
	ldr	x22, [x22, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh7:
	adrp	x23, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh8:
	ldr	x23, [x23, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldr	x0, [sp, #16]
	bl	_ldns_zone_rrs
	bl	_ldns_rr_list_rr_count
	cmp	x20, x0
	b.hs	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #16]
	bl	_ldns_zone_rrs
	mov	x1, x20
	bl	_ldns_rr_list_rr
	mov	x21, x0
	bl	_ldns_rr_get_type
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_ldns_rr_clone
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rr_list_push_rr
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_ldns_rr_get_type
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_ldns_rr_clone
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rr_list_push_rr
	b	LBB0_4
LBB0_9:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_ldns_get_errorstr_by_id
	mov	x2, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
LBB0_11:
	bl	_fprintf
	mov	x19, #0
	b	LBB0_13
LBB0_12:
	ldr	x0, [sp, #16]
	bl	_ldns_zone_deep_free
LBB0_13:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Unable to open %s for reading: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
l_.str.2:                               ; @.str.2
	.asciz	"Error reading root hints file: %s\n"

	.comm	_LDNS_RR_TYPE_A,8,3             ; @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ; @LDNS_RR_TYPE_AAAA
.subsections_via_symbols
