	.file	"384902.c"
	.intel_syntax noprefix
	.text
	.globl	SCCSid
	.data
	.align 32
	.type	SCCSid, @object
	.size	SCCSid, 42
SCCSid:
	.string	"@(#) @(#)fstime.c:3.5 -- 5/15/91 19:30:19"
	.globl	read_score
	.align 8
	.type	read_score, @object
	.size	read_score, 8
read_score:
	.quad	1
	.globl	write_score
	.align 8
	.type	write_score, @object
	.size	write_score, 8
write_score:
	.quad	1
	.globl	copy_score
	.align 8
	.type	copy_score, @object
	.size	copy_score, 8
copy_score:
	.quad	1
	.globl	bufsize
	.align 4
	.type	bufsize, @object
	.size	bufsize, 4
bufsize:
	.long	1024
	.globl	max_blocks
	.align 4
	.type	max_blocks, @object
	.size	max_blocks, 4
max_blocks:
	.long	2000
	.globl	max_buffs
	.align 4
	.type	max_buffs, @object
	.size	max_buffs, 4
max_buffs:
	.long	2000
	.globl	count_per_k
	.bss
	.align 4
	.type	count_per_k, @object
	.size	count_per_k, 4
count_per_k:
	.zero	4
	.globl	count_per_buf
	.align 4
	.type	count_per_buf, @object
	.size	count_per_buf, 4
count_per_buf:
	.zero	4
	.globl	buf
	.align 32
	.type	buf, @object
	.size	buf, 8192
buf:
	.zero	8192
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	g
	.align 4
	.type	g, @object
	.size	g, 4
g:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	sigalarm
	.align 4
	.type	sigalarm, @object
	.size	sigalarm, 4
sigalarm:
	.zero	4
	.section	.rodata
.LC0:
	.string	"fstime: chdir"
	.align 8
.LC1:
	.string	"Usage: fstime [-c|-r|-w] [-b <bufsize>] [-m <max_blocks>] [-t <seconds>]\n"
	.align 8
.LC2:
	.string	"fstime: buffer size must be in range %d-%d\n"
	.align 8
.LC3:
	.string	"fstime: max blocks must be in range %d-%d\n"
	.align 8
.LC4:
	.string	"fstime: time must be in range %d-%d seconds\n"
.LC5:
	.string	"dummy0"
.LC6:
	.string	"fstime: creat"
.LC7:
	.string	"dummy1"
.LC8:
	.string	"fstime: open"
.LC9:
	.string	"fstime: unknown test '%c'\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 10
	mov	BYTE PTR -13[rbp], 99
	mov	DWORD PTR -4[rbp], 1
	jmp	.L2
.L14:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 98
	cmp	eax, 21
	ja	.L4
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L6[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L6[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L5-.L6
	.long	.L9-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L8-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L5-.L6
	.long	.L4-.L6
	.long	.L7-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L5-.L6
	.text
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR -13[rbp], al
	jmp	.L13
.L10:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR bufsize[rip], eax
	jmp	.L13
.L8:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR max_blocks[rip], eax
	jmp	.L13
.L7:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -12[rbp], eax
	jmp	.L13
.L9:
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	jns	.L33
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 73
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 73
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
.L33:
	nop
.L13:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L14
	mov	eax, DWORD PTR bufsize[rip]
	cmp	eax, 255
	jle	.L15
	mov	eax, DWORD PTR bufsize[rip]
	cmp	eax, 8192
	jle	.L16
.L15:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 1048576
	mov	edx, 256
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
.L16:
	mov	eax, DWORD PTR max_blocks[rip]
	test	eax, eax
	jle	.L17
	mov	eax, DWORD PTR max_blocks[rip]
	cmp	eax, 1048576
	jle	.L18
.L17:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 1048576
	mov	edx, 1
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
.L18:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L19
	cmp	DWORD PTR -12[rbp], 3600
	jle	.L20
.L19:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 3600
	mov	edx, 1
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
.L20:
	mov	eax, DWORD PTR max_blocks[rip]
	sal	eax, 10
	mov	ecx, DWORD PTR bufsize[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR max_buffs[rip], eax
	mov	DWORD PTR count_per_k[rip], 4
	mov	eax, DWORD PTR bufsize[rip]
	lea	edx, 255[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 8
	mov	DWORD PTR count_per_buf[rip], eax
	mov	esi, 384
	lea	rdi, .LC5[rip]
	call	creat@PLT
	mov	DWORD PTR f[rip], eax
	mov	eax, DWORD PTR f[rip]
	cmp	eax, -1
	jne	.L21
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	mov	eax, DWORD PTR f[rip]
	mov	edi, eax
	call	close@PLT
	mov	esi, 384
	lea	rdi, .LC7[rip]
	call	creat@PLT
	mov	DWORD PTR g[rip], eax
	mov	eax, DWORD PTR g[rip]
	cmp	eax, -1
	jne	.L22
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	eax, DWORD PTR g[rip]
	mov	edi, eax
	call	close@PLT
	mov	esi, 2
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR f[rip], eax
	mov	eax, DWORD PTR f[rip]
	cmp	eax, -1
	jne	.L23
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	esi, 2
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR g[rip], eax
	mov	eax, DWORD PTR g[rip]
	cmp	eax, -1
	jne	.L24
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, buf[rip]
	mov	BYTE PTR [rax+rdx], cl
	add	DWORD PTR -4[rbp], 1
.L25:
	mov	eax, DWORD PTR bufsize[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L26
	lea	rsi, clean_up[rip]
	mov	edi, 9
	call	signal@PLT
	movsx	eax, BYTE PTR -13[rbp]
	cmp	eax, 119
	je	.L27
	cmp	eax, 119
	jg	.L28
	cmp	eax, 99
	je	.L29
	cmp	eax, 114
	je	.L30
	jmp	.L28
.L27:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	w_test
	mov	DWORD PTR -8[rbp], eax
	jmp	.L31
.L30:
	mov	edi, 2
	call	w_test
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	r_test
	mov	DWORD PTR -8[rbp], eax
	jmp	.L31
.L29:
	mov	edi, 2
	call	w_test
	mov	edi, 2
	call	r_test
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	c_test
	mov	DWORD PTR -8[rbp], eax
	jmp	.L31
.L28:
	movsx	edx, BYTE PTR -13[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 6
	call	exit@PLT
.L31:
	cmp	DWORD PTR -8[rbp], 0
	je	.L32
	mov	edi, 0
	call	clean_up
	mov	edi, 1
	call	exit@PLT
.L32:
	mov	edi, 0
	call	clean_up
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	getFloatTime, @function
getFloatTime:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC10[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movq	rax, xmm0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getFloatTime, .-getFloatTime
	.section	.rodata
.LC11:
	.string	"fstime: write"
	.align 8
.LC12:
	.string	"Write done: %ld in %.4f, score %ld\n"
.LC13:
	.string	"COUNT|%ld|0|KBps\n"
.LC14:
	.string	"TIME|%.1f\n"
	.text
	.globl	w_test
	.type	w_test, @function
w_test:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -40[rbp], 0
	call	sync@PLT
	mov	edi, 2
	call	sleep@PLT
	call	sync@PLT
	mov	edi, 2
	call	sleep@PLT
	mov	DWORD PTR sigalarm[rip], 0
	lea	rsi, stop_count[rip]
	mov	edi, 14
	call	signal@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	alarm@PLT
	call	getFloatTime
	movq	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	jmp	.L38
.L45:
	mov	QWORD PTR -32[rbp], 0
	jmp	.L39
.L44:
	mov	eax, DWORD PTR bufsize[rip]
	movsx	rdx, eax
	mov	eax, DWORD PTR f[rip]
	lea	rsi, buf[rip]
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR bufsize[rip]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	je	.L40
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L41
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L42
.L41:
	mov	edi, 0
	call	stop_count
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, -128
	shr	rax, 8
	add	QWORD PTR -40[rbp], rax
	jmp	.L43
.L40:
	mov	eax, DWORD PTR count_per_buf[rip]
	cdqe
	add	QWORD PTR -40[rbp], rax
.L43:
	add	QWORD PTR -32[rbp], 1
.L39:
	mov	eax, DWORD PTR max_buffs[rip]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jl	.L44
	mov	eax, DWORD PTR f[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
.L38:
	mov	eax, DWORD PTR sigalarm[rip]
	test	eax, eax
	je	.L45
	call	getFloatTime
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	js	.L46
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L47
.L46:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L47:
	movsd	xmm1, QWORD PTR -16[rbp]
	movapd	xmm2, xmm1
	subsd	xmm2, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR count_per_k[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mulsd	xmm1, xmm2
	divsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR write_score[rip], rax
	mov	rdx, QWORD PTR write_score[rip]
	movsd	xmm0, QWORD PTR -16[rbp]
	subsd	xmm0, QWORD PTR -24[rbp]
	movq	rcx, xmm0
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rdx, QWORD PTR write_score[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	movsd	xmm0, QWORD PTR -16[rbp]
	subsd	xmm0, QWORD PTR -24[rbp]
	movq	rdx, xmm0
	mov	rax, QWORD PTR stderr[rip]
	movq	xmm0, rdx
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	eax, 0
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	w_test, .-w_test
	.section	.rodata
.LC15:
	.string	"fstime: read"
	.align 8
.LC16:
	.string	"Read done: %ld in %.4f, score %ld\n"
	.text
	.globl	r_test
	.type	r_test, @function
r_test:
.LFB9:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -32[rbp], 0
	call	sync@PLT
	mov	edi, 2
	call	sleep@PLT
	call	sync@PLT
	mov	edi, 2
	call	sleep@PLT
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR f[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR sigalarm[rip], 0
	lea	rsi, stop_count[rip]
	mov	edi, 14
	call	signal@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	alarm@PLT
	call	getFloatTime
	movq	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	jmp	.L49
.L56:
	mov	eax, DWORD PTR bufsize[rip]
	movsx	rdx, eax
	mov	eax, DWORD PTR f[rip]
	lea	rsi, buf[rip]
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR bufsize[rip]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	je	.L50
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	je	.L51
	cmp	eax, 22
	jg	.L52
	test	eax, eax
	je	.L51
	cmp	eax, 4
	je	.L53
	jmp	.L52
.L51:
	mov	eax, DWORD PTR f[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, -128
	shr	rax, 8
	add	QWORD PTR -32[rbp], rax
	jmp	.L49
.L53:
	mov	edi, 0
	call	stop_count
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, -128
	shr	rax, 8
	add	QWORD PTR -32[rbp], rax
	nop
	jmp	.L49
.L52:
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L55
.L50:
	mov	eax, DWORD PTR count_per_buf[rip]
	cdqe
	add	QWORD PTR -32[rbp], rax
.L49:
	mov	eax, DWORD PTR sigalarm[rip]
	test	eax, eax
	je	.L56
	call	getFloatTime
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	js	.L57
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L58
.L57:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L58:
	movsd	xmm1, QWORD PTR -16[rbp]
	movapd	xmm2, xmm1
	subsd	xmm2, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR count_per_k[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mulsd	xmm1, xmm2
	divsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR read_score[rip], rax
	mov	rdx, QWORD PTR read_score[rip]
	movsd	xmm0, QWORD PTR -16[rbp]
	subsd	xmm0, QWORD PTR -24[rbp]
	movq	rcx, xmm0
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rdx, QWORD PTR read_score[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	movsd	xmm0, QWORD PTR -16[rbp]
	subsd	xmm0, QWORD PTR -24[rbp]
	movq	rdx, xmm0
	mov	rax, QWORD PTR stderr[rip]
	movq	xmm0, rdx
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	eax, 0
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	r_test, .-r_test
	.section	.rodata
.LC17:
	.string	"fstime: copy read"
.LC18:
	.string	"fstime: copy write"
	.align 8
.LC19:
	.string	"Copy done: %ld in %.4f, score %ld\n"
	.text
	.globl	c_test
	.type	c_test, @function
c_test:
.LFB10:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -32[rbp], 0
	call	sync@PLT
	mov	edi, 2
	call	sleep@PLT
	call	sync@PLT
	mov	edi, 1
	call	sleep@PLT
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR f[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR sigalarm[rip], 0
	lea	rsi, stop_count[rip]
	mov	edi, 14
	call	signal@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	alarm@PLT
	call	getFloatTime
	movq	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	jmp	.L60
.L69:
	mov	eax, DWORD PTR bufsize[rip]
	movsx	rdx, eax
	mov	eax, DWORD PTR f[rip]
	lea	rsi, buf[rip]
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR bufsize[rip]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	je	.L61
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	je	.L62
	cmp	eax, 22
	jg	.L63
	test	eax, eax
	je	.L62
	cmp	eax, 4
	je	.L64
	jmp	.L63
.L62:
	mov	eax, DWORD PTR f[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR g[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	jmp	.L60
.L64:
	mov	rax, QWORD PTR write_score[rip]
	imul	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR read_score[rip]
	mov	rdx, QWORD PTR write_score[rip]
	add	rdx, rcx
	mov	rcx, rdx
	mov	edx, 0
	div	rcx
	sub	rax, -128
	shr	rax, 8
	add	QWORD PTR -32[rbp], rax
	mov	edi, 0
	call	stop_count
	nop
	jmp	.L60
.L63:
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L66
.L61:
	mov	eax, DWORD PTR bufsize[rip]
	movsx	rdx, eax
	mov	eax, DWORD PTR g[rip]
	lea	rsi, buf[rip]
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR bufsize[rip]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	je	.L67
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L68
	lea	rdi, .LC18[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L66
.L68:
	mov	eax, DWORD PTR bufsize[rip]
	cdqe
	sub	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR write_score[rip]
	imul	rax, rdx
	mov	rcx, QWORD PTR read_score[rip]
	mov	rdx, QWORD PTR write_score[rip]
	add	rdx, rcx
	mov	rcx, rdx
	mov	edx, 0
	div	rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	sub	rax, -128
	shr	rax, 8
	add	QWORD PTR -32[rbp], rax
	mov	edi, 0
	call	stop_count
	jmp	.L60
.L67:
	mov	eax, DWORD PTR count_per_buf[rip]
	cdqe
	add	QWORD PTR -32[rbp], rax
.L60:
	mov	eax, DWORD PTR sigalarm[rip]
	test	eax, eax
	je	.L69
	call	getFloatTime
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	js	.L70
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L71
.L70:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L71:
	movsd	xmm1, QWORD PTR -16[rbp]
	movapd	xmm2, xmm1
	subsd	xmm2, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR count_per_k[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mulsd	xmm1, xmm2
	divsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR copy_score[rip], rax
	mov	rdx, QWORD PTR copy_score[rip]
	movsd	xmm0, QWORD PTR -16[rbp]
	subsd	xmm0, QWORD PTR -24[rbp]
	movq	rcx, xmm0
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rdx, QWORD PTR copy_score[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	movsd	xmm0, QWORD PTR -16[rbp]
	subsd	xmm0, QWORD PTR -24[rbp]
	movq	rdx, xmm0
	mov	rax, QWORD PTR stderr[rip]
	movq	xmm0, rdx
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	eax, 0
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	c_test, .-c_test
	.globl	stop_count
	.type	stop_count, @function
stop_count:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR sigalarm[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	stop_count, .-stop_count
	.globl	clean_up
	.type	clean_up, @function
clean_up:
.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	DWORD PTR -4[rbp], edi
	lea	rdi, .LC5[rip]
	call	unlink@PLT
	lea	rdi, .LC7[rip]
	call	unlink@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	clean_up, .-clean_up
	.section	.rodata
	.align 8
.LC10:
	.long	0
	.long	1093567616
	.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	"384902.c"
	.text
	.global	SCCSid
	.data
	.align	2
	.type	SCCSid, %object
	.size	SCCSid, 42
SCCSid:
	.ascii	"@(#) @(#)fstime.c:3.5 -- 5/15/91 19:30:19\000"
	.global	read_score
	.align	2
	.type	read_score, %object
	.size	read_score, 4
read_score:
	.word	1
	.global	write_score
	.align	2
	.type	write_score, %object
	.size	write_score, 4
write_score:
	.word	1
	.global	copy_score
	.align	2
	.type	copy_score, %object
	.size	copy_score, 4
copy_score:
	.word	1
	.global	bufsize
	.align	2
	.type	bufsize, %object
	.size	bufsize, 4
bufsize:
	.word	1024
	.global	max_blocks
	.align	2
	.type	max_blocks, %object
	.size	max_blocks, 4
max_blocks:
	.word	2000
	.global	max_buffs
	.align	2
	.type	max_buffs, %object
	.size	max_buffs, 4
max_buffs:
	.word	2000
	.comm	count_per_k,4,4
	.comm	count_per_buf,4,4
	.comm	buf,8192,4
	.comm	f,4,4
	.comm	g,4,4
	.comm	i,4,4
	.global	sigalarm
	.bss
	.align	2
	.type	sigalarm, %object
	.size	sigalarm, 4
sigalarm:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fstime: chdir\000"
	.align	2
.LC1:
	.ascii	"Usage: fstime [-c|-r|-w] [-b <bufsize>] [-m <max_bl"
	.ascii	"ocks>] [-t <seconds>]\012\000"
	.align	2
.LC2:
	.ascii	"fstime: buffer size must be in range %d-%d\012\000"
	.align	2
.LC3:
	.ascii	"fstime: max blocks must be in range %d-%d\012\000"
	.align	2
.LC4:
	.ascii	"fstime: time must be in range %d-%d seconds\012\000"
	.global	__aeabi_idiv
	.align	2
.LC5:
	.ascii	"dummy0\000"
	.align	2
.LC6:
	.ascii	"fstime: creat\000"
	.align	2
.LC7:
	.ascii	"dummy1\000"
	.align	2
.LC8:
	.ascii	"fstime: open\000"
	.align	2
.LC9:
	.ascii	"fstime: unknown test '%c'\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r3, #10
	str	r3, [fp, #-16]
	mov	r3, #99
	strb	r3, [fp, #-17]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L2
.L14:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #98
	cmp	r3, #21
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L10
	.word	.L5
	.word	.L9
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L8
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L5
	.word	.L4
	.word	.L7
	.word	.L4
	.word	.L4
	.word	.L5
.L5:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-17]
	b	.L13
.L10:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L34
	str	r3, [r2]
	b	.L13
.L8:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L34+4
	str	r3, [r2]
	b	.L13
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	b	.L13
.L9:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L33
	ldr	r0, .L34+8
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, .L34+12
	ldr	r3, [r3]
	mov	r2, #73
	mov	r1, #1
	ldr	r0, .L34+16
	bl	fwrite
	mov	r0, #2
	bl	exit
.L3:
	ldr	r3, .L34+12
	ldr	r3, [r3]
	mov	r2, #73
	mov	r1, #1
	ldr	r0, .L34+16
	bl	fwrite
	mov	r0, #2
	bl	exit
.L33:
	nop
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L14
	ldr	r3, .L34
	ldr	r3, [r3]
	cmp	r3, #255
	ble	.L15
	ldr	r3, .L34
	ldr	r3, [r3]
	cmp	r3, #8192
	ble	.L16
.L15:
	ldr	r3, .L34+12
	ldr	r0, [r3]
	mov	r3, #1048576
	mov	r2, #256
	ldr	r1, .L34+20
	bl	fprintf
	mov	r0, #3
	bl	exit
.L16:
	ldr	r3, .L34+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L17
	ldr	r3, .L34+4
	ldr	r3, [r3]
	cmp	r3, #1048576
	ble	.L18
.L17:
	ldr	r3, .L34+12
	ldr	r0, [r3]
	mov	r3, #1048576
	mov	r2, #1
	ldr	r1, .L34+24
	bl	fprintf
	mov	r0, #3
	bl	exit
.L18:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L19
	ldr	r3, [fp, #-16]
	cmp	r3, #3600
	ble	.L20
.L19:
	ldr	r3, .L34+12
	ldr	r0, [r3]
	mov	r3, #3600
	mov	r2, #1
	ldr	r1, .L34+28
	bl	fprintf
	mov	r0, #3
	bl	exit
.L20:
	ldr	r3, .L34+4
	ldr	r3, [r3]
	lsl	r3, r3, #10
	ldr	r2, .L34
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L34+32
	str	r2, [r3]
	ldr	r3, .L34+36
	mov	r2, #4
	str	r2, [r3]
	ldr	r3, .L34
	ldr	r3, [r3]
	add	r2, r3, #255
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #8
	mov	r2, r3
	ldr	r3, .L34+40
	str	r2, [r3]
	mov	r1, #384
	ldr	r0, .L34+44
	bl	creat
	mov	r3, r0
	ldr	r2, .L34+48
	str	r3, [r2]
	ldr	r3, .L34+48
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L34+52
	bl	perror
	mov	r0, #1
	bl	exit
.L21:
	ldr	r3, .L34+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r1, #384
	ldr	r0, .L34+56
	bl	creat
	mov	r3, r0
	ldr	r2, .L34+60
	str	r3, [r2]
	ldr	r3, .L34+60
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L22
	ldr	r0, .L34+52
	bl	perror
	mov	r0, #1
	bl	exit
.L22:
	ldr	r3, .L34+60
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r1, #2
	ldr	r0, .L34+44
	bl	open
	mov	r3, r0
	ldr	r2, .L34+48
	str	r3, [r2]
	ldr	r3, .L34+48
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L34+64
	bl	perror
	mov	r0, #1
	bl	exit
.L23:
	mov	r1, #2
	ldr	r0, .L34+56
	bl	open
	mov	r3, r0
	ldr	r2, .L34+60
	str	r3, [r2]
	ldr	r3, .L34+60
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L34+64
	bl	perror
	mov	r0, #1
	bl	exit
.L24:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L25
.L26:
	ldr	r3, [fp, #-8]
	and	r1, r3, #255
	ldr	r2, .L34+68
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	ldr	r3, .L34
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L26
	ldr	r1, .L34+72
	mov	r0, #9
	bl	signal
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #119
	beq	.L27
	cmp	r3, #119
	bgt	.L28
	cmp	r3, #99
	beq	.L29
	cmp	r3, #114
	beq	.L30
	b	.L28
.L27:
	ldr	r0, [fp, #-16]
	bl	w_test
	str	r0, [fp, #-12]
	b	.L31
.L30:
	mov	r0, #2
	bl	w_test
	ldr	r0, [fp, #-16]
	bl	r_test
	str	r0, [fp, #-12]
	b	.L31
.L29:
	mov	r0, #2
	bl	w_test
	mov	r0, #2
	bl	r_test
	ldr	r0, [fp, #-16]
	bl	c_test
	str	r0, [fp, #-12]
	b	.L31
.L28:
	ldr	r3, .L34+12
	ldr	r3, [r3]
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	ldr	r1, .L34+76
	mov	r0, r3
	bl	fprintf
	mov	r0, #6
	bl	exit
.L31:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L32
	mov	r0, #0
	bl	clean_up
	mov	r0, #1
	bl	exit
.L32:
	mov	r0, #0
	bl	clean_up
	mov	r0, #0
	bl	exit
.L35:
	.align	2
.L34:
	.word	bufsize
	.word	max_blocks
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	max_buffs
	.word	count_per_k
	.word	count_per_buf
	.word	.LC5
	.word	f
	.word	.LC6
	.word	.LC7
	.word	g
	.word	.LC8
	.word	buf
	.word	clean_up
	.word	.LC9
	.size	main, .-main
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	getFloatTime, %function
getFloatTime:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L39+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L39
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC10
	.word	1093567616
	.size	getFloatTime, .-getFloatTime
	.section	.rodata
	.align	2
.LC11:
	.ascii	"fstime: write\000"
	.global	__aeabi_ui2d
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.align	2
.LC12:
	.ascii	"Write done: %ld in %.4f, score %ld\012\000"
	.align	2
.LC13:
	.ascii	"COUNT|%ld|0|KBps\012\000"
	.align	2
.LC14:
	.ascii	"TIME|%.1f\012\000"
	.text
	.align	2
	.global	w_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	w_test, %function
w_test:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #48
	str	r0, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-48]
	bl	sync
	mov	r0, #2
	bl	sleep
	bl	sync
	mov	r0, #2
	bl	sleep
	ldr	r3, .L50
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L50+4
	mov	r0, #14
	bl	signal
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	alarm
	bl	getFloatTime
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	b	.L42
.L49:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L43
.L48:
	ldr	r3, .L50+8
	ldr	r3, [r3]
	ldr	r2, .L50+12
	ldr	r2, [r2]
	ldr	r1, .L50+16
	mov	r0, r3
	bl	write
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, .L50+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	beq	.L44
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L45
	ldr	r0, .L50+20
	bl	perror
	mvn	r3, #0
	b	.L46
.L45:
	mov	r0, #0
	bl	stop_count
	ldr	r3, [fp, #-40]
	add	r3, r3, #128
	lsr	r3, r3, #8
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	b	.L47
.L44:
	ldr	r3, .L50+24
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	str	r3, [fp, #-48]
.L47:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L43:
	ldr	r3, .L50+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L48
	ldr	r3, .L50+8
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	lseek
.L42:
	ldr	r3, .L50
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L49
	bl	getFloatTime
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	ldr	r0, [fp, #-48]
	bl	__aeabi_ui2d
	mov	r4, r0
	mov	r5, r1
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, .L50+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	ldr	r2, .L50+36
	str	r3, [r2]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, .L50+36
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-48]
	ldr	r0, .L50+40
	bl	printf
	ldr	r3, .L50+44
	ldr	r3, [r3]
	ldr	r2, .L50+36
	ldr	r2, [r2]
	ldr	r1, .L50+48
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L50+44
	ldr	r4, [r3]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L50+52
	mov	r0, r4
	bl	fprintf
	mov	r3, #0
.L46:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L51:
	.align	2
.L50:
	.word	sigalarm
	.word	stop_count
	.word	f
	.word	bufsize
	.word	buf
	.word	.LC11
	.word	count_per_buf
	.word	max_buffs
	.word	count_per_k
	.word	write_score
	.word	.LC12
	.word	stderr
	.word	.LC13
	.word	.LC14
	.size	w_test, .-w_test
	.section	.rodata
	.align	2
.LC15:
	.ascii	"fstime: read\000"
	.align	2
.LC16:
	.ascii	"Read done: %ld in %.4f, score %ld\012\000"
	.text
	.align	2
	.global	r_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	r_test, %function
r_test:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	bl	sync
	mov	r0, #2
	bl	sleep
	bl	sync
	mov	r0, #2
	bl	sleep
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L61
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	ldr	r3, .L61+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L61+8
	mov	r0, #14
	bl	signal
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	alarm
	bl	getFloatTime
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	b	.L53
.L60:
	ldr	r3, .L61
	ldr	r3, [r3]
	ldr	r2, .L61+12
	ldr	r2, [r2]
	ldr	r1, .L61+16
	mov	r0, r3
	bl	read
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, .L61+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	beq	.L54
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	beq	.L55
	cmp	r3, #22
	bgt	.L56
	cmp	r3, #0
	beq	.L55
	cmp	r3, #4
	beq	.L57
	b	.L56
.L55:
	ldr	r3, .L61
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	ldr	r3, [fp, #-40]
	add	r3, r3, #128
	lsr	r3, r3, #8
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	b	.L53
.L57:
	mov	r0, #0
	bl	stop_count
	ldr	r3, [fp, #-40]
	add	r3, r3, #128
	lsr	r3, r3, #8
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	nop
	b	.L53
.L56:
	ldr	r0, .L61+20
	bl	perror
	mvn	r3, #0
	b	.L59
.L54:
	ldr	r3, .L61+24
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	str	r3, [fp, #-44]
.L53:
	ldr	r3, .L61+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L60
	bl	getFloatTime
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	ldr	r0, [fp, #-44]
	bl	__aeabi_ui2d
	mov	r4, r0
	mov	r5, r1
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, .L61+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	ldr	r2, .L61+32
	str	r3, [r2]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, .L61+32
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-44]
	ldr	r0, .L61+36
	bl	printf
	ldr	r3, .L61+40
	ldr	r3, [r3]
	ldr	r2, .L61+32
	ldr	r2, [r2]
	ldr	r1, .L61+44
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L61+40
	ldr	r4, [r3]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L61+48
	mov	r0, r4
	bl	fprintf
	mov	r3, #0
.L59:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L62:
	.align	2
.L61:
	.word	f
	.word	sigalarm
	.word	stop_count
	.word	bufsize
	.word	buf
	.word	.LC15
	.word	count_per_buf
	.word	count_per_k
	.word	read_score
	.word	.LC16
	.word	stderr
	.word	.LC13
	.word	.LC14
	.size	r_test, .-r_test
	.global	__aeabi_uidiv
	.section	.rodata
	.align	2
.LC17:
	.ascii	"fstime: copy read\000"
	.align	2
.LC18:
	.ascii	"fstime: copy write\000"
	.align	2
.LC19:
	.ascii	"Copy done: %ld in %.4f, score %ld\012\000"
	.text
	.align	2
	.global	c_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	c_test, %function
c_test:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	bl	sync
	mov	r0, #2
	bl	sleep
	bl	sync
	mov	r0, #1
	bl	sleep
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L74
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	ldr	r3, .L74+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L74+8
	mov	r0, #14
	bl	signal
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	alarm
	bl	getFloatTime
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	b	.L64
.L73:
	ldr	r3, .L74
	ldr	r3, [r3]
	ldr	r2, .L74+12
	ldr	r2, [r2]
	ldr	r1, .L74+16
	mov	r0, r3
	bl	read
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, .L74+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	beq	.L65
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	beq	.L66
	cmp	r3, #22
	bgt	.L67
	cmp	r3, #0
	beq	.L66
	cmp	r3, #4
	beq	.L68
	b	.L67
.L66:
	ldr	r3, .L74
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	ldr	r3, .L74+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	b	.L64
.L68:
	ldr	r3, .L74+24
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-40]
	mul	r0, r3, r2
	ldr	r3, .L74+28
	ldr	r2, [r3]
	ldr	r3, .L74+24
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	add	r3, r3, #128
	lsr	r3, r3, #8
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	mov	r0, #0
	bl	stop_count
	nop
	b	.L64
.L67:
	ldr	r0, .L74+32
	bl	perror
	mvn	r3, #0
	b	.L70
.L65:
	ldr	r3, .L74+20
	ldr	r3, [r3]
	ldr	r2, .L74+12
	ldr	r2, [r2]
	ldr	r1, .L74+16
	mov	r0, r3
	bl	write
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, .L74+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	beq	.L71
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L72
	ldr	r0, .L74+36
	bl	perror
	mvn	r3, #0
	b	.L70
.L72:
	ldr	r3, .L74+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	ldr	r2, .L74+24
	ldr	r2, [r2]
	mul	r0, r2, r3
	ldr	r3, .L74+28
	ldr	r2, [r3]
	ldr	r3, .L74+24
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	add	r3, r3, #128
	lsr	r3, r3, #8
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	mov	r0, #0
	bl	stop_count
	b	.L64
.L71:
	ldr	r3, .L74+40
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	str	r3, [fp, #-44]
.L64:
	ldr	r3, .L74+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L73
	bl	getFloatTime
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	ldr	r0, [fp, #-44]
	bl	__aeabi_ui2d
	mov	r4, r0
	mov	r5, r1
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, .L74+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	ldr	r2, .L74+48
	str	r3, [r2]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, .L74+48
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-44]
	ldr	r0, .L74+52
	bl	printf
	ldr	r3, .L74+56
	ldr	r3, [r3]
	ldr	r2, .L74+48
	ldr	r2, [r2]
	ldr	r1, .L74+60
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L74+56
	ldr	r4, [r3]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L74+64
	mov	r0, r4
	bl	fprintf
	mov	r3, #0
.L70:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L75:
	.align	2
.L74:
	.word	f
	.word	sigalarm
	.word	stop_count
	.word	bufsize
	.word	buf
	.word	g
	.word	write_score
	.word	read_score
	.word	.LC17
	.word	.LC18
	.word	count_per_buf
	.word	count_per_k
	.word	copy_score
	.word	.LC19
	.word	stderr
	.word	.LC13
	.word	.LC14
	.size	c_test, .-c_test
	.align	2
	.global	stop_count
	.syntax unified
	.arm
	.fpu softvfp
	.type	stop_count, %function
stop_count:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L77
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L78:
	.align	2
.L77:
	.word	sigalarm
	.size	stop_count, .-stop_count
	.align	2
	.global	clean_up
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean_up, %function
clean_up:
	@ 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	r0, .L80
	bl	unlink
	ldr	r0, .L80+4
	bl	unlink
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L81:
	.align	2
.L80:
	.word	.LC5
	.word	.LC7
	.size	clean_up, .-clean_up
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
