	.file	"179831141.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/tmp/fifo1"
.LC1:
	.string	"Error while creating a FIFO1"
.LC2:
	.string	"/tmp/fifo2"
.LC3:
	.string	"Error while creating a FIFO2"
	.align 8
.LC4:
	.string	"Error while creating a process"
	.align 8
.LC5:
	.string	"Error while opening a FIFO to write"
.LC6:
	.string	"Wrong descriptor to write\n"
.LC7:
	.string	"-ef"
.LC8:
	.string	"ps"
.LC9:
	.string	"Error while executing ls"
	.align 8
.LC10:
	.string	"Error while opening a fifo to read"
.LC11:
	.string	"Wrong descriptor to read\n"
.LC12:
	.string	" "
.LC13:
	.string	"-s"
.LC14:
	.string	"tr"
.LC15:
	.string	"Error while executing tr"
.LC16:
	.string	"-d "
.LC17:
	.string	"-f2"
.LC18:
	.string	"cut"
.LC19:
	.string	"Error while executing cut"
	.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
	mov	esi, 384
	lea	rdi, .LC0[rip]
	call	mkfifo@PLT
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	esi, 384
	lea	rdi, .LC2[rip]
	call	mkfifo@PLT
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	call	fork@PLT
	cmp	eax, -1
	je	.L4
	test	eax, eax
	je	.L5
	jmp	.L16
.L4:
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	edi, 1
	call	close@PLT
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L7
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	cmp	DWORD PTR -4[rbp], 1
	je	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	ecx, 0
	lea	rdx, .LC7[rip]
	lea	rsi, .LC8[rip]
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	execlp@PLT
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	call	fork@PLT
	cmp	eax, -1
	je	.L9
	test	eax, eax
	je	.L10
	jmp	.L17
.L9:
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	edi, 0
	call	close@PLT
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	edi, 1
	call	close@PLT
	mov	esi, 1
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	cmp	DWORD PTR -4[rbp], -1
	jne	.L12
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	cmp	DWORD PTR -4[rbp], 0
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	r8d, 0
	lea	rcx, .LC12[rip]
	lea	rdx, .LC13[rip]
	lea	rsi, .LC14[rip]
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	execlp@PLT
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	edi, 0
	call	close@PLT
	mov	esi, 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L14
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	cmp	DWORD PTR -4[rbp], 0
	je	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	r8d, 0
	lea	rcx, .LC16[rip]
	lea	rdx, .LC17[rip]
	lea	rsi, .LC18[rip]
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	execlp@PLT
	lea	rdi, .LC19[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.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	"179831141.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp/fifo1\000"
	.align	2
.LC1:
	.ascii	"Error while creating a FIFO1\000"
	.align	2
.LC2:
	.ascii	"/tmp/fifo2\000"
	.align	2
.LC3:
	.ascii	"Error while creating a FIFO2\000"
	.align	2
.LC4:
	.ascii	"Error while creating a process\000"
	.align	2
.LC5:
	.ascii	"Error while opening a FIFO to write\000"
	.align	2
.LC6:
	.ascii	"Wrong descriptor to write\012\000"
	.align	2
.LC7:
	.ascii	"-ef\000"
	.align	2
.LC8:
	.ascii	"ps\000"
	.align	2
.LC9:
	.ascii	"Error while executing ls\000"
	.align	2
.LC10:
	.ascii	"Error while opening a fifo to read\000"
	.align	2
.LC11:
	.ascii	"Wrong descriptor to read\012\000"
	.align	2
.LC12:
	.ascii	" \000"
	.align	2
.LC13:
	.ascii	"-s\000"
	.align	2
.LC14:
	.ascii	"tr\000"
	.align	2
.LC15:
	.ascii	"Error while executing tr\000"
	.align	2
.LC16:
	.ascii	"-d \000"
	.align	2
.LC17:
	.ascii	"-f2\000"
	.align	2
.LC18:
	.ascii	"cut\000"
	.align	2
.LC19:
	.ascii	"Error while executing cut\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, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r1, #384
	ldr	r0, .L18
	bl	mkfifo
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L18+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	mov	r1, #384
	ldr	r0, .L18+8
	bl	mkfifo
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L18+12
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	bl	fork
	mov	r3, r0
	cmn	r3, #1
	beq	.L4
	cmp	r3, #0
	beq	.L5
	b	.L16
.L4:
	ldr	r0, .L18+16
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	mov	r0, #1
	bl	close
	mov	r1, #1
	ldr	r0, .L18
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L18+20
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L8
	ldr	r3, .L18+24
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L18+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L8:
	mov	r3, #0
	ldr	r2, .L18+32
	ldr	r1, .L18+36
	ldr	r0, .L18+36
	bl	execlp
	ldr	r0, .L18+40
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	bl	fork
	mov	r3, r0
	cmn	r3, #1
	beq	.L9
	cmp	r3, #0
	beq	.L10
	b	.L17
.L9:
	ldr	r0, .L18+16
	bl	perror
	mov	r0, #1
	bl	exit
.L10:
	mov	r0, #0
	bl	close
	mov	r1, #0
	ldr	r0, .L18
	bl	open
	str	r0, [fp, #-8]
	mov	r0, #1
	bl	close
	mov	r1, #1
	ldr	r0, .L18+8
	bl	open
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L18+44
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L18+24
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L18+48
	bl	fwrite
	mov	r0, #1
	bl	exit
.L13:
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L18+52
	ldr	r2, .L18+56
	ldr	r1, .L18+60
	ldr	r0, .L18+60
	bl	execlp
	ldr	r0, .L18+64
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	mov	r0, #0
	bl	close
	mov	r1, #0
	ldr	r0, .L18+8
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L14
	ldr	r0, .L18+44
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L18+24
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L18+48
	bl	fwrite
	mov	r0, #1
	bl	exit
.L15:
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L18+68
	ldr	r2, .L18+72
	ldr	r1, .L18+76
	ldr	r0, .L18+76
	bl	execlp
	ldr	r0, .L18+80
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
