	.file	"extr_dnscrypt.c_dnsc_parse_certs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"dnsc_parse_certs: failed to load %s: %s"
	.align 8
.LC1:
	.string	"Cert %s is rotated and will not be distributed via DNS"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Loaded cert %s"
	.text
	.p2align 4
	.type	dnsc_parse_certs, @function
dnsc_parse_certs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 8[rsi]
	mov	QWORD PTR [rdi], 0
	test	rax, rax
	je	.L12
	mov	edx, 1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[rax]
	mov	edi, edx
	lea	edx, 1[rdx]
	test	rax, rax
	jne	.L3
	mov	DWORD PTR [r12], edi
.L2:
	mov	rax, QWORD PTR 0[r13]
	test	rax, rax
	je	.L4
	mov	edx, 1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[rax]
	mov	ecx, edx
	add	edx, 1
	test	rax, rax
	jne	.L5
	mov	DWORD PTR 4[r12], ecx
.L4:
	mov	esi, 1
	call	sodium_allocarray@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	esi, 8
	mov	QWORD PTR 8[r12], rax
	call	sodium_allocarray@PLT
	mov	rbx, QWORD PTR 8[r13]
	mov	QWORD PTR 16[r12], rax
	test	rbx, rbx
	je	.L13
	xor	r14d, r14d
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r13
	call	dnsc_chroot_path@PLT
	mov	rsi, QWORD PTR 8[r12]
	mov	edx, 4
	mov	rdi, rax
	add	rsi, rbp
	call	dnsc_read_from_file@PLT
	test	rax, rax
	jne	.L29
.L7:
	mov	r15, QWORD PTR 0[r13]
	test	r15, r15
	jne	.L10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r15, QWORD PTR 8[r15]
	test	r15, r15
	je	.L8
.L10:
	mov	esi, DWORD PTR [r15]
	mov	edi, DWORD PTR [rbx]
	call	strcmp@PLT
	test	rax, rax
	jne	.L9
	mov	rdx, QWORD PTR 8[r12]
	mov	rax, QWORD PTR 16[r12]
	lea	rsi, .LC1[rip]
	mov	edi, DWORD PTR VERB_OPS[rip]
	add	rdx, rbp
	mov	QWORD PTR [rax+r14*8], rdx
	mov	edx, DWORD PTR [rbx]
	add	r14, 1
	call	verbose@PLT
.L8:
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR VERB_OPS[rip]
	lea	rsi, .LC2[rip]
	add	rbp, 1
	call	verbose@PLT
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	jne	.L11
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, ebp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	mov	edx, eax
	call	fatal_exit@PLT
	jmp	.L7
.L12:
	xor	edi, edi
	jmp	.L2
.L13:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dnsc_parse_certs, .-dnsc_parse_certs
	.comm	errno,4,4
	.comm	VERB_OPS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dnscrypt.c_dnsc_parse_certs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dnsc_parse_certs: failed to load %s: %s\000"
	.align	2
.LC1:
	.ascii	"Cert %s is rotated and will not be distributed via "
	.ascii	"DNS\000"
	.align	2
.LC2:
	.ascii	"Loaded cert %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dnsc_parse_certs, %function
dnsc_parse_certs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r1, #4]
	mov	r7, r1
	cmp	r3, r2
	mov	r6, r0
	str	r2, [r0]
	str	r2, [r0, #4]
	beq	.L12
	mov	r2, #1
.L3:
	ldr	r3, [r3, #4]
	mov	r0, r2
	cmp	r3, #0
	add	r2, r2, #1
	bne	.L3
	str	r0, [r6]
.L2:
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L4
	mov	r2, #1
.L5:
	ldr	r3, [r3, #4]
	mov	r1, r2
	cmp	r3, #0
	add	r2, r2, #1
	bne	.L5
	str	r1, [r6, #4]
.L4:
	mov	r1, #1
	bl	sodium_allocarray
	mov	r1, #4
	str	r0, [r6, #8]
	ldr	r0, [r6, #4]
	bl	sodium_allocarray
	ldr	r4, [r7, #4]
	str	r0, [r6, #12]
	cmp	r4, #0
	beq	.L13
	mov	r8, #0
	mov	r5, r8
	ldr	r9, .L30
	ldr	r10, .L30+4
.L11:
	ldr	r1, [r4]
	mov	r0, r7
	bl	dnsc_chroot_path
	ldr	r1, [r6, #8]
	mov	r2, #4
	add	r1, r1, r5
	bl	dnsc_read_from_file
	cmp	r0, #0
	bne	.L29
.L7:
	ldr	fp, [r7]
	cmp	fp, #0
	bne	.L10
	b	.L8
.L9:
	ldr	fp, [fp, #4]
	cmp	fp, #0
	beq	.L8
.L10:
	ldr	r1, [fp]
	ldr	r0, [r4]
	bl	strcmp
	cmp	r0, #0
	bne	.L9
	ldr	r3, [r6, #8]
	ldr	r2, [r6, #12]
	add	r3, r3, r5
	str	r3, [r2, r8, lsl #2]
	ldr	r1, .L30+8
	ldr	r2, [r4]
	ldr	r0, [r9]
	add	r8, r8, #1
	bl	verbose
.L8:
	ldr	r2, [r4]
	mov	r1, r10
	ldr	r0, [r9]
	bl	verbose
	ldr	r4, [r4, #4]
	add	r5, r5, #1
	cmp	r4, #0
	bne	.L11
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	ldr	r3, .L30+12
	ldr	fp, [r4]
	ldr	r0, [r3]
	bl	strerror
	mov	r1, fp
	mov	r2, r0
	ldr	r0, .L30+16
	bl	fatal_exit
	b	.L7
.L12:
	mov	r0, r3
	b	.L2
.L13:
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	.align	2
.L30:
	.word	VERB_OPS
	.word	.LC2
	.word	.LC1
	.word	errno
	.word	.LC0
	.size	dnsc_parse_certs, .-dnsc_parse_certs
	.comm	errno,4,4
	.comm	VERB_OPS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
