	.file	"95449911.c"
	.intel_syntax noprefix
	.text
	.globl	CalcGCD
	.type	CalcGCD, @function
CalcGCD:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -8[rbp], 26
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	DWORD PTR -8[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -12[rbp], eax
.L2:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	CalcGCD, .-CalcGCD
	.section	.rodata
.LC0:
	.string	"Enter a string"
	.align 8
.LC1:
	.string	"Enter Alpha value and must be between 1 and 25 both included"
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"Alpha should lie in between 1 and 25\nSorry Try again !"
	.align 8
.LC4:
	.string	"gcd(alpha,26)=1 but \n gcd(%d,26)=%d\nSorry Try again !\n"
	.align 8
.LC5:
	.string	"Enter Beta value and must be between 0 and 25 both included"
	.align 8
.LC6:
	.string	"Beta value should lie between 0 and 25\nSorry Try again !"
.LC7:
	.string	"Affine Cipher text is: "
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 952
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -128[rbp]
	mov	esi, 100000
	mov	rdi, rax
	call	fgets@PLT
	mov	DWORD PTR -940[rbp], 0
	mov	DWORD PTR -936[rbp], 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	al, 32
	je	.L7
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -936[rbp]
	cdqe
	mov	BYTE PTR -128[rbp+rax], dl
	add	DWORD PTR -936[rbp], 1
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -936[rbp]
	cdqe
	mov	BYTE PTR -128[rbp+rax], 32
	add	DWORD PTR -936[rbp], 1
.L8:
	add	DWORD PTR -940[rbp], 1
.L6:
	mov	eax, DWORD PTR -940[rbp]
	movsx	rbx, eax
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L9
	mov	eax, DWORD PTR -936[rbp]
	cdqe
	mov	BYTE PTR -128[rbp+rax], 0
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -948[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -948[rbp]
	test	eax, eax
	jle	.L10
	mov	eax, DWORD PTR -948[rbp]
	cmp	eax, 25
	jle	.L11
.L10:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR -948[rbp]
	mov	edi, eax
	call	CalcGCD
	mov	DWORD PTR -932[rbp], eax
	cmp	DWORD PTR -932[rbp], 1
	je	.L12
	mov	eax, DWORD PTR -948[rbp]
	mov	edx, DWORD PTR -932[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L12:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -944[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -944[rbp]
	test	eax, eax
	js	.L13
	mov	eax, DWORD PTR -944[rbp]
	cmp	eax, 25
	jle	.L14
.L13:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L14:
	mov	DWORD PTR -940[rbp], 0
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	al, 32
	je	.L16
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	movsx	eax, al
	lea	edx, -65[rax]
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	mov	DWORD PTR -928[rbp+rax*4], edx
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	mov	DWORD PTR -928[rbp+rax*4], -20
.L17:
	add	DWORD PTR -940[rbp], 1
.L15:
	mov	eax, DWORD PTR -940[rbp]
	movsx	rbx, eax
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L18
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -940[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	mov	eax, DWORD PTR -928[rbp+rax*4]
	cmp	eax, -20
	je	.L20
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	mov	edx, DWORD PTR -928[rbp+rax*4]
	mov	eax, DWORD PTR -948[rbp]
	imul	edx, eax
	mov	eax, DWORD PTR -944[rbp]
	add	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1321528399
	shr	rax, 32
	sar	eax, 3
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 26
	mov	eax, edx
	sub	eax, ecx
	mov	edx, DWORD PTR -940[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -528[rbp+rdx*4], eax
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	mov	eax, DWORD PTR -528[rbp+rax*4]
	add	eax, 65
	mov	edi, eax
	call	putchar@PLT
	jmp	.L21
.L20:
	mov	edi, 32
	call	putchar@PLT
.L21:
	add	DWORD PTR -940[rbp], 1
.L19:
	mov	eax, DWORD PTR -940[rbp]
	movsx	rbx, eax
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L22
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"95449911.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	CalcGCD
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalcGCD, %function
CalcGCD:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r3, #26
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	CalcGCD, .-CalcGCD
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter a string\000"
	.align	2
.LC1:
	.ascii	"Enter Alpha value and must be between 1 and 25 both"
	.ascii	" included\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Alpha should lie in between 1 and 25\012Sorry Try a"
	.ascii	"gain !\000"
	.align	2
.LC4:
	.ascii	"gcd(alpha,26)=1 but \012 gcd(%d,26)=%d\012Sorry Try"
	.ascii	" again !\012\000"
	.align	2
.LC5:
	.ascii	"Enter Beta value and must be between 0 and 25 both "
	.ascii	"included\000"
	.align	2
.LC6:
	.ascii	"Beta value should lie between 0 and 25\012Sorry Try"
	.ascii	" again !\000"
	.align	2
.LC7:
	.ascii	"Affine Cipher text is: \000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 928
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #928
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L25+4
	bl	puts
	ldr	r3, .L25+8
	ldr	r2, [r3]
	sub	r3, fp, #108
	ldr	r1, .L25+12
	mov	r0, r3
	bl	fgets
	mov	r3, #0
	str	r3, [fp, #-920]
	mov	r3, #0
	str	r3, [fp, #-916]
	b	.L6
.L9:
	sub	r2, fp, #108
	ldr	r3, [fp, #-920]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L7
	sub	r2, fp, #108
	ldr	r3, [fp, #-920]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	and	r1, r3, #255
	sub	r2, fp, #108
	ldr	r3, [fp, #-916]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-916]
	add	r3, r3, #1
	str	r3, [fp, #-916]
	b	.L8
.L7:
	sub	r2, fp, #108
	ldr	r3, [fp, #-916]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-916]
	add	r3, r3, #1
	str	r3, [fp, #-916]
.L8:
	ldr	r3, [fp, #-920]
	add	r3, r3, #1
	str	r3, [fp, #-920]
.L6:
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-920]
	cmp	r2, r3
	bhi	.L9
	sub	r2, fp, #108
	ldr	r3, [fp, #-916]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, .L25+16
	bl	puts
	sub	r3, fp, #928
	mov	r1, r3
	ldr	r0, .L25+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-928]
	cmp	r3, #0
	ble	.L10
	ldr	r3, [fp, #-928]
	cmp	r3, #25
	ble	.L11
.L10:
	ldr	r0, .L25+24
	bl	puts
	mov	r0, #0
	bl	exit
.L11:
	ldr	r3, [fp, #-928]
	mov	r0, r3
	bl	CalcGCD
	str	r0, [fp, #-912]
	ldr	r3, [fp, #-912]
	cmp	r3, #1
	beq	.L12
	ldr	r3, [fp, #-928]
	ldr	r2, [fp, #-912]
	mov	r1, r3
	ldr	r0, .L25+28
	bl	printf
	mov	r0, #0
	bl	exit
.L12:
	ldr	r0, .L25+32
	bl	puts
	sub	r3, fp, #924
	mov	r1, r3
	ldr	r0, .L25+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-924]
	cmp	r3, #0
	blt	.L13
	ldr	r3, [fp, #-924]
	cmp	r3, #25
	ble	.L14
.L13:
	ldr	r0, .L25+36
	bl	puts
	mov	r0, #0
	bl	exit
.L14:
	mov	r3, #0
	str	r3, [fp, #-920]
	b	.L15
.L18:
	sub	r2, fp, #108
	ldr	r3, [fp, #-920]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L16
	sub	r2, fp, #108
	ldr	r3, [fp, #-920]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #65
	ldr	r3, [fp, #-920]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-904]
	b	.L17
.L16:
	ldr	r3, [fp, #-920]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mvn	r2, #19
	str	r2, [r3, #-904]
.L17:
	ldr	r3, [fp, #-920]
	add	r3, r3, #1
	str	r3, [fp, #-920]
.L15:
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-920]
	cmp	r2, r3
	bhi	.L18
	ldr	r0, .L25+40
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-920]
	b	.L19
.L22:
	ldr	r3, [fp, #-920]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-904]
	cmn	r3, #20
	beq	.L20
	ldr	r3, [fp, #-920]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-904]
	ldr	r2, [fp, #-928]
	mul	r2, r3, r2
	ldr	r3, [fp, #-924]
	add	r1, r2, r3
	ldr	r3, .L25+44
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, [fp, #-920]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-504]
	ldr	r3, [fp, #-920]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-504]
	add	r3, r3, #65
	mov	r0, r3
	bl	putchar
	b	.L21
.L20:
	mov	r0, #32
	bl	putchar
.L21:
	ldr	r3, [fp, #-920]
	add	r3, r3, #1
	str	r3, [fp, #-920]
.L19:
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-920]
	cmp	r2, r3
	bhi	.L22
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC8
	.word	.LC0
	.word	stdin
	.word	100000
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	1321528399
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
