	.file	"103181.c"
	.intel_syntax noprefix
	.text
	.globl	CHARSET
	.section	.rodata
	.align 32
	.type	CHARSET, @object
	.size	CHARSET, 45
CHARSET:
	.string	"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .,;!-'?"
.LC0:
	.string	"clear"
.LC1:
	.string	"\n> "
	.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, 2224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2220[rbp], 0
	mov	DWORD PTR -2216[rbp], 0
	lea	rdi, .LC0[rip]
	call	system@PLT
	mov	eax, 0
	call	menu
.L2:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	call	getInput
	mov	DWORD PTR -2212[rbp], eax
	lea	rdi, -272[rbp]
	lea	rcx, -2208[rbp]
	lea	rdx, -2216[rbp]
	lea	rsi, -2220[rbp]
	mov	eax, DWORD PTR -2212[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	setChoice
	jmp	.L2
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.string	"\n  QUICK PASSWORD ENCRYPTER\n ~~~~~~~~~~~~~~~~~~~~~~~~\n"
	.align 8
.LC3:
	.string	" 1. Enter a random number seed to generate the Tabula Recta "
.LC4:
	.string	" 2. Enter the Keyword "
	.align 8
.LC5:
	.string	" 3. Enter a message to encrypt "
	.align 8
.LC6:
	.string	" 4. Enter a message to decrypt "
.LC7:
	.string	" 5. Exit the program \n"
	.text
	.globl	menu
	.type	menu, @function
menu:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	menu, .-menu
	.section	.rodata
	.align 8
.LC8:
	.string	"\nMake sure you have entered a random number and keyword"
.LC9:
	.string	"\nPress enter to refresh..."
.LC10:
	.string	"Program exited successfully"
.LC11:
	.string	"\nInvalid Option"
	.text
	.globl	setChoice
	.type	setChoice, @function
setChoice:
.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, 48
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	QWORD PTR -40[rbp], r8
	cmp	DWORD PTR -4[rbp], 5
	ja	.L6
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L8[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L8[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L6-.L8
	.long	.L12-.L8
	.long	.L11-.L8
	.long	.L10-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.text
.L12:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	seeder
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L14
	jmp	.L15
.L11:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	keyword
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
.L16:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L17
	jmp	.L15
.L10:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L18
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L18
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	encrypt
	jmp	.L15
.L18:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	call	getInput
	jmp	.L15
.L9:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L20
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	decrypt
	jmp	.L15
.L20:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	call	getInput
	jmp	.L15
.L7:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L6:
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	call	getInput
	nop
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	setChoice, .-setChoice
	.section	.rodata
.LC12:
	.string	"Input number: "
.LC13:
	.string	"\nSeed: %d\n"
	.text
	.globl	seeder
	.type	seeder, @function
seeder:
.LFB9:
	.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
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	call	getInput
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	srandom@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, CHARSET[rip]
	movzx	ecx, BYTE PTR [rax+rdx]
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -24[rbp], 1
.L23:
	cmp	DWORD PTR -24[rbp], 43
	jle	.L24
	mov	DWORD PTR -20[rbp], 43
	jmp	.L25
.L26:
	call	random@PLT
	mov	edx, DWORD PTR -20[rbp]
	add	edx, 1
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	rax, rdx
	mov	DWORD PTR -4[rbp], eax
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR -25[rbp], al
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	movzx	ecx, BYTE PTR -25[rbp]
	mov	BYTE PTR [rdx+rax], cl
	sub	DWORD PTR -20[rbp], 1
.L25:
	cmp	DWORD PTR -20[rbp], 0
	jg	.L26
	mov	DWORD PTR -16[rbp], 1
	jmp	.L27
.L30:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rdx, -44[rax]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	edi, 1[rax]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	movsx	rax, edi
	movzx	edx, BYTE PTR [rsi+rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	BYTE PTR [rcx+rax], dl
	add	DWORD PTR -12[rbp], 1
.L28:
	cmp	DWORD PTR -12[rbp], 43
	jle	.L29
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rdx, -44[rax]
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR [rcx]
	mov	BYTE PTR 43[rdx], al
	add	DWORD PTR -16[rbp], 1
.L27:
	cmp	DWORD PTR -16[rbp], 43
	jle	.L30
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	seeder, .-seeder
	.section	.rodata
.LC14:
	.string	"Input keyword: "
.LC15:
	.string	"\nKeyword: %s\n"
	.text
	.globl	keyword
	.type	keyword, @function
keyword:
.LFB10:
	.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	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	getChar
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L32
.L33:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -8[rbp], 1
.L32:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -8[rbp]
	add	edx, ecx
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -8[rbp], 1
.L34:
	mov	eax, 250
	sub	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L35
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	keyword, .-keyword
	.section	.rodata
.LC16:
	.string	"Input plaintext: "
.LC17:
	.string	"\nMessage: %s\n"
.LC18:
	.string	"Encryption: %s\n"
	.text
	.globl	encrypt
	.type	encrypt, @function
encrypt:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 576
	mov	QWORD PTR -568[rbp], rdi
	mov	QWORD PTR -576[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -528[rbp]
	mov	esi, 250
	mov	rdi, rax
	call	getChar
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -540[rbp], eax
	mov	DWORD PTR -548[rbp], 0
	jmp	.L37
.L38:
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	mov	BYTE PTR -528[rbp+rax], dl
	add	DWORD PTR -548[rbp], 1
.L37:
	mov	eax, DWORD PTR -548[rbp]
	cmp	eax, DWORD PTR -540[rbp]
	jl	.L38
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -536[rbp], 0
	mov	DWORD PTR -532[rbp], 0
	mov	DWORD PTR -544[rbp], 0
	jmp	.L39
.L41:
	mov	eax, DWORD PTR -544[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, CHARSET[rip]
	call	getPosition
	mov	DWORD PTR -536[rbp], eax
	mov	eax, DWORD PTR -544[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, CHARSET[rip]
	call	getPosition
	mov	DWORD PTR -532[rbp], eax
	mov	eax, DWORD PTR -536[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -568[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -532[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	mov	eax, DWORD PTR -544[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	mov	eax, DWORD PTR -544[rbp]
	cmp	eax, DWORD PTR -540[rbp]
	jne	.L40
	mov	eax, DWORD PTR -544[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
.L40:
	add	DWORD PTR -544[rbp], 1
.L39:
	mov	eax, DWORD PTR -544[rbp]
	cmp	eax, DWORD PTR -540[rbp]
	jle	.L41
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	encrypt, .-encrypt
	.section	.rodata
.LC19:
	.string	"Input garbage: "
.LC20:
	.string	"\nEncryption: %s\n"
.LC21:
	.string	"Message: %s\n"
	.text
	.globl	decrypt
	.type	decrypt, @function
decrypt:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 576
	mov	QWORD PTR -568[rbp], rdi
	mov	QWORD PTR -576[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -528[rbp]
	mov	esi, 250
	mov	rdi, rax
	call	getChar
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -540[rbp], eax
	mov	DWORD PTR -548[rbp], 0
	jmp	.L44
.L45:
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	mov	BYTE PTR -528[rbp+rax], dl
	add	DWORD PTR -548[rbp], 1
.L44:
	mov	eax, DWORD PTR -548[rbp]
	cmp	eax, DWORD PTR -540[rbp]
	jl	.L45
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -536[rbp], 0
	mov	DWORD PTR -532[rbp], 0
	mov	DWORD PTR -544[rbp], 0
	jmp	.L46
.L48:
	mov	eax, DWORD PTR -544[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, CHARSET[rip]
	call	getPosition
	mov	DWORD PTR -536[rbp], eax
	mov	eax, DWORD PTR -544[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	movsx	ecx, al
	mov	eax, DWORD PTR -536[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	mov	esi, ecx
	mov	rdi, rax
	call	getPosition
	mov	DWORD PTR -532[rbp], eax
	mov	eax, DWORD PTR -532[rbp]
	cdqe
	lea	rdx, CHARSET[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -544[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	mov	eax, DWORD PTR -544[rbp]
	cmp	eax, DWORD PTR -540[rbp]
	jne	.L47
	mov	eax, DWORD PTR -544[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
.L47:
	add	DWORD PTR -544[rbp], 1
.L46:
	mov	eax, DWORD PTR -544[rbp]
	cmp	eax, DWORD PTR -540[rbp]
	jle	.L48
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	decrypt, .-decrypt
	.globl	getChar
	.type	getChar, @function
getChar:
.LFB13:
	.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
	mov	DWORD PTR -28[rbp], esi
	mov	rdx, QWORD PTR stdin[rip]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L52
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
.L52:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	getChar, .-getChar
	.section	.rodata
.LC22:
	.string	"%d"
	.text
	.globl	getInput
	.type	getInput, @function
getInput:
.LFB14:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -32[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	fgets@PLT
	lea	rdx, -36[rbp]
	lea	rax, -32[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	getInput, .-getInput
	.globl	getPosition
	.type	getPosition, @function
getPosition:
.LFB15:
	.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
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	DWORD PTR -12[rbp], -1
	movsx	edx, BYTE PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L57
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -12[rbp], eax
.L57:
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	getPosition, .-getPosition
	.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	"103181.c"
	.text
	.global	CHARSET
	.section	.rodata
	.align	2
	.type	CHARSET, %object
	.size	CHARSET, 45
CHARSET:
	.ascii	"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .,;!-'?\000"
	.align	2
.LC0:
	.ascii	"clear\000"
	.align	2
.LC1:
	.ascii	"\012> \000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2208
	sub	sp, sp, #8
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2208]
	mov	r3, #0
	str	r3, [fp, #-2204]
	ldr	r0, .L4+4
	bl	system
	bl	menu
.L2:
	ldr	r0, .L4+8
	bl	printf
	bl	getInput
	str	r0, [fp, #-2200]
	sub	r0, fp, #2192
	sub	r0, r0, #4
	sub	r2, fp, #2192
	sub	r2, r2, #4
	sub	r2, r2, #8
	sub	r1, fp, #2192
	sub	r1, r1, #4
	sub	r1, r1, #12
	sub	r3, fp, #260
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-2200]
	bl	setChoice
	b	.L2
.L5:
	.align	2
.L4:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012  QUICK PASSWORD ENCRYPTER\012 ~~~~~~~~~~~~~~~~"
	.ascii	"~~~~~~~~\012\000"
	.align	2
.LC4:
	.ascii	" 1. Enter a random number seed to generate the Tabu"
	.ascii	"la Recta \000"
	.align	2
.LC5:
	.ascii	" 2. Enter the Keyword \000"
	.align	2
.LC6:
	.ascii	" 3. Enter a message to encrypt \000"
	.align	2
.LC7:
	.ascii	" 4. Enter a message to decrypt \000"
	.align	2
.LC8:
	.ascii	" 5. Exit the program \012\000"
	.text
	.align	2
	.global	menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu, %function
menu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L7
	bl	puts
	ldr	r0, .L7+4
	bl	puts
	ldr	r0, .L7+8
	bl	puts
	ldr	r0, .L7+12
	bl	puts
	ldr	r0, .L7+16
	bl	puts
	ldr	r0, .L7+20
	bl	puts
	nop
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	menu, .-menu
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\012Make sure you have entered a random number and "
	.ascii	"keyword\000"
	.align	2
.LC10:
	.ascii	"\012Press enter to refresh...\000"
	.align	2
.LC11:
	.ascii	"Program exited successfully\000"
	.align	2
.LC12:
	.ascii	"\012Invalid Option\000"
	.text
	.align	2
	.global	setChoice
	.syntax unified
	.arm
	.fpu softvfp
	.type	setChoice, %function
setChoice:
	@ args = 4, 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L10
.L12:
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L11
.L16:
	ldr	r0, [fp, #-20]
	bl	seeder
	b	.L17
.L18:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3]
.L17:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L18
	b	.L19
.L15:
	ldr	r0, [fp, #4]
	bl	keyword
	b	.L20
.L21:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L20:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	b	.L19
.L14:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L22
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-20]
	bl	encrypt
	b	.L19
.L22:
	ldr	r0, .L26
	bl	printf
	ldr	r0, .L26+4
	bl	printf
	bl	getInput
	b	.L19
.L13:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
	ldr	r1, [fp, #4]
	ldr	r0, [fp, #-20]
	bl	decrypt
	b	.L19
.L24:
	ldr	r0, .L26
	bl	printf
	ldr	r0, .L26+4
	bl	printf
	bl	getInput
	b	.L19
.L11:
	ldr	r0, .L26+8
	bl	puts
	mov	r0, #0
	bl	exit
.L10:
	ldr	r0, .L26+12
	bl	printf
	ldr	r0, .L26+4
	bl	printf
	bl	getInput
	nop
.L19:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	setChoice, .-setChoice
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Input number: \000"
	.align	2
.LC14:
	.ascii	"\012Seed: %d\012\000"
	.global	__aeabi_idivmod
	.text
	.align	2
	.global	seeder
	.syntax unified
	.arm
	.fpu softvfp
	.type	seeder, %function
seeder:
	@ 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	r0, .L37
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	bl	getInput
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	srandom
	ldr	r1, [fp, #-12]
	ldr	r0, .L37+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L29
.L30:
	ldr	r2, .L37+8
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L29:
	ldr	r3, [fp, #-28]
	cmp	r3, #43
	ble	.L30
	mov	r3, #43
	str	r3, [fp, #-24]
	b	.L31
.L32:
	bl	random
	mov	r2, r0
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [fp, #-29]
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L31:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L32
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L33
.L36:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L34
.L35:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, #44
	ldr	r2, [fp, #-40]
	add	r0, r2, r3
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r2, r3, r2
	ldrb	r1, [r0, r1]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L34:
	ldr	r3, [fp, #-16]
	cmp	r3, #43
	ble	.L35
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, #44
	ldr	r2, [fp, #-40]
	add	r1, r2, r3
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, r2
	ldrb	r2, [r1]	@ zero_extendqisi2
	strb	r2, [r3, #43]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L33:
	ldr	r3, [fp, #-20]
	cmp	r3, #43
	ble	.L36
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC13
	.word	.LC14
	.word	CHARSET
	.size	seeder, .-seeder
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Input keyword: \000"
	.align	2
.LC16:
	.ascii	"\012Keyword: %s\012\000"
	.text
	.align	2
	.global	keyword
	.syntax unified
	.arm
	.fpu softvfp
	.type	keyword, %function
keyword:
	@ 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	r0, .L44
	bl	printf
	mov	r1, #20
	ldr	r0, [fp, #-16]
	bl	getChar
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L40
.L41:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r1, r0
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L40:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L41
	ldr	r1, [fp, #-16]
	ldr	r0, .L44+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L42
.L43:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L42:
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #250
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L43
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC15
	.word	.LC16
	.size	keyword, .-keyword
	.section	.rodata
	.align	2
.LC17:
	.ascii	"Input plaintext: \000"
	.align	2
.LC18:
	.ascii	"\012Message: %s\012\000"
	.align	2
.LC19:
	.ascii	"Encryption: %s\012\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	encrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	encrypt, %function
encrypt:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-536]
	str	r1, [fp, #-540]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L53+4
	bl	printf
	sub	r3, fp, #512
	mov	r1, #250
	mov	r0, r3
	bl	getChar
	sub	r3, fp, #512
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-524]
	mov	r3, #0
	str	r3, [fp, #-532]
	b	.L47
.L48:
	sub	r2, fp, #512
	ldr	r3, [fp, #-532]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	and	r1, r3, #255
	sub	r2, fp, #512
	ldr	r3, [fp, #-532]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-532]
	add	r3, r3, #1
	str	r3, [fp, #-532]
.L47:
	ldr	r2, [fp, #-532]
	ldr	r3, [fp, #-524]
	cmp	r2, r3
	blt	.L48
	sub	r3, fp, #512
	mov	r1, r3
	ldr	r0, .L53+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-520]
	mov	r3, #0
	str	r3, [fp, #-516]
	mov	r3, #0
	str	r3, [fp, #-528]
	b	.L49
.L51:
	ldr	r3, [fp, #-528]
	ldr	r2, [fp, #-540]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L53+12
	bl	getPosition
	str	r0, [fp, #-520]
	sub	r2, fp, #512
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L53+12
	bl	getPosition
	str	r0, [fp, #-516]
	ldr	r2, [fp, #-520]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-536]
	add	r2, r3, r2
	ldr	r3, [fp, #-516]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #260
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r2, [fp, #-528]
	ldr	r3, [fp, #-524]
	cmp	r2, r3
	bne	.L50
	sub	r2, fp, #260
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L50:
	ldr	r3, [fp, #-528]
	add	r3, r3, #1
	str	r3, [fp, #-528]
.L49:
	ldr	r2, [fp, #-528]
	ldr	r3, [fp, #-524]
	cmp	r2, r3
	ble	.L51
	sub	r3, fp, #260
	mov	r1, r3
	ldr	r0, .L53+16
	bl	printf
	nop
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC20
	.word	.LC17
	.word	.LC18
	.word	CHARSET
	.word	.LC19
	.size	encrypt, .-encrypt
	.section	.rodata
	.align	2
.LC21:
	.ascii	"Input garbage: \000"
	.align	2
.LC22:
	.ascii	"\012Encryption: %s\012\000"
	.align	2
.LC23:
	.ascii	"Message: %s\012\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	decrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	decrypt, %function
decrypt:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-536]
	str	r1, [fp, #-540]
	ldr	r3, .L62
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L62+4
	bl	printf
	sub	r3, fp, #512
	mov	r1, #250
	mov	r0, r3
	bl	getChar
	sub	r3, fp, #512
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-524]
	mov	r3, #0
	str	r3, [fp, #-532]
	b	.L56
.L57:
	sub	r2, fp, #512
	ldr	r3, [fp, #-532]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	and	r1, r3, #255
	sub	r2, fp, #512
	ldr	r3, [fp, #-532]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-532]
	add	r3, r3, #1
	str	r3, [fp, #-532]
.L56:
	ldr	r2, [fp, #-532]
	ldr	r3, [fp, #-524]
	cmp	r2, r3
	blt	.L57
	sub	r3, fp, #512
	mov	r1, r3
	ldr	r0, .L62+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-520]
	mov	r3, #0
	str	r3, [fp, #-516]
	mov	r3, #0
	str	r3, [fp, #-528]
	b	.L58
.L60:
	ldr	r3, [fp, #-528]
	ldr	r2, [fp, #-540]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L62+12
	bl	getPosition
	str	r0, [fp, #-520]
	ldr	r2, [fp, #-520]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-536]
	add	r0, r3, r2
	sub	r2, fp, #512
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	bl	getPosition
	str	r0, [fp, #-516]
	ldr	r2, .L62+12
	ldr	r3, [fp, #-516]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #260
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r2, [fp, #-528]
	ldr	r3, [fp, #-524]
	cmp	r2, r3
	bne	.L59
	sub	r2, fp, #260
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L59:
	ldr	r3, [fp, #-528]
	add	r3, r3, #1
	str	r3, [fp, #-528]
.L58:
	ldr	r2, [fp, #-528]
	ldr	r3, [fp, #-524]
	cmp	r2, r3
	ble	.L60
	sub	r3, fp, #260
	mov	r1, r3
	ldr	r0, .L62+16
	bl	printf
	nop
	ldr	r3, .L62
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L61
	bl	__stack_chk_fail
.L61:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC24
	.word	.LC21
	.word	.LC22
	.word	CHARSET
	.word	.LC23
	.size	decrypt, .-decrypt
	.align	2
	.global	getChar
	.syntax unified
	.arm
	.fpu softvfp
	.type	getChar, %function
getChar:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, .L67
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fgets
	mov	r1, #10
	ldr	r0, [fp, #-16]
	bl	strchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
.L66:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	stdin
	.size	getChar, .-getChar
	.section	.rodata
	.align	2
.LC25:
	.ascii	"%d\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	getInput, %function
getInput:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L72
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L72+4
	ldr	r2, [r3]
	sub	r3, fp, #28
	mov	r1, #20
	mov	r0, r3
	bl	fgets
	sub	r2, fp, #32
	sub	r3, fp, #28
	ldr	r1, .L72+8
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-32]
	ldr	r2, .L72
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L71
	bl	__stack_chk_fail
.L71:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	.LC26
	.word	stdin
	.word	.LC25
	.size	getInput, .-getInput
	.align	2
	.global	getPosition
	.syntax unified
	.arm
	.fpu softvfp
	.type	getPosition, %function
getPosition:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mvn	r3, #0
	str	r3, [fp, #-12]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L75
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
.L75:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getPosition, .-getPosition
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
