	.file	"78389.c"
	.intel_syntax noprefix
	.text
	.globl	locate
	.bss
	.align 32
	.type	locate, @object
	.size	locate, 112448
locate:
	.zero	112448
	.globl	ci
	.align 32
	.type	ci, @object
	.size	ci, 112
ci:
	.zero	112
	.globl	ced
	.align 32
	.type	ced, @object
	.size	ced, 112
ced:
	.zero	112
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"in.txt"
.LC2:
	.string	"%d"
.LC3:
	.string	"%s"
.LC4:
	.string	"%c:"
.LC5:
	.string	"%d "
	.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
	sub	rsp, 1056
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	freopen@PLT
	lea	rax, -1052[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L12:
	mov	edx, 112448
	mov	esi, 0
	lea	rdi, locate[rip]
	call	memset@PLT
	mov	edx, 112
	mov	esi, 0
	lea	rdi, ci[rip]
	call	memset@PLT
	lea	rax, -1024[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1048[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	movzx	eax, BYTE PTR -1024[rbp+rax]
	mov	BYTE PTR -1053[rbp], al
	movsx	eax, BYTE PTR -1053[rbp]
	sub	eax, 97
	mov	DWORD PTR -1028[rbp], eax
	mov	eax, DWORD PTR -1028[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ci[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	edx, 1[rax]
	mov	ecx, DWORD PTR -1028[rbp]
	movsx	rcx, ecx
	lea	rsi, 0[0+rcx*4]
	lea	rcx, ci[rip]
	mov	DWORD PTR [rsi+rcx], edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -1028[rbp]
	cdqe
	imul	rax, rax, 1004
	add	rax, rdx
	lea	rcx, 0[0+rax*4]
	lea	rdx, locate[rip]
	mov	eax, DWORD PTR -1048[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -1048[rbp], 1
.L3:
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	movzx	eax, BYTE PTR -1024[rbp+rax]
	test	al, al
	jne	.L4
	mov	DWORD PTR -1044[rbp], 1
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -1044[rbp]
	add	eax, 96
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1040[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -1044[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -1040[rbp]
	movsx	rcx, eax
	movsx	rax, edx
	imul	rax, rax, 1004
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, locate[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1040[rbp], 1
.L6:
	mov	eax, DWORD PTR -1044[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ci[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -1040[rbp], eax
	jl	.L7
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -1044[rbp], 1
.L5:
	cmp	DWORD PTR -1044[rbp], 26
	jle	.L8
	mov	DWORD PTR -1036[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -1036[rbp]
	cdqe
	movzx	eax, BYTE PTR -1024[rbp+rax]
	movsx	eax, al
	sub	eax, 97
	mov	DWORD PTR -1032[rbp], eax
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ci[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	add	DWORD PTR -1036[rbp], 1
.L9:
	mov	eax, DWORD PTR -1048[rbp]
	sub	eax, 1
	cmp	DWORD PTR -1036[rbp], eax
	jl	.L11
	mov	eax, DWORD PTR -1052[rbp]
	sub	eax, 1
	mov	DWORD PTR -1052[rbp], eax
.L2:
	mov	eax, DWORD PTR -1052[rbp]
	test	eax, eax
	jg	.L12
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"78389.c"
	.text
	.global	locate
	.bss
	.align	2
	.type	locate, %object
	.size	locate, 112448
locate:
	.space	112448
	.global	ci
	.align	2
	.type	ci, %object
	.size	ci, 112
ci:
	.space	112
	.global	ced
	.align	2
	.type	ced, %object
	.size	ced, 112
ced:
	.space	112
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"in.txt\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"%c:\000"
	.align	2
.LC5:
	.ascii	"%d \000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+8
	ldr	r0, .L15+12
	bl	freopen
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L15+16
	bl	__isoc99_scanf
	b	.L2
.L12:
	ldr	r2, .L15+20
	mov	r1, #0
	ldr	r0, .L15+24
	bl	memset
	mov	r2, #112
	mov	r1, #0
	ldr	r0, .L15+28
	bl	memset
	sub	r3, fp, #1012
	mov	r1, r3
	ldr	r0, .L15+32
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-1036]
	b	.L3
.L4:
	sub	r2, fp, #1012
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-1041]
	ldrb	r3, [fp, #-1041]	@ zero_extendqisi2
	sub	r3, r3, #97
	str	r3, [fp, #-1016]
	ldr	r2, .L15+28
	ldr	r3, [fp, #-1016]
	ldr	r1, [r2, r3, lsl #2]
	add	r2, r1, #1
	ldr	r0, .L15+28
	ldr	r3, [fp, #-1016]
	str	r2, [r0, r3, lsl #2]
	ldr	r0, .L15+24
	ldr	r2, [fp, #-1016]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	ldr	r2, [fp, #-1036]
	str	r2, [r0, r3, lsl #2]
	ldr	r3, [fp, #-1036]
	add	r3, r3, #1
	str	r3, [fp, #-1036]
.L3:
	sub	r2, fp, #1012
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
	mov	r3, #1
	str	r3, [fp, #-1032]
	b	.L5
.L8:
	ldr	r3, [fp, #-1032]
	add	r3, r3, #96
	mov	r1, r3
	ldr	r0, .L15+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-1028]
	b	.L6
.L7:
	ldr	r3, [fp, #-1032]
	sub	r2, r3, #1
	ldr	r1, .L15+24
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1028]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L15+40
	bl	printf
	ldr	r3, [fp, #-1028]
	add	r3, r3, #1
	str	r3, [fp, #-1028]
.L6:
	ldr	r3, [fp, #-1032]
	sub	r3, r3, #1
	ldr	r2, .L15+28
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-1028]
	cmp	r2, r3
	blt	.L7
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-1032]
	add	r3, r3, #1
	str	r3, [fp, #-1032]
.L5:
	ldr	r3, [fp, #-1032]
	cmp	r3, #26
	ble	.L8
	mov	r3, #0
	str	r3, [fp, #-1024]
	b	.L9
.L11:
	sub	r2, fp, #1012
	ldr	r3, [fp, #-1024]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #97
	str	r3, [fp, #-1020]
	ldr	r2, .L15+28
	ldr	r3, [fp, #-1020]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	ldr	r3, [fp, #-1024]
	add	r3, r3, #1
	str	r3, [fp, #-1024]
.L9:
	ldr	r3, [fp, #-1036]
	sub	r3, r3, #1
	ldr	r2, [fp, #-1024]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-1040]
	sub	r3, r3, #1
	str	r3, [fp, #-1040]
.L2:
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	bgt	.L12
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC6
	.word	stdin
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	112448
	.word	locate
	.word	ci
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
