	.file	"631503.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter string1 :"
.LC1:
	.string	"%[^\n]%*c"
.LC2:
	.string	"Enter string2 :"
.LC3:
	.string	"Unable to create pipe 1 "
.LC4:
	.string	"Unable to create pipe2 "
.LC5:
	.string	"Concatnated string is : %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, 2096
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -1552[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -2064[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	DWORD PTR -2092[rbp], eax
	cmp	DWORD PTR -2092[rbp], -1
	jne	.L2
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L7
.L2:
	lea	rax, -2072[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	DWORD PTR -2088[rbp], eax
	cmp	DWORD PTR -2088[rbp], -1
	jne	.L4
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L7
.L4:
	call	fork@PLT
	mov	DWORD PTR -2084[rbp], eax
	cmp	DWORD PTR -2084[rbp], 0
	jle	.L5
	mov	eax, DWORD PTR -2076[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -2072[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -2080[rbp]
	lea	rcx, -528[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rdx, -528[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	eax, DWORD PTR -2068[rbp]
	lea	rcx, -1040[rbp]
	mov	edx, 513
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -2080[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -2068[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -2076[rbp]
	lea	rcx, -1552[rbp]
	mov	edx, 513
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -2072[rbp]
	lea	rcx, -528[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	eax, 0
.L7:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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	"631503.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter string1 :\000"
	.align	2
.LC1:
	.ascii	"%[^\012]%*c\000"
	.align	2
.LC2:
	.ascii	"Enter string2 :\000"
	.align	2
.LC3:
	.ascii	"Unable to create pipe 1 \000"
	.align	2
.LC4:
	.ascii	"Unable to create pipe2 \000"
	.align	2
.LC5:
	.ascii	"Concatnated string is : %s\012\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 = 2080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2080
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L9+4
	bl	puts
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L9+8
	bl	__isoc99_scanf
	ldr	r0, .L9+12
	bl	puts
	sub	r3, fp, #1536
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L9+8
	bl	__isoc99_scanf
	sub	r2, fp, #2048
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #2064
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	pipe
	str	r0, [fp, #-2084]
	ldr	r3, [fp, #-2084]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L9+16
	bl	puts
	mov	r3, #1
	b	.L7
.L2:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	pipe
	str	r0, [fp, #-2080]
	ldr	r3, [fp, #-2080]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L9+20
	bl	puts
	mov	r3, #1
	b	.L7
.L4:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-2076]
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-2068]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-2064]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-2072]
	sub	r1, fp, #520
	mov	r2, #512
	mov	r0, r3
	bl	read
	sub	r2, fp, #520
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r0, [fp, #-2060]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L9+24
	mov	r1, r3
	bl	write
	b	.L6
.L5:
	ldr	r3, [fp, #-2072]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-2060]
	mov	r0, r3
	bl	close
	ldr	r0, [fp, #-2068]
	sub	r3, fp, #1536
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L9+24
	mov	r1, r3
	bl	write
	ldr	r3, [fp, #-2064]
	sub	r1, fp, #520
	mov	r2, #512
	mov	r0, r3
	bl	read
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L9+28
	bl	printf
.L6:
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	513
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
