	.file	"48460.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"|\r\n"
.LC1:
	.string	"|"
	.text
	.globl	split_pipes
	.type	split_pipes, @function
split_pipes:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
.L2:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	split_pipes, .-split_pipes
	.section	.rodata
.LC2:
	.string	" \t\n"
.LC3:
	.string	"\t\targ %02d: %s\n"
.LC4:
	.string	"fork"
.LC5:
	.string	"Parent Process: PID=%d \n"
	.align 8
.LC6:
	.string	"Child Process: PID=%d, PPID=%d \n"
.LC7:
	.string	">"
.LC8:
	.string	"No output file specified"
.LC9:
	.string	"COMMAND NOT FOUND\n"
	.text
	.globl	create_process
	.type	create_process, @function
create_process:
.LFB7:
	.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, 904
	.cfi_offset 3, -24
	mov	QWORD PTR -888[rbp], rdi
	mov	QWORD PTR -896[rbp], rsi
	mov	DWORD PTR -900[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -880[rbp], 0
	mov	rax, QWORD PTR -888[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -856[rbp], rax
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -880[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -880[rbp], edx
	cdqe
	mov	rdx, QWORD PTR -856[rbp]
	mov	QWORD PTR -832[rbp+rax*8], rdx
	lea	rsi, .LC2[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -856[rbp], rax
.L6:
	cmp	QWORD PTR -856[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -880[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -880[rbp], edx
	cdqe
	mov	QWORD PTR -832[rbp+rax*8], 0
	mov	DWORD PTR -876[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -876[rbp]
	cdqe
	mov	rcx, QWORD PTR -832[rbp+rax*8]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -876[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -876[rbp], 1
.L8:
	mov	eax, DWORD PTR -876[rbp]
	cdqe
	mov	rax, QWORD PTR -832[rbp+rax*8]
	test	rax, rax
	jne	.L9
	call	fork@PLT
	mov	DWORD PTR -864[rbp], eax
	cmp	DWORD PTR -864[rbp], -1
	jne	.L10
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	cmp	DWORD PTR -864[rbp], 0
	je	.L11
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -864[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L25
	jmp	.L26
.L11:
	mov	DWORD PTR -868[rbp], 0
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -848[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	signal@PLT
	mov	rax, QWORD PTR -840[rbp]
	mov	rsi, rax
	mov	edi, 15
	call	signal@PLT
	jmp	.L13
.L23:
	mov	eax, DWORD PTR -868[rbp]
	cdqe
	mov	rax, QWORD PTR -832[rbp+rax*8]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR -868[rbp]
	add	eax, 1
	cdqe
	mov	rax, QWORD PTR -832[rbp+rax*8]
	test	rax, rax
	je	.L15
	mov	eax, DWORD PTR -868[rbp]
	add	eax, 1
	cdqe
	mov	rax, QWORD PTR -832[rbp+rax*8]
	mov	edx, 384
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -860[rbp], eax
	mov	eax, DWORD PTR -860[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	jmp	.L16
.L15:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	mov	eax, DWORD PTR -868[rbp]
	cdqe
	mov	QWORD PTR -832[rbp+rax*8], 0
.L14:
	add	DWORD PTR -868[rbp], 1
	mov	eax, DWORD PTR -900[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -896[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L17
	mov	eax, DWORD PTR -900[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -896[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
.L17:
	mov	eax, DWORD PTR -900[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -896[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	js	.L18
	mov	eax, DWORD PTR -900[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -896[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
.L18:
	mov	DWORD PTR -872[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -872[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -896[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L20
	mov	eax, DWORD PTR -872[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -896[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
.L20:
	mov	eax, DWORD PTR -872[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -896[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	js	.L21
	mov	eax, DWORD PTR -872[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -896[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	close@PLT
.L21:
	add	DWORD PTR -872[rbp], 1
.L19:
	cmp	DWORD PTR -872[rbp], 63
	jle	.L22
.L13:
	mov	eax, DWORD PTR -868[rbp]
	cdqe
	mov	rax, QWORD PTR -832[rbp+rax*8]
	test	rax, rax
	jne	.L23
	mov	rax, QWORD PTR -832[rbp]
	lea	rdx, -832[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	edi, 404
	call	exit@PLT
.L26:
	call	__stack_chk_fail@PLT
.L25:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_process, .-create_process
	.section	.rodata
.LC10:
	.string	"\n%s:#-> "
.LC11:
	.string	"close"
.LC12:
	.string	"Line %d\n"
.LC13:
	.string	"\tpart %02d: %s\n"
	.align 8
.LC14:
	.string	"Child %d with PID : %d terminated :  exit code=%d\n"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1344
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -9532[rbp], 0
.L41:
	call	getlogin@PLT
	mov	QWORD PTR -9520[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -9520[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -8208[rbp]
	mov	esi, 8192
	mov	rdi, rax
	call	fgets@PLT
	mov	esi, 1
	mov	edi, 2
	call	signal@PLT
	mov	QWORD PTR -9512[rbp], rax
	mov	esi, 1
	mov	edi, 15
	call	signal@PLT
	mov	QWORD PTR -9504[rbp], rax
	lea	rdx, -8720[rbp]
	lea	rax, -8208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	split_pipes
	mov	DWORD PTR -9524[rbp], eax
	lea	rax, -8208[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L28
	mov	edi, 1
	call	exit@PLT
.L28:
	mov	DWORD PTR -9528[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -9528[rbp]
	cdqe
	mov	DWORD PTR -9232[rbp+rax*8], -1
	mov	eax, DWORD PTR -9528[rbp]
	cdqe
	mov	DWORD PTR -9228[rbp+rax*8], -1
	add	DWORD PTR -9528[rbp], 1
.L29:
	cmp	DWORD PTR -9528[rbp], 63
	jle	.L30
	add	DWORD PTR -9532[rbp], 1
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -9532[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -9528[rbp], 0
	jmp	.L31
.L32:
	lea	rax, -9496[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	edx, DWORD PTR -9492[rbp]
	mov	eax, DWORD PTR -9528[rbp]
	cdqe
	mov	DWORD PTR -9228[rbp+rax*8], edx
	mov	eax, DWORD PTR -9528[rbp]
	add	eax, 1
	mov	edx, DWORD PTR -9496[rbp]
	cdqe
	mov	DWORD PTR -9232[rbp+rax*8], edx
	add	DWORD PTR -9528[rbp], 1
.L31:
	mov	eax, DWORD PTR -9524[rbp]
	sub	eax, 1
	cmp	DWORD PTR -9528[rbp], eax
	jl	.L32
	mov	DWORD PTR -9528[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -9528[rbp]
	cdqe
	mov	rcx, QWORD PTR -8720[rbp+rax*8]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -9528[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -9528[rbp]
	cdqe
	mov	rax, QWORD PTR -8720[rbp+rax*8]
	mov	edx, DWORD PTR -9528[rbp]
	lea	rcx, -9232[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	create_process
	mov	edx, DWORD PTR -9528[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -9488[rbp+rdx*4], eax
	add	DWORD PTR -9528[rbp], 1
.L33:
	mov	eax, DWORD PTR -9528[rbp]
	cmp	eax, DWORD PTR -9524[rbp]
	jl	.L34
	mov	DWORD PTR -9528[rbp], 0
	jmp	.L35
.L38:
	mov	eax, DWORD PTR -9528[rbp]
	cdqe
	mov	eax, DWORD PTR -9232[rbp+rax*8]
	test	eax, eax
	js	.L36
	mov	eax, DWORD PTR -9528[rbp]
	cdqe
	mov	eax, DWORD PTR -9232[rbp+rax*8]
	mov	edi, eax
	call	close@PLT
.L36:
	mov	eax, DWORD PTR -9528[rbp]
	cdqe
	mov	eax, DWORD PTR -9228[rbp+rax*8]
	test	eax, eax
	js	.L37
	mov	eax, DWORD PTR -9528[rbp]
	cdqe
	mov	eax, DWORD PTR -9228[rbp+rax*8]
	mov	edi, eax
	call	close@PLT
.L37:
	add	DWORD PTR -9528[rbp], 1
.L35:
	cmp	DWORD PTR -9528[rbp], 63
	jle	.L38
	mov	DWORD PTR -9528[rbp], 0
	jmp	.L39
.L40:
	mov	eax, DWORD PTR -9528[rbp]
	cdqe
	mov	eax, DWORD PTR -9488[rbp+rax*4]
	lea	rcx, -9536[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -9536[rbp]
	sar	eax, 8
	mov	esi, eax
	mov	eax, DWORD PTR -9528[rbp]
	cdqe
	mov	ecx, DWORD PTR -9488[rbp+rax*4]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -9528[rbp]
	mov	r8d, esi
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -9528[rbp], 1
.L39:
	mov	eax, DWORD PTR -9528[rbp]
	cmp	eax, DWORD PTR -9524[rbp]
	jl	.L40
	jmp	.L41
	.cfi_endproc
.LFE8:
	.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	"48460.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"|\015\012\000"
	.align	2
.LC1:
	.ascii	"|\000"
	.text
	.align	2
	.global	split_pipes
	.syntax unified
	.arm
	.fpu softvfp
	.type	split_pipes, %function
split_pipes:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, .L5
	ldr	r0, [fp, #-16]
	bl	strtok
	str	r0, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r1, .L5+4
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.size	split_pipes, .-split_pipes
	.section	.rodata
	.align	2
.LC2:
	.ascii	" \011\012\000"
	.align	2
.LC3:
	.ascii	"\011\011arg %02d: %s\012\000"
	.align	2
.LC4:
	.ascii	"fork\000"
	.align	2
.LC5:
	.ascii	"Parent Process: PID=%d \012\000"
	.align	2
.LC6:
	.ascii	"Child Process: PID=%d, PPID=%d \012\000"
	.align	2
.LC7:
	.ascii	">\000"
	.align	2
.LC8:
	.ascii	"No output file specified\000"
	.align	2
.LC9:
	.ascii	"COMMAND NOT FOUND\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_process, %function
create_process:
	@ args = 0, pretend = 0, frame = 456
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #460
	str	r0, [fp, #-456]
	str	r1, [fp, #-460]
	str	r2, [fp, #-464]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-452]
	ldr	r1, .L29+4
	ldr	r0, [fp, #-456]
	bl	strtok
	str	r0, [fp, #-444]
	b	.L8
.L9:
	ldr	r3, [fp, #-452]
	add	r2, r3, #1
	str	r2, [fp, #-452]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [fp, #-444]
	str	r2, [r3, #-404]
	ldr	r1, .L29+4
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-444]
.L8:
	ldr	r3, [fp, #-444]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-452]
	add	r2, r3, #1
	str	r2, [fp, #-452]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-404]
	mov	r3, #0
	str	r3, [fp, #-448]
	b	.L10
.L11:
	ldr	r3, .L29+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-448]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	ldr	r2, [fp, #-448]
	ldr	r1, .L29+12
	bl	fprintf
	ldr	r3, [fp, #-448]
	add	r3, r3, #1
	str	r3, [fp, #-448]
.L10:
	ldr	r3, [fp, #-448]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	cmp	r3, #0
	bne	.L11
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-432]
	ldr	r3, [fp, #-432]
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L29+16
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-432]
	cmp	r3, #0
	beq	.L13
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L29+20
	bl	printf
	ldr	r3, [fp, #-432]
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	b	.L28
.L13:
	mov	r3, #0
	str	r3, [fp, #-436]
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L29+24
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-428]
	mov	r0, #2
	bl	signal
	ldr	r1, [fp, #-424]
	mov	r0, #15
	bl	signal
	b	.L15
.L25:
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	ldr	r1, .L29+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r2, #384
	ldr	r1, .L29+32
	mov	r0, r3
	bl	open
	str	r0, [fp, #-420]
	mov	r1, #1
	ldr	r0, [fp, #-420]
	bl	dup2
	b	.L18
.L17:
	ldr	r0, .L29+36
	bl	printf
.L18:
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-404]
.L16:
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	str	r3, [fp, #-436]
	ldr	r3, [fp, #-464]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L19
	ldr	r3, [fp, #-464]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
.L19:
	ldr	r3, [fp, #-464]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	blt	.L20
	ldr	r3, [fp, #-464]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
.L20:
	mov	r3, #0
	str	r3, [fp, #-440]
	b	.L21
.L24:
	ldr	r3, [fp, #-440]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L22
	ldr	r3, [fp, #-440]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
.L22:
	ldr	r3, [fp, #-440]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	blt	.L23
	ldr	r3, [fp, #-440]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-460]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
.L23:
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
.L21:
	ldr	r3, [fp, #-440]
	cmp	r3, #63
	ble	.L24
.L15:
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-416]
	sub	r2, fp, #416
	mov	r1, r2
	mov	r0, r3
	bl	execvp
	ldr	r3, .L29+8
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L29+40
	bl	fwrite
	mov	r0, #404
	bl	exit
.L28:
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC10
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	577
	.word	.LC8
	.word	.LC9
	.size	create_process, .-create_process
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\012%s:#-> \000"
	.align	2
.LC12:
	.ascii	"close\000"
	.align	2
.LC13:
	.ascii	"Line %d\012\000"
	.align	2
.LC14:
	.ascii	"\011part %02d: %s\012\000"
	.align	2
.LC15:
	.ascii	"Child %d with PID : %d terminated :  exit code=%d\012"
	.ascii	"\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 9256
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #9216
	sub	sp, sp, #52
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1060]
.L45:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	bl	getlogin
	str	r0, [r4, #-1052]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-1052]
	ldr	r1, .L47+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L47+12
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #8192
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, #1
	mov	r0, #2
	bl	signal
	str	r0, [r4, #-1048]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, #1
	mov	r0, #15
	bl	signal
	str	r0, [r4, #-1044]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #8960
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	split_pipes
	str	r0, [r4, #-1040]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L47+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	mov	r0, #1
	bl	exit
.L32:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1056]
	b	.L33
.L34:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #-516]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #-512]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	add	r3, r3, #1
	str	r3, [r2, #-1056]
.L33:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	cmp	r3, #63
	ble	.L34
	ldr	r3, .L47+20
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1060]
	add	r3, r3, #1
	str	r3, [r2, #-1060]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-1060]
	ldr	r1, .L47+24
	bl	fprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1056]
	b	.L35
.L36:
	sub	r3, fp, #9216
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	pipe
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-1032]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #-512]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	add	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-1036]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #-516]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	add	r3, r3, #1
	str	r3, [r2, #-1056]
.L35:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1040]
	sub	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-1056]
	cmp	r2, r3
	blt	.L36
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1056]
	b	.L37
.L38:
	ldr	r3, .L47+20
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-772]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-1056]
	ldr	r1, .L47+28
	bl	fprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3, #-772]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8704
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-1056]
	mov	r1, r3
	bl	create_process
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-1028]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	add	r3, r3, #1
	str	r3, [r2, #-1056]
.L37:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-1056]
	ldr	r3, [r3, #-1040]
	cmp	r2, r3
	blt	.L38
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1056]
	b	.L39
.L42:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #-516]
	cmp	r3, #0
	blt	.L40
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #-516]
	mov	r0, r3
	bl	close
.L40:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #-512]
	cmp	r3, #0
	blt	.L41
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #-512]
	mov	r0, r3
	bl	close
.L41:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	add	r3, r3, #1
	str	r3, [r2, #-1056]
.L39:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	cmp	r3, #63
	ble	.L42
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1056]
	b	.L43
.L44:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3, #-1028]
	sub	r3, fp, #9216
	sub	r3, r3, #12
	sub	r3, r3, #40
	mov	r2, #0
	mov	r1, r3
	bl	waitpid
	ldr	r3, .L47+20
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	asr	r3, r3, #8
	sub	r1, fp, #8192
	sub	r1, r1, #12
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [r1, #-1056]
	ldr	r1, .L47+32
	bl	fprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1056]
	add	r3, r3, #1
	str	r3, [r2, #-1056]
.L43:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-1056]
	ldr	r3, [r3, #-1040]
	cmp	r2, r3
	blt	.L44
	b	.L45
.L48:
	.align	2
.L47:
	.word	.LC16
	.word	stdout
	.word	.LC11
	.word	stdin
	.word	.LC12
	.word	stderr
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
