	.file	"1000530.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: test_load_virtual_ogr libgdal.so|gdalXX.dll [datasource_name] [layer_name]\n"
.LC1:
	.string	"tmp.db"
.LC2:
	.string	"cannot open DB.\n"
	.align 8
.LC3:
	.string	"sqlite3_enable_load_extension() failed\n"
	.align 8
.LC4:
	.string	"sqlite3_load_extension(%s) failed: %s\n"
.LC5:
	.string	"SELECT ogr_version()"
	.align 8
.LC6:
	.string	"SELECT ogr_version() returned : %s\n"
	.align 8
.LC7:
	.string	"SELECT ogr_version() failed: %s\n"
	.align 8
.LC8:
	.string	"CREATE VIRTUAL TABLE foo USING VirtualOGR('%s')"
	.align 8
.LC9:
	.string	"CREATE VIRTUAL TABLE foo USING VirtualOGR('%s', 0, '%s', 1)"
.LC10:
	.string	"%s failed: %s\n"
.LC11:
	.string	"Managed to open '%s'\n"
.LC12:
	.string	"Managed to open '%s':'%s'\n"
	.align 8
.LC13:
	.string	"CREATE TABLE spy_table (spy_content VARCHAR)"
.LC14:
	.string	"the_stack_data/1000530.c"
	.align 8
.LC15:
	.string	"SQLITE_OK == sqlite3_exec(db, \"CREATE TABLE spy_table (spy_content VARCHAR)\", NULL, NULL, NULL)"
	.align 8
.LC16:
	.string	"CREATE TABLE regular_table (bar VARCHAR)"
	.align 8
.LC17:
	.string	"SQLITE_OK == sqlite3_exec(db, \"CREATE TABLE regular_table (bar VARCHAR)\", NULL, NULL, NULL)"
	.align 8
.LC18:
	.string	"CREATE TRIGGER spy_trigger INSERT ON regular_table BEGIN INSERT OR REPLACE INTO spy_table (spy_content) SELECT OGR_STYLE FROM foo; END;"
	.align 8
.LC19:
	.string	"SQLITE_OK == sqlite3_exec(db, \"CREATE TRIGGER spy_trigger INSERT ON regular_table BEGIN \" \"INSERT OR REPLACE INTO spy_table (spy_content) \" \"SELECT OGR_STYLE FROM foo; END;\", NULL, NULL, NULL)"
.LC20:
	.string	"cannot reopen DB.\n"
	.align 8
.LC21:
	.string	"SQLITE_OK == sqlite3_enable_load_extension(db, 1)"
	.align 8
.LC22:
	.string	"SQLITE_OK == sqlite3_load_extension(db, argv[1], NULL, NULL)"
	.align 8
.LC23:
	.string	"INSERT INTO regular_table (bar) VALUES ('bar')"
	.align 8
.LC24:
	.string	"SQLITE_OK != sqlite3_exec(db, \"INSERT INTO regular_table (bar) VALUES ('bar')\", NULL, NULL, &pszErrMsg)"
.LC25:
	.string	"Expected error. We got : %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 336
	mov	DWORD PTR -324[rbp], edi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	DWORD PTR -308[rbp], 0
	mov	DWORD PTR -304[rbp], 0
	cmp	DWORD PTR -324[rbp], 1
	jle	.L2
	cmp	DWORD PTR -324[rbp], 4
	jle	.L3
.L2:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 82
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rax, -296[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	sqlite3_open@PLT
	mov	rax, QWORD PTR -296[rbp]
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -296[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	sqlite3_enable_load_extension@PLT
	mov	DWORD PTR -300[rbp], eax
	cmp	DWORD PTR -300[rbp], 0
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	lea	rdi, .LC1[rip]
	call	unlink@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -296[rbp]
	lea	rdx, -288[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	rdi, rax
	call	sqlite3_load_extension@PLT
	mov	DWORD PTR -300[rbp], eax
	cmp	DWORD PTR -300[rbp], 0
	je	.L6
	mov	rcx, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	lea	rdi, .LC1[rip]
	call	unlink@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -296[rbp]
	lea	rdi, -288[rbp]
	lea	rsi, -304[rbp]
	lea	rcx, -308[rbp]
	lea	rdx, -280[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	sqlite3_get_table@PLT
	mov	DWORD PTR -300[rbp], eax
	cmp	DWORD PTR -300[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -308[rbp]
	cmp	eax, 1
	jne	.L7
	mov	eax, DWORD PTR -304[rbp]
	cmp	eax, 1
	jne	.L7
	mov	rax, QWORD PTR -280[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	sqlite3_free_table@PLT
	cmp	DWORD PTR -324[rbp], 2
	jg	.L8
	jmp	.L9
.L7:
	mov	rdx, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	lea	rdi, .LC1[rip]
	call	unlink@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	cmp	DWORD PTR -324[rbp], 3
	jne	.L10
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	lea	rdx, .LC8[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 24
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -272[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC9[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
.L11:
	mov	rax, QWORD PTR -296[rbp]
	lea	rdx, -288[rbp]
	lea	rsi, -272[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	sqlite3_exec@PLT
	mov	DWORD PTR -300[rbp], eax
	cmp	DWORD PTR -300[rbp], 0
	je	.L12
	mov	rcx, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -272[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	lea	rdi, .LC1[rip]
	call	unlink@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	cmp	DWORD PTR -324[rbp], 3
	jne	.L13
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	mov	rax, QWORD PTR -296[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	sqlite3_exec@PLT
	test	eax, eax
	je	.L15
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 157
	lea	rsi, .LC14[rip]
	lea	rdi, .LC15[rip]
	call	__assert_fail@PLT
.L15:
	mov	rax, QWORD PTR -296[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	sqlite3_exec@PLT
	test	eax, eax
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 159
	lea	rsi, .LC14[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L16:
	mov	rax, QWORD PTR -296[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	sqlite3_exec@PLT
	test	eax, eax
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 161
	lea	rsi, .LC14[rip]
	lea	rdi, .LC19[rip]
	call	__assert_fail@PLT
.L17:
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	mov	QWORD PTR -296[rbp], 0
	lea	rax, -296[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	sqlite3_open@PLT
	mov	rax, QWORD PTR -296[rbp]
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	lea	rdi, .LC1[rip]
	call	unlink@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	rax, QWORD PTR -296[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	sqlite3_enable_load_extension@PLT
	test	eax, eax
	je	.L19
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 176
	lea	rsi, .LC14[rip]
	lea	rdi, .LC21[rip]
	call	__assert_fail@PLT
.L19:
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -296[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	sqlite3_load_extension@PLT
	test	eax, eax
	je	.L20
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 178
	lea	rsi, .LC14[rip]
	lea	rdi, .LC22[rip]
	call	__assert_fail@PLT
.L20:
	mov	QWORD PTR -288[rbp], 0
	mov	rax, QWORD PTR -296[rbp]
	lea	rdx, -288[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	sqlite3_exec@PLT
	test	eax, eax
	jne	.L21
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 181
	lea	rsi, .LC14[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L21:
	mov	rdx, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
.L9:
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	lea	rdi, .LC1[rip]
	call	unlink@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"1000530.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: test_load_virtual_ogr libgdal.so|gdalXX.dll "
	.ascii	"[datasource_name] [layer_name]\012\000"
	.align	2
.LC1:
	.ascii	"tmp.db\000"
	.align	2
.LC2:
	.ascii	"cannot open DB.\012\000"
	.align	2
.LC3:
	.ascii	"sqlite3_enable_load_extension() failed\012\000"
	.align	2
.LC4:
	.ascii	"sqlite3_load_extension(%s) failed: %s\012\000"
	.align	2
.LC5:
	.ascii	"SELECT ogr_version()\000"
	.align	2
.LC6:
	.ascii	"SELECT ogr_version() returned : %s\012\000"
	.align	2
.LC7:
	.ascii	"SELECT ogr_version() failed: %s\012\000"
	.align	2
.LC8:
	.ascii	"CREATE VIRTUAL TABLE foo USING VirtualOGR('%s')\000"
	.align	2
.LC9:
	.ascii	"CREATE VIRTUAL TABLE foo USING VirtualOGR('%s', 0, "
	.ascii	"'%s', 1)\000"
	.align	2
.LC10:
	.ascii	"%s failed: %s\012\000"
	.align	2
.LC11:
	.ascii	"Managed to open '%s'\012\000"
	.align	2
.LC12:
	.ascii	"Managed to open '%s':'%s'\012\000"
	.align	2
.LC13:
	.ascii	"CREATE TABLE spy_table (spy_content VARCHAR)\000"
	.align	2
.LC14:
	.ascii	"the_stack_data/1000530.c\000"
	.align	2
.LC15:
	.ascii	"SQLITE_OK == sqlite3_exec(db, \"CREATE TABLE spy_ta"
	.ascii	"ble (spy_content VARCHAR)\", NULL, NULL, NULL)\000"
	.align	2
.LC16:
	.ascii	"CREATE TABLE regular_table (bar VARCHAR)\000"
	.align	2
.LC17:
	.ascii	"SQLITE_OK == sqlite3_exec(db, \"CREATE TABLE regula"
	.ascii	"r_table (bar VARCHAR)\", NULL, NULL, NULL)\000"
	.align	2
.LC18:
	.ascii	"CREATE TRIGGER spy_trigger INSERT ON regular_table "
	.ascii	"BEGIN INSERT OR REPLACE INTO spy_table (spy_content"
	.ascii	") SELECT OGR_STYLE FROM foo; END;\000"
	.align	2
.LC19:
	.ascii	"SQLITE_OK == sqlite3_exec(db, \"CREATE TRIGGER spy_"
	.ascii	"trigger INSERT ON regular_table BEGIN \" \"INSERT O"
	.ascii	"R REPLACE INTO spy_table (spy_content) \" \"SELECT "
	.ascii	"OGR_STYLE FROM foo; END;\", NULL, NULL, NULL)\000"
	.align	2
.LC20:
	.ascii	"cannot reopen DB.\012\000"
	.align	2
.LC21:
	.ascii	"SQLITE_OK == sqlite3_enable_load_extension(db, 1)\000"
	.align	2
.LC22:
	.ascii	"SQLITE_OK == sqlite3_load_extension(db, argv[1], NU"
	.ascii	"LL, NULL)\000"
	.align	2
.LC23:
	.ascii	"INSERT INTO regular_table (bar) VALUES ('bar')\000"
	.align	2
.LC24:
	.ascii	"SQLITE_OK != sqlite3_exec(db, \"INSERT INTO regular"
	.ascii	"_table (bar) VALUES ('bar')\", NULL, NULL, &pszErrM"
	.ascii	"sg)\000"
	.align	2
.LC25:
	.ascii	"Expected error. We got : %s\012\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #304
	str	r0, [fp, #-296]
	str	r1, [fp, #-300]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-284]
	mov	r3, #0
	str	r3, [fp, #-280]
	mov	r3, #0
	str	r3, [fp, #-276]
	mov	r3, #0
	str	r3, [fp, #-272]
	ldr	r3, [fp, #-296]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-296]
	cmp	r3, #4
	ble	.L3
.L2:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #82
	mov	r1, #1
	ldr	r0, .L24+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #288
	mov	r1, r3
	ldr	r0, .L24+12
	bl	sqlite3_open
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L24+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-288]
	mov	r1, #1
	mov	r0, r3
	bl	sqlite3_enable_load_extension
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L24+20
	bl	fwrite
	ldr	r3, [fp, #-288]
	mov	r0, r3
	bl	sqlite3_close
	ldr	r0, .L24+12
	bl	unlink
	mov	r0, #1
	bl	exit
.L5:
	ldr	r0, [fp, #-288]
	ldr	r3, [fp, #-300]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #284
	mov	r2, #0
	bl	sqlite3_load_extension
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L24+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-300]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-284]
	ldr	r1, .L24+24
	bl	fprintf
	ldr	r3, [fp, #-284]
	mov	r0, r3
	bl	sqlite3_free
	ldr	r3, [fp, #-288]
	mov	r0, r3
	bl	sqlite3_close
	ldr	r0, .L24+12
	bl	unlink
	mov	r0, #1
	bl	exit
.L6:
	ldr	r0, [fp, #-288]
	sub	r1, fp, #276
	sub	r2, fp, #280
	sub	r3, fp, #284
	str	r3, [sp, #4]
	sub	r3, fp, #272
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L24+28
	bl	sqlite3_get_table
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-276]
	cmp	r3, #1
	bne	.L7
	ldr	r3, [fp, #-272]
	cmp	r3, #1
	bne	.L7
	ldr	r3, [fp, #-280]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L24+32
	bl	printf
	ldr	r3, [fp, #-280]
	mov	r0, r3
	bl	sqlite3_free_table
	ldr	r3, [fp, #-296]
	cmp	r3, #2
	bgt	.L8
	b	.L9
.L7:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-284]
	ldr	r1, .L24+36
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-284]
	mov	r0, r3
	bl	sqlite3_free
	ldr	r3, [fp, #-288]
	mov	r0, r3
	bl	sqlite3_close
	ldr	r0, .L24+12
	bl	unlink
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-296]
	cmp	r3, #3
	bne	.L10
	ldr	r3, [fp, #-300]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r0, fp, #264
	ldr	r2, .L24+40
	mov	r1, #256
	bl	snprintf
	b	.L11
.L10:
	ldr	r3, [fp, #-300]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-300]
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r0, fp, #264
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L24+44
	mov	r1, #256
	bl	snprintf
.L11:
	ldr	r0, [fp, #-288]
	sub	r1, fp, #264
	sub	r3, fp, #284
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	sqlite3_exec
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L24+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-284]
	sub	r2, fp, #264
	ldr	r1, .L24+48
	bl	fprintf
	ldr	r3, [fp, #-284]
	mov	r0, r3
	bl	sqlite3_free
	ldr	r3, [fp, #-288]
	mov	r0, r3
	bl	sqlite3_close
	ldr	r0, .L24+12
	bl	unlink
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-296]
	cmp	r3, #3
	bne	.L13
	ldr	r3, [fp, #-300]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L24+52
	bl	printf
	b	.L14
.L13:
	ldr	r3, [fp, #-300]
	add	r3, r3, #8
	ldr	r1, [r3]
	ldr	r3, [fp, #-300]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L24+56
	bl	printf
.L14:
	ldr	r0, [fp, #-288]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L24+60
	bl	sqlite3_exec
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L24+64
	mov	r2, #157
	ldr	r1, .L24+68
	ldr	r0, .L24+72
	bl	__assert_fail
.L15:
	ldr	r0, [fp, #-288]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L24+76
	bl	sqlite3_exec
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L24+64
	mov	r2, #159
	ldr	r1, .L24+68
	ldr	r0, .L24+80
	bl	__assert_fail
.L16:
	ldr	r0, [fp, #-288]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L24+84
	bl	sqlite3_exec
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L24+64
	mov	r2, #161
	ldr	r1, .L24+68
	ldr	r0, .L24+88
	bl	__assert_fail
.L17:
	ldr	r3, [fp, #-288]
	mov	r0, r3
	bl	sqlite3_close
	mov	r3, #0
	str	r3, [fp, #-288]
	sub	r3, fp, #288
	mov	r1, r3
	ldr	r0, .L24+12
	bl	sqlite3_open
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L24+92
	bl	fwrite
	ldr	r0, .L24+12
	bl	unlink
	mov	r0, #1
	bl	exit
.L18:
	ldr	r3, [fp, #-288]
	mov	r1, #1
	mov	r0, r3
	bl	sqlite3_enable_load_extension
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L24+64
	mov	r2, #176
	ldr	r1, .L24+68
	ldr	r0, .L24+96
	bl	__assert_fail
.L19:
	ldr	r0, [fp, #-288]
	ldr	r3, [fp, #-300]
	add	r3, r3, #4
	ldr	r1, [r3]
	mov	r3, #0
	mov	r2, #0
	bl	sqlite3_load_extension
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L24+64
	mov	r2, #178
	ldr	r1, .L24+68
	ldr	r0, .L24+100
	bl	__assert_fail
.L20:
	mov	r3, #0
	str	r3, [fp, #-284]
	ldr	r0, [fp, #-288]
	sub	r3, fp, #284
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L24+104
	bl	sqlite3_exec
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L24+64
	mov	r2, #181
	ldr	r1, .L24+68
	ldr	r0, .L24+108
	bl	__assert_fail
.L21:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-284]
	ldr	r1, .L24+112
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-284]
	mov	r0, r3
	bl	sqlite3_free
.L9:
	ldr	r3, [fp, #-288]
	mov	r0, r3
	bl	sqlite3_close
	ldr	r0, .L24+12
	bl	unlink
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC26
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	__PRETTY_FUNCTION__.7337
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7337, %object
	.size	__PRETTY_FUNCTION__.7337, 5
__PRETTY_FUNCTION__.7337:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
