	.file	"972354.c"
	.intel_syntax noprefix
	.text
	.globl	TYPE
	.bss
	.align 4
	.type	TYPE, @object
	.size	TYPE, 4
TYPE:
	.zero	4
	.globl	buffer
	.align 32
	.type	buffer, @object
	.size	buffer, 1024
buffer:
	.zero	1024
	.globl	UserInput
	.align 32
	.type	UserInput, @object
	.size	UserInput, 255
UserInput:
	.zero	255
	.globl	ServerSocket
	.align 4
	.type	ServerSocket, @object
	.size	ServerSocket, 4
ServerSocket:
	.zero	4
	.globl	data_sock
	.align 4
	.type	data_sock, @object
	.size	data_sock, 4
data_sock:
	.zero	4
	.globl	Res
	.align 4
	.type	Res, @object
	.size	Res, 4
Res:
	.zero	4
	.globl	ServerAddr
	.align 16
	.type	ServerAddr, @object
	.size	ServerAddr, 16
ServerAddr:
	.zero	16
	.globl	data_addr
	.align 16
	.type	data_addr, @object
	.size	data_addr, 16
data_addr:
	.zero	16
	.globl	toServer
	.section	.rodata
.LC0:
	.string	"to server =================>"
	.section	.data.rel.local,"aw"
	.align 8
	.type	toServer, @object
	.size	toServer, 8
toServer:
	.quad	.LC0
	.globl	workspace
	.bss
	.align 32
	.type	workspace, @object
	.size	workspace, 128
workspace:
	.zero	128
	.section	.rodata
	.align 8
.LC1:
	.string	"Please input the server IP\nPress Enter to confirm:\n(For example(127.0.0.1))"
.LC2:
	.string	"%s"
.LC3:
	.string	"Wrong ip please input again"
.LC4:
	.string	"Please input the server Port:"
.LC5:
	.string	"%d"
	.align 8
.LC6:
	.string	"failed created socket\nrecreate?[y/n]:"
.LC7:
	.string	"%c"
	.align 8
.LC8:
	.string	"failed connect\nreconnect?[y/n]:"
.LC9:
	.string	"connected to %s:%d\n"
.LC10:
	.string	"%s--:"
.LC11:
	.string	"quit"
.LC12:
	.string	"QUIT"
.LC13:
	.string	"abor"
.LC14:
	.string	"ABOR"
.LC15:
	.string	"syst"
.LC16:
	.string	"type"
.LC17:
	.string	"cd"
.LC18:
	.string	"port"
.LC19:
	.string	"pasv"
.LC20:
	.string	"ls"
.LC21:
	.string	"getp"
.LC22:
	.string	"putp"
.LC23:
	.string	"geta"
.LC24:
	.string	"puta"
.LC25:
	.string	"mkd"
.LC26:
	.string	"rmd"
.LC27:
	.string	"rnfr"
.LC28:
	.string	"dele"
.LC29:
	.string	"pwd"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR workspace[rip], 47
.L13:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L4:
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	eax, eax
	mov	QWORD PTR -152[rbp], rax
	mov	eax, 4294967295
	cmp	QWORD PTR -152[rbp], rax
	jne	.L38
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L4
.L38:
	nop
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -156[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, 16
	mov	esi, 0
	lea	rdi, ServerAddr[rip]
	call	memset@PLT
	mov	WORD PTR ServerAddr[rip], 2
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR ServerAddr[rip+4], eax
	mov	eax, DWORD PTR -156[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR ServerAddr[rip+2], ax
	jmp	.L5
.L7:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -158[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -158[rbp]
	cmp	al, 110
	jne	.L5
	mov	eax, 0
	jmp	.L35
.L5:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR ServerSocket[rip], eax
	mov	eax, DWORD PTR ServerSocket[rip]
	test	eax, eax
	js	.L7
	mov	BYTE PTR -158[rbp], 32
	jmp	.L8
.L11:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -158[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -158[rbp]
	cmp	al, 110
	jne	.L9
	mov	eax, DWORD PTR ServerSocket[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L35
.L9:
	movzx	eax, BYTE PTR -158[rbp]
	cmp	al, 121
	je	.L39
.L8:
	mov	eax, DWORD PTR ServerSocket[rip]
	mov	edx, 16
	lea	rsi, ServerAddr[rip]
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	js	.L11
	jmp	.L10
.L39:
	nop
.L10:
	movzx	eax, BYTE PTR -158[rbp]
	cmp	al, 121
	jne	.L40
	jmp	.L13
.L40:
	nop
.L14:
	call	getchar@PLT
	mov	BYTE PTR -157[rbp], al
	cmp	BYTE PTR -157[rbp], 10
	jne	.L14
	mov	edx, DWORD PTR -156[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	ReadFromServer
	mov	eax, 0
	call	user_login
.L34:
	lea	rsi, workspace[rip]
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 254
	lea	rdi, UserInput[rip]
	call	fgets@PLT
	lea	rdi, UserInput[rip]
	call	strlen@PLT
	lea	rdx, -1[rax]
	lea	rax, UserInput[rip]
	mov	BYTE PTR [rdx+rax], 0
	mov	edx, 4
	lea	rsi, UserInput[rip]
	lea	rdi, .LC11[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L16
	mov	esi, 0
	lea	rdi, .LC12[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	jmp	.L17
.L16:
	mov	edx, 4
	lea	rsi, UserInput[rip]
	lea	rdi, .LC13[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L18
	mov	esi, 0
	lea	rdi, .LC14[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	jmp	.L17
.L18:
	mov	edx, 4
	lea	rsi, UserInput[rip]
	lea	rdi, .LC15[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L19
	mov	eax, 0
	call	cmd_syst
	jmp	.L34
.L19:
	mov	edx, 4
	lea	rsi, UserInput[rip]
	lea	rdi, .LC16[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L21
	lea	rdi, UserInput[rip+5]
	call	cmd_type
	jmp	.L34
.L21:
	mov	edx, 2
	lea	rsi, UserInput[rip]
	lea	rdi, .LC17[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L22
	lea	rdi, UserInput[rip+3]
	call	cmd_cd
	jmp	.L34
.L22:
	mov	edx, 4
	lea	rsi, UserInput[rip]
	lea	rdi, .LC18[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L23
	mov	eax, 0
	call	cmd_port
	jmp	.L34
.L23:
	mov	edx, 4
	lea	rsi, UserInput[rip]
	lea	rdi, .LC19[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L24
	mov	eax, 0
	call	cmd_pasv
	jmp	.L34
.L24:
	lea	rdx, .LC20[rip]
	lea	rax, UserInput[rip]
	mov	ecx, 3
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	jne	.L25
	mov	eax, 0
	call	cmd_list
	jmp	.L34
.L25:
	mov	edx, 4
	lea	rsi, UserInput[rip]
	lea	rdi, .LC21[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L26
	mov	esi, 0
	lea	rdi, UserInput[rip+5]
	call	cmd_get
	jmp	.L34
.L26:
	mov	edx, 4
	lea	rsi, UserInput[rip]
	lea	rdi, .LC22[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L27
	mov	esi, 0
	lea	rdi, UserInput[rip+5]
	call	cmd_put
	jmp	.L34
.L27:
	mov	edx, 4
	lea	rsi, UserInput[rip]
	lea	rdi, .LC23[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L28
	mov	esi, 1
	lea	rdi, UserInput[rip+5]
	call	cmd_get
	jmp	.L34
.L28:
	mov	edx, 4
	lea	rsi, UserInput[rip]
	lea	rdi, .LC24[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L29
	mov	esi, 1
	lea	rdi, UserInput[rip+5]
	call	cmd_put
	jmp	.L34
.L29:
	mov	edx, 3
	lea	rsi, UserInput[rip]
	lea	rdi, .LC25[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L30
	lea	rdi, UserInput[rip+4]
	call	cmd_mkd
	jmp	.L34
.L30:
	mov	edx, 3
	lea	rsi, UserInput[rip]
	lea	rdi, .LC26[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L31
	lea	rdi, UserInput[rip+4]
	call	cmd_rmd
	jmp	.L34
.L31:
	mov	edx, 4
	lea	rsi, UserInput[rip]
	lea	rdi, .LC27[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L32
	lea	rdi, UserInput[rip+5]
	call	cmd_rnfr
	jmp	.L34
.L32:
	mov	edx, 4
	lea	rsi, UserInput[rip]
	lea	rdi, .LC28[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L33
	lea	rdi, UserInput[rip+5]
	call	cmd_dele
	jmp	.L34
.L33:
	mov	edx, 3
	lea	rsi, UserInput[rip]
	lea	rdi, .LC29[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L34
	mov	eax, 0
	call	cmd_pwd
	jmp	.L34
.L17:
	mov	eax, DWORD PTR ServerSocket[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L35:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	GetBufCode
	.type	GetBufCode, @function
GetBufCode:
.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, 16
	mov	DWORD PTR -16[rbp], 0
	lea	rdi, buffer[rip]
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 2
	mov	DWORD PTR -8[rbp], eax
	jmp	.L42
.L52:
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L43
.L46:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 10
	jne	.L44
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 13
	jne	.L44
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 2
	mov	DWORD PTR -8[rbp], eax
	jmp	.L45
.L44:
	sub	DWORD PTR -12[rbp], 1
.L43:
	cmp	DWORD PTR -12[rbp], 0
	jg	.L46
.L45:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L47
	mov	DWORD PTR -12[rbp], -1
.L47:
	add	DWORD PTR -12[rbp], 1
.L50:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 13
	je	.L48
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 32
	je	.L48
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 47
	jle	.L49
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 57
	jg	.L49
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, buffer[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	add	eax, ecx
	sub	eax, 48
	mov	DWORD PTR -16[rbp], eax
	add	DWORD PTR -12[rbp], 1
	jmp	.L50
.L49:
	mov	DWORD PTR -16[rbp], -1
	nop
.L48:
	cmp	DWORD PTR -16[rbp], -1
	je	.L42
	cmp	DWORD PTR -16[rbp], 0
	jne	.L54
.L42:
	cmp	DWORD PTR -8[rbp], 0
	jg	.L52
	jmp	.L51
.L54:
	nop
.L51:
	mov	eax, DWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	GetBufCode, .-GetBufCode
	.section	.rodata
.LC30:
	.string	"127.0.0.1"
.LC31:
	.string	"10.0.2.15"
	.text
	.globl	getlocalip
	.type	getlocalip, @function
getlocalip:
.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, 592
	mov	QWORD PTR -584[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -568[rbp], 0
	mov	DWORD PTR -544[rbp], 512
	lea	rax, -528[rbp]
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -584[rbp]
	movabs	rcx, 3328210909095473713
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 49
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -564[rbp], eax
	cmp	DWORD PTR -564[rbp], 0
	jns	.L56
	mov	eax, -1
	jmp	.L62
.L56:
	lea	rdx, -544[rbp]
	mov	eax, DWORD PTR -564[rbp]
	mov	esi, 35090
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	eax, DWORD PTR -564[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -528[rbp]
	mov	QWORD PTR -560[rbp], rax
	mov	eax, DWORD PTR -544[rbp]
	cdqe
	movabs	rdx, -3689348814741910323
	mul	rdx
	mov	rax, rdx
	shr	rax, 5
	mov	DWORD PTR -568[rbp], eax
	jmp	.L58
.L61:
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 16
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	QWORD PTR -552[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L59
	add	QWORD PTR -560[rbp], 40
	jmp	.L60
.L59:
	mov	rax, QWORD PTR -552[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L60
	add	QWORD PTR -560[rbp], 40
	nop
.L60:
	sub	DWORD PTR -568[rbp], 1
.L58:
	cmp	DWORD PTR -568[rbp], 0
	jg	.L61
	mov	rdx, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR -584[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, 0
.L62:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getlocalip, .-getlocalip
	.section	.rodata
.LC32:
	.string	"DELE"
	.text
	.globl	cmd_dele
	.type	cmd_dele, @function
cmd_dele:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cmd_dele, .-cmd_dele
	.section	.rodata
.LC33:
	.string	"RNFR"
	.text
	.globl	cmd_rnfr
	.type	cmd_rnfr, @function
cmd_rnfr:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cmd_rnfr, .-cmd_rnfr
	.section	.rodata
.LC34:
	.string	"CWD"
	.text
	.globl	cmd_cd
	.type	cmd_cd, @function
cmd_cd:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC34[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	mov	eax, 0
	call	cmd_pwd
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	cmd_cd, .-cmd_cd
	.section	.rodata
.LC35:
	.string	"MKD"
	.text
	.globl	cmd_mkd
	.type	cmd_mkd, @function
cmd_mkd:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC35[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	cmd_mkd, .-cmd_mkd
	.section	.rodata
.LC36:
	.string	"RMD"
	.text
	.globl	cmd_rmd
	.type	cmd_rmd, @function
cmd_rmd:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC36[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	cmd_rmd, .-cmd_rmd
	.section	.rodata
.LC37:
	.string	"PASV"
	.align 8
.LC38:
	.string	"227 Entering Passive Mode (%lu,%lu,%lu,%lu,%lu,%lu)."
.LC39:
	.string	"data socket() failed"
.LC40:
	.string	"data connect failed"
	.text
	.globl	cmd_pasv
	.type	cmd_pasv, @function
cmd_pasv:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	lea	rdi, .LC37[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	lea	rdi, -56[rbp]
	lea	rsi, -64[rbp]
	lea	rdx, -72[rbp]
	lea	rax, -80[rbp]
	lea	rcx, -40[rbp]
	push	rcx
	lea	rcx, -48[rbp]
	push	rcx
	mov	r9, rdi
	mov	r8, rsi
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC38[rip]
	lea	rdi, buffer[rip]
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -80[rbp]
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	sal	eax, 16
	add	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	sal	eax, 8
	add	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	eax, edx
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -88[rbp], eax
	mov	DWORD PTR -84[rbp], 16
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	rax, QWORD PTR -48[rbp]
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	eax, edx
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR data_sock[rip], eax
	mov	eax, DWORD PTR data_sock[rip]
	cmp	eax, -1
	jne	.L70
	lea	rdi, .LC39[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L73
.L70:
	mov	eax, DWORD PTR data_sock[rip]
	mov	edx, DWORD PTR -84[rbp]
	lea	rcx, -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L72
	lea	rdi, .LC40[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L73
.L72:
	mov	eax, 0
.L73:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L74
	call	__stack_chk_fail@PLT
.L74:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	cmd_pasv, .-cmd_pasv
	.section	.rodata
.LC41:
	.string	">input yout userame:"
.LC42:
	.string	"USER"
.LC43:
	.string	">input your password:"
.LC44:
	.string	"PASS"
	.text
	.globl	user_login
	.type	user_login, @function
user_login:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
.L78:
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 254
	lea	rdi, UserInput[rip]
	call	fgets@PLT
	lea	rdi, UserInput[rip]
	call	strlen@PLT
	lea	rdx, -1[rax]
	lea	rax, UserInput[rip]
	mov	BYTE PTR [rdx+rax], 0
	lea	rsi, UserInput[rip]
	lea	rdi, .LC42[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	mov	eax, 0
	call	GetBufCode
	cmp	eax, 331
	jne	.L78
	lea	rdi, .LC43[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 254
	lea	rdi, UserInput[rip]
	call	fgets@PLT
	lea	rdi, UserInput[rip]
	call	strlen@PLT
	lea	rdx, -1[rax]
	lea	rax, UserInput[rip]
	mov	BYTE PTR [rdx+rax], 0
	lea	rsi, UserInput[rip]
	lea	rdi, .LC44[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	mov	eax, 0
	call	cmd_syst
	nop
	lea	rdi, UserInput[rip]
	call	strlen@PLT
	mov	esi, eax
	lea	rdx, UserInput[rip]
	mov	eax, 0
	cmp	esi, 8
	jb	.L79
	mov	ecx, esi
	shr	ecx, 3
	mov	ecx, ecx
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
.L79:
	mov	ecx, esi
	and	ecx, 4
	test	ecx, ecx
	je	.L80
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
.L80:
	mov	ecx, esi
	and	ecx, 2
	test	ecx, ecx
	je	.L81
	mov	WORD PTR [rdx], ax
	add	rdx, 2
.L81:
	and	esi, 1
	mov	ecx, esi
	test	ecx, ecx
	je	.L84
	mov	BYTE PTR [rdx], al
	add	rdx, 1
.L84:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	user_login, .-user_login
	.section	.rodata
.LC45:
	.string	"SYST"
	.text
	.globl	cmd_syst
	.type	cmd_syst, @function
cmd_syst:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 0
	lea	rdi, .LC45[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	cmd_syst, .-cmd_syst
	.section	.rodata
.LC46:
	.string	"TYPE"
	.text
	.globl	cmd_type
	.type	cmd_type, @function
cmd_type:
.LFB17:
	.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]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 65
	je	.L87
	cmp	eax, 73
	je	.L88
	jmp	.L86
.L87:
	mov	DWORD PTR TYPE[rip], 1
	jmp	.L90
.L88:
	mov	DWORD PTR TYPE[rip], 0
	nop
.L90:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
.L86:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	cmd_type, .-cmd_type
	.section	.rodata
	.align 8
.LC47:
	.string	"error when trying to get the local addr"
.LC48:
	.string	"socket create failed"
.LC49:
	.string	"%lu.%lu.%lu.%lu"
.LC50:
	.string	"%lu,%lu,%lu,%lu,%lu,%lu"
.LC51:
	.string	"PORT"
.LC52:
	.string	"Data accept failed"
.LC53:
	.string	"Data Socket Accept"
	.text
	.globl	cmd_port
	.type	cmd_port, @function
cmd_port:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 384
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	getlocalip
	cmp	eax, -1
	jne	.L93
	lea	rdi, .LC47[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L92
.L93:
	mov	WORD PTR -304[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -300[rbp], eax
	mov	WORD PTR -302[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -364[rbp], eax
	cmp	DWORD PTR -364[rbp], 0
	jns	.L95
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L92
.L95:
	lea	rcx, -304[rbp]
	mov	eax, DWORD PTR -364[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L96
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L92
.L96:
	mov	eax, DWORD PTR -364[rbp]
	mov	esi, 1
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L97
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L92
.L97:
	mov	DWORD PTR -372[rbp], 16
	lea	rdx, -372[rbp]
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -364[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getsockname@PLT
	movzx	eax, WORD PTR -286[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	QWORD PTR -328[rbp], rax
	lea	rdi, -336[rbp]
	lea	rsi, -344[rbp]
	lea	rcx, -352[rbp]
	lea	rdx, -360[rbp]
	lea	rax, -272[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC49[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -328[rbp]
	shr	rax, 8
	mov	QWORD PTR -320[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	movzx	eax, al
	mov	QWORD PTR -312[rbp], rax
	mov	rdi, QWORD PTR -336[rbp]
	mov	rsi, QWORD PTR -344[rbp]
	mov	rcx, QWORD PTR -352[rbp]
	mov	rdx, QWORD PTR -360[rbp]
	lea	rax, -144[rbp]
	push	QWORD PTR -312[rbp]
	push	QWORD PTR -320[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC50[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC51[rip]
	call	WriteToServer
	lea	rdx, -368[rbp]
	mov	eax, DWORD PTR -364[rbp]
	lea	rsi, data_addr[rip]
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR data_sock[rip], eax
	mov	eax, DWORD PTR data_sock[rip]
	test	eax, eax
	jns	.L98
	lea	rdi, .LC52[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L92
.L98:
	lea	rdi, .LC53[rip]
	call	puts@PLT
	mov	eax, 0
	call	ReadFromServer
	mov	eax, DWORD PTR -364[rbp]
	mov	edi, eax
	call	close@PLT
.L92:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L100
	call	__stack_chk_fail@PLT
.L100:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	cmd_port, .-cmd_port
	.section	.rodata
.LC54:
	.string	"LIST"
	.text
	.globl	cmd_list
	.type	cmd_list, @function
cmd_list:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4116[rbp], 0
	mov	DWORD PTR -4120[rbp], 0
	mov	eax, 0
	call	cmd_pasv
	cmp	eax, -1
	je	.L107
	mov	esi, 0
	lea	rdi, .LC54[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	jmp	.L104
.L105:
	lea	rax, -4112[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4116[rbp]
	add	DWORD PTR -4120[rbp], eax
	lea	rax, -4112[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 512
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
.L104:
	mov	eax, DWORD PTR data_sock[rip]
	lea	rcx, -4112[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	setg	al
	movzx	eax, al
	mov	DWORD PTR -4116[rbp], eax
	cmp	DWORD PTR -4116[rbp], 0
	jne	.L105
	mov	eax, DWORD PTR data_sock[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	call	ReadFromServer
	jmp	.L101
.L107:
	nop
.L101:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L106
	call	__stack_chk_fail@PLT
.L106:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	cmd_list, .-cmd_list
	.section	.rodata
.LC55:
	.string	"RETR"
.LC56:
	.string	"wb"
.LC57:
	.string	"fopen failed to open file"
.LC58:
	.string	"%d bytes get.\n"
	.text
	.globl	cmd_get
	.type	cmd_get, @function
cmd_get:
.LFB20:
	.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, 1096
	.cfi_offset 3, -24
	mov	QWORD PTR -1096[rbp], rdi
	mov	DWORD PTR -1100[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	WORD PTR -1074[rbp], 0
	mov	DWORD PTR -1068[rbp], 0
	mov	DWORD PTR -1072[rbp], 0
	cmp	DWORD PTR -1100[rbp], 0
	je	.L109
	cmp	DWORD PTR -1100[rbp], 1
	je	.L110
	jmp	.L114
.L109:
	mov	eax, 0
	call	cmd_port
	cmp	eax, -1
	jne	.L124
	jmp	.L108
.L110:
	mov	eax, 0
	call	cmd_pasv
	cmp	eax, -1
	je	.L125
	jmp	.L114
.L124:
	nop
.L114:
	mov	rax, QWORD PTR -1096[rbp]
	mov	rsi, rax
	lea	rdi, .LC55[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	mov	eax, 0
	call	GetBufCode
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	eax, 5
	je	.L126
	jmp	.L117
.L120:
	cmp	WORD PTR -1074[rbp], 0
	jne	.L118
	mov	rax, QWORD PTR -1096[rbp]
	lea	rsi, .LC56[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1064[rbp], rax
	cmp	QWORD PTR -1064[rbp], 0
	jne	.L119
	lea	rdi, .LC57[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR data_sock[rip]
	mov	edi, eax
	call	close@PLT
	jmp	.L108
.L119:
	mov	WORD PTR -1074[rbp], 1
.L118:
	mov	eax, DWORD PTR -1068[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	ecx, eax
	lea	rax, -1056[rbp]
	mov	rdx, rbx
	mov	rsi, rax
	mov	edi, ecx
	call	write@PLT
	mov	eax, DWORD PTR -1068[rbp]
	add	DWORD PTR -1072[rbp], eax
.L117:
	mov	eax, DWORD PTR data_sock[rip]
	lea	rcx, -1056[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1068[rbp], eax
	cmp	DWORD PTR -1068[rbp], 0
	jg	.L120
	cmp	WORD PTR -1074[rbp], 0
	je	.L121
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L121:
	mov	eax, DWORD PTR data_sock[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	call	ReadFromServer
	mov	eax, DWORD PTR -1072[rbp]
	mov	esi, eax
	lea	rdi, .LC58[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L108
.L125:
	nop
	jmp	.L108
.L126:
	nop
.L108:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L123
	call	__stack_chk_fail@PLT
.L123:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	cmd_get, .-cmd_get
	.section	.rodata
.LC59:
	.string	"rb"
.LC60:
	.string	"fopen() failed"
.LC61:
	.string	"STOR"
.LC62:
	.string	"%d bytes send\n"
	.text
	.globl	cmd_put
	.type	cmd_put, @function
cmd_put:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1072
	mov	QWORD PTR -1064[rbp], rdi
	mov	DWORD PTR -1068[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -1056[rbp], 0
	mov	rax, QWORD PTR -1064[rbp]
	lea	rsi, .LC59[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L128
	lea	rdi, .LC60[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L127
.L128:
	cmp	DWORD PTR -1068[rbp], 0
	je	.L130
	cmp	DWORD PTR -1068[rbp], 1
	je	.L131
	jmp	.L134
.L130:
	mov	eax, 0
	call	cmd_port
	cmp	eax, -1
	jne	.L140
	jmp	.L127
.L131:
	mov	eax, 0
	call	cmd_pasv
	cmp	eax, -1
	je	.L141
	jmp	.L134
.L140:
	nop
.L134:
	mov	rax, QWORD PTR -1064[rbp]
	mov	rsi, rax
	lea	rdi, .LC61[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	jmp	.L136
.L137:
	mov	eax, DWORD PTR -1052[rbp]
	add	DWORD PTR -1056[rbp], eax
	mov	eax, DWORD PTR -1052[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR data_sock[rip]
	lea	rcx, -1040[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rax, -1040[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L136:
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	ecx, eax
	lea	rax, -1040[rbp]
	mov	edx, 1024
	mov	rsi, rax
	mov	edi, ecx
	call	read@PLT
	mov	DWORD PTR -1052[rbp], eax
	cmp	DWORD PTR -1052[rbp], 0
	jg	.L137
	lea	rax, -1040[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR data_sock[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	call	ReadFromServer
	mov	eax, DWORD PTR -1056[rbp]
	mov	esi, eax
	lea	rdi, .LC62[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L127
.L141:
	nop
.L127:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L139
	call	__stack_chk_fail@PLT
.L139:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	cmd_put, .-cmd_put
	.section	.rodata
.LC63:
	.string	"%s\r\n"
.LC64:
	.string	"%s %s\r\n"
.LC65:
	.string	"%s %s"
	.text
	.globl	WriteToServer
	.type	WriteToServer, @function
WriteToServer:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	QWORD PTR -280[rbp], rdi
	mov	QWORD PTR -288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L143
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -272[rbp]
	lea	rsi, .LC63[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L144
.L143:
	mov	rcx, QWORD PTR -288[rbp]
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -272[rbp]
	lea	rsi, .LC64[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L144:
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR ServerSocket[rip]
	lea	rcx, -272[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rax, QWORD PTR toServer[rip]
	lea	rdx, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC65[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L145
	call	__stack_chk_fail@PLT
.L145:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	WriteToServer, .-WriteToServer
	.globl	ReadFromServer
	.type	ReadFromServer, @function
ReadFromServer:
.LFB23:
	.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 ServerSocket[rip]
	mov	edx, 1024
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR Res[rip], eax
	mov	eax, DWORD PTR Res[rip]
	sub	eax, 2
	cdqe
	lea	rdx, buffer[rip]
	mov	BYTE PTR [rax+rdx], 0
	lea	rdi, buffer[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	ReadFromServer, .-ReadFromServer
	.section	.rodata
.LC66:
	.string	"PWD"
	.text
	.globl	cmd_pwd
	.type	cmd_pwd, @function
cmd_pwd:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 0
	lea	rdi, .LC66[rip]
	call	WriteToServer
	mov	eax, 0
	call	ReadFromServer
	lea	rsi, buffer[rip]
	lea	rdi, workspace[rip]
	call	strcpy@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	cmd_pwd, .-cmd_pwd
	.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	"972354.c"
	.text
	.global	TYPE
	.bss
	.align	2
	.type	TYPE, %object
	.size	TYPE, 4
TYPE:
	.space	4
	.comm	buffer,1024,4
	.comm	UserInput,255,4
	.comm	ServerSocket,4,4
	.comm	data_sock,4,4
	.global	Res
	.align	2
	.type	Res, %object
	.size	Res, 4
Res:
	.space	4
	.comm	ServerAddr,16,4
	.comm	data_addr,16,4
	.global	toServer
	.section	.rodata
	.align	2
.LC0:
	.ascii	"to server =================>\000"
	.data
	.align	2
	.type	toServer, %object
	.size	toServer, 4
toServer:
	.word	.LC0
	.comm	workspace,128,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/\000"
	.align	2
.LC2:
	.ascii	"Please input the server IP\012Press Enter to confir"
	.ascii	"m:\012(For example(127.0.0.1))\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"Wrong ip please input again\000"
	.align	2
.LC5:
	.ascii	"Please input the server Port:\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"failed created socket\012recreate?[y/n]:\000"
	.align	2
.LC8:
	.ascii	"%c\000"
	.align	2
.LC9:
	.ascii	"failed connect\012reconnect?[y/n]:\000"
	.align	2
.LC10:
	.ascii	"connected to %s:%d\012\000"
	.align	2
.LC11:
	.ascii	"%s--:\000"
	.align	2
.LC12:
	.ascii	"quit\000"
	.align	2
.LC13:
	.ascii	"QUIT\000"
	.align	2
.LC14:
	.ascii	"abor\000"
	.align	2
.LC15:
	.ascii	"ABOR\000"
	.align	2
.LC16:
	.ascii	"syst\000"
	.align	2
.LC17:
	.ascii	"type\000"
	.align	2
.LC18:
	.ascii	"cd\000"
	.align	2
.LC19:
	.ascii	"port\000"
	.align	2
.LC20:
	.ascii	"pasv\000"
	.align	2
.LC21:
	.ascii	"ls\000"
	.align	2
.LC22:
	.ascii	"getp\000"
	.align	2
.LC23:
	.ascii	"putp\000"
	.align	2
.LC24:
	.ascii	"geta\000"
	.align	2
.LC25:
	.ascii	"puta\000"
	.align	2
.LC26:
	.ascii	"mkd\000"
	.align	2
.LC27:
	.ascii	"rmd\000"
	.align	2
.LC28:
	.ascii	"rnfr\000"
	.align	2
.LC29:
	.ascii	"dele\000"
	.align	2
.LC30:
	.ascii	"pwd\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L41+4
	ldr	r3, .L41+8
	mov	r0, r2
	mov	r1, r3
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L13:
	ldr	r0, .L41+12
	bl	puts
.L4:
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, .L41+16
	bl	__isoc99_scanf
	sub	r3, fp, #136
	mov	r0, r3
	bl	inet_addr
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L38
	ldr	r0, .L41+20
	bl	puts
	b	.L4
.L38:
	nop
	ldr	r0, .L41+24
	bl	puts
	sub	r3, fp, #144
	mov	r1, r3
	ldr	r0, .L41+28
	bl	__isoc99_scanf
	mov	r2, #16
	mov	r1, #0
	ldr	r0, .L41+32
	bl	memset
	ldr	r3, .L41+32
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #136
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	ldr	r2, .L41+32
	str	r3, [r2, #4]
	ldr	r3, [fp, #-144]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L41+32
	strh	r2, [r3, #2]	@ movhi
	b	.L5
.L7:
	ldr	r0, .L41+36
	bl	printf
	sub	r3, fp, #146
	mov	r1, r3
	ldr	r0, .L41+40
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-146]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L5
	mov	r3, #0
	b	.L35
.L5:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L41+44
	str	r3, [r2]
	ldr	r3, .L41+44
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L7
	mov	r3, #32
	strb	r3, [fp, #-146]
	b	.L8
.L11:
	ldr	r0, .L41+48
	bl	printf
	sub	r3, fp, #146
	mov	r1, r3
	ldr	r0, .L41+40
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-146]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L9
	ldr	r3, .L41+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #0
	b	.L35
.L9:
	ldrb	r3, [fp, #-146]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L39
.L8:
	ldr	r3, .L41+44
	ldr	r3, [r3]
	mov	r2, #16
	ldr	r1, .L41+32
	mov	r0, r3
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	blt	.L11
	b	.L10
.L39:
	nop
.L10:
	ldrb	r3, [fp, #-146]	@ zero_extendqisi2
	cmp	r3, #121
	bne	.L40
	b	.L13
.L40:
	nop
.L14:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-145]
	ldrb	r3, [fp, #-145]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L14
	ldr	r2, [fp, #-144]
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, .L41+52
	bl	printf
	bl	ReadFromServer
	bl	user_login
.L34:
	ldr	r1, .L41+4
	ldr	r0, .L41+56
	bl	printf
	ldr	r3, .L41+60
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #254
	ldr	r0, .L41+64
	bl	fgets
	ldr	r0, .L41+64
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, .L41+64
	mov	r1, #0
	strb	r1, [r2, r3]
	mov	r2, #4
	ldr	r1, .L41+64
	ldr	r0, .L41+68
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	mov	r1, #0
	ldr	r0, .L41+72
	bl	WriteToServer
	bl	ReadFromServer
	b	.L17
.L16:
	mov	r2, #4
	ldr	r1, .L41+64
	ldr	r0, .L41+76
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	mov	r1, #0
	ldr	r0, .L41+80
	bl	WriteToServer
	bl	ReadFromServer
	b	.L17
.L18:
	mov	r2, #4
	ldr	r1, .L41+64
	ldr	r0, .L41+84
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	bl	cmd_syst
	b	.L34
.L19:
	mov	r2, #4
	ldr	r1, .L41+64
	ldr	r0, .L41+88
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L41+92
	bl	cmd_type
	b	.L34
.L21:
	mov	r2, #2
	ldr	r1, .L41+64
	ldr	r0, .L41+96
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r0, .L41+100
	bl	cmd_cd
	b	.L34
.L22:
	mov	r2, #4
	ldr	r1, .L41+64
	ldr	r0, .L41+104
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	bl	cmd_port
	b	.L34
.L23:
	mov	r2, #4
	ldr	r1, .L41+64
	ldr	r0, .L41+108
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	bl	cmd_pasv
	b	.L34
.L24:
	ldr	r1, .L41+64
	ldr	r0, .L41+112
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	bl	cmd_list
	b	.L34
.L25:
	mov	r2, #4
	ldr	r1, .L41+64
	ldr	r0, .L41+116
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	mov	r1, #0
	ldr	r0, .L41+92
	bl	cmd_get
	b	.L34
.L26:
	mov	r2, #4
	ldr	r1, .L41+64
	ldr	r0, .L41+120
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	mov	r1, #0
	ldr	r0, .L41+92
	bl	cmd_put
	b	.L34
.L27:
	mov	r2, #4
	ldr	r1, .L41+64
	ldr	r0, .L41+124
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	mov	r1, #1
	ldr	r0, .L41+92
	bl	cmd_get
	b	.L34
.L28:
	mov	r2, #4
	ldr	r1, .L41+64
	ldr	r0, .L41+128
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	mov	r1, #1
	ldr	r0, .L41+92
	bl	cmd_put
	b	.L34
.L29:
	mov	r2, #3
	ldr	r1, .L41+64
	ldr	r0, .L41+132
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r0, .L41+136
	bl	cmd_mkd
	b	.L34
.L30:
	mov	r2, #3
	ldr	r1, .L41+64
	ldr	r0, .L41+140
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r0, .L41+136
	bl	cmd_rmd
	b	.L34
.L31:
	mov	r2, #4
	ldr	r1, .L41+64
	ldr	r0, .L41+144
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	ldr	r0, .L41+92
	bl	cmd_rnfr
	b	.L34
.L32:
	mov	r2, #4
	ldr	r1, .L41+64
	ldr	r0, .L41+148
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r0, .L41+92
	bl	cmd_dele
	b	.L34
.L33:
	mov	r2, #3
	ldr	r1, .L41+64
	ldr	r0, .L41+152
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	bl	cmd_pwd
	b	.L34
.L17:
	ldr	r3, .L41+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #0
.L35:
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC31
	.word	workspace
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	ServerAddr
	.word	.LC7
	.word	.LC8
	.word	ServerSocket
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	stdin
	.word	UserInput
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	UserInput+5
	.word	.LC18
	.word	UserInput+3
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	UserInput+4
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.size	main, .-main
	.align	2
	.global	GetBufCode
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetBufCode, %function
GetBufCode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, .L57
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #2
	str	r3, [fp, #-12]
	b	.L44
.L54:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	b	.L45
.L48:
	ldr	r2, .L57
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L46
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L57
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L46
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	str	r3, [fp, #-12]
	b	.L47
.L46:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L45:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L48
.L47:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L49
	mvn	r3, #0
	str	r3, [fp, #-16]
.L49:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L52:
	ldr	r2, .L57
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L50
	ldr	r2, .L57
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L50
	ldr	r2, .L57
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L51
	ldr	r2, .L57
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L51
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r2, .L57
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r1, r3
	sub	r3, r3, #48
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L52
.L51:
	mvn	r3, #0
	str	r3, [fp, #-20]
	nop
.L50:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L44
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L56
.L44:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L54
	b	.L53
.L56:
	nop
.L53:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	buffer
	.size	GetBufCode, .-GetBufCode
	.section	.rodata
	.align	2
.LC32:
	.ascii	"127.0.0.1\000"
	.align	2
.LC33:
	.ascii	"10.0.2.15\000"
	.align	2
.LC34:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getlocalip
	.syntax unified
	.arm
	.fpu softvfp
	.type	getlocalip, %function
getlocalip:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #552
	str	r0, [fp, #-552]
	ldr	r3, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-544]
	mov	r3, #512
	str	r3, [fp, #-528]
	sub	r3, fp, #520
	str	r3, [fp, #-524]
	ldr	r3, [fp, #-552]
	ldr	r2, .L68+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #10
	mov	r2, r3
	bl	memcpy
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	bge	.L60
	mvn	r3, #0
	b	.L66
.L60:
	sub	r3, fp, #528
	mov	r2, r3
	ldr	r1, .L68+8
	ldr	r0, [fp, #-532]
	bl	ioctl
	ldr	r0, [fp, #-532]
	bl	close
	sub	r3, fp, #520
	str	r3, [fp, #-540]
	ldr	r3, [fp, #-528]
	lsr	r3, r3, #5
	str	r3, [fp, #-544]
	b	.L62
.L65:
	ldr	r3, [fp, #-540]
	add	r3, r3, #16
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	str	r0, [fp, #-536]
	ldr	r1, .L68+4
	ldr	r0, [fp, #-536]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	ldr	r3, [fp, #-540]
	add	r3, r3, #32
	str	r3, [fp, #-540]
	b	.L64
.L63:
	ldr	r1, .L68+12
	ldr	r0, [fp, #-536]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L64
	ldr	r3, [fp, #-540]
	add	r3, r3, #32
	str	r3, [fp, #-540]
	nop
.L64:
	ldr	r3, [fp, #-544]
	sub	r3, r3, #1
	str	r3, [fp, #-544]
.L62:
	ldr	r3, [fp, #-544]
	cmp	r3, #0
	bgt	.L65
	ldr	r1, [fp, #-536]
	ldr	r0, [fp, #-552]
	bl	strcpy
	mov	r3, #0
.L66:
	ldr	r2, .L68
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L67
	bl	__stack_chk_fail
.L67:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC34
	.word	.LC32
	.word	35090
	.word	.LC33
	.size	getlocalip, .-getlocalip
	.section	.rodata
	.align	2
.LC35:
	.ascii	"DELE\000"
	.text
	.align	2
	.global	cmd_dele
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_dele, %function
cmd_dele:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L71
	bl	WriteToServer
	bl	ReadFromServer
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC35
	.size	cmd_dele, .-cmd_dele
	.section	.rodata
	.align	2
.LC36:
	.ascii	"RNFR\000"
	.text
	.align	2
	.global	cmd_rnfr
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_rnfr, %function
cmd_rnfr:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L74
	bl	WriteToServer
	bl	ReadFromServer
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC36
	.size	cmd_rnfr, .-cmd_rnfr
	.section	.rodata
	.align	2
.LC37:
	.ascii	"CWD\000"
	.text
	.align	2
	.global	cmd_cd
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_cd, %function
cmd_cd:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L77
	bl	WriteToServer
	bl	ReadFromServer
	bl	cmd_pwd
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC37
	.size	cmd_cd, .-cmd_cd
	.section	.rodata
	.align	2
.LC38:
	.ascii	"MKD\000"
	.text
	.align	2
	.global	cmd_mkd
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_mkd, %function
cmd_mkd:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L80
	bl	WriteToServer
	bl	ReadFromServer
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L81:
	.align	2
.L80:
	.word	.LC38
	.size	cmd_mkd, .-cmd_mkd
	.section	.rodata
	.align	2
.LC39:
	.ascii	"RMD\000"
	.text
	.align	2
	.global	cmd_rmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_rmd, %function
cmd_rmd:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L83
	bl	WriteToServer
	bl	ReadFromServer
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC39
	.size	cmd_rmd, .-cmd_rmd
	.section	.rodata
	.align	2
.LC40:
	.ascii	"PASV\000"
	.align	2
.LC41:
	.ascii	"227 Entering Passive Mode (%lu,%lu,%lu,%lu,%lu,%lu)"
	.ascii	".\000"
	.align	2
.LC42:
	.ascii	"data socket() failed\000"
	.align	2
.LC43:
	.ascii	"data connect failed\000"
	.align	2
.LC44:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cmd_pasv
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_pasv, %function
cmd_pasv:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L91
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, .L91+4
	bl	WriteToServer
	bl	ReadFromServer
	sub	r1, fp, #52
	sub	r2, fp, #56
	sub	r3, fp, #36
	str	r3, [sp, #12]
	sub	r3, fp, #40
	str	r3, [sp, #8]
	sub	r3, fp, #44
	str	r3, [sp, #4]
	sub	r3, fp, #48
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L91+8
	ldr	r0, .L91+12
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-56]
	lsl	r2, r3, #24
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #16
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #8
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #16
	str	r3, [fp, #-28]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	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
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L91+16
	str	r3, [r2]
	ldr	r3, .L91+16
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L86
	ldr	r0, .L91+20
	bl	puts
	mvn	r3, #0
	b	.L89
.L86:
	ldr	r3, .L91+16
	ldr	r3, [r3]
	sub	r1, fp, #24
	ldr	r2, [fp, #-28]
	mov	r0, r3
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L88
	ldr	r0, .L91+24
	bl	puts
	mvn	r3, #0
	b	.L89
.L88:
	mov	r3, #0
.L89:
	ldr	r2, .L91
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L90
	bl	__stack_chk_fail
.L90:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L92:
	.align	2
.L91:
	.word	.LC44
	.word	.LC40
	.word	.LC41
	.word	buffer
	.word	data_sock
	.word	.LC42
	.word	.LC43
	.size	cmd_pasv, .-cmd_pasv
	.section	.rodata
	.align	2
.LC45:
	.ascii	">input yout userame:\000"
	.align	2
.LC46:
	.ascii	"USER\000"
	.align	2
.LC47:
	.ascii	">input your password:\000"
	.align	2
.LC48:
	.ascii	"PASS\000"
	.text
	.align	2
	.global	user_login
	.syntax unified
	.arm
	.fpu softvfp
	.type	user_login, %function
user_login:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
.L96:
	ldr	r0, .L98
	bl	printf
	ldr	r3, .L98+4
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #254
	ldr	r0, .L98+8
	bl	fgets
	ldr	r0, .L98+8
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, .L98+8
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r1, .L98+8
	ldr	r0, .L98+12
	bl	WriteToServer
	bl	ReadFromServer
	bl	GetBufCode
	mov	r3, r0
	ldr	r2, .L98+16
	cmp	r3, r2
	bne	.L96
	ldr	r0, .L98+20
	bl	puts
	ldr	r3, .L98+4
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #254
	ldr	r0, .L98+8
	bl	fgets
	ldr	r0, .L98+8
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, .L98+8
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r1, .L98+8
	ldr	r0, .L98+24
	bl	WriteToServer
	bl	ReadFromServer
	bl	cmd_syst
	nop
	ldr	r0, .L98+8
	bl	strlen
	mov	r2, r0
	ldr	r3, .L98+8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	nop
	pop	{fp, pc}
.L99:
	.align	2
.L98:
	.word	.LC45
	.word	stdin
	.word	UserInput
	.word	.LC46
	.word	331
	.word	.LC47
	.word	.LC48
	.size	user_login, .-user_login
	.section	.rodata
	.align	2
.LC49:
	.ascii	"SYST\000"
	.text
	.align	2
	.global	cmd_syst
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_syst, %function
cmd_syst:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #0
	ldr	r0, .L101
	bl	WriteToServer
	bl	ReadFromServer
	nop
	pop	{fp, pc}
.L102:
	.align	2
.L101:
	.word	.LC49
	.size	cmd_syst, .-cmd_syst
	.section	.rodata
	.align	2
.LC50:
	.ascii	"TYPE\000"
	.text
	.align	2
	.global	cmd_type
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_type, %function
cmd_type:
	@ 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	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #65
	beq	.L104
	cmp	r3, #73
	beq	.L105
	b	.L103
.L104:
	ldr	r3, .L109
	mov	r2, #1
	str	r2, [r3]
	b	.L107
.L105:
	ldr	r3, .L109
	mov	r2, #0
	str	r2, [r3]
	nop
.L107:
	ldr	r1, [fp, #-8]
	ldr	r0, .L109+4
	bl	WriteToServer
	bl	ReadFromServer
.L103:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L110:
	.align	2
.L109:
	.word	TYPE
	.word	.LC50
	.size	cmd_type, .-cmd_type
	.section	.rodata
	.align	2
.LC51:
	.ascii	"error when trying to get the local addr\000"
	.align	2
.LC52:
	.ascii	"socket create failed\000"
	.align	2
.LC53:
	.ascii	"%lu.%lu.%lu.%lu\000"
	.align	2
.LC54:
	.ascii	"%lu,%lu,%lu,%lu,%lu,%lu\000"
	.align	2
.LC55:
	.ascii	"PORT\000"
	.align	2
.LC56:
	.ascii	"Data accept failed\000"
	.align	2
.LC57:
	.ascii	"Data Socket Accept\000"
	.align	2
.LC58:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cmd_port
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_port, %function
cmd_port:
	@ args = 0, pretend = 0, frame = 336
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #352
	ldr	r3, .L120
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #264
	mov	r0, r3
	bl	getlocalip
	mov	r3, r0
	cmn	r3, #1
	bne	.L112
	ldr	r0, .L120+4
	bl	puts
	mvn	r3, #0
	b	.L111
.L112:
	sub	r3, fp, #4
	sub	r3, r3, #292
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-292]
	sub	r3, fp, #4
	sub	r3, r3, #292
	mov	r2, #0
	strh	r2, [r3, #2]	@ movhi
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bge	.L114
	ldr	r0, .L120+8
	bl	printf
	mvn	r3, #0
	b	.L111
.L114:
	sub	r3, fp, #296
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-312]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L115
	ldr	r0, .L120+8
	bl	printf
	mvn	r3, #0
	b	.L111
.L115:
	mov	r1, #1
	ldr	r0, [fp, #-312]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L116
	ldr	r0, .L120+8
	bl	printf
	mvn	r3, #0
	b	.L111
.L116:
	mov	r3, #16
	str	r3, [fp, #-336]
	sub	r2, fp, #336
	sub	r3, fp, #280
	mov	r1, r3
	ldr	r0, [fp, #-312]
	bl	getsockname
	sub	r3, fp, #4
	sub	r3, r3, #276
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	str	r3, [fp, #-308]
	sub	r1, fp, #328
	sub	r2, fp, #332
	sub	r0, fp, #264
	sub	r3, fp, #320
	str	r3, [sp, #4]
	sub	r3, fp, #324
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L120+12
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-308]
	lsr	r3, r3, #8
	str	r3, [fp, #-304]
	ldr	r3, [fp, #-308]
	and	r3, r3, #255
	str	r3, [fp, #-300]
	ldr	ip, [fp, #-332]
	ldr	lr, [fp, #-328]
	ldr	r3, [fp, #-324]
	ldr	r2, [fp, #-320]
	sub	r0, fp, #136
	ldr	r1, [fp, #-300]
	str	r1, [sp, #12]
	ldr	r1, [fp, #-304]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	ldr	r1, .L120+16
	bl	sprintf
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, .L120+20
	bl	WriteToServer
	sub	r3, fp, #316
	mov	r2, r3
	ldr	r1, .L120+24
	ldr	r0, [fp, #-312]
	bl	accept
	mov	r3, r0
	ldr	r2, .L120+28
	str	r3, [r2]
	ldr	r3, .L120+28
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L117
	ldr	r0, .L120+32
	bl	puts
	mvn	r3, #0
	b	.L111
.L117:
	ldr	r0, .L120+36
	bl	puts
	bl	ReadFromServer
	ldr	r0, [fp, #-312]
	bl	close
.L111:
	ldr	r2, .L120
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L119
	bl	__stack_chk_fail
.L119:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L121:
	.align	2
.L120:
	.word	.LC58
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	data_addr
	.word	data_sock
	.word	.LC56
	.word	.LC57
	.size	cmd_port, .-cmd_port
	.section	.rodata
	.align	2
.LC59:
	.ascii	"LIST\000"
	.align	2
.LC60:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cmd_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_list, %function
cmd_list:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #16
	ldr	r3, .L129
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
	bl	cmd_pasv
	mov	r3, r0
	cmn	r3, #1
	beq	.L128
	mov	r1, #0
	ldr	r0, .L129+4
	bl	WriteToServer
	bl	ReadFromServer
	b	.L125
.L126:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L129+8
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-12]
	ldr	r3, [r3, #-8]
	add	r3, r2, r3
	str	r3, [r1, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #4096
	mov	r2, r3
	mov	r1, #0
	bl	memset
.L125:
	ldr	r3, .L129+12
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, r3
	bl	read
	mov	r3, r0
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	sub	r2, fp, #4096
	sub	r2, r2, #4
	str	r3, [r2, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L126
	ldr	r3, .L129+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	bl	ReadFromServer
	b	.L122
.L128:
	nop
.L122:
	ldr	r3, .L129
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L127
	bl	__stack_chk_fail
.L127:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L130:
	.align	2
.L129:
	.word	.LC60
	.word	.LC59
	.word	.LC3
	.word	data_sock
	.size	cmd_list, .-cmd_list
	.section	.rodata
	.align	2
.LC61:
	.ascii	"RETR\000"
	.align	2
.LC62:
	.ascii	"wb\000"
	.align	2
.LC63:
	.ascii	"fopen failed to open file\000"
	.align	2
.LC64:
	.ascii	"%d bytes get.\012\000"
	.align	2
.LC65:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cmd_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_get, %function
cmd_get:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	str	r0, [fp, #-1056]
	str	r1, [fp, #-1060]
	ldr	r3, .L150
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4
	sub	r3, r3, #1040
	sub	r3, r3, #2
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-1036]
	mov	r3, #0
	str	r3, [fp, #-1040]
	ldr	r3, [fp, #-1060]
	cmp	r3, #0
	beq	.L132
	ldr	r3, [fp, #-1060]
	cmp	r3, #1
	beq	.L133
	b	.L137
.L132:
	bl	cmd_port
	mov	r3, r0
	cmn	r3, #1
	bne	.L147
	b	.L131
.L133:
	bl	cmd_pasv
	mov	r3, r0
	cmn	r3, #1
	beq	.L148
	b	.L137
.L147:
	nop
.L137:
	ldr	r1, [fp, #-1056]
	ldr	r0, .L150+4
	bl	WriteToServer
	bl	ReadFromServer
	bl	GetBufCode
	mov	r3, r0
	ldr	r2, .L150+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	cmp	r3, #5
	beq	.L149
	b	.L140
.L143:
	sub	r3, fp, #4
	sub	r3, r3, #1040
	sub	r3, r3, #2
	ldrsh	r3, [r3]
	cmp	r3, #0
	bne	.L141
	ldr	r1, .L150+12
	ldr	r0, [fp, #-1056]
	bl	fopen
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bne	.L142
	ldr	r0, .L150+16
	bl	printf
	ldr	r3, .L150+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	b	.L131
.L142:
	sub	r3, fp, #4
	sub	r3, r3, #1040
	sub	r3, r3, #2
	mov	r2, #1
	strh	r2, [r3]	@ movhi
.L141:
	ldr	r0, [fp, #-1044]
	bl	fileno
	ldr	r2, [fp, #-1036]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	bl	write
	ldr	r2, [fp, #-1040]
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	str	r3, [fp, #-1040]
.L140:
	ldr	r3, .L150+20
	ldr	r0, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	bl	read
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bgt	.L143
	sub	r3, fp, #4
	sub	r3, r3, #1040
	sub	r3, r3, #2
	ldrsh	r3, [r3]
	cmp	r3, #0
	beq	.L144
	ldr	r0, [fp, #-1044]
	bl	fclose
.L144:
	ldr	r3, .L150+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	bl	ReadFromServer
	ldr	r1, [fp, #-1040]
	ldr	r0, .L150+24
	bl	printf
	b	.L131
.L148:
	nop
	b	.L131
.L149:
	nop
.L131:
	ldr	r3, .L150
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L146
	bl	__stack_chk_fail
.L146:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L151:
	.align	2
.L150:
	.word	.LC65
	.word	.LC61
	.word	1374389535
	.word	.LC62
	.word	.LC63
	.word	data_sock
	.word	.LC64
	.size	cmd_get, .-cmd_get
	.section	.rodata
	.align	2
.LC66:
	.ascii	"rb\000"
	.align	2
.LC67:
	.ascii	"fopen() failed\000"
	.align	2
.LC68:
	.ascii	"STOR\000"
	.align	2
.LC69:
	.ascii	"%d bytes send\012\000"
	.align	2
.LC70:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cmd_put
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_put, %function
cmd_put:
	@ 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]
	str	r1, [fp, #-1052]
	ldr	r3, .L167
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1032]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1044]
	ldr	r1, .L167+4
	ldr	r0, [fp, #-1048]
	bl	fopen
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	bne	.L153
	ldr	r0, .L167+8
	bl	printf
	b	.L152
.L153:
	ldr	r3, [fp, #-1052]
	cmp	r3, #0
	beq	.L155
	ldr	r3, [fp, #-1052]
	cmp	r3, #1
	beq	.L156
	b	.L159
.L155:
	bl	cmd_port
	mov	r3, r0
	cmn	r3, #1
	bne	.L165
	b	.L152
.L156:
	bl	cmd_pasv
	mov	r3, r0
	cmn	r3, #1
	beq	.L166
	b	.L159
.L165:
	nop
.L159:
	ldr	r1, [fp, #-1048]
	ldr	r0, .L167+12
	bl	WriteToServer
	bl	ReadFromServer
	b	.L161
.L162:
	ldr	r2, [fp, #-1044]
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	str	r3, [fp, #-1044]
	ldr	r3, .L167+16
	ldr	r0, [r3]
	ldr	r2, [fp, #-1036]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	bl	write
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L161:
	ldr	r0, [fp, #-1040]
	bl	fileno
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	bl	read
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bgt	.L162
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, [fp, #-1040]
	bl	fclose
	ldr	r3, .L167+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	bl	ReadFromServer
	ldr	r1, [fp, #-1044]
	ldr	r0, .L167+20
	bl	printf
	b	.L152
.L166:
	nop
.L152:
	ldr	r3, .L167
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L164
	bl	__stack_chk_fail
.L164:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L168:
	.align	2
.L167:
	.word	.LC70
	.word	.LC66
	.word	.LC67
	.word	.LC68
	.word	data_sock
	.word	.LC69
	.size	cmd_put, .-cmd_put
	.section	.rodata
	.align	2
.LC71:
	.ascii	"%s\015\012\000"
	.align	2
.LC72:
	.ascii	"%s %s\015\012\000"
	.align	2
.LC73:
	.ascii	"%s %s\000"
	.align	2
.LC74:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	WriteToServer
	.syntax unified
	.arm
	.fpu softvfp
	.type	WriteToServer, %function
WriteToServer:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #276
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	ldr	r3, .L173
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-284]
	cmp	r3, #0
	bne	.L170
	sub	r3, fp, #272
	ldr	r2, [fp, #-280]
	ldr	r1, .L173+4
	mov	r0, r3
	bl	sprintf
	b	.L171
.L170:
	sub	r0, fp, #272
	ldr	r3, [fp, #-284]
	ldr	r2, [fp, #-280]
	ldr	r1, .L173+8
	bl	sprintf
.L171:
	ldr	r3, .L173+12
	ldr	r4, [r3]
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #272
	mov	r1, r3
	mov	r0, r4
	bl	write
	ldr	r3, .L173+16
	ldr	r3, [r3]
	sub	r2, fp, #272
	mov	r1, r3
	ldr	r0, .L173+20
	bl	printf
	nop
	ldr	r3, .L173
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L172
	bl	__stack_chk_fail
.L172:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L174:
	.align	2
.L173:
	.word	.LC74
	.word	.LC71
	.word	.LC72
	.word	ServerSocket
	.word	toServer
	.word	.LC73
	.size	WriteToServer, .-WriteToServer
	.align	2
	.global	ReadFromServer
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReadFromServer, %function
ReadFromServer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L176
	ldr	r3, [r3]
	mov	r2, #1024
	ldr	r1, .L176+4
	mov	r0, r3
	bl	read
	mov	r3, r0
	ldr	r2, .L176+8
	str	r3, [r2]
	ldr	r3, .L176+8
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L176+4
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r0, .L176+4
	bl	puts
	nop
	pop	{fp, pc}
.L177:
	.align	2
.L176:
	.word	ServerSocket
	.word	buffer
	.word	Res
	.size	ReadFromServer, .-ReadFromServer
	.section	.rodata
	.align	2
.LC75:
	.ascii	"PWD\000"
	.text
	.align	2
	.global	cmd_pwd
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_pwd, %function
cmd_pwd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #0
	ldr	r0, .L179
	bl	WriteToServer
	bl	ReadFromServer
	ldr	r1, .L179+4
	ldr	r0, .L179+8
	bl	strcpy
	nop
	pop	{fp, pc}
.L180:
	.align	2
.L179:
	.word	.LC75
	.word	buffer
	.word	workspace
	.size	cmd_pwd, .-cmd_pwd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
