	.file	"60268.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"opening stream socket"
.LC1:
	.string	"binding stream socket"
.LC2:
	.string	"getting socket name"
.LC3:
	.string	"Socket has port #%d\n"
.LC4:
	.string	"select"
.LC5:
	.string	"Client connection from %s!\n"
.LC6:
	.string	"accept"
.LC7:
	.string	"reading stream message"
.LC8:
	.string	"Ending connection from %s.\n"
.LC9:
	.string	"Client (%s) sent: %s"
.LC10:
	.string	"Do something else"
	.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, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -8412[rbp], eax
	cmp	DWORD PTR -8412[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	WORD PTR -8368[rbp], 2
	mov	DWORD PTR -8364[rbp], 0
	mov	WORD PTR -8366[rbp], 0
	lea	rcx, -8368[rbp]
	mov	eax, DWORD PTR -8412[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	DWORD PTR -8416[rbp], 16
	lea	rdx, -8416[rbp]
	lea	rcx, -8368[rbp]
	mov	eax, DWORD PTR -8412[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getsockname@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	movzx	eax, WORD PTR -8366[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8412[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
.L13:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -8336[rbp]
	mov	rdi, rdx
#APP
# 90 "the_stack_data/60268.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -8408[rbp], edx
	mov	DWORD PTR -8404[rbp], eax
	mov	eax, DWORD PTR -8412[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -8336[rbp+rax*8]
	mov	eax, DWORD PTR -8412[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 -8336[rbp+rax*8], rdx
	mov	QWORD PTR -8384[rbp], 5
	mov	QWORD PTR -8376[rbp], 0
	mov	eax, DWORD PTR -8412[rbp]
	lea	edi, 1[rax]
	lea	rdx, -8384[rbp]
	lea	rax, -8336[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -8412[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -8336[rbp+rax*8]
	mov	eax, DWORD PTR -8412[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	DWORD PTR -8416[rbp], 16
	lea	rdx, -8416[rbp]
	lea	rcx, -8352[rbp]
	mov	eax, DWORD PTR -8412[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -8400[rbp], eax
	mov	eax, DWORD PTR -8348[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	QWORD PTR -8392[rbp], rax
	mov	rax, QWORD PTR -8392[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -8400[rbp], -1
	jne	.L8
	lea	rdi, .LC6[rip]
	call	perror@PLT
	jmp	.L9
.L8:
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 1024
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8400[rbp]
	mov	edx, 8192
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -8396[rbp], eax
	cmp	DWORD PTR -8396[rbp], 0
	jns	.L10
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L11
.L10:
	cmp	DWORD PTR -8396[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -8392[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L12:
	lea	rdx, -8208[rbp]
	mov	rax, QWORD PTR -8392[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	cmp	DWORD PTR -8396[rbp], 0
	jg	.L8
.L9:
	mov	eax, DWORD PTR -8400[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L13
.L7:
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L6:
	jmp	.L13
	.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	"60268.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"opening stream socket\000"
	.align	2
.LC1:
	.ascii	"binding stream socket\000"
	.align	2
.LC2:
	.ascii	"getting socket name\000"
	.align	2
.LC3:
	.ascii	"Socket has port #%d\012\000"
	.align	2
.LC4:
	.ascii	"select\000"
	.align	2
.LC5:
	.ascii	"Client connection from %s!\012\000"
	.align	2
.LC6:
	.ascii	"accept\000"
	.align	2
.LC7:
	.ascii	"reading stream message\000"
	.align	2
.LC8:
	.ascii	"Ending connection from %s.\012\000"
	.align	2
.LC9:
	.ascii	"Client (%s) sent: %s\000"
	.align	2
.LC10:
	.ascii	"Do something else\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8392
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8384
	sub	sp, sp, #20
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-192]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-192]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L17+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-164]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-160]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	strh	r2, [r3, #-162]	@ movhi
	sub	r3, fp, #8320
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-192]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L17+8
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-200]
	sub	r2, fp, #8384
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r3, fp, #8320
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-192]
	bl	getsockname
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L17+12
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrh	r3, [r3, #-162]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L17+16
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #5
	ldr	r0, [r3, #-192]
	bl	listen
.L15:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8320
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-188]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-196]
	b	.L5
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-188]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-196]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	add	r3, r3, #1
	str	r3, [r2, #-196]
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	cmp	r3, #31
	bls	.L6
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-192]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-192]
	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
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-132]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #5
	str	r3, [r2, #-172]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-168]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-192]
	add	r0, r3, #1
	sub	r1, fp, #8320
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8320
	sub	r3, r3, #12
	sub	r3, r3, #44
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L17+20
	bl	perror
	b	.L8
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-192]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #8192
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-192]
	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	.L9
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-200]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #8384
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r3, fp, #8320
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-192]
	bl	accept
	str	r0, [r4, #-184]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-144]
	bl	inet_ntoa
	str	r0, [r4, #-180]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-180]
	ldr	r0, .L17+24
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-184]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L17+28
	bl	perror
	b	.L11
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #8192
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #8192
	mov	r1, r3
	ldr	r0, [r0, #-184]
	bl	read
	str	r0, [r4, #-176]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L17+32
	bl	perror
	b	.L13
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	cmp	r3, #0
	bne	.L14
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-180]
	ldr	r0, .L17+36
	bl	printf
	b	.L13
.L14:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-180]
	ldr	r0, .L17+40
	bl	printf
.L13:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	cmp	r3, #0
	bgt	.L10
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-184]
	bl	close
	b	.L15
.L9:
	ldr	r0, .L17+44
	bl	puts
.L8:
	b	.L15
.L18:
	.align	2
.L17:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
