	.file	"49788.c"
	.intel_syntax noprefix
	.text
	.globl	pathpip
	.bss
	.align 8
	.type	pathpip, @object
	.size	pathpip, 8
pathpip:
	.zero	8
	.globl	pid1
	.align 4
	.type	pid1, @object
	.size	pid1, 4
pid1:
	.zero	4
	.globl	pid2
	.align 4
	.type	pid2, @object
	.size	pid2, 4
pid2:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: [pipe name] [exe1] / [exe2]\n"
.LC1:
	.string	"\t exe1: write on the pipe\n"
.LC2:
	.string	"\t exe2: read on the pipe\n"
	.align 8
.LC3:
	.string	"the pipe is deleted afterr the exceution\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rdx, QWORD PTR stderr[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
	.align 8
.LC4:
	.string	"[mypipe] SIGTERM received [%d]\n"
.LC5:
	.string	"[mypipe] waiting\n"
	.text
	.globl	finish
	.type	finish, @function
finish:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR pid2[rip]
	mov	esi, 2
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR pid2[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR pid1[rip]
	mov	esi, 2
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR pid1[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	rax, QWORD PTR pathpip[rip]
	mov	rdi, rax
	call	remove@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	finish, .-finish
	.section	.rodata
.LC6:
	.string	"Eirballoon"
.LC7:
	.string	"/build/bin/pip"
.LC8:
	.string	"/proc/self/exe"
.LC9:
	.string	"error"
.LC10:
	.string	"creation of pipe directory"
	.text
	.globl	getpathpip
	.type	getpathpip, @function
getpathpip:
.LFB8:
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 232
	.cfi_offset 3, -24
	mov	QWORD PTR -4328[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4308[rbp], 0
	mov	DWORD PTR -4300[rbp], 0
	lea	rax, .LC6[rip]
	mov	QWORD PTR -4296[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -4288[rbp], rax
	lea	rax, -4128[rbp]
	mov	edx, 4096
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	call	readlink@PLT
	jmp	.L4
.L7:
	mov	DWORD PTR -4304[rbp], 0
	nop
.L5:
	mov	eax, DWORD PTR -4308[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4308[rbp], edx
	cdqe
	movzx	ecx, BYTE PTR -4128[rbp+rax]
	mov	eax, DWORD PTR -4304[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4304[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -4296[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	je	.L5
	mov	eax, DWORD PTR -4304[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -4296[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L12
.L4:
	mov	eax, DWORD PTR -4308[rbp]
	cdqe
	movzx	eax, BYTE PTR -4128[rbp+rax]
	test	al, al
	jne	.L7
	jmp	.L6
.L12:
	nop
.L6:
	mov	eax, DWORD PTR -4308[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -4128[rbp+rax]
	test	al, al
	jne	.L8
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -4308[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -4128[rbp+rax], 0
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4300[rbp], eax
	mov	eax, DWORD PTR -4300[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -4288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rbx, rax
	mov	rax, QWORD PTR -4328[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 2
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -4280[rbp], rax
	lea	rdx, -4128[rbp]
	mov	rax, QWORD PTR -4280[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -4288[rbp]
	mov	rax, QWORD PTR -4280[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rdx, -4272[rbp]
	mov	eax, 0
	mov	ecx, 18
	mov	rdi, rdx
	rep stosq
	lea	rdx, -4272[rbp]
	mov	rax, QWORD PTR -4280[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L9
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4280[rbp]
	mov	esi, 448
	mov	rdi, rax
	call	mkdir@PLT
.L9:
	mov	rax, QWORD PTR -4280[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -4280[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	mov	rdx, QWORD PTR -4328[rbp]
	mov	rax, QWORD PTR -4280[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -4280[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getpathpip, .-getpathpip
	.section	.rodata
.LC11:
	.string	"ERROR: Argument <3\n"
.LC12:
	.string	"ERROR: / not found \n"
.LC13:
	.string	"Error on pipe creation: "
	.align 8
.LC14:
	.string	"Previous pipe has been removed\n"
.LC15:
	.string	"[mypipe] start: %s\n"
.LC16:
	.string	"EROOR exec1 :"
.LC17:
	.string	"EROOR exec2 :"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -44[rbp], -1
	mov	DWORD PTR -48[rbp], 0
	cmp	DWORD PTR -68[rbp], 2
	jg	.L14
	lea	rdi, .LC11[rip]
	call	usage
.L14:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -52[rbp], 3
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 1
	jne	.L16
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L16
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR -48[rbp], 1
	jmp	.L17
.L16:
	add	DWORD PTR -52[rbp], 1
.L15:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L18
.L17:
	cmp	DWORD PTR -48[rbp], 0
	jne	.L19
	lea	rdi, .LC12[rip]
	call	usage
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getpathpip
	mov	QWORD PTR pathpip[rip], rax
	mov	rax, QWORD PTR pathpip[rip]
	mov	esi, 384
	mov	rdi, rax
	call	mkfifo@PLT
	test	eax, eax
	je	.L20
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR pathpip[rip]
	mov	rdi, rax
	call	remove@PLT
	mov	rax, QWORD PTR pathpip[rip]
	mov	esi, 384
	mov	rdi, rax
	call	mkfifo@PLT
.L20:
	call	fork@PLT
	mov	DWORD PTR pid1[rip], eax
	mov	eax, DWORD PTR pid1[rip]
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	call	fork@PLT
	mov	DWORD PTR pid2[rip], eax
	mov	eax, DWORD PTR pid2[rip]
	test	eax, eax
	jne	.L22
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	lea	rsi, finish[rip]
	mov	edi, 15
	call	signal@PLT
	lea	rsi, finish[rip]
	mov	edi, 2
	call	signal@PLT
	mov	edi, 0
	call	wait@PLT
	mov	edi, 0
	call	wait@PLT
	mov	rax, QWORD PTR pathpip[rip]
	mov	rdi, rax
	call	remove@PLT
	mov	rax, QWORD PTR pathpip[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"49788.c"
	.text
	.comm	pathpip,4,4
	.comm	pid1,4,4
	.comm	pid2,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: [pipe name] [exe1] / [exe2]\012\000"
	.align	2
.LC1:
	.ascii	"\011 exe1: write on the pipe\012\000"
	.align	2
.LC2:
	.ascii	"\011 exe2: read on the pipe\012\000"
	.align	2
.LC3:
	.ascii	"the pipe is deleted afterr the exceution\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ 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, .L2
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	fputs
	ldr	r3, .L2+4
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L2+8
	bl	fwrite
	ldr	r3, .L2+4
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L2+12
	bl	fwrite
	ldr	r3, .L2+4
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L2+16
	bl	fwrite
	ldr	r3, .L2+4
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L2+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	stdout
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC4:
	.ascii	"[mypipe] SIGTERM received [%d]\012\000"
	.align	2
.LC5:
	.ascii	"[mypipe] waiting\012\000"
	.text
	.align	2
	.global	finish
	.syntax unified
	.arm
	.fpu softvfp
	.type	finish, %function
finish:
	@ 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, .L5
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L5+4
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L5+8
	bl	fwrite
	ldr	r3, .L5+12
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	kill
	ldr	r3, .L5+12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	ldr	r3, .L5+16
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	kill
	ldr	r3, .L5+16
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	ldr	r3, .L5+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	remove
	mov	r0, #0
	bl	exit
.L6:
	.align	2
.L5:
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	pid2
	.word	pid1
	.word	pathpip
	.size	finish, .-finish
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Eirballoon\000"
	.align	2
.LC7:
	.ascii	"/build/bin/pip\000"
	.align	2
.LC8:
	.ascii	"/proc/self/exe\000"
	.align	2
.LC9:
	.ascii	"error\000"
	.align	2
.LC10:
	.ascii	"creation of pipe directory\000"
	.align	2
.LC11:
	.ascii	"/\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getpathpip
	.syntax unified
	.arm
	.fpu softvfp
	.type	getpathpip, %function
getpathpip:
	@ args = 0, pretend = 0, frame = 4224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4224
	sub	sp, sp, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-124]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-120]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-112]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L17+4
	str	r3, [r2, #-108]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L17+8
	str	r3, [r2, #-104]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, .L17+12
	bl	readlink
	b	.L8
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-116]
	nop
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-120]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r2, [r3, #-4]	@ zero_extendqisi2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	add	r1, r3, #1
	str	r1, [r0, #-116]
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L9
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-108]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	b	.L10
.L16:
	nop
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L17+16
	bl	puts
	mov	r0, #1
	bl	exit
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-112]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-104]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	add	r4, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-124]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [r4, #-100]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-100]
	bl	strcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-104]
	ldr	r0, [r3, #-100]
	bl	strcat
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #96
	mov	r2, #88
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #32
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-100]
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L17+20
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #448
	ldr	r0, [r3, #-100]
	bl	mkdir
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-100]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	add	r3, r3, r2
	ldr	r2, .L17+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-124]
	ldr	r0, [r3, #-100]
	bl	strcat
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC12
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	getpathpip, .-getpathpip
	.section	.rodata
	.align	2
.LC13:
	.ascii	"ERROR: Argument <3\012\000"
	.align	2
.LC14:
	.ascii	"ERROR: / not found \012\000"
	.align	2
.LC15:
	.ascii	"Error on pipe creation: \000"
	.align	2
.LC16:
	.ascii	"Previous pipe has been removed\012\000"
	.align	2
.LC17:
	.ascii	"[mypipe] start: %s\012\000"
	.align	2
.LC18:
	.ascii	"EROOR exec1 :\000"
	.align	2
.LC19:
	.ascii	"EROOR exec2 :\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mvn	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bgt	.L20
	ldr	r0, .L30
	bl	usage
.L20:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	str	r3, [fp, #-8]
	mov	r3, #3
	str	r3, [fp, #-36]
	b	.L21
.L24:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #1
	bne	.L22
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L22
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L23
.L22:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L21:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L24
.L23:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L30+4
	bl	usage
.L25:
	ldr	r0, [fp, #-16]
	bl	getpathpip
	mov	r3, r0
	ldr	r2, .L30+8
	str	r3, [r2]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	mov	r1, #384
	mov	r0, r3
	bl	mkfifo
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L30+12
	bl	perror
	ldr	r3, .L30+16
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L30+20
	bl	fwrite
	ldr	r3, .L30+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	remove
	ldr	r3, .L30+8
	ldr	r3, [r3]
	mov	r1, #384
	mov	r0, r3
	bl	mkfifo
.L26:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L30+24
	str	r2, [r3]
	ldr	r3, .L30+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L27
	ldr	r1, [fp, #-12]
	ldr	r0, .L30+28
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	execv
	ldr	r0, .L30+32
	bl	perror
	mov	r0, #1
	bl	exit
.L27:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L30+36
	str	r2, [r3]
	ldr	r3, .L30+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L28
	ldr	r1, [fp, #-28]
	ldr	r0, .L30+28
	bl	printf
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	execv
	ldr	r0, .L30+40
	bl	perror
	mov	r0, #1
	bl	exit
.L28:
	ldr	r1, .L30+44
	mov	r0, #15
	bl	signal
	ldr	r1, .L30+44
	mov	r0, #2
	bl	signal
	mov	r0, #0
	bl	wait
	mov	r0, #0
	bl	wait
	ldr	r3, .L30+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	remove
	ldr	r3, .L30+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC13
	.word	.LC14
	.word	pathpip
	.word	.LC15
	.word	stderr
	.word	.LC16
	.word	pid1
	.word	.LC17
	.word	.LC18
	.word	pid2
	.word	.LC19
	.word	finish
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
