	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_key_file                  ## -- Begin function read_key_file
	.p2align	4, 0x90
_read_key_file:                         ## @read_key_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	%edx, %r15d
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LDNS_MAX_LINELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r13
	movl	%r15d, -80(%rbp)                ## 4-byte Spill
	movl	$1, %r14d
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_ldns_rr_list_push_rr
	incl	-52(%rbp)                       ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	testl	%r15d, %r15d
	js	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_read_line
	movq	%rax, %r15
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$59, (%rbx)
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ldns_rr_new_frm_str
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi
	callq	_ldns_rr_free
	jmp	LBB0_13
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	%rax, %rdi
	callq	_ldns_get_errorstr_by_id
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_13
LBB0_14:
	movq	%r13, %rdi
	callq	_fclose
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_16
## %bb.15:
	movq	_LDNS_STATUS_ERR@GOTPCREL(%rip), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_7:
	movq	_LDNS_STATUS_ERR@GOTPCREL(%rip), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jne	LBB0_16
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_16:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_MAX_LINELEN,4,2           ## @LDNS_MAX_LINELEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Error opening %s: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_LDNS_STATUS_ERR,8,3            ## @LDNS_STATUS_ERR
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
L_.str.2:                               ## @.str.2
	.asciz	"Error parsing DNSKEY RR in line %d: %s\n"

	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ## @LDNS_RR_TYPE_DNSKEY
	.comm	_LDNS_RR_TYPE_DS,8,3            ## @LDNS_RR_TYPE_DS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_key_file                  ; -- Begin function read_key_file
	.p2align	2
_read_key_file:                         ; @read_key_file
	.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
	sub	sp, sp, #32
	mov	x19, x2
	mov	x20, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _LDNS_MAX_LINELEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_MAX_LINELEN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_13
; %bb.1:
	mov	x23, x0
	mov	w27, #0
	mov	w24, #1
Lloh10:
	adrp	x28, _LDNS_STATUS_OK@GOTPAGE
Lloh11:
	ldr	x28, [x28, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh12:
	adrp	x26, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh13:
	ldr	x26, [x26, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldur	x1, [x29, #-96]
	mov	x0, x20
	bl	_ldns_rr_list_push_rr
	add	w27, w27, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	tbnz	w25, #31, LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_read_line
	mov	x25, x0
	cmp	w25, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x22]
	cmp	w8, #59
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x0, x29, #96
	mov	x1, x22
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_ldns_rr_new_frm_str
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x0, [x29, #-96]
	bl	_ldns_rr_get_type
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x0, [x29, #-96]
	bl	_ldns_rr_get_type
Lloh14:
	adrp	x8, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x0, [x29, #-96]
	bl	_ldns_rr_free
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w19, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	stur	w27, [x29, #-100]               ; 4-byte Folded Spill
	mov	x27, x19
	mov	x19, x28
	mov	x28, x20
	mov	x20, x26
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w26, [x8]
	bl	_ldns_get_errorstr_by_id
	stp	x24, x0, [sp, #-16]!
	mov	x0, x26
	mov	x26, x20
	mov	x20, x28
	mov	x28, x19
	mov	x19, x27
	ldur	w27, [x29, #-100]               ; 4-byte Folded Reload
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	add	sp, sp, #16
	b	LBB0_3
LBB0_12:
	mov	x0, x23
	bl	_fclose
Lloh22:
	adrp	x8, _LDNS_STATUS_ERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LDNS_STATUS_ERR@GOTPAGEOFF]
	cmp	w27, #0
	csel	x8, x28, x8, gt
	b	LBB0_16
LBB0_13:
	cbnz	w19, LBB0_15
; %bb.14:
Lloh24:
	adrp	x8, _stderr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
	ldr	w19, [x8]
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_strerror
	stp	x24, x0, [sp, #-16]!
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	add	sp, sp, #16
LBB0_15:
Lloh32:
	adrp	x8, _LDNS_STATUS_ERR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LDNS_STATUS_ERR@GOTPAGEOFF]
LBB0_16:
	ldr	x0, [x8]
	ldur	x8, [x29, #-88]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #80
	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
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_MAX_LINELEN,4,2           ; @LDNS_MAX_LINELEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Error opening %s: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_LDNS_STATUS_ERR,8,3            ; @LDNS_STATUS_ERR
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
l_.str.2:                               ; @.str.2
	.asciz	"Error parsing DNSKEY RR in line %d: %s\n"

	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ; @LDNS_RR_TYPE_DNSKEY
	.comm	_LDNS_RR_TYPE_DS,8,3            ; @LDNS_RR_TYPE_DS
.subsections_via_symbols
