	.file	"287219.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"tmp/myfifocliente"
	.align 8
.LC1:
	.string	"Erro ao abrir o pipe do cliente"
.LC2:
	.string	"status"
.LC3:
	.string	"transform"
.LC4:
	.string	"tmp/myfifoserver"
	.align 8
.LC5:
	.string	"Erro ao abrir o pipe do server"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1856
	mov	DWORD PTR -10036[rbp], edi
	mov	QWORD PTR -10048[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -10028[rbp], eax
	cmp	DWORD PTR -10028[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L11
.L2:
	mov	rax, QWORD PTR -10048[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR -10048[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -10048[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -10028[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -10028[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -10048[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	BYTE PTR -5008[rbp], 0
	mov	DWORD PTR -10032[rbp], 1
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -10032[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -10048[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -10016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -10016[rbp]
	lea	rax, -5008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -5008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -5008[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 32
	add	DWORD PTR -10032[rbp], 1
.L6:
	mov	eax, DWORD PTR -10032[rbp]
	cmp	eax, DWORD PTR -10036[rbp]
	jl	.L7
	lea	rax, -5008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -5008[rbp]
	mov	eax, DWORD PTR -10028[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -10028[rbp]
	mov	edi, eax
	call	close@PLT
.L5:
	mov	esi, 0
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -10024[rbp], eax
	cmp	DWORD PTR -10024[rbp], 0
	jns	.L8
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L11
.L8:
	mov	DWORD PTR -10020[rbp], 0
.L10:
	lea	rcx, -5008[rbp]
	mov	eax, DWORD PTR -10024[rbp]
	mov	edx, 5000
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -10020[rbp], eax
	cmp	DWORD PTR -10020[rbp], 0
	jle	.L10
	mov	eax, DWORD PTR -10020[rbp]
	movsx	rdx, eax
	lea	rax, -5008[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	jmp	.L10
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"287219.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"tmp/myfifocliente\000"
	.align	2
.LC1:
	.ascii	"Erro ao abrir o pipe do cliente\000"
	.align	2
.LC2:
	.ascii	"status\000"
	.align	2
.LC3:
	.ascii	"transform\000"
	.align	2
.LC4:
	.ascii	" \000"
	.align	2
.LC5:
	.ascii	"tmp/myfifoserver\000"
	.align	2
.LC6:
	.ascii	"Erro ao abrir o pipe do server\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 10032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #9984
	sub	sp, sp, #52
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-1836]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-1840]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, #1
	ldr	r0, .L13+4
	bl	open
	str	r0, [r4, #-1824]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1824]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L13+8
	bl	perror
	mvn	r3, #0
	b	.L11
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1840]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L13+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1840]
	add	r3, r3, #4
	ldr	r4, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1840]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [r0, #-1824]
	bl	write
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-1824]
	bl	close
	b	.L5
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1840]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L13+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-908]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-1828]
	b	.L6
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1828]
	lsl	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-1840]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r2
	mov	r0, r3
	bl	sprintf
	sub	r2, fp, #9984
	sub	r2, r2, #12
	sub	r2, r2, #20
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	add	r3, r3, r2
	ldr	r2, .L13+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1828]
	add	r3, r3, #1
	str	r3, [r2, #-1828]
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-1828]
	ldr	r3, [r3, #-1836]
	cmp	r2, r3
	blt	.L7
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-1824]
	bl	write
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-1824]
	bl	close
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, #0
	ldr	r0, .L13+24
	bl	open
	str	r0, [r4, #-1820]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1820]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L13+28
	bl	perror
	mvn	r3, #0
	b	.L11
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1816]
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	ldr	r2, .L13+32
	mov	r1, r3
	ldr	r0, [r0, #-1820]
	bl	read
	str	r0, [r4, #-1816]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1816]
	cmp	r3, #0
	ble	.L10
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-1816]
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, #1
	bl	write
	b	.L10
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	5000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
