	.file	"104738.c"
	.intel_syntax noprefix
	.text
	.globl	map
	.bss
	.align 32
	.type	map, @object
	.size	map, 2704
map:
	.zero	2704
	.globl	G
	.align 32
	.type	G, @object
	.size	G, 104
G:
	.zero	104
	.globl	flag
	.align 32
	.type	flag, @object
	.size	flag, 104
flag:
	.zero	104
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"input.txt"
.LC2:
	.string	" %c %d"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d"
.LC6:
	.string	"%.3lf MS\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
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	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
	call	clock@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -24[rbp], xmm0
	jmp	.L2
.L15:
	mov	edx, 2704
	mov	esi, -1
	lea	rdi, map[rip]
	call	memset@PLT
	mov	edx, 104
	mov	esi, -1
	lea	rdi, G[rip]
	call	memset@PLT
	mov	edx, 104
	mov	esi, -1
	lea	rdi, flag[rip]
	call	memset@PLT
	mov	DWORD PTR -48[rbp], 0
	jmp	.L3
.L6:
	lea	rdx, -56[rbp]
	lea	rax, -62[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L4
.L5:
	lea	rdx, -52[rbp]
	lea	rax, -61[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -61[rbp]
	movsx	eax, al
	lea	ecx, -65[rax]
	movzx	eax, BYTE PTR -62[rbp]
	movsx	eax, al
	lea	esi, -65[rax]
	mov	edi, DWORD PTR -52[rbp]
	movsx	r8, esi
	movsx	rdx, ecx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, r8
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	DWORD PTR [rdx+rax], edi
	movzx	eax, BYTE PTR -62[rbp]
	movsx	eax, al
	lea	edi, -65[rax]
	movzx	eax, BYTE PTR -61[rbp]
	movsx	eax, al
	lea	r8d, -65[rax]
	movsx	rsi, esi
	movsx	rdx, ecx
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	movsx	rsi, r8d
	movsx	rdx, edi
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -44[rbp], 1
.L4:
	mov	eax, DWORD PTR -56[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L5
	add	DWORD PTR -48[rbp], 1
.L3:
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 1
	cmp	DWORD PTR -48[rbp], eax
	jl	.L6
	mov	DWORD PTR G[rip], 0
	mov	DWORD PTR flag[rip], 1
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -48[rbp], 1
	jmp	.L7
.L14:
	mov	DWORD PTR -32[rbp], -1
	mov	DWORD PTR -44[rbp], 0
	jmp	.L8
.L13:
	mov	DWORD PTR -56[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, flag[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jns	.L10
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -56[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jle	.L10
	cmp	DWORD PTR -32[rbp], 0
	jns	.L11
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	DWORD PTR -32[rbp], 1
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -40[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
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -56[rbp]
	movsx	rsi, edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	ecx, eax
	jle	.L10
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, G[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -36[rbp], eax
.L10:
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	mov	DWORD PTR -56[rbp], eax
.L9:
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -60[rbp]
	cmp	edx, eax
	jl	.L12
	add	DWORD PTR -44[rbp], 1
.L8:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L13
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, flag[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, G[rip]
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -40[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
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -28[rbp], eax
	add	DWORD PTR -48[rbp], 1
.L7:
	mov	eax, DWORD PTR -60[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L14
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jne	.L15
	call	clock@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	subsd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1083129856
	.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	"104738.c"
	.text
	.comm	map,2704,4
	.comm	G,104,4
	.comm	flag,104,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"input.txt\000"
	.global	__aeabi_i2d
	.align	2
.LC2:
	.ascii	" %c %d\000"
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.align	2
.LC5:
	.ascii	"%.3lf MS\012\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 = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+8
	ldr	r0, .L18+12
	bl	freopen
	bl	clock
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L2
.L15:
	mov	r2, #2704
	mvn	r1, #0
	ldr	r0, .L18+16
	bl	memset
	mov	r2, #104
	mvn	r1, #0
	ldr	r0, .L18+20
	bl	memset
	mov	r2, #104
	mvn	r1, #0
	ldr	r0, .L18+24
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L3
.L6:
	sub	r2, fp, #60
	sub	r3, fp, #66
	mov	r1, r3
	ldr	r0, .L18+28
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L4
.L5:
	sub	r2, fp, #56
	sub	r3, fp, #65
	mov	r1, r3
	ldr	r0, .L18+28
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	sub	r2, r3, #65
	ldrb	r3, [fp, #-66]	@ zero_extendqisi2
	sub	r0, r3, #65
	ldr	r1, [fp, #-56]
	ldr	ip, .L18+16
	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, r0
	str	r1, [ip, r3, lsl #2]
	ldrb	r3, [fp, #-66]	@ zero_extendqisi2
	sub	r1, r3, #65
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	sub	ip, r3, #65
	ldr	lr, .L18+16
	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, r0
	ldr	r2, [lr, r3, lsl #2]
	ldr	r0, .L18+16
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, ip
	str	r2, [r0, r3, lsl #2]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L4:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L3:
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L6
	ldr	r3, .L18+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L18+24
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L7
.L14:
	mvn	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L8
.L13:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L9
.L12:
	ldr	r3, [fp, #-60]
	ldr	r2, .L18+24
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bge	.L10
	ldr	r2, .L18+20
	ldr	r3, [fp, #-48]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, [fp, #-60]
	ldr	r0, .L18+16
	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
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #0
	ble	.L10
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L11
	ldr	r2, .L18+20
	ldr	r3, [fp, #-48]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L10
.L11:
	ldr	r1, .L18+16
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r3, r2
	ldr	r1, [r1, r3, lsl #2]
	ldr	r2, .L18+20
	ldr	r3, [fp, #-48]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r0, [fp, #-60]
	ldr	ip, .L18+16
	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, r0
	ldr	r3, [ip, r3, lsl #2]
	cmp	r1, r3
	ble	.L10
	ldr	r2, .L18+20
	ldr	r3, [fp, #-48]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-40]
.L10:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L9:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L8:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L13
	ldr	r2, .L18+24
	ldr	r3, [fp, #-40]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	ldr	r1, .L18+20
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-40]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L18+16
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L7:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L14
	ldr	r1, [fp, #-32]
	ldr	r0, .L18+32
	bl	printf
.L2:
	sub	r3, fp, #64
	mov	r1, r3
	ldr	r0, .L18+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L15
	bl	clock
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L18+40
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L18+44
	bl	printf
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC6
	.word	stdin
	.word	.LC0
	.word	.LC1
	.word	map
	.word	G
	.word	flag
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1083129856
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
