	.file	"31389112.c"
	.intel_syntax noprefix
	.text
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 1048576
buf:
	.zero	1048576
	.section	.rodata
	.align 8
.LC0:
	.string	"usage:<# of %ld buffers to write>\n"
	.align 8
.LC1:
	.string	"Started building a %lu megabyte file @ %s\n"
.LC2:
	.string	"large_file"
.LC3:
	.string	"lftest: "
	.align 8
.LC4:
	.string	"\nFinished building a %lu megabyte file @ %s\n"
	.align 8
.LC5:
	.string	"Number of Writes: %d\nNumber of Seeks: %d\nTotal time for test to run: %d minute(s) and %d seconds\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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	DWORD PTR -68[rbp], 2
	jne	.L2
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	test	eax, eax
	jg	.L3
.L2:
	mov	esi, 1048576
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -24[rbp], rax
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rdi, rax
	call	asctime@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR buf[rip], 65
	mov	QWORD PTR -32[rbp], 1
	jmp	.L4
.L5:
	lea	rdx, buf[rip]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 48
	add	QWORD PTR -32[rbp], 1
.L4:
	cmp	QWORD PTR -32[rbp], 1048575
	jle	.L5
	mov	BYTE PTR buf[rip+1048575], 90
	mov	esi, 493
	lea	rdi, .LC2[rip]
	call	creat@PLT
	cdqe
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	jne	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
.L6:
	mov	QWORD PTR -32[rbp], 0
	jmp	.L7
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 1048576
	lea	rsi, buf[rip]
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L8
	mov	eax, -1
	jmp	.L12
.L8:
	mov	edi, 46
	call	putchar@PLT
	add	DWORD PTR -60[rbp], 1
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edi, eax
	call	fsync@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	sal	rax, 20
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, edx
	mov	edx, 0
	mov	rsi, rax
	mov	edi, ecx
	call	lseek@PLT
	cmp	rax, -1
	jne	.L10
	mov	eax, -1
	jmp	.L12
.L10:
	add	DWORD PTR -56[rbp], 1
	add	QWORD PTR -32[rbp], 1
.L7:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jl	.L11
	mov	rax, QWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -40[rbp], rax
	lea	rax, -40[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rdi, rax
	call	asctime@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2004318071
	shr	rdx, 32
	add	edx, eax
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 60
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rcx, eax
	imul	rcx, rcx, -2004318071
	shr	rcx, 32
	add	ecx, eax
	sar	ecx, 5
	sar	eax, 31
	sub	ecx, eax
	mov	esi, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	r8d, edx
	mov	edx, esi
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L12:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"31389112.c"
	.text
	.comm	buf,1048576,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage:<# of %ld buffers to write>\012\000"
	.align	2
.LC1:
	.ascii	"Started building a %lu megabyte file @ %s\012\000"
	.align	2
.LC2:
	.ascii	"large_file\000"
	.align	2
.LC3:
	.ascii	"lftest: \000"
	.align	2
.LC4:
	.ascii	"\012Finished building a %lu megabyte file @ %s\012\000"
	.align	2
.LC5:
	.ascii	"Number of Writes: %d\012Number of Seeks: %d\012Tota"
	.ascii	"l time for test to run: %d minute(s) and %d seconds"
	.ascii	"\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	bne	.L2
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	cmp	r3, #0
	bgt	.L3
.L2:
	mov	r1, #1048576
	ldr	r0, .L14+4
	bl	printf
	mov	r0, #3
	bl	exit
.L3:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-20]
	sub	r3, fp, #40
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	mov	r0, r3
	bl	asctime
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L14+8
	bl	printf
	ldr	r3, .L14+12
	mov	r2, #65
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L4
.L5:
	ldr	r2, .L14+12
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L4:
	ldr	r3, [fp, #-32]
	cmp	r3, #1048576
	blt	.L5
	ldr	r3, .L14+12
	add	r3, r3, #1044480
	mov	r2, #90
	strb	r2, [r3, #4095]
	ldr	r1, .L14+16
	ldr	r0, .L14+20
	bl	creat
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L14+24
	bl	perror
.L6:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L7
.L11:
	mov	r2, #1048576
	ldr	r1, .L14+12
	ldr	r0, [fp, #-16]
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	mvn	r3, #0
	b	.L12
.L8:
	mov	r0, #46
	bl	putchar
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, .L14+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, [fp, #-16]
	bl	fsync
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	lsl	r3, r3, #20
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	lseek
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	mvn	r3, #0
	b	.L12
.L10:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L7:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L11
	ldr	r0, [fp, #-16]
	bl	close
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-36]
	sub	r3, fp, #36
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	mov	r0, r3
	bl	asctime
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L14+32
	bl	printf
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L14+36
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r0, r2, r3
	ldr	r2, [fp, #-12]
	ldr	r3, .L14+36
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, r2, r3
	str	r1, [sp]
	mov	r3, r0
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, .L14+40
	bl	printf
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	buf
	.word	493
	.word	.LC2
	.word	.LC3
	.word	stdout
	.word	.LC4
	.word	-2004318071
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
