	.file	"817109.c"
	.intel_syntax noprefix
	.text
	.globl	pick_heatmap
	.type	pick_heatmap, @function
pick_heatmap:
.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 -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 2147483647
	mov	DWORD PTR -12[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L3
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
.L3:
	add	DWORD PTR -12[rbp], 1
.L2:
	cmp	DWORD PTR -12[rbp], 25
	jle	.L4
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	pick_heatmap, .-pick_heatmap
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"input"
.LC2:
	.string	"could not open input file"
.LC3:
	.string	"%s"
	.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, 880
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -872[rbp], rax
	lea	rdx, -864[rbp]
	mov	eax, 0
	mov	ecx, 104
	mov	rdi, rdx
	rep stosq
	cmp	QWORD PTR -872[rbp], 0
	jne	.L9
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L15
.L12:
	mov	DWORD PTR -876[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -876[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	movsx	eax, al
	lea	ecx, -97[rax]
	movsx	rsi, ecx
	mov	eax, DWORD PTR -876[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rsi
	mov	eax, DWORD PTR -864[rbp+rax*4]
	lea	esi, 1[rax]
	movsx	rcx, ecx
	mov	eax, DWORD PTR -876[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	DWORD PTR -864[rbp+rax*4], esi
	add	DWORD PTR -876[rbp], 1
.L10:
	cmp	DWORD PTR -876[rbp], 7
	jle	.L11
.L9:
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -872[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, -1
	jne	.L12
	mov	DWORD PTR -876[rbp], 0
	jmp	.L13
.L14:
	lea	rcx, -864[rbp]
	mov	eax, DWORD PTR -876[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdi, rax
	call	pick_heatmap
	movsx	eax, al
	add	eax, 97
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -876[rbp], 1
.L13:
	cmp	DWORD PTR -876[rbp], 7
	jle	.L14
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -872[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L15:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"817109.c"
	.text
	.align	2
	.global	pick_heatmap
	.syntax unified
	.arm
	.fpu softvfp
	.type	pick_heatmap, %function
pick_heatmap:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	mvn	r3, #-2147483648
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L4:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #25
	ble	.L4
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	pick_heatmap, .-pick_heatmap
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"input\000"
	.align	2
.LC2:
	.ascii	"could not open input file\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 864
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #864
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L17+4
	ldr	r0, .L17+8
	bl	fopen
	str	r0, [fp, #-860]
	sub	r3, fp, #856
	mov	r2, #832
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-860]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L17+12
	bl	puts
	mvn	r3, #0
	b	.L15
.L12:
	mov	r3, #0
	str	r3, [fp, #-864]
	b	.L10
.L11:
	sub	r2, fp, #24
	ldr	r3, [fp, #-864]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r1, r3, #97
	ldr	r2, [fp, #-864]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-852]
	add	r0, r3, #1
	ldr	r2, [fp, #-864]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r0, [r3, #-852]
	ldr	r3, [fp, #-864]
	add	r3, r3, #1
	str	r3, [fp, #-864]
.L10:
	ldr	r3, [fp, #-864]
	cmp	r3, #7
	ble	.L11
.L9:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L17+16
	ldr	r0, [fp, #-860]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	mov	r3, #0
	str	r3, [fp, #-864]
	b	.L13
.L14:
	sub	r1, fp, #856
	ldr	r2, [fp, #-864]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r0, r3
	bl	pick_heatmap
	mov	r3, r0
	add	r3, r3, #97
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-864]
	add	r3, r3, #1
	str	r3, [fp, #-864]
.L13:
	ldr	r3, [fp, #-864]
	cmp	r3, #7
	ble	.L14
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-860]
	bl	fclose
	mov	r3, #0
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
