	.file	"266691.c"
	.intel_syntax noprefix
	.text
	.globl	key
	.bss
	.align 32
	.type	key, @object
	.size	key, 800
key:
	.zero	800
	.globl	str
	.align 32
	.type	str, @object
	.size	str, 10000
str:
	.zero	10000
	.globl	key_len
	.align 4
	.type	key_len, @object
	.size	key_len, 4
key_len:
	.zero	4
	.globl	str_len
	.align 4
	.type	str_len, @object
	.size	str_len, 4
str_len:
	.zero	4
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB6:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	"title encrypt_decrypt"
.LC1:
	.string	"# key KEY_STRING"
.LC2:
	.string	"# encrypt STRING"
.LC3:
	.string	"# decrypt STRING"
.LC4:
	.string	"# halt (kill me)"
.LC5:
	.string	"# Simply k/e/d/h"
.LC6:
	.string	""
.LC7:
	.string	"param is needed"
.LC8:
	.string	"input key first"
	.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
	sub	rsp, 16
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	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
.L21:
	mov	eax, 0
	call	get_cmd
	mov	BYTE PTR -10[rbp], al
	cmp	BYTE PTR -10[rbp], 0
	je	.L23
	cmp	BYTE PTR -10[rbp], 104
	jne	.L6
	mov	eax, 0
	jmp	.L22
.L6:
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
.L13:
	call	getchar@PLT
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 13
	je	.L24
	cmp	BYTE PTR -9[rbp], 10
	jne	.L10
	cmp	BYTE PTR -10[rbp], 0
	jle	.L25
	cmp	DWORD PTR -4[rbp], 0
	jne	.L25
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -8[rbp], 1
	jmp	.L25
.L10:
	cmp	BYTE PTR -9[rbp], 32
	je	.L13
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	cdqe
	lea	rcx, str[rip]
	movzx	edx, BYTE PTR -9[rbp]
	mov	BYTE PTR [rax+rcx], dl
	jmp	.L13
.L24:
	nop
	jmp	.L13
.L25:
	nop
	cmp	DWORD PTR -8[rbp], 0
	jne	.L26
	movsx	eax, BYTE PTR -10[rbp]
	cmp	eax, 107
	je	.L15
	cmp	eax, 107
	jg	.L27
	cmp	eax, 100
	je	.L17
	cmp	eax, 101
	je	.L18
	jmp	.L27
.L15:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR key_len[rip], eax
	mov	eax, 0
	call	savekey
	jmp	.L5
.L18:
	mov	eax, DWORD PTR key_len[rip]
	test	eax, eax
	jne	.L19
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L5
.L19:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR str_len[rip], eax
	mov	eax, 0
	call	encrypt
	jmp	.L5
.L17:
	mov	eax, DWORD PTR key_len[rip]
	test	eax, eax
	jne	.L20
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L5
.L20:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR str_len[rip], eax
	mov	eax, 0
	call	decrypt
	jmp	.L5
.L23:
	nop
	jmp	.L21
.L26:
	nop
	jmp	.L21
.L27:
	nop
.L5:
	jmp	.L21
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
.LC9:
	.string	"> "
.LC10:
	.string	"h"
.LC11:
	.string	"halt"
.LC12:
	.string	"k"
.LC13:
	.string	"key"
.LC14:
	.string	"e"
.LC15:
	.string	"encrypt"
.LC16:
	.string	"d"
.LC17:
	.string	"decrypt"
.LC18:
	.string	"no such command"
	.text
	.globl	get_cmd
	.type	get_cmd, @function
get_cmd:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L36:
	call	getchar@PLT
	mov	BYTE PTR -25[rbp], al
	cmp	BYTE PTR -25[rbp], 32
	jne	.L29
	cmp	DWORD PTR -20[rbp], 0
	je	.L45
	jmp	.L31
.L29:
	cmp	BYTE PTR -25[rbp], 13
	je	.L46
	cmp	BYTE PTR -25[rbp], 10
	jne	.L34
	mov	DWORD PTR -24[rbp], 1
	jmp	.L31
.L34:
	cmp	DWORD PTR -20[rbp], 6
	jg	.L35
	movsx	eax, BYTE PTR -25[rbp]
	mov	edi, eax
	call	tolower@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -20[rbp], edx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -16[rbp+rax], dl
	jmp	.L36
.L35:
	mov	BYTE PTR -16[rbp], -1
	jmp	.L36
.L45:
	nop
	jmp	.L36
.L46:
	nop
	jmp	.L36
.L31:
	lea	rax, -16[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L37
	lea	rax, -16[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L38
.L37:
	mov	DWORD PTR -24[rbp], 0
.L38:
	lea	rax, -16[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	lea	rax, -16[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	lea	rax, -16[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	lea	rax, -16[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	lea	rax, -16[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	lea	rax, -16[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	lea	rax, -16[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	lea	rax, -16[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	cmp	DWORD PTR -20[rbp], 0
	je	.L39
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	BYTE PTR -16[rbp], -1
.L39:
	cmp	DWORD PTR -24[rbp], 0
	je	.L40
	movzx	eax, BYTE PTR -16[rbp]
	test	al, al
	jle	.L40
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L40:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L41
	movzx	eax, BYTE PTR -16[rbp]
	jmp	.L43
.L41:
	mov	eax, 0
.L43:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_cmd, .-get_cmd
	.globl	savekey
	.type	savekey, @function
savekey:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L48
.L49:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, str[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, key[rip]
	mov	BYTE PTR [rcx+rdx], al
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, key[rip+4]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -4[rbp], 1
.L48:
	mov	eax, DWORD PTR key_len[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L49
	mov	eax, DWORD PTR key_len[rip]
	cdqe
	lea	rcx, cmp[rip]
	mov	edx, 8
	mov	rsi, rax
	lea	rdi, key[rip]
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	savekey, .-savekey
	.globl	encrypt
	.type	encrypt, @function
encrypt:
.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, 16
	mov	eax, DWORD PTR str_len[rip]
	sub	eax, 1
	mov	esi, DWORD PTR key_len[rip]
	cdq
	idiv	esi
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L51
.L56:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L52
.L55:
	mov	eax, DWORD PTR key_len[rip]
	imul	eax, DWORD PTR -12[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, key[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR str_len[rip]
	cmp	DWORD PTR -4[rbp], eax
	jge	.L53
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, str[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	jmp	.L54
.L53:
	mov	eax, 101
.L54:
	mov	edi, eax
	call	toupper@PLT
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L52:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L55
	add	DWORD PTR -16[rbp], 1
.L51:
	mov	eax, DWORD PTR key_len[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L56
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	encrypt, .-encrypt
	.globl	decrypt
	.type	decrypt, @function
decrypt:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1840
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -10016[rbp], 0
	mov	QWORD PTR -10008[rbp], 0
	lea	rax, -10000[rbp]
	mov	edx, 9984
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR str_len[rip]
	mov	edi, DWORD PTR key_len[rip]
	cdq
	idiv	edi
	mov	DWORD PTR -10020[rbp], eax
	mov	DWORD PTR -10028[rbp], 0
	jmp	.L58
.L61:
	mov	DWORD PTR -10024[rbp], 0
	jmp	.L59
.L60:
	mov	eax, DWORD PTR -10028[rbp]
	imul	eax, DWORD PTR -10020[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -10024[rbp]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR key_len[rip]
	imul	eax, DWORD PTR -10024[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -10028[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, key[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, eax
	movsx	rax, esi
	lea	rdx, str[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	mov	BYTE PTR -10016[rbp+rax], dl
	add	DWORD PTR -10024[rbp], 1
.L59:
	mov	eax, DWORD PTR -10024[rbp]
	cmp	eax, DWORD PTR -10020[rbp]
	jl	.L60
	add	DWORD PTR -10028[rbp], 1
.L58:
	mov	eax, DWORD PTR key_len[rip]
	cmp	DWORD PTR -10028[rbp], eax
	jl	.L61
	lea	rax, -10016[rbp]
	mov	rdi, rax
	call	puts@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L62
	call	__stack_chk_fail@PLT
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	decrypt, .-decrypt
	.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	"266691.c"
	.text
	.comm	key,800,4
	.comm	str,10000,4
	.comm	key_len,4,4
	.comm	str_len,4,4
	.align	2
	.global	cmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmp, %function
cmp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cmp, .-cmp
	.section	.rodata
	.align	2
.LC0:
	.ascii	"title encrypt_decrypt\000"
	.align	2
.LC1:
	.ascii	"# key KEY_STRING\000"
	.align	2
.LC2:
	.ascii	"# encrypt STRING\000"
	.align	2
.LC3:
	.ascii	"# decrypt STRING\000"
	.align	2
.LC4:
	.ascii	"# halt (kill me)\000"
	.align	2
.LC5:
	.ascii	"# Simply k/e/d/h\000"
	.align	2
.LC6:
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"param is needed\000"
	.align	2
.LC8:
	.ascii	"input key first\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r0, .L28
	bl	system
	ldr	r0, .L28+4
	bl	puts
	ldr	r0, .L28+8
	bl	puts
	ldr	r0, .L28+12
	bl	puts
	ldr	r0, .L28+16
	bl	puts
	ldr	r0, .L28+20
	bl	puts
	ldr	r0, .L28+24
	bl	puts
.L21:
	bl	get_cmd
	mov	r3, r0
	strb	r3, [fp, #-14]
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L23
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #104
	bne	.L6
	mov	r3, #0
	b	.L22
.L6:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
.L13:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L24
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L10
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L28+28
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L25
.L10:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L13
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	ldr	r1, .L28+32
	ldrb	r2, [fp, #-13]
	strb	r2, [r1, r3]
	b	.L13
.L24:
	nop
	b	.L13
.L25:
	nop
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L26
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #107
	beq	.L15
	cmp	r3, #107
	bgt	.L27
	cmp	r3, #100
	beq	.L17
	cmp	r3, #101
	beq	.L18
	b	.L27
.L15:
	ldr	r2, .L28+36
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	bl	savekey
	b	.L5
.L18:
	ldr	r3, .L28+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	ldr	r0, .L28+40
	bl	puts
	b	.L5
.L19:
	ldr	r2, .L28+44
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	bl	encrypt
	b	.L5
.L17:
	ldr	r3, .L28+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L28+40
	bl	puts
	b	.L5
.L20:
	ldr	r2, .L28+44
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	bl	decrypt
	b	.L5
.L23:
	nop
	b	.L21
.L26:
	nop
	b	.L21
.L27:
	nop
.L5:
	b	.L21
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	str
	.word	key_len
	.word	.LC8
	.word	str_len
	.size	main, .-main
	.section	.rodata
	.align	2
.LC9:
	.ascii	"> \000"
	.align	2
.LC10:
	.ascii	"h\000"
	.align	2
.LC11:
	.ascii	"halt\000"
	.align	2
.LC12:
	.ascii	"k\000"
	.align	2
.LC13:
	.ascii	"key\000"
	.align	2
.LC14:
	.ascii	"e\000"
	.align	2
.LC15:
	.ascii	"encrypt\000"
	.align	2
.LC16:
	.ascii	"d\000"
	.align	2
.LC17:
	.ascii	"decrypt\000"
	.align	2
.LC18:
	.ascii	"no such command\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cmd, %function
get_cmd:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, .L49+4
	bl	printf
.L38:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L31
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L47
	b	.L33
.L31:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L48
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L36
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L33
.L36:
	ldr	r3, [fp, #-20]
	cmp	r3, #6
	bgt	.L37
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r1, r0
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	and	r2, r1, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-12]
	b	.L38
.L37:
	mvn	r3, #0
	strb	r3, [fp, #-16]
	b	.L38
.L47:
	nop
	b	.L38
.L48:
	nop
	b	.L38
.L33:
	sub	r3, fp, #16
	ldr	r1, .L49+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	sub	r3, fp, #16
	ldr	r1, .L49+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
.L39:
	mov	r3, #0
	str	r3, [fp, #-24]
.L40:
	sub	r3, fp, #16
	ldr	r1, .L49+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	sub	r3, fp, #16
	ldr	r1, .L49+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	sub	r3, fp, #16
	ldr	r1, .L49+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	sub	r3, fp, #16
	ldr	r1, .L49+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	sub	r3, fp, #16
	ldr	r1, .L49+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	sub	r3, fp, #16
	ldr	r1, .L49+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	sub	r3, fp, #16
	ldr	r1, .L49+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	sub	r3, fp, #16
	ldr	r1, .L49+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L41
	ldr	r0, .L49+40
	bl	puts
	mvn	r3, #0
	strb	r3, [fp, #-16]
.L41:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L42
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L42
	ldr	r0, .L49+44
	bl	puts
.L42:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L43
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	b	.L44
.L43:
	mov	r3, #0
.L44:
	ldr	r2, .L49
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC19
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC7
	.size	get_cmd, .-get_cmd
	.align	2
	.global	savekey
	.syntax unified
	.arm
	.fpu softvfp
	.type	savekey, %function
savekey:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L52
.L53:
	ldr	r2, .L54
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, .L54+4
	ldr	r3, [fp, #-8]
	strb	r1, [r2, r3, lsl #3]
	ldr	r2, .L54+4
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L52:
	ldr	r3, .L54+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L53
	ldr	r3, .L54+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L54+12
	mov	r2, #8
	ldr	r0, .L54+4
	bl	qsort
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	str
	.word	key
	.word	key_len
	.word	cmp
	.size	savekey, .-savekey
	.global	__aeabi_idiv
	.align	2
	.global	encrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	encrypt, %function
encrypt:
	@ 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, .L63
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L63+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L57
.L62:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L58
.L61:
	ldr	r3, .L63+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mul	r2, r3, r2
	ldr	r1, .L63+8
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L63
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L59
	ldr	r2, .L63+12
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L60
.L59:
	mov	r3, #101
.L60:
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L58:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L61
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L57:
	ldr	r3, .L63+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L62
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	str_len
	.word	key_len
	.word	key
	.word	str
	.size	encrypt, .-encrypt
	.section	.rodata
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	decrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	decrypt, %function
decrypt:
	@ args = 0, pretend = 0, frame = 10016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #9984
	sub	sp, sp, #36
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3, #-1812]
	sub	r3, r3, #1808
	ldr	r2, .L71+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L71+8
	ldr	r3, [r3]
	ldr	r2, .L71+12
	ldr	r2, [r2]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r4, r1
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [r4, #-1816]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1824]
	b	.L66
.L69:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1820]
	b	.L67
.L68:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r3, [r3, #-1824]
	ldr	r2, [r2, #-1816]
	mul	r2, r3, r2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1820]
	add	r2, r2, r3
	ldr	r3, .L71+12
	ldr	r3, [r3]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	ldr	r1, [r1, #-1820]
	mul	r1, r3, r1
	ldr	r0, .L71+16
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1824]
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3, #4]
	add	r3, r1, r3
	ldr	r1, .L71+20
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	sub	r1, fp, #8192
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-1812]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1820]
	add	r3, r3, #1
	str	r3, [r2, #-1820]
.L67:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-1820]
	ldr	r3, [r3, #-1816]
	cmp	r2, r3
	blt	.L68
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1824]
	add	r3, r3, #1
	str	r3, [r2, #-1824]
.L66:
	ldr	r3, .L71+12
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-1824]
	cmp	r2, r3
	blt	.L69
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	puts
	nop
	ldr	r3, .L71
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L70
	bl	__stack_chk_fail
.L70:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC20
	.word	9996
	.word	str_len
	.word	key_len
	.word	key
	.word	str
	.size	decrypt, .-decrypt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
