	.file	"675806.c"
	.intel_syntax noprefix
	.text
	.globl	clearBuffer
	.type	clearBuffer, @function
clearBuffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
.L2:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L2
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	clearBuffer, .-clearBuffer
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter message to be encrypted : "
.LC1:
	.string	"Enter shift amount (1-25) : "
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"Shift amount is not a number within range 1 - 25. Please try again."
.LC4:
	.string	"Encrypted message : %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -116[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L5:
	cmp	DWORD PTR -108[rbp], 79
	jg	.L4
	mov	eax, DWORD PTR -104[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	BYTE PTR -96[rbp+rax], dl
	add	DWORD PTR -108[rbp], 1
.L4:
	call	getchar@PLT
	mov	DWORD PTR -104[rbp], eax
	cmp	DWORD PTR -104[rbp], 10
	jne	.L5
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	lea	rax, -116[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	je	.L6
	mov	eax, DWORD PTR -116[rbp]
	test	eax, eax
	jle	.L6
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, 25
	jle	.L7
.L6:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
	call	clearBuffer
	jmp	.L8
.L7:
	mov	DWORD PTR -100[rbp], 80
	mov	DWORD PTR -112[rbp], 0
	jmp	.L9
.L14:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	movzx	eax, BYTE PTR -96[rbp+rax]
	mov	edx, eax
	mov	eax, DWORD PTR -116[rbp]
	add	eax, edx
	mov	BYTE PTR -117[rbp], al
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	movzx	eax, BYTE PTR -96[rbp+rax]
	cmp	al, 64
	jle	.L10
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	movzx	eax, BYTE PTR -96[rbp+rax]
	cmp	al, 90
	jg	.L10
	cmp	BYTE PTR -117[rbp], 90
	jbe	.L11
	movzx	edx, BYTE PTR -117[rbp]
	mov	eax, edx
	shr	al
	mov	ecx, -73
	mul	cl
	shr	ax, 8
	shr	al, 5
	mov	ecx, 90
	imul	eax, ecx
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	add	eax, 64
	mov	BYTE PTR -117[rbp], al
.L11:
	movzx	edx, BYTE PTR -117[rbp]
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	mov	BYTE PTR -96[rbp+rax], dl
	jmp	.L12
.L10:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	movzx	eax, BYTE PTR -96[rbp+rax]
	cmp	al, 96
	jle	.L12
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	movzx	eax, BYTE PTR -96[rbp+rax]
	cmp	al, 122
	jg	.L12
	cmp	BYTE PTR -117[rbp], 122
	jbe	.L13
	movzx	ecx, BYTE PTR -117[rbp]
	mov	eax, ecx
	shr	al
	movzx	edx, al
	mov	eax, edx
	sal	eax, 3
	add	eax, edx
	mov	edx, eax
	sal	edx, 4
	sub	edx, eax
	mov	eax, edx
	shr	ax, 8
	shr	al, 5
	mov	edx, 122
	imul	eax, edx
	mov	edx, eax
	mov	eax, ecx
	sub	eax, edx
	add	eax, 96
	mov	BYTE PTR -117[rbp], al
.L13:
	movzx	edx, BYTE PTR -117[rbp]
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	mov	BYTE PTR -96[rbp+rax], dl
.L12:
	add	DWORD PTR -112[rbp], 1
.L9:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jl	.L14
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"675806.c"
	.text
	.align	2
	.global	clearBuffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	clearBuffer, %function
clearBuffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	nop
.L2:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L2
	nop
	nop
	pop	{fp, pc}
	.size	clearBuffer, .-clearBuffer
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter message to be encrypted : \000"
	.align	2
.LC1:
	.ascii	"Enter shift amount (1-25) : \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Shift amount is not a number within range 1 - 25. P"
	.ascii	"lease try again.\000"
	.align	2
.LC4:
	.ascii	"Encrypted message : %s\012\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 = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-88]
	sub	r3, fp, #84
	mov	r2, #76
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-100]
	ldr	r0, .L17+4
	bl	printf
	b	.L4
.L5:
	ldr	r3, [fp, #-100]
	cmp	r3, #79
	bgt	.L4
	ldr	r3, [fp, #-96]
	and	r1, r3, #255
	sub	r2, fp, #88
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L4:
	bl	getchar
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #10
	bne	.L5
	ldr	r0, .L17+8
	bl	printf
.L8:
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L17+12
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	ble	.L6
	ldr	r3, [fp, #-108]
	cmp	r3, #25
	ble	.L7
.L6:
	ldr	r0, .L17+16
	bl	puts
	bl	clearBuffer
	b	.L8
.L7:
	mov	r3, #80
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L9
.L14:
	sub	r2, fp, #88
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-108]
	and	r3, r3, #255
	add	r3, r2, r3
	strb	r3, [fp, #-109]
	sub	r2, fp, #88
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L10
	sub	r2, fp, #88
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L10
	ldrb	r3, [fp, #-109]	@ zero_extendqisi2
	cmp	r3, #90
	bls	.L11
	ldrb	r1, [fp, #-109]	@ zero_extendqisi2
	lsr	r3, r1, #1
	ldr	r2, .L17+20
	umull	r0, r3, r2, r3
	lsr	r2, r3, #5
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #1
	mov	r2, r3
	sub	r3, r1, r2
	and	r3, r3, #255
	add	r3, r3, #64
	strb	r3, [fp, #-109]
.L11:
	sub	r2, fp, #88
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	ldrb	r2, [fp, #-109]
	strb	r2, [r3]
	b	.L12
.L10:
	sub	r2, fp, #88
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L12
	sub	r2, fp, #88
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L12
	ldrb	r3, [fp, #-109]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L13
	ldrb	r1, [fp, #-109]	@ zero_extendqisi2
	ldr	r3, .L17+24
	umull	r2, r3, r1, r3
	lsr	r2, r3, #5
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r3, r1, r3
	and	r3, r3, #255
	add	r3, r3, #96
	strb	r3, [fp, #-109]
.L13:
	sub	r2, fp, #88
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	ldrb	r2, [fp, #-109]
	strb	r2, [r3]
.L12:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L9:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L14
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L17+28
	bl	printf
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	-1240768329
	.word	1126548799
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
