	.file	"476353.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"listen on port %d\n"
.LC1:
	.string	"socket failed (errno = %d)\n"
.LC2:
	.string	"bind failed (errno = %d)\n"
.LC3:
	.string	"listen failed"
.LC4:
	.string	"select failed (errno = %d)\n"
.LC5:
	.string	"accept failed (errno = %d)\n"
.LC6:
	.string	"connected from %s\n"
.LC7:
	.string	"read failed on fd %d (%zd)\n"
.LC8:
	.string	"write failed on fd %d (%zd)\n"
	.text
	.globl	server
	.type	server, @function
server:
.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, 1056
	mov	QWORD PTR -1048[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -1004[rbp], eax
	mov	eax, DWORD PTR -1004[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 10
	call	socket@PLT
	mov	DWORD PTR -1000[rbp], eax
	cmp	DWORD PTR -1000[rbp], 0
	jns	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L29
.L2:
	lea	rax, -944[rbp]
	mov	edx, 28
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -944[rbp], 10
	mov	rax, QWORD PTR in6addr_any[rip]
	mov	rdx, QWORD PTR in6addr_any[rip+8]
	mov	QWORD PTR -936[rbp], rax
	mov	QWORD PTR -928[rbp], rdx
	mov	eax, DWORD PTR -1004[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -942[rbp], ax
	lea	rcx, -944[rbp]
	mov	eax, DWORD PTR -1000[rbp]
	mov	edx, 28
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1000[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
	jmp	.L29
.L4:
	mov	eax, DWORD PTR -1000[rbp]
	mov	esi, 1
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -1000[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
	jmp	.L29
.L5:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -912[rbp]
	mov	rdi, rdx
#APP
# 45 "the_stack_data/476353.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -996[rbp], edx
	mov	DWORD PTR -992[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -784[rbp]
	mov	rdi, rdx
#APP
# 46 "the_stack_data/476353.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -988[rbp], edx
	mov	DWORD PTR -984[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -656[rbp]
	mov	rdi, rdx
#APP
# 47 "the_stack_data/476353.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -980[rbp], edx
	mov	DWORD PTR -976[rbp], eax
	mov	eax, DWORD PTR -1000[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -912[rbp+rax*8]
	mov	eax, DWORD PTR -1000[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 -912[rbp+rax*8], rdx
	mov	eax, DWORD PTR -1000[rbp]
	add	eax, 1
	mov	DWORD PTR -1032[rbp], eax
	mov	DWORD PTR -1028[rbp], 0
.L24:
	mov	rax, QWORD PTR -912[rbp]
	mov	rdx, QWORD PTR -904[rbp]
	mov	QWORD PTR -528[rbp], rax
	mov	QWORD PTR -520[rbp], rdx
	mov	rax, QWORD PTR -896[rbp]
	mov	rdx, QWORD PTR -888[rbp]
	mov	QWORD PTR -512[rbp], rax
	mov	QWORD PTR -504[rbp], rdx
	mov	rax, QWORD PTR -880[rbp]
	mov	rdx, QWORD PTR -872[rbp]
	mov	QWORD PTR -496[rbp], rax
	mov	QWORD PTR -488[rbp], rdx
	mov	rax, QWORD PTR -864[rbp]
	mov	rdx, QWORD PTR -856[rbp]
	mov	QWORD PTR -480[rbp], rax
	mov	QWORD PTR -472[rbp], rdx
	mov	rax, QWORD PTR -848[rbp]
	mov	rdx, QWORD PTR -840[rbp]
	mov	QWORD PTR -464[rbp], rax
	mov	QWORD PTR -456[rbp], rdx
	mov	rax, QWORD PTR -832[rbp]
	mov	rdx, QWORD PTR -824[rbp]
	mov	QWORD PTR -448[rbp], rax
	mov	QWORD PTR -440[rbp], rdx
	mov	rax, QWORD PTR -816[rbp]
	mov	rdx, QWORD PTR -808[rbp]
	mov	QWORD PTR -432[rbp], rax
	mov	QWORD PTR -424[rbp], rdx
	mov	rax, QWORD PTR -800[rbp]
	mov	rdx, QWORD PTR -792[rbp]
	mov	QWORD PTR -416[rbp], rax
	mov	QWORD PTR -408[rbp], rdx
	mov	rax, QWORD PTR -784[rbp]
	mov	rdx, QWORD PTR -776[rbp]
	mov	QWORD PTR -400[rbp], rax
	mov	QWORD PTR -392[rbp], rdx
	mov	rax, QWORD PTR -768[rbp]
	mov	rdx, QWORD PTR -760[rbp]
	mov	QWORD PTR -384[rbp], rax
	mov	QWORD PTR -376[rbp], rdx
	mov	rax, QWORD PTR -752[rbp]
	mov	rdx, QWORD PTR -744[rbp]
	mov	QWORD PTR -368[rbp], rax
	mov	QWORD PTR -360[rbp], rdx
	mov	rax, QWORD PTR -736[rbp]
	mov	rdx, QWORD PTR -728[rbp]
	mov	QWORD PTR -352[rbp], rax
	mov	QWORD PTR -344[rbp], rdx
	mov	rax, QWORD PTR -720[rbp]
	mov	rdx, QWORD PTR -712[rbp]
	mov	QWORD PTR -336[rbp], rax
	mov	QWORD PTR -328[rbp], rdx
	mov	rax, QWORD PTR -704[rbp]
	mov	rdx, QWORD PTR -696[rbp]
	mov	QWORD PTR -320[rbp], rax
	mov	QWORD PTR -312[rbp], rdx
	mov	rax, QWORD PTR -688[rbp]
	mov	rdx, QWORD PTR -680[rbp]
	mov	QWORD PTR -304[rbp], rax
	mov	QWORD PTR -296[rbp], rdx
	mov	rax, QWORD PTR -672[rbp]
	mov	rdx, QWORD PTR -664[rbp]
	mov	QWORD PTR -288[rbp], rax
	mov	QWORD PTR -280[rbp], rdx
	mov	rax, QWORD PTR -656[rbp]
	mov	rdx, QWORD PTR -648[rbp]
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], rdx
	mov	rax, QWORD PTR -640[rbp]
	mov	rdx, QWORD PTR -632[rbp]
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], rdx
	mov	rax, QWORD PTR -624[rbp]
	mov	rdx, QWORD PTR -616[rbp]
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], rdx
	mov	rax, QWORD PTR -608[rbp]
	mov	rdx, QWORD PTR -600[rbp]
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], rdx
	mov	rax, QWORD PTR -592[rbp]
	mov	rdx, QWORD PTR -584[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR -576[rbp]
	mov	rdx, QWORD PTR -568[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], rdx
	mov	rax, QWORD PTR -560[rbp]
	mov	rdx, QWORD PTR -552[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], rdx
	mov	rax, QWORD PTR -544[rbp]
	mov	rdx, QWORD PTR -536[rbp]
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], rdx
	lea	rcx, -272[rbp]
	lea	rdx, -400[rbp]
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -1032[rbp]
	mov	r8d, 0
	mov	edi, eax
	call	select@PLT
	mov	DWORD PTR -1024[rbp], eax
	cmp	DWORD PTR -1024[rbp], 0
	jns	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1028[rbp], -1
	jmp	.L25
.L6:
	mov	eax, DWORD PTR -1000[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -528[rbp+rax*8]
	mov	eax, DWORD PTR -1000[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	.L8
	sub	DWORD PTR -1024[rbp], 1
	mov	DWORD PTR -1036[rbp], 28
	lea	rdx, -1036[rbp]
	lea	rcx, -944[rbp]
	mov	eax, DWORD PTR -1000[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -972[rbp], eax
	cmp	DWORD PTR -972[rbp], 0
	jns	.L9
	mov	eax, DWORD PTR -1000[rbp]
	mov	edi, eax
	call	close@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1028[rbp], -1
	jmp	.L25
.L9:
	lea	rax, -944[rbp]
	mov	QWORD PTR -968[rbp], rax
	mov	rax, QWORD PTR -968[rbp]
	lea	rsi, 8[rax]
	lea	rax, -144[rbp]
	mov	ecx, 46
	mov	rdx, rax
	mov	edi, 10
	call	inet_ntop@PLT
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -972[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -912[rbp+rax*8]
	mov	eax, DWORD PTR -972[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 -912[rbp+rax*8], rdx
	mov	eax, DWORD PTR -972[rbp]
	cmp	eax, DWORD PTR -1032[rbp]
	jl	.L8
	mov	eax, DWORD PTR -972[rbp]
	add	eax, 1
	mov	DWORD PTR -1032[rbp], eax
.L8:
	mov	DWORD PTR -1020[rbp], 0
	jmp	.L11
.L23:
	cmp	DWORD PTR -1024[rbp], 0
	je	.L31
	mov	eax, DWORD PTR -1020[rbp]
	cmp	eax, DWORD PTR -1000[rbp]
	je	.L32
	mov	eax, DWORD PTR -1020[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -528[rbp+rax*8]
	mov	eax, DWORD PTR -1020[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	.L15
	sub	DWORD PTR -1024[rbp], 1
	mov	DWORD PTR -1016[rbp], 0
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -1020[rbp]
	mov	edx, 128
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -960[rbp], rax
	cmp	QWORD PTR -960[rbp], 0
	jne	.L16
	mov	DWORD PTR -1016[rbp], 1
	jmp	.L17
.L16:
	cmp	QWORD PTR -960[rbp], 0
	jns	.L18
	mov	rdx, QWORD PTR -960[rbp]
	mov	eax, DWORD PTR -1020[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1016[rbp], 1
	jmp	.L17
.L18:
	mov	DWORD PTR -1012[rbp], 0
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -1012[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -960[rbp]
	sub	rax, rdx
	mov	rdx, rax
	mov	eax, DWORD PTR -1012[rbp]
	cdqe
	lea	rcx, -144[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -1020[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -952[rbp], rax
	cmp	QWORD PTR -952[rbp], 0
	jns	.L20
	mov	rdx, QWORD PTR -952[rbp]
	mov	eax, DWORD PTR -1020[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1016[rbp], 1
	jmp	.L17
.L20:
	mov	rax, QWORD PTR -952[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -1012[rbp]
	add	eax, edx
	mov	DWORD PTR -1012[rbp], eax
.L19:
	mov	eax, DWORD PTR -1012[rbp]
	cdqe
	cmp	QWORD PTR -960[rbp], rax
	jg	.L21
.L17:
	cmp	DWORD PTR -1016[rbp], 0
	je	.L15
	mov	eax, DWORD PTR -1020[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -1020[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -912[rbp+rax*8]
	mov	eax, DWORD PTR -1020[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
	not	rax
	and	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -912[rbp+rax*8], rdx
	jmp	.L15
.L32:
	nop
.L15:
	add	DWORD PTR -1020[rbp], 1
.L11:
	mov	eax, DWORD PTR -1020[rbp]
	cmp	eax, DWORD PTR -1032[rbp]
	jl	.L23
	jmp	.L24
.L31:
	nop
	jmp	.L24
.L25:
	mov	DWORD PTR -1008[rbp], 0
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -1008[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -912[rbp+rax*8]
	mov	eax, DWORD PTR -1008[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	.L27
	mov	eax, DWORD PTR -1008[rbp]
	mov	edi, eax
	call	close@PLT
.L27:
	add	DWORD PTR -1008[rbp], 1
.L26:
	mov	eax, DWORD PTR -1008[rbp]
	cmp	eax, DWORD PTR -1032[rbp]
	jl	.L28
	mov	eax, DWORD PTR -1028[rbp]
.L29:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	server, .-server
	.section	.rodata
.LC9:
	.string	"usage: selecttest port"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC9[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jg	.L35
	call	usage
	mov	eax, -1
	jmp	.L36
.L35:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	server
.L36:
	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	"476353.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"listen on port %d\012\000"
	.align	2
.LC1:
	.ascii	"socket failed (errno = %d)\012\000"
	.align	2
.LC2:
	.ascii	"bind failed (errno = %d)\012\000"
	.align	2
.LC3:
	.ascii	"listen failed\000"
	.align	2
.LC4:
	.ascii	"select failed (errno = %d)\012\000"
	.align	2
.LC5:
	.ascii	"accept failed (errno = %d)\012\000"
	.align	2
.LC6:
	.ascii	"connected from %s\012\000"
	.align	2
.LC7:
	.ascii	"read failed on fd %d (%zd)\012\000"
	.align	2
.LC8:
	.ascii	"write failed on fd %d (%zd)\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	server
	.syntax unified
	.arm
	.fpu softvfp
	.type	server, %function
server:
	@ args = 0, pretend = 0, frame = 1016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	str	r0, [fp, #-1016]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-1016]
	bl	atoi
	str	r0, [fp, #-968]
	ldr	r1, [fp, #-968]
	ldr	r0, .L39+4
	bl	printf
	mov	r2, #0
	mov	r1, #1
	mov	r0, #10
	bl	socket
	str	r0, [fp, #-964]
	ldr	r3, [fp, #-964]
	cmp	r3, #0
	bge	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L39+8
	bl	printf
	mvn	r3, #0
	b	.L35
.L2:
	sub	r3, fp, #932
	mov	r2, #28
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #928
	mov	r2, #10
	strh	r2, [r3]	@ movhi
	ldr	r3, .L39+12
	sub	ip, fp, #924
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-968]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #928
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #932
	mov	r2, #28
	mov	r1, r3
	ldr	r0, [fp, #-964]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L39+16
	bl	printf
	ldr	r0, [fp, #-964]
	bl	close
	mvn	r3, #0
	b	.L35
.L4:
	mov	r1, #1
	ldr	r0, [fp, #-964]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L39+20
	bl	puts
	ldr	r0, [fp, #-964]
	bl	close
	mvn	r3, #0
	b	.L35
.L5:
	sub	r3, fp, #904
	str	r3, [fp, #-960]
	mov	r3, #0
	str	r3, [fp, #-1008]
	b	.L6
.L7:
	ldr	r3, [fp, #-960]
	ldr	r2, [fp, #-1008]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-1008]
	add	r3, r3, #1
	str	r3, [fp, #-1008]
.L6:
	ldr	r3, [fp, #-1008]
	cmp	r3, #31
	bls	.L7
	sub	r3, fp, #776
	str	r3, [fp, #-956]
	mov	r3, #0
	str	r3, [fp, #-1004]
	b	.L8
.L9:
	ldr	r3, [fp, #-956]
	ldr	r2, [fp, #-1004]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-1004]
	add	r3, r3, #1
	str	r3, [fp, #-1004]
.L8:
	ldr	r3, [fp, #-1004]
	cmp	r3, #31
	bls	.L9
	sub	r3, fp, #648
	str	r3, [fp, #-952]
	mov	r3, #0
	str	r3, [fp, #-1000]
	b	.L10
.L11:
	ldr	r3, [fp, #-952]
	ldr	r2, [fp, #-1000]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-1000]
	add	r3, r3, #1
	str	r3, [fp, #-1000]
.L10:
	ldr	r3, [fp, #-1000]
	cmp	r3, #31
	bls	.L11
	ldr	r3, [fp, #-964]
	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, #-900]
	ldr	r3, [fp, #-964]
	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, #-900]
	ldr	r3, [fp, #-964]
	add	r3, r3, #1
	str	r3, [fp, #-996]
	mov	r3, #0
	str	r3, [fp, #-992]
.L30:
	sub	r3, fp, #520
	sub	r1, fp, #904
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #392
	sub	r1, fp, #776
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #264
	sub	r1, fp, #648
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #264
	sub	r2, fp, #392
	sub	r1, fp, #520
	mov	r0, #0
	str	r0, [sp]
	ldr	r0, [fp, #-996]
	bl	select
	str	r0, [fp, #-988]
	ldr	r3, [fp, #-988]
	cmp	r3, #0
	bge	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L39+24
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-992]
	b	.L31
.L12:
	ldr	r3, [fp, #-964]
	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, #-516]
	ldr	r3, [fp, #-964]
	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	.L14
	ldr	r3, [fp, #-988]
	sub	r3, r3, #1
	str	r3, [fp, #-988]
	mov	r3, #28
	str	r3, [fp, #-1012]
	sub	r2, fp, #1012
	sub	r3, fp, #932
	mov	r1, r3
	ldr	r0, [fp, #-964]
	bl	accept
	str	r0, [fp, #-948]
	ldr	r3, [fp, #-948]
	cmp	r3, #0
	bge	.L15
	ldr	r0, [fp, #-964]
	bl	close
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L39+28
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-992]
	b	.L31
.L15:
	sub	r3, fp, #932
	str	r3, [fp, #-944]
	ldr	r3, [fp, #-944]
	add	r1, r3, #8
	sub	r2, fp, #136
	mov	r3, #46
	mov	r0, #10
	bl	inet_ntop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L39+32
	bl	printf
	ldr	r3, [fp, #-948]
	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, #-900]
	ldr	r3, [fp, #-948]
	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, #-900]
	ldr	r2, [fp, #-948]
	ldr	r3, [fp, #-996]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-948]
	add	r3, r3, #1
	str	r3, [fp, #-996]
.L14:
	mov	r3, #0
	str	r3, [fp, #-984]
	b	.L17
.L29:
	ldr	r3, [fp, #-988]
	cmp	r3, #0
	beq	.L37
	ldr	r2, [fp, #-984]
	ldr	r3, [fp, #-964]
	cmp	r2, r3
	beq	.L38
	ldr	r3, [fp, #-984]
	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, #-516]
	ldr	r3, [fp, #-984]
	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	.L21
	ldr	r3, [fp, #-988]
	sub	r3, r3, #1
	str	r3, [fp, #-988]
	mov	r3, #0
	str	r3, [fp, #-980]
	sub	r3, fp, #136
	mov	r2, #128
	mov	r1, r3
	ldr	r0, [fp, #-984]
	bl	read
	str	r0, [fp, #-940]
	ldr	r3, [fp, #-940]
	cmp	r3, #0
	bne	.L22
	mov	r3, #1
	str	r3, [fp, #-980]
	b	.L23
.L22:
	ldr	r3, [fp, #-940]
	cmp	r3, #0
	bge	.L24
	ldr	r2, [fp, #-940]
	ldr	r1, [fp, #-984]
	ldr	r0, .L39+36
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-980]
	b	.L23
.L24:
	mov	r3, #0
	str	r3, [fp, #-976]
	b	.L25
.L27:
	ldr	r3, [fp, #-976]
	sub	r2, fp, #136
	add	r1, r2, r3
	ldr	r2, [fp, #-940]
	ldr	r3, [fp, #-976]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-984]
	bl	write
	str	r0, [fp, #-936]
	ldr	r3, [fp, #-936]
	cmp	r3, #0
	bge	.L26
	ldr	r2, [fp, #-936]
	ldr	r1, [fp, #-984]
	ldr	r0, .L39+40
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-980]
	b	.L23
.L26:
	ldr	r2, [fp, #-976]
	ldr	r3, [fp, #-936]
	add	r3, r2, r3
	str	r3, [fp, #-976]
.L25:
	ldr	r2, [fp, #-976]
	ldr	r3, [fp, #-940]
	cmp	r2, r3
	blt	.L27
.L23:
	ldr	r3, [fp, #-980]
	cmp	r3, #0
	beq	.L21
	ldr	r0, [fp, #-984]
	bl	close
	ldr	r3, [fp, #-984]
	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, #-900]
	ldr	r3, [fp, #-984]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	mvn	r3, r3
	and	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-900]
	b	.L21
.L38:
	nop
.L21:
	ldr	r3, [fp, #-984]
	add	r3, r3, #1
	str	r3, [fp, #-984]
.L17:
	ldr	r2, [fp, #-984]
	ldr	r3, [fp, #-996]
	cmp	r2, r3
	blt	.L29
	b	.L30
.L37:
	nop
	b	.L30
.L31:
	mov	r3, #0
	str	r3, [fp, #-972]
	b	.L32
.L34:
	ldr	r3, [fp, #-972]
	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, #-900]
	ldr	r3, [fp, #-972]
	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	.L33
	ldr	r0, [fp, #-972]
	bl	close
.L33:
	ldr	r3, [fp, #-972]
	add	r3, r3, #1
	str	r3, [fp, #-972]
.L32:
	ldr	r2, [fp, #-972]
	ldr	r3, [fp, #-996]
	cmp	r2, r3
	blt	.L34
	ldr	r3, [fp, #-992]
.L35:
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	in6addr_any
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	server, .-server
	.section	.rodata
	.align	2
.LC10:
	.ascii	"usage: selecttest port\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L42
	bl	puts
	nop
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC10
	.size	usage, .-usage
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L45
	bl	usage
	mvn	r3, #0
	b	.L46
.L45:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	server
	mov	r3, r0
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
