	.file	"604386.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"select() error!"
.LC1:
	.string	"time out"
.LC2:
	.string	"message from console: %s"
	.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
	sub	rsp, 336
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -304[rbp]
	mov	rdi, rdx
#APP
# 21 "the_stack_data/604386.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -336[rbp], edx
	mov	DWORD PTR -332[rbp], eax
	mov	rax, QWORD PTR -304[rbp]
	or	rax, 1
	mov	QWORD PTR -304[rbp], rax
.L5:
	mov	rax, QWORD PTR -304[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], rdx
	mov	rax, QWORD PTR -288[rbp]
	mov	rdx, QWORD PTR -280[rbp]
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], rdx
	mov	rax, QWORD PTR -272[rbp]
	mov	rdx, QWORD PTR -264[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	rax, QWORD PTR -256[rbp]
	mov	rdx, QWORD PTR -248[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, QWORD PTR -232[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR -216[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR -184[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -320[rbp], 5
	mov	QWORD PTR -312[rbp], 0
	lea	rdx, -320[rbp]
	lea	rax, -176[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	select@PLT
	mov	DWORD PTR -328[rbp], eax
	cmp	DWORD PTR -328[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L5
.L2:
	cmp	DWORD PTR -328[rbp], 0
	jne	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -176[rbp]
	and	eax, 1
	test	rax, rax
	je	.L5
	lea	rax, -48[rbp]
	mov	edx, 30
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -324[rbp], eax
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], 0
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
	.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	"604386.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"select() error!\000"
	.align	2
.LC1:
	.ascii	"time out\000"
	.align	2
.LC2:
	.ascii	"message from console: %s\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #328
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #296
	str	r3, [fp, #-316]
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L2
.L3:
	ldr	r3, [fp, #-316]
	ldr	r2, [fp, #-320]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L2:
	ldr	r3, [fp, #-320]
	cmp	r3, #31
	bls	.L3
	ldr	r3, [fp, #-296]
	orr	r3, r3, #1
	str	r3, [fp, #-296]
.L7:
	sub	r3, fp, #168
	sub	r1, fp, #296
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	mov	r3, #5
	str	r3, [fp, #-304]
	mov	r3, #0
	str	r3, [fp, #-300]
	sub	r1, fp, #168
	sub	r3, fp, #304
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r0, #1
	bl	select
	str	r0, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L9+4
	bl	puts
	b	.L7
.L4:
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L9+8
	bl	puts
	b	.L7
.L6:
	ldr	r3, [fp, #-168]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #40
	mov	r2, #30
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-308]
	sub	r2, fp, #40
	ldr	r3, [fp, #-308]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L9+12
	bl	printf
	b	.L7
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
