	.file	"623230.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"pipe1 running"
.LC1:
	.string	"PARENT: pid=%d\n"
.LC2:
	.string	"PARENT: fork"
.LC3:
	.string	"CHILD: pid=%d; ppid=%d\n"
.LC4:
	.string	"Hello, parent!"
.LC5:
	.string	"PARENT: pid=%d; child=%d\n"
	.align 8
.LC6:
	.string	"PARENT: message from child is \"%s\"\n"
	.align 8
.LC7:
	.string	"PARENT: child process %d terminated with %d\n"
.LC8:
	.string	"PARENT: child returned %d\n"
	.align 8
.LC9:
	.string	"PARENT: child terminated abnormally"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pipe@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	call	fork@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jne	.L2
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 15
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L3
.L2:
	call	getpid@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -48[rbp]
	lea	rcx, -39[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -39[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -56[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -56[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L4:
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L3:
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"623230.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pipe1 running\000"
	.align	2
.LC1:
	.ascii	"PARENT: pid=%d\012\000"
	.align	2
.LC2:
	.ascii	"PARENT: fork\000"
	.align	2
.LC3:
	.ascii	"CHILD: pid=%d; ppid=%d\012\000"
	.align	2
.LC4:
	.ascii	"Hello, parent!\000"
	.align	2
.LC5:
	.ascii	"PARENT: pid=%d; child=%d\012\000"
	.align	2
.LC6:
	.ascii	"PARENT: message from child is \"%s\"\012\000"
	.align	2
.LC7:
	.ascii	"PARENT: child process %d terminated with %d\012\000"
	.align	2
.LC8:
	.ascii	"PARENT: child returned %d\012\000"
	.align	2
.LC9:
	.ascii	"PARENT: child terminated abnormally\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L8+4
	bl	puts
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+8
	bl	printf
	sub	r3, fp, #40
	mov	r0, r3
	bl	pipe
	ldr	r0, .L8+12
	bl	puts
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L2
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L8+16
	bl	printf
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-36]
	mov	r2, #15
	ldr	r1, .L8+20
	mov	r0, r3
	bl	write
	b	.L3
.L2:
	bl	getpid
	mov	r3, r0
	ldr	r2, [fp, #-44]
	mov	r1, r3
	ldr	r0, .L8+24
	bl	printf
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-40]
	sub	r1, fp, #32
	mov	r2, #15
	mov	r0, r3
	bl	read
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L8+28
	bl	printf
	sub	r3, fp, #48
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	waitpid
	ldr	r3, [fp, #-48]
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, .L8+32
	bl	printf
	ldr	r3, [fp, #-48]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-48]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L8+36
	bl	printf
	b	.L3
.L4:
	ldr	r0, .L8+40
	bl	puts
.L3:
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
