	.file	"681478.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
.LC2:
	.string	"%s"
.LC3:
	.string	"%lf"
.LC4:
	.string	"S"
.LC5:
	.string	"%.1lf\n"
.LC6:
	.string	"M"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1216
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	mov	edi, 6
	call	setlocale@PLT
	lea	rdx, -1184[rbp]
	mov	eax, 0
	mov	ecx, 144
	mov	rdi, rdx
	rep stosq
	pxor	xmm0, xmm0
	movsd	QWORD PTR -1192[rbp], xmm0
	mov	DWORD PTR -1200[rbp], 10
	mov	DWORD PTR -1196[rbp], 0
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1208[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -1204[rbp], 0
	jmp	.L3
.L4:
	lea	rcx, -1184[rbp]
	mov	eax, DWORD PTR -1204[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -1208[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	sal	rax, 3
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -1204[rbp], 1
.L3:
	cmp	DWORD PTR -1204[rbp], 11
	jle	.L4
	add	DWORD PTR -1208[rbp], 1
.L2:
	cmp	DWORD PTR -1208[rbp], 11
	jle	.L5
	mov	DWORD PTR -1208[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -1204[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -1204[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -1208[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	movsd	xmm0, QWORD PTR -1184[rbp+rax*8]
	movsd	xmm1, QWORD PTR -1192[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -1192[rbp], xmm0
	add	DWORD PTR -1196[rbp], 1
	add	DWORD PTR -1204[rbp], 1
.L7:
	mov	eax, DWORD PTR -1204[rbp]
	cmp	eax, DWORD PTR -1200[rbp]
	jle	.L8
	sub	DWORD PTR -1200[rbp], 1
	add	DWORD PTR -1208[rbp], 1
.L6:
	cmp	DWORD PTR -1208[rbp], 11
	jle	.L9
	lea	rax, -18[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	mov	rax, QWORD PTR -1192[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L11
.L10:
	lea	rax, -18[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -1196[rbp]
	movsd	xmm0, QWORD PTR -1192[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
.L11:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"681478.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"%lf\000"
	.global	__aeabi_dadd
	.align	2
.LC3:
	.ascii	"S\000"
	.align	2
.LC4:
	.ascii	"%.1lf\012\000"
	.align	2
.LC5:
	.ascii	"M\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.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 = 1192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1184
	sub	sp, sp, #8
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L14+4
	mov	r0, #6
	bl	setlocale
	sub	r3, fp, #1168
	sub	r3, r3, #4
	mov	r2, #1152
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1180]
	str	r3, [fp, #-1176]
	mov	r3, #10
	str	r3, [fp, #-1188]
	mov	r3, #0
	str	r3, [fp, #-1184]
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-1196]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-1192]
	b	.L3
.L4:
	sub	r1, fp, #1168
	sub	r1, r1, #4
	ldr	r2, [fp, #-1196]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1192]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L14+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-1192]
	add	r3, r3, #1
	str	r3, [fp, #-1192]
.L3:
	ldr	r3, [fp, #-1192]
	cmp	r3, #11
	ble	.L4
	ldr	r3, [fp, #-1196]
	add	r3, r3, #1
	str	r3, [fp, #-1196]
.L2:
	ldr	r3, [fp, #-1196]
	cmp	r3, #11
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-1196]
	b	.L6
.L9:
	mov	r3, #0
	str	r3, [fp, #-1192]
	b	.L7
.L8:
	ldr	r2, [fp, #-1196]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1192]
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #1168
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-1180]
	ldr	r1, [fp, #-1176]
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-1180]
	str	r3, [fp, #-1176]
	ldr	r3, [fp, #-1184]
	add	r3, r3, #1
	str	r3, [fp, #-1184]
	ldr	r3, [fp, #-1192]
	add	r3, r3, #1
	str	r3, [fp, #-1192]
.L7:
	ldr	r2, [fp, #-1192]
	ldr	r3, [fp, #-1188]
	cmp	r2, r3
	ble	.L8
	ldr	r3, [fp, #-1188]
	sub	r3, r3, #1
	str	r3, [fp, #-1188]
	ldr	r3, [fp, #-1196]
	add	r3, r3, #1
	str	r3, [fp, #-1196]
.L6:
	ldr	r3, [fp, #-1196]
	cmp	r3, #11
	ble	.L9
	sub	r3, fp, #20
	ldr	r1, .L14+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r2, [fp, #-1180]
	ldr	r3, [fp, #-1176]
	ldr	r0, .L14+20
	bl	printf
	b	.L11
.L10:
	sub	r3, fp, #20
	ldr	r1, .L14+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r0, [fp, #-1184]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [fp, #-1180]
	ldr	r1, [fp, #-1176]
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L14+20
	bl	printf
.L11:
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.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
