	.file	"extr_db_plugin_sqlite.c_db_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"CREATE TABLE IF NOT EXISTS kv(key PRIMARY KEY, val);"
	.text
	.p2align 4
	.globl	db_open
	.type	db_open, @function
db_open:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	xor	ecx, ecx
	mov	edx, DWORD PTR SQLITE_OPEN_READWRITE[rip]
	or	edx, DWORD PTR SQLITE_OPEN_CREATE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	or	edx, DWORD PTR SQLITE_OPEN_FULLMUTEX[rip]
	mov	rsi, rsp
	mov	QWORD PTR [rsp], 0
	call	sqlite3_open_v2@PLT
	cmp	rax, QWORD PTR SQLITE_OK[rip]
	je	.L6
.L2:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	mov	rax, QWORD PTR [rsp]
	jne	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rsp]
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	lea	rsi, .LC0[rip]
	call	sqlite3_exec@PLT
	jmp	.L2
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	db_open, .-db_open
	.comm	SQLITE_OPEN_READWRITE,4,4
	.comm	SQLITE_OPEN_FULLMUTEX,4,4
	.comm	SQLITE_OPEN_CREATE,4,4
	.comm	SQLITE_OK,8,8
	.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_db_plugin_sqlite.c_db_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CREATE TABLE IF NOT EXISTS kv(key PRIMARY KEY, val)"
	.ascii	";\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	db_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_open, %function
db_open:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, #0
	ldr	r1, .L8
	ldr	r2, .L8+4
	ldr	r3, .L8+8
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	sub	sp, sp, #16
	ldr	ip, .L8+12
	orr	r2, r1, r2
	orr	r2, r2, r3
	add	r1, sp, #8
	mov	r3, r4
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	str	r4, [sp, #8]
	bl	sqlite3_open_v2
	ldr	r3, .L8+16
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L6
.L2:
	ldr	r3, .L8+12
	ldr	r0, [sp, #8]
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L6:
	mov	r3, r4
	mov	r2, r4
	ldr	r1, .L8+20
	ldr	r0, [sp, #8]
	str	r4, [sp]
	bl	sqlite3_exec
	b	.L2
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	SQLITE_OPEN_READWRITE
	.word	SQLITE_OPEN_CREATE
	.word	SQLITE_OPEN_FULLMUTEX
	.word	.LC1
	.word	SQLITE_OK
	.word	.LC0
	.size	db_open, .-db_open
	.comm	SQLITE_OPEN_READWRITE,4,4
	.comm	SQLITE_OPEN_FULLMUTEX,4,4
	.comm	SQLITE_OPEN_CREATE,4,4
	.comm	SQLITE_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
