	.file	"212535.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/tmp/my_socket"
.LC1:
	.string	"bind"
.LC2:
	.string	"accept"
.LC3:
	.string	"poll"
.LC4:
	.string	"read"
.LC5:
	.string	"Read from stdin: %s\n"
.LC6:
	.string	"Read from socket: %s\n"
.LC7:
	.string	"Timeout!"
	.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	unlink@PLT
	mov	DWORD PTR -272[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -272[rbp], eax
	mov	WORD PTR -240[rbp], 1
	movabs	rax, 6879649956302255151
	movabs	rdx, 127978942197619
	mov	QWORD PTR -238[rbp], rax
	mov	QWORD PTR -230[rbp], rdx
	mov	QWORD PTR -222[rbp], 0
	mov	QWORD PTR -214[rbp], 0
	mov	QWORD PTR -206[rbp], 0
	mov	QWORD PTR -198[rbp], 0
	mov	QWORD PTR -190[rbp], 0
	mov	QWORD PTR -182[rbp], 0
	mov	QWORD PTR -174[rbp], 0
	mov	QWORD PTR -166[rbp], 0
	mov	QWORD PTR -158[rbp], 0
	mov	QWORD PTR -150[rbp], 0
	mov	QWORD PTR -142[rbp], 0
	mov	DWORD PTR -134[rbp], 0
	lea	rax, -240[rbp]
	add	rax, 2
	mov	rdi, rax
	call	strlen@PLT
	lea	edx, 2[rax]
	lea	rcx, -240[rbp]
	mov	eax, DWORD PTR -272[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -268[rbp], eax
	cmp	DWORD PTR -268[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
.L2:
	mov	eax, DWORD PTR -272[rbp]
	mov	esi, 100500
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -268[rbp], eax
	mov	DWORD PTR -276[rbp], 110
	lea	rdx, -276[rbp]
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -272[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -264[rbp], eax
	cmp	DWORD PTR -264[rbp], 0
	jns	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	QWORD PTR -18[rbp], 0
	mov	WORD PTR -10[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	DWORD PTR -256[rbp], 0
	mov	WORD PTR -252[rbp], 1
	mov	eax, DWORD PTR -264[rbp]
	mov	DWORD PTR -248[rbp], eax
	mov	WORD PTR -244[rbp], 1
.L11:
	lea	rax, -256[rbp]
	mov	edx, 10000
	mov	esi, 2
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -260[rbp], eax
	cmp	DWORD PTR -260[rbp], 0
	jns	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	cmp	DWORD PTR -260[rbp], 0
	jle	.L5
	movzx	eax, WORD PTR -250[rbp]
	test	ax, ax
	jle	.L6
	mov	eax, DWORD PTR -256[rbp]
	lea	rcx, -18[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -268[rbp], eax
	cmp	DWORD PTR -268[rbp], 0
	jns	.L7
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	movzx	eax, WORD PTR -242[rbp]
	test	ax, ax
	jle	.L11
	mov	eax, DWORD PTR -248[rbp]
	lea	rcx, -18[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -268[rbp], eax
	cmp	DWORD PTR -268[rbp], 0
	jns	.L9
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L5:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	nop
	mov	eax, DWORD PTR -264[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -272[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"212535.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/tmp/my_socket\000"
	.align	2
.LC2:
	.ascii	"bind\000"
	.align	2
.LC3:
	.ascii	"accept\000"
	.align	2
.LC4:
	.ascii	"poll\000"
	.align	2
.LC5:
	.ascii	"read\000"
	.align	2
.LC6:
	.ascii	"Read from stdin: %s\012\000"
	.align	2
.LC7:
	.ascii	"Read from socket: %s\012\000"
	.align	2
.LC8:
	.ascii	"Timeout!\000"
	.align	2
.LC0:
	.short	1
	.ascii	"/tmp/my_socket\000"
	.space	93
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L15+4
	bl	unlink
	mov	r3, #0
	str	r3, [fp, #-276]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-276]
	ldr	r2, .L15+8
	sub	r3, fp, #244
	mov	r1, r2
	mov	r2, #110
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #244
	add	r3, r3, #2
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #2
	sub	r3, fp, #244
	mov	r1, r3
	ldr	r0, [fp, #-276]
	bl	bind
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L15+12
	bl	perror
.L2:
	ldr	r1, .L15+16
	ldr	r0, [fp, #-276]
	bl	listen
	str	r0, [fp, #-272]
	mov	r3, #110
	str	r3, [fp, #-280]
	sub	r2, fp, #280
	sub	r3, fp, #132
	mov	r1, r3
	ldr	r0, [fp, #-276]
	bl	accept
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L15+20
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [r3]
	strh	r2, [r3, #4]	@ movhi
	sub	r3, fp, #260
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #0
	str	r3, [fp, #-260]
	sub	r3, fp, #4
	sub	r3, r3, #256
	mov	r2, #1
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, [fp, #-268]
	str	r3, [fp, #-252]
	sub	r3, fp, #4
	sub	r3, r3, #256
	mov	r2, #1
	strh	r2, [r3, #12]	@ movhi
.L11:
	sub	r3, fp, #260
	ldr	r2, .L15+24
	mov	r1, #2
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-264]
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L15+28
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	ble	.L5
	sub	r3, fp, #4
	sub	r3, r3, #256
	ldrsh	r3, [r3, #6]
	cmp	r3, #0
	ble	.L6
	ldr	r3, [fp, #-260]
	sub	r1, fp, #20
	mov	r2, #10
	mov	r0, r3
	bl	read
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L15+32
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L15+36
	bl	printf
.L6:
	sub	r3, fp, #4
	sub	r3, r3, #256
	ldrsh	r3, [r3, #14]
	cmp	r3, #0
	ble	.L11
	ldr	r3, [fp, #-252]
	sub	r1, fp, #20
	mov	r2, #10
	mov	r0, r3
	bl	read
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L15+32
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L15+40
	bl	printf
	b	.L11
.L5:
	ldr	r0, .L15+44
	bl	puts
	nop
	ldr	r0, [fp, #-268]
	bl	close
	ldr	r0, [fp, #-276]
	bl	close
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC9
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	100500
	.word	.LC3
	.word	10000
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
