	.file	"966990.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	" %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -98304[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1952
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L2
.L16:
	lea	rax, -100016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -100248[rbp], eax
	mov	DWORD PTR -100252[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -100252[rbp]
	cdqe
	mov	DWORD PTR -100240[rbp+rax*4], 0
	mov	eax, DWORD PTR -100252[rbp]
	cdqe
	mov	DWORD PTR -100128[rbp+rax*4], 0
	add	DWORD PTR -100252[rbp], 1
.L3:
	cmp	DWORD PTR -100252[rbp], 25
	jle	.L4
	mov	DWORD PTR -100256[rbp], 0
	mov	DWORD PTR -100252[rbp], 0
	jmp	.L5
.L9:
	mov	eax, DWORD PTR -100252[rbp]
	cdqe
	movzx	eax, BYTE PTR -100016[rbp+rax]
	cmp	al, 64
	jle	.L6
	mov	eax, DWORD PTR -100252[rbp]
	cdqe
	movzx	eax, BYTE PTR -100016[rbp+rax]
	cmp	al, 90
	jg	.L6
	mov	eax, DWORD PTR -100252[rbp]
	cdqe
	movzx	eax, BYTE PTR -100016[rbp+rax]
	movsx	eax, al
	sub	eax, 65
	mov	DWORD PTR -100244[rbp], eax
	mov	eax, DWORD PTR -100244[rbp]
	cdqe
	mov	eax, DWORD PTR -100128[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -100244[rbp]
	cdqe
	mov	DWORD PTR -100128[rbp+rax*4], edx
	mov	eax, DWORD PTR -100244[rbp]
	cdqe
	mov	eax, DWORD PTR -100128[rbp+rax*4]
	cmp	DWORD PTR -100256[rbp], eax
	jge	.L8
	mov	eax, DWORD PTR -100244[rbp]
	cdqe
	mov	eax, DWORD PTR -100128[rbp+rax*4]
	mov	DWORD PTR -100256[rbp], eax
	jmp	.L8
.L6:
	mov	eax, DWORD PTR -100252[rbp]
	cdqe
	movzx	eax, BYTE PTR -100016[rbp+rax]
	cmp	al, 96
	jle	.L8
	mov	eax, DWORD PTR -100252[rbp]
	cdqe
	movzx	eax, BYTE PTR -100016[rbp+rax]
	cmp	al, 122
	jg	.L8
	mov	eax, DWORD PTR -100252[rbp]
	cdqe
	movzx	eax, BYTE PTR -100016[rbp+rax]
	movsx	eax, al
	sub	eax, 97
	mov	DWORD PTR -100244[rbp], eax
	mov	eax, DWORD PTR -100244[rbp]
	cdqe
	mov	eax, DWORD PTR -100240[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -100244[rbp]
	cdqe
	mov	DWORD PTR -100240[rbp+rax*4], edx
	mov	eax, DWORD PTR -100244[rbp]
	cdqe
	mov	eax, DWORD PTR -100240[rbp+rax*4]
	cmp	DWORD PTR -100256[rbp], eax
	jge	.L8
	mov	eax, DWORD PTR -100244[rbp]
	cdqe
	mov	eax, DWORD PTR -100240[rbp+rax*4]
	mov	DWORD PTR -100256[rbp], eax
.L8:
	add	DWORD PTR -100252[rbp], 1
.L5:
	mov	eax, DWORD PTR -100252[rbp]
	cmp	eax, DWORD PTR -100248[rbp]
	jl	.L9
	mov	DWORD PTR -100252[rbp], 0
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -100252[rbp]
	cdqe
	mov	eax, DWORD PTR -100128[rbp+rax*4]
	cmp	DWORD PTR -100256[rbp], eax
	jne	.L11
	mov	eax, DWORD PTR -100252[rbp]
	add	eax, 65
	mov	edi, eax
	call	putchar@PLT
.L11:
	add	DWORD PTR -100252[rbp], 1
.L10:
	cmp	DWORD PTR -100252[rbp], 25
	jle	.L12
	mov	DWORD PTR -100252[rbp], 0
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -100252[rbp]
	cdqe
	mov	eax, DWORD PTR -100240[rbp+rax*4]
	cmp	DWORD PTR -100256[rbp], eax
	jne	.L14
	mov	eax, DWORD PTR -100252[rbp]
	add	eax, 97
	mov	edi, eax
	call	putchar@PLT
.L14:
	add	DWORD PTR -100252[rbp], 1
.L13:
	cmp	DWORD PTR -100252[rbp], 25
	jle	.L15
	mov	eax, DWORD PTR -100256[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	lea	rax, -100016[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	test	eax, eax
	jne	.L16
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"966990.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	" %d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 100232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #99328
	sub	sp, sp, #904
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L2
.L16:
	sub	r3, fp, #99328
	sub	r3, r3, #4
	sub	r3, r3, #676
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #98304
	sub	r2, r2, #4
	str	r3, [r2, #-1916]
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1920]
	b	.L3
.L4:
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1908]
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1804]
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r3, #1
	str	r3, [r2, #-1920]
.L3:
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	cmp	r3, #25
	ble	.L4
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1924]
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1920]
	b	.L5
.L9:
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r2, r3
	sub	r3, r3, #1696
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L6
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r2, r3
	sub	r3, r3, #1696
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L6
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r2, r3
	sub	r3, r3, #1696
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #98304
	sub	r2, r2, #4
	sub	r3, r3, #65
	str	r3, [r2, #-1912]
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1804]
	add	r2, r3, #1
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-1804]
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1804]
	sub	r2, fp, #98304
	sub	r2, r2, #4
	ldr	r2, [r2, #-1924]
	cmp	r2, r3
	bge	.L8
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-1804]
	str	r3, [r2, #-1924]
	b	.L8
.L6:
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r2, r3
	sub	r3, r3, #1696
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L8
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r2, r3
	sub	r3, r3, #1696
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L8
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r2, r3
	sub	r3, r3, #1696
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #98304
	sub	r2, r2, #4
	sub	r3, r3, #97
	str	r3, [r2, #-1912]
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1908]
	add	r2, r3, #1
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-1908]
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1908]
	sub	r2, fp, #98304
	sub	r2, r2, #4
	ldr	r2, [r2, #-1924]
	cmp	r2, r3
	bge	.L8
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1912]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-1908]
	str	r3, [r2, #-1924]
.L8:
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r3, #1
	str	r3, [r2, #-1920]
.L5:
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r2, [r2, #-1920]
	ldr	r3, [r3, #-1916]
	cmp	r2, r3
	blt	.L9
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1920]
	b	.L10
.L12:
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1804]
	sub	r2, fp, #98304
	sub	r2, r2, #4
	ldr	r2, [r2, #-1924]
	cmp	r2, r3
	bne	.L11
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r3, #65
	mov	r0, r3
	bl	putchar
.L11:
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r3, #1
	str	r3, [r2, #-1920]
.L10:
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	cmp	r3, #25
	ble	.L12
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1920]
	b	.L13
.L15:
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1908]
	sub	r2, fp, #98304
	sub	r2, r2, #4
	ldr	r2, [r2, #-1924]
	cmp	r2, r3
	bne	.L14
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r3, #97
	mov	r0, r3
	bl	putchar
.L14:
	sub	r3, fp, #98304
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	add	r3, r3, #1
	str	r3, [r2, #-1920]
.L13:
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r3, [r3, #-1920]
	cmp	r3, #25
	ble	.L15
	sub	r3, fp, #98304
	sub	r3, r3, #4
	ldr	r1, [r3, #-1924]
	ldr	r0, .L19+4
	bl	printf
.L2:
	sub	r3, fp, #99328
	sub	r3, r3, #4
	sub	r3, r3, #676
	mov	r0, r3
	bl	gets
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
