	.file	"165768774.c"
	.intel_syntax noprefix
	.text
	.globl	EXIT_STRING
	.section	.rodata
.LC0:
	.string	"exit"
	.section	.data.rel.local,"aw"
	.align 8
	.type	EXIT_STRING, @object
	.size	EXIT_STRING, 8
EXIT_STRING:
	.quad	.LC0
	.globl	START_STRING
	.section	.rodata
.LC1:
	.string	"Connected to chat_server \n"
	.section	.data.rel.local
	.align 8
	.type	START_STRING, @object
	.size	START_STRING, 8
START_STRING:
	.quad	.LC1
	.globl	maxfdp1
	.bss
	.align 4
	.type	maxfdp1, @object
	.size	maxfdp1, 4
maxfdp1:
	.zero	4
	.globl	num_user
	.align 4
	.type	num_user, @object
	.size	num_user, 4
num_user:
	.zero	4
	.globl	num_chat
	.align 4
	.type	num_chat, @object
	.size	num_chat, 4
num_chat:
	.zero	4
	.globl	clisock_list
	.align 32
	.type	clisock_list, @object
	.size	clisock_list, 4096
clisock_list:
	.zero	4096
	.globl	ip_list
	.align 32
	.type	ip_list, @object
	.size	ip_list, 20480
ip_list:
	.zero	20480
	.globl	listen_sock
	.align 4
	.type	listen_sock, @object
	.size	listen_sock, 4
listen_sock:
	.zero	4
	.text
	.globl	errquit
	.type	errquit, @function
errquit:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	errquit, .-errquit
	.globl	ct
	.bss
	.align 8
	.type	ct, @object
	.size	ct, 8
ct:
	.zero	8
	.globl	tm
	.align 32
	.type	tm, @object
	.size	tm, 56
tm:
	.zero	56
	.section	.rodata
	.align 8
.LC2:
	.string	"\353\252\205\353\240\271\354\226\264 \353\252\251\353\241\235 : help, num_user, num_chat, ip_list"
.LC3:
	.string	"\033[1;32m"
.LC4:
	.string	"server>"
.LC5:
	.string	"\n"
.LC6:
	.string	"help\n"
	.align 8
.LC7:
	.string	"help, num_user, num_chat, ip_list"
.LC8:
	.string	"num_user\n"
.LC9:
	.string	"\355\230\204\354\236\254 \354\260\270\352\260\200\354\236\220 \354\210\230 = %d\n"
.LC10:
	.string	"num_chat\n"
	.align 8
.LC11:
	.string	"\354\247\200\352\270\210\352\271\214\354\247\200 \354\230\244\352\260\204 \353\214\200\355\231\224\354\235\230 \354\210\230 = %d\n"
.LC12:
	.string	"ip_list\n"
	.align 8
.LC13:
	.string	"\355\225\264\353\213\271 \353\252\205\353\240\271\354\226\264\352\260\200 \354\227\206\354\212\265\353\213\210\353\213\244.help\353\245\274 \354\260\270\354\241\260\355\225\230\354\204\270\354\232\224."
	.text
	.globl	thread_function
	.type	thread_function, @function
thread_function:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 560
	mov	QWORD PTR -552[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L12:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -528[rbp]
	mov	esi, 511
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -528[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L14
	lea	rax, -528[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L12
.L5:
	lea	rax, -528[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR num_user[rip]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L7:
	lea	rax, -528[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR num_chat[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L8:
	lea	rax, -528[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	DWORD PTR -532[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -532[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, ip_list[rip]
	add	rax, rdx
	mov	rdi, rax
	call	puts@PLT
	add	DWORD PTR -532[rbp], 1
.L10:
	mov	eax, DWORD PTR num_user[rip]
	cmp	DWORD PTR -532[rbp], eax
	jl	.L11
	jmp	.L12
.L9:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L12
.L14:
	nop
	jmp	.L12
	.cfi_endproc
.LFE7:
	.size	thread_function, .-thread_function
	.section	.rodata
.LC14:
	.string	"\354\202\254\354\232\251\353\262\225 :%s port\n"
.LC15:
	.string	"select fail"
.LC16:
	.string	"accept fail"
.LC17:
	.string	"\033[0G"
.LC18:
	.string	"[%02d:%02d:%02d]"
.LC19:
	.string	"\033[33m"
	.align 8
.LC20:
	.string	"\354\202\254\354\232\251\354\236\220 1\353\252\205 \354\266\224\352\260\200. \355\230\204\354\236\254 \354\260\270\352\260\200\354\236\220 \354\210\230 = %d\n"
.LC21:
	.string	"\033[32m"
.LC22:
	.string	"\033[97m"
.LC23:
	.string	"%s"
	.text
	.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
	push	rbx
	sub	rsp, 744
	.cfi_offset 3, -24
	mov	DWORD PTR -740[rbp], edi
	mov	QWORD PTR -752[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -724[rbp], 16
	cmp	DWORD PTR -740[rbp], 2
	je	.L16
	mov	rax, QWORD PTR -752[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L16:
	mov	rax, QWORD PTR -752[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, 5
	mov	esi, eax
	mov	edi, 0
	call	tcp_listen
	mov	DWORD PTR listen_sock[rip], eax
	lea	rax, -696[rbp]
	mov	ecx, 0
	lea	rdx, thread_function[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
.L29:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -672[rbp]
	mov	rdi, rdx
#APP
# 80 "the_stack_data/165768774.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -712[rbp], edx
	mov	DWORD PTR -708[rbp], eax
	mov	eax, DWORD PTR listen_sock[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -672[rbp+rax*8]
	mov	eax, DWORD PTR listen_sock[rip]
	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 -672[rbp+rax*8], rdx
	mov	DWORD PTR -720[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -720[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, clisock_list[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -672[rbp+rax*8]
	mov	eax, DWORD PTR -720[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, clisock_list[rip]
	mov	eax, DWORD PTR [rdx+rax]
	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 -672[rbp+rax*8], rdx
	add	DWORD PTR -720[rbp], 1
.L17:
	mov	eax, DWORD PTR num_user[rip]
	cmp	DWORD PTR -720[rbp], eax
	jl	.L18
	mov	eax, 0
	call	getmax
	add	eax, 1
	mov	DWORD PTR maxfdp1[rip], eax
	mov	eax, DWORD PTR maxfdp1[rip]
	lea	rsi, -672[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	edi, eax
	call	select@PLT
	test	eax, eax
	jns	.L19
	lea	rdi, .LC15[rip]
	call	errquit
.L19:
	mov	eax, DWORD PTR listen_sock[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -672[rbp+rax*8]
	mov	eax, DWORD PTR listen_sock[rip]
	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	.L20
	mov	eax, DWORD PTR listen_sock[rip]
	lea	rdx, -724[rbp]
	lea	rcx, -688[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -704[rbp], eax
	cmp	DWORD PTR -704[rbp], -1
	jne	.L21
	lea	rdi, .LC16[rip]
	call	errquit
.L21:
	lea	rdx, -688[rbp]
	mov	eax, DWORD PTR -704[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	addClient
	mov	rax, QWORD PTR START_STRING[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rsi, QWORD PTR START_STRING[rip]
	mov	eax, DWORD PTR -704[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR ct[rip], rax
	lea	rdi, ct[rip]
	call	localtime@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR tm[rip], rcx
	mov	QWORD PTR tm[rip+8], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR tm[rip+16], rcx
	mov	QWORD PTR tm[rip+24], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR tm[rip+32], rcx
	mov	QWORD PTR tm[rip+40], rbx
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR tm[rip+48], rax
	mov	edx, 4
	lea	rsi, .LC17[rip]
	mov	edi, 1
	call	write@PLT
	mov	ecx, DWORD PTR tm[rip]
	mov	edx, DWORD PTR tm[rip+4]
	mov	eax, DWORD PTR tm[rip+8]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR num_user[rip]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
.L20:
	mov	DWORD PTR -720[rbp], 0
	jmp	.L22
.L28:
	mov	eax, DWORD PTR -720[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, clisock_list[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -672[rbp+rax*8]
	mov	eax, DWORD PTR -720[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, clisock_list[rip]
	mov	eax, DWORD PTR [rdx+rax]
	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	.L23
	mov	eax, DWORD PTR num_chat[rip]
	add	eax, 1
	mov	DWORD PTR num_chat[rip], eax
	mov	eax, DWORD PTR -720[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, clisock_list[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	rsi, -544[rbp]
	mov	ecx, 0
	mov	edx, 511
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -700[rbp], eax
	cmp	DWORD PTR -700[rbp], 0
	jg	.L24
	mov	eax, DWORD PTR -720[rbp]
	mov	edi, eax
	call	removeClient
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -700[rbp]
	cdqe
	mov	BYTE PTR -544[rbp+rax], 0
	mov	rdx, QWORD PTR EXIT_STRING[rip]
	lea	rax, -544[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L25
	mov	eax, DWORD PTR -720[rbp]
	mov	edi, eax
	call	removeClient
	jmp	.L23
.L25:
	mov	DWORD PTR -716[rbp], 0
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -700[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -716[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, clisock_list[rip]
	mov	eax, DWORD PTR [rcx+rax]
	lea	rsi, -544[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	add	DWORD PTR -716[rbp], 1
.L26:
	mov	eax, DWORD PTR num_user[rip]
	cmp	DWORD PTR -716[rbp], eax
	jl	.L27
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	lea	rax, -544[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
.L23:
	add	DWORD PTR -720[rbp], 1
.L22:
	mov	eax, DWORD PTR num_user[rip]
	cmp	DWORD PTR -720[rbp], eax
	jl	.L28
	jmp	.L29
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
.LC24:
	.string	"new client: %s\n"
	.text
	.globl	addClient
	.type	addClient, @function
addClient:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, 4[rax]
	lea	rax, -32[rbp]
	mov	ecx, 20
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	edx, 4
	lea	rsi, .LC17[rip]
	mov	edi, 1
	call	write@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR num_user[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, clisock_list[rip]
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR num_user[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, ip_list[rip]
	add	rdx, rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, DWORD PTR num_user[rip]
	add	eax, 1
	mov	DWORD PTR num_user[rip], eax
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	addClient, .-addClient
	.section	.rodata
	.align 8
.LC25:
	.string	"\354\261\204\355\214\205 \354\260\270\352\260\200\354\236\220 1\353\252\205 \355\203\210\355\207\264. \355\230\204\354\236\254 \354\260\270\352\260\200\354\236\220 \354\210\230 = %d\n"
	.text
	.globl	removeClient
	.type	removeClient, @function
removeClient:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, clisock_list[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR num_user[rip]
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	je	.L34
	mov	eax, DWORD PTR num_user[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, clisock_list[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, clisock_list[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR num_user[rip]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, ip_list[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	lea	rcx, ip_list[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L34:
	mov	eax, DWORD PTR num_user[rip]
	sub	eax, 1
	mov	DWORD PTR num_user[rip], eax
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR ct[rip], rax
	lea	rdi, ct[rip]
	call	localtime@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR tm[rip], rcx
	mov	QWORD PTR tm[rip+8], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR tm[rip+16], rcx
	mov	QWORD PTR tm[rip+24], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR tm[rip+32], rcx
	mov	QWORD PTR tm[rip+40], rbx
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR tm[rip+48], rax
	mov	edx, 4
	lea	rsi, .LC17[rip]
	mov	edi, 1
	call	write@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	ecx, DWORD PTR tm[rip]
	mov	edx, DWORD PTR tm[rip+4]
	mov	eax, DWORD PTR tm[rip+8]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR num_user[rip]
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	removeClient, .-removeClient
	.globl	getmax
	.type	getmax, @function
getmax:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR listen_sock[rip]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -4[rbp], 0
	jmp	.L36
.L38:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, clisock_list[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -8[rbp], eax
	jge	.L37
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, clisock_list[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -8[rbp], eax
.L37:
	add	DWORD PTR -4[rbp], 1
.L36:
	mov	eax, DWORD PTR num_user[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L38
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	getmax, .-getmax
	.section	.rodata
.LC26:
	.string	"socket fail"
.LC27:
	.string	"bind fail"
	.text
	.globl	tcp_listen
	.type	tcp_listen, @function
tcp_listen:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	DWORD PTR -60[rbp], edx
	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 -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L41
	lea	rdi, .LC26[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L41:
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L42
	lea	rdi, .LC27[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L42:
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	listen@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	tcp_listen, .-tcp_listen
	.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	"165768774.c"
	.text
	.global	EXIT_STRING
	.section	.rodata
	.align	2
.LC0:
	.ascii	"exit\000"
	.data
	.align	2
	.type	EXIT_STRING, %object
	.size	EXIT_STRING, 4
EXIT_STRING:
	.word	.LC0
	.global	START_STRING
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Connected to chat_server \012\000"
	.data
	.align	2
	.type	START_STRING, %object
	.size	START_STRING, 4
START_STRING:
	.word	.LC1
	.comm	maxfdp1,4,4
	.global	num_user
	.bss
	.align	2
	.type	num_user, %object
	.size	num_user, 4
num_user:
	.space	4
	.global	num_chat
	.align	2
	.type	num_chat, %object
	.size	num_chat, 4
num_chat:
	.space	4
	.comm	clisock_list,4096,4
	.comm	ip_list,20480,4
	.comm	listen_sock,4,4
	.text
	.align	2
	.global	errquit
	.syntax unified
	.arm
	.fpu softvfp
	.type	errquit, %function
errquit:
	@ 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]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	errquit, .-errquit
	.comm	ct,4,4
	.comm	tm,44,4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\353\252\205\353\240\271\354\226\264 \353\252\251\353"
	.ascii	"\241\235 : help, num_user, num_chat, ip_list\000"
	.align	2
.LC3:
	.ascii	"\033[1;32m\000"
	.align	2
.LC4:
	.ascii	"server>\000"
	.align	2
.LC5:
	.ascii	"\012\000"
	.align	2
.LC6:
	.ascii	"help\012\000"
	.align	2
.LC7:
	.ascii	"help, num_user, num_chat, ip_list\000"
	.align	2
.LC8:
	.ascii	"num_user\012\000"
	.align	2
.LC9:
	.ascii	"\355\230\204\354\236\254 \354\260\270\352\260\200\354"
	.ascii	"\236\220 \354\210\230 = %d\012\000"
	.align	2
.LC10:
	.ascii	"num_chat\012\000"
	.align	2
.LC11:
	.ascii	"\354\247\200\352\270\210\352\271\214\354\247\200 \354"
	.ascii	"\230\244\352\260\204 \353\214\200\355\231\224\354\235"
	.ascii	"\230 \354\210\230 = %d\012\000"
	.align	2
.LC12:
	.ascii	"ip_list\012\000"
	.align	2
.LC13:
	.ascii	"\355\225\264\353\213\271 \353\252\205\353\240\271\354"
	.ascii	"\226\264\352\260\200 \354\227\206\354\212\265\353\213"
	.ascii	"\210\353\213\244.help\353\245\274 \354\260\270\354\241"
	.ascii	"\260\355\225\230\354\204\270\354\232\224.\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thread_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_function, %function
thread_function:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	str	r0, [fp, #-528]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L15+4
	bl	puts
.L12:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L15+12
	bl	fwrite
	ldr	r0, .L15+16
	bl	printf
	ldr	r3, .L15+20
	ldr	r2, [r3]
	sub	r3, fp, #520
	ldr	r1, .L15+24
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #520
	ldr	r1, .L15+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	sub	r3, fp, #520
	ldr	r1, .L15+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L15+36
	bl	puts
	b	.L12
.L5:
	sub	r3, fp, #520
	ldr	r1, .L15+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L15+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+48
	bl	printf
	b	.L12
.L7:
	sub	r3, fp, #520
	ldr	r1, .L15+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L15+56
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+60
	bl	printf
	b	.L12
.L8:
	sub	r3, fp, #520
	ldr	r1, .L15+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L10
.L11:
	ldr	r2, [fp, #-524]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L15+68
	add	r3, r3, r2
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
.L10:
	ldr	r3, .L15+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-524]
	cmp	r2, r3
	blt	.L11
	b	.L12
.L9:
	ldr	r0, .L15+72
	bl	puts
	b	.L12
.L14:
	nop
	b	.L12
.L16:
	.align	2
.L15:
	.word	.LC14
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	stdin
	.word	511
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	num_user
	.word	.LC9
	.word	.LC10
	.word	num_chat
	.word	.LC11
	.word	.LC12
	.word	ip_list
	.word	.LC13
	.size	thread_function, .-thread_function
	.section	.rodata
	.align	2
.LC15:
	.ascii	"\354\202\254\354\232\251\353\262\225 :%s port\012\000"
	.align	2
.LC16:
	.ascii	"select fail\000"
	.align	2
.LC17:
	.ascii	"accept fail\000"
	.align	2
.LC18:
	.ascii	"\033[0G\000"
	.align	2
.LC19:
	.ascii	"[%02d:%02d:%02d]\000"
	.align	2
.LC20:
	.ascii	"\033[33m\000"
	.align	2
.LC21:
	.ascii	"\354\202\254\354\232\251\354\236\220 1\353\252\205 "
	.ascii	"\354\266\224\352\260\200. \355\230\204\354\236\254 "
	.ascii	"\354\260\270\352\260\200\354\236\220 \354\210\230 ="
	.ascii	" %d\012\000"
	.align	2
.LC22:
	.ascii	"\033[32m\000"
	.align	2
.LC23:
	.ascii	"\033[97m\000"
	.align	2
.LC24:
	.ascii	"%s\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 704
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #716
	str	r0, [fp, #-712]
	str	r1, [fp, #-716]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #16
	str	r3, [fp, #-704]
	ldr	r3, [fp, #-712]
	cmp	r3, #2
	beq	.L18
	ldr	r3, [fp, #-716]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L35+4
	bl	printf
	mov	r0, #0
	bl	exit
.L18:
	ldr	r3, [fp, #-716]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, #5
	mov	r1, r3
	mov	r0, #0
	bl	tcp_listen
	mov	r3, r0
	ldr	r2, .L35+8
	str	r3, [r2]
	sub	r0, fp, #700
	mov	r3, #0
	ldr	r2, .L35+12
	mov	r1, #0
	bl	pthread_create
.L33:
	sub	r3, fp, #656
	str	r3, [fp, #-684]
	mov	r3, #0
	str	r3, [fp, #-688]
	b	.L19
.L20:
	ldr	r3, [fp, #-684]
	ldr	r2, [fp, #-688]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-688]
	add	r3, r3, #1
	str	r3, [fp, #-688]
.L19:
	ldr	r3, [fp, #-688]
	cmp	r3, #31
	bls	.L20
	ldr	r3, .L35+8
	ldr	r3, [r3]
	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, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-644]
	ldr	r3, .L35+8
	ldr	r3, [r3]
	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, #12
	add	r3, r2, r3
	str	r1, [r3, #-644]
	mov	r3, #0
	str	r3, [fp, #-696]
	b	.L21
.L22:
	ldr	r2, .L35+16
	ldr	r3, [fp, #-696]
	ldr	r3, [r2, r3, lsl #2]
	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, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-644]
	ldr	r0, .L35+16
	ldr	r3, [fp, #-696]
	ldr	r3, [r0, r3, lsl #2]
	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, #12
	add	r3, r2, r3
	str	r1, [r3, #-644]
	ldr	r3, [fp, #-696]
	add	r3, r3, #1
	str	r3, [fp, #-696]
.L21:
	ldr	r3, .L35+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-696]
	cmp	r2, r3
	blt	.L22
	bl	getmax
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, .L35+24
	str	r3, [r2]
	ldr	r3, .L35+24
	ldr	r0, [r3]
	sub	r1, fp, #656
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	mov	r3, r0
	cmp	r3, #0
	bge	.L23
	ldr	r0, .L35+28
	bl	errquit
.L23:
	ldr	r3, .L35+8
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-644]
	ldr	r3, .L35+8
	ldr	r3, [r3]
	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	.L24
	ldr	r3, .L35+8
	ldr	r3, [r3]
	sub	r2, fp, #704
	sub	r1, fp, #672
	mov	r0, r3
	bl	accept
	str	r0, [fp, #-680]
	ldr	r3, [fp, #-680]
	cmn	r3, #1
	bne	.L25
	ldr	r0, .L35+32
	bl	errquit
.L25:
	sub	r3, fp, #672
	mov	r1, r3
	ldr	r0, [fp, #-680]
	bl	addClient
	ldr	r3, .L35+36
	ldr	r4, [r3]
	ldr	r3, .L35+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	mov	r3, #0
	mov	r1, r4
	ldr	r0, [fp, #-680]
	bl	send
	mov	r0, #0
	bl	time
	mov	r3, r0
	ldr	r2, .L35+40
	str	r3, [r2]
	ldr	r0, .L35+40
	bl	localtime
	mov	r3, r0
	ldr	r2, .L35+44
	mov	ip, r2
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	mov	r2, #4
	ldr	r1, .L35+48
	mov	r0, #1
	bl	write
	ldr	r3, .L35+44
	ldr	r1, [r3, #8]
	ldr	r3, .L35+44
	ldr	r2, [r3, #4]
	ldr	r3, .L35+44
	ldr	r3, [r3]
	ldr	r0, .L35+52
	bl	printf
	ldr	r3, .L35+56
	ldr	r3, [r3]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L35+60
	bl	fwrite
	ldr	r3, .L35+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L35+64
	bl	printf
	ldr	r3, .L35+56
	ldr	r3, [r3]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L35+68
	bl	fwrite
	ldr	r3, .L35+56
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L35+72
	bl	fwrite
.L24:
	mov	r3, #0
	str	r3, [fp, #-696]
	b	.L26
.L32:
	ldr	r2, .L35+16
	ldr	r3, [fp, #-696]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-644]
	ldr	r1, .L35+16
	ldr	r3, [fp, #-696]
	ldr	r3, [r1, r3, lsl #2]
	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	.L27
	ldr	r3, .L35+76
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L35+76
	str	r3, [r2]
	ldr	r2, .L35+16
	ldr	r3, [fp, #-696]
	ldr	r0, [r2, r3, lsl #2]
	sub	r1, fp, #528
	mov	r3, #0
	ldr	r2, .L35+80
	bl	recv
	str	r0, [fp, #-676]
	ldr	r3, [fp, #-676]
	cmp	r3, #0
	bgt	.L28
	ldr	r0, [fp, #-696]
	bl	removeClient
	b	.L27
.L28:
	sub	r2, fp, #528
	ldr	r3, [fp, #-676]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L35+84
	ldr	r2, [r3]
	sub	r3, fp, #528
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r0, [fp, #-696]
	bl	removeClient
	b	.L27
.L29:
	mov	r3, #0
	str	r3, [fp, #-692]
	b	.L30
.L31:
	ldr	r2, .L35+16
	ldr	r3, [fp, #-692]
	ldr	r0, [r2, r3, lsl #2]
	ldr	r2, [fp, #-676]
	sub	r1, fp, #528
	mov	r3, #0
	bl	send
	ldr	r3, [fp, #-692]
	add	r3, r3, #1
	str	r3, [fp, #-692]
.L30:
	ldr	r3, .L35+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-692]
	cmp	r2, r3
	blt	.L31
	ldr	r0, .L35+48
	bl	printf
	ldr	r3, .L35+56
	ldr	r3, [r3]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L35+88
	bl	fwrite
	sub	r3, fp, #528
	mov	r1, r3
	ldr	r0, .L35+92
	bl	printf
	ldr	r3, .L35+56
	ldr	r3, [r3]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L35+68
	bl	fwrite
	ldr	r3, .L35+56
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L35+72
	bl	fwrite
.L27:
	ldr	r3, [fp, #-696]
	add	r3, r3, #1
	str	r3, [fp, #-696]
.L26:
	ldr	r3, .L35+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-696]
	cmp	r2, r3
	blt	.L32
	b	.L33
.L36:
	.align	2
.L35:
	.word	.LC25
	.word	.LC15
	.word	listen_sock
	.word	thread_function
	.word	clisock_list
	.word	num_user
	.word	maxfdp1
	.word	.LC16
	.word	.LC17
	.word	START_STRING
	.word	ct
	.word	tm
	.word	.LC18
	.word	.LC19
	.word	stderr
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC4
	.word	num_chat
	.word	511
	.word	EXIT_STRING
	.word	.LC23
	.word	.LC24
	.size	main, .-main
	.section	.rodata
	.align	2
.LC26:
	.ascii	"new client: %s\012\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	addClient
	.syntax unified
	.arm
	.fpu softvfp
	.type	addClient, %function
addClient:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-36]
	add	r1, r3, #4
	sub	r2, fp, #28
	mov	r3, #20
	mov	r0, #2
	bl	inet_ntop
	mov	r2, #4
	ldr	r1, .L39+4
	mov	r0, #1
	bl	write
	ldr	r3, .L39+8
	ldr	r3, [r3]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L39+12
	bl	fwrite
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L39+16
	bl	printf
	ldr	r3, .L39+20
	ldr	r3, [r3]
	ldr	r1, .L39+24
	ldr	r2, [fp, #-32]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L39+20
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L39+28
	add	r3, r3, r2
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L39+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L39+20
	str	r3, [r2]
	nop
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC27
	.word	.LC18
	.word	stderr
	.word	.LC20
	.word	.LC26
	.word	num_user
	.word	clisock_list
	.word	ip_list
	.size	addClient, .-addClient
	.section	.rodata
	.align	2
.LC28:
	.ascii	"\354\261\204\355\214\205 \354\260\270\352\260\200\354"
	.ascii	"\236\220 1\353\252\205 \355\203\210\355\207\264. \355"
	.ascii	"\230\204\354\236\254 \354\260\270\352\260\200\354\236"
	.ascii	"\220 \354\210\230 = %d\012\000"
	.text
	.align	2
	.global	removeClient
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeClient, %function
removeClient:
	@ 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]
	ldr	r2, .L43
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	close
	ldr	r3, .L43+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L42
	ldr	r3, .L43+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L43
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L43
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L43+8
	add	r0, r3, r2
	ldr	r3, .L43+4
	ldr	r3, [r3]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L43+8
	add	r3, r3, r2
	mov	r1, r3
	bl	strcpy
.L42:
	ldr	r3, .L43+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L43+4
	str	r3, [r2]
	mov	r0, #0
	bl	time
	mov	r3, r0
	ldr	r2, .L43+12
	str	r3, [r2]
	ldr	r0, .L43+12
	bl	localtime
	mov	r3, r0
	ldr	r2, .L43+16
	mov	ip, r2
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	mov	r2, #4
	ldr	r1, .L43+20
	mov	r0, #1
	bl	write
	ldr	r3, .L43+24
	ldr	r3, [r3]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L43+28
	bl	fwrite
	ldr	r3, .L43+16
	ldr	r1, [r3, #8]
	ldr	r3, .L43+16
	ldr	r2, [r3, #4]
	ldr	r3, .L43+16
	ldr	r3, [r3]
	ldr	r0, .L43+32
	bl	printf
	ldr	r3, .L43+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L43+36
	bl	printf
	ldr	r3, .L43+24
	ldr	r3, [r3]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L43+40
	bl	fwrite
	ldr	r3, .L43+24
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L43+44
	bl	fwrite
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	clisock_list
	.word	num_user
	.word	ip_list
	.word	ct
	.word	tm
	.word	.LC18
	.word	stderr
	.word	.LC20
	.word	.LC19
	.word	.LC28
	.word	.LC22
	.word	.LC4
	.size	removeClient, .-removeClient
	.align	2
	.global	getmax
	.syntax unified
	.arm
	.fpu softvfp
	.type	getmax, %function
getmax:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L46
.L48:
	ldr	r2, .L50+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L47
	ldr	r2, .L50+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-12]
.L47:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L46:
	ldr	r3, .L50+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L48
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L51:
	.align	2
.L50:
	.word	listen_sock
	.word	clisock_list
	.word	num_user
	.size	getmax, .-getmax
	.section	.rodata
	.align	2
.LC29:
	.ascii	"socket fail\000"
	.align	2
.LC30:
	.ascii	"bind fail\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tcp_listen
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcp_listen, %function
tcp_listen:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L53
	ldr	r0, .L57+4
	bl	perror
	mov	r0, #1
	bl	exit
.L53:
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L54
	ldr	r0, .L57+8
	bl	perror
	mov	r0, #1
	bl	exit
.L54:
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-28]
	bl	listen
	ldr	r3, [fp, #-28]
	ldr	r2, .L57
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC31
	.word	.LC29
	.word	.LC30
	.size	tcp_listen, .-tcp_listen
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
