	.file	"extr_Protocol.c_AddAllRootCertsToCertList.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cert"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"AddAllRootCertsToCertList: ok=%u error=%u total_list_len=%u\n"
	.text
	.p2align 4
	.globl	AddAllRootCertsToCertList
	.type	AddAllRootCertsToCertList, @function
AddAllRootCertsToCertList:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L21
	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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR ROOT_CERTS_FILENAME[rip]
	call	ReadDump@PLT
	mov	QWORD PTR 24[rsp], rax
	test	rax, rax
	je	.L1
	mov	rdi, rax
	call	BufToPack@PLT
	mov	r12, rax
	test	rax, rax
	je	.L11
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	PackGetIndexCount@PLT
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	jle	.L12
	mov	QWORD PTR 8[rsp], 0
	xor	r15d, r15d
	xor	r13d, r13d
	lea	rbx, .LC0[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L26:
	xor	esi, esi
	mov	rdi, rax
	call	BufToX@PLT
	test	rax, rax
	je	.L25
	mov	rsi, rax
	mov	rdi, rbp
	mov	QWORD PTR 16[rsp], rax
	add	r15, 1
	call	AddXToCertList@PLT
	mov	r9, QWORD PTR 16[rsp]
	mov	rdi, r9
	call	FreeX@PLT
	mov	rdi, r14
	call	FreeBuf@PLT
	add	QWORD PTR 8[rsp], 1
	cmp	QWORD PTR [rsp], r15
	je	.L6
.L10:
	mov	rdx, r15
	mov	rsi, rbx
	mov	rdi, r12
	call	PackGetBufEx@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L26
	add	r13, 1
.L27:
	add	r15, 1
	cmp	QWORD PTR [rsp], r15
	jne	.L10
.L6:
	mov	rdi, r12
	call	FreePack@PLT
.L5:
	mov	rdi, QWORD PTR 24[rsp]
	call	FreeBuf@PLT
	mov	rdi, rbp
	call	LIST_NUM@PLT
	mov	rsi, QWORD PTR 8[rsp]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdx, r13
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 48
	mov	ecx, eax
	lea	rdi, .LC1[rip]
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_restore 15
	.cfi_def_cfa_offset 8
	jmp	Debug@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L25:
	.cfi_restore_state
	mov	rdi, r14
	add	r13, 1
	call	FreeBuf@PLT
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L11:
	mov	QWORD PTR 8[rsp], 0
	xor	r13d, r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_def_cfa_offset 96
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	QWORD PTR 8[rsp], 0
	xor	r13d, r13d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	AddAllRootCertsToCertList, .-AddAllRootCertsToCertList
	.comm	ROOT_CERTS_FILENAME,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_Protocol.c_AddAllRootCertsToCertList.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cert\000"
	.align	2
.LC1:
	.ascii	"AddAllRootCertsToCertList: ok=%u error=%u total_lis"
	.ascii	"t_len=%u\012\000"
	.text
	.align	2
	.global	AddAllRootCertsToCertList
	.syntax unified
	.arm
	.fpu softvfp
	.type	AddAllRootCertsToCertList, %function
AddAllRootCertsToCertList:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r4, r0, #0
	sub	sp, sp, #12
	beq	.L1
	ldr	r3, .L25
	ldr	r0, [r3]
	bl	ReadDump
	subs	r3, r0, #0
	str	r3, [sp, #4]
	beq	.L1
	bl	BufToPack
	subs	r5, r0, #0
	moveq	r6, r5
	moveq	r10, r6
	beq	.L5
	ldr	r1, .L25+4
	bl	PackGetIndexCount
	subs	r8, r0, #0
	ble	.L12
	mov	r7, #0
	ldr	r9, .L25+4
	mov	r6, r7
	mov	r10, r7
	b	.L10
.L23:
	mov	r1, #0
	bl	BufToX
	subs	r1, r0, #0
	beq	.L22
	mov	r0, r4
	str	r1, [sp]
	bl	AddXToCertList
	ldr	r1, [sp]
	add	r7, r7, #1
	mov	r0, r1
	bl	FreeX
	mov	r0, fp
	bl	FreeBuf
	cmp	r8, r7
	add	r10, r10, #1
	beq	.L6
.L10:
	mov	r2, r7
	mov	r1, r9
	mov	r0, r5
	bl	PackGetBufEx
	subs	fp, r0, #0
	bne	.L23
	add	r6, r6, #1
.L24:
	add	r7, r7, #1
	cmp	r8, r7
	bne	.L10
.L6:
	mov	r0, r5
	bl	FreePack
.L5:
	ldr	r0, [sp, #4]
	bl	FreeBuf
	mov	r0, r4
	bl	LIST_NUM
	mov	r2, r6
	mov	r3, r0
	mov	r1, r10
	ldr	r0, .L25+8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	Debug
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	mov	r0, fp
	bl	FreeBuf
	add	r6, r6, #1
	b	.L24
.L12:
	mov	r6, #0
	mov	r10, r6
	b	.L6
.L26:
	.align	2
.L25:
	.word	ROOT_CERTS_FILENAME
	.word	.LC0
	.word	.LC1
	.size	AddAllRootCertsToCertList, .-AddAllRootCertsToCertList
	.comm	ROOT_CERTS_FILENAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
