	.file	"extr_http-tx-mgr.c_load_certs_from_db.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"certs.db"
.LC1:
	.string	"Failed to open certs.db\n"
.LC2:
	.string	"SELECT cert FROM Certs;"
	.text
	.p2align 4
	.type	load_certs_from_db, @function
load_certs_from_db:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	xor	edx, edx
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR seaf[rip]
	mov	QWORD PTR [rsp], 0
	mov	edi, DWORD PTR [rax]
	call	g_build_filename@PLT
	mov	rsi, rsp
	mov	rdi, rax
	mov	rbp, rax
	call	sqlite_open_db@PLT
	test	rax, rax
	js	.L11
	mov	edx, DWORD PTR load_certs[rip]
	mov	rdi, QWORD PTR [rsp]
	mov	rcx, r12
	lea	rsi, .LC2[rip]
	call	sqlite_foreach_selected_row@PLT
	sar	rax, 63
	mov	r12, rax
.L3:
	mov	rdi, rbp
	call	g_free@PLT
	mov	rdi, QWORD PTR [rsp]
	test	rdi, rdi
	je	.L1
	call	sqlite_close_db@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	mov	r12d, -1
	call	seaf_warning@PLT
	jmp	.L3
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	load_certs_from_db, .-load_certs_from_db
	.comm	seaf,8,8
	.comm	load_certs,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_http-tx-mgr.c_load_certs_from_db.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"certs.db\000"
	.align	2
.LC1:
	.ascii	"Failed to open certs.db\012\000"
	.align	2
.LC2:
	.ascii	"SELECT cert FROM Certs;\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_certs_from_db, %function
load_certs_from_db:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	push	{r4, r5, lr}
	ldr	r1, .L13
	mov	r5, r0
	ldr	r0, [r1]
	ldr	r3, .L13+4
	sub	sp, sp, #12
	ldr	r1, .L13+8
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	str	r2, [sp]
	bl	g_build_filename
	mov	r1, sp
	mov	r4, r0
	bl	sqlite_open_db
	cmp	r0, #0
	blt	.L11
	ldr	r2, .L13+12
	mov	r3, r5
	ldr	r2, [r2]
	ldr	r1, .L13+16
	ldr	r0, [sp]
	bl	sqlite_foreach_selected_row
	asr	r5, r0, #31
.L3:
	mov	r0, r4
	bl	g_free
	ldr	r0, [sp]
	cmp	r0, #0
	beq	.L1
	bl	sqlite_close_db
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L11:
	ldr	r0, .L13+20
	bl	seaf_warning
	mvn	r5, #0
	b	.L3
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	seaf
	.word	.LC3
	.word	.LC0
	.word	load_certs
	.word	.LC2
	.word	.LC1
	.size	load_certs_from_db, .-load_certs_from_db
	.comm	seaf,4,4
	.comm	load_certs,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
