	.file	"863145.c"
	.intel_syntax noprefix
	.text
	.globl	fd
	.bss
	.align 8
	.type	fd, @object
	.size	fd, 8
fd:
	.zero	8
	.globl	status
	.align 4
	.type	status, @object
	.size	status, 4
status:
	.zero	4
	.globl	takeTime
	.align 16
	.type	takeTime, @object
	.size	takeTime, 16
takeTime:
	.zero	16
	.globl	takeTime2
	.align 16
	.type	takeTime2, @object
	.size	takeTime2, 16
takeTime2:
	.zero	16
	.globl	cpuTake
	.align 32
	.type	cpuTake, @object
	.size	cpuTake, 32
cpuTake:
	.zero	32
	.globl	cpuS
	.align 8
	.type	cpuS, @object
	.size	cpuS, 8
cpuS:
	.zero	8
	.section	.rodata
.LC0:
	.string	"creating pipe"
.LC1:
	.string	"cannot fork"
	.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
	lea	rdi, fd[rip]
	call	pipe@PLT
	test	eax, eax
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	cmp	DWORD PTR -4[rbp], 0
	jle	.L4
	mov	eax, 0
	call	parent
	jmp	.L5
.L4:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	child
.L5:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	getStart
	.type	getStart, @function
getStart:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR fd[rip+4]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -64[rbp]
	mov	edx, 50
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -72[rbp], rax
	movsd	xmm0, QWORD PTR -72[rbp]
	movq	rax, xmm0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getStart, .-getStart
	.section	.rodata
.LC3:
	.string	"%lf"
	.text
	.globl	child
	.type	child, @function
child:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	esi, 0
	lea	rdi, takeTime[rip]
	call	gettimeofday@PLT
	mov	rax, QWORD PTR takeTime[rip+8]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	mov	rax, QWORD PTR takeTime[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	addsd	xmm0, xmm1
	movsd	QWORD PTR -72[rbp], xmm0
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -64[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 1
	call	sprintf@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR fd[rip+4]
	lea	rcx, -64[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR fd[rip+4]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	child, .-child
	.section	.rodata
	.align 8
.LC4:
	.string	"Real wall clock time for execution is %lf \n"
.LC5:
	.string	"times error"
	.align 8
.LC6:
	.string	"CPU system time for executing is %lf \n"
	.align 8
.LC7:
	.string	"CPU user time for executing is %lf \n"
	.text
	.globl	parent
	.type	parent, @function
parent:
.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	eax, 0
	call	getStart
	movq	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	lea	rdi, status[rip]
	call	wait@PLT
	mov	esi, 0
	lea	rdi, takeTime2[rip]
	call	gettimeofday@PLT
	mov	rax, QWORD PTR takeTime2[rip+8]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	mov	rax, QWORD PTR takeTime2[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	subsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, cpuTake[rip]
	call	times@PLT
	mov	QWORD PTR cpuS[rip], rax
	mov	rax, QWORD PTR cpuS[rip]
	test	rax, rax
	jns	.L13
	lea	rdi, .LC5[rip]
	call	perror@PLT
	jmp	.L14
.L13:
	mov	rax, QWORD PTR cpuTake[rip+16]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR cpuTake[rip+24]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
.L14:
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	parent, .-parent
	.section	.rodata
	.align 8
.LC2:
	.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	"863145.c"
	.text
	.comm	fd,8,4
	.global	status
	.bss
	.align	2
	.type	status, %object
	.size	status, 4
status:
	.space	4
	.comm	takeTime,8,4
	.comm	takeTime2,8,4
	.comm	cpuTake,16,4
	.comm	cpuS,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"creating pipe\000"
	.align	2
.LC1:
	.ascii	"cannot fork\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, .L7
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L7+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L7+8
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L4
	bl	parent
	b	.L5
.L4:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	child
.L5:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	fd
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getStart
	.syntax unified
	.arm
	.fpu softvfp
	.type	getStart, %function
getStart:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L12+4
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	ldr	r3, .L12+4
	ldr	r3, [r3]
	sub	r1, fp, #60
	mov	r2, #50
	mov	r0, r3
	bl	read
	str	r0, [fp, #-72]
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	sub	r3, fp, #60
	mov	r0, r3
	bl	atof
	str	r0, [fp, #-68]
	str	r1, [fp, #-64]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	ldr	r1, .L12
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	fd
	.size	getStart, .-getStart
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%lf\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	child
	.syntax unified
	.arm
	.fpu softvfp
	.type	child, %function
child:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #72
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L16+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r1, #0
	ldr	r0, .L16+8
	bl	gettimeofday
	ldr	r3, .L16+8
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L16+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, .L16+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r0, fp, #68
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	ldr	r1, .L16+16
	bl	sprintf
	ldr	r3, .L16+4
	ldr	r4, [r3, #4]
	sub	r3, fp, #68
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #68
	mov	r1, r3
	mov	r0, r4
	bl	write
	ldr	r3, .L16+4
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	execv
	mov	r0, #0
	bl	exit
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	fd
	.word	takeTime
	.word	1093567616
	.word	.LC3
	.size	child, .-child
	.global	__aeabi_dsub
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Real wall clock time for execution is %lf \012\000"
	.align	2
.LC6:
	.ascii	"times error\000"
	.align	2
.LC7:
	.ascii	"CPU system time for executing is %lf \012\000"
	.align	2
.LC8:
	.ascii	"CPU user time for executing is %lf \012\000"
	.text
	.align	2
	.global	parent
	.syntax unified
	.arm
	.fpu softvfp
	.type	parent, %function
parent:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	bl	getStart
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	ldr	r0, .L21
	bl	wait
	mov	r1, #0
	ldr	r0, .L21+4
	bl	gettimeofday
	ldr	r3, .L21+4
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L21+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, .L21+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	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
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L21+12
	bl	printf
	ldr	r0, .L21+16
	bl	times
	mov	r3, r0
	ldr	r2, .L21+20
	str	r3, [r2]
	ldr	r3, .L21+20
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L21+24
	bl	perror
	b	.L20
.L19:
	ldr	r3, .L21+16
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L21+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, .L21+16
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L21+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L20:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L21+28
	bl	printf
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r0, .L21+32
	bl	printf
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L22:
	.align	2
.L21:
	.word	status
	.word	takeTime2
	.word	1093567616
	.word	.LC5
	.word	cpuTake
	.word	cpuS
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	parent, .-parent
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
