	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anchor_read_file
_anchor_read_file:                      ## @anchor_read_file
	.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
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_sldns_buffer_begin
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movabsq	$4294970896, %rax               ## imm = 0x100000E10
	movq	%rax, -48(%rbp)
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_feof
	testl	%eax, %eax
	leaq	-48(%rbp), %r14
	je	LBB0_4
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_6
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_sldns_buffer_capacity
	movq	%rax, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r14, %r8
	callq	_sldns_fp2wire_rr_buf
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-64(%rbp), %rdx
	movq	%r13, %rdi
	callq	_sldns_wirerr_get_type
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-72(%rbp), %rsi
	movq	-64(%rbp), %rdx
	movq	%r13, %rdi
	callq	_sldns_wirerr_get_type
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rcx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_anchor_store_new_rr
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	je	LBB0_3
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, %rax
	je	LBB0_3
## %bb.16:
	movl	-44(%rbp), %edx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_17
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_19
LBB0_6:
	movq	%r15, %rdi
	callq	_fclose
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movl	$1, %ebx
	cmovneq	%rax, %rbx
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	cmovneq	%rax, %rbx
	jmp	LBB0_19
LBB0_8:
	movl	-44(%rbp), %r14d
	movl	%ebx, %edi
	callq	_LDNS_WIREPARSE_OFFSET
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_sldns_get_errorstr_parse
	leaq	L_.str.2(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_log_err
LBB0_18:
	movq	%r15, %rdi
	callq	_fclose
	xorl	%ebx, %ebx
LBB0_19:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	-44(%rbp), %edx
	leaq	L_.str.3(%rip), %rdi
LBB0_17:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"error opening file %s: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"parse error in %s:%d:%d : %s"

	.comm	_LDNS_RR_TYPE_DS,8,3            ## @LDNS_RR_TYPE_DS
	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ## @LDNS_RR_TYPE_DNSKEY
L_.str.3:                               ## @.str.3
	.asciz	"mem error at %s line %d"

L_.str.4:                               ## @.str.4
	.asciz	"error at %s line %d: no multiple anchor domains allowed (you can have multiple keys, but they must have the same name)."

	.no_dead_strip	_anchor_read_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function anchor_read_file
lCPI0_0:
	.long	3600                            ; 0xe10
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_anchor_read_file:                      ; @anchor_read_file
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x1
	bl	_sldns_buffer_begin
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, #0
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #40]
Lloh4:
	adrp	x26, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh5:
	ldr	x26, [x26, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
Lloh6:
	adrp	x28, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh7:
	ldr	x28, [x28, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x27, x0
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_feof
	cbnz	w0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x22
	bl	_sldns_buffer_capacity
	stp	xzr, x0, [sp, #24]
	add	x2, sp, #32
	add	x3, sp, #24
	add	x4, sp, #40
	mov	x0, x20
	mov	x1, x24
	bl	_sldns_fp2wire_rr_buf
	ldr	x1, [sp, #32]
	cbz	x1, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x25, x0
	cbnz	w0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x2, [sp, #24]
	mov	x0, x24
	bl	_sldns_wirerr_get_type
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=2
	ldp	x2, x1, [sp, #24]
	mov	x0, x24
	bl	_sldns_wirerr_get_type
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	x3, x2, [sp, #24]
	mov	x0, x23
	mov	x1, x24
	bl	_anchor_store_new_rr
	cbz	x0, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w21, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	cbz	x27, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	x27, x0
	b.eq	LBB0_2
; %bb.12:
	ldr	w2, [sp, #44]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_13:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_log_err
	b	LBB0_17
LBB0_14:
	mov	x0, x20
	bl	_fclose
	cmp	x27, #0
	ccmp	w21, #0, #0, eq
	csinc	x0, x27, xzr, ne
	b	LBB0_18
LBB0_15:
	ldr	w21, [sp, #44]
	mov	x0, x25
	bl	_LDNS_WIREPARSE_OFFSET
	mov	x22, x0
	mov	x0, x25
	bl	_sldns_get_errorstr_parse
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	x2, x21
LBB0_16:
	bl	_log_err
	mov	x0, x20
	bl	_fclose
LBB0_17:
	mov	x0, #0
LBB0_18:
	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
LBB0_19:
	ldr	w2, [sp, #44]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_20:
	mov	x1, x19
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"error opening file %s: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"parse error in %s:%d:%d : %s"

	.comm	_LDNS_RR_TYPE_DS,8,3            ; @LDNS_RR_TYPE_DS
	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ; @LDNS_RR_TYPE_DNSKEY
l_.str.3:                               ; @.str.3
	.asciz	"mem error at %s line %d"

l_.str.4:                               ; @.str.4
	.asciz	"error at %s line %d: no multiple anchor domains allowed (you can have multiple keys, but they must have the same name)."

	.no_dead_strip	_anchor_read_file
.subsections_via_symbols
