	.file	"353708.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"out of memory\n"
	.text
	.type	check_oom, @function
check_oom:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_oom, .-check_oom
	.type	safe_malloc, @function
safe_malloc:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, 1
	cmp	DWORD PTR -20[rbp], 0
	cmovg	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	sqlite3_malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	check_oom
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	safe_malloc, .-safe_malloc
	.section	.rodata
.LC1:
	.string	"TRACE(%02d): %s\n"
	.text
	.type	worker_trace, @function
worker_trace:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -240[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L7
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L7:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -232[rbp]
	mov	eax, DWORD PTR 8[rax]
	and	eax, 4
	test	eax, eax
	je	.L11
	mov	DWORD PTR -208[rbp], 16
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sqlite3_vmprintf@PLT
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	check_oom
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -216[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
	jmp	.L6
.L11:
	nop
.L6:
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	worker_trace, .-worker_trace
	.section	.rodata
	.align 8
.LC2:
	.string	"SQL error (%d,%d): %s\nWhile preparing: [%s]\n"
	.text
	.type	prep_sql, @function
prep_sql:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 264
	.cfi_offset 3, -24
	mov	QWORD PTR -264[rbp], rdi
	mov	QWORD PTR -272[rbp], rsi
	mov	QWORD PTR -176[rbp], rdx
	mov	QWORD PTR -168[rbp], rcx
	mov	QWORD PTR -160[rbp], r8
	mov	QWORD PTR -152[rbp], r9
	test	al, al
	je	.L13
	movaps	XMMWORD PTR -144[rbp], xmm0
	movaps	XMMWORD PTR -128[rbp], xmm1
	movaps	XMMWORD PTR -112[rbp], xmm2
	movaps	XMMWORD PTR -96[rbp], xmm3
	movaps	XMMWORD PTR -80[rbp], xmm4
	movaps	XMMWORD PTR -64[rbp], xmm5
	movaps	XMMWORD PTR -48[rbp], xmm6
	movaps	XMMWORD PTR -32[rbp], xmm7
.L13:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -200[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -240[rbp], 0
	mov	DWORD PTR -224[rbp], 16
	mov	DWORD PTR -220[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -216[rbp], rax
	lea	rax, -192[rbp]
	mov	QWORD PTR -208[rbp], rax
	lea	rdx, -224[rbp]
	mov	rax, QWORD PTR -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sqlite3_vmprintf@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	check_oom
	lea	rdx, -240[rbp]
	mov	rsi, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -264[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, -1
	mov	rdi, rax
	call	sqlite3_prepare_v2@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	sqlite3_errmsg@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	sqlite3_extended_errcode@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -244[rbp]
	mov	r9, rsi
	mov	r8, rbx
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
	mov	rax, QWORD PTR -240[rbp]
	mov	rbx, QWORD PTR -200[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	prep_sql, .-prep_sql
	.section	.rodata
.LC3:
	.string	"running [%s]"
.LC4:
	.string	"retry %d for [%s]"
	.align 8
.LC5:
	.string	"Deadlock in thread %d while running [%s]\n"
	.align 8
.LC6:
	.string	"SQL error (%d,%d): %s\nWhile running [%s]\n"
	.text
	.type	run_sql, @function
run_sql:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 264
	.cfi_offset 3, -24
	mov	QWORD PTR -264[rbp], rdi
	mov	QWORD PTR -272[rbp], rsi
	mov	QWORD PTR -176[rbp], rdx
	mov	QWORD PTR -168[rbp], rcx
	mov	QWORD PTR -160[rbp], r8
	mov	QWORD PTR -152[rbp], r9
	test	al, al
	je	.L18
	movaps	XMMWORD PTR -144[rbp], xmm0
	movaps	XMMWORD PTR -128[rbp], xmm1
	movaps	XMMWORD PTR -112[rbp], xmm2
	movaps	XMMWORD PTR -96[rbp], xmm3
	movaps	XMMWORD PTR -80[rbp], xmm4
	movaps	XMMWORD PTR -64[rbp], xmm5
	movaps	XMMWORD PTR -48[rbp], xmm6
	movaps	XMMWORD PTR -32[rbp], xmm7
.L18:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -200[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -240[rbp], 0
	mov	DWORD PTR -248[rbp], 0
	mov	DWORD PTR -224[rbp], 16
	mov	DWORD PTR -220[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -216[rbp], rax
	lea	rax, -192[rbp]
	mov	QWORD PTR -208[rbp], rax
	lea	rdx, -224[rbp]
	mov	rax, QWORD PTR -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sqlite3_vmprintf@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	check_oom
	mov	rax, QWORD PTR -264[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rdx, -240[rbp]
	mov	rsi, QWORD PTR -232[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, -1
	mov	rdi, rax
	call	sqlite3_prepare_v2@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -264[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	sqlite3_errmsg@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -264[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	sqlite3_extended_errcode@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -244[rbp]
	mov	r9, rsi
	mov	r8, rbx
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	rdx, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -264[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	worker_trace
	jmp	.L20
.L24:
	mov	eax, DWORD PTR -244[rbp]
	movzx	eax, al
	cmp	eax, 5
	je	.L21
	mov	eax, DWORD PTR -244[rbp]
	movzx	eax, al
	cmp	eax, 6
	jne	.L22
.L21:
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	sqlite3_reset@PLT
	add	DWORD PTR -248[rbp], 1
	cmp	DWORD PTR -248[rbp], 9
	jg	.L23
	mov	rcx, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -248[rbp]
	mov	rax, QWORD PTR -264[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	worker_trace
	call	sched_yield@PLT
	jmp	.L20
.L23:
	mov	rax, QWORD PTR -264[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -232[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	cmp	DWORD PTR -244[rbp], 100
	je	.L20
	mov	rax, QWORD PTR -264[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	sqlite3_errmsg@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -264[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	sqlite3_extended_errcode@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -244[rbp]
	mov	r9, rsi
	mov	r8, rbx
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	sqlite3_step@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], 101
	jne	.L24
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	sqlite3_finalize@PLT
	nop
	mov	rax, QWORD PTR -200[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	run_sql, .-run_sql
	.section	.rodata
.LC7:
	.string	"tt4-test%d.db"
.LC8:
	.string	"open %s"
	.align 8
.LC9:
	.string	"sqlite_open_v2(%s) failed on thread %d\n"
.LC10:
	.string	"PRAGMA read_uncommitted=ON;"
.LC11:
	.string	"PRAGMA synchronous=OFF;"
	.align 8
.LC12:
	.string	"ATTACH 'tt4-test%d.db' AS aux1"
	.align 8
.LC13:
	.string	"ATTACH 'tt4-test%d.db' AS aux2"
	.text
	.type	worker_open_connection, @function
worker_open_connection:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	add	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -16[rbp], eax
	mov	ecx, DWORD PTR -16[rbp]
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -16[rbp], edx
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, aOrder.0[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	sqlite3_mprintf@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	check_oom
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	worker_trace
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 0
	mov	edx, 131074
	mov	rdi, rax
	call	sqlite3_open_v2@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L27
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	esi, 10000
	mov	rdi, rax
	call	sqlite3_busy_timeout@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, aOrder.0[rip+1]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rdx, rax
	lea	rax, aOrder.0[rip+2]
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	worker_open_connection, .-worker_open_connection
	.section	.rodata
.LC14:
	.string	"close"
	.text
	.type	worker_close_connection, @function
worker_close_connection:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L30
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	worker_trace
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	sqlite3_close@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], 0
.L30:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	worker_close_connection, .-worker_close_connection
	.section	.rodata
.LC15:
	.string	"BEGIN"
.LC16:
	.string	"DELETE FROM t1 WHERE tid=%d"
.LC17:
	.string	"DELETE FROM t2 WHERE tid=%d"
.LC18:
	.string	"DELETE FROM t3 WHERE tid=%d"
.LC19:
	.string	"COMMIT"
	.text
	.type	worker_delete_all_content, @function
worker_delete_all_content:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 36[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 36[rax], edx
	jmp	.L34
.L32:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 36[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 36[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 36[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 36[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 36[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 36[rax], edx
.L34:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	worker_delete_all_content, .-worker_delete_all_content
	.section	.rodata
.LC20:
	.string	"t1(tid,sp,a,b,c)"
.LC21:
	.string	"t2(tid,sp,d,e,f)"
.LC22:
	.string	"t3(tid,sp,x,y,z)"
	.align 8
.LC23:
	.string	"WITH RECURSIVE\n c(i) AS (VALUES(%d) UNION ALL SELECT i+1 FROM c WHERE i<%d)\nINSERT INTO %s SELECT %d, zeroblob(3000), i, printf('%%d',i), i FROM c;"
	.text
	.type	worker_add_content, @function
worker_add_content:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	cmp	DWORD PTR -36[rbp], 3
	je	.L36
	cmp	DWORD PTR -36[rbp], 3
	jg	.L37
	cmp	DWORD PTR -36[rbp], 1
	je	.L38
	cmp	DWORD PTR -36[rbp], 2
	je	.L39
	jmp	.L37
.L38:
	lea	rax, .LC20[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L37
.L39:
	lea	rax, .LC21[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L37
.L36:
	lea	rax, .LC22[rip]
	mov	QWORD PTR -8[rbp], rax
	nop
.L37:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edi, DWORD PTR [rax]
	mov	rsi, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edi
	mov	r8, rsi
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 36[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 36[rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	worker_add_content, .-worker_add_content
	.type	worker_error, @function
worker_error:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -224[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L41
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L41:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -216[rbp]
	mov	eax, DWORD PTR 32[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -216[rbp]
	mov	DWORD PTR 32[rax], edx
	mov	rax, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	sqlite3_free@PLT
	mov	DWORD PTR -208[rbp], 16
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sqlite3_vmprintf@PLT
	mov	rdx, QWORD PTR -216[rbp]
	mov	QWORD PTR 40[rdx], rax
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	worker_error, .-worker_error
	.section	.rodata
.LC24:
	.string	"worker %d startup\n"
	.align 8
.LC25:
	.string	"SELECT count(a) FROM t1 WHERE tid=%d"
.LC26:
	.string	"query [%s]"
.LC27:
	.string	"Failed to step: %s"
.LC28:
	.string	"Wrong result: %d"
.LC29:
	.string	"BEGIN;"
	.align 8
.LC30:
	.string	"UPDATE t1 SET c=NULL WHERE a=55"
	.align 8
.LC31:
	.string	"UPDATE t2 SET f=NULL WHERE d=42"
	.align 8
.LC32:
	.string	"UPDATE t3 SET z=NULL WHERE x=31"
.LC33:
	.string	"ROLLBACK;"
.LC34:
	.string	"VACUUM"
	.align 8
.LC35:
	.string	"SELECT t1.rowid, t2.rowid, t3.rowid  FROM t1, t2, t3 WHERE t1.tid=%d AND t2.tid=%d AND t3.tid=%d   AND t1.a<>t2.d AND t2.d<>t3.x ORDER BY 1, 2, 3"
.LC36:
	.string	"worker %d finished\n"
	.text
	.type	worker_thread, @function
worker_thread:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -28[rbp], 1
	jmp	.L44
.L58:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	worker_open_connection
	mov	DWORD PTR -24[rbp], 0
	jmp	.L45
.L46:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	add	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	imul	edx, eax, 100
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, eax, 100
	lea	esi, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	worker_add_content
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	imul	edx, eax, 100
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, eax, 100
	lea	esi, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	worker_add_content
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	lea	edx, 2[rax]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	imul	edx, eax, 100
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, eax, 100
	lea	esi, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	worker_add_content
	add	DWORD PTR -24[rbp], 1
.L45:
	cmp	DWORD PTR -24[rbp], 3
	jle	.L46
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	prep_sql
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sqlite3_sql@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	worker_trace
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sqlite3_step@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 100
	je	.L47
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sqlite3_sql@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	worker_error
	jmp	.L48
.L47:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sqlite3_column_int@PLT
	cmp	eax, 400
	je	.L48
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sqlite3_column_int@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	worker_error
.L48:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sqlite3_finalize@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	jne	.L60
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	add	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L51
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	sqlite3_db_release_memory@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 36[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 36[rax], edx
.L51:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 36[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 36[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L52
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
.L52:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	r8d, esi
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	prep_sql
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sqlite3_sql@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	worker_trace
	mov	DWORD PTR -24[rbp], 0
	jmp	.L53
.L56:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sqlite3_step@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 100
	je	.L54
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sqlite3_sql@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	worker_error
	jmp	.L55
.L54:
	call	sched_yield@PLT
	add	DWORD PTR -24[rbp], 1
.L53:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L56
.L55:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sqlite3_finalize@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	jne	.L61
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	worker_delete_all_content
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	worker_close_connection
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 24[rax], 0
	add	DWORD PTR -28[rbp], 1
.L44:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L58
	jmp	.L50
.L60:
	nop
	jmp	.L50
.L61:
	nop
.L50:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	worker_close_connection
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	worker_thread, .-worker_thread
	.section	.rodata
.LC37:
	.string	"-multithread"
.LC38:
	.string	"-serialized"
.LC39:
	.string	"-wal"
.LC40:
	.string	"-trace"
	.align 8
.LC41:
	.string	"unknown command-line option: %s\n"
.LC42:
	.string	"minimum of 2 threads\n"
	.align 8
.LC43:
	.string	"extra command-line argument: \"%s\"\n"
	.align 8
.LC44:
	.string	"usage:  %s ?OPTIONS? N\nN is the number of threads and must be at least 2.\nOptions:\n  --serialized\n  --multithread\n  --wal\n  --trace\n"
	.align 8
.LC45:
	.string	"requires a threadsafe build of SQLite\n"
.LC46:
	.string	"tt4-test1.db"
.LC47:
	.string	"tt4-test2.db"
.LC48:
	.string	"tt4-test3.db"
	.align 8
.LC49:
	.string	"Unable to open test database: tt4-test2.db\n"
.LC50:
	.string	"PRAGMA journal_mode=WAL"
.LC51:
	.string	"PRAGMA synchronous=OFF"
	.align 8
.LC52:
	.string	"CREATE TABLE IF NOT EXISTS t1(tid INTEGER, sp, a, b, c)"
.LC53:
	.string	"CREATE INDEX t1tid ON t1(tid)"
.LC54:
	.string	"CREATE INDEX t1ab ON t1(a,b)"
	.align 8
.LC55:
	.string	"ATTACH 'tt4-test2.db' AS 'test2'"
	.align 8
.LC56:
	.string	"CREATE TABLE IF NOT EXISTS test2.t2(tid INTEGER, sp, d, e, f)"
	.align 8
.LC57:
	.string	"CREATE INDEX test2.t2tid ON t2(tid)"
	.align 8
.LC58:
	.string	"CREATE INDEX test2.t2de ON t2(d,e)"
	.align 8
.LC59:
	.string	"ATTACH 'tt4-test3.db' AS 'test3'"
	.align 8
.LC60:
	.string	"CREATE TABLE IF NOT EXISTS test3.t3(tid INTEGER, sp, x, y, z)"
	.align 8
.LC61:
	.string	"CREATE INDEX test3.t3tid ON t3(tid)"
	.align 8
.LC62:
	.string	"CREATE INDEX test3.t3xy ON t3(x,y)"
	.align 8
.LC63:
	.string	"thread creation failed for thread %d\n"
	.align 8
.LC64:
	.string	"Joined thread %d: %d errors in %d tests"
.LC65:
	.string	": %s\n"
.LC66:
	.string	"Total %d errors in %d tests\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -168[rbp], 0
	mov	DWORD PTR -160[rbp], 0
	mov	DWORD PTR -156[rbp], 0
	mov	DWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	edi, 2
	mov	eax, 0
	call	sqlite3_config@PLT
	mov	DWORD PTR -164[rbp], 1
	jmp	.L63
.L73:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L64
	mov	rax, QWORD PTR -136[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L65
	mov	rax, QWORD PTR -136[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L65
	add	QWORD PTR -136[rbp], 1
.L65:
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L66
	mov	edi, 2
	mov	eax, 0
	call	sqlite3_config@PLT
	and	DWORD PTR -160[rbp], -2
	jmp	.L67
.L66:
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L68
	mov	edi, 3
	mov	eax, 0
	call	sqlite3_config@PLT
	or	DWORD PTR -160[rbp], 1
	jmp	.L67
.L68:
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L69
	or	DWORD PTR -160[rbp], 2
	jmp	.L67
.L69:
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L70
	or	DWORD PTR -160[rbp], 4
	jmp	.L67
.L70:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L64:
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	jle	.L71
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jg	.L71
	cmp	DWORD PTR -168[rbp], 0
	jne	.L71
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -168[rbp], eax
	cmp	DWORD PTR -168[rbp], 1
	jg	.L67
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC42[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L71:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L67:
	add	DWORD PTR -164[rbp], 1
.L63:
	mov	eax, DWORD PTR -164[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L73
	cmp	DWORD PTR -168[rbp], 0
	jne	.L74
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC44[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L74:
	call	sqlite3_threadsafe@PLT
	test	eax, eax
	jne	.L75
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC45[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L75:
	call	sqlite3_initialize@PLT
	mov	edi, 1
	call	sqlite3_enable_shared_cache@PLT
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	lea	rdi, .LC46[rip]
	call	unlink@PLT
	lea	rdi, .LC47[rip]
	call	unlink@PLT
	lea	rdi, .LC48[rip]
	call	unlink@PLT
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	call	sqlite3_open@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	je	.L76
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC49[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L76:
	lea	rax, -112[rbp]
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -160[rbp]
	mov	DWORD PTR -104[rbp], eax
	lea	rax, -112[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	eax, DWORD PTR -160[rbp]
	and	eax, 2
	test	eax, eax
	je	.L77
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC50[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
.L77:
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC51[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC52[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC53[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC54[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC55[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC56[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC57[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC58[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC59[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC60[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC61[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC62[rip]
	mov	rdi, rax
	mov	eax, 0
	call	run_sql
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	sal	eax, 6
	mov	edi, eax
	call	safe_malloc
	mov	QWORD PTR -120[rbp], rax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -164[rbp], 0
	jmp	.L78
.L80:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -164[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -168[rbp]
	mov	DWORD PTR 4[rdx], eax
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -160[rbp]
	mov	DWORD PTR 8[rdx], eax
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	lea	rax, -48[rbp]
	mov	QWORD PTR 56[rdx], rax
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rcx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rcx
	add	rax, 48
	mov	rcx, rdx
	lea	rdx, worker_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	je	.L79
	mov	eax, DWORD PTR -164[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC63[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L79:
	call	sched_yield@PLT
	add	DWORD PTR -164[rbp], 1
.L78:
	mov	eax, DWORD PTR -164[rbp]
	cmp	eax, DWORD PTR -168[rbp]
	jl	.L80
	mov	DWORD PTR -164[rbp], 0
	jmp	.L81
.L84:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 48[rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR 36[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 32[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rsi, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC64[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L82
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rax
	lea	rdi, .LC65[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L83
.L82:
	mov	edi, 10
	call	putchar@PLT
.L83:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 32[rax]
	add	DWORD PTR -156[rbp], eax
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 36[rax]
	add	DWORD PTR -152[rbp], eax
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -164[rbp], 1
.L81:
	mov	eax, DWORD PTR -164[rbp]
	cmp	eax, DWORD PTR -168[rbp]
	jl	.L84
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
	mov	edx, DWORD PTR -152[rbp]
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, eax
	lea	rdi, .LC66[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -156[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L86
	call	__stack_chk_fail@PLT
.L86:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	aOrder.0, @object
	.size	aOrder.0, 18
aOrder.0:
	.ascii	"\001\002\003"
	.ascii	"\001\003\002"
	.ascii	"\002\001\003"
	.ascii	"\002\003\001"
	.ascii	"\003\001\002"
	.ascii	"\003\002\001"
	.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	"353708.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"out of memory\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_oom, %function
check_oom:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L4+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	stderr
	.word	.LC0
	.size	check_oom, .-check_oom
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	safe_malloc, %function
safe_malloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	movge	r3, r3
	movlt	r3, #1
	mov	r0, r3
	bl	sqlite3_malloc
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	check_oom
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	safe_malloc, .-safe_malloc
	.section	.rodata
	.align	2
.LC1:
	.ascii	"TRACE(%02d): %s\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker_trace, %function
worker_trace:
	@ args = 4, pretend = 12, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #28
	str	r0, [fp, #-28]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-32]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L12
	add	r3, fp, #8
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	sqlite3_vmprintf
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	check_oom
	ldr	r3, .L13+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, .L13+8
	bl	fprintf
	ldr	r0, [fp, #-16]
	bl	sqlite3_free
	b	.L8
.L12:
	nop
.L8:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #12
	bx	lr
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	stderr
	.word	.LC1
	.size	worker_trace, .-worker_trace
	.section	.rodata
	.align	2
.LC3:
	.ascii	"SQL error (%d,%d): %s\012While preparing: [%s]\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prep_sql, %function
prep_sql:
	@ args = 4, pretend = 12, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #44
	str	r0, [fp, #-44]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-48]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	add	r3, fp, #8
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-48]
	bl	sqlite3_vmprintf
	str	r0, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	check_oom
	sub	r3, fp, #32
	mov	r2, #0
	str	r2, [sp]
	mvn	r2, #0
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-44]
	bl	sqlite3_prepare_v2
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L19+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-44]
	bl	sqlite3_extended_errcode
	mov	r5, r0
	ldr	r0, [fp, #-44]
	bl	sqlite3_errmsg
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, r5
	ldr	r2, [fp, #-24]
	ldr	r1, .L19+8
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L16:
	ldr	r0, [fp, #-28]
	bl	sqlite3_free
	ldr	r3, [fp, #-32]
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-20]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, lr}
	add	sp, sp, #12
	bx	lr
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	stderr
	.word	.LC3
	.size	prep_sql, .-prep_sql
	.section	.rodata
	.align	2
.LC5:
	.ascii	"running [%s]\000"
	.align	2
.LC6:
	.ascii	"retry %d for [%s]\000"
	.align	2
.LC7:
	.ascii	"Deadlock in thread %d while running [%s]\012\000"
	.align	2
.LC8:
	.ascii	"SQL error (%d,%d): %s\012While running [%s]\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	run_sql, %function
run_sql:
	@ args = 4, pretend = 12, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #44
	str	r0, [fp, #-44]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-48]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	add	r3, fp, #8
	str	r3, [fp, #-40]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-48]
	bl	sqlite3_vmprintf
	str	r0, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	check_oom
	ldr	r3, [fp, #-44]
	ldr	r0, [r3, #16]
	sub	r3, fp, #36
	mov	r2, #0
	str	r2, [sp]
	mvn	r2, #0
	ldr	r1, [fp, #-28]
	bl	sqlite3_prepare_v2
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L29+4
	ldr	r4, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	sqlite3_extended_errcode
	mov	r5, r0
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	sqlite3_errmsg
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, r5
	ldr	r2, [fp, #-24]
	ldr	r1, .L29+8
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L22:
	ldr	r2, [fp, #-28]
	ldr	r1, .L29+12
	ldr	r0, [fp, #-44]
	bl	worker_trace
	b	.L23
.L27:
	ldr	r3, [fp, #-24]
	and	r3, r3, #255
	cmp	r3, #5
	beq	.L24
	ldr	r3, [fp, #-24]
	and	r3, r3, #255
	cmp	r3, #6
	bne	.L25
.L24:
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	sqlite3_reset
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #9
	bgt	.L26
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	ldr	r1, .L29+16
	ldr	r0, [fp, #-44]
	bl	worker_trace
	bl	sched_yield
	b	.L23
.L26:
	ldr	r3, .L29+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r1, .L29+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L25:
	ldr	r3, [fp, #-24]
	cmp	r3, #100
	beq	.L23
	ldr	r3, .L29+4
	ldr	r4, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	sqlite3_extended_errcode
	mov	r5, r0
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	sqlite3_errmsg
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, r5
	ldr	r2, [fp, #-24]
	ldr	r1, .L29+24
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	sqlite3_step
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #101
	bne	.L27
	ldr	r0, [fp, #-28]
	bl	sqlite3_free
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	sqlite3_finalize
	nop
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, lr}
	add	sp, sp, #12
	bx	lr
.L30:
	.align	2
.L29:
	.word	.LC9
	.word	stderr
	.word	.LC3
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	run_sql, .-run_sql
	.section	.rodata
	.align	2
.LC10:
	.ascii	"tt4-test%d.db\000"
	.align	2
.LC11:
	.ascii	"open %s\000"
	.align	2
.LC12:
	.ascii	"sqlite_open_v2(%s) failed on thread %d\012\000"
	.align	2
.LC13:
	.ascii	"PRAGMA read_uncommitted=ON;\000"
	.align	2
.LC14:
	.ascii	"PRAGMA synchronous=OFF;\000"
	.align	2
.LC15:
	.ascii	"ATTACH 'tt4-test%d.db' AS aux1\000"
	.align	2
.LC16:
	.ascii	"ATTACH 'tt4-test%d.db' AS aux2\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker_open_connection, %function
worker_open_connection:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, .L33
	smull	r0, r1, r3, r2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r1, .L33+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L33+8
	bl	sqlite3_mprintf
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	check_oom
	ldr	r2, [fp, #-12]
	ldr	r1, .L33+12
	ldr	r0, [fp, #-24]
	bl	worker_trace
	ldr	r3, [fp, #-24]
	add	r1, r3, #16
	mov	r3, #0
	ldr	r2, .L33+16
	ldr	r0, [fp, #-12]
	bl	sqlite3_open_v2
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L32
	ldr	r3, .L33+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L33+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L32:
	ldr	r0, [fp, #-12]
	bl	sqlite3_free
	ldr	r1, .L33+28
	ldr	r0, [fp, #-24]
	bl	run_sql
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	ldr	r1, .L33+32
	mov	r0, r3
	bl	sqlite3_busy_timeout
	ldr	r1, .L33+36
	ldr	r0, [fp, #-24]
	bl	run_sql
	ldr	r1, .L33+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L33+40
	ldr	r0, [fp, #-24]
	bl	run_sql
	ldr	r1, .L33+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L33+44
	ldr	r0, [fp, #-24]
	bl	run_sql
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	715827883
	.word	aOrder.8037
	.word	.LC10
	.word	.LC11
	.word	131074
	.word	stderr
	.word	.LC12
	.word	.LC13
	.word	10000
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	worker_open_connection, .-worker_open_connection
	.section	.rodata
	.align	2
.LC17:
	.ascii	"close\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker_close_connection, %function
worker_close_connection:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L37
	ldr	r1, .L38
	ldr	r0, [fp, #-8]
	bl	worker_trace
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	sqlite3_close
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #16]
.L37:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC17
	.size	worker_close_connection, .-worker_close_connection
	.section	.rodata
	.align	2
.LC18:
	.ascii	"BEGIN\000"
	.align	2
.LC19:
	.ascii	"DELETE FROM t1 WHERE tid=%d\000"
	.align	2
.LC20:
	.ascii	"DELETE FROM t2 WHERE tid=%d\000"
	.align	2
.LC21:
	.ascii	"DELETE FROM t3 WHERE tid=%d\000"
	.align	2
.LC22:
	.ascii	"COMMIT\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker_delete_all_content, %function
worker_delete_all_content:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r1, .L44
	ldr	r0, [fp, #-8]
	bl	run_sql
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L44+4
	ldr	r0, [fp, #-8]
	bl	run_sql
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L44+8
	ldr	r0, [fp, #-8]
	bl	run_sql
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L44+12
	ldr	r0, [fp, #-8]
	bl	run_sql
	ldr	r1, .L44+16
	ldr	r0, [fp, #-8]
	bl	run_sql
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #24]
	b	.L43
.L41:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L44+4
	ldr	r0, [fp, #-8]
	bl	run_sql
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L44+8
	ldr	r0, [fp, #-8]
	bl	run_sql
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L44+12
	ldr	r0, [fp, #-8]
	bl	run_sql
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #24]
.L43:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	worker_delete_all_content, .-worker_delete_all_content
	.section	.rodata
	.align	2
.LC23:
	.ascii	"t1(tid,sp,a,b,c)\000"
	.align	2
.LC24:
	.ascii	"t2(tid,sp,d,e,f)\000"
	.align	2
.LC25:
	.ascii	"t3(tid,sp,x,y,z)\000"
	.align	2
.LC26:
	.ascii	"WITH RECURSIVE\012 c(i) AS (VALUES(%d) UNION ALL SE"
	.ascii	"LECT i+1 FROM c WHERE i<%d)\012INSERT INTO %s SELEC"
	.ascii	"T %d, zeroblob(3000), i, printf('%%d',i), i FROM c;"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker_add_content, %function
worker_add_content:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	beq	.L47
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	bgt	.L48
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L49
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	beq	.L50
	b	.L48
.L49:
	ldr	r3, .L51
	str	r3, [fp, #-8]
	b	.L48
.L50:
	ldr	r3, .L51+4
	str	r3, [fp, #-8]
	b	.L48
.L47:
	ldr	r3, .L51+8
	str	r3, [fp, #-8]
	nop
.L48:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r1, .L51+12
	ldr	r0, [fp, #-16]
	bl	run_sql
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #24]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.size	worker_add_content, .-worker_add_content
	.section	.rodata
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker_error, %function
worker_error:
	@ args = 4, pretend = 12, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #20
	str	r0, [fp, #-20]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3,#0
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #20]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	mov	r0, r3
	bl	sqlite3_free
	add	r3, fp, #8
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	sqlite3_vmprintf
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3, #28]
	nop
	ldr	r3, .L55
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #12
	bx	lr
.L56:
	.align	2
.L55:
	.word	.LC27
	.size	worker_error, .-worker_error
	.section	.rodata
	.align	2
.LC28:
	.ascii	"worker %d startup\012\000"
	.align	2
.LC29:
	.ascii	"SELECT count(a) FROM t1 WHERE tid=%d\000"
	.align	2
.LC30:
	.ascii	"query [%s]\000"
	.align	2
.LC31:
	.ascii	"Failed to step: %s\000"
	.align	2
.LC32:
	.ascii	"Wrong result: %d\000"
	.align	2
.LC33:
	.ascii	"BEGIN;\000"
	.align	2
.LC34:
	.ascii	"UPDATE t1 SET c=NULL WHERE a=55\000"
	.align	2
.LC35:
	.ascii	"UPDATE t2 SET f=NULL WHERE d=42\000"
	.align	2
.LC36:
	.ascii	"UPDATE t3 SET z=NULL WHERE x=31\000"
	.align	2
.LC37:
	.ascii	"ROLLBACK;\000"
	.align	2
.LC38:
	.ascii	"VACUUM\000"
	.align	2
.LC39:
	.ascii	"SELECT t1.rowid, t2.rowid, t3.rowid  FROM t1, t2, t"
	.ascii	"3 WHERE t1.tid=%d AND t2.tid=%d AND t3.tid=%d   AND"
	.ascii	" t1.a<>t2.d AND t2.d<>t3.x ORDER BY 1, 2, 3\000"
	.align	2
.LC40:
	.ascii	"worker %d finished\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker_thread, %function
worker_thread:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L76
	bl	printf
	ldr	r3, .L76+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L58
.L72:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	worker_open_connection
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L59
.L60:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r0, r3, #1
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	ip, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r1, r2, r3
	ldr	r3, .L76+8
	smull	lr, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #1
	mov	r2, ip
	mov	r1, r0
	ldr	r0, [fp, #-16]
	bl	worker_add_content
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r0, r3, #1
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	ip, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	add	r1, r3, #1
	ldr	r3, .L76+8
	smull	lr, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #1
	mov	r2, ip
	mov	r1, r0
	ldr	r0, [fp, #-16]
	bl	worker_add_content
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r0, r3, #1
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	ip, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	add	r1, r3, #2
	ldr	r3, .L76+8
	smull	lr, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #1
	mov	r2, ip
	mov	r1, r0
	ldr	r0, [fp, #-16]
	bl	worker_add_content
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L59:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ble	.L60
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L76+12
	bl	prep_sql
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	sqlite3_sql
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L76+16
	ldr	r0, [fp, #-16]
	bl	worker_trace
	ldr	r0, [fp, #-12]
	bl	sqlite3_step
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #100
	beq	.L61
	ldr	r0, [fp, #-12]
	bl	sqlite3_sql
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L76+20
	ldr	r0, [fp, #-16]
	bl	worker_error
	b	.L62
.L61:
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	sqlite3_column_int
	mov	r3, r0
	cmp	r3, #400
	beq	.L62
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	sqlite3_column_int
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L76+24
	ldr	r0, [fp, #-16]
	bl	worker_error
.L62:
	ldr	r0, [fp, #-12]
	bl	sqlite3_finalize
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L74
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r1, r2, r3
	ldr	r3, .L76+8
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L65
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	sqlite3_db_release_memory
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #24]
.L65:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r1, .L76+28
	ldr	r0, [fp, #-16]
	bl	run_sql
	ldr	r1, .L76+32
	ldr	r0, [fp, #-16]
	bl	run_sql
	ldr	r1, .L76+36
	ldr	r0, [fp, #-16]
	bl	run_sql
	ldr	r1, .L76+40
	ldr	r0, [fp, #-16]
	bl	run_sql
	ldr	r1, .L76+44
	ldr	r0, [fp, #-16]
	bl	run_sql
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L66
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r1, .L76+48
	ldr	r0, [fp, #-16]
	bl	run_sql
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	mov	r0, r3
	bl	pthread_mutex_unlock
.L66:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L76+52
	bl	prep_sql
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	sqlite3_sql
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L76+16
	ldr	r0, [fp, #-16]
	bl	worker_trace
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L67
.L70:
	ldr	r0, [fp, #-12]
	bl	sqlite3_step
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #100
	beq	.L68
	ldr	r0, [fp, #-12]
	bl	sqlite3_sql
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L76+20
	ldr	r0, [fp, #-16]
	bl	worker_error
	b	.L69
.L68:
	bl	sched_yield
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L67:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L70
.L69:
	ldr	r0, [fp, #-12]
	bl	sqlite3_finalize
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L75
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	worker_delete_all_content
	ldr	r0, [fp, #-16]
	bl	worker_close_connection
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L58:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L72
	b	.L64
.L74:
	nop
	b	.L64
.L75:
	nop
.L64:
	ldr	r0, [fp, #-16]
	bl	worker_close_connection
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L76+56
	bl	printf
	ldr	r3, .L76+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC28
	.word	stdout
	.word	1431655766
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.size	worker_thread, .-worker_thread
	.section	.rodata
	.align	2
.LC41:
	.ascii	"-multithread\000"
	.align	2
.LC42:
	.ascii	"-serialized\000"
	.align	2
.LC43:
	.ascii	"-wal\000"
	.align	2
.LC44:
	.ascii	"-trace\000"
	.align	2
.LC45:
	.ascii	"unknown command-line option: %s\012\000"
	.align	2
.LC46:
	.ascii	"minimum of 2 threads\012\000"
	.align	2
.LC47:
	.ascii	"extra command-line argument: \"%s\"\012\000"
	.align	2
.LC48:
	.ascii	"usage:  %s ?OPTIONS? N\012N is the number of thread"
	.ascii	"s and must be at least 2.\012Options:\012  --serial"
	.ascii	"ized\012  --multithread\012  --wal\012  --trace\012"
	.ascii	"\000"
	.align	2
.LC49:
	.ascii	"requires a threadsafe build of SQLite\012\000"
	.align	2
.LC50:
	.ascii	"tt4-test1.db\000"
	.align	2
.LC51:
	.ascii	"tt4-test2.db\000"
	.align	2
.LC52:
	.ascii	"tt4-test3.db\000"
	.align	2
.LC53:
	.ascii	"Unable to open test database: tt4-test2.db\012\000"
	.align	2
.LC54:
	.ascii	"PRAGMA journal_mode=WAL\000"
	.align	2
.LC55:
	.ascii	"PRAGMA synchronous=OFF\000"
	.align	2
.LC56:
	.ascii	"CREATE TABLE IF NOT EXISTS t1(tid INTEGER, sp, a, b"
	.ascii	", c)\000"
	.align	2
.LC57:
	.ascii	"CREATE INDEX t1tid ON t1(tid)\000"
	.align	2
.LC58:
	.ascii	"CREATE INDEX t1ab ON t1(a,b)\000"
	.align	2
.LC59:
	.ascii	"ATTACH 'tt4-test2.db' AS 'test2'\000"
	.align	2
.LC60:
	.ascii	"CREATE TABLE IF NOT EXISTS test2.t2(tid INTEGER, sp"
	.ascii	", d, e, f)\000"
	.align	2
.LC61:
	.ascii	"CREATE INDEX test2.t2tid ON t2(tid)\000"
	.align	2
.LC62:
	.ascii	"CREATE INDEX test2.t2de ON t2(d,e)\000"
	.align	2
.LC63:
	.ascii	"ATTACH 'tt4-test3.db' AS 'test3'\000"
	.align	2
.LC64:
	.ascii	"CREATE TABLE IF NOT EXISTS test3.t3(tid INTEGER, sp"
	.ascii	", x, y, z)\000"
	.align	2
.LC65:
	.ascii	"CREATE INDEX test3.t3tid ON t3(tid)\000"
	.align	2
.LC66:
	.ascii	"CREATE INDEX test3.t3xy ON t3(x,y)\000"
	.align	2
.LC67:
	.ascii	"thread creation failed for thread %d\012\000"
	.align	2
.LC68:
	.ascii	"Joined thread %d: %d errors in %d tests\000"
	.align	2
.LC69:
	.ascii	": %s\012\000"
	.align	2
.LC70:
	.ascii	"Total %d errors in %d tests\012\000"
	.align	2
.LC71:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L103
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r0, #2
	bl	sqlite3_config
	mov	r3, #1
	str	r3, [fp, #-104]
	b	.L79
.L89:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L80
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L81
	ldr	r3, [fp, #-88]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L81
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L81:
	ldr	r1, .L103+4
	ldr	r0, [fp, #-88]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L82
	mov	r0, #2
	bl	sqlite3_config
	ldr	r3, [fp, #-100]
	bic	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L83
.L82:
	ldr	r1, .L103+8
	ldr	r0, [fp, #-88]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L84
	mov	r0, #3
	bl	sqlite3_config
	ldr	r3, [fp, #-100]
	orr	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L83
.L84:
	ldr	r1, .L103+12
	ldr	r0, [fp, #-88]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L85
	ldr	r3, [fp, #-100]
	orr	r3, r3, #2
	str	r3, [fp, #-100]
	b	.L83
.L85:
	ldr	r1, .L103+16
	ldr	r0, [fp, #-88]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L86
	ldr	r3, [fp, #-100]
	orr	r3, r3, #4
	str	r3, [fp, #-100]
	b	.L83
.L86:
	ldr	r3, .L103+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L103+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L80:
	ldr	r3, [fp, #-88]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bls	.L87
	ldr	r3, [fp, #-88]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L87
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L87
	ldr	r0, [fp, #-88]
	bl	atoi
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #1
	bgt	.L83
	ldr	r3, .L103+20
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L103+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L87:
	ldr	r3, .L103+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L103+32
	bl	fprintf
	mov	r0, #1
	bl	exit
.L83:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L79:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	blt	.L89
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L90
	ldr	r3, .L103+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L103+36
	bl	fprintf
	mov	r0, #1
	bl	exit
.L90:
	bl	sqlite3_threadsafe
	mov	r3, r0
	cmp	r3, #0
	bne	.L91
	ldr	r3, .L103+20
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L103+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L91:
	bl	sqlite3_initialize
	mov	r0, #1
	bl	sqlite3_enable_shared_cache
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	ldr	r0, .L103+44
	bl	unlink
	ldr	r0, .L103+48
	bl	unlink
	ldr	r0, .L103+52
	bl	unlink
	sub	r3, fp, #112
	mov	r1, r3
	ldr	r0, .L103+44
	bl	sqlite3_open
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L92
	ldr	r3, .L103+20
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L103+56
	bl	fwrite
	mov	r0, #1
	bl	exit
.L92:
	sub	r3, fp, #72
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-64]
	sub	r3, fp, #72
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-100]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L93
	ldr	r1, .L103+60
	ldr	r0, [fp, #-80]
	bl	run_sql
.L93:
	ldr	r1, .L103+64
	ldr	r0, [fp, #-80]
	bl	run_sql
	ldr	r1, .L103+68
	ldr	r0, [fp, #-80]
	bl	run_sql
	ldr	r1, .L103+72
	ldr	r0, [fp, #-80]
	bl	run_sql
	ldr	r1, .L103+76
	ldr	r0, [fp, #-80]
	bl	run_sql
	ldr	r1, .L103+80
	ldr	r0, [fp, #-80]
	bl	run_sql
	ldr	r1, .L103+84
	ldr	r0, [fp, #-80]
	bl	run_sql
	ldr	r1, .L103+88
	ldr	r0, [fp, #-80]
	bl	run_sql
	ldr	r1, .L103+92
	ldr	r0, [fp, #-80]
	bl	run_sql
	ldr	r1, .L103+96
	ldr	r0, [fp, #-80]
	bl	run_sql
	ldr	r1, .L103+100
	ldr	r0, [fp, #-80]
	bl	run_sql
	ldr	r1, .L103+104
	ldr	r0, [fp, #-80]
	bl	run_sql
	ldr	r1, .L103+108
	ldr	r0, [fp, #-80]
	bl	run_sql
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	safe_malloc
	str	r0, [fp, #-76]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-76]
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L94
.L96:
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r2, [fp, #-104]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r2, [fp, #-108]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r2, [fp, #-100]
	str	r2, [r3, #8]
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r2, [fp, #-112]
	str	r2, [r3, #12]
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	sub	r2, fp, #32
	str	r2, [r3, #36]
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	add	r0, r3, #32
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r2, .L103+112
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L95
	ldr	r3, .L103+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L103+116
	bl	fprintf
	mov	r0, #1
	bl	exit
.L95:
	bl	sched_yield
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L94:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	blt	.L96
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L97
.L100:
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r3, [r3, #32]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r1, [r3]
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r0, [r3, #20]
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r3, [r3, #24]
	mov	r2, r0
	ldr	r0, .L103+120
	bl	printf
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L98
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r3, [r3, #28]
	mov	r1, r3
	ldr	r0, .L103+124
	bl	printf
	b	.L99
.L98:
	mov	r0, #10
	bl	putchar
.L99:
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	str	r3, [fp, #-96]
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	str	r3, [fp, #-92]
	ldr	r3, .L103+128
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L97:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	blt	.L100
	ldr	r3, [fp, #-112]
	mov	r0, r3
	bl	sqlite3_close
	ldr	r0, [fp, #-76]
	bl	sqlite3_free
	ldr	r2, [fp, #-92]
	ldr	r1, [fp, #-96]
	ldr	r0, .L103+132
	bl	printf
	ldr	r3, [fp, #-96]
	ldr	r2, .L103
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L102
	bl	__stack_chk_fail
.L102:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L104:
	.align	2
.L103:
	.word	.LC71
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	stderr
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	.LC61
	.word	.LC62
	.word	.LC63
	.word	.LC64
	.word	.LC65
	.word	.LC66
	.word	worker_thread
	.word	.LC67
	.word	.LC68
	.word	.LC69
	.word	stdout
	.word	.LC70
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	aOrder.8037, %object
	.size	aOrder.8037, 18
aOrder.8037:
	.ascii	"\001\002\003"
	.ascii	"\001\003\002"
	.ascii	"\002\001\003"
	.ascii	"\002\003\001"
	.ascii	"\003\001\002"
	.ascii	"\003\002\001"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
