	.file	"109339.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Pipe Failed"
.LC1:
	.string	"Enter the input string:"
.LC2:
	.string	"%s"
.LC3:
	.string	"Fork Failed"
.LC4:
	.string	"concatenated string %s\n"
	.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, 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 7002655835317433703
	mov	QWORD PTR -237[rbp], rax
	mov	DWORD PTR -229[rbp], 1919495779
	mov	BYTE PTR -225[rbp], 0
	lea	rax, -256[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L7
.L2:
	lea	rax, -248[rbp]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L7
.L4:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	fork@PLT
	mov	DWORD PTR -260[rbp], eax
	cmp	DWORD PTR -260[rbp], 0
	jns	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L7
.L5:
	cmp	DWORD PTR -260[rbp], 0
	jle	.L6
	mov	eax, DWORD PTR -256[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -252[rbp]
	lea	rcx, -224[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, 0
	call	wait@PLT
	mov	eax, DWORD PTR -244[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -248[rbp]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -248[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -252[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -256[rbp]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -268[rbp], eax
	mov	DWORD PTR -264[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -268[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -268[rbp], edx
	mov	edx, DWORD PTR -264[rbp]
	movsx	rdx, edx
	movzx	edx, BYTE PTR -237[rbp+rdx]
	cdqe
	mov	BYTE PTR -112[rbp+rax], dl
	add	DWORD PTR -264[rbp], 1
.L8:
	lea	rax, -237[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	DWORD PTR -264[rbp], eax
	jl	.L9
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], 0
	mov	eax, DWORD PTR -256[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -248[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -244[rbp]
	lea	rcx, -112[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -244[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L7:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"109339.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Pipe Failed\000"
	.align	2
.LC2:
	.ascii	"Enter the input string:\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"Fork Failed\000"
	.align	2
.LC5:
	.ascii	"concatenated string %s\012\000"
	.align	2
.LC0:
	.ascii	"guilan.ac.ir\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #252
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L11+4
	sub	ip, fp, #232
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	sub	r3, fp, #248
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r3, .L11+8
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L11+12
	bl	fwrite
	mov	r3, #1
	b	.L7
.L2:
	sub	r3, fp, #240
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L11+8
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L11+12
	bl	fwrite
	mov	r3, #1
	b	.L7
.L4:
	ldr	r0, .L11+16
	bl	puts
	sub	r3, fp, #216
	mov	r1, r3
	ldr	r0, .L11+20
	bl	__isoc99_scanf
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-252]
	ldr	r3, [fp, #-252]
	cmp	r3, #0
	bge	.L5
	ldr	r3, .L11+8
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L11+24
	bl	fwrite
	mov	r3, #1
	b	.L7
.L5:
	ldr	r3, [fp, #-252]
	cmp	r3, #0
	ble	.L6
	ldr	r3, [fp, #-248]
	mov	r0, r3
	bl	close
	ldr	r4, [fp, #-244]
	sub	r3, fp, #216
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #216
	mov	r1, r3
	mov	r0, r4
	bl	write
	mov	r0, #0
	bl	wait
	ldr	r3, [fp, #-236]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-240]
	sub	r1, fp, #116
	mov	r2, #100
	mov	r0, r3
	bl	read
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, .L11+28
	bl	printf
	ldr	r3, [fp, #-240]
	mov	r0, r3
	bl	close
	mov	r3, #0
	b	.L7
.L6:
	ldr	r3, [fp, #-244]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-248]
	sub	r1, fp, #116
	mov	r2, #100
	mov	r0, r3
	bl	read
	sub	r3, fp, #116
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-260]
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L8
.L9:
	ldr	r3, [fp, #-260]
	add	r2, r3, #1
	str	r2, [fp, #-260]
	sub	r1, fp, #232
	ldr	r2, [fp, #-256]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-104]
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L8:
	sub	r3, fp, #232
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-256]
	cmp	r3, r2
	blt	.L9
	sub	r2, fp, #116
	ldr	r3, [fp, #-260]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-248]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-240]
	mov	r0, r3
	bl	close
	ldr	r4, [fp, #-236]
	sub	r3, fp, #116
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #116
	mov	r1, r3
	mov	r0, r4
	bl	write
	ldr	r3, [fp, #-236]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	exit
.L7:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
