	.file	"187644340.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"fifo1"
.LC1:
	.string	"cannot create fifoserver"
.LC2:
	.string	"fifo2"
.LC3:
	.string	"open fifo1"
.LC4:
	.string	"open fifo2"
.LC5:
	.string	"Hello!\n"
.LC6:
	.string	"rc=%d\n"
.LC7:
	.string	"select"
.LC8:
	.string	"read: %s\n"
.LC9:
	.string	"read"
.LC10:
	.string	"rc=%d,write: %s\n"
.LC11:
	.string	"write"
	.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, 336
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 192
	lea	rdi, .LC0[rip]
	call	mkfifo@PLT
	test	eax, eax
	jns	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L2
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L2:
	mov	esi, 192
	lea	rdi, .LC2[rip]
	call	mkfifo@PLT
	test	eax, eax
	jns	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L3:
	mov	edx, 0
	mov	esi, 2050
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -280[rbp], eax
	mov	eax, DWORD PTR -280[rbp]
	test	eax, eax
	jns	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
.L4:
	mov	edx, 0
	mov	esi, 2050
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -276[rbp], eax
	mov	eax, DWORD PTR -276[rbp]
	test	eax, eax
	jns	.L5
	lea	rdi, .LC4[rip]
	call	perror@PLT
.L5:
	mov	eax, DWORD PTR -280[rbp]
	mov	edx, 7
	lea	rsi, .LC5[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -328[rbp], eax
	cmp	DWORD PTR -328[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -328[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	eax, DWORD PTR -280[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	edx, DWORD PTR -276[rbp]
	mov	eax, DWORD PTR -280[rbp]
	cmp	edx, eax
	cmovge	eax, edx
	mov	DWORD PTR -324[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -272[rbp]
	mov	rdi, rdx
#APP
# 29 "the_stack_data/187644340.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -320[rbp], edx
	mov	DWORD PTR -316[rbp], eax
	mov	eax, DWORD PTR -280[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -280[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -272[rbp+rax*8], rdx
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 31 "the_stack_data/187644340.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -312[rbp], edx
	mov	DWORD PTR -308[rbp], eax
	mov	eax, DWORD PTR -276[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -276[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	jmp	.L7
.L12:
	mov	eax, DWORD PTR -324[rbp]
	lea	edi, 1[rax]
	lea	rdx, -144[rbp]
	lea	rax, -272[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	rsi, rax
	call	select@PLT
	test	eax, eax
	jns	.L8
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -280[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -280[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L9
	mov	eax, DWORD PTR -280[rbp]
	lea	rcx, -15[rbp]
	mov	edx, 7
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -328[rbp], eax
	cmp	DWORD PTR -328[rbp], 0
	jle	.L10
	mov	eax, DWORD PTR -328[rbp]
	cdqe
	mov	BYTE PTR -15[rbp+rax], 0
	lea	rax, -15[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L10:
	lea	rdi, .LC9[rip]
	call	perror@PLT
.L9:
	mov	eax, DWORD PTR -276[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -276[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR -276[rbp]
	lea	rcx, -15[rbp]
	mov	edx, 7
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -328[rbp], eax
	cmp	DWORD PTR -328[rbp], 0
	jle	.L11
	mov	eax, DWORD PTR -328[rbp]
	cdqe
	mov	BYTE PTR -15[rbp+rax], 0
	lea	rdx, -15[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L11:
	lea	rdi, .LC11[rip]
	call	perror@PLT
.L7:
	mov	eax, DWORD PTR -280[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -280[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	jne	.L12
	mov	eax, DWORD PTR -276[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -276[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	jne	.L12
	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	"187644340.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fifo1\000"
	.align	2
.LC1:
	.ascii	"cannot create fifoserver\000"
	.align	2
.LC2:
	.ascii	"fifo2\000"
	.align	2
.LC3:
	.ascii	"open fifo1\000"
	.align	2
.LC4:
	.ascii	"open fifo2\000"
	.align	2
.LC5:
	.ascii	"Hello!\012\000"
	.align	2
.LC6:
	.ascii	"rc=%d\012\000"
	.align	2
.LC7:
	.ascii	"select\000"
	.align	2
.LC8:
	.ascii	"read: %s\012\000"
	.align	2
.LC9:
	.ascii	"read\000"
	.align	2
.LC10:
	.ascii	"rc=%d,write: %s\012\000"
	.align	2
.LC11:
	.ascii	"write\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #192
	ldr	r0, .L18+4
	bl	mkfifo
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L2
	ldr	r0, .L18+8
	bl	puts
.L2:
	mov	r1, #192
	ldr	r0, .L18+12
	bl	mkfifo
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L3
	ldr	r0, .L18+8
	bl	puts
.L3:
	mov	r2, #0
	ldr	r1, .L18+16
	ldr	r0, .L18+4
	bl	open
	mov	r3, r0
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L18+20
	bl	perror
.L4:
	mov	r2, #0
	ldr	r1, .L18+16
	ldr	r0, .L18+12
	bl	open
	mov	r3, r0
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L18+24
	bl	perror
.L5:
	ldr	r3, [fp, #-280]
	mov	r2, #7
	ldr	r1, .L18+28
	mov	r0, r3
	bl	write
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	beq	.L6
	ldr	r1, [fp, #-304]
	ldr	r0, .L18+32
	bl	printf
.L6:
	ldr	r3, [fp, #-280]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	ldr	r2, [fp, #-276]
	ldr	r3, [fp, #-280]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [fp, #-300]
	sub	r3, fp, #272
	str	r3, [fp, #-296]
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L7
.L8:
	ldr	r3, [fp, #-296]
	ldr	r2, [fp, #-312]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L7:
	ldr	r3, [fp, #-312]
	cmp	r3, #31
	bls	.L8
	ldr	r3, [fp, #-280]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-268]
	ldr	r3, [fp, #-280]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-268]
	sub	r3, fp, #144
	str	r3, [fp, #-292]
	mov	r3, #0
	str	r3, [fp, #-308]
	b	.L9
.L10:
	ldr	r3, [fp, #-292]
	ldr	r2, [fp, #-308]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-308]
	add	r3, r3, #1
	str	r3, [fp, #-308]
.L9:
	ldr	r3, [fp, #-308]
	cmp	r3, #31
	bls	.L10
	ldr	r3, [fp, #-276]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-140]
	ldr	r3, [fp, #-276]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-140]
	b	.L11
.L16:
	ldr	r3, [fp, #-300]
	add	r0, r3, #1
	sub	r2, fp, #144
	sub	r1, fp, #272
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	bl	select
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L18+36
	bl	perror
	b	.L11
.L12:
	ldr	r3, [fp, #-280]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-268]
	ldr	r3, [fp, #-280]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-280]
	sub	r1, fp, #16
	mov	r2, #7
	mov	r0, r3
	bl	read
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	ble	.L14
	sub	r2, fp, #16
	ldr	r3, [fp, #-304]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L18+40
	bl	printf
	b	.L13
.L14:
	ldr	r0, .L18+44
	bl	perror
.L13:
	ldr	r3, [fp, #-276]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-140]
	ldr	r3, [fp, #-276]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-276]
	sub	r1, fp, #16
	mov	r2, #7
	mov	r0, r3
	bl	write
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	ble	.L15
	sub	r2, fp, #16
	ldr	r3, [fp, #-304]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, [fp, #-304]
	ldr	r0, .L18+48
	bl	printf
	b	.L11
.L15:
	ldr	r0, .L18+52
	bl	perror
.L11:
	ldr	r3, [fp, #-280]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-268]
	ldr	r3, [fp, #-280]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-276]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-140]
	ldr	r3, [fp, #-276]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L16
	mov	r0, #0
	bl	exit
.L19:
	.align	2
.L18:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	2050
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
