	.file	"247019473.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Couldn't create socket"
.LC1:
	.string	"Connect Error"
.LC2:
	.string	"connected"
	.align 8
.LC3:
	.string	"Enter a choice:\n1- get\n2- put\n3- mget\n4- mput\n5- del\n6- ls\n7- quit"
.LC4:
	.string	"%d"
.LC5:
	.string	"Enter the filename: "
.LC6:
	.string	"%s"
.LC7:
	.string	"File not found\n"
.LC8:
	.string	"File saved successfully!"
	.align 8
.LC9:
	.string	"Failed to save file on the server"
.LC10:
	.string	"going to get %s\n"
.LC11:
	.string	"going to send %s\n"
.LC12:
	.string	"File removed successfully!"
	.align 8
.LC13:
	.string	"Failed to remove file on the server"
.LC14:
	.string	"temp1.txt"
.LC15:
	.string	"Remote directory contents:"
.LC16:
	.string	"cat temp1.txt"
.LC17:
	.string	"Server closed\nQuitting.."
	.align 8
.LC18:
	.string	"Server failed to close connection"
	.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, 608
	mov	DWORD PTR -596[rbp], edi
	mov	QWORD PTR -608[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -556[rbp], 1
	mov	DWORD PTR -564[rbp], 0
	mov	DWORD PTR -560[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -552[rbp], eax
	cmp	DWORD PTR -552[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	WORD PTR -528[rbp], 2
	mov	rax, QWORD PTR -608[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	WORD PTR -526[rbp], ax
	mov	DWORD PTR -524[rbp], 0
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -548[rbp], eax
	cmp	DWORD PTR -548[rbp], -1
	jne	.L3
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	DWORD PTR -544[rbp], 1
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L55:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -580[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -580[rbp]
	cmp	eax, 7
	ja	.L55
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L6[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L6[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L55-.L6
	.long	.L12-.L6
	.long	.L11-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
.L12:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -368[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -336[rbp]
	mov	DWORD PTR [rax], 544499047
	mov	BYTE PTR 4[rax], 0
	lea	rdx, -368[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rsi, -336[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	send@PLT
	lea	rsi, -576[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	mov	eax, DWORD PTR -576[rbp]
	test	eax, eax
	jne	.L13
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L4
.L13:
	mov	eax, DWORD PTR -576[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	eax, DWORD PTR -576[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
.L17:
	lea	rax, -368[rbp]
	mov	edx, 438
	mov	esi, 193
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -540[rbp], eax
	cmp	DWORD PTR -540[rbp], -1
	jne	.L57
	lea	rax, -368[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -368[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -544[rbp]
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L17
.L57:
	nop
	mov	edx, DWORD PTR -576[rbp]
	mov	rsi, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR -540[rbp]
	mov	ecx, 0
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -540[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	lea	rax, -336[rbp]
	mov	DWORD PTR [rax], 544498019
	mov	BYTE PTR 4[rax], 0
	lea	rdx, -368[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L4
.L11:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -368[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -368[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -540[rbp], eax
	cmp	DWORD PTR -540[rbp], -1
	jne	.L18
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L4
.L18:
	lea	rax, -336[rbp]
	mov	DWORD PTR [rax], 544503152
	mov	BYTE PTR 4[rax], 0
	lea	rdx, -368[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rsi, -336[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	send@PLT
	lea	rdx, -512[rbp]
	lea	rax, -368[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rax, QWORD PTR -464[rbp]
	mov	DWORD PTR -576[rbp], eax
	lea	rsi, -576[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -576[rbp]
	movsx	rdx, eax
	mov	esi, DWORD PTR -540[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	edi, eax
	call	sendfile@PLT
	lea	rsi, -572[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	mov	eax, DWORD PTR -572[rbp]
	test	eax, eax
	je	.L19
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L4
.L19:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L4
.L10:
	mov	DWORD PTR -556[rbp], 1
	mov	DWORD PTR -560[rbp], 0
	mov	DWORD PTR -564[rbp], 0
	lea	rax, -568[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -224[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	mov	DWORD PTR -568[rbp], 0
.L39:
	mov	eax, DWORD PTR -564[rbp]
	cdqe
	movzx	eax, BYTE PTR -224[rbp+rax]
	cmp	al, 32
	jne	.L21
	mov	DWORD PTR -560[rbp], 0
	jmp	.L22
.L23:
	mov	edx, DWORD PTR -568[rbp]
	mov	eax, DWORD PTR -560[rbp]
	add	eax, edx
	cdqe
	movzx	edx, BYTE PTR -224[rbp+rax]
	mov	eax, DWORD PTR -560[rbp]
	cdqe
	mov	BYTE PTR -368[rbp+rax], dl
	add	DWORD PTR -560[rbp], 1
.L22:
	mov	edx, DWORD PTR -568[rbp]
	mov	eax, DWORD PTR -564[rbp]
	sub	eax, edx
	cmp	DWORD PTR -560[rbp], eax
	jle	.L23
	lea	rax, -368[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -336[rbp]
	mov	DWORD PTR [rax], 544499047
	mov	BYTE PTR 4[rax], 0
	lea	rdx, -368[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rsi, -336[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	send@PLT
	lea	rsi, -576[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	mov	eax, DWORD PTR -576[rbp]
	test	eax, eax
	jne	.L24
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L25
.L24:
	mov	eax, DWORD PTR -576[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	eax, DWORD PTR -576[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
.L29:
	lea	rax, -368[rbp]
	mov	edx, 438
	mov	esi, 193
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -540[rbp], eax
	cmp	DWORD PTR -540[rbp], -1
	jne	.L58
	lea	rax, -368[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -368[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -544[rbp]
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L29
.L58:
	nop
	mov	edx, DWORD PTR -576[rbp]
	mov	rsi, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR -540[rbp]
	mov	ecx, 0
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -540[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, DWORD PTR -564[rbp]
	add	eax, 1
	mov	DWORD PTR -568[rbp], eax
	jmp	.L30
.L21:
	mov	eax, DWORD PTR -564[rbp]
	cdqe
	movzx	eax, BYTE PTR -224[rbp+rax]
	test	al, al
	je	.L31
	mov	eax, DWORD PTR -564[rbp]
	cdqe
	movzx	eax, BYTE PTR -224[rbp+rax]
	cmp	al, 10
	jne	.L30
.L31:
	mov	DWORD PTR -560[rbp], 0
	jmp	.L32
.L33:
	mov	edx, DWORD PTR -568[rbp]
	mov	eax, DWORD PTR -560[rbp]
	add	eax, edx
	cdqe
	movzx	edx, BYTE PTR -224[rbp+rax]
	mov	eax, DWORD PTR -560[rbp]
	cdqe
	mov	BYTE PTR -368[rbp+rax], dl
	add	DWORD PTR -560[rbp], 1
.L32:
	mov	edx, DWORD PTR -568[rbp]
	mov	eax, DWORD PTR -564[rbp]
	sub	eax, edx
	cmp	DWORD PTR -560[rbp], eax
	jle	.L33
	lea	rax, -368[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -336[rbp]
	mov	DWORD PTR [rax], 544499047
	mov	BYTE PTR 4[rax], 0
	lea	rdx, -368[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rsi, -336[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	send@PLT
	lea	rsi, -576[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	mov	eax, DWORD PTR -576[rbp]
	test	eax, eax
	jne	.L34
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L25
.L34:
	mov	eax, DWORD PTR -576[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	eax, DWORD PTR -576[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
.L38:
	lea	rax, -368[rbp]
	mov	edx, 438
	mov	esi, 193
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -540[rbp], eax
	cmp	DWORD PTR -540[rbp], -1
	jne	.L59
	lea	rax, -368[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -368[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -544[rbp]
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L38
.L59:
	nop
	mov	edx, DWORD PTR -576[rbp]
	mov	rsi, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR -540[rbp]
	mov	ecx, 0
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -540[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	jmp	.L25
.L30:
	add	DWORD PTR -564[rbp], 1
	jmp	.L39
.L25:
	jmp	.L4
.L9:
	mov	DWORD PTR -556[rbp], 1
	mov	DWORD PTR -560[rbp], 0
	mov	DWORD PTR -564[rbp], 0
	lea	rax, -568[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	mov	DWORD PTR -568[rbp], 0
.L50:
	mov	eax, DWORD PTR -564[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 32
	jne	.L40
	mov	DWORD PTR -560[rbp], 0
	jmp	.L41
.L42:
	mov	edx, DWORD PTR -568[rbp]
	mov	eax, DWORD PTR -560[rbp]
	add	eax, edx
	cdqe
	movzx	edx, BYTE PTR -112[rbp+rax]
	mov	eax, DWORD PTR -560[rbp]
	cdqe
	mov	BYTE PTR -368[rbp+rax], dl
	add	DWORD PTR -560[rbp], 1
.L41:
	mov	edx, DWORD PTR -568[rbp]
	mov	eax, DWORD PTR -564[rbp]
	sub	eax, edx
	cmp	DWORD PTR -560[rbp], eax
	jle	.L42
	mov	eax, DWORD PTR -560[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -368[rbp+rax], 0
	lea	rax, -368[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -368[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -540[rbp], eax
	cmp	DWORD PTR -540[rbp], -1
	jne	.L43
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L44
.L43:
	lea	rax, -336[rbp]
	mov	DWORD PTR [rax], 544503152
	mov	BYTE PTR 4[rax], 0
	lea	rdx, -368[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rsi, -336[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	send@PLT
	lea	rdx, -512[rbp]
	lea	rax, -368[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rax, QWORD PTR -464[rbp]
	mov	DWORD PTR -576[rbp], eax
	lea	rsi, -576[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -576[rbp]
	movsx	rdx, eax
	mov	esi, DWORD PTR -540[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	edi, eax
	call	sendfile@PLT
	lea	rsi, -572[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	jmp	.L45
.L40:
	mov	eax, DWORD PTR -564[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	test	al, al
	je	.L46
	mov	eax, DWORD PTR -564[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 10
	jne	.L45
.L46:
	mov	DWORD PTR -560[rbp], 0
	jmp	.L47
.L48:
	mov	edx, DWORD PTR -568[rbp]
	mov	eax, DWORD PTR -560[rbp]
	add	eax, edx
	cdqe
	movzx	edx, BYTE PTR -112[rbp+rax]
	mov	eax, DWORD PTR -560[rbp]
	cdqe
	mov	BYTE PTR -368[rbp+rax], dl
	add	DWORD PTR -560[rbp], 1
.L47:
	mov	edx, DWORD PTR -568[rbp]
	mov	eax, DWORD PTR -564[rbp]
	sub	eax, edx
	cmp	DWORD PTR -560[rbp], eax
	jle	.L48
	mov	eax, DWORD PTR -560[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -368[rbp+rax], 0
	lea	rax, -368[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -368[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -540[rbp], eax
	cmp	DWORD PTR -540[rbp], -1
	jne	.L49
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L44
.L49:
	lea	rax, -336[rbp]
	mov	DWORD PTR [rax], 544503152
	mov	BYTE PTR 4[rax], 0
	lea	rdx, -368[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rsi, -336[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	send@PLT
	lea	rdx, -512[rbp]
	lea	rax, -368[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rax, QWORD PTR -464[rbp]
	mov	DWORD PTR -576[rbp], eax
	lea	rsi, -576[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -576[rbp]
	movsx	rdx, eax
	mov	esi, DWORD PTR -540[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	edi, eax
	call	sendfile@PLT
	lea	rsi, -572[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	jmp	.L44
.L45:
	add	DWORD PTR -564[rbp], 1
	jmp	.L50
.L44:
	jmp	.L4
.L8:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -368[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -368[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -540[rbp], eax
	cmp	DWORD PTR -540[rbp], -1
	jne	.L51
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L4
.L51:
	lea	rax, -336[rbp]
	mov	DWORD PTR [rax], 543974756
	mov	BYTE PTR 4[rax], 0
	lea	rdx, -368[rbp]
	lea	rax, -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rsi, -336[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	send@PLT
	lea	rdx, -512[rbp]
	lea	rax, -368[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rax, QWORD PTR -464[rbp]
	mov	DWORD PTR -576[rbp], eax
	lea	rsi, -576[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -576[rbp]
	movsx	rdx, eax
	mov	esi, DWORD PTR -540[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	edi, eax
	call	sendfile@PLT
	lea	rsi, -572[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	mov	eax, DWORD PTR -572[rbp]
	test	eax, eax
	je	.L52
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L4
.L52:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L4
.L7:
	lea	rax, -336[rbp]
	mov	WORD PTR [rax], 29548
	mov	BYTE PTR 2[rax], 0
	lea	rsi, -336[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	send@PLT
	lea	rsi, -576[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	mov	eax, DWORD PTR -576[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	eax, DWORD PTR -576[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	esi, 2
	lea	rdi, .LC14[rip]
	call	creat@PLT
	mov	DWORD PTR -540[rbp], eax
	mov	edx, DWORD PTR -576[rbp]
	mov	rsi, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR -540[rbp]
	mov	ecx, 0
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -540[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	system@PLT
	jmp	.L4
.L5:
	lea	rax, -336[rbp]
	mov	DWORD PTR [rax], 1953068401
	mov	BYTE PTR 4[rax], 0
	lea	rsi, -336[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	send@PLT
	lea	rsi, -572[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	recv@PLT
	mov	eax, DWORD PTR -572[rbp]
	test	eax, eax
	je	.L54
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L54:
	lea	rdi, .LC18[rip]
	call	puts@PLT
.L4:
	jmp	.L55
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"247019473.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Couldn't create socket\000"
	.align	2
.LC1:
	.ascii	"Connect Error\000"
	.align	2
.LC2:
	.ascii	"connected\000"
	.align	2
.LC3:
	.ascii	"Enter a choice:\0121- get\0122- put\0123- mget\0124"
	.ascii	"- mput\0125- del\0126- ls\0127- quit\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"Enter the filename: \000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"get \000"
	.align	2
.LC8:
	.ascii	"File not found\012\000"
	.align	2
.LC9:
	.ascii	"cat \000"
	.align	2
.LC10:
	.ascii	"put \000"
	.align	2
.LC11:
	.ascii	"File saved successfully!\000"
	.align	2
.LC12:
	.ascii	"Failed to save file on the server\000"
	.align	2
.LC13:
	.ascii	"going to get %s\012\000"
	.align	2
.LC14:
	.ascii	"going to send %s\012\000"
	.align	2
.LC15:
	.ascii	"del \000"
	.align	2
.LC16:
	.ascii	"File removed successfully!\000"
	.align	2
.LC17:
	.ascii	"Failed to remove file on the server\000"
	.align	2
.LC18:
	.ascii	"ls\000"
	.align	2
.LC19:
	.ascii	"temp1.txt\000"
	.align	2
.LC20:
	.ascii	"Remote directory contents:\000"
	.align	2
.LC21:
	.ascii	"cat temp1.txt\000"
	.align	2
.LC22:
	.ascii	"quit\000"
	.align	2
.LC23:
	.ascii	"Server closed\012Quitting..\000"
	.align	2
.LC24:
	.ascii	"Server failed to close connection\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 488
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #488
	str	r0, [fp, #-488]
	str	r1, [fp, #-492]
	ldr	r3, .L60
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-460]
	mov	r3, #0
	str	r3, [fp, #-468]
	mov	r3, #0
	str	r3, [fp, #-464]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-456]
	ldr	r3, [fp, #-456]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L60+4
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #4
	sub	r3, r3, #340
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-492]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #4
	sub	r3, r3, #340
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-340]
	sub	r3, fp, #344
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-456]
	bl	connect
	str	r0, [fp, #-452]
	ldr	r3, [fp, #-452]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L60+8
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	mov	r3, #1
	str	r3, [fp, #-448]
	ldr	r0, .L60+12
	bl	printf
.L55:
	ldr	r0, .L60+16
	bl	puts
	sub	r3, fp, #484
	mov	r1, r3
	ldr	r0, .L60+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-484]
	sub	r3, r3, #1
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L55
.L6:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L12:
	ldr	r0, .L60+24
	bl	printf
	sub	r3, fp, #328
	mov	r1, r3
	ldr	r0, .L60+28
	bl	__isoc99_scanf
	sub	r3, fp, #308
	ldr	r2, .L60+32
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r2, fp, #328
	sub	r3, fp, #308
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r1, fp, #308
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-456]
	bl	send
	sub	r1, fp, #480
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-456]
	bl	recv
	ldr	r3, [fp, #-480]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L60+36
	bl	puts
	b	.L4
.L13:
	ldr	r3, [fp, #-480]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-444]
	ldr	r3, [fp, #-480]
	mov	r2, r3
	mov	r3, #0
	ldr	r1, [fp, #-444]
	ldr	r0, [fp, #-456]
	bl	recv
.L17:
	sub	r3, fp, #328
	ldr	r2, .L60+40
	mov	r1, #193
	mov	r0, r3
	bl	open
	str	r0, [fp, #-440]
	ldr	r3, [fp, #-440]
	cmn	r3, #1
	bne	.L57
	sub	r3, fp, #328
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #328
	add	r3, r3, r2
	ldr	r2, [fp, #-448]
	ldr	r1, .L60+20
	mov	r0, r3
	bl	sprintf
	b	.L17
.L57:
	nop
	ldr	r2, [fp, #-480]
	mov	r3, #0
	ldr	r1, [fp, #-444]
	ldr	r0, [fp, #-440]
	bl	write
	ldr	r0, [fp, #-440]
	bl	close
	sub	r3, fp, #308
	ldr	r2, .L60+44
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r2, fp, #328
	sub	r3, fp, #308
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #308
	mov	r0, r3
	bl	system
	b	.L4
.L11:
	ldr	r0, .L60+24
	bl	printf
	sub	r3, fp, #328
	mov	r1, r3
	ldr	r0, .L60+28
	bl	__isoc99_scanf
	sub	r3, fp, #328
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-440]
	ldr	r3, [fp, #-440]
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L60+36
	bl	puts
	b	.L4
.L18:
	sub	r3, fp, #308
	ldr	r2, .L60+48
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r2, fp, #328
	sub	r3, fp, #308
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r1, fp, #308
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-456]
	bl	send
	sub	r2, fp, #436
	sub	r3, fp, #328
	mov	r1, r2
	mov	r0, r3
	bl	stat
	ldr	r3, [fp, #-392]
	str	r3, [fp, #-480]
	sub	r1, fp, #480
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-456]
	bl	send
	ldr	r3, [fp, #-480]
	mov	r2, #0
	ldr	r1, [fp, #-440]
	ldr	r0, [fp, #-456]
	bl	sendfile
	sub	r1, fp, #476
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-456]
	bl	recv
	ldr	r3, [fp, #-476]
	cmp	r3, #0
	beq	.L19
	ldr	r0, .L60+52
	bl	puts
	b	.L4
.L19:
	ldr	r0, .L60+56
	bl	puts
	b	.L4
.L10:
	mov	r3, #1
	str	r3, [fp, #-460]
	mov	r3, #0
	str	r3, [fp, #-464]
	mov	r3, #0
	str	r3, [fp, #-468]
	sub	r3, fp, #472
	mov	r1, r3
	ldr	r0, .L60+20
	bl	__isoc99_scanf
	ldr	r3, .L60+60
	ldr	r2, [r3]
	sub	r3, fp, #208
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, #0
	str	r3, [fp, #-472]
.L39:
	sub	r2, fp, #208
	ldr	r3, [fp, #-468]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L21
	mov	r3, #0
	str	r3, [fp, #-464]
	b	.L22
.L23:
	ldr	r2, [fp, #-472]
	ldr	r3, [fp, #-464]
	add	r3, r2, r3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-204]	@ zero_extendqisi2
	sub	r2, fp, #328
	ldr	r3, [fp, #-464]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-464]
	add	r3, r3, #1
	str	r3, [fp, #-464]
.L22:
	ldr	r3, [fp, #-472]
	ldr	r2, [fp, #-468]
	sub	r3, r2, r3
	ldr	r2, [fp, #-464]
	cmp	r2, r3
	ble	.L23
	sub	r3, fp, #328
	mov	r1, r3
	ldr	r0, .L60+64
	bl	printf
	sub	r3, fp, #308
	ldr	r2, .L60+32
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r2, fp, #328
	sub	r3, fp, #308
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r1, fp, #308
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-456]
	bl	send
	sub	r1, fp, #480
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-456]
	bl	recv
	ldr	r3, [fp, #-480]
	cmp	r3, #0
	bne	.L24
	ldr	r0, .L60+36
	bl	puts
	b	.L25
.L24:
	ldr	r3, [fp, #-480]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-444]
	ldr	r3, [fp, #-480]
	mov	r2, r3
	mov	r3, #0
	ldr	r1, [fp, #-444]
	ldr	r0, [fp, #-456]
	bl	recv
.L29:
	sub	r3, fp, #328
	ldr	r2, .L60+40
	mov	r1, #193
	mov	r0, r3
	bl	open
	str	r0, [fp, #-440]
	ldr	r3, [fp, #-440]
	cmn	r3, #1
	bne	.L58
	sub	r3, fp, #328
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #328
	add	r3, r3, r2
	ldr	r2, [fp, #-448]
	ldr	r1, .L60+20
	mov	r0, r3
	bl	sprintf
	b	.L29
.L58:
	nop
	ldr	r2, [fp, #-480]
	mov	r3, #0
	ldr	r1, [fp, #-444]
	ldr	r0, [fp, #-440]
	bl	write
	ldr	r0, [fp, #-440]
	bl	close
	ldr	r3, [fp, #-468]
	add	r3, r3, #1
	str	r3, [fp, #-472]
	b	.L30
.L21:
	sub	r2, fp, #208
	ldr	r3, [fp, #-468]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L31
	sub	r2, fp, #208
	ldr	r3, [fp, #-468]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L30
.L31:
	mov	r3, #0
	str	r3, [fp, #-464]
	b	.L32
.L33:
	ldr	r2, [fp, #-472]
	ldr	r3, [fp, #-464]
	add	r3, r2, r3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-204]	@ zero_extendqisi2
	sub	r2, fp, #328
	ldr	r3, [fp, #-464]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-464]
	add	r3, r3, #1
	str	r3, [fp, #-464]
.L32:
	ldr	r3, [fp, #-472]
	ldr	r2, [fp, #-468]
	sub	r3, r2, r3
	ldr	r2, [fp, #-464]
	cmp	r2, r3
	ble	.L33
	sub	r3, fp, #328
	mov	r1, r3
	ldr	r0, .L60+64
	bl	printf
	sub	r3, fp, #308
	ldr	r2, .L60+32
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r2, fp, #328
	sub	r3, fp, #308
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r1, fp, #308
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-456]
	bl	send
	sub	r1, fp, #480
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-456]
	bl	recv
	ldr	r3, [fp, #-480]
	cmp	r3, #0
	bne	.L34
	ldr	r0, .L60+36
	bl	puts
	b	.L25
.L34:
	ldr	r3, [fp, #-480]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-444]
	ldr	r3, [fp, #-480]
	mov	r2, r3
	mov	r3, #0
	ldr	r1, [fp, #-444]
	ldr	r0, [fp, #-456]
	bl	recv
.L38:
	sub	r3, fp, #328
	ldr	r2, .L60+40
	mov	r1, #193
	mov	r0, r3
	bl	open
	str	r0, [fp, #-440]
	ldr	r3, [fp, #-440]
	cmn	r3, #1
	bne	.L59
	sub	r3, fp, #328
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #328
	add	r3, r3, r2
	ldr	r2, [fp, #-448]
	ldr	r1, .L60+20
	mov	r0, r3
	bl	sprintf
	b	.L38
.L59:
	nop
	ldr	r2, [fp, #-480]
	mov	r3, #0
	ldr	r1, [fp, #-444]
	ldr	r0, [fp, #-440]
	bl	write
	ldr	r0, [fp, #-440]
	bl	close
	b	.L25
.L30:
	ldr	r3, [fp, #-468]
	add	r3, r3, #1
	str	r3, [fp, #-468]
	b	.L39
.L25:
	b	.L4
.L9:
	mov	r3, #1
	str	r3, [fp, #-460]
	mov	r3, #0
	str	r3, [fp, #-464]
	mov	r3, #0
	str	r3, [fp, #-468]
	sub	r3, fp, #472
	mov	r1, r3
	ldr	r0, .L60+20
	bl	__isoc99_scanf
	ldr	r3, .L60+60
	ldr	r2, [r3]
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, #0
	str	r3, [fp, #-472]
.L50:
	sub	r2, fp, #108
	ldr	r3, [fp, #-468]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L40
	mov	r3, #0
	str	r3, [fp, #-464]
	b	.L41
.L42:
	ldr	r2, [fp, #-472]
	ldr	r3, [fp, #-464]
	add	r3, r2, r3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-104]	@ zero_extendqisi2
	sub	r2, fp, #328
	ldr	r3, [fp, #-464]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-464]
	add	r3, r3, #1
	str	r3, [fp, #-464]
.L41:
	ldr	r3, [fp, #-472]
	ldr	r2, [fp, #-468]
	sub	r3, r2, r3
	ldr	r2, [fp, #-464]
	cmp	r2, r3
	ble	.L42
	ldr	r3, [fp, #-464]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-324]
	sub	r3, fp, #328
	mov	r1, r3
	ldr	r0, .L60+68
	bl	printf
	sub	r3, fp, #328
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-440]
	ldr	r3, [fp, #-440]
	cmn	r3, #1
	bne	.L43
	ldr	r0, .L60+36
	bl	puts
	b	.L44
.L43:
	sub	r3, fp, #308
	ldr	r2, .L60+48
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r2, fp, #328
	sub	r3, fp, #308
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r1, fp, #308
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-456]
	bl	send
	sub	r2, fp, #436
	sub	r3, fp, #328
	mov	r1, r2
	mov	r0, r3
	bl	stat
	ldr	r3, [fp, #-392]
	str	r3, [fp, #-480]
	sub	r1, fp, #480
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-456]
	bl	send
	ldr	r3, [fp, #-480]
	mov	r2, #0
	ldr	r1, [fp, #-440]
	ldr	r0, [fp, #-456]
	bl	sendfile
	sub	r1, fp, #476
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-456]
	bl	recv
	b	.L45
.L40:
	sub	r2, fp, #108
	ldr	r3, [fp, #-468]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L46
	sub	r2, fp, #108
	ldr	r3, [fp, #-468]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L45
.L46:
	mov	r3, #0
	str	r3, [fp, #-464]
	b	.L47
.L48:
	ldr	r2, [fp, #-472]
	ldr	r3, [fp, #-464]
	add	r3, r2, r3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-104]	@ zero_extendqisi2
	sub	r2, fp, #328
	ldr	r3, [fp, #-464]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-464]
	add	r3, r3, #1
	str	r3, [fp, #-464]
.L47:
	ldr	r3, [fp, #-472]
	ldr	r2, [fp, #-468]
	sub	r3, r2, r3
	ldr	r2, [fp, #-464]
	cmp	r2, r3
	ble	.L48
	ldr	r3, [fp, #-464]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-324]
	sub	r3, fp, #328
	mov	r1, r3
	ldr	r0, .L60+68
	bl	printf
	sub	r3, fp, #328
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-440]
	ldr	r3, [fp, #-440]
	cmn	r3, #1
	bne	.L49
	ldr	r0, .L60+36
	bl	puts
	b	.L44
.L49:
	sub	r3, fp, #308
	ldr	r2, .L60+48
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r2, fp, #328
	sub	r3, fp, #308
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r1, fp, #308
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-456]
	bl	send
	sub	r2, fp, #436
	sub	r3, fp, #328
	mov	r1, r2
	mov	r0, r3
	bl	stat
	ldr	r3, [fp, #-392]
	str	r3, [fp, #-480]
	sub	r1, fp, #480
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-456]
	bl	send
	ldr	r3, [fp, #-480]
	mov	r2, #0
	ldr	r1, [fp, #-440]
	ldr	r0, [fp, #-456]
	bl	sendfile
	sub	r1, fp, #476
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-456]
	bl	recv
	b	.L44
.L45:
	ldr	r3, [fp, #-468]
	add	r3, r3, #1
	str	r3, [fp, #-468]
	b	.L50
.L44:
	b	.L4
.L8:
	ldr	r0, .L60+24
	bl	printf
	sub	r3, fp, #328
	mov	r1, r3
	ldr	r0, .L60+28
	bl	__isoc99_scanf
	sub	r3, fp, #328
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-440]
	ldr	r3, [fp, #-440]
	cmn	r3, #1
	bne	.L51
	ldr	r0, .L60+36
	bl	puts
	b	.L4
.L51:
	sub	r3, fp, #308
	ldr	r2, .L60+72
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r2, fp, #328
	sub	r3, fp, #308
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r1, fp, #308
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-456]
	bl	send
	sub	r2, fp, #436
	sub	r3, fp, #328
	mov	r1, r2
	mov	r0, r3
	bl	stat
	ldr	r3, [fp, #-392]
	str	r3, [fp, #-480]
	sub	r1, fp, #480
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-456]
	bl	send
	ldr	r3, [fp, #-480]
	mov	r2, #0
	ldr	r1, [fp, #-440]
	ldr	r0, [fp, #-456]
	bl	sendfile
	sub	r1, fp, #476
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-456]
	bl	recv
	ldr	r3, [fp, #-476]
	cmp	r3, #0
	beq	.L52
	ldr	r0, .L60+76
	bl	puts
	b	.L4
.L52:
	ldr	r0, .L60+80
	bl	puts
	b	.L4
.L7:
	sub	r3, fp, #308
	ldr	r2, .L60+84
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r1, fp, #308
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-456]
	bl	send
	sub	r1, fp, #480
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-456]
	bl	recv
	ldr	r3, [fp, #-480]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-444]
	ldr	r3, [fp, #-480]
	mov	r2, r3
	mov	r3, #0
	ldr	r1, [fp, #-444]
	ldr	r0, [fp, #-456]
	bl	recv
	mov	r1, #2
	ldr	r0, .L60+88
	bl	creat
	str	r0, [fp, #-440]
	ldr	r2, [fp, #-480]
	mov	r3, #0
	ldr	r1, [fp, #-444]
	ldr	r0, [fp, #-440]
	bl	write
	ldr	r0, [fp, #-440]
	bl	close
	ldr	r0, .L60+92
	bl	puts
	ldr	r0, .L60+96
	bl	system
	b	.L4
.L5:
	sub	r3, fp, #308
	ldr	r2, .L60+100
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r1, fp, #308
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-456]
	bl	send
	sub	r1, fp, #476
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-456]
	bl	recv
	ldr	r3, [fp, #-476]
	cmp	r3, #0
	beq	.L54
	ldr	r0, .L60+104
	bl	puts
	mov	r0, #0
	bl	exit
.L54:
	ldr	r0, .L60+108
	bl	puts
.L4:
	b	.L55
.L61:
	.align	2
.L60:
	.word	.LC25
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	438
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	stdin
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
