	.file	"27461.c"
	.intel_syntax noprefix
	.text
	.globl	sum
	.bss
	.align 4
	.type	sum, @object
	.size	sum, 4
sum:
	.zero	4
	.section	.rodata
.LC0:
	.string	"clear"
	.align 8
.LC1:
	.string	"\n --------------------- Calculos PIPE/THREADS --------------------- "
.LC2:
	.string	" 1 - Fatorial "
.LC3:
	.string	" 2 - Sequencia Fibonnaci "
.LC4:
	.string	" 3 - Sair \n "
.LC5:
	.string	"%d"
.LC6:
	.string	" Resultado recebido <- %ld \n"
.LC7:
	.string	"\n Calcular novamente? (y/n) "
.LC8:
	.string	"%s"
.LC9:
	.string	"\n Caracter invalido"
.LC10:
	.string	" \n Fatorial-> "
	.align 8
.LC11:
	.string	" \n Digite a posi\303\247\303\243o da s\303\251rie que deseja mostrar-> "
	.text
	.globl	client
	.type	client, @function
client:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 0
.L11:
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jne	.L2
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 1
	je	.L4
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 2
	jne	.L3
.L4:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -10[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -10[rbp]
	cmp	al, 110
	jne	.L6
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L3
.L6:
	movzx	eax, BYTE PTR -10[rbp]
	cmp	al, 121
	je	.L3
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -28[rbp], 0
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L5
.L3:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 3
	je	.L7
	cmp	eax, 3
	jg	.L8
	cmp	eax, 1
	je	.L9
	cmp	eax, 2
	je	.L10
	jmp	.L8
.L9:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -32[rbp], 1
	jmp	.L8
.L10:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -32[rbp], 2
	jmp	.L8
.L7:
	lea	rdi, .LC0[rip]
	call	system@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 3
	jne	.L11
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	client, .-client
	.section	.rodata
	.align 8
.LC12:
	.string	"\n Fibonacci de um numero negativo nao eh possivel."
	.text
	.globl	server
	.type	server, @function
server:
.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	DWORD PTR -152[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L21:
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -148[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, 1
	je	.L14
	cmp	eax, 2
	je	.L15
	jmp	.L16
.L14:
	mov	DWORD PTR -96[rbp], 1
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	eax, 1
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -84[rbp], eax
	lea	rdx, -96[rbp]
	lea	rax, -136[rbp]
	mov	rcx, rdx
	lea	rdx, fatorial[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rdx, -88[rbp]
	lea	rax, -128[rbp]
	mov	rcx, rdx
	lea	rdx, fatorial[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -128[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rdx, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR -112[rbp]
	imul	rax, rdx
	mov	QWORD PTR -72[rbp], rax
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -76[rbp]
	test	eax, eax
	jns	.L17
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	QWORD PTR -72[rbp], 0
	jmp	.L23
.L17:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	mov	DWORD PTR -140[rbp], 1
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	mov	rdx, rax
	lea	rsi, -64[rbp]
	lea	rax, -104[rbp]
	mov	rcx, rdx
	lea	rdx, runner[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -140[rbp], 1
.L19:
	mov	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -140[rbp], eax
	jle	.L20
	mov	eax, DWORD PTR sum[rip]
	cdqe
	mov	QWORD PTR -72[rbp], rax
.L23:
	nop
.L16:
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L21
	.cfi_endproc
.LFE7:
	.size	server, .-server
	.section	.rodata
.LC13:
	.string	"Erro na chamada PIPE"
.LC14:
	.string	"Erro na chamada FORK"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	js	.L25
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	jns	.L26
.L25:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L26:
	call	fork@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L27
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L27:
	cmp	DWORD PTR -28[rbp], 0
	jle	.L28
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	mov	eax, 0
	call	client
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L28:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	mov	eax, 0
	call	server
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.globl	fatorial
	.type	fatorial, @function
fatorial:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	QWORD PTR -16[rbp], rax
	jmp	.L31
.L32:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	imul	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], edx
.L31:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jg	.L32
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_exit@PLT
	.cfi_endproc
.LFE9:
	.size	fatorial, .-fatorial
	.globl	runner
	.type	runner, @function
runner:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	edi, eax
	call	fibonacci
	mov	DWORD PTR sum[rip], eax
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE10:
	.size	runner, .-runner
	.globl	fibonacci
	.type	fibonacci, @function
fibonacci:
.LFB11:
	.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, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 1
	jg	.L35
	mov	eax, 1
	jmp	.L36
.L35:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	edi, eax
	call	fibonacci
	mov	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 2
	mov	edi, eax
	call	fibonacci
	add	eax, ebx
.L36:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	fibonacci, .-fibonacci
	.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	"27461.c"
	.text
	.comm	sum,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"clear\000"
	.align	2
.LC1:
	.ascii	"\012 --------------------- Calculos PIPE/THREADS --"
	.ascii	"------------------- \000"
	.align	2
.LC2:
	.ascii	" 1 - Fatorial \000"
	.align	2
.LC3:
	.ascii	" 2 - Sequencia Fibonnaci \000"
	.align	2
.LC4:
	.ascii	" 3 - Sair \012 \000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	" Resultado recebido <- %ld \012\000"
	.align	2
.LC7:
	.ascii	"\012 Calcular novamente? (y/n) \000"
	.align	2
.LC8:
	.ascii	"%s\000"
	.align	2
.LC9:
	.ascii	"\012 Caracter invalido\000"
	.align	2
.LC10:
	.ascii	" \012 Fatorial-> \000"
	.align	2
.LC11:
	.ascii	" \012 Digite a posi\303\247\303\243o da s\303\251ri"
	.ascii	"e que deseja mostrar-> \000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	client
	.syntax unified
	.arm
	.fpu softvfp
	.type	client, %function
client:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
.L11:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L13+4
	bl	system
	ldr	r0, .L13+8
	bl	puts
	ldr	r0, .L13+12
	bl	puts
	ldr	r0, .L13+16
	bl	puts
	ldr	r0, .L13+20
	bl	printf
	ldr	r3, .L13+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	b	.L3
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	beq	.L4
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bne	.L3
.L4:
	sub	r3, fp, #24
	mov	r2, #12
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	read
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L13+32
	bl	printf
.L5:
	ldr	r0, .L13+36
	bl	printf
	ldr	r3, .L13+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L13+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L13+44
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L6
	ldr	r3, .L13+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L13+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L3
.L6:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L3
	ldr	r3, .L13+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L13+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, .L13+4
	bl	system
	ldr	r0, .L13+48
	bl	puts
	b	.L5
.L3:
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	beq	.L7
	cmp	r3, #3
	bgt	.L8
	cmp	r3, #1
	beq	.L9
	cmp	r3, #2
	beq	.L10
	b	.L8
.L9:
	ldr	r3, .L13+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L13+4
	bl	system
	ldr	r0, .L13+52
	bl	printf
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L8
.L10:
	ldr	r3, .L13+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L13+4
	bl	system
	ldr	r0, .L13+56
	bl	printf
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	mov	r3, #2
	str	r3, [fp, #-24]
	b	.L8
.L7:
	ldr	r0, .L13+4
	bl	system
	mov	r0, #1
	bl	exit
.L8:
	sub	r3, fp, #24
	mov	r2, #12
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	write
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bne	.L11
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stdin
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	stdout
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	client, .-client
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\012 Fibonacci de um numero negativo nao eh possive"
	.ascii	"l.\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	server
	.syntax unified
	.arm
	.fpu softvfp
	.type	server, %function
server:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L23:
	sub	r3, fp, #56
	mov	r2, #12
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	read
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	beq	.L16
	cmp	r3, #2
	beq	.L17
	b	.L18
.L16:
	mov	r3, #1
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-52]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-52]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-60]
	sub	r3, fp, #72
	sub	r0, fp, #96
	ldr	r2, .L26+4
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #64
	sub	r0, fp, #92
	ldr	r2, .L26+4
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-96]
	sub	r2, fp, #88
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-92]
	sub	r2, fp, #84
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-84]
	mul	r3, r2, r3
	str	r3, [fp, #-48]
	b	.L18
.L17:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L26+8
	bl	system
	ldr	r0, .L26+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L25
.L19:
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	mov	r3, #1
	str	r3, [fp, #-76]
	b	.L21
.L22:
	ldr	r3, [fp, #-76]
	sub	r1, fp, #44
	sub	r0, fp, #80
	ldr	r2, .L26+16
	bl	pthread_create
	ldr	r3, [fp, #-80]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L21:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	ble	.L22
	ldr	r3, .L26+20
	ldr	r3, [r3]
	str	r3, [fp, #-48]
.L25:
	nop
.L18:
	sub	r3, fp, #56
	mov	r2, #12
	mov	r1, r3
	ldr	r0, [fp, #-108]
	bl	write
	b	.L23
.L27:
	.align	2
.L26:
	.word	.LC14
	.word	fatorial
	.word	.LC0
	.word	.LC13
	.word	runner
	.word	sum
	.size	server, .-server
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Erro na chamada PIPE\000"
	.align	2
.LC16:
	.ascii	"Erro na chamada FORK\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	blt	.L29
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L30
.L29:
	ldr	r0, .L34+4
	bl	printf
	mov	r0, #0
	bl	exit
.L30:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L31
	ldr	r0, .L34+8
	bl	printf
	mov	r0, #0
	bl	exit
.L31:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L32
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	client
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	exit
.L32:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	mov	r1, r2
	mov	r0, r3
	bl	server
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	exit
.L35:
	.align	2
.L34:
	.word	.LC17
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.align	2
	.global	fatorial
	.syntax unified
	.arm
	.fpu softvfp
	.type	fatorial, %function
fatorial:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L37
.L38:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	mul	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
.L37:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L38
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	pthread_exit
	.size	fatorial, .-fatorial
	.align	2
	.global	runner
	.syntax unified
	.arm
	.fpu softvfp
	.type	runner, %function
runner:
	@ 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	r3, [fp, #-8]
	mov	r0, r3
	bl	fibonacci
	mov	r3, r0
	ldr	r2, .L40
	str	r3, [r2]
	mov	r0, #0
	bl	pthread_exit
.L41:
	.align	2
.L40:
	.word	sum
	.size	runner, .-runner
	.align	2
	.global	fibonacci
	.syntax unified
	.arm
	.fpu softvfp
	.type	fibonacci, %function
fibonacci:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bgt	.L43
	mov	r3, #1
	b	.L44
.L43:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	fibonacci
	mov	r4, r0
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	mov	r0, r3
	bl	fibonacci
	mov	r3, r0
	add	r3, r4, r3
.L44:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	fibonacci, .-fibonacci
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
