	.file	"extr_speedtest16.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Usage: %s FILENAME SQL-SCRIPT\nRuns SQL-SCRIPT as UTF16 against a UTF16 database\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"r"
.LC2:
	.string	"SQLite version: %d\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"sqlite3_open16() returns %d in %llu cycles\n"
	.align 8
.LC4:
	.string	"sqlite3_close() returns in %llu cycles\n"
	.section	.rodata.str1.1
.LC5:
	.string	"Statements run:       %15d\n"
.LC6:
	.string	"Bytes of SQL text:    %15d\n"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"Total prepare time:   %15llu cycles\n"
	.align 8
.LC8:
	.string	"Total run time:       %15llu cycles\n"
	.align 8
.LC9:
	.string	"Total finalize time:  %15llu cycles\n"
	.align 8
.LC10:
	.string	"Open/Close time:      %15llu cycles\n"
	.align 8
.LC11:
	.string	"Total Time:           %15llu cycles\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
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	edi, 3
	je	.L2
	mov	rdx, QWORD PTR [rsi]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC1[rip]
	call	fopen@PLT
	mov	edx, DWORD PTR SEEK_END[rip]
	xor	esi, esi
	mov	r12, rax
	mov	rdi, rax
	call	fseek@PLT
	mov	rdi, r12
	call	ftell@PLT
	lea	edi, 1[rax]
	mov	r13d, eax
	call	malloc@PLT
	mov	edx, DWORD PTR SEEK_SET[rip]
	xor	esi, esi
	mov	rdi, r12
	mov	r14, rax
	call	fseek@PLT
	mov	rcx, r12
	mov	edx, r13d
	mov	esi, 1
	mov	rdi, r14
	call	fread@PLT
	mov	ebp, eax
	cdqe
	mov	BYTE PTR [r14+rax], 0
	xor	eax, eax
	call	sqlite3_libversion_number@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	xor	eax, eax
	call	printf@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	unlink@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	asciiToUtf16le@PLT
	mov	r12, rax
	xor	eax, eax
	call	sqlite3Hwtime@PLT
	lea	rsi, 32[rsp]
	mov	rdi, r12
	mov	ebx, eax
	call	sqlite3_open16@PLT
	mov	r13d, eax
	xor	eax, eax
	call	sqlite3Hwtime@PLT
	lea	rdi, .LC3[rip]
	mov	esi, r13d
	sub	eax, ebx
	mov	DWORD PTR 28[rsp], eax
	mov	edx, eax
	xor	eax, eax
	call	printf@PLT
	mov	rdi, r12
	call	free@PLT
	test	ebp, ebp
	jle	.L11
	mov	DWORD PTR 24[rsp], 0
	lea	ebx, -1[rbp]
	xor	r13d, r13d
	xor	r15d, r15d
	mov	DWORD PTR 20[rsp], 0
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rax, 1[r13]
	cmp	r13, rbx
	je	.L3
	mov	r13, rax
.L9:
	cmp	BYTE PTR [r14+r13], 59
	mov	ebp, r13d
	mov	r12d, r13d
	jne	.L4
	movzx	edx, BYTE PTR 1[r14+r13]
	movsx	rsi, r15d
	mov	BYTE PTR 1[r14+r13], 0
	add	rsi, r14
	mov	rdi, rsi
	mov	BYTE PTR 16[rsp], dl
	mov	QWORD PTR 8[rsp], rsi
	call	sqlite3_complete@PLT
	movzx	edx, BYTE PTR 16[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	test	eax, eax
	mov	BYTE PTR 1[r14+r13], dl
	je	.L4
	mov	BYTE PTR [r14+r13], 0
	mov	DWORD PTR 16[rsp], r13d
	cmp	r15d, r13d
	jl	.L6
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	add	r15d, 1
	add	rsi, 1
	cmp	r15d, DWORD PTR 16[rsp]
	je	.L5
.L6:
	movsx	edi, BYTE PTR [rsi]
	mov	QWORD PTR 8[rsp], rsi
	call	ISSPACE@PLT
	mov	rsi, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L7
	mov	rdi, QWORD PTR 32[rsp]
	sub	r12d, r15d
	add	DWORD PTR 20[rsp], 1
	add	DWORD PTR 24[rsp], r12d
	call	prepareAndRun@PLT
.L5:
	mov	BYTE PTR [r14+r13], 59
	lea	r15d, 1[rbp]
	jmp	.L4
.L11:
	mov	DWORD PTR 24[rsp], 0
	mov	DWORD PTR 20[rsp], 0
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	call	sqlite3Hwtime@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	ebx, eax
	call	sqlite3_close@PLT
	xor	eax, eax
	call	sqlite3Hwtime@PLT
	mov	r13d, DWORD PTR 28[rsp]
	lea	rdi, .LC4[rip]
	sub	eax, ebx
	mov	esi, eax
	add	r13d, eax
	xor	eax, eax
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	esi, DWORD PTR 20[rsp]
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	printf@PLT
	mov	esi, DWORD PTR 24[rsp]
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	printf@PLT
	mov	esi, DWORD PTR prepTime[rip]
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	printf@PLT
	mov	esi, DWORD PTR runTime[rip]
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	printf@PLT
	mov	esi, DWORD PTR finalizeTime[rip]
	lea	rdi, .LC9[rip]
	xor	eax, eax
	call	printf@PLT
	mov	esi, r13d
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	printf@PLT
	mov	esi, DWORD PTR runTime[rip]
	xor	eax, eax
	add	esi, DWORD PTR prepTime[rip]
	add	esi, DWORD PTR finalizeTime[rip]
	lea	rdi, .LC11[rip]
	add	esi, r13d
	call	printf@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	runTime,4,4
	.comm	prepTime,4,4
	.comm	finalizeTime,4,4
	.comm	SEEK_SET,4,4
	.comm	SEEK_END,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_speedtest16.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Usage: %s FILENAME SQL-SCRIPT\012Runs SQL-SCRIPT as"
	.ascii	" UTF16 against a UTF16 database\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"SQLite version: %d\012\000"
	.align	2
.LC3:
	.ascii	"sqlite3_open16() returns %d in %llu cycles\012\000"
	.align	2
.LC4:
	.ascii	"sqlite3_close() returns in %llu cycles\012\000"
	.align	2
.LC5:
	.ascii	"Statements run:       %15d\012\000"
	.align	2
.LC6:
	.ascii	"Bytes of SQL text:    %15d\012\000"
	.align	2
.LC7:
	.ascii	"Total prepare time:   %15llu cycles\012\000"
	.align	2
.LC8:
	.ascii	"Total run time:       %15llu cycles\012\000"
	.align	2
.LC9:
	.ascii	"Total finalize time:  %15llu cycles\012\000"
	.align	2
.LC10:
	.ascii	"Open/Close time:      %15llu cycles\012\000"
	.align	2
.LC11:
	.ascii	"Total Time:           %15llu cycles\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC12:
	.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 = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L28
	sub	sp, sp, #20
	cmp	r0, #3
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L28+4
	ldr	r2, [r1]
	ldr	r0, [r3]
	ldr	r1, .L28+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r1, .L28+12
	ldr	r0, [r4, #8]
	bl	fopen
	mov	r5, r0
	ldr	r3, .L28+16
	mov	r1, #0
	ldr	r2, [r3]
	bl	fseek
	mov	r0, r5
	bl	ftell
	mov	r6, r0
	add	r0, r0, #1
	bl	malloc
	mov	r8, r0
	ldr	r3, .L28+20
	mov	r0, r5
	ldr	r2, [r3]
	mov	r1, #0
	bl	fseek
	mov	r3, r5
	mov	r2, r6
	mov	r1, #1
	mov	r0, r8
	bl	fread
	mov	r7, #0
	mov	r6, r0
	strb	r7, [r8, r0]
	bl	sqlite3_libversion_number
	mov	r1, r0
	ldr	r0, .L28+24
	bl	printf
	ldr	r0, [r4, #4]
	bl	unlink
	ldr	r0, [r4, #4]
	bl	asciiToUtf16le
	mov	r4, r0
	bl	sqlite3Hwtime
	add	r1, sp, #8
	mov	r9, r0
	mov	r0, r4
	bl	sqlite3_open16
	mov	r5, r0
	bl	sqlite3Hwtime
	sub	r3, r0, r9
	mov	r1, r5
	mov	r2, r3
	ldr	r0, .L28+28
	str	r3, [sp, #4]
	bl	printf
	mov	r0, r4
	bl	free
	cmp	r6, r7
	ble	.L11
	mov	r5, r8
	mov	r4, r7
	mov	r10, r7
	str	r7, [sp]
	b	.L9
.L25:
	add	r4, r4, #1
.L4:
	cmp	r6, r4
	beq	.L3
.L9:
	ldrb	r3, [r5], #1	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L25
	mov	r3, #0
	add	r9, r8, r10
	ldrb	fp, [r5]	@ zero_extendqisi2
	mov	r0, r9
	strb	r3, [r5]
	bl	sqlite3_complete
	cmp	r0, #0
	strb	fp, [r5]
	beq	.L25
	mov	r3, #0
	cmp	r4, r10
	strb	r3, [r5, #-1]
	bgt	.L6
	b	.L5
.L7:
	add	r10, r10, #1
	cmp	r10, r4
	beq	.L5
.L6:
	ldrb	r0, [r9]	@ zero_extendqisi2
	bl	ISSPACE
	cmp	r0, #0
	mov	fp, r9
	add	r9, r9, #1
	bne	.L7
	ldr	r3, [sp]
	sub	r10, r4, r10
	add	r3, r3, #1
	mov	r1, fp
	ldr	r0, [sp, #8]
	add	r7, r7, r10
	str	r3, [sp]
	bl	prepareAndRun
.L5:
	mov	r3, #59
	add	r4, r4, #1
	mov	r10, r4
	strb	r3, [r5, #-1]
	b	.L4
.L11:
	str	r7, [sp]
.L3:
	bl	sqlite3Hwtime
	mov	r4, r0
	ldr	r0, [sp, #8]
	bl	sqlite3_close
	bl	sqlite3Hwtime
	ldr	r3, [sp, #4]
	sub	r1, r0, r4
	ldr	r0, .L28+32
	add	r9, r3, r1
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r6, .L28+36
	ldr	r1, [sp]
	ldr	r0, .L28+40
	bl	printf
	ldr	r5, .L28+44
	mov	r1, r7
	ldr	r0, .L28+48
	bl	printf
	ldr	r4, .L28+52
	ldr	r1, [r6]
	ldr	r0, .L28+56
	bl	printf
	ldr	r1, [r5]
	ldr	r0, .L28+60
	bl	printf
	ldr	r1, [r4]
	ldr	r0, .L28+64
	bl	printf
	mov	r1, r9
	ldr	r0, .L28+68
	bl	printf
	ldr	r2, [r5]
	ldr	r1, [r6]
	ldr	r3, [r4]
	add	r1, r1, r2
	add	r1, r1, r3
	ldr	r0, .L28+72
	add	r1, r1, r9
	bl	printf
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC12
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	SEEK_END
	.word	SEEK_SET
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	prepTime
	.word	.LC5
	.word	runTime
	.word	.LC6
	.word	finalizeTime
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.comm	stderr,4,4
	.comm	runTime,4,4
	.comm	prepTime,4,4
	.comm	finalizeTime,4,4
	.comm	SEEK_SET,4,4
	.comm	SEEK_END,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
