	.file	"498457.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	" %c"
.LC1:
	.string	"%lf"
.LC2:
	.string	"%.1lf\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, 1184
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -1177[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1176[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -1172[rbp], 0
	jmp	.L3
.L4:
	lea	rcx, -1168[rbp]
	mov	eax, DWORD PTR -1172[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -1176[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, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -1172[rbp], 1
.L3:
	cmp	DWORD PTR -1172[rbp], 11
	jle	.L4
	add	DWORD PTR -1176[rbp], 1
.L2:
	cmp	DWORD PTR -1176[rbp], 11
	jle	.L5
	movzx	eax, BYTE PTR -1177[rbp]
	cmp	al, 83
	jne	.L6
	lea	rax, -1168[rbp]
	mov	rdi, rax
	call	Soma
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
.L6:
	movzx	eax, BYTE PTR -1177[rbp]
	cmp	al, 77
	jne	.L7
	lea	rax, -1168[rbp]
	mov	rdi, rax
	call	Media
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
.L7:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	Soma
	.type	Soma, @function
Soma:
.LFB1:
	.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
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L11
.L17:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L12
.L16:
	mov	eax, 11
	sub	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	je	.L19
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jle	.L14
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	movsd	xmm0, QWORD PTR [rdx+rax*8]
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
.L14:
	add	DWORD PTR -12[rbp], 1
.L12:
	cmp	DWORD PTR -12[rbp], 11
	jle	.L16
	jmp	.L15
.L19:
	nop
.L15:
	add	DWORD PTR -16[rbp], 1
.L11:
	cmp	DWORD PTR -16[rbp], 11
	jle	.L17
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Soma, .-Soma
	.globl	Media
	.type	Media, @function
Media:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 40
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L21
.L27:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L22
.L26:
	mov	eax, 11
	sub	eax, DWORD PTR -20[rbp]
	cmp	DWORD PTR -16[rbp], eax
	je	.L29
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L24
	add	DWORD PTR -12[rbp], 1
.L24:
	add	DWORD PTR -16[rbp], 1
.L22:
	cmp	DWORD PTR -16[rbp], 11
	jle	.L26
	jmp	.L25
.L29:
	nop
.L25:
	add	DWORD PTR -20[rbp], 1
.L21:
	cmp	DWORD PTR -20[rbp], 11
	jle	.L27
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	Soma
	movq	rax, xmm0
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -12[rbp]
	movq	xmm0, rax
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	Media, .-Media
	.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	"498457.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	" %c\000"
	.align	2
.LC1:
	.ascii	"%lf\000"
	.align	2
.LC2:
	.ascii	"%.1lf\012\000"
	.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 = 1176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1168
	sub	sp, sp, #8
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1168
	sub	r3, r3, #4
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L10+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-1172]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-1168]
	b	.L3
.L4:
	sub	r2, fp, #1152
	sub	r2, r2, #4
	sub	r2, r2, #8
	ldr	r1, [fp, #-1172]
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-1168]
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L10+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-1168]
	add	r3, r3, #1
	str	r3, [fp, #-1168]
.L3:
	ldr	r3, [fp, #-1168]
	cmp	r3, #11
	ble	.L4
	ldr	r3, [fp, #-1172]
	add	r3, r3, #1
	str	r3, [fp, #-1172]
.L2:
	ldr	r3, [fp, #-1172]
	cmp	r3, #11
	ble	.L5
	ldrb	r3, [fp, #-1173]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L6
	sub	r3, fp, #1152
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	Soma
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L10+12
	bl	printf
.L6:
	ldrb	r3, [fp, #-1173]	@ zero_extendqisi2
	cmp	r3, #77
	bne	.L7
	sub	r3, fp, #1152
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	Media
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L10+12
	bl	printf
.L7:
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.global	__aeabi_dadd
	.align	2
	.global	Soma
	.syntax unified
	.arm
	.fpu softvfp
	.type	Soma, %function
Soma:
	@ 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]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L13
.L19:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L14
.L18:
	ldr	r3, [fp, #-20]
	rsb	r3, r3, #11
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L21
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L16
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #5
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	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]
.L16:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L14:
	ldr	r3, [fp, #-16]
	cmp	r3, #11
	ble	.L18
	b	.L17
.L21:
	nop
.L17:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L13:
	ldr	r3, [fp, #-20]
	cmp	r3, #11
	ble	.L19
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Soma, .-Soma
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
	.global	Media
	.syntax unified
	.arm
	.fpu softvfp
	.type	Media, %function
Media:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L23
.L29:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L24
.L28:
	ldr	r3, [fp, #-32]
	rsb	r3, r3, #11
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	beq	.L31
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L26
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L26:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L24:
	ldr	r3, [fp, #-28]
	cmp	r3, #11
	ble	.L28
	b	.L27
.L31:
	nop
.L27:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L23:
	ldr	r3, [fp, #-32]
	cmp	r3, #11
	ble	.L29
	ldr	r0, [fp, #-40]
	bl	Soma
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	Media, .-Media
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
