	.file	"142815.c"
	.intel_syntax noprefix
	.text
	.globl	sumVector
	.type	sumVector, @function
sumVector:
.LFB0:
	.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 -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L3
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sumVector, .-sumVector
	.section	.rodata
.LC1:
	.string	" %c"
.LC2:
	.string	"%lf"
.LC3:
	.string	"%.1lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	mov	BYTE PTR -1205[rbp], 111
	lea	rax, -1205[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1204[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -1200[rbp], 0
	jmp	.L7
.L8:
	lea	rcx, -1168[rbp]
	mov	eax, DWORD PTR -1200[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -1204[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, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -1200[rbp], 1
.L7:
	cmp	DWORD PTR -1200[rbp], 11
	jle	.L8
	add	DWORD PTR -1204[rbp], 1
.L6:
	cmp	DWORD PTR -1204[rbp], 11
	jle	.L9
	pxor	xmm0, xmm0
	movsd	QWORD PTR -1184[rbp], xmm0
	mov	DWORD PTR -1196[rbp], 6
	mov	DWORD PTR -1192[rbp], 6
	mov	DWORD PTR -1188[rbp], 6
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -1192[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -1196[rbp]
	lea	edx, -1[rax]
	mov	esi, DWORD PTR -1188[rbp]
	lea	rax, -1168[rbp]
	mov	rdi, rax
	call	sumVector
	movsd	xmm1, QWORD PTR -1184[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -1184[rbp], xmm0
	sub	DWORD PTR -1196[rbp], 1
	add	DWORD PTR -1192[rbp], 1
	sub	DWORD PTR -1188[rbp], 1
.L10:
	cmp	DWORD PTR -1188[rbp], 0
	jg	.L11
	movzx	eax, BYTE PTR -1205[rbp]
	cmp	al, 83
	jne	.L12
	mov	rax, QWORD PTR -1184[rbp]
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
.L12:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -1176[rbp], xmm0
	movzx	eax, BYTE PTR -1205[rbp]
	cmp	al, 77
	jne	.L13
	movsd	xmm0, QWORD PTR -1184[rbp]
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -1176[rbp], xmm0
	mov	rax, QWORD PTR -1176[rbp]
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
.L13:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1077805056
	.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	"142815.c"
	.text
	.global	__aeabi_dadd
	.align	2
	.global	sumVector
	.syntax unified
	.arm
	.fpu softvfp
	.type	sumVector, %function
sumVector:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L3
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sumVector, .-sumVector
	.section	.rodata
	.align	2
.LC0:
	.ascii	" %c\000"
	.align	2
.LC1:
	.ascii	"%lf\000"
	.align	2
.LC2:
	.ascii	"%.1lf\012\000"
	.global	__aeabi_ddiv
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1200
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #111
	strb	r3, [fp, #-1201]
	sub	r3, fp, #1184
	sub	r3, r3, #4
	sub	r3, r3, #13
	mov	r1, r3
	ldr	r0, .L16+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-1200]
	b	.L6
.L9:
	mov	r3, #0
	str	r3, [fp, #-1196]
	b	.L7
.L8:
	sub	r2, fp, #1152
	sub	r2, r2, #4
	sub	r2, r2, #8
	ldr	r1, [fp, #-1200]
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-1196]
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L16+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-1196]
	add	r3, r3, #1
	str	r3, [fp, #-1196]
.L7:
	ldr	r3, [fp, #-1196]
	cmp	r3, #11
	ble	.L8
	ldr	r3, [fp, #-1200]
	add	r3, r3, #1
	str	r3, [fp, #-1200]
.L6:
	ldr	r3, [fp, #-1200]
	cmp	r3, #11
	ble	.L9
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1180]
	str	r3, [fp, #-1176]
	mov	r3, #6
	str	r3, [fp, #-1192]
	mov	r3, #6
	str	r3, [fp, #-1188]
	mov	r3, #6
	str	r3, [fp, #-1184]
	b	.L10
.L11:
	ldr	r3, [fp, #-1192]
	sub	r2, r3, #1
	ldr	r3, [fp, #-1188]
	add	r3, r3, #1
	sub	r0, fp, #1152
	sub	r0, r0, #4
	sub	r0, r0, #8
	ldr	r1, [fp, #-1184]
	bl	sumVector
	mov	r2, r0
	mov	r3, r1
	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, #-1192]
	sub	r3, r3, #1
	str	r3, [fp, #-1192]
	ldr	r3, [fp, #-1188]
	add	r3, r3, #1
	str	r3, [fp, #-1188]
	ldr	r3, [fp, #-1184]
	sub	r3, r3, #1
	str	r3, [fp, #-1184]
.L10:
	ldr	r3, [fp, #-1184]
	cmp	r3, #0
	bgt	.L11
	ldrb	r3, [fp, #-1201]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L12
	ldr	r2, [fp, #-1180]
	ldr	r3, [fp, #-1176]
	ldr	r0, .L16+12
	bl	printf
.L12:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1172]
	str	r3, [fp, #-1168]
	ldrb	r3, [fp, #-1201]	@ zero_extendqisi2
	cmp	r3, #77
	bne	.L13
	mov	r2, #0
	ldr	r3, .L16+16
	ldr	r0, [fp, #-1180]
	ldr	r1, [fp, #-1176]
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-1172]
	str	r3, [fp, #-1168]
	ldr	r2, [fp, #-1172]
	ldr	r3, [fp, #-1168]
	ldr	r0, .L16+12
	bl	printf
.L13:
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1077805056
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
