	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dnsc_parse_certs
_dnsc_parse_certs:                      ## @dnsc_parse_certs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	$0, (%rdi)
	movq	8(%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:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movl	%ecx, 4(%r13)
LBB0_7:
	movl	$1, %esi
	callq	_sodium_allocarray
	movq	%rax, 8(%r13)
	movl	4(%r13), %edi
	movl	$8, %esi
	callq	_sodium_allocarray
	movq	%rax, 16(%r13)
	movq	8(%r15), %r12
	testq	%r12, %r12
	je	LBB0_8
## %bb.9:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r13), %rax
	addq	%r14, %rax
	movq	16(%r13), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	incq	%rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_VERB_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_verbose
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_VERB_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_verbose
	incq	%r14
	movq	8(%r12), %r12
	testq	%r12, %r12
	je	LBB0_18
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_dnsc_chroot_path
	movq	8(%r13), %rsi
	addq	%r14, %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_dnsc_read_from_file
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rbx
	movl	(%r12), %r13d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movq	%rbx, %r13
	movl	%eax, %edx
	callq	_fatal_exit
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_15
	jmp	LBB0_17
LBB0_8:
	xorl	%r14d, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %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	"dnsc_parse_certs: failed to load %s: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_VERB_OPS,4,2                   ## @VERB_OPS
L_.str.1:                               ## @.str.1
	.asciz	"Cert %s is rotated and will not be distributed via DNS"

L_.str.2:                               ## @.str.2
	.asciz	"Loaded cert %s"

	.no_dead_strip	_dnsc_parse_certs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dnsc_parse_certs
_dnsc_parse_certs:                      ; @dnsc_parse_certs
	.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	x19, x1
	mov	x20, x0
	str	xzr, [x0]
	ldr	x8, [x1, #8]
	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]
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	ldr	x8, [x19]
	cbz	x8, LBB0_8
LBB0_5:
	mov	w9, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w9, #1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_6
; %bb.7:
	str	w9, [x20, #4]
LBB0_8:
	mov	w1, #1
	bl	_sodium_allocarray
	str	x0, [x20, #8]
	ldr	w0, [x20, #4]
	mov	w1, #8
	bl	_sodium_allocarray
	str	x0, [x20, #16]
	ldr	x26, [x19, #8]
	cbz	x26, LBB0_17
; %bb.9:
	mov	x27, #0
	mov	x21, #0
Lloh0:
	adrp	x28, _VERB_OPS@GOTPAGE
Lloh1:
	ldr	x28, [x28, _VERB_OPS@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str.2@PAGE
Lloh3:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh4:
	adrp	x23, _errno@GOTPAGE
Lloh5:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str@PAGE
Lloh7:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldp	x8, x9, [x20, #8]
	add	x8, x8, x21
	str	x8, [x9, x27, lsl #3]
	add	x27, x27, #1
	ldr	w0, [x28]
	ldr	w2, [x26]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_verbose
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x28]
	ldr	w2, [x26]
	mov	x1, x22
	bl	_verbose
	add	x21, x21, #1
	ldr	x26, [x26, #8]
	cbz	x26, LBB0_18
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	w1, [x26]
	mov	x0, x19
	bl	_dnsc_chroot_path
	ldr	x8, [x20, #8]
	add	x1, x8, x21
	mov	w2, #4
	bl	_dnsc_read_from_file
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w25, [x26]
	ldr	w0, [x23]
	bl	_strerror
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_fatal_exit
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x25, [x19]
	cbz	x25, LBB0_11
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x26]
	ldr	w1, [x25]
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x25, [x25, #8]
	cbnz	x25, LBB0_15
	b	LBB0_11
LBB0_17:
	mov	w21, #0
LBB0_18:
	mov	x0, x21
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dnsc_parse_certs: failed to load %s: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_VERB_OPS,4,2                   ; @VERB_OPS
l_.str.1:                               ; @.str.1
	.asciz	"Cert %s is rotated and will not be distributed via DNS"

l_.str.2:                               ; @.str.2
	.asciz	"Loaded cert %s"

	.no_dead_strip	_dnsc_parse_certs
.subsections_via_symbols
