	.file	"838512.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"input password in lenght 20:"
.LC1:
	.string	"cls"
.LC2:
	.string	"Password Safe:%d"
	.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -10[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L10:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 20
	je	.L20
	mov	eax, 0
	call	getch@PLT
	mov	BYTE PTR -65[rbp], al
	cmp	BYTE PTR -65[rbp], 32
	jle	.L4
	cmp	BYTE PTR -65[rbp], 57
	jle	.L5
.L4:
	cmp	BYTE PTR -65[rbp], 64
	jle	.L6
	cmp	BYTE PTR -65[rbp], 90
	jle	.L5
.L6:
	cmp	BYTE PTR -65[rbp], 96
	jle	.L7
	cmp	BYTE PTR -65[rbp], 122
	jg	.L7
.L5:
	mov	edi, 42
	mov	eax, 0
	call	putch@PLT
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	movzx	edx, BYTE PTR -65[rbp]
	mov	BYTE PTR -32[rbp+rax], dl
	mov	eax, DWORD PTR -64[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -32[rbp+rax], 0
	add	DWORD PTR -64[rbp], 1
	jmp	.L8
.L7:
	cmp	BYTE PTR -65[rbp], 13
	jne	.L9
	mov	eax, DWORD PTR -64[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -32[rbp+rax], 0
	jmp	.L3
.L9:
	cmp	BYTE PTR -65[rbp], 8
	jne	.L10
	mov	edi, 8
	mov	eax, 0
	call	putch@PLT
	mov	edi, 32
	mov	eax, 0
	call	putch@PLT
	mov	edi, 8
	mov	eax, 0
	call	putch@PLT
	sub	DWORD PTR -64[rbp], 1
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	mov	BYTE PTR -32[rbp+rax], 0
	nop
.L8:
	jmp	.L10
.L20:
	nop
.L3:
	lea	rdi, .LC1[rip]
	call	system@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L11
.L15:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 256
	test	eax, eax
	je	.L12
	cmp	DWORD PTR -56[rbp], 2
	jg	.L12
	add	DWORD PTR -56[rbp], 1
.L12:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L13
	cmp	DWORD PTR -52[rbp], 2
	jg	.L13
	add	DWORD PTR -52[rbp], 1
.L13:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 4
	test	eax, eax
	je	.L14
	cmp	DWORD PTR -48[rbp], 2
	jg	.L14
	add	DWORD PTR -48[rbp], 1
.L14:
	add	DWORD PTR -60[rbp], 1
.L11:
	mov	eax, DWORD PTR -64[rbp]
	sub	eax, 1
	cmp	DWORD PTR -60[rbp], eax
	jl	.L15
	cmp	DWORD PTR -64[rbp], 5
	jle	.L16
	mov	DWORD PTR -44[rbp], 5
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -44[rbp], eax
.L17:
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	lea	ecx, -20[rax]
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	ecx, eax
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	ecx, eax
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, ecx
	add	eax, 5
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"838512.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"input password in lenght 20:\000"
	.align	2
.LC1:
	.ascii	"cls\000"
	.align	2
.LC2:
	.ascii	"Password Safe:%d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-10]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r0, .L21+4
	bl	puts
.L10:
	sub	r3, fp, #32
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #20
	beq	.L20
	bl	getch
	mov	r3, r0
	strb	r3, [fp, #-65]
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	cmp	r3, #32
	bls	.L4
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L5
.L4:
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L6
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	cmp	r3, #90
	bls	.L5
.L6:
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L7
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L7
.L5:
	mov	r0, #42
	bl	putch
	sub	r2, fp, #32
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	ldrb	r2, [fp, #-65]
	strb	r2, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-28]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	b	.L8
.L7:
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L9
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-28]
	b	.L3
.L9:
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	cmp	r3, #8
	bne	.L10
	mov	r0, #8
	bl	putch
	mov	r0, #32
	bl	putch
	mov	r0, #8
	bl	putch
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
	sub	r2, fp, #32
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
.L8:
	b	.L10
.L20:
	nop
.L3:
	ldr	r0, .L21+8
	bl	system
	sub	r3, fp, #32
	mov	r0, r3
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L11
.L15:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	sub	r1, fp, #32
	ldr	r3, [fp, #-60]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	bgt	.L12
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L12:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	sub	r1, fp, #32
	ldr	r3, [fp, #-60]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-52]
	cmp	r3, #2
	bgt	.L13
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L13:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	sub	r1, fp, #32
	ldr	r3, [fp, #-60]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	bgt	.L14
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L14:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L11:
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L15
	ldr	r3, [fp, #-64]
	cmp	r3, #5
	ble	.L16
	mov	r3, #5
	str	r3, [fp, #-44]
	b	.L17
.L16:
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-44]
.L17:
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r1, r3, #20
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r1, r1, r3
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r1, r1, r3
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	add	r3, r3, #5
	str	r3, [fp, #-40]
	ldr	r1, [fp, #-40]
	ldr	r0, .L21+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
