	.file	"extr_speedtest8inst1.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"-db"
.LC2:
	.string	"-script"
.LC3:
	.string	"-log"
.LC4:
	.string	"-logdata"
.LC5:
	.string	"Failed to read script file\n"
.LC6:
	.string	"logging"
.LC7:
	.string	"Failed to open db: %s\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.ascii	"Usage: %s options...\n  where available options are:\n\n    "
	.ascii	"-db      D"
	.string	"ATABASE-FILE  (database file to operate on)\n    -script  SCRIPT-FILE    (script file to read sql from)\n    -log     LOG-FILE       (log file to create)\n    -logdata                (log all data to log file)\n\n  Options -db, -script and -log are compulsory\n\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	ecx, 40
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	lea	rsi, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 392
	.cfi_def_cfa_offset 448
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 376[rsp], rax
	xor	eax, eax
	lea	rdi, 48[rsp]
	mov	QWORD PTR 24[rsp], rdi
	rep movsq
	mov	eax, DWORD PTR [rsi]
	mov	DWORD PTR [rdi], eax
	cmp	r13d, 1
	jle	.L2
	mov	DWORD PTR 20[rsp], 0
	mov	ebp, 1
	xor	r15d, r15d
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR [rsp], 0
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L43:
	mov	r15, QWORD PTR 8[r14+rbx]
.L4:
	lea	ebp, 1[rax]
	cmp	r13d, ebp
	jle	.L21
.L9:
	movsx	rbx, ebp
	lea	rdi, .LC1[rip]
	sal	rbx, 3
	lea	r12, [r14+rbx]
	mov	rsi, QWORD PTR [r12]
	call	stringcompare@PLT
	test	rax, rax
	je	.L3
	lea	eax, 1[rbp]
	cmp	eax, r13d
	jl	.L43
.L3:
	mov	rsi, QWORD PTR [r12]
	lea	rdi, .LC2[rip]
	call	stringcompare@PLT
	test	rax, rax
	je	.L5
	lea	eax, 1[rbp]
	cmp	eax, r13d
	jge	.L6
	mov	rcx, QWORD PTR 8[r14+rbx]
	mov	QWORD PTR [rsp], rcx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, QWORD PTR [r12]
	lea	rdi, .LC3[rip]
	call	stringcompare@PLT
	test	rax, rax
	je	.L7
.L8:
	mov	rsi, QWORD PTR [r12]
	lea	rdi, .LC4[rip]
	call	stringcompare@PLT
	test	rax, rax
	jne	.L44
.L2:
	mov	rdx, QWORD PTR [r14]
	mov	rsi, QWORD PTR 24[rsp]
	xor	eax, eax
	mov	edi, DWORD PTR stderr[rip]
	call	fprintf@PLT
	mov	eax, -3
.L1:
	mov	rcx, QWORD PTR 376[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L45
	add	rsp, 392
	.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
.L5:
	.cfi_restore_state
	mov	rsi, QWORD PTR [r12]
	lea	rdi, .LC3[rip]
	call	stringcompare@PLT
	test	rax, rax
	je	.L7
	lea	eax, 1[rbp]
	cmp	eax, r13d
	jge	.L8
	mov	rdx, QWORD PTR 8[r14+rbx]
	mov	QWORD PTR 8[rsp], rdx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, QWORD PTR [r12]
	lea	rdi, .LC4[rip]
	call	stringcompare@PLT
	test	rax, rax
	je	.L2
	mov	DWORD PTR 20[rsp], 1
	mov	eax, ebp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L44:
	mov	DWORD PTR 20[rsp], 1
.L21:
	mov	rdi, QWORD PTR [rsp]
	test	r15, r15
	sete	dl
	test	rdi, rdi
	sete	al
	or	dl, al
	jne	.L2
	cmp	QWORD PTR 8[rsp], 0
	je	.L2
	lea	rsi, 36[rsp]
	call	readScriptFile@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L46
	mov	ecx, DWORD PTR 20[rsp]
	mov	rdx, QWORD PTR 8[rsp]
	xor	esi, esi
	lea	rdi, .LC6[rip]
	call	sqlite3_instvfs_binarylog@PLT
	mov	edx, DWORD PTR SQLITE_OPEN_READWRITE[rip]
	lea	rsi, 40[rsp]
	mov	rdi, r15
	or	edx, DWORD PTR SQLITE_OPEN_CREATE[rip]
	lea	rcx, .LC6[rip]
	mov	QWORD PTR [rsp], rax
	call	sqlite3_open_v2@PLT
	cmp	DWORD PTR SQLITE_OK[rip], eax
	jne	.L12
	lea	rax, 1[rbp]
	xor	ebx, ebx
	xor	r14d, r14d
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR 36[rsp]
	test	eax, eax
	jg	.L13
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	add	rbx, 1
	cmp	DWORD PTR 36[rsp], ebx
	jle	.L14
.L13:
	cmp	BYTE PTR 0[rbp+rbx], 59
	jne	.L15
	movzx	r13d, BYTE PTR 1[rbp+rbx]
	movsx	r15, r14d
	mov	BYTE PTR 1[rbp+rbx], 0
	lea	r12, 0[rbp+r15]
	mov	rdi, r12
	call	sqlite3_complete@PLT
	mov	BYTE PTR 1[rbp+rbx], r13b
	test	eax, eax
	je	.L15
	mov	BYTE PTR 0[rbp+rbx], 0
	cmp	r14d, ebx
	jge	.L20
	mov	eax, ebx
	add	r15, QWORD PTR 8[rsp]
	sub	eax, r14d
	sub	eax, 1
	add	r15, rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	add	r12, 1
	cmp	r15, r12
	je	.L20
.L17:
	movsx	edi, BYTE PTR [r12]
	call	ISSPACE@PLT
	test	rax, rax
	jne	.L18
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdi, QWORD PTR [rsp]
	mov	rdx, r12
	call	prepareAndRun@PLT
.L20:
	mov	BYTE PTR 0[rbp+rbx], 59
	lea	r14d, 1[rbx]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, QWORD PTR [rsp]
	call	sqlite3_instvfs_destroy@PLT
	xor	eax, eax
	jmp	.L1
.L12:
	mov	rdi, QWORD PTR 40[rsp]
	call	sqlite3_errmsg@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, -2
	jmp	.L1
.L46:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	fprintf@PLT
	or	eax, -1
	jmp	.L1
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	SQLITE_OPEN_READWRITE,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
	.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_speedtest8inst1.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"-db\000"
	.align	2
.LC2:
	.ascii	"-script\000"
	.align	2
.LC3:
	.ascii	"-log\000"
	.align	2
.LC4:
	.ascii	"-logdata\000"
	.align	2
.LC5:
	.ascii	"Failed to read script file\012\000"
	.align	2
.LC6:
	.ascii	"logging\000"
	.align	2
.LC7:
	.ascii	"Failed to open db: %s\012\000"
	.align	2
.LC0:
	.ascii	"Usage: %s options...\012  where available options a"
	.ascii	"re:\012\012    -db      DATABASE-FILE  (database fi"
	.ascii	"le to operate on)\012    -script  SCRIPT-FILE    (s"
	.ascii	"cript file to read sql from)\012    -log     LOG-FI"
	.ascii	"LE       (log file to create)\012    -logdata      "
	.ascii	"          (log all data to log file)\012\012  Optio"
	.ascii	"ns -db, -script and -log are compulsory\012\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 352
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	sub	sp, sp, #356
	ldr	r3, .L48
	mov	r4, r1
	mov	r2, #324
	ldr	r1, .L48+4
	add	r0, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #348]
	mov	r3,#0
	bl	memcpy
	cmp	r5, #1
	ble	.L2
	mov	r3, #0
	mov	r10, #1
	ldr	r7, .L48+8
	ldr	r8, .L48+12
	ldr	fp, .L48+16
	str	r3, [sp, #12]
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	str	r3, [sp]
	b	.L9
.L44:
	ldr	r3, [r6, #4]
	str	r3, [sp]
.L4:
	add	r10, r1, #1
	cmp	r5, r10
	ble	.L22
.L9:
	mov	r0, r7
	ldr	r1, [r4, r10, lsl #2]
	bl	stringcompare
	cmp	r0, #0
	lsl	r9, r10, #2
	add	r6, r4, r10, lsl #2
	beq	.L3
	add	r1, r10, #1
	cmp	r1, r5
	blt	.L44
.L3:
	mov	r0, r8
	ldr	r1, [r4, r9]
	bl	stringcompare
	cmp	r0, #0
	beq	.L5
	add	r1, r10, #1
	cmp	r1, r5
	ldrlt	r3, [r6, #4]
	strlt	r3, [sp, #4]
	blt	.L4
.L6:
	mov	r0, fp
	ldr	r1, [r4, r9]
	bl	stringcompare
	cmp	r0, #0
	beq	.L7
.L8:
	ldr	r1, [r6]
	ldr	r0, .L48+20
	bl	stringcompare
	cmp	r0, #0
	bne	.L45
.L2:
	ldr	r3, .L48+24
	ldr	r2, [r4]
	ldr	r0, [r3]
	add	r1, sp, #24
	bl	fprintf
	mvn	r0, #2
.L1:
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [sp, #348]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L46
	add	sp, sp, #356
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r0, fp
	ldr	r1, [r4, r9]
	bl	stringcompare
	cmp	r0, #0
	beq	.L7
	add	r1, r10, #1
	cmp	r1, r5
	bge	.L8
	ldr	r3, [r6, #4]
	str	r3, [sp, #8]
	b	.L4
.L7:
	ldr	r1, [r4, r9]
	ldr	r0, .L48+20
	bl	stringcompare
	cmp	r0, #0
	beq	.L2
	mov	r3, #1
	mov	r1, r10
	str	r3, [sp, #12]
	b	.L4
.L45:
	mov	r3, #1
	str	r3, [sp, #12]
.L22:
	ldr	r0, [sp, #4]
	ldr	r3, [sp]
	clz	fp, r0
	cmp	r3, #0
	ldr	r3, [sp, #8]
	lsr	fp, fp, #5
	moveq	fp, #1
	cmp	r3, #0
	moveq	fp, #1
	cmp	fp, #0
	bne	.L2
	add	r1, sp, #16
	bl	readScriptFile
	subs	r6, r0, #0
	beq	.L47
	mov	r1, fp
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #8]
	ldr	r0, .L48+28
	bl	sqlite3_instvfs_binarylog
	ldr	r2, .L48+32
	ldr	r3, .L48+36
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r7, r0
	orr	r2, r2, r3
	ldr	r0, [sp]
	ldr	r3, .L48+28
	add	r1, sp, #20
	bl	sqlite3_open_v2
	ldr	r3, .L48+40
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L12
	ldr	r2, [sp, #16]
	cmp	r2, #0
	subgt	r4, r6, #1
	rsbgt	r5, r6, #1
	bgt	.L20
	b	.L14
.L15:
	add	r3, r5, r4
	cmp	r2, r3
	ble	.L14
.L20:
	mov	r9, r4
	ldrb	r3, [r4, #1]!	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L15
	mov	r3, #0
	add	r8, r6, fp
	ldrb	r10, [r4, #1]	@ zero_extendqisi2
	mov	r0, r8
	strb	r3, [r4, #1]
	bl	sqlite3_complete
	cmp	r0, #0
	strb	r10, [r4, #1]
	bne	.L38
.L42:
	ldr	r2, [sp, #16]
	add	r3, r5, r4
	cmp	r2, r3
	bgt	.L20
.L14:
	mov	r0, r7
	bl	sqlite3_instvfs_destroy
	mov	r0, #0
	b	.L1
.L38:
	sub	r3, r4, r6
	cmp	fp, r3
	mov	r3, #0
	strb	r3, [r4]
	blt	.L17
	b	.L21
.L18:
	cmp	r9, r10
	beq	.L21
.L17:
	ldrb	r0, [r8]	@ zero_extendqisi2
	bl	ISSPACE
	cmp	r0, #0
	mov	r10, r8
	add	r8, r8, #1
	bne	.L18
	mov	r2, r10
	mov	r0, r7
	ldr	r1, [sp, #20]
	bl	prepareAndRun
.L21:
	mov	fp, r4
	mov	r3, #59
	strb	r3, [fp], r5
	b	.L42
.L12:
	ldr	r3, .L48+24
	ldr	r0, [sp, #20]
	ldr	r4, [r3]
	bl	sqlite3_errmsg
	ldr	r1, .L48+44
	mov	r2, r0
	mov	r0, r4
	bl	fprintf
	mvn	r0, #1
	b	.L1
.L47:
	ldr	r3, .L48+24
	ldr	r1, .L48+48
	ldr	r0, [r3]
	bl	fprintf
	mvn	r0, #0
	b	.L1
.L46:
	bl	__stack_chk_fail
.L49:
	.align	2
.L48:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC6
	.word	SQLITE_OPEN_READWRITE
	.word	SQLITE_OPEN_CREATE
	.word	SQLITE_OK
	.word	.LC7
	.word	.LC5
	.size	main, .-main
	.comm	stderr,4,4
	.comm	SQLITE_OPEN_READWRITE,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
