	.file	"95081.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Piped Error"
.LC1:
	.string	"Fork Failed"
.LC2:
	.string	"%ld"
.LC3:
	.string	"Start time : %s\n"
.LC5:
	.string	"Elapsed time: %f\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
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -56[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L7
.L2:
	call	fork@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L7
.L4:
	cmp	DWORD PTR -84[rbp], 0
	jne	.L5
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -48[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -52[rbp]
	lea	rcx, -48[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	execlp@PLT
	jmp	.L6
.L5:
	mov	edi, 0
	call	wait@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -56[rbp]
	lea	rcx, -48[rbp]
	mov	edx, 50
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rbx, QWORD PTR -72[rbp]
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	sub	rbx, rax
	mov	rdx, rbx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
.L6:
	mov	eax, 0
.L7:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1089293312
	.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	"95081.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Piped Error\000"
	.align	2
.LC1:
	.ascii	"Fork Failed\000"
	.align	2
.LC2:
	.ascii	"%ld\000"
	.align	2
.LC3:
	.ascii	"Start time : %s\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC4:
	.ascii	"Elapsed time: %f\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #44
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L9+8
	bl	fwrite
	mov	r3, #1
	b	.L7
.L2:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L9+12
	bl	fwrite
	mov	r3, #1
	b	.L7
.L4:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	close
	sub	r3, fp, #52
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-48]
	sub	r3, fp, #36
	ldr	r1, .L9+16
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L9+20
	bl	printf
	ldr	r4, [fp, #-40]
	sub	r3, fp, #36
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #36
	mov	r1, r3
	mov	r0, r4
	bl	write
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, r3
	bl	execlp
	b	.L6
.L5:
	mov	r0, #0
	bl	wait
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-44]
	sub	r1, fp, #36
	mov	r2, #50
	mov	r0, r3
	bl	read
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	close
	sub	r3, fp, #52
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r4, [fp, #-48]
	sub	r3, fp, #36
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	sub	r3, r4, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L9+24
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L9+28
	bl	printf
.L6:
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC5
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	1089293312
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
