	.file	"670355.c"
	.intel_syntax noprefix
	.text
	.globl	goes
	.bss
	.align 8
	.type	goes, @object
	.size	goes, 10
goes:
	.zero	10
	.globl	length
	.align 4
	.type	length, @object
	.size	length, 4
length:
	.zero	4
	.globl	key
	.align 4
	.type	key, @object
	.size	key, 4
key:
	.zero	4
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	plainText
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter 9 digit message(must be small letters) > "
.LC1:
	.string	"%s"
	.align 8
.LC2:
	.string	"Enter key to encrypt the data                > "
.LC3:
	.string	"%d"
	.align 8
.LC4:
	.string	"Does not satisfy The condition."
	.text
	.globl	plainText
	.type	plainText, @function
plainText:
.LFB1:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, key[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -18[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR length[rip], eax
	lea	rax, -18[rbp]
	mov	rdi, rax
	call	check
	test	al, al
	je	.L3
	lea	rax, -18[rbp]
	mov	rdi, rax
	call	encryption
	jmp	.L6
.L3:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L6:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	plainText, .-plainText
	.section	.rodata
.LC5:
	.string	"Orignal message  > %s\n"
.LC6:
	.string	"Encrypted text > "
	.text
	.globl	encryption
	.type	encryption, @function
encryption:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -24[rbp], 223
	jmp	.L8
.L10:
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	eax, DWORD PTR key[rip]
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 122
	jle	.L9
	sub	DWORD PTR -28[rbp], 26
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, goes[rip]
	mov	BYTE PTR [rax+rdx], 1
.L9:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	and	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
	add	DWORD PTR -32[rbp], 1
.L8:
	mov	eax, DWORD PTR length[rip]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L10
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -32[rbp], 1
.L11:
	mov	eax, DWORD PTR length[rip]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L12
	mov	edi, 10
	call	putchar@PLT
	lea	rax, -18[rbp]
	mov	rdi, rax
	call	decryption
	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
.LFE2:
	.size	encryption, .-encryption
	.section	.rodata
.LC7:
	.string	"Decrypted text > "
	.text
	.globl	decryption
	.type	decryption, @function
decryption:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 32
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, goes[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L16
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR key[rip]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	add	eax, 26
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR key[rip]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
.L17:
	add	DWORD PTR -28[rbp], 1
.L15:
	mov	eax, DWORD PTR length[rip]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L18
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -28[rbp], 1
.L19:
	mov	eax, DWORD PTR length[rip]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L20
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	decryption, .-decryption
	.globl	check
	.type	check, @function
check:
.LFB4:
	.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 -4[rbp], 0
	mov	eax, DWORD PTR length[rip]
	cmp	eax, 9
	jle	.L23
	mov	eax, 0
	jmp	.L24
.L23:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L25
.L27:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jle	.L26
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 90
	jg	.L26
	mov	eax, 0
	jmp	.L24
.L26:
	add	DWORD PTR -8[rbp], 1
.L25:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L27
	mov	eax, 1
.L24:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	check, .-check
	.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	"670355.c"
	.text
	.comm	goes,10,4
	.comm	length,4,4
	.global	key
	.bss
	.align	2
	.type	key, %object
	.size	key, 4
key:
	.space	4
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	plainText
	nop
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter 9 digit message(must be small letters) > \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Enter key to encrypt the data                > \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Does not satisfy The condition.\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	plainText
	.syntax unified
	.arm
	.fpu softvfp
	.type	plainText, %function
plainText:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L7+4
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L7+8
	bl	__isoc99_scanf
	ldr	r0, .L7+12
	bl	printf
	ldr	r1, .L7+16
	ldr	r0, .L7+20
	bl	__isoc99_scanf
	sub	r3, fp, #20
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L7+24
	str	r2, [r3]
	sub	r3, fp, #20
	mov	r0, r3
	bl	check
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	sub	r3, fp, #20
	mov	r0, r3
	bl	encryption
	b	.L6
.L3:
	ldr	r0, .L7+28
	bl	puts
.L6:
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	key
	.word	.LC3
	.word	length
	.word	.LC4
	.size	plainText, .-plainText
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Orignal message  > %s\012\000"
	.align	2
.LC7:
	.ascii	"Encrypted text > \000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	encryption
	.syntax unified
	.arm
	.fpu softvfp
	.type	encryption, %function
encryption:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-40]
	ldr	r0, .L16+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #223
	str	r3, [fp, #-24]
	b	.L10
.L12:
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L16+8
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #122
	ble	.L11
	ldr	r3, [fp, #-28]
	sub	r3, r3, #26
	str	r3, [fp, #-28]
	ldr	r2, .L16+12
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
.L11:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, r2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r1, r3, #255
	sub	r2, fp, #20
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L10:
	ldr	r3, .L16+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L12
	ldr	r0, .L16+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L13
.L14:
	sub	r2, fp, #20
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L13:
	ldr	r3, .L16+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L14
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #20
	mov	r0, r3
	bl	decryption
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC8
	.word	.LC6
	.word	key
	.word	goes
	.word	length
	.word	.LC7
	.size	encryption, .-encryption
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Decrypted text > \000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	decryption
	.syntax unified
	.arm
	.fpu softvfp
	.type	decryption, %function
decryption:
	@ 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]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #32
	str	r3, [fp, #-24]
	b	.L19
.L22:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	and	r2, r3, #255
	ldr	r3, [fp, #-28]
	ldr	r0, [fp, #-32]
	add	r3, r0, r3
	add	r2, r1, r2
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, .L26+4
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L26+8
	ldr	r3, [r3]
	and	r3, r3, #255
	sub	r3, r2, r3
	and	r3, r3, #255
	add	r3, r3, #26
	and	r1, r3, #255
	sub	r2, fp, #20
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	b	.L21
.L20:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L26+8
	ldr	r3, [r3]
	and	r3, r3, #255
	sub	r3, r2, r3
	and	r1, r3, #255
	sub	r2, fp, #20
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L21:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L19:
	ldr	r3, .L26+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L22
	ldr	r0, .L26+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L23
.L24:
	sub	r2, fp, #20
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L23:
	ldr	r3, .L26+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L24
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC10
	.word	goes
	.word	key
	.word	length
	.word	.LC9
	.size	decryption, .-decryption
	.align	2
	.global	check
	.syntax unified
	.arm
	.fpu softvfp
	.type	check, %function
check:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L34
	ldr	r3, [r3]
	cmp	r3, #9
	ble	.L29
	mov	r3, #0
	b	.L30
.L29:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L31
.L33:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L32
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L32
	mov	r3, #0
	b	.L30
.L32:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L31:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L33
	mov	r3, #1
.L30:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L35:
	.align	2
.L34:
	.word	length
	.size	check, .-check
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
