	.file	"246529.c"
	.intel_syntax noprefix
	.text
	.globl	serverPort
	.bss
	.align 4
	.type	serverPort, @object
	.size	serverPort, 4
serverPort:
	.zero	4
	.globl	currentDirectory
	.align 32
	.type	currentDirectory, @object
	.size	currentDirectory, 100000
currentDirectory:
	.zero	100000
	.section	.rodata
.LC0:
	.string	"r"
	.text
	.globl	sendData
	.type	sendData, @function
sendData:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	mov	eax, 0
	call	createDataSocket
	mov	DWORD PTR -44[rbp], eax
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L2:
	mov	rdx, QWORD PTR -24[rbp]
	lea	rcx, -40[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	jne	.L3
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sendData, .-sendData
	.section	.rodata
.LC1:
	.string	"."
	.align 8
.LC2:
	.string	"Error: Failed to open directory\n"
	.text
	.globl	listFiles
	.type	listFiles, @function
listFiles:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -98304[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1760
	mov	DWORD PTR -100052[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -100016[rbp]
	mov	edx, 100000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -100052[rbp]
	mov	edi, eax
	mov	eax, 0
	call	createDataSocket
	mov	DWORD PTR -100036[rbp], eax
	lea	rdi, .LC1[rip]
	call	opendir@PLT
	mov	QWORD PTR -100032[rbp], rax
	cmp	QWORD PTR -100032[rbp], 0
	je	.L6
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -100024[rbp]
	lea	rdx, 19[rax]
	lea	rax, -100016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -100016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -100016[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 32
.L7:
	mov	rax, QWORD PTR -100032[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -100024[rbp], rax
	cmp	QWORD PTR -100024[rbp], 0
	jne	.L8
	lea	rax, -100016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -100016[rbp]
	mov	eax, DWORD PTR -100036[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rax, QWORD PTR -100032[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	eax, DWORD PTR -100036[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	jmp	.L11
.L6:
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	listFiles, .-listFiles
	.globl	checkFileExists
	.type	checkFileExists, @function
checkFileExists:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	checkFileExists, .-checkFileExists
	.section	.rodata
.LC3:
	.string	"localhost"
.LC4:
	.string	"Failed Socket..."
.LC5:
	.string	"Failed to Connect..."
	.text
	.globl	createDataSocket
	.type	createDataSocket, @function
createDataSocket:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 48
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -52[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rdi, .LC3[rip]
	call	gethostbyname@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -32[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jns	.L16
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L19
.L16:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L18
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L19
.L18:
	mov	eax, DWORD PTR -44[rbp]
.L19:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	createDataSocket, .-createDataSocket
	.section	.rodata
.LC6:
	.string	"Error: Failed Binding\n"
	.text
	.globl	createCommSocket
	.type	createCommSocket, @function
createCommSocket:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	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], 0
	jns	.L22
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L25
.L22:
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -52[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
	je	.L24
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L25
.L24:
	mov	eax, DWORD PTR -36[rbp]
.L25:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	createCommSocket, .-createCommSocket
	.section	.rodata
.LC7:
	.string	"Connection Closed..."
	.align 8
.LC8:
	.string	"Error: Receive Message Failed\n"
.LC9:
	.string	"admin"
.LC10:
	.string	"password1"
.LC11:
	.string	"Invalid Username or Password!"
.LC12:
	.string	"Welcome"
.LC13:
	.string	"%s %s!"
.LC14:
	.string	" "
	.string	"\n"
.LC15:
	.string	"-l"
.LC16:
	.string	"-g"
.LC17:
	.string	"FILE NOT FOUND"
.LC18:
	.string	"%s"
.LC19:
	.string	"cd"
.LC20:
	.string	"INVALID COMMAND"
.LC21:
	.string	"/quit"
	.text
	.globl	ftCommunication
	.type	ftCommunication, @function
ftCommunication:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -598016[rsp]
.LPSRL1:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL1
	sub	rsp, 2048
	mov	QWORD PTR -600056[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -600056[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -600044[rbp], eax
	mov	eax, DWORD PTR serverPort[rip]
	sub	eax, 1
	mov	DWORD PTR -600040[rbp], eax
	lea	rax, -600016[rbp]
	mov	edx, 100000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -500016[rbp]
	mov	edx, 100000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -400016[rbp]
	mov	edx, 100000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -300016[rbp]
	mov	edx, 100000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -200016[rbp]
	mov	edx, 100000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -100016[rbp]
	mov	edx, 100000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, -300016[rbp]
	mov	eax, DWORD PTR -600044[rbp]
	mov	ecx, 0
	mov	edx, 100000
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -600036[rbp], eax
	cmp	DWORD PTR -600036[rbp], 0
	jne	.L28
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L43
.L28:
	cmp	DWORD PTR -600036[rbp], 0
	jns	.L30
	lea	rdi, .LC8[rip]
	call	perror@PLT
	jmp	.L43
.L30:
	mov	DWORD PTR -600048[rbp], 0
	jmp	.L31
.L33:
	add	DWORD PTR -600048[rbp], 1
.L31:
	mov	eax, DWORD PTR -600048[rbp]
	cdqe
	movzx	eax, BYTE PTR -300016[rbp+rax]
	cmp	al, 38
	je	.L32
	mov	eax, DWORD PTR -600048[rbp]
	cdqe
	movzx	eax, BYTE PTR -300016[rbp+rax]
	test	al, al
	jne	.L33
.L32:
	mov	eax, DWORD PTR -600048[rbp]
	movsx	rdx, eax
	lea	rcx, -300016[rbp]
	lea	rax, -200016[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -300016[rbp]
	mov	esi, 38
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -600032[rbp], rax
	add	QWORD PTR -600032[rbp], 1
	mov	rdx, QWORD PTR -600032[rbp]
	lea	rax, -100016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -200016[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L34
	lea	rax, -100016[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L35
.L34:
	lea	rax, -400016[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -400016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -400016[rbp]
	mov	eax, DWORD PTR -600044[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rax, -400016[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	jmp	.L43
.L35:
	lea	rdx, -200016[rbp]
	lea	rax, -400016[rbp]
	mov	rcx, rdx
	lea	rdx, .LC12[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -400016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -400016[rbp]
	mov	eax, DWORD PTR -600044[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rax, -400016[rbp]
	mov	edx, 100000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, -600016[rbp]
	mov	eax, DWORD PTR -600044[rbp]
	mov	ecx, 0
	mov	edx, 100000
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -600036[rbp], eax
	cmp	DWORD PTR -600036[rbp], 0
	jne	.L36
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L43
.L36:
	cmp	DWORD PTR -600036[rbp], 0
	jns	.L37
	lea	rdi, .LC8[rip]
	call	perror@PLT
	jmp	.L43
.L37:
	lea	rdx, -600016[rbp]
	lea	rax, -500016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -500016[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -600024[rbp], rax
	mov	rax, QWORD PTR -600024[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L38
	mov	eax, DWORD PTR -600040[rbp]
	mov	edi, eax
	call	listFiles
	jmp	.L39
.L38:
	mov	rax, QWORD PTR -600024[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
	lea	rsi, .LC14[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -600024[rbp], rax
	mov	rax, QWORD PTR -600024[rbp]
	mov	rdi, rax
	call	checkFileExists
	cmp	eax, -1
	jne	.L41
	lea	rax, -400016[rbp]
	lea	rdx, .LC17[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -400016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -400016[rbp]
	mov	eax, DWORD PTR -600044[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L39
.L41:
	mov	rdx, QWORD PTR -600024[rbp]
	mov	eax, DWORD PTR -600040[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	sendData
	jmp	.L39
.L40:
	mov	rax, QWORD PTR -600024[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L42
	mov	edx, 100000
	mov	esi, 0
	lea	rdi, currentDirectory[rip]
	call	memset@PLT
	lea	rsi, .LC14[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -600024[rbp], rax
	mov	rax, QWORD PTR -600024[rbp]
	mov	rsi, rax
	lea	rdi, currentDirectory[rip]
	call	strcpy@PLT
	jmp	.L39
.L42:
	lea	rax, -400016[rbp]
	mov	edx, 100000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -400016[rbp]
	lea	rdx, .LC20[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -400016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -400016[rbp]
	mov	eax, DWORD PTR -600044[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L39:
	mov	eax, DWORD PTR -600044[rbp]
	mov	edx, 6
	lea	rsi, .LC21[rip]
	mov	edi, eax
	call	write@PLT
.L43:
	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
.LFE11:
	.size	ftCommunication, .-ftCommunication
	.section	.rodata
.LC22:
	.string	"Error: Invalid Arguments"
.LC23:
	.string	"ftserver [port]"
	.align 8
.LC24:
	.string	"Error: Thread Creation Failed\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 100000
	mov	esi, 0
	lea	rdi, currentDirectory[rip]
	call	memset@PLT
	mov	WORD PTR currentDirectory[rip], 46
	cmp	DWORD PTR -68[rbp], 2
	je	.L46
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L50
.L46:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR serverPort[rip], eax
	mov	eax, DWORD PTR serverPort[rip]
	mov	edi, eax
	call	createCommSocket
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -48[rbp], 16
.L49:
	lea	rdx, -48[rbp]
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -52[rbp], eax
	lea	rdx, -52[rbp]
	lea	rax, -40[rbp]
	mov	rcx, rdx
	lea	rdx, ftCommunication[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	jns	.L49
	lea	rdi, .LC24[rip]
	call	perror@PLT
	mov	eax, 1
.L50:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"246529.c"
	.text
	.comm	serverPort,4,4
	.comm	currentDirectory,100000,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sendData
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendData, %function
sendData:
	@ 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, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-32]
	bl	createDataSocket
	str	r0, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r1, .L5+4
	ldr	r0, [fp, #-36]
	bl	fopen
	str	r0, [fp, #-16]
	b	.L2
.L3:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	write
.L2:
	sub	r1, fp, #28
	sub	r3, fp, #24
	ldr	r2, [fp, #-16]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L3
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r0, [fp, #-20]
	bl	close
	nop
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC1
	.word	.LC0
	.size	sendData, .-sendData
	.section	.rodata
	.align	2
.LC2:
	.ascii	".\000"
	.align	2
.LC3:
	.ascii	" \000"
	.align	2
.LC4:
	.ascii	"Error: Failed to open directory\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	listFiles
	.syntax unified
	.arm
	.fpu softvfp
	.type	listFiles, %function
listFiles:
	@ args = 0, pretend = 0, frame = 100024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #99328
	sub	sp, sp, #700
	sub	r3, fp, #98304
	sub	r3, r3, #12
	str	r0, [r3, #-1716]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	ldr	r2, .L14+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r0, [r3, #-1716]
	bl	createDataSocket
	str	r0, [r4, #-1712]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L14+8
	bl	opendir
	str	r0, [r4, #-1708]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1708]
	cmp	r3, #0
	beq	.L8
	b	.L9
.L10:
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1704]
	add	r2, r3, #11
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	add	r3, r3, r2
	ldr	r2, .L14+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L9:
	sub	r3, fp, #98304
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r0, [r3, #-1708]
	bl	readdir
	str	r0, [r4, #-1704]
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r3, [r3, #-1704]
	cmp	r3, #0
	bne	.L10
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	sub	r1, fp, #98304
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-1712]
	bl	write
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r0, [r3, #-1708]
	bl	closedir
	sub	r3, fp, #98304
	sub	r3, r3, #12
	ldr	r0, [r3, #-1712]
	bl	close
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	b	.L13
.L8:
	ldr	r0, .L14+16
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	100000
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	listFiles, .-listFiles
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	checkFileExists
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkFileExists, %function
checkFileExists:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	stat
	mov	r3, r0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC6
	.size	checkFileExists, .-checkFileExists
	.section	.rodata
	.align	2
.LC7:
	.ascii	"localhost\000"
	.align	2
.LC8:
	.ascii	"Failed Socket...\000"
	.align	2
.LC9:
	.ascii	"Failed to Connect...\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createDataSocket
	.syntax unified
	.arm
	.fpu softvfp
	.type	createDataSocket, %function
createDataSocket:
	@ 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, #-40]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #48
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r0, .L27+4
	bl	gethostbyname
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L22
	ldr	r0, .L27+8
	bl	puts
	mov	r3, #1
	b	.L25
.L22:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r0, .L27+12
	bl	puts
	mov	r3, #1
	b	.L25
.L24:
	ldr	r3, [fp, #-28]
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC10
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	createDataSocket, .-createDataSocket
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Error: Failed Binding\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createCommSocket
	.syntax unified
	.arm
	.fpu softvfp
	.type	createCommSocket, %function
createCommSocket:
	@ 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]
	ldr	r3, .L35
	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]
	cmp	r3, #0
	bge	.L30
	ldr	r0, .L35+4
	bl	puts
	mov	r3, #1
	b	.L33
.L30:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	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
	beq	.L32
	ldr	r0, .L35+8
	bl	perror
	mov	r3, #1
	b	.L33
.L32:
	ldr	r3, [fp, #-28]
.L33:
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC12
	.word	.LC8
	.word	.LC11
	.size	createCommSocket, .-createCommSocket
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Connection Closed...\000"
	.align	2
.LC14:
	.ascii	"Error: Receive Message Failed\012\000"
	.align	2
.LC15:
	.ascii	"admin\000"
	.align	2
.LC16:
	.ascii	"password1\000"
	.align	2
.LC17:
	.ascii	"Invalid Username or Password!\000"
	.align	2
.LC18:
	.ascii	"Welcome\000"
	.align	2
.LC19:
	.ascii	"%s %s!\000"
	.align	2
.LC20:
	.ascii	" \000\012\000"
	.align	2
.LC21:
	.ascii	"-l\000"
	.align	2
.LC22:
	.ascii	"-g\000"
	.align	2
.LC23:
	.ascii	"FILE NOT FOUND\000"
	.align	2
.LC24:
	.ascii	"%s\000"
	.align	2
.LC25:
	.ascii	"cd\000"
	.align	2
.LC26:
	.ascii	"INVALID COMMAND\000"
	.align	2
.LC27:
	.ascii	"/quit\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ftCommunication
	.syntax unified
	.arm
	.fpu softvfp
	.type	ftCommunication, %function
ftCommunication:
	@ args = 0, pretend = 0, frame = 600040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #598016
	sub	sp, sp, #2016
	sub	sp, sp, #12
	sub	r3, fp, #598016
	sub	r3, r3, #12
	str	r0, [r3, #-2020]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r3, [r3, #-2020]
	ldr	r3, [r3]
	str	r3, [r2, #-2008]
	ldr	r3, .L55+4
	ldr	r3, [r3]
	sub	r2, fp, #598016
	sub	r2, r2, #12
	sub	r3, r3, #1
	str	r3, [r2, #-2004]
	ldr	r3, .L55+8
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, .L55+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #499712
	sub	r3, r3, #12
	sub	r3, r3, #292
	ldr	r2, .L55+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L55+16
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, .L55+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #299008
	sub	r3, r3, #12
	sub	r3, r3, #996
	ldr	r2, .L55+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #199680
	sub	r3, r3, #12
	sub	r3, r3, #324
	ldr	r2, .L55+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	ldr	r2, .L55+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #299008
	sub	r1, r1, #12
	sub	r1, r1, #996
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r2, .L55+12
	ldr	r0, [r0, #-2008]
	bl	recv
	str	r0, [r4, #-2000]
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r3, [r3, #-2000]
	cmp	r3, #0
	bne	.L38
	ldr	r0, .L55+20
	bl	puts
	b	.L53
.L38:
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r3, [r3, #-2000]
	cmp	r3, #0
	bge	.L40
	ldr	r0, .L55+24
	bl	perror
	b	.L53
.L40:
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2012]
	b	.L41
.L43:
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r3, [r3, #-2012]
	add	r3, r3, #1
	str	r3, [r2, #-2012]
.L41:
	sub	r3, fp, #299008
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r3, [r3, #-2012]
	add	r3, r2, r3
	sub	r3, r3, #996
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #38
	beq	.L42
	sub	r3, fp, #299008
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r3, [r3, #-2012]
	add	r3, r2, r3
	sub	r3, r3, #996
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L43
.L42:
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r2, [r3, #-2012]
	sub	r1, fp, #299008
	sub	r1, r1, #12
	sub	r1, r1, #996
	sub	r3, fp, #199680
	sub	r3, r3, #12
	sub	r3, r3, #324
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #299008
	sub	r3, r3, #12
	sub	r3, r3, #996
	mov	r1, #38
	mov	r0, r3
	bl	strchr
	str	r0, [r4, #-1996]
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r3, [r3, #-1996]
	add	r3, r3, #1
	str	r3, [r2, #-1996]
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	ldr	r1, [r2, #-1996]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #199680
	sub	r3, r3, #12
	sub	r3, r3, #324
	ldr	r1, .L55+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	sub	r3, fp, #99328
	sub	r3, r3, #12
	sub	r3, r3, #676
	ldr	r1, .L55+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
.L44:
	ldr	r3, .L55+16
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r1, .L55+36
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L55+16
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L55+16
	sub	r1, fp, #12
	add	r3, r1, r3
	sub	r1, fp, #598016
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-2008]
	bl	write
	ldr	r3, .L55+16
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r0, r3
	bl	printf
	b	.L53
.L45:
	sub	r3, fp, #199680
	sub	r3, r3, #12
	sub	r3, r3, #324
	ldr	r0, .L55+16
	sub	r2, fp, #12
	add	r0, r2, r0
	ldr	r2, .L55+40
	ldr	r1, .L55+44
	bl	sprintf
	ldr	r3, .L55+16
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L55+16
	sub	r1, fp, #12
	add	r3, r1, r3
	sub	r1, fp, #598016
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-2008]
	bl	write
	ldr	r3, .L55+16
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, .L55+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L55+8
	sub	r3, fp, #12
	add	r1, r3, r1
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r2, .L55+12
	ldr	r0, [r0, #-2008]
	bl	recv
	str	r0, [r4, #-2000]
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r3, [r3, #-2000]
	cmp	r3, #0
	bne	.L46
	ldr	r0, .L55+20
	bl	puts
	b	.L53
.L46:
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r3, [r3, #-2000]
	cmp	r3, #0
	bge	.L47
	ldr	r0, .L55+24
	bl	perror
	b	.L53
.L47:
	ldr	r2, .L55+8
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #499712
	sub	r3, r3, #12
	sub	r3, r3, #292
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #499712
	sub	r3, r3, #12
	sub	r3, r3, #292
	ldr	r1, .L55+48
	mov	r0, r3
	bl	strtok
	str	r0, [r4, #-1992]
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r1, .L55+52
	ldr	r0, [r3, #-1992]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L48
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r0, [r3, #-2004]
	bl	listFiles
	b	.L49
.L48:
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r1, .L55+56
	ldr	r0, [r3, #-1992]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L55+48
	mov	r0, #0
	bl	strtok
	str	r0, [r4, #-1992]
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r0, [r3, #-1992]
	bl	checkFileExists
	mov	r3, r0
	cmn	r3, #1
	bne	.L51
	ldr	r3, .L55+16
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, .L55+60
	ldr	r1, .L55+64
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L55+16
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L55+16
	sub	r1, fp, #12
	add	r3, r1, r3
	sub	r1, fp, #598016
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-2008]
	bl	write
	b	.L49
.L51:
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r1, [r2, #-1992]
	ldr	r0, [r3, #-2004]
	bl	sendData
	b	.L49
.L50:
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r1, .L55+68
	ldr	r0, [r3, #-1992]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
	ldr	r2, .L55+12
	mov	r1, #0
	ldr	r0, .L55+72
	bl	memset
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L55+48
	mov	r0, #0
	bl	strtok
	str	r0, [r4, #-1992]
	sub	r3, fp, #598016
	sub	r3, r3, #12
	ldr	r1, [r3, #-1992]
	ldr	r0, .L55+72
	bl	strcpy
	b	.L49
.L52:
	ldr	r3, .L55+16
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, .L55+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L55+16
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, .L55+76
	ldr	r1, .L55+64
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L55+16
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L55+16
	sub	r1, fp, #12
	add	r3, r1, r3
	sub	r1, fp, #598016
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-2008]
	bl	write
.L49:
	sub	r3, fp, #598016
	sub	r3, r3, #12
	mov	r2, #6
	ldr	r1, .L55+80
	ldr	r0, [r3, #-2008]
	bl	write
.L53:
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC28
	.word	serverPort
	.word	-600004
	.word	100000
	.word	-400004
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	currentDirectory
	.word	.LC26
	.word	.LC27
	.size	ftCommunication, .-ftCommunication
	.section	.rodata
	.align	2
.LC29:
	.ascii	"Error: Invalid Arguments\000"
	.align	2
.LC30:
	.ascii	"ftserver [port]\000"
	.align	2
.LC31:
	.ascii	"Error: Thread Creation Failed\012\000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L64+4
	mov	r1, #0
	ldr	r0, .L64+8
	bl	memset
	ldr	r2, .L64+8
	ldr	r3, .L64+12
	mov	r0, r2
	mov	r1, r3
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	beq	.L58
	ldr	r0, .L64+16
	bl	puts
	ldr	r0, .L64+20
	bl	puts
	mov	r3, #1
	b	.L62
.L58:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L64+24
	str	r3, [r2]
	ldr	r3, .L64+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	createCommSocket
	str	r0, [fp, #-28]
	mov	r1, #5
	ldr	r0, [fp, #-28]
	bl	listen
	mov	r3, #16
	str	r3, [fp, #-36]
.L61:
	sub	r2, fp, #36
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	accept
	mov	r3, r0
	str	r3, [fp, #-40]
	sub	r3, fp, #40
	sub	r0, fp, #32
	ldr	r2, .L64+28
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	bge	.L61
	ldr	r0, .L64+32
	bl	perror
	mov	r3, #1
.L62:
	ldr	r2, .L64
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC32
	.word	100000
	.word	currentDirectory
	.word	.LC2
	.word	.LC29
	.word	.LC30
	.word	serverPort
	.word	ftCommunication
	.word	.LC31
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
