	.file	"921532.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: otp_enc plaintext key port"
.LC1:
	.string	"rb"
.LC2:
	.string	"Plaintext file does not exist"
.LC3:
	.string	"key file does not exist"
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	cmp	DWORD PTR -52[rbp], 4
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L3
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rsi, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	swap_New_Line_With_Null_Character
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rsi, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	swap_New_Line_With_Null_Character
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	validate_Key_Length
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	invaid_Characters
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	invaid_Characters
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	connect_To_Server
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.string	"Error: Failed to obtain socket descriptor."
.LC5:
	.string	"127.0.0.1"
	.align 8
.LC6:
	.string	"Error: could not contact otp_dec_d on port %s\n"
.LC7:
	.string	"R"
.LC8:
	.string	"T"
	.align 8
.LC9:
	.string	"Error: Server rejected the client due to lack of space"
	.text
	.globl	connect_To_Server
	.type	connect_To_Server, @function
connect_To_Server:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -44[rbp], eax
	lea	rax, -10[rbp]
	mov	WORD PTR [rax], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], -1
	jne	.L7
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 2
	call	exit@PLT
.L7:
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -44[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rax, -32[rbp]
	add	rax, 4
	mov	rdx, rax
	lea	rsi, .LC5[rip]
	mov	edi, 2
	call	inet_pton@PLT
	lea	rax, -32[rbp]
	add	rax, 8
	mov	QWORD PTR [rax], 0
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L8
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 2
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	request_Handshake_from_Server
	lea	rdx, -10[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	responses_From_Server_to_Handshake
	lea	rax, -10[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rax, -10[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	validate_the_End_of_File
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	validate_the_End_of_File
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	meerge_Two_Files
	mov	DWORD PTR -36[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	send_File_to_Server
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	receive_File_from_Server
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	connect_To_Server, .-connect_To_Server
	.globl	responses_From_Server_to_Handshake
	.type	responses_From_Server_to_Handshake, @function
responses_From_Server_to_Handshake:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -10[rbp]
	mov	WORD PTR [rax], 0
	lea	rsi, -10[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edx, 1
	mov	edi, eax
	call	recv@PLT
	lea	rcx, -10[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	responses_From_Server_to_Handshake, .-responses_From_Server_to_Handshake
	.section	.rodata
.LC10:
	.string	"otp_dec"
	.align 8
.LC11:
	.string	"[otp_dec] Error: Failed to send handshake."
	.text
	.globl	request_Handshake_from_Server
	.type	request_Handshake_from_Server, @function
request_Handshake_from_Server:
.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, 560
	mov	DWORD PTR -548[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rax, -528[rbp]
	mov	edx, 512
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strncpy@PLT
	mov	DWORD PTR -532[rbp], 7
	mov	eax, DWORD PTR -532[rbp]
	movsx	rdx, eax
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -548[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L17
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L17:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	request_Handshake_from_Server, .-request_Handshake_from_Server
	.section	.rodata
.LC12:
	.string	"rb+"
	.text
	.globl	validate_the_End_of_File
	.type	validate_the_End_of_File, @function
validate_the_End_of_File:
.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, 576
	mov	QWORD PTR -568[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -548[rbp], 0
	mov	rax, QWORD PTR -568[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -544[rbp], rax
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	jmp	.L19
.L25:
	mov	DWORD PTR -552[rbp], 0
	jmp	.L20
.L24:
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	cmp	al, 10
	jne	.L21
	mov	DWORD PTR -548[rbp], 1
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	test	al, al
	je	.L28
	add	DWORD PTR -552[rbp], 1
.L20:
	cmp	DWORD PTR -552[rbp], 511
	jle	.L24
	jmp	.L22
.L28:
	nop
.L22:
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
.L19:
	mov	rdx, QWORD PTR -544[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	mov	edx, 512
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L25
	cmp	DWORD PTR -548[rbp], 0
	jne	.L26
	mov	BYTE PTR -529[rbp], 10
	mov	rdx, QWORD PTR -544[rbp]
	lea	rax, -529[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L26:
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	validate_the_End_of_File, .-validate_the_End_of_File
	.section	.rodata
.LC13:
	.string	"%s"
.LC14:
	.string	"[otp_dec] recv() timed out."
.LC15:
	.string	"[otp_dec] recv() failed "
	.text
	.globl	receive_File_from_Server
	.type	receive_File_from_Server, @function
receive_File_from_Server:
.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, 560
	mov	DWORD PTR -548[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	DWORD PTR -532[rbp], 0
	jmp	.L30
.L32:
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	cmp	DWORD PTR -532[rbp], 0
	je	.L31
	cmp	DWORD PTR -532[rbp], 512
	jne	.L31
.L30:
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -548[rbp]
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], 0
	jg	.L32
.L31:
	cmp	DWORD PTR -532[rbp], 0
	jns	.L36
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L34
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L36
.L34:
	lea	rdi, .LC15[rip]
	call	puts@PLT
.L36:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	receive_File_from_Server, .-receive_File_from_Server
	.section	.rodata
	.align 8
.LC16:
	.string	"[otp_dec] Error: Failed to send file."
	.text
	.globl	send_File_to_Server
	.type	send_File_to_Server, @function
send_File_to_Server:
.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, 560
	mov	DWORD PTR -548[rbp], edi
	mov	DWORD PTR -552[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	jmp	.L38
.L41:
	mov	eax, DWORD PTR -532[rbp]
	movsx	rdx, eax
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -548[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L39
	lea	rdi, .LC16[rip]
	call	puts@PLT
	jmp	.L40
.L39:
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
.L38:
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], 0
	jg	.L41
.L40:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	send_File_to_Server, .-send_File_to_Server
	.section	.rodata
	.align 8
.LC17:
	.string	"[otp_dec] Error in combining ciphertext and key"
	.align 8
.LC18:
	.string	"[otp_dec] Error during merge of ciphertext and key"
	.align 8
.LC19:
	.string	"File pointer reset for combined file failed"
	.text
	.globl	meerge_Two_Files
	.type	meerge_Two_Files, @function
meerge_Two_Files:
.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, 576
	mov	QWORD PTR -568[rbp], rdi
	mov	QWORD PTR -576[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -552[rbp], 0
	mov	rax, QWORD PTR -568[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -544[rbp], rax
	mov	rax, QWORD PTR -576[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	eax, 0
	call	file_Descriptor
	mov	DWORD PTR -548[rbp], eax
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	jmp	.L44
.L46:
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	remove_New_Line_from_Buffer
	mov	eax, DWORD PTR -552[rbp]
	movsx	rdx, eax
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -548[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L45
	lea	rdi, .LC17[rip]
	call	puts@PLT
.L45:
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
.L44:
	mov	rdx, QWORD PTR -544[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	mov	edx, 512
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -552[rbp], eax
	cmp	DWORD PTR -552[rbp], 0
	jg	.L46
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	jmp	.L47
.L49:
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	remove_New_Line_from_Buffer
	mov	eax, DWORD PTR -552[rbp]
	movsx	rdx, eax
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -548[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L48
	lea	rdi, .LC18[rip]
	call	puts@PLT
.L48:
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
.L47:
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	mov	edx, 512
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -552[rbp], eax
	cmp	DWORD PTR -552[rbp], 0
	jg	.L49
	mov	eax, DWORD PTR -548[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	cmp	rax, -1
	jne	.L50
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L50:
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -548[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	meerge_Two_Files, .-meerge_Two_Files
	.globl	error
	.type	error, @function
error:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE14:
	.size	error, .-error
	.globl	swap_New_Line_With_Null_Character
	.type	swap_New_Line_With_Null_Character, @function
swap_New_Line_With_Null_Character:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L56
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L56:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	swap_New_Line_With_Null_Character, .-swap_New_Line_With_Null_Character
	.section	.rodata
.LC20:
	.string	"Error: key %s is too short\n"
	.text
	.globl	validate_Key_Length
	.type	validate_Key_Length, @function
validate_Key_Length:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jge	.L59
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L59:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	validate_Key_Length, .-validate_Key_Length
	.section	.rodata
.LC21:
	.string	"%s\n"
	.text
	.globl	invaid_Characters
	.type	invaid_Characters, @function
invaid_Characters:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 0
	jmp	.L61
.L63:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, possible_Characters.0[rip]
	call	strchr@PLT
	test	rax, rax
	jne	.L62
	movabs	rax, 2333830413580006511
	movabs	rdx, 7575118836407628389
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	movabs	rax, 7957688057630912622
	movabs	rdx, 7017206849542381940
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	movabs	rax, 7161130645184520292
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -24[rbp], 1936876916
	mov	BYTE PTR -20[rbp], 0
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -64[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L62:
	add	DWORD PTR -68[rbp], 1
.L61:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L63
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	invaid_Characters, .-invaid_Characters
	.section	.rodata
	.align 8
.LC22:
	.string	"\n Creation of temporary file failed. Error: [%s]\n"
	.text
	.globl	file_Descriptor
	.type	file_Descriptor, @function
file_Descriptor:
.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	lea	rax, -80[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	lea	rax, -48[rbp]
	movabs	rdx, 6087016421885047855
	movabs	rcx, 6353846165586735213
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	mov	DWORD PTR 16[rax], 1482184792
	mov	BYTE PTR 20[rax], 88
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	mkstemp@PLT
	mov	DWORD PTR -84[rbp], eax
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	unlink@PLT
	cmp	DWORD PTR -84[rbp], 0
	jg	.L66
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L68
.L66:
	mov	eax, DWORD PTR -84[rbp]
.L68:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L69
	call	__stack_chk_fail@PLT
.L69:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	file_Descriptor, .-file_Descriptor
	.globl	remove_New_Line_from_Buffer
	.type	remove_New_Line_from_Buffer, @function
remove_New_Line_from_Buffer:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L71
.L75:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L76
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L74
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 59
.L74:
	add	DWORD PTR -4[rbp], 1
.L71:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L75
	jmp	.L70
.L76:
	nop
.L70:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	remove_New_Line_from_Buffer, .-remove_New_Line_from_Buffer
	.section	.rodata
	.align 16
	.type	possible_Characters.0, @object
	.size	possible_Characters.0, 28
possible_Characters.0:
	.string	"ABCDEFGHIJKLMNOPQRSTUVWXYZ "
	.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	"921532.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: otp_enc plaintext key port\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"Plaintext file does not exist\000"
	.align	2
.LC3:
	.ascii	"key file does not exist\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	beq	.L2
	ldr	r0, .L6
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L6+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L6+8
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	fseek
	ldr	r0, [fp, #-24]
	bl	ftell
	str	r0, [fp, #-20]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	fseek
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-24]
	mov	r2, #1
	ldr	r0, [fp, #-16]
	bl	fread
	ldr	r0, [fp, #-24]
	bl	fclose
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	swap_New_Line_With_Null_Character
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L6+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L6+12
	bl	puts
	mov	r0, #1
	bl	exit
.L4:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	fseek
	ldr	r0, [fp, #-24]
	bl	ftell
	str	r0, [fp, #-12]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	fseek
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-24]
	mov	r2, #1
	ldr	r0, [fp, #-8]
	bl	fread
	ldr	r0, [fp, #-24]
	bl	fclose
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	swap_New_Line_With_Null_Character
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	validate_Key_Length
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	invaid_Characters
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	invaid_Characters
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	bl	connect_To_Server
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Error: Failed to obtain socket descriptor.\000"
	.align	2
.LC5:
	.ascii	"127.0.0.1\000"
	.align	2
.LC6:
	.ascii	"Error: could not contact otp_dec_d on port %s\012\000"
	.align	2
.LC7:
	.ascii	"R\000"
	.align	2
.LC8:
	.ascii	"T\000"
	.align	2
.LC9:
	.ascii	"Error: Server rejected the client due to lack of sp"
	.ascii	"ace\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	connect_To_Server
	.syntax unified
	.arm
	.fpu softvfp
	.type	connect_To_Server, %function
connect_To_Server:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-48]
	bl	atoi
	str	r0, [fp, #-40]
	sub	r3, fp, #12
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L14+4
	bl	puts
	mov	r0, #2
	bl	exit
.L9:
	mov	r3, #2
	strh	r3, [fp, #-28]	@ movhi
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-26]	@ movhi
	sub	r3, fp, #28
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L14+8
	mov	r0, #2
	bl	inet_pton
	sub	r3, fp, #28
	add	r3, r3, #8
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	sub	r3, fp, #28
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r1, [fp, #-48]
	ldr	r0, .L14+12
	bl	printf
	mov	r0, #2
	bl	exit
.L10:
	ldr	r0, [fp, #-36]
	bl	request_Handshake_from_Server
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	responses_From_Server_to_Handshake
	sub	r3, fp, #12
	ldr	r1, .L14+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L14+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L14+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L11:
	sub	r3, fp, #12
	ldr	r1, .L14+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L14+28
	bl	puts
	mov	r0, #1
	bl	exit
.L12:
	ldr	r0, [fp, #-52]
	bl	validate_the_End_of_File
	ldr	r0, [fp, #-56]
	bl	validate_the_End_of_File
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-52]
	bl	meerge_Two_Files
	str	r0, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	send_File_to_Server
	ldr	r0, [fp, #-36]
	bl	receive_File_from_Server
	ldr	r0, [fp, #-36]
	bl	close
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC10
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	stderr
	.word	.LC8
	.word	.LC9
	.size	connect_To_Server, .-connect_To_Server
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	responses_From_Server_to_Handshake
	.syntax unified
	.arm
	.fpu softvfp
	.type	responses_From_Server_to_Handshake, %function
responses_From_Server_to_Handshake:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	sub	r1, fp, #12
	mov	r3, #0
	mov	r2, #1
	ldr	r0, [fp, #-16]
	bl	recv
	sub	r3, fp, #12
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	strncpy
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC11
	.size	responses_From_Server_to_Handshake, .-responses_From_Server_to_Handshake
	.section	.rodata
	.align	2
.LC12:
	.ascii	"otp_dec\000"
	.align	2
.LC13:
	.ascii	"[otp_dec] Error: Failed to send handshake.\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	request_Handshake_from_Server
	.syntax unified
	.arm
	.fpu softvfp
	.type	request_Handshake_from_Server, %function
request_Handshake_from_Server:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	str	r0, [fp, #-528]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #520
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #520
	mov	r2, #512
	ldr	r1, .L24+4
	mov	r0, r3
	bl	strncpy
	mov	r3, #7
	str	r3, [fp, #-524]
	ldr	r2, [fp, #-524]
	sub	r1, fp, #520
	mov	r3, #0
	ldr	r0, [fp, #-528]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L23
	ldr	r0, .L24+8
	bl	puts
.L23:
	nop
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC14
	.word	.LC12
	.word	.LC13
	.size	request_Handshake_from_Server, .-request_Handshake_from_Server
	.section	.rodata
	.align	2
.LC15:
	.ascii	"rb+\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	validate_the_End_of_File
	.syntax unified
	.arm
	.fpu softvfp
	.type	validate_the_End_of_File, %function
validate_the_End_of_File:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-544]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-532]
	ldr	r1, .L37+4
	ldr	r0, [fp, #-544]
	bl	fopen
	str	r0, [fp, #-528]
	sub	r3, fp, #520
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
	b	.L27
.L33:
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L28
.L32:
	sub	r2, fp, #520
	ldr	r3, [fp, #-536]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L29
	mov	r3, #1
	str	r3, [fp, #-532]
	b	.L30
.L29:
	sub	r2, fp, #520
	ldr	r3, [fp, #-536]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L28:
	ldr	r3, [fp, #-536]
	cmp	r3, #512
	blt	.L32
	b	.L30
.L36:
	nop
.L30:
	sub	r3, fp, #520
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
.L27:
	sub	r0, fp, #520
	ldr	r3, [fp, #-528]
	mov	r2, #512
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	bne	.L34
	mov	r3, #10
	strb	r3, [fp, #-524]
	sub	r0, fp, #524
	ldr	r3, [fp, #-528]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
.L34:
	ldr	r0, [fp, #-528]
	bl	fclose
	nop
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC16
	.word	.LC15
	.size	validate_the_End_of_File, .-validate_the_End_of_File
	.section	.rodata
	.align	2
.LC17:
	.ascii	"%s\000"
	.align	2
.LC18:
	.ascii	"[otp_dec] recv() timed out.\000"
	.align	2
.LC19:
	.ascii	"[otp_dec] recv() failed \000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	receive_File_from_Server
	.syntax unified
	.arm
	.fpu softvfp
	.type	receive_File_from_Server, %function
receive_File_from_Server:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	str	r0, [fp, #-528]
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #520
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L40
.L42:
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L47+4
	bl	printf
	sub	r3, fp, #520
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-524]
	cmp	r3, #512
	bne	.L41
.L40:
	sub	r1, fp, #520
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-528]
	bl	recv
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bgt	.L42
.L41:
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bge	.L46
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L44
	ldr	r0, .L47+8
	bl	puts
	b	.L46
.L44:
	ldr	r0, .L47+12
	bl	puts
.L46:
	nop
	ldr	r3, .L47
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC20
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	receive_File_from_Server, .-receive_File_from_Server
	.section	.rodata
	.align	2
.LC21:
	.ascii	"[otp_dec] Error: Failed to send file.\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_File_to_Server
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_File_to_Server, %function
send_File_to_Server:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	str	r0, [fp, #-528]
	str	r1, [fp, #-532]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #520
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
	b	.L50
.L53:
	ldr	r2, [fp, #-524]
	sub	r1, fp, #520
	mov	r3, #0
	ldr	r0, [fp, #-528]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L51
	ldr	r0, .L55+4
	bl	puts
	b	.L52
.L51:
	sub	r3, fp, #520
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
.L50:
	sub	r3, fp, #520
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-532]
	bl	read
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bgt	.L53
.L52:
	nop
	ldr	r3, .L55
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC22
	.word	.LC21
	.size	send_File_to_Server, .-send_File_to_Server
	.section	.rodata
	.align	2
.LC23:
	.ascii	"[otp_dec] Error in combining ciphertext and key\000"
	.align	2
.LC24:
	.ascii	"[otp_dec] Error during merge of ciphertext and key\000"
	.align	2
.LC25:
	.ascii	"File pointer reset for combined file failed\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	meerge_Two_Files
	.syntax unified
	.arm
	.fpu softvfp
	.type	meerge_Two_Files, %function
meerge_Two_Files:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-544]
	str	r1, [fp, #-548]
	ldr	r3, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-536]
	ldr	r1, .L67+4
	ldr	r0, [fp, #-544]
	bl	fopen
	str	r0, [fp, #-532]
	ldr	r1, .L67+4
	ldr	r0, [fp, #-548]
	bl	fopen
	str	r0, [fp, #-528]
	bl	file_Descriptor
	str	r0, [fp, #-524]
	sub	r3, fp, #520
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
	b	.L58
.L60:
	sub	r3, fp, #520
	mov	r1, #512
	mov	r0, r3
	bl	remove_New_Line_from_Buffer
	ldr	r2, [fp, #-536]
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, [fp, #-524]
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L59
	ldr	r0, .L67+8
	bl	puts
.L59:
	sub	r3, fp, #520
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
.L58:
	sub	r0, fp, #520
	ldr	r3, [fp, #-532]
	mov	r2, #512
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-536]
	ldr	r3, [fp, #-536]
	cmp	r3, #0
	bgt	.L60
	sub	r3, fp, #520
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
	b	.L61
.L63:
	sub	r3, fp, #520
	mov	r1, #512
	mov	r0, r3
	bl	remove_New_Line_from_Buffer
	ldr	r2, [fp, #-536]
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, [fp, #-524]
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L62
	ldr	r0, .L67+12
	bl	puts
.L62:
	sub	r3, fp, #520
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
.L61:
	sub	r0, fp, #520
	ldr	r3, [fp, #-528]
	mov	r2, #512
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-536]
	ldr	r3, [fp, #-536]
	cmp	r3, #0
	bgt	.L63
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-524]
	bl	lseek
	mov	r3, r0
	cmn	r3, #1
	bne	.L64
	ldr	r0, .L67+16
	bl	puts
.L64:
	ldr	r0, [fp, #-532]
	bl	fclose
	ldr	r0, [fp, #-528]
	bl	fclose
	ldr	r3, [fp, #-524]
	ldr	r2, .L67
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L66
	bl	__stack_chk_fail
.L66:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	.LC26
	.word	.LC1
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	meerge_Two_Files, .-meerge_Two_Files
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	error, .-error
	.align	2
	.global	swap_New_Line_With_Null_Character
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap_New_Line_With_Null_Character, %function
swap_New_Line_With_Null_Character:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L72
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L72:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	swap_New_Line_With_Null_Character, .-swap_New_Line_With_Null_Character
	.section	.rodata
	.align	2
.LC27:
	.ascii	"Error: key %s is too short\012\000"
	.text
	.align	2
	.global	validate_Key_Length
	.syntax unified
	.arm
	.fpu softvfp
	.type	validate_Key_Length, %function
validate_Key_Length:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L75
	ldr	r1, [fp, #-16]
	ldr	r0, .L76
	bl	printf
	mov	r0, #1
	bl	exit
.L75:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC27
	.size	validate_Key_Length, .-validate_Key_Length
	.section	.rodata
	.align	2
.LC29:
	.ascii	"%s\012\000"
	.align	2
.LC28:
	.ascii	"otp_enc error: input contains bad characters\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	invaid_Characters
	.syntax unified
	.arm
	.fpu softvfp
	.type	invaid_Characters, %function
invaid_Characters:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L79
.L81:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L83+4
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	bne	.L80
	ldr	r3, .L83+8
	sub	ip, fp, #56
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	ldr	r3, .L83+12
	ldr	r3, [r3]
	sub	r2, fp, #56
	ldr	r1, .L83+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L80:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L79:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	blt	.L81
	nop
	ldr	r3, .L83
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L82
	bl	__stack_chk_fail
.L82:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC30
	.word	possible_Characters.7422
	.word	.LC28
	.word	stderr
	.word	.LC29
	.size	invaid_Characters, .-invaid_Characters
	.section	.rodata
	.align	2
.LC31:
	.ascii	"/tmp/myTmpFile-XXXXXX\000"
	.align	2
.LC32:
	.ascii	"\012 Creation of temporary file failed. Error: [%s]"
	.ascii	"\012\000"
	.align	2
.LC33:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	file_Descriptor
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_Descriptor, %function
file_Descriptor:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L90
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r0, r3
	mov	r3, #32
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #64
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	str	r3, [r2, #16]
	str	r3, [r2, #20]
	sub	r3, fp, #40
	ldr	r2, .L90+4
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	str	r0, [ip]
	add	ip, ip, #4
	strb	r1, [ip]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #40
	mov	r0, r3
	bl	mkstemp
	str	r0, [fp, #-68]
	sub	r3, fp, #40
	mov	r0, r3
	bl	unlink
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bgt	.L86
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L90+8
	bl	printf
	mov	r3, #1
	b	.L88
.L86:
	ldr	r3, [fp, #-68]
.L88:
	ldr	r2, .L90
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L89
	bl	__stack_chk_fail
.L89:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	.LC33
	.word	.LC31
	.word	.LC32
	.size	file_Descriptor, .-file_Descriptor
	.align	2
	.global	remove_New_Line_from_Buffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_New_Line_from_Buffer, %function
remove_New_Line_from_Buffer:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L93
.L97:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L96
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #59
	strb	r2, [r3]
.L96:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L93:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L97
	b	.L92
.L98:
	nop
.L92:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	remove_New_Line_from_Buffer, .-remove_New_Line_from_Buffer
	.section	.rodata
	.align	2
	.type	possible_Characters.7422, %object
	.size	possible_Characters.7422, 28
possible_Characters.7422:
	.ascii	"ABCDEFGHIJKLMNOPQRSTUVWXYZ \000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
