	.file	"272141.c"
	.intel_syntax noprefix
	.text
	.globl	myPassword
	.bss
	.align 32
	.type	myPassword, @object
	.size	myPassword, 2048
myPassword:
	.zero	2048
	.globl	passLen
	.align 4
	.type	passLen, @object
	.size	passLen, 4
passLen:
	.zero	4
	.globl	checksum
	.align 4
	.type	checksum, @object
	.size	checksum, 4
checksum:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Password: "
.LC1:
	.string	"%s"
.LC2:
	.string	"Ok"
.LC3:
	.string	"Try again"
	.text
	.globl	getPassword
	.type	getPassword, @function
getPassword:
.LFB0:
	.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
.L7:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, myPassword[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, myPassword[rip]
	call	strlen@PLT
	mov	DWORD PTR passLen[rip], eax
	mov	eax, DWORD PTR passLen[rip]
	cmp	eax, 10
	jne	.L7
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, myPassword[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	edx, al
	mov	eax, DWORD PTR checksum[rip]
	add	eax, edx
	mov	DWORD PTR checksum[rip], eax
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR passLen[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L4
	mov	eax, DWORD PTR checksum[rip]
	cmp	eax, 1085
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L8
.L5:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L7
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getPassword, .-getPassword
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	mov	eax, 0
	call	getPassword
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"272141.c"
	.text
	.comm	myPassword,2048,4
	.comm	passLen,4,4
	.global	checksum
	.bss
	.align	2
	.type	checksum, %object
	.size	checksum, 4
checksum:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Password: \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Ok\000"
	.align	2
.LC3:
	.ascii	"Try again\000"
	.text
	.align	2
	.global	getPassword
	.syntax unified
	.arm
	.fpu softvfp
	.type	getPassword, %function
getPassword:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
.L7:
	ldr	r0, .L9
	bl	printf
	ldr	r1, .L9+4
	ldr	r0, .L9+8
	bl	__isoc99_scanf
	ldr	r0, .L9+4
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L9+12
	str	r2, [r3]
	ldr	r3, .L9+12
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L7
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r2, .L9+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L9+16
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L9+16
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, .L9+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L4
	ldr	r3, .L9+16
	ldr	r3, [r3]
	ldr	r2, .L9+20
	cmp	r3, r2
	bne	.L5
	ldr	r0, .L9+24
	bl	puts
	b	.L8
.L5:
	ldr	r0, .L9+28
	bl	puts
	b	.L7
.L8:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	myPassword
	.word	.LC1
	.word	passLen
	.word	checksum
	.word	1085
	.word	.LC2
	.word	.LC3
	.size	getPassword, .-getPassword
	.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]
	bl	getPassword
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
