	.file	"577843.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Write a message: "
.LC1:
	.string	" %[^\n]s"
	.align 8
.LC2:
	.string	"Choose how to encrypt the message by typing the direction and how fast the pointer will move"
	.align 8
.LC3:
	.string	"You can choose to type between 26 an -26 but type 0 to end the program: "
.LC4:
	.string	"%i"
	.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, 640
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L6:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -624[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -632[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -632[rbp]
	test	eax, eax
	jne	.L2
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	jmp	.L8
.L2:
	mov	DWORD PTR -628[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -628[rbp]
	cdqe
	movzx	eax, BYTE PTR -624[rbp+rax]
	movsx	edx, al
	mov	eax, DWORD PTR -632[rbp]
	mov	esi, edx
	mov	edi, eax
	call	CurrentWord
	mov	edx, DWORD PTR -628[rbp]
	movsx	rdx, edx
	mov	BYTE PTR -320[rbp+rdx], al
	add	DWORD PTR -628[rbp], 1
.L4:
	cmp	DWORD PTR -628[rbp], 299
	jle	.L5
	lea	rax, -624[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rax, -320[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rax, -320[rbp]
	mov	rdi, rax
	call	WriteOnFile
	jmp	.L6
.L8:
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	CurrentWord
	.type	CurrentWord, @function
CurrentWord:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	eax, esi
	mov	BYTE PTR -120[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 7523094288207667809
	movabs	rdx, 8101815670912281193
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	movabs	rax, 8680537053616894577
	mov	QWORD PTR -64[rbp], rax
	mov	WORD PTR -56[rbp], 31353
	mov	BYTE PTR -54[rbp], 0
	movabs	rax, 5208208757389214273
	movabs	rdx, 5786930140093827657
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	movabs	rax, 6365651522798441041
	mov	QWORD PTR -32[rbp], rax
	mov	WORD PTR -24[rbp], 23129
	mov	BYTE PTR -22[rbp], 0
	mov	DWORD PTR -100[rbp], 0
	cmp	BYTE PTR -120[rbp], 64
	jle	.L10
	cmp	BYTE PTR -120[rbp], 90
	jg	.L10
	mov	DWORD PTR -88[rbp], 0
	cmp	DWORD PTR -88[rbp], 25
	jg	.L31
	mov	DWORD PTR -96[rbp], 0
	jmp	.L12
.L15:
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	movzx	eax, BYTE PTR -48[rbp+rax]
	cmp	BYTE PTR -120[rbp], al
	jne	.L13
	mov	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR -100[rbp], eax
	jmp	.L14
.L13:
	add	DWORD PTR -96[rbp], 1
.L12:
	cmp	DWORD PTR -96[rbp], 25
	jle	.L15
.L14:
	mov	eax, DWORD PTR -116[rbp]
	add	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	jns	.L16
	add	DWORD PTR -100[rbp], 26
.L16:
	cmp	DWORD PTR -100[rbp], 25
	jle	.L17
	sub	DWORD PTR -100[rbp], 26
.L17:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	movzx	eax, BYTE PTR -48[rbp+rax]
	jmp	.L9
.L10:
	cmp	BYTE PTR -120[rbp], 96
	jle	.L20
	cmp	BYTE PTR -120[rbp], 122
	jg	.L20
	mov	DWORD PTR -84[rbp], 0
	cmp	DWORD PTR -84[rbp], 25
	jg	.L32
	mov	DWORD PTR -92[rbp], 0
	jmp	.L22
.L25:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	movzx	eax, BYTE PTR -80[rbp+rax]
	cmp	BYTE PTR -120[rbp], al
	jne	.L23
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -100[rbp], eax
	jmp	.L24
.L23:
	add	DWORD PTR -92[rbp], 1
.L22:
	cmp	DWORD PTR -92[rbp], 25
	jle	.L25
.L24:
	mov	eax, DWORD PTR -116[rbp]
	add	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	jns	.L26
	add	DWORD PTR -100[rbp], 26
.L26:
	cmp	DWORD PTR -100[rbp], 25
	jle	.L27
	sub	DWORD PTR -100[rbp], 26
.L27:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	movzx	eax, BYTE PTR -80[rbp+rax]
	jmp	.L9
.L20:
	cmp	BYTE PTR -120[rbp], 32
	jne	.L28
	mov	eax, 32
	jmp	.L9
.L28:
	mov	eax, 0
	jmp	.L9
.L31:
	nop
	jmp	.L19
.L32:
	nop
.L19:
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	CurrentWord, .-CurrentWord
	.section	.rodata
.LC5:
	.string	"a"
.LC6:
	.string	"Crypto.txt"
.LC7:
	.string	"Error opening file!"
.LC8:
	.string	"%s\n"
	.text
	.globl	WriteOnFile
	.type	WriteOnFile, @function
WriteOnFile:
.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	QWORD PTR -24[rbp], rdi
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L34
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	WriteOnFile, .-WriteOnFile
	.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	"577843.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Write a message: \000"
	.align	2
.LC1:
	.ascii	" %[^\012]s\000"
	.align	2
.LC2:
	.ascii	"Choose how to encrypt the message by typing the dir"
	.ascii	"ection and how fast the pointer will move\000"
	.align	2
.LC3:
	.ascii	"You can choose to type between 26 an -26 but type 0"
	.ascii	" to end the program: \000"
	.align	2
.LC4:
	.ascii	"%i\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 616
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #616
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L6:
	ldr	r0, .L9+4
	bl	printf
	sub	r3, fp, #608
	mov	r1, r3
	ldr	r0, .L9+8
	bl	__isoc99_scanf
	ldr	r0, .L9+12
	bl	puts
	ldr	r0, .L9+16
	bl	printf
	sub	r3, fp, #616
	mov	r1, r3
	ldr	r0, .L9+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-616]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	b	.L8
.L2:
	mov	r3, #0
	str	r3, [fp, #-612]
	b	.L4
.L5:
	ldr	r0, [fp, #-616]
	sub	r2, fp, #608
	ldr	r3, [fp, #-612]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	bl	CurrentWord
	mov	r3, r0
	mov	r1, r3
	sub	r2, fp, #308
	ldr	r3, [fp, #-612]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-612]
	add	r3, r3, #1
	str	r3, [fp, #-612]
.L4:
	ldr	r3, [fp, #-612]
	cmp	r3, #300
	blt	.L5
	sub	r3, fp, #608
	mov	r0, r3
	bl	puts
	sub	r3, fp, #308
	mov	r0, r3
	bl	puts
	sub	r3, fp, #308
	mov	r0, r3
	bl	WriteOnFile
	b	.L6
.L8:
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"abcdefghijklmnopqrstuvwxyz\000"
	.align	2
.LC7:
	.ascii	"ABCDEFGHIJKLMNOPQRSTUVWXYZ\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CurrentWord
	.syntax unified
	.arm
	.fpu softvfp
	.type	CurrentWord, %function
CurrentWord:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	mov	r3, r1
	strb	r3, [fp, #-89]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L35+4
	sub	ip, fp, #64
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	strh	r2, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r2, #16
	strb	r3, [ip]
	ldr	r3, .L35+8
	sub	ip, fp, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	strh	r2, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r2, #16
	strb	r3, [ip]
	mov	r3, #0
	str	r3, [fp, #-84]
	ldrb	r3, [fp, #-89]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L12
	ldrb	r3, [fp, #-89]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L12
	mov	r3, #0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #25
	bgt	.L33
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L14
.L17:
	sub	r2, fp, #36
	ldr	r3, [fp, #-80]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-89]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L15
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-84]
	b	.L16
.L15:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L14:
	ldr	r3, [fp, #-80]
	cmp	r3, #25
	ble	.L17
.L16:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bge	.L18
	ldr	r3, [fp, #-84]
	add	r3, r3, #26
	str	r3, [fp, #-84]
.L18:
	ldr	r3, [fp, #-84]
	cmp	r3, #25
	ble	.L19
	ldr	r3, [fp, #-84]
	sub	r3, r3, #26
	str	r3, [fp, #-84]
.L19:
	sub	r2, fp, #36
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L11
.L12:
	ldrb	r3, [fp, #-89]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L22
	ldrb	r3, [fp, #-89]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L22
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #25
	bgt	.L34
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L24
.L27:
	sub	r2, fp, #64
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-89]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L25
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-84]
	b	.L26
.L25:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L24:
	ldr	r3, [fp, #-76]
	cmp	r3, #25
	ble	.L27
.L26:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bge	.L28
	ldr	r3, [fp, #-84]
	add	r3, r3, #26
	str	r3, [fp, #-84]
.L28:
	ldr	r3, [fp, #-84]
	cmp	r3, #25
	ble	.L29
	ldr	r3, [fp, #-84]
	sub	r3, r3, #26
	str	r3, [fp, #-84]
.L29:
	sub	r2, fp, #64
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L11
.L22:
	ldrb	r3, [fp, #-89]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L30
	mov	r3, #32
	b	.L11
.L30:
	mov	r3, #0
	b	.L11
.L33:
	nop
	b	.L21
.L34:
	nop
.L21:
.L11:
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC8
	.word	.LC6
	.word	.LC7
	.size	CurrentWord, .-CurrentWord
	.section	.rodata
	.align	2
.LC9:
	.ascii	"a\000"
	.align	2
.LC10:
	.ascii	"Crypto.txt\000"
	.align	2
.LC11:
	.ascii	"Error opening file!\000"
	.align	2
.LC12:
	.ascii	"%s\012\000"
	.text
	.align	2
	.global	WriteOnFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	WriteOnFile, %function
WriteOnFile:
	@ 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	r1, .L39
	ldr	r0, .L39+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L38
	ldr	r0, .L39+8
	bl	puts
	mov	r0, #1
	bl	exit
.L38:
	ldr	r2, [fp, #-16]
	ldr	r1, .L39+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	WriteOnFile, .-WriteOnFile
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
