	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dnsc_parse_keys
_dnsc_parse_keys:                       ## @dnsc_parse_keys
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, (%rdi)
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	movq	(%rsi), %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%edi
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	%edi, (%r13)
LBB0_3:
	movl	$16, %esi
	callq	_sodium_allocarray
	movq	%rax, 24(%r13)
	movl	4(%r13), %edi
	movl	$24, %esi
	callq	_sodium_allocarray
	movq	%rax, 16(%r13)
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r14
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r13, -160(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal_exit
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-192(%rbp), %r12                ## 8-byte Reload
	incq	%r12
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_20
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	24(%r13), %r15
	movq	%r12, -192(%rbp)                ## 8-byte Spill
	shlq	$4, %r12
	leaq	(%r15,%r12), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movl	(%r14), %esi
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	callq	_dnsc_chroot_path
	movq	8(%r15,%r12), %rsi
	movq	_crypto_box_SECRETKEYBYTES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_dnsc_read_from_file
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fatal_exit
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	%r12, %r15
	addq	$8, %r15
	movq	_VERB_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	-184(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	callq	_crypto_scalarmult_base
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal_exit
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rbx), %esi
	leaq	-128(%rbp), %r15
	movq	%r15, %rdi
	callq	_dnsc_key_to_fingerprint
	movq	_VERB_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_verbose
	cmpl	$0, 4(%r13)
	movq	_crypto_box_PUBLICKEYBYTES@GOTPCREL(%rip), %rbx
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, -168(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	$0, -140(%rbp)                  ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	-160(%rbp), %r13                ## 8-byte Reload
	movq	_crypto_box_PUBLICKEYBYTES@GOTPCREL(%rip), %rbx
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%r14
	movl	4(%r13), %eax
	addq	$12, %r12
	cmpq	%rax, %r14
	jae	LBB0_17
LBB0_12:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-184(%rbp), %r15                ## 8-byte Reload
	movl	(%r15), %edi
	movq	8(%r13), %rax
	movl	8(%rax,%r12), %esi
	movl	(%rbx), %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	16(%r13), %rdx
	movq	-136(%rbp), %rax                ## 8-byte Reload
	leaq	1(%rax), %rcx
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	movq	%r13, %rbx
	leaq	(%rax,%rax,2), %r13
	movq	%r15, 16(%rdx,%r13,8)
	movq	(%rdx,%r13,8), %rdi
	movq	%rdx, %r15
	movq	8(%rbx), %rax
	movl	4(%rax,%r12), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r15,%r13,8), %rdi
	movq	8(%rbx), %rax
	movl	(%rax,%r12), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	16(%r15,%r13,8), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdi
	callq	_dnsc_key_to_fingerprint
	movq	_VERB_OPS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	leaq	-128(%rbp), %rcx
	xorl	%eax, %eax
	callq	_verbose
	movl	(%rbx), %ebx
	movq	8(%r15,%r13,8), %rdi
	callq	_key_get_es_version
	movl	%ebx, %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_verbose
	movq	8(%r15,%r13,8), %rax
	movl	$1, -140(%rbp)                  ## 4-byte Folded Spill
	cmpl	$2, 4(%rax)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal_exit
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -140(%rbp)                  ## 4-byte Folded Reload
	movq	-168(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_19
	jmp	LBB0_18
LBB0_4:
	movq	%rax, -136(%rbp)                ## 8-byte Spill
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movq	-136(%rbp), %rax                ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_crypto_box_SECRETKEYBYTES,4,2  ## @crypto_box_SECRETKEYBYTES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dnsc_parse_keys: failed to load %s: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_VERB_OPS,4,2                   ## @VERB_OPS
L_.str.1:                               ## @.str.1
	.asciz	"Loaded key %s"

L_.str.2:                               ## @.str.2
	.asciz	"dnsc_parse_keys: could not generate public key from %s"

L_.str.3:                               ## @.str.3
	.asciz	"Crypt public key fingerprint for %s: %s"

	.comm	_crypto_box_PUBLICKEYBYTES,4,2  ## @crypto_box_PUBLICKEYBYTES
L_.str.4:                               ## @.str.4
	.asciz	"Using %s"

L_.str.5:                               ## @.str.5
	.asciz	"Certificate for XChacha20 but libsodium does not support it."

L_.str.6:                               ## @.str.6
	.asciz	"dnsc_parse_keys: could not match certificate for key %s. Unable to determine ES version."

	.no_dead_strip	_dnsc_parse_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dnsc_parse_keys
_dnsc_parse_keys:                       ; @dnsc_parse_keys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	wzr, [x0]
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x1]
	cbz	x8, LBB0_4
; %bb.1:
	mov	w0, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w0, #1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
; %bb.3:
	str	w0, [x20]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	mov	w1, #16
	bl	_sodium_allocarray
	str	x0, [x20, #24]
	ldr	w0, [x20, #4]
	mov	w1, #24
	bl	_sodium_allocarray
	str	x0, [x20, #16]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x23, [x8]
	cbz	x23, LBB0_21
; %bb.6:
	mov	x28, #0
	mov	x24, #0
Lloh3:
	adrp	x27, _VERB_OPS@GOTPAGE
Lloh4:
	ldr	x27, [x27, _VERB_OPS@GOTPAGEOFF]
Lloh5:
	adrp	x21, _crypto_box_PUBLICKEYBYTES@GOTPAGE
Lloh6:
	ldr	x21, [x21, _crypto_box_PUBLICKEYBYTES@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.6@PAGE
Lloh8:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_fatal_exit
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x24, #1
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_22
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x8, [x20, #24]
	add	x25, x8, x24, lsl #4
	ldr	w1, [x23]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_dnsc_chroot_path
	mov	x19, x25
	ldr	x1, [x19, #8]!
Lloh9:
	adrp	x8, _crypto_box_SECRETKEYBYTES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _crypto_box_SECRETKEYBYTES@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_dnsc_read_from_file
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w22, [x23]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal_exit
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x27]
	ldr	w2, [x23]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_verbose
	ldr	w0, [x25]
	ldr	x1, [x19]
	bl	_crypto_scalarmult_base
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal_exit
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x25]
	add	x0, sp, #40
	bl	_dnsc_key_to_fingerprint
	ldr	w0, [x27]
	ldr	w2, [x23]
	add	x8, sp, #40
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_verbose
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x24, [sp, #32]                  ; 8-byte Folded Spill
	mov	x24, #0
	mov	w26, #0
	mov	x19, #0
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=2
	mov	w26, #1
	mov	x28, x22
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	add	x19, x19, #1
	ldr	w8, [x20, #4]
	add	x24, x24, #12
	cmp	x19, x8
	b.hs	LBB0_20
LBB0_17:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x25]
	ldr	x8, [x20, #8]
	add	x8, x8, x24
	ldr	w1, [x8, #8]
	ldr	w2, [x21]
	bl	_memcmp
	cbnz	x0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x20, #16]
	add	x22, x28, #1
	mov	w9, #24
	madd	x26, x28, x9, x8
	str	x25, [x26, #16]
	ldr	x0, [x26]
	ldr	x8, [x20, #8]
	add	x8, x8, x24
	ldr	w1, [x8, #4]
	mov	w2, #4
	bl	_memcpy
	ldr	x0, [x26, #8]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x24]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x26, #16]
	ldr	w1, [x8]
	add	x0, sp, #40
	bl	_dnsc_key_to_fingerprint
	ldr	w0, [x27]
	ldr	w2, [x23]
	add	x8, sp, #40
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_verbose
	ldr	w28, [x27]
	ldr	x0, [x26, #8]
	bl	_key_get_es_version
	mov	x2, x0
	mov	x0, x28
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_verbose
	ldr	x8, [x26, #8]
	ldr	w8, [x8, #4]
	cmp	w8, #2
	b.ne	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=2
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_fatal_exit
	b	LBB0_15
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	cbnz	w26, LBB0_8
	b	LBB0_7
LBB0_21:
	mov	x28, #0
LBB0_22:
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x28
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_crypto_box_SECRETKEYBYTES,4,2  ; @crypto_box_SECRETKEYBYTES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dnsc_parse_keys: failed to load %s: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_VERB_OPS,4,2                   ; @VERB_OPS
l_.str.1:                               ; @.str.1
	.asciz	"Loaded key %s"

l_.str.2:                               ; @.str.2
	.asciz	"dnsc_parse_keys: could not generate public key from %s"

l_.str.3:                               ; @.str.3
	.asciz	"Crypt public key fingerprint for %s: %s"

	.comm	_crypto_box_PUBLICKEYBYTES,4,2  ; @crypto_box_PUBLICKEYBYTES
l_.str.4:                               ; @.str.4
	.asciz	"Using %s"

l_.str.5:                               ; @.str.5
	.asciz	"Certificate for XChacha20 but libsodium does not support it."

l_.str.6:                               ; @.str.6
	.asciz	"dnsc_parse_keys: could not match certificate for key %s. Unable to determine ES version."

	.no_dead_strip	_dnsc_parse_keys
.subsections_via_symbols
