	.file	"9511852.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"fork fail"
	.align 8
.LC1:
	.string	"son start, pid = %d, ppid = %d\n"
	.align 8
.LC2:
	.string	"/home/thomas/golang/src/earth/paper/fifo_pipe"
.LC3:
	.string	"open fail"
.LC4:
	.string	"read fail"
.LC5:
	.string	"son read %d:%s\n"
.LC6:
	.string	"son end, pid = %d, ppid = %d\n"
.LC7:
	.string	"write fail"
.LC8:
	.string	"son ret = %d, status = %d\n"
	.text
	.globl	write1
	.type	write1, @function
write1:
.LFB6:
	.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, 1080
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -1076[rbp], eax
	cmp	DWORD PTR -1076[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L1
.L2:
	cmp	DWORD PTR -1076[rbp], 0
	jne	.L4
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1060[rbp], eax
	cmp	DWORD PTR -1060[rbp], -1
	jne	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L5:
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	edx, 1023
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1068[rbp], eax
	cmp	DWORD PTR -1068[rbp], -1
	jne	.L6
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -1068[rbp]
	cdqe
	mov	BYTE PTR -1056[rbp+rax], 0
	lea	rdx, -1056[rbp]
	mov	eax, DWORD PTR -1068[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1060[rbp]
	mov	edi, eax
	call	close@PLT
	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, 0
	call	exit@PLT
.L4:
	mov	esi, 1
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1072[rbp], eax
	cmp	DWORD PTR -1072[rbp], -1
	jne	.L7
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L7:
	movabs	rax, 7307125770628262246
	mov	edx, 7302252
	mov	QWORD PTR -1056[rbp], rax
	mov	QWORD PTR -1048[rbp], rdx
	lea	rdx, -1040[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1072[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -1068[rbp], eax
	cmp	DWORD PTR -1068[rbp], -1
	jne	.L8
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -1072[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -1080[rbp], 0
	lea	rcx, -1080[rbp]
	mov	eax, DWORD PTR -1076[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -1064[rbp], eax
	cmp	DWORD PTR -1064[rbp], -1
	jne	.L9
	mov	edx, DWORD PTR -1080[rbp]
	mov	eax, DWORD PTR -1064[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L1
.L9:
	mov	edx, DWORD PTR -1080[rbp]
	mov	eax, DWORD PTR -1064[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L1:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	write1, .-write1
	.section	.rodata
.LC9:
	.string	"son fifo opening"
.LC10:
	.string	"son fifo open done"
.LC11:
	.string	"son reading"
.LC12:
	.string	"read fail:%s\n"
.LC13:
	.string	"1111"
.LC14:
	.string	"fifo opening"
.LC15:
	.string	"fifo open done"
.LC16:
	.string	"fifo writing"
.LC17:
	.string	"fifo write done"
	.text
	.globl	write2
	.type	write2, @function
write2:
.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, 1080
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -1076[rbp], eax
	cmp	DWORD PTR -1076[rbp], -1
	jne	.L12
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L11
.L12:
	cmp	DWORD PTR -1076[rbp], 0
	jne	.L14
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	esi, 2048
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1060[rbp], eax
	cmp	DWORD PTR -1060[rbp], -1
	jne	.L15
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L15:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	edx, 1023
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1068[rbp], eax
	cmp	DWORD PTR -1068[rbp], -1
	jne	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L16:
	mov	eax, DWORD PTR -1068[rbp]
	cdqe
	mov	BYTE PTR -1056[rbp+rax], 0
	lea	rdx, -1056[rbp]
	mov	eax, DWORD PTR -1068[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1060[rbp]
	mov	edi, eax
	call	close@PLT
	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, 0
	call	exit@PLT
.L14:
	mov	edi, 10
	call	sleep@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	esi, 1
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1072[rbp], eax
	cmp	DWORD PTR -1072[rbp], -1
	jne	.L17
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L17:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	movabs	rax, 7307125770628262246
	mov	edx, 7302252
	mov	QWORD PTR -1056[rbp], rax
	mov	QWORD PTR -1048[rbp], rdx
	lea	rdx, -1040[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1072[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -1068[rbp], eax
	cmp	DWORD PTR -1068[rbp], -1
	jne	.L18
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L18:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -1072[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -1080[rbp], 0
	lea	rcx, -1080[rbp]
	mov	eax, DWORD PTR -1076[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -1064[rbp], eax
	cmp	DWORD PTR -1064[rbp], -1
	jne	.L19
	mov	edx, DWORD PTR -1080[rbp]
	mov	eax, DWORD PTR -1064[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L19:
	mov	edx, DWORD PTR -1080[rbp]
	mov	eax, DWORD PTR -1064[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	write2, .-write2
	.section	.rodata
.LC18:
	.string	"mkfifo fail"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	esi, 384
	lea	rdi, .LC2[rip]
	call	mkfifo@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L22
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L22
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L23
.L22:
	mov	eax, 0
	call	write2
	lea	rdi, .LC2[rip]
	call	unlink@PLT
	mov	edi, 2
	call	sleep@PLT
	mov	eax, 0
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"9511852.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fork fail\000"
	.align	2
.LC1:
	.ascii	"son start, pid = %d, ppid = %d\012\000"
	.align	2
.LC2:
	.ascii	"/home/thomas/golang/src/earth/paper/fifo_pipe\000"
	.align	2
.LC3:
	.ascii	"open fail\000"
	.align	2
.LC4:
	.ascii	"read fail\000"
	.align	2
.LC5:
	.ascii	"son read %d:%s\012\000"
	.align	2
.LC6:
	.ascii	"son end, pid = %d, ppid = %d\012\000"
	.align	2
.LC8:
	.ascii	"write fail\000"
	.align	2
.LC9:
	.ascii	"son ret = %d, status = %d\012\000"
	.align	2
.LC7:
	.ascii	"fifo, hello\000"
	.space	1012
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write1
	.syntax unified
	.arm
	.fpu softvfp
	.type	write1, %function
write1:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1056
	sub	sp, sp, #4
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-1060]
	ldr	r3, [fp, #-1060]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L11+4
	bl	puts
	b	.L1
.L2:
	ldr	r3, [fp, #-1060]
	cmp	r3, #0
	bne	.L4
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L11+8
	bl	printf
	mov	r1, #0
	ldr	r0, .L11+12
	bl	open
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L11+16
	bl	puts
	mov	r0, #0
	bl	exit
.L5:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L11+20
	mov	r1, r3
	ldr	r0, [fp, #-1044]
	bl	read
	str	r0, [fp, #-1052]
	ldr	r3, [fp, #-1052]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L11+24
	bl	puts
	mov	r0, #0
	bl	exit
.L6:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1052]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-1052]
	ldr	r0, .L11+28
	bl	printf
	ldr	r0, [fp, #-1044]
	bl	close
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L11+32
	bl	printf
	mov	r0, #0
	bl	exit
.L4:
	mov	r1, #1
	ldr	r0, .L11+12
	bl	open
	str	r0, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L11+16
	bl	puts
	mov	r0, #0
	bl	exit
.L7:
	ldr	r2, .L11+36
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, #1012
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1056]
	bl	write
	str	r0, [fp, #-1052]
	ldr	r3, [fp, #-1052]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L11+40
	bl	puts
	mov	r0, #0
	bl	exit
.L8:
	ldr	r0, [fp, #-1056]
	bl	close
	mov	r3, #0
	str	r3, [fp, #-1064]
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-1060]
	bl	waitpid
	str	r0, [fp, #-1048]
	ldr	r3, [fp, #-1048]
	cmn	r3, #1
	bne	.L9
	ldr	r3, [fp, #-1064]
	mov	r2, r3
	ldr	r1, [fp, #-1048]
	ldr	r0, .L11+44
	bl	printf
	b	.L1
.L9:
	ldr	r3, [fp, #-1064]
	mov	r2, r3
	ldr	r1, [fp, #-1048]
	ldr	r0, .L11+44
	bl	printf
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	1023
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	write1, .-write1
	.section	.rodata
	.align	2
.LC11:
	.ascii	"son fifo opening\000"
	.align	2
.LC12:
	.ascii	"son fifo open done\000"
	.align	2
.LC13:
	.ascii	"son reading\000"
	.align	2
.LC14:
	.ascii	"read fail:%s\012\000"
	.align	2
.LC15:
	.ascii	"1111\000"
	.align	2
.LC16:
	.ascii	"fifo opening\000"
	.align	2
.LC17:
	.ascii	"fifo open done\000"
	.align	2
.LC18:
	.ascii	"fifo writing\000"
	.align	2
.LC19:
	.ascii	"fifo write done\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write2, %function
write2:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1056
	sub	sp, sp, #4
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-1060]
	ldr	r3, [fp, #-1060]
	cmn	r3, #1
	bne	.L14
	ldr	r0, .L23+4
	bl	puts
	b	.L13
.L14:
	ldr	r3, [fp, #-1060]
	cmp	r3, #0
	bne	.L16
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L23+8
	bl	printf
	ldr	r0, .L23+12
	bl	puts
	mov	r1, #2048
	ldr	r0, .L23+16
	bl	open
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmn	r3, #1
	bne	.L17
	ldr	r0, .L23+20
	bl	puts
	mov	r0, #0
	bl	exit
.L17:
	ldr	r0, .L23+24
	bl	puts
	ldr	r0, .L23+28
	bl	puts
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L23+32
	mov	r1, r3
	ldr	r0, [fp, #-1044]
	bl	read
	str	r0, [fp, #-1052]
	ldr	r3, [fp, #-1052]
	cmn	r3, #1
	bne	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L23+36
	bl	printf
	ldr	r0, .L23+40
	bl	perror
	mov	r0, #0
	bl	exit
.L18:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1052]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-1052]
	ldr	r0, .L23+44
	bl	printf
	ldr	r0, [fp, #-1044]
	bl	close
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L23+48
	bl	printf
	mov	r0, #0
	bl	exit
.L16:
	mov	r0, #10
	bl	sleep
	ldr	r0, .L23+52
	bl	puts
	mov	r1, #1
	ldr	r0, .L23+16
	bl	open
	str	r0, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L23+20
	bl	puts
	mov	r0, #0
	bl	exit
.L19:
	ldr	r0, .L23+56
	bl	puts
	ldr	r2, .L23+60
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, #1012
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L23+64
	bl	puts
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1056]
	bl	write
	str	r0, [fp, #-1052]
	ldr	r3, [fp, #-1052]
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L23+68
	bl	puts
	mov	r0, #0
	bl	exit
.L20:
	ldr	r0, .L23+72
	bl	puts
	ldr	r0, [fp, #-1056]
	bl	close
	mov	r3, #0
	str	r3, [fp, #-1064]
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-1060]
	bl	waitpid
	str	r0, [fp, #-1048]
	ldr	r3, [fp, #-1048]
	cmn	r3, #1
	bne	.L21
	ldr	r3, [fp, #-1064]
	mov	r2, r3
	ldr	r1, [fp, #-1048]
	ldr	r0, .L23+76
	bl	printf
	b	.L13
.L21:
	ldr	r3, [fp, #-1064]
	mov	r2, r3
	ldr	r1, [fp, #-1048]
	ldr	r0, .L23+76
	bl	printf
.L13:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC20
	.word	.LC0
	.word	.LC1
	.word	.LC11
	.word	.LC2
	.word	.LC3
	.word	.LC12
	.word	.LC13
	.word	1023
	.word	.LC14
	.word	.LC15
	.word	.LC5
	.word	.LC6
	.word	.LC16
	.word	.LC17
	.word	.LC7
	.word	.LC18
	.word	.LC8
	.word	.LC19
	.word	.LC9
	.size	write2, .-write2
	.section	.rodata
	.align	2
.LC21:
	.ascii	"mkfifo fail\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r1, #384
	ldr	r0, .L28
	bl	mkfifo
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L26
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L26
	ldr	r0, .L28+4
	bl	puts
	mvn	r3, #0
	b	.L27
.L26:
	bl	write2
	ldr	r0, .L28
	bl	unlink
	mov	r0, #2
	bl	sleep
	mov	r3, #0
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC2
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
