	.file	"264893.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 16
	.type	a, @object
	.size	a, 31
a:
	.zero	31
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"input.txt"
.LC2:
	.string	"-1"
.LC3:
	.string	"none"
.LC4:
	.string	"%d"
.LC5:
	.string	" %d"
.LC6:
	.string	"%s"
.LC8:
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	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 -16[rbp], xmm0
	jmp	.L2
.L13:
	lea	rsi, .LC2[rip]
	lea	rdi, a[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L15
	mov	DWORD PTR j[rip], 0
	mov	DWORD PTR i[rip], 2
	jmp	.L5
.L9:
	mov	DWORD PTR m[rip], 0
	mov	eax, DWORD PTR m[rip]
	mov	DWORD PTR y[rip], eax
	jmp	.L6
.L7:
	mov	eax, DWORD PTR m[rip]
	cdqe
	lea	rdx, a[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	lea	ecx, -48[rax]
	mov	edx, DWORD PTR y[rip]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, ecx
	mov	DWORD PTR y[rip], eax
	mov	eax, DWORD PTR y[rip]
	mov	ecx, DWORD PTR i[rip]
	cdq
	idiv	ecx
	mov	eax, edx
	mov	DWORD PTR y[rip], eax
	mov	eax, DWORD PTR m[rip]
	add	eax, 1
	mov	DWORD PTR m[rip], eax
.L6:
	mov	eax, DWORD PTR m[rip]
	cdqe
	lea	rdx, a[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L7
	mov	eax, DWORD PTR y[rip]
	test	eax, eax
	jne	.L8
	mov	ecx, DWORD PTR i[rip]
	mov	eax, DWORD PTR j[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR j[rip], edx
	cdqe
	lea	rdx, k[rip]
	mov	BYTE PTR [rax+rdx], cl
.L8:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L5:
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 9
	jle	.L9
	mov	eax, DWORD PTR j[rip]
	test	eax, eax
	jne	.L10
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L2
.L10:
	movzx	eax, BYTE PTR k[rip]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR i[rip], 1
	jmp	.L11
.L12:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, k[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L11:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR j[rip]
	cmp	edx, eax
	jl	.L12
	mov	edi, 10
	call	putchar@PLT
.L2:
	lea	rsi, a[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L13
	jmp	.L4
.L15:
	nop
.L4:
	call	clock@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	subsd	xmm0, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR .LC7[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC7:
	.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	"264893.c"
	.text
	.comm	a,31,4
	.comm	k,8,4
	.comm	i,4,4
	.comm	j,4,4
	.comm	n,4,4
	.comm	m,4,4
	.comm	y,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"input.txt\000"
	.global	__aeabi_i2d
	.align	2
.LC2:
	.ascii	"-1\000"
	.global	__aeabi_idivmod
	.align	2
.LC3:
	.ascii	"none\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	" %d\000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.align	2
.LC7:
	.ascii	"%.3lf MS\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	freopen
	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]
	b	.L2
.L13:
	ldr	r1, .L16+12
	ldr	r0, .L16+16
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L16+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L16+24
	mov	r2, #2
	str	r2, [r3]
	b	.L5
.L9:
	ldr	r3, .L16+28
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L16+28
	ldr	r3, [r3]
	ldr	r2, .L16+32
	str	r3, [r2]
	b	.L6
.L7:
	ldr	r3, .L16+28
	ldr	r3, [r3]
	ldr	r2, .L16+16
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	sub	r1, r3, #48
	ldr	r3, .L16+32
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldr	r2, .L16+32
	str	r3, [r2]
	ldr	r3, .L16+32
	ldr	r3, [r3]
	ldr	r2, .L16+24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L16+32
	str	r2, [r3]
	ldr	r3, .L16+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+28
	str	r3, [r2]
.L6:
	ldr	r3, .L16+28
	ldr	r3, [r3]
	ldr	r2, .L16+16
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L16+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L16+24
	ldr	r2, [r3]
	ldr	r3, .L16+20
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L16+20
	str	r1, [r0]
	and	r1, r2, #255
	ldr	r2, .L16+36
	strb	r1, [r2, r3]
.L8:
	ldr	r3, .L16+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+24
	str	r3, [r2]
.L5:
	ldr	r3, .L16+24
	ldr	r3, [r3]
	cmp	r3, #9
	ble	.L9
	ldr	r3, .L16+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L16+40
	bl	puts
	b	.L2
.L10:
	ldr	r3, .L16+36
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L16+44
	bl	printf
	ldr	r3, .L16+24
	mov	r2, #1
	str	r2, [r3]
	b	.L11
.L12:
	ldr	r3, .L16+24
	ldr	r3, [r3]
	ldr	r2, .L16+36
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L16+48
	bl	printf
	ldr	r3, .L16+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+24
	str	r3, [r2]
.L11:
	ldr	r3, .L16+24
	ldr	r2, [r3]
	ldr	r3, .L16+20
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L12
	mov	r0, #10
	bl	putchar
.L2:
	ldr	r1, .L16+16
	ldr	r0, .L16+52
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	b	.L4
.L15:
	nop
.L4:
	bl	clock
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L16+56
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+60
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	stdin
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	a
	.word	j
	.word	i
	.word	m
	.word	y
	.word	k
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	1083129856
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
