	.file	"828503.c"
	.intel_syntax noprefix
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
.L2:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	encrypt
	jmp	.L2
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"Enter the string to encrypt."
.LC1:
	.string	"%s"
.LC2:
	.string	"heyy well done"
.LC3:
	.string	"\nThe encrypted str is: %s\n\n"
	.text
	.globl	encrypt
	.type	encrypt, @function
encrypt:
.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -128[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -124[rbp], eax
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -124[rbp], eax
	jne	.L5
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L12:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 96
	jle	.L6
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 122
	jle	.L7
.L6:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 64
	jle	.L8
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 90
	jg	.L8
.L7:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 96
	jg	.L9
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	movsx	edx, al
	mov	eax, 90
	sub	eax, DWORD PTR -124[rbp]
	cmp	edx, eax
	jg	.L10
.L9:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 122
	jg	.L11
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	movsx	edx, al
	mov	eax, 122
	sub	eax, DWORD PTR -124[rbp]
	cmp	edx, eax
	jle	.L11
.L10:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	mov	edx, eax
	mov	eax, DWORD PTR -124[rbp]
	add	eax, edx
	sub	eax, 26
	mov	edx, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], dl
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	mov	edx, eax
	mov	eax, DWORD PTR -124[rbp]
	add	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], dl
.L8:
	add	DWORD PTR -128[rbp], 1
.L5:
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	test	al, al
	jne	.L12
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@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
.LFE7:
	.size	encrypt, .-encrypt
	.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	"828503.c"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-12]
.L2:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	encrypt
	b	.L2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the string to encrypt.\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"heyy well done\000"
	.align	2
.LC3:
	.ascii	"\012The encrypted str is: %s\012\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	encrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	encrypt, %function
encrypt:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
	ldr	r0, .L14+4
	bl	puts
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-116]
	ldr	r0, [fp, #-116]
	bl	atoi
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-112]
	cmp	r3, r2
	bne	.L5
	ldr	r0, .L14+12
	bl	printf
	b	.L5
.L12:
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L6
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L7
.L6:
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L8
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L8
.L7:
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #96
	bhi	.L9
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-112]
	rsb	r3, r3, #90
	cmp	r2, r3
	bgt	.L10
.L9:
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L11
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-112]
	rsb	r3, r3, #122
	cmp	r2, r3
	ble	.L11
.L10:
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	and	r3, r3, #255
	add	r3, r2, r3
	and	r3, r3, #255
	sub	r3, r3, #26
	and	r1, r3, #255
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	b	.L8
.L11:
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-112]
	and	r3, r3, #255
	add	r3, r2, r3
	and	r1, r3, #255
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L8:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L5:
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L14+16
	bl	printf
	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	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	encrypt, .-encrypt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
