	.file	"807429.c"
	.intel_syntax noprefix
	.text
	.globl	cria_filhos
	.type	cria_filhos, @function
cria_filhos:
.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	DWORD PTR -8[rbp], 0
	jmp	.L2
.L6:
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L3
	mov	eax, -1
	jmp	.L4
.L3:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L5
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	jmp	.L4
.L5:
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L6
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cria_filhos, .-cria_filhos
	.section	.rodata
	.align 8
.LC0:
	.string	"An error ocurred with opening the pipe"
.LC1:
	.string	"Fork Error"
	.align 8
.LC2:
	.string	"An error ocurred with writing to the pipe"
.LC3:
	.string	"Erro no processo filho"
	.align 8
.LC4:
	.string	"An error ocurred with reading from the pipe"
.LC5:
	.string	"Max number : %d\n"
.LC7:
	.string	"\tRelatorio Performance"
	.align 8
.LC8:
	.string	"Come\303\247ou a escrita de dados em %.Lf pulsos\n"
	.align 8
.LC9:
	.string	"Terminou a leitura de dados em %.Lf pulsos\n"
	.align 8
.LC10:
	.string	"A transfer\303\252ncia de dados em %.6Lf segundos\n\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4096[rbp], 0
	mov	DWORD PTR -4092[rbp], 0
	lea	rax, -4072[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -4084[rbp], 0
	jmp	.L8
.L9:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 274877907
	shr	rdx, 32
	sar	edx, 6
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 1000
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -4084[rbp]
	cdqe
	mov	DWORD PTR -4016[rbp+rax*4], edx
	add	DWORD PTR -4084[rbp], 1
.L8:
	cmp	DWORD PTR -4084[rbp], 999
	jle	.L9
	call	clock@PLT
	mov	QWORD PTR -4064[rbp], rax
	lea	rax, -4024[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L10
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	edi, 10
	call	cria_filhos
	mov	DWORD PTR -4076[rbp], eax
	cmp	DWORD PTR -4076[rbp], -1
	jne	.L11
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	cmp	DWORD PTR -4076[rbp], 0
	jle	.L12
	mov	eax, DWORD PTR -4076[rbp]
	sub	eax, 1
	imul	eax, eax, 100
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	mov	DWORD PTR -4096[rbp], eax
	mov	eax, DWORD PTR -4076[rbp]
	sub	eax, 1
	imul	eax, eax, 100
	mov	DWORD PTR -4080[rbp], eax
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -4080[rbp]
	cdqe
	mov	edx, DWORD PTR -4016[rbp+rax*4]
	mov	eax, DWORD PTR -4096[rbp]
	cmp	edx, eax
	jle	.L14
	mov	eax, DWORD PTR -4080[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	mov	DWORD PTR -4096[rbp], eax
.L14:
	add	DWORD PTR -4080[rbp], 1
.L13:
	mov	eax, DWORD PTR -4076[rbp]
	imul	eax, eax, 100
	cmp	DWORD PTR -4080[rbp], eax
	jl	.L15
	mov	eax, DWORD PTR -4024[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4020[rbp]
	lea	rcx, -4096[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L16
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	eax, DWORD PTR -4020[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L12:
	mov	DWORD PTR -4088[rbp], 0
	mov	DWORD PTR -4084[rbp], 0
	jmp	.L17
.L20:
	lea	rax, -4088[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	eax, DWORD PTR -4088[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR -4088[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	je	.L19
.L18:
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	add	DWORD PTR -4084[rbp], 1
.L17:
	cmp	DWORD PTR -4084[rbp], 9
	jle	.L20
	mov	eax, DWORD PTR -4020[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4024[rbp]
	lea	rcx, -4096[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, -1
	jne	.L21
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	mov	DWORD PTR -4084[rbp], 1
	jmp	.L22
.L25:
	mov	eax, DWORD PTR -4024[rbp]
	lea	rcx, -4092[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, -1
	jne	.L23
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	edx, DWORD PTR -4096[rbp]
	mov	eax, DWORD PTR -4092[rbp]
	cmp	edx, eax
	jge	.L24
	mov	eax, DWORD PTR -4092[rbp]
	mov	DWORD PTR -4096[rbp], eax
.L24:
	add	DWORD PTR -4084[rbp], 1
.L22:
	cmp	DWORD PTR -4084[rbp], 9
	jle	.L25
	mov	eax, DWORD PTR -4024[rbp]
	mov	edi, eax
	call	close@PLT
	call	clock@PLT
	mov	QWORD PTR -4056[rbp], rax
	mov	eax, DWORD PTR -4096[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4056[rbp]
	sub	rax, QWORD PTR -4064[rbp]
	mov	QWORD PTR -4104[rbp], rax
	fild	QWORD PTR -4104[rbp]
	fld	TBYTE PTR .LC6[rip]
	fdivp	st(1), st
	fstp	TBYTE PTR -4048[rbp]
	lea	rdi, .LC7[rip]
	call	puts@PLT
	fild	QWORD PTR -4064[rbp]
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	fild	QWORD PTR -4056[rbp]
	lea	rsp, -16[rsp]
	fstp	TBYTE PTR [rsp]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	push	QWORD PTR -4040[rbp]
	push	QWORD PTR -4048[rbp]
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC6:
	.long	0
	.long	-198967296
	.long	16402
	.long	0
	.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	"807429.c"
	.text
	.align	2
	.global	cria_filhos
	.syntax unified
	.arm
	.fpu softvfp
	.type	cria_filhos, %function
cria_filhos:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L6:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L3
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	b	.L4
.L5:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L6
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cria_filhos, .-cria_filhos
	.section	.rodata
	.align	2
.LC0:
	.ascii	"An error ocurred with opening the pipe\000"
	.align	2
.LC1:
	.ascii	"Fork Error\000"
	.align	2
.LC2:
	.ascii	"An error ocurred with writing to the pipe\000"
	.align	2
.LC3:
	.ascii	"Erro no processo filho\000"
	.align	2
.LC4:
	.ascii	"An error ocurred with reading from the pipe\000"
	.align	2
.LC5:
	.ascii	"Max number : %d\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC6:
	.ascii	"\011Relatorio Performance\000"
	.align	2
.LC7:
	.ascii	"Come\303\247ou a escrita de dados em %.Lf pulsos\012"
	.ascii	"\000"
	.align	2
.LC8:
	.ascii	"Terminou a leitura de dados em %.Lf pulsos\012\000"
	.align	2
.LC9:
	.ascii	"A transfer\303\252ncia de dados em %.6Lf segundos\012"
	.ascii	"\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4064
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-4060]
	mov	r3, #0
	str	r3, [fp, #-4056]
	sub	r3, fp, #4048
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-4048]
	b	.L8
.L9:
	bl	rand
	mov	r1, r0
	ldr	r3, .L28+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	ldr	r3, [fp, #-4048]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-4004]
	ldr	r3, [fp, #-4048]
	add	r3, r3, #1
	str	r3, [fp, #-4048]
.L8:
	ldr	r3, [fp, #-4048]
	cmp	r3, #1000
	blt	.L9
	bl	clock
	str	r0, [fp, #-4040]
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L28+8
	bl	perror
	mov	r0, #1
	bl	exit
.L10:
	mov	r0, #10
	bl	cria_filhos
	str	r0, [fp, #-4036]
	ldr	r3, [fp, #-4036]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L28+12
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-4036]
	cmp	r3, #0
	ble	.L12
	ldr	r3, [fp, #-4036]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	str	r3, [fp, #-4060]
	ldr	r3, [fp, #-4036]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	str	r3, [fp, #-4044]
	b	.L13
.L15:
	ldr	r3, [fp, #-4044]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-4004]
	ldr	r3, [fp, #-4060]
	cmp	r2, r3
	ble	.L14
	ldr	r3, [fp, #-4044]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	str	r3, [fp, #-4060]
.L14:
	ldr	r3, [fp, #-4044]
	add	r3, r3, #1
	str	r3, [fp, #-4044]
.L13:
	ldr	r2, [fp, #-4036]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-4044]
	cmp	r3, r2
	blt	.L15
	ldr	r3, [fp, #-4016]
	mov	r0, r3
	bl	close
	ldr	r0, [fp, #-4012]
	sub	r3, fp, #4048
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #4
	mov	r1, r3
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L28+16
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	ldr	r3, [fp, #-4012]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	exit
.L12:
	mov	r3, #0
	str	r3, [fp, #-4052]
	mov	r3, #0
	str	r3, [fp, #-4048]
	b	.L17
.L20:
	sub	r3, fp, #4048
	sub	r3, r3, #4
	mov	r0, r3
	bl	wait
	ldr	r3, [fp, #-4052]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-4052]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L19
.L18:
	ldr	r0, .L28+20
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	ldr	r3, [fp, #-4048]
	add	r3, r3, #1
	str	r3, [fp, #-4048]
.L17:
	ldr	r3, [fp, #-4048]
	cmp	r3, #9
	ble	.L20
	ldr	r3, [fp, #-4012]
	mov	r0, r3
	bl	close
	ldr	r0, [fp, #-4016]
	sub	r3, fp, #4048
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #4
	mov	r1, r3
	bl	read
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L28+24
	bl	perror
	mov	r0, #1
	bl	exit
.L21:
	mov	r3, #1
	str	r3, [fp, #-4048]
	b	.L22
.L25:
	ldr	r0, [fp, #-4016]
	sub	r3, fp, #4048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4
	mov	r1, r3
	bl	read
	mov	r3, r0
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L28+24
	bl	perror
	mov	r0, #1
	bl	exit
.L23:
	ldr	r2, [fp, #-4060]
	ldr	r3, [fp, #-4056]
	cmp	r2, r3
	bge	.L24
	ldr	r3, [fp, #-4056]
	str	r3, [fp, #-4060]
.L24:
	ldr	r3, [fp, #-4048]
	add	r3, r3, #1
	str	r3, [fp, #-4048]
.L22:
	ldr	r3, [fp, #-4048]
	cmp	r3, #9
	ble	.L25
	ldr	r3, [fp, #-4016]
	mov	r0, r3
	bl	close
	bl	clock
	str	r0, [fp, #-4032]
	ldr	r3, [fp, #-4060]
	mov	r1, r3
	ldr	r0, .L28+28
	bl	printf
	ldr	r2, [fp, #-4032]
	ldr	r3, [fp, #-4040]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L28+32
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-4028]
	str	r3, [fp, #-4024]
	ldr	r0, .L28+36
	bl	puts
	ldr	r0, [fp, #-4040]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L28+40
	bl	printf
	ldr	r0, [fp, #-4032]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L28+44
	bl	printf
	ldr	r2, [fp, #-4028]
	ldr	r3, [fp, #-4024]
	ldr	r0, .L28+48
	bl	printf
	mov	r3, #0
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC10
	.word	274877907
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1093567616
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
