	.file	"118827.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Fork failure"
.LC1:
	.string	"%d"
.LC2:
	.string	"pipe4"
.LC3:
	.string	"%d - wrote %d bytes\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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8212[rbp], 3355185
	lea	rax, -8208[rbp]
	mov	edx, 8193
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -8220[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	jne	.L2
	call	fork@PLT
	mov	DWORD PTR -8228[rbp], eax
	cmp	DWORD PTR -8228[rbp], -1
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	cmp	DWORD PTR -8228[rbp], 0
	jne	.L4
	mov	edx, DWORD PTR -8220[rbp]
	lea	rax, -8208[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -8208[rbp]
	mov	ecx, 0
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	execl@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rax, -8212[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -8216[rbp]
	lea	rcx, -8212[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -8224[rbp], eax
	call	getpid@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -8224[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	edi, 0
	call	exit@PLT
	.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	"118827.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Fork failure\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"pipe4\000"
	.align	2
.LC3:
	.ascii	"%d - wrote %d bytes\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8192
	sub	sp, sp, #32
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L6+4
	str	r3, [r2, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, .L6+8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	bl	fork
	mov	r3, r0
	str	r3, [r4, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L6+12
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L6+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r1, .L6+20
	mov	r0, r3
	bl	sprintf
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r2, r2, #8
	mov	r3, #0
	ldr	r1, .L6+24
	ldr	r0, .L6+24
	bl	execl
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r4, [r3, #-16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r5, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, r4
	bl	write
	str	r0, [r5, #-24]
	bl	getpid
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-24]
	mov	r1, r3
	ldr	r0, .L6+28
	bl	printf
.L2:
	mov	r0, #0
	bl	exit
.L7:
	.align	2
.L6:
	.word	.LC4
	.word	3355185
	.word	8193
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
