	.file	"445819.c"
	.intel_syntax noprefix
	.text
	.globl	mutex
	.bss
	.align 32
	.type	mutex, @object
	.size	mutex, 40
mutex:
	.zero	40
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	data_of_file
	.align 32
	.type	data_of_file, @object
	.size	data_of_file, 204
data_of_file:
	.zero	204
	.globl	list_unreaded_message
	.align 32
	.type	list_unreaded_message, @object
	.size	list_unreaded_message, 12000
list_unreaded_message:
	.zero	12000
	.globl	client
	.align 32
	.type	client, @object
	.size	client, 1400
client:
	.zero	1400
	.text
	.globl	concatenate_user
	.type	concatenate_user, @function
concatenate_user:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1919251285
	mov	WORD PTR 4[rax], 32
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movabs	rcx, 9071402193875744
	mov	QWORD PTR [rax], rcx
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	concatenate_user, .-concatenate_user
	.section	.rodata
.LC0:
	.string	"\nSending failure"
	.text
	.globl	send_to_all
	.type	send_to_all, @function
send_to_all:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	send_to_offline
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 24[rax]
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, data_of_file[rip+100]
	mov	rsi, rax
	mov	rdi, rcx
	call	concatenate_user
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -28[rbp], eax
	je	.L4
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip+24]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L4
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, 0
	mov	edx, 204
	lea	rsi, data_of_file[rip]
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L4
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
.L4:
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L5
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	send_to_all, .-send_to_all
	.section	.rodata
	.align 8
.LC1:
	.string	"\n Message save. Because is offline the user: %s"
	.text
	.globl	send_to_specific
	.type	send_to_specific, @function
send_to_specific:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	send_to_offline
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 24[rax]
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, data_of_file[rip+100]
	mov	rsi, rax
	mov	rdi, rcx
	call	concatenate_user
	mov	DWORD PTR -8[rbp], 0
	jmp	.L7
.L12:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, client[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	lea	rcx, 112[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	add	rax, 12
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -28[rbp], eax
	je	.L9
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip+24]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L10
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, 0
	mov	edx, 204
	lea	rsi, data_of_file[rip]
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L9
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, client[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR m[rip]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 4
	sub	rax, rcx
	sal	rax, 3
	lea	rcx, list_unreaded_message[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR m[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	lea	rdx, 16[rax]
	lea	rax, list_unreaded_message[rip]
	add	rax, rdx
	add	rax, 4
	lea	rsi, data_of_file[rip+100]
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR m[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	lea	rdx, list_unreaded_message[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR m[rip]
	add	eax, 1
	mov	DWORD PTR m[rip], eax
.L9:
	add	DWORD PTR -4[rbp], 1
.L8:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L11
	add	DWORD PTR -8[rbp], 1
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 524[rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L12
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	send_to_specific, .-send_to_specific
	.section	.rodata
	.align 8
.LC2:
	.string	"\nSending the port to the client: %s"
.LC3:
	.string	"\nSending failure "
	.text
	.globl	send_file_data
	.type	send_file_data, @function
send_file_data:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 528
	mov	rsi, rax
	lea	rdi, data_of_file[rip]
	call	strcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, data_of_file[rip+100]
	call	strcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, data_of_file[rip+100]
	call	strcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 628[rax]
	mov	DWORD PTR data_of_file[rip+200], eax
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, client[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 124
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -28[rbp], eax
	je	.L15
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip+24]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L15
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, client[rip]
	add	rax, rdx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, 0
	mov	edx, 204
	lea	rsi, data_of_file[rip]
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L15
	lea	rdi, .LC3[rip]
	call	puts@PLT
	nop
.L15:
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L16
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	send_file_data, .-send_file_data
	.globl	send_to_offline
	.type	send_to_offline, @function
send_to_offline:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L18
.L23:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	lea	rdx, 16[rax]
	lea	rax, list_unreaded_message[rip]
	add	rax, rdx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, data_of_file[rip+100]
	call	strcpy@PLT
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	lea	rdx, list_unreaded_message[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 2
	lea	rcx, client[rip]
	add	rax, rcx
	add	rax, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip+24]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L20
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, 0
	mov	edx, 204
	lea	rsi, data_of_file[rip]
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L21
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	lea	rdx, list_unreaded_message[rip]
	add	rax, rdx
	mov	WORD PTR [rax], 12589
	mov	BYTE PTR 2[rax], 0
.L20:
	add	DWORD PTR -4[rbp], 1
.L19:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L22
	add	DWORD PTR -8[rbp], 1
.L18:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L23
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	send_to_offline, .-send_to_offline
	.globl	send_contact
	.type	send_contact, @function
send_contact:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	movabs	rax, 4836901322145925386
	movabs	rdx, 2338340601721024111
	mov	QWORD PTR data_of_file[rip+100], rax
	mov	QWORD PTR data_of_file[rip+108], rdx
	movabs	rax, 3255307777713450250
	movabs	rdx, 3255307777713450285
	mov	QWORD PTR data_of_file[rip+116], rax
	mov	QWORD PTR data_of_file[rip+124], rdx
	movabs	rax, 3255307777713450285
	movabs	rdx, 3255307777713450285
	mov	QWORD PTR data_of_file[rip+132], rax
	mov	QWORD PTR data_of_file[rip+140], rdx
	mov	DWORD PTR data_of_file[rip+148], 539831597
	mov	WORD PTR data_of_file[rip+152], 10
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edx, 204
	lea	rsi, data_of_file[rip]
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L25
.L29:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	je	.L26
	mov	DWORD PTR data_of_file[rip+100], 1919251285
	mov	WORD PTR data_of_file[rip+104], 8250
	mov	BYTE PTR data_of_file[rip+106], 0
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, client[rip]
	add	rax, rdx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, data_of_file[rip+100]
	call	strcat@PLT
	lea	rdi, data_of_file[rip+100]
	call	strlen@PLT
	lea	rdx, -1[rax]
	lea	rax, data_of_file[rip+100]
	mov	BYTE PTR [rdx+rax], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edx, 204
	lea	rsi, data_of_file[rip]
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip+24]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L27
	movabs	rax, 7956009437756402976
	mov	QWORD PTR data_of_file[rip+100], rax
	mov	WORD PTR data_of_file[rip+108], 101
	jmp	.L28
.L27:
	movabs	rax, 7596559261067390240
	mov	QWORD PTR data_of_file[rip+100], rax
	mov	WORD PTR data_of_file[rip+108], 25966
	mov	BYTE PTR data_of_file[rip+110], 0
.L28:
	lea	rdi, data_of_file[rip+100]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, data_of_file[rip+100]
	add	rax, rdx
	movabs	rsi, 3255307777713450250
	movabs	rdi, 3255307777713450285
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	movabs	rsi, 3255307777713450285
	movabs	rdi, 3255307777713450285
	mov	QWORD PTR 16[rax], rsi
	mov	QWORD PTR 24[rax], rdi
	mov	DWORD PTR 32[rax], 539831597
	mov	WORD PTR 36[rax], 10
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edx, 204
	lea	rsi, data_of_file[rip]
	mov	edi, eax
	call	send@PLT
.L26:
	add	DWORD PTR -8[rbp], 1
.L25:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L29
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	send_contact, .-send_contact
	.section	.rodata
.LC4:
	.string	"w"
.LC5:
	.string	"data.txt"
	.text
	.globl	disconnect_user
	.type	disconnect_user, @function
disconnect_user:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -12[rbp], 0
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L31
.L32:
	add	DWORD PTR -12[rbp], 1
.L31:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L32
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip+24]
	mov	DWORD PTR [rdx+rax], 0
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR n[rip]
	cdqe
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 28
	lea	rdi, client[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	call	pthread_self@PLT
	mov	rdi, rax
	call	pthread_cancel@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	disconnect_user, .-disconnect_user
	.section	.rodata
.LC6:
	.string	"exit"
.LC7:
	.string	"contact"
.LC8:
	.string	"file"
	.text
	.globl	recv_msg
	.type	recv_msg, @function
recv_msg:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1088
	mov	QWORD PTR -1080[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1080[rbp]
	mov	QWORD PTR -1056[rbp], rax
	mov	rax, QWORD PTR -1056[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -1064[rbp], eax
	mov	rax, QWORD PTR -1056[rbp]
	lea	rdx, 4[rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L34
.L39:
	mov	DWORD PTR data_of_file[rip+200], 5050
	lea	rax, -1008[rbp]
	mov	QWORD PTR -1048[rbp], rax
	mov	eax, DWORD PTR -1060[rbp]
	cdqe
	mov	BYTE PTR -1008[rbp+rax], 32
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, 24
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L35
	mov	eax, DWORD PTR -1064[rbp]
	mov	edi, eax
	call	disconnect_user
	jmp	.L34
.L35:
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, 24
	mov	edx, 7
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L36
	mov	eax, DWORD PTR -1064[rbp]
	mov	edi, eax
	call	send_contact
	jmp	.L34
.L36:
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, 24
	mov	edx, 4
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L37
	lea	rdx, -1040[rbp]
	mov	ecx, DWORD PTR -1064[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	send_file_data
	jmp	.L34
.L37:
	mov	rax, QWORD PTR -1048[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L38
	lea	rdx, -1040[rbp]
	mov	ecx, DWORD PTR -1064[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	send_to_specific
	jmp	.L34
.L38:
	lea	rdx, -1040[rbp]
	mov	ecx, DWORD PTR -1064[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	send_to_all
.L34:
	lea	rsi, -1008[rbp]
	mov	eax, DWORD PTR -1064[rbp]
	mov	ecx, 0
	mov	edx, 1000
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -1060[rbp], eax
	cmp	DWORD PTR -1060[rbp], 0
	jg	.L39
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	recv_msg, .-recv_msg
	.section	.rodata
.LC9:
	.string	"\nCannot bind, error! "
.LC10:
	.string	"\nServer Startedn"
.LC11:
	.string	"\nListening failed"
.LC12:
	.string	"\nAccept failed "
.LC13:
	.string	"\nThe user %s is registered!\n"
.LC14:
	.string	"r+"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.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, 1176
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1168[rbp], 0
	mov	DWORD PTR -1164[rbp], 0
	mov	DWORD PTR -1176[rbp], 0
	mov	DWORD PTR -1172[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1168[rbp], eax
	mov	WORD PTR -1136[rbp], 2
	mov	edi, 5050
	call	htons@PLT
	mov	WORD PTR -1134[rbp], ax
	mov	edi, 0
	call	htons@PLT
	movzx	eax, ax
	mov	DWORD PTR -1132[rbp], eax
	lea	rcx, -1136[rbp]
	mov	eax, DWORD PTR -1168[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L42
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L43
.L42:
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L43:
	mov	eax, DWORD PTR -1168[rbp]
	mov	esi, 20
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L51
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L51:
	mov	eax, DWORD PTR -1168[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1164[rbp], eax
	cmp	DWORD PTR -1164[rbp], 0
	jns	.L45
	lea	rdi, .LC12[rip]
	call	puts@PLT
.L45:
	mov	eax, DWORD PTR -1164[rbp]
	mov	DWORD PTR -1120[rbp], eax
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	lea	rsi, -1024[rbp]
	mov	eax, DWORD PTR -1164[rbp]
	mov	ecx, 0
	mov	edx, 1000
	mov	edi, eax
	call	recv@PLT
	lea	rax, -1024[rbp]
	mov	QWORD PTR -1152[rbp], rax
	mov	rax, QWORD PTR -1152[rbp]
	lea	rdx, 4[rax]
	lea	rax, -1120[rbp]
	add	rax, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -1152[rbp]
	lea	rdx, 4[rax]
	lea	rax, -1056[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -1056[rbp+rax], 0
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC14[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -1144[rbp], rax
	jmp	.L46
.L48:
	mov	rax, QWORD PTR -1152[rbp]
	add	rax, 4
	lea	rdx, -1088[rbp]
	add	rdx, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L47
	mov	DWORD PTR -1172[rbp], 1
	mov	DWORD PTR -1064[rbp], 1
	mov	eax, DWORD PTR -1164[rbp]
	mov	DWORD PTR -1088[rbp], eax
.L47:
	mov	eax, DWORD PTR -1176[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip]
	mov	rcx, QWORD PTR -1088[rbp]
	mov	rbx, QWORD PTR -1080[rbp]
	mov	QWORD PTR [rdx+rax], rcx
	mov	QWORD PTR 8[rdx+rax], rbx
	mov	rcx, QWORD PTR -1072[rbp]
	mov	QWORD PTR 16[rdx+rax], rcx
	mov	ecx, DWORD PTR -1064[rbp]
	mov	DWORD PTR 24[rdx+rax], ecx
	add	DWORD PTR -1176[rbp], 1
.L46:
	mov	rdx, QWORD PTR -1144[rbp]
	lea	rax, -1088[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 28
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L48
	cmp	DWORD PTR -1172[rbp], 0
	jne	.L49
	mov	rax, QWORD PTR -1152[rbp]
	lea	rdx, 4[rax]
	lea	rax, -1088[rbp]
	add	rax, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -1164[rbp]
	mov	DWORD PTR -1088[rbp], eax
	mov	DWORD PTR -1064[rbp], 1
	mov	eax, DWORD PTR -1176[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, client[rip]
	mov	rcx, QWORD PTR -1088[rbp]
	mov	rbx, QWORD PTR -1080[rbp]
	mov	QWORD PTR [rdx+rax], rcx
	mov	QWORD PTR 8[rdx+rax], rbx
	mov	rcx, QWORD PTR -1072[rbp]
	mov	QWORD PTR 16[rdx+rax], rcx
	mov	ecx, DWORD PTR -1064[rbp]
	mov	DWORD PTR 24[rdx+rax], ecx
	add	DWORD PTR -1176[rbp], 1
	mov	rdx, QWORD PTR -1144[rbp]
	lea	rax, -1088[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 28
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR n[rip]
	add	eax, 1
	mov	DWORD PTR n[rip], eax
.L49:
	mov	rax, QWORD PTR -1144[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -1172[rbp], 0
	je	.L50
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -1144[rbp], rax
	mov	eax, DWORD PTR -1176[rbp]
	cdqe
	mov	rdx, QWORD PTR -1144[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 28
	lea	rdi, client[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1144[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L50:
	mov	DWORD PTR -1176[rbp], 0
	mov	DWORD PTR -1172[rbp], 0
	lea	rdx, -1120[rbp]
	lea	rax, -1160[rbp]
	mov	rcx, rdx
	lea	rdx, recv_msg[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L51
	.cfi_endproc
.LFE14:
	.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	"445819.c"
	.text
	.comm	mutex,24,4
	.global	n
	.bss
	.align	2
	.type	n, %object
	.size	n, 4
n:
	.space	4
	.global	m
	.align	2
	.type	m, %object
	.size	m, 4
m:
	.space	4
	.comm	data_of_file,204,4
	.comm	list_unreaded_message,12000,4
	.comm	client,1400,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"User \000"
	.align	2
.LC1:
	.ascii	" said: \000"
	.text
	.align	2
	.global	concatenate_user
	.syntax unified
	.arm
	.fpu softvfp
	.type	concatenate_user, %function
concatenate_user:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, .L2
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	strcat
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, .L2+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	strcat
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.size	concatenate_user, .-concatenate_user
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012Sending failure\000"
	.text
	.align	2
	.global	send_to_all
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_to_all, %function
send_to_all:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r0, .L8
	bl	pthread_mutex_lock
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	send_to_offline
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	ldr	r2, .L8+4
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	concatenate_user
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L5
.L7:
	ldr	r1, .L8+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L6
	ldr	r1, .L8+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L6
	ldr	r1, .L8+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #204
	ldr	r1, .L8+12
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L8+16
	bl	puts
	nop
.L6:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r3, .L8+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L7
	ldr	r0, .L8
	bl	pthread_mutex_unlock
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	mutex
	.word	data_of_file+100
	.word	client
	.word	data_of_file
	.word	.LC2
	.word	n
	.size	send_to_all, .-send_to_all
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012 Message save. Because is offline the user: %s\000"
	.text
	.align	2
	.global	send_to_specific
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_to_specific, %function
send_to_specific:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r0, .L17
	bl	pthread_mutex_lock
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	send_to_offline
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	ldr	r2, .L17+4
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	concatenate_user
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L11
.L16:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L12
.L15:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #120
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	add	r0, r3, #4
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L17+8
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r1, .L17+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L13
	ldr	r1, .L17+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L14
	ldr	r1, .L17+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #204
	ldr	r1, .L17+12
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L17+16
	bl	puts
	b	.L13
.L14:
	ldr	r3, .L17+20
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L17+24
	add	r0, r3, r2
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L17+8
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	bl	strcpy
	ldr	r3, .L17+20
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #16
	ldr	r2, .L17+24
	add	r3, r3, r2
	add	r3, r3, #4
	ldr	r1, .L17+4
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L17+20
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L17+24
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L17+28
	bl	printf
	ldr	r3, .L17+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+20
	str	r3, [r2]
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r3, .L17+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L15
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #524]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L16
	ldr	r0, .L17
	bl	pthread_mutex_unlock
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	mutex
	.word	data_of_file+100
	.word	client
	.word	data_of_file
	.word	.LC2
	.word	m
	.word	list_unreaded_message
	.word	.LC3
	.word	n
	.size	send_to_specific, .-send_to_specific
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012Sending the port to the client: %s\000"
	.align	2
.LC5:
	.ascii	"\012Sending failure \000"
	.text
	.align	2
	.global	send_file_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_file_data, %function
send_file_data:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r0, .L23
	bl	pthread_mutex_lock
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #528
	mov	r1, r3
	ldr	r0, .L23+4
	bl	strcpy
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L23+8
	bl	strcpy
	ldr	r1, [fp, #-24]
	ldr	r0, .L23+8
	bl	strcpy
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #628]
	ldr	r2, .L23+4
	str	r3, [r2, #200]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L20
.L22:
	ldr	r3, [fp, #-16]
	add	r0, r3, #124
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L23+12
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r1, .L23+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L21
	ldr	r1, .L23+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L21
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L23+12
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L23+16
	bl	printf
	ldr	r1, .L23+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #204
	ldr	r1, .L23+4
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L21
	ldr	r0, .L23+20
	bl	puts
	nop
.L21:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L20:
	ldr	r3, .L23+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L22
	ldr	r0, .L23
	bl	pthread_mutex_unlock
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	mutex
	.word	data_of_file
	.word	data_of_file+100
	.word	client
	.word	.LC4
	.word	.LC5
	.word	n
	.size	send_file_data, .-send_file_data
	.section	.rodata
	.align	2
.LC6:
	.ascii	"-1\000"
	.text
	.align	2
	.global	send_to_offline
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_to_offline, %function
send_to_offline:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L26
.L31:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L27
.L30:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #16
	ldr	r2, .L32
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L32+4
	bl	strcpy
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L32+8
	add	r3, r3, r2
	add	r0, r3, #4
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L32
	add	r3, r3, r2
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r1, .L32+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L28
	ldr	r1, .L32+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #204
	ldr	r1, .L32+12
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L29
	ldr	r0, .L32+16
	bl	puts
	b	.L28
.L29:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L32
	add	r3, r3, r2
	ldr	r2, .L32+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
.L28:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L27:
	ldr	r3, .L32+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L30
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L26:
	ldr	r3, .L32+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L31
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	list_unreaded_message
	.word	data_of_file+100
	.word	client
	.word	data_of_file
	.word	.LC2
	.word	.LC6
	.word	n
	.word	m
	.size	send_to_offline, .-send_to_offline
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\012\011     Contacts \012-------------------------"
	.ascii	"--------- \012\000"
	.align	2
.LC8:
	.ascii	"User: \000"
	.align	2
.LC9:
	.ascii	" - Online\000"
	.align	2
.LC10:
	.ascii	" - Offline\000"
	.align	2
.LC11:
	.ascii	"\012---------------------------------- \012\000"
	.text
	.align	2
	.global	send_contact
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_contact, %function
send_contact:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L40
	bl	pthread_mutex_lock
	ldr	r2, .L40+4
	ldr	r3, .L40+8
	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}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	str	r0, [ip]
	add	ip, ip, #4
	strh	r1, [ip]	@ movhi
	mov	r3, #0
	mov	r2, #204
	ldr	r1, .L40+12
	ldr	r0, [fp, #-16]
	bl	send
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L35
.L39:
	ldr	r1, .L40+16
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L36
	ldr	r3, .L40+4
	ldr	r2, .L40+20
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L40+16
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L40+4
	bl	strcat
	ldr	r0, .L40+4
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, .L40+12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #100]
	mov	r3, #0
	mov	r2, #204
	ldr	r1, .L40+12
	ldr	r0, [fp, #-16]
	bl	send
	ldr	r1, .L40+16
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L37
	ldr	r3, .L40+4
	ldr	r2, .L40+24
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	b	.L38
.L37:
	ldr	r3, .L40+4
	ldr	r2, .L40+28
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
.L38:
	ldr	r0, .L40+4
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L40+4
	add	r3, r2, r3
	ldr	r2, .L40+32
	mov	r0, r3
	mov	r1, r2
	mov	r3, #38
	mov	r2, r3
	bl	memcpy
	mov	r3, #0
	mov	r2, #204
	ldr	r1, .L40+12
	ldr	r0, [fp, #-16]
	bl	send
.L36:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L35:
	ldr	r3, .L40+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L39
	ldr	r0, .L40
	bl	pthread_mutex_unlock
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	mutex
	.word	data_of_file+100
	.word	.LC7
	.word	data_of_file
	.word	client
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	n
	.size	send_contact, .-send_contact
	.section	.rodata
	.align	2
.LC12:
	.ascii	"w\000"
	.align	2
.LC13:
	.ascii	"data.txt\000"
	.text
	.align	2
	.global	disconnect_user
	.syntax unified
	.arm
	.fpu softvfp
	.type	disconnect_user, %function
disconnect_user:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L45
	bl	pthread_mutex_lock
	b	.L43
.L44:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L43:
	ldr	r1, .L45+4
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L44
	ldr	r1, .L45+4
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #24
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L45+8
	ldr	r0, .L45+12
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, .L45+16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	mov	r1, #28
	ldr	r0, .L45+4
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r0, [fp, #-16]
	bl	close
	ldr	r0, .L45
	bl	pthread_mutex_unlock
	bl	pthread_self
	mov	r3, r0
	mov	r0, r3
	bl	pthread_cancel
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	mutex
	.word	client
	.word	.LC12
	.word	.LC13
	.word	n
	.size	disconnect_user, .-disconnect_user
	.section	.rodata
	.align	2
.LC14:
	.ascii	"exit\000"
	.align	2
.LC15:
	.ascii	"contact\000"
	.align	2
.LC16:
	.ascii	"file\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	recv_msg
	.syntax unified
	.arm
	.fpu softvfp
	.type	recv_msg, %function
recv_msg:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1048]
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	ldr	r3, [r3]
	str	r3, [fp, #-1040]
	ldr	r3, [fp, #-1044]
	add	r2, r3, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	b	.L48
.L53:
	ldr	r3, .L55+4
	ldr	r2, .L55+8
	str	r2, [r3, #200]
	sub	r3, fp, #1008
	str	r3, [fp, #-1032]
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-1032]
	add	r3, r3, #24
	mov	r2, #4
	ldr	r1, .L55+12
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L49
	ldr	r0, [fp, #-1040]
	bl	disconnect_user
	b	.L48
.L49:
	ldr	r3, [fp, #-1032]
	add	r3, r3, #24
	mov	r2, #7
	ldr	r1, .L55+16
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	ldr	r0, [fp, #-1040]
	bl	send_contact
	b	.L48
.L50:
	ldr	r3, [fp, #-1032]
	add	r3, r3, #24
	mov	r2, #4
	ldr	r1, .L55+20
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-1040]
	ldr	r0, [fp, #-1032]
	bl	send_file_data
	b	.L48
.L51:
	ldr	r3, [fp, #-1032]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L52
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-1040]
	ldr	r0, [fp, #-1032]
	bl	send_to_specific
	b	.L48
.L52:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-1040]
	ldr	r0, [fp, #-1032]
	bl	send_to_all
.L48:
	sub	r1, fp, #1008
	mov	r3, #0
	mov	r2, #1000
	ldr	r0, [fp, #-1040]
	bl	recv
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bgt	.L53
	nop
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC17
	.word	data_of_file
	.word	5050
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	recv_msg, .-recv_msg
	.section	.rodata
	.align	2
.LC18:
	.ascii	"\012Cannot bind, error! \000"
	.align	2
.LC19:
	.ascii	"\012Server Startedn\000"
	.align	2
.LC20:
	.ascii	"\012Listening failed\000"
	.align	2
.LC21:
	.ascii	"\012Accept failed \000"
	.align	2
.LC22:
	.ascii	"\012The user %s is registered!\012\000"
	.align	2
.LC23:
	.ascii	"r+\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1120
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1112]
	mov	r3, #0
	str	r3, [fp, #-1108]
	mov	r3, #0
	str	r3, [fp, #-1120]
	mov	r3, #0
	str	r3, [fp, #-1116]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1112]
	sub	r3, fp, #4
	sub	r3, r3, #1088
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L69+4
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1088
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	mov	r0, #0
	bl	htons
	mov	r3, r0
	str	r3, [fp, #-1092]
	sub	r3, fp, #1088
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1112]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L58
	ldr	r0, .L69+8
	bl	puts
	b	.L59
.L58:
	ldr	r0, .L69+12
	bl	puts
.L59:
	mov	r1, #20
	ldr	r0, [fp, #-1112]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L67
	ldr	r0, .L69+16
	bl	puts
.L67:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1112]
	bl	accept
	str	r0, [fp, #-1108]
	ldr	r3, [fp, #-1108]
	cmp	r3, #0
	bge	.L61
	ldr	r0, .L69+20
	bl	puts
.L61:
	ldr	r3, [fp, #-1108]
	str	r3, [fp, #-1080]
	ldr	r0, .L69+24
	bl	pthread_mutex_lock
	sub	r1, fp, #1008
	mov	r3, #0
	mov	r2, #1000
	ldr	r0, [fp, #-1108]
	bl	recv
	sub	r3, fp, #1008
	str	r3, [fp, #-1104]
	ldr	r3, [fp, #-1104]
	add	r2, r3, #4
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-1104]
	add	r2, r3, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1024]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L69+28
	bl	printf
	ldr	r1, .L69+32
	ldr	r0, .L69+36
	bl	fopen
	str	r0, [fp, #-1100]
	b	.L62
.L64:
	ldr	r3, [fp, #-1104]
	add	r2, r3, #4
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #12
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	mov	r3, #1
	str	r3, [fp, #-1116]
	mov	r3, #1
	str	r3, [fp, #-1032]
	ldr	r3, [fp, #-1108]
	str	r3, [fp, #-1056]
.L63:
	ldr	r1, .L69+40
	ldr	r2, [fp, #-1120]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	lr, r3
	sub	ip, fp, #1040
	sub	ip, ip, #4
	sub	ip, ip, #12
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2}
	stm	lr, {r0, r1, r2}
	ldr	r3, [fp, #-1120]
	add	r3, r3, #1
	str	r3, [fp, #-1120]
.L62:
	sub	r0, fp, #1040
	sub	r0, r0, #4
	sub	r0, r0, #12
	ldr	r3, [fp, #-1100]
	mov	r2, #1
	mov	r1, #28
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L64
	ldr	r3, [fp, #-1116]
	cmp	r3, #0
	bne	.L65
	ldr	r3, [fp, #-1104]
	add	r2, r3, #4
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #12
	add	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-1108]
	str	r3, [fp, #-1056]
	mov	r3, #1
	str	r3, [fp, #-1032]
	ldr	r1, .L69+40
	ldr	r2, [fp, #-1120]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	lr, r3
	sub	ip, fp, #1040
	sub	ip, ip, #4
	sub	ip, ip, #12
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2}
	stm	lr, {r0, r1, r2}
	ldr	r3, [fp, #-1120]
	add	r3, r3, #1
	str	r3, [fp, #-1120]
	sub	r0, fp, #1040
	sub	r0, r0, #4
	sub	r0, r0, #12
	ldr	r3, [fp, #-1100]
	mov	r2, #1
	mov	r1, #28
	bl	fwrite
	ldr	r3, .L69+44
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L69+44
	str	r3, [r2]
.L65:
	ldr	r0, [fp, #-1100]
	bl	fclose
	ldr	r3, [fp, #-1116]
	cmp	r3, #0
	beq	.L66
	ldr	r1, .L69+48
	ldr	r0, .L69+36
	bl	fopen
	str	r0, [fp, #-1100]
	ldr	r2, [fp, #-1120]
	ldr	r3, [fp, #-1100]
	mov	r1, #28
	ldr	r0, .L69+40
	bl	fwrite
	ldr	r0, [fp, #-1100]
	bl	fclose
.L66:
	mov	r3, #0
	str	r3, [fp, #-1120]
	mov	r3, #0
	str	r3, [fp, #-1116]
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r0, fp, #1120
	sub	r0, r0, #4
	ldr	r2, .L69+52
	mov	r1, #0
	bl	pthread_create
	ldr	r0, .L69+24
	bl	pthread_mutex_unlock
	b	.L67
.L70:
	.align	2
.L69:
	.word	.LC24
	.word	5050
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	mutex
	.word	.LC22
	.word	.LC23
	.word	.LC13
	.word	client
	.word	n
	.word	.LC12
	.word	recv_msg
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
