	.file	"996766.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Hello, this is FTP client.\nGetting more informations, type help.\nBut first type \"link ip port\" to get link to the server.\n$ "
.LC1:
	.string	"Fgets Error."
.LC2:
	.string	"link"
.LC3:
	.string	"Socket Error."
.LC4:
	.string	"Connect Error."
	.align 8
.LC5:
	.string	"The server with IP address \"%s\" has accepted your connection.\n"
.LC6:
	.string	"fail command."
.LC7:
	.string	"$ "
.LC8:
	.string	"leave"
.LC9:
	.string	"Bye bye ~~"
.LC10:
	.string	"Write Error."
.LC11:
	.string	"sendc"
.LC12:
	.string	" %Y//%m//%d %H:%M"
.LC13:
	.string	"r"
.LC14:
	.string	"File open failed."
.LC15:
	.string	"Time to upload: "
.LC16:
	.string	"send"
	.align 8
.LC17:
	.string	"Sending a file \"%s\" with size of %d bytes.\n"
.LC18:
	.string	"help"
	.align 8
.LC19:
	.string	"Type \"send\" to send file to the server."
	.align 8
.LC20:
	.string	"Type \"sendc\" to send compressed file to the server."
	.align 8
.LC21:
	.string	"Type \"leave\" to terminate the connection with the server."
.LC22:
	.string	"decode"
	.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, 1200
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -1094[rbp], 32
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1040[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L2
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rdx, -1094[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1168[rbp], rax
	lea	rax, -1094[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1168[rbp], rax
	lea	rax, -1094[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1160[rbp], rax
	mov	rax, QWORD PTR -1160[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -1184[rbp], eax
	lea	rax, -1040[rbp]
	mov	edx, 4
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L3
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1188[rbp], eax
	cmp	DWORD PTR -1188[rbp], 0
	jns	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rax, -1120[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -1120[rbp], 2
	mov	eax, DWORD PTR -1184[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -1118[rbp], ax
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -1116[rbp], eax
	lea	rcx, -1120[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rax, -1040[rbp]
	add	rax, 5
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L3:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L24:
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1040[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L7
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rax, -1040[rbp]
	mov	edx, 5
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L8
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -1180[rbp], eax
	cmp	DWORD PTR -1180[rbp], 0
	jns	.L9
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -1188[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	lea	rax, -1040[rbp]
	mov	edx, 5
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L10
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	compression
	movabs	rax, 104884802449219
	mov	QWORD PTR -1082[rbp], rax
	mov	WORD PTR -1074[rbp], 0
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -1176[rbp], rax
	lea	rax, -1176[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -1136[rbp], rax
	mov	rdx, QWORD PTR -1136[rbp]
	lea	rax, -1072[rbp]
	mov	rcx, rdx
	lea	rdx, .LC12[rip]
	mov	esi, 26
	mov	rdi, rax
	call	strftime@PLT
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -1180[rbp], eax
	cmp	DWORD PTR -1180[rbp], 0
	jns	.L11
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	lea	rax, -1040[rbp]
	add	rax, 6
	lea	rdx, -1092[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	lea	rdx, -1092[rbp]
	lea	rax, -1082[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1082[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1128[rbp], rax
	cmp	QWORD PTR -1128[rbp], 0
	jne	.L12
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -1128[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -1128[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -1192[rbp], eax
	mov	rax, QWORD PTR -1128[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	lea	rcx, -1192[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -1180[rbp], eax
	cmp	DWORD PTR -1180[rbp], 0
	jns	.L14
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rdx, QWORD PTR -1128[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	mov	edx, 512
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1180[rbp], eax
	mov	eax, DWORD PTR -1180[rbp]
	movsx	rdx, eax
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L14
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1128[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -1128[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -1128[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1072[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L24
.L10:
	lea	rax, -1040[rbp]
	mov	edx, 4
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L17
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -1176[rbp], rax
	lea	rax, -1176[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -1152[rbp], rax
	mov	rdx, QWORD PTR -1152[rbp]
	lea	rax, -1072[rbp]
	mov	rcx, rdx
	lea	rdx, .LC12[rip]
	mov	esi, 26
	mov	rdi, rax
	call	strftime@PLT
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -1180[rbp], eax
	cmp	DWORD PTR -1180[rbp], 0
	jns	.L18
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	lea	rax, -1040[rbp]
	add	rax, 5
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1144[rbp], rax
	cmp	QWORD PTR -1144[rbp], 0
	jne	.L19
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	rax, QWORD PTR -1144[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -1144[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -1192[rbp], eax
	mov	rax, QWORD PTR -1144[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	lea	rcx, -1192[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -1180[rbp], eax
	cmp	DWORD PTR -1180[rbp], 0
	jns	.L21
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	rdx, QWORD PTR -1144[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	mov	edx, 512
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1180[rbp], eax
	mov	eax, DWORD PTR -1180[rbp]
	movsx	rdx, eax
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L21
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1144[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	mov	rax, QWORD PTR -1144[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L22
	mov	rax, QWORD PTR -1144[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edx, DWORD PTR -1192[rbp]
	lea	rax, -1040[rbp]
	add	rax, 5
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1072[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L24
.L17:
	lea	rax, -1040[rbp]
	mov	edx, 4
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L23
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	jmp	.L24
.L23:
	lea	rax, -1040[rbp]
	mov	edx, 6
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L24
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -1180[rbp], eax
	cmp	DWORD PTR -1180[rbp], 0
	jns	.L24
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC23:
	.string	"File open failed1."
.LC24:
	.string	"w"
.LC25:
	.string	"Coded.txt"
.LC26:
	.string	"File open failed2."
.LC27:
	.string	"%d"
.LC28:
	.string	" %d"
.LC29:
	.string	" %d\n"
.LC30:
	.string	"%c "
.LC32:
	.string	" %d %3.1f"
	.align 8
.LC33:
	.string	"Original file length : %d bytes,"
	.align 8
.LC35:
	.string	" compressed file length : %d bytes(ratio: %2f)\n"
	.align 8
.LC36:
	.string	"Use fixed-length code word %d bits.\n"
	.text
	.globl	compression
	.type	compression, @function
compression:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 2232
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -2264[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movabs	rax, 104884802449219
	mov	QWORD PTR -66[rbp], rax
	mov	WORD PTR -58[rbp], 0
	mov	DWORD PTR -2236[rbp], 0
	mov	DWORD PTR -2232[rbp], 0
	mov	DWORD PTR -2228[rbp], 0
	mov	rax, QWORD PTR -2264[rbp]
	add	rax, 6
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2176[rbp], rax
	mov	rax, QWORD PTR -2264[rbp]
	add	rax, 6
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -2264[rbp]
	lea	rdx, 6[rax]
	lea	rax, -76[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	cmp	QWORD PTR -2176[rbp], 0
	jne	.L27
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	DWORD PTR -2224[rbp], 0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -2224[rbp]
	cdqe
	mov	DWORD PTR -2128[rbp+rax*4], 0
	add	DWORD PTR -2224[rbp], 1
.L28:
	cmp	DWORD PTR -2224[rbp], 255
	jle	.L29
	jmp	.L30
.L33:
	movsx	eax, BYTE PTR -2241[rbp]
	cdqe
	mov	eax, DWORD PTR -2128[rbp+rax*4]
	test	eax, eax
	jne	.L32
	add	DWORD PTR -2236[rbp], 1
.L32:
	movsx	eax, BYTE PTR -2241[rbp]
	movsx	rdx, eax
	mov	edx, DWORD PTR -2128[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -2128[rbp+rax*4], edx
	add	DWORD PTR -2228[rbp], 1
.L30:
	mov	rax, QWORD PTR -2176[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -2241[rbp], al
	cmp	BYTE PTR -2241[rbp], -1
	jne	.L33
	mov	eax, DWORD PTR -2236[rbp]
	mov	DWORD PTR -2240[rbp], eax
	jmp	.L34
.L35:
	add	DWORD PTR -2232[rbp], 1
	mov	eax, DWORD PTR -2240[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -2240[rbp], eax
.L34:
	cmp	DWORD PTR -2240[rbp], 0
	jne	.L35
	mov	eax, DWORD PTR -2232[rbp]
	mov	rdx, rsp
	mov	rbx, rdx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -2168[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L36:
	cmp	rsp, rdx
	je	.L37
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L36
.L37:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L38
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L38:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -2160[rbp], rax
	mov	eax, DWORD PTR -2236[rbp]
	mov	DWORD PTR -2196[rbp], eax
	mov	DWORD PTR -2220[rbp], 0
	jmp	.L39
.L42:
	mov	eax, DWORD PTR -2220[rbp]
	cdqe
	mov	eax, DWORD PTR -2128[rbp+rax*4]
	test	eax, eax
	je	.L40
	mov	eax, DWORD PTR -2196[rbp]
	sub	eax, DWORD PTR -2236[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -2220[rbp]
	cdqe
	mov	DWORD PTR -1104[rbp+rax*4], edx
	sub	DWORD PTR -2236[rbp], 1
	jmp	.L41
.L40:
	mov	eax, DWORD PTR -2220[rbp]
	cdqe
	mov	DWORD PTR -1104[rbp+rax*4], 0
.L41:
	add	DWORD PTR -2220[rbp], 1
.L39:
	cmp	DWORD PTR -2220[rbp], 255
	jle	.L42
	mov	rax, QWORD PTR -2176[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	lea	rdx, -76[rbp]
	lea	rax, -66[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -66[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2152[rbp], rax
	lea	rsi, .LC24[rip]
	lea	rdi, .LC25[rip]
	call	fopen@PLT
	mov	QWORD PTR -2144[rbp], rax
	cmp	QWORD PTR -2152[rbp], 0
	jne	.L43
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L43:
	mov	DWORD PTR -2212[rbp], 0
	mov	edx, DWORD PTR -2232[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR -2196[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR -2228[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L44
.L51:
	mov	DWORD PTR -2212[rbp], 0
	mov	DWORD PTR -2208[rbp], 0
	jmp	.L45
.L46:
	mov	rax, QWORD PTR -2160[rbp]
	mov	edx, DWORD PTR -2208[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	add	DWORD PTR -2208[rbp], 1
.L45:
	mov	eax, DWORD PTR -2208[rbp]
	cmp	eax, DWORD PTR -2232[rbp]
	jl	.L46
	movsx	eax, BYTE PTR -2241[rbp]
	cdqe
	mov	eax, DWORD PTR -1104[rbp+rax*4]
	mov	DWORD PTR -2216[rbp], eax
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -2216[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	ecx, eax
	mov	rax, QWORD PTR -2160[rbp]
	mov	edx, DWORD PTR -2212[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -2212[rbp], 1
	mov	eax, DWORD PTR -2216[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -2216[rbp], eax
.L47:
	cmp	DWORD PTR -2216[rbp], 0
	jg	.L48
	mov	eax, DWORD PTR -2232[rbp]
	sub	eax, 1
	mov	DWORD PTR -2212[rbp], eax
	jmp	.L49
.L50:
	mov	rax, QWORD PTR -2160[rbp]
	mov	edx, DWORD PTR -2212[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -2152[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	sub	DWORD PTR -2212[rbp], 1
.L49:
	cmp	DWORD PTR -2212[rbp], 0
	jns	.L50
.L44:
	mov	rax, QWORD PTR -2176[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -2241[rbp], al
	cmp	BYTE PTR -2241[rbp], -1
	jne	.L51
	mov	DWORD PTR -2204[rbp], 0
	jmp	.L52
.L60:
	mov	eax, DWORD PTR -2204[rbp]
	cdqe
	mov	eax, DWORD PTR -2128[rbp+rax*4]
	test	eax, eax
	je	.L53
	mov	eax, DWORD PTR -2204[rbp]
	cdqe
	mov	eax, DWORD PTR -2128[rbp+rax*4]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -2228[rbp]
	divsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -2180[rbp], xmm0
	mov	DWORD PTR -2212[rbp], 0
	mov	edx, DWORD PTR -2204[rbp]
	mov	rax, QWORD PTR -2144[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -2200[rbp], 0
	jmp	.L54
.L55:
	mov	rax, QWORD PTR -2160[rbp]
	mov	edx, DWORD PTR -2200[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	add	DWORD PTR -2200[rbp], 1
.L54:
	mov	eax, DWORD PTR -2200[rbp]
	cmp	eax, DWORD PTR -2232[rbp]
	jl	.L55
	mov	eax, DWORD PTR -2204[rbp]
	cdqe
	mov	eax, DWORD PTR -1104[rbp+rax*4]
	mov	DWORD PTR -2216[rbp], eax
	jmp	.L56
.L57:
	mov	eax, DWORD PTR -2216[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	ecx, eax
	mov	rax, QWORD PTR -2160[rbp]
	mov	edx, DWORD PTR -2212[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -2212[rbp], 1
	mov	eax, DWORD PTR -2216[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -2216[rbp], eax
.L56:
	cmp	DWORD PTR -2216[rbp], 0
	jg	.L57
	mov	eax, DWORD PTR -2232[rbp]
	sub	eax, 1
	mov	DWORD PTR -2212[rbp], eax
	jmp	.L58
.L59:
	mov	rax, QWORD PTR -2160[rbp]
	mov	edx, DWORD PTR -2212[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -2144[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	sub	DWORD PTR -2212[rbp], 1
.L58:
	cmp	DWORD PTR -2212[rbp], 0
	jns	.L59
	movss	xmm1, DWORD PTR -2180[rbp]
	movss	xmm0, DWORD PTR .LC31[rip]
	mulss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rcx, xmm2
	mov	eax, DWORD PTR -2204[rbp]
	cdqe
	mov	edx, DWORD PTR -2128[rbp+rax*4]
	mov	rax, QWORD PTR -2144[rbp]
	movq	xmm0, rcx
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	rax, QWORD PTR -2144[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L53:
	add	DWORD PTR -2204[rbp], 1
.L52:
	cmp	DWORD PTR -2204[rbp], 255
	jle	.L60
	mov	rax, QWORD PTR -2176[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -2176[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -2192[rbp], eax
	mov	rax, QWORD PTR -2152[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -2152[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -2188[rbp], eax
	mov	rax, QWORD PTR -2144[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -2152[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -2176[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -2188[rbp]
	and	eax, 7
	test	eax, eax
	je	.L61
	mov	eax, DWORD PTR -2188[rbp]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	add	eax, 1
	jmp	.L62
.L61:
	mov	eax, DWORD PTR -2188[rbp]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
.L62:
	mov	DWORD PTR -2184[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -2184[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -2192[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -2136[rbp], xmm0
	mov	eax, DWORD PTR -2192[rbp]
	mov	esi, eax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	movsd	xmm1, QWORD PTR -2136[rbp]
	movsd	xmm0, QWORD PTR .LC34[rip]
	mulsd	xmm1, xmm0
	movq	rdx, xmm1
	mov	eax, DWORD PTR -2184[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC35[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -2232[rbp]
	mov	esi, eax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compression, .-compression
	.section	.rodata
	.align 4
.LC31:
	.long	1120403456
	.align 8
.LC34:
	.long	0
	.long	1079574528
	.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	"996766.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hello, this is FTP client.\012Getting more informat"
	.ascii	"ions, type help.\012But first type \"link ip port\""
	.ascii	" to get link to the server.\012$ \000"
	.align	2
.LC1:
	.ascii	"Fgets Error.\000"
	.align	2
.LC2:
	.ascii	"link\000"
	.align	2
.LC3:
	.ascii	"Socket Error.\000"
	.align	2
.LC4:
	.ascii	"Connect Error.\000"
	.align	2
.LC5:
	.ascii	"The server with IP address \"%s\" has accepted your"
	.ascii	" connection.\012\000"
	.align	2
.LC6:
	.ascii	"fail command.\000"
	.align	2
.LC7:
	.ascii	"$ \000"
	.align	2
.LC8:
	.ascii	"leave\000"
	.align	2
.LC9:
	.ascii	"Bye bye ~~\000"
	.align	2
.LC10:
	.ascii	"Write Error.\000"
	.align	2
.LC11:
	.ascii	"sendc\000"
	.align	2
.LC13:
	.ascii	" %Y//%m//%d %H:%M\000"
	.align	2
.LC14:
	.ascii	"r\000"
	.align	2
.LC15:
	.ascii	"File open failed.\000"
	.align	2
.LC16:
	.ascii	"Time to upload: \000"
	.align	2
.LC17:
	.ascii	"send\000"
	.align	2
.LC18:
	.ascii	"Sending a file \"%s\" with size of %d bytes.\012\000"
	.align	2
.LC19:
	.ascii	"help\000"
	.align	2
.LC20:
	.ascii	"Type \"send\" to send file to the server.\000"
	.align	2
.LC21:
	.ascii	"Type \"sendc\" to send compressed file to the serve"
	.ascii	"r.\000"
	.align	2
.LC22:
	.ascii	"Type \"leave\" to terminate the connection with the"
	.ascii	" server.\000"
	.align	2
.LC23:
	.ascii	"decode\000"
	.align	2
.LC12:
	.ascii	"Coded_\000"
	.space	3
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1136
	sub	sp, sp, #8
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4
	sub	r3, r3, #1072
	sub	r3, r3, #12
	mov	r2, #32
	strh	r2, [r3]	@ movhi
	ldr	r0, .L26+4
	bl	printf
	ldr	r3, .L26+8
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L26+12
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1028]
	sub	r2, fp, #1072
	sub	r2, r2, #4
	sub	r2, r2, #12
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-1136]
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1136]
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1132]
	ldr	r0, [fp, #-1132]
	bl	atoi
	str	r0, [fp, #-1128]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4
	ldr	r1, .L26+16
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1140]
	ldr	r3, [fp, #-1140]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L26+20
	bl	puts
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #1088
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #4
	sub	r3, r3, #1088
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-1128]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1088
	sub	r3, r3, #12
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, [fp, #-1136]
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-1100]
	sub	r3, fp, #1088
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1140]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L26+24
	bl	puts
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #5
	mov	r1, r3
	ldr	r0, .L26+28
	bl	printf
	b	.L24
.L3:
	ldr	r0, .L26+32
	bl	puts
.L24:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r0, .L26+36
	bl	printf
	ldr	r3, .L26+8
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L26+12
	bl	puts
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1028]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #5
	ldr	r1, .L26+40
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L26+44
	bl	puts
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-1140]
	bl	write
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L26+48
	bl	puts
	mov	r0, #1
	bl	exit
.L9:
	ldr	r0, [fp, #-1140]
	bl	close
	mov	r0, #1
	bl	exit
.L8:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #5
	ldr	r1, .L26+52
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	compression
	ldr	r2, .L26+56
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #5
	mov	r2, #0
	mov	r1, r2
	strb	r1, [r3]
	mov	r1, r2
	strb	r1, [r3, #1]
	strb	r2, [r3, #2]
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-1144]
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-1112]
	sub	r0, fp, #1056
	sub	r0, r0, #4
	ldr	r3, [fp, #-1112]
	ldr	r2, .L26+60
	mov	r1, #26
	bl	strftime
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-1140]
	bl	write
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L26+48
	bl	puts
	mov	r0, #1
	bl	exit
.L11:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #6
	sub	r2, fp, #1072
	sub	r2, r2, #4
	sub	r2, r2, #8
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	sub	r2, fp, #1072
	sub	r2, r2, #4
	sub	r2, r2, #8
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L26+64
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1108]
	ldr	r3, [fp, #-1108]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L26+68
	bl	puts
	mov	r0, #1
	bl	exit
.L12:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-1108]
	bl	fseek
	ldr	r0, [fp, #-1108]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-1148]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1108]
	bl	fseek
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1140]
	bl	write
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L26+48
	bl	puts
	mov	r0, #1
	bl	exit
.L15:
	sub	r0, fp, #520
	ldr	r3, [fp, #-1108]
	mov	r2, #512
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-1124]
	ldr	r2, [fp, #-1124]
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, [fp, #-1140]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L26+48
	bl	puts
	ldr	r0, [fp, #-1108]
	bl	fclose
	mov	r0, #1
	bl	exit
.L14:
	ldr	r0, [fp, #-1108]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, [fp, #-1108]
	bl	fclose
	ldr	r0, .L26+72
	bl	printf
	sub	r3, fp, #1056
	sub	r3, r3, #4
	mov	r0, r3
	bl	puts
	b	.L24
.L10:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4
	ldr	r1, .L26+76
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-1144]
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-1120]
	sub	r0, fp, #1056
	sub	r0, r0, #4
	ldr	r3, [fp, #-1120]
	ldr	r2, .L26+60
	mov	r1, #26
	bl	strftime
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-1140]
	bl	write
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L26+48
	bl	puts
	mov	r0, #1
	bl	exit
.L18:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #5
	ldr	r1, .L26+64
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1116]
	ldr	r3, [fp, #-1116]
	cmp	r3, #0
	bne	.L19
	ldr	r0, .L26+68
	bl	puts
	mov	r0, #1
	bl	exit
.L19:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-1116]
	bl	fseek
	ldr	r0, [fp, #-1116]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-1148]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1116]
	bl	fseek
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-1140]
	bl	write
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmp	r3, #0
	bge	.L21
	ldr	r0, .L26+48
	bl	puts
	mov	r0, #1
	bl	exit
.L22:
	sub	r0, fp, #520
	ldr	r3, [fp, #-1116]
	mov	r2, #512
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-1124]
	ldr	r2, [fp, #-1124]
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, [fp, #-1140]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L21
	ldr	r0, .L26+48
	bl	puts
	ldr	r0, [fp, #-1116]
	bl	fclose
	mov	r0, #1
	bl	exit
.L21:
	ldr	r0, [fp, #-1116]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r0, [fp, #-1116]
	bl	fclose
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #5
	ldr	r2, [fp, #-1148]
	mov	r1, r3
	ldr	r0, .L26+80
	bl	printf
	ldr	r0, .L26+72
	bl	printf
	sub	r3, fp, #1056
	sub	r3, r3, #4
	mov	r0, r3
	bl	puts
	b	.L24
.L17:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4
	ldr	r1, .L26+84
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r0, .L26+88
	bl	puts
	ldr	r0, .L26+92
	bl	printf
	ldr	r0, .L26+96
	bl	puts
	b	.L24
.L23:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #6
	ldr	r1, .L26+100
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-1140]
	bl	write
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmp	r3, #0
	bge	.L24
	ldr	r0, .L26+48
	bl	puts
	mov	r0, #1
	bl	exit
.L27:
	.align	2
.L26:
	.word	.LC24
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.section	.rodata
	.align	2
.LC25:
	.ascii	"File open failed1.\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	compression
	.syntax unified
	.arm
	.fpu softvfp
	.type	compression, %function
compression:
	@ args = 0, pretend = 0, frame = 1088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1088
	str	r0, [fp, #-1088]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L38+4
	sub	r3, fp, #20
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #13
	mov	r2, #0
	mov	r1, r2
	strb	r1, [r3]
	mov	r1, r2
	strb	r1, [r3, #1]
	strb	r2, [r3, #2]
	mov	r3, #0
	str	r3, [fp, #-1068]
	mov	r3, #0
	str	r3, [fp, #-1060]
	mov	r3, #0
	str	r3, [fp, #-1076]
	ldr	r3, [fp, #-1088]
	add	r3, r3, #6
	ldr	r1, .L38+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1064]
	ldr	r3, [fp, #-1088]
	add	r3, r3, #6
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-1088]
	add	r2, r3, #6
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-1064]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L38+12
	bl	puts
	mov	r0, #1
	bl	exit
.L29:
	mov	r3, #0
	str	r3, [fp, #-1072]
	b	.L30
.L31:
	ldr	r3, [fp, #-1072]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1052]
	ldr	r3, [fp, #-1072]
	add	r3, r3, #1
	str	r3, [fp, #-1072]
.L30:
	ldr	r3, [fp, #-1072]
	cmp	r3, #255
	ble	.L31
	b	.L32
.L37:
	ldr	r3, [fp, #-1068]
	add	r3, r3, #1
	str	r3, [fp, #-1068]
.L34:
	ldrb	r2, [fp, #-1077]	@ zero_extendqisi2
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-1052]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-1052]
	ldr	r3, [fp, #-1076]
	add	r3, r3, #1
	str	r3, [fp, #-1076]
.L32:
	ldr	r0, [fp, #-1064]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-1077]
	ldrb	r3, [fp, #-1077]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1052]
	cmp	r3, #0
	bne	.L34
	b	.L37
.L39:
	.align	2
.L38:
	.word	.LC26
	.word	.LC12
	.word	.LC14
	.word	.LC25
	.size	compression, .-compression
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
