	.file	"646378.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"-show-errors"
.LC1:
	.string	"-show-max-delay"
.LC2:
	.string	"-sql-trace"
.LC3:
	.string	"unknown option \"%s\"\n"
	.align 8
.LC4:
	.string	"should be one of: --show-errors --show-max-delay --sql-trace"
.LC5:
	.string	"rb"
.LC6:
	.string	"cannot open \"%s\"\n"
.LC7:
	.string	"cannot malloc() for %d bytes\n"
	.align 8
.LC8:
	.string	"cannot read %d bytes from \"%s\"\n"
.LC9:
	.string	"%s... "
.LC10:
	.string	"%s: "
.LC11:
	.string	"ok"
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -44[rbp], 1
	jmp	.L2
.L16:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L3
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L4
	add	QWORD PTR -24[rbp], 1
.L4:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	or	DWORD PTR -36[rbp], 4
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	ossfuzz_set_debug_flags@PLT
	jmp	.L9
.L5:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	or	DWORD PTR -36[rbp], 2
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	ossfuzz_set_debug_flags@PLT
	jmp	.L9
.L7:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	or	DWORD PTR -36[rbp], 1
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	ossfuzz_set_debug_flags@PLT
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -40[rbp], 1
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	edx, esi
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -40[rbp], 1
	jmp	.L13
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -36[rbp], 0
	je	.L14
	mov	edi, 10
	call	putchar@PLT
.L14:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	LLVMFuzzerTestOneInput@PLT
	cmp	DWORD PTR -36[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L9:
	add	DWORD PTR -44[rbp], 1
.L2:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L16
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -40[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-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	"646378.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-show-errors\000"
	.align	2
.LC1:
	.ascii	"-show-max-delay\000"
	.align	2
.LC2:
	.ascii	"-sql-trace\000"
	.align	2
.LC3:
	.ascii	"unknown option \"%s\"\012\000"
	.align	2
.LC4:
	.ascii	"should be one of: --show-errors --show-max-delay --"
	.ascii	"sql-trace\000"
	.align	2
.LC5:
	.ascii	"rb\000"
	.align	2
.LC6:
	.ascii	"cannot open \"%s\"\012\000"
	.align	2
.LC7:
	.ascii	"cannot malloc() for %d bytes\012\000"
	.align	2
.LC8:
	.ascii	"cannot read %d bytes from \"%s\"\012\000"
	.align	2
.LC9:
	.ascii	"%s... \000"
	.align	2
.LC10:
	.ascii	"%s: \000"
	.align	2
.LC11:
	.ascii	"ok\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L2
.L16:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L3
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L4
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r1, .L18
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-20]
	orr	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	ossfuzz_set_debug_flags
	b	.L9
.L5:
	ldr	r1, .L18+4
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-20]
	orr	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	ossfuzz_set_debug_flags
	b	.L9
.L7:
	ldr	r1, .L18+8
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-20]
	orr	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	ossfuzz_set_debug_flags
	b	.L9
.L8:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
	ldr	r0, .L18+16
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	ldr	r1, .L18+20
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L18+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L18+28
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L9
.L10:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	fseek
	ldr	r0, [fp, #-12]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	rewind
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	realloc
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L18+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L18+32
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-12]
	mov	r2, #1
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L12
	ldr	r3, .L18+24
	ldr	r0, [r3]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r1, .L18+36
	bl	fprintf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L13
.L12:
	ldr	r1, [fp, #-16]
	ldr	r0, .L18+40
	bl	printf
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L14
	mov	r0, #10
	bl	putchar
.L14:
	ldr	r3, .L18+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	LLVMFuzzerTestOneInput
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L15
	ldr	r1, [fp, #-16]
	ldr	r0, .L18+48
	bl	printf
.L15:
	ldr	r0, .L18+52
	bl	puts
.L13:
	ldr	r0, [fp, #-12]
	bl	fclose
.L9:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L2:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L16
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r3, [fp, #-28]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	stdout
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
