Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void){
   int n,i;
   scanf("%d",&n);

   double coin[n],t=0; char ch[n][4];
   for(i=0;i<n;i++)
      scanf("%lf%s",&coin[i],ch[i]);

   for(i=0;i<n;i++){
      if(ch[i][0]=='J'){
         t+=coin[i];
      } else {
         t+= coin[i]*380000;
      }
   }

   printf("%lf\n",t);
   return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%lf%s"
.LC4:
	.string	"%lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rcx
	movq	%rsp, %rdi
	leaq	15(,%rcx,8), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rdi
	andq	$-16, %rdx
	cmpq	%rdi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	leaq	15(,%rcx,4), %rax
	movq	%rsp, %rcx
	movq	%rsp, %rbx
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L29
.L7:
	movq	%rsp, -72(%rbp)
	testl	%esi, %esi
	jle	.L11
	movq	%rbx, %r12
	movq	%rsp, %r15
	leaq	.LC2(%rip), %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addl	$1, %r13d
	addq	$8, %r12
	addq	$4, %r15
	cmpl	%r13d, %eax
	jg	.L10
	testl	%eax, %eax
	jle	.L11
	movsd	.LC3(%rip), %xmm2
	movslq	%eax, %rdx
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L14:
	movq	-72(%rbp), %rcx
	movsd	(%rbx,%rax,8), %xmm0
	cmpb	$74, (%rcx,%rax,4)
	je	.L25
	mulsd	%xmm2, %xmm0
.L25:
	addq	$1, %rax
	addsd	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L14
.L9:
	movapd	%xmm1, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L11:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	jmp	.L9
.L29:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1092039040
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%lf%s"
.LC4:
	.string	"%lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rcx
	movq	%rsp, %rdi
	leaq	15(,%rcx,8), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rdi
	andq	$-16, %rdx
	cmpq	%rdi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	leaq	15(,%rcx,4), %rax
	movq	%rsp, %rcx
	movq	%rsp, %rbx
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L29
.L7:
	movq	%rsp, -72(%rbp)
	testl	%esi, %esi
	jle	.L11
	movq	%rbx, %r12
	movq	%rsp, %r15
	leaq	.LC2(%rip), %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addl	$1, %r13d
	addq	$8, %r12
	addq	$4, %r15
	cmpl	%r13d, %eax
	jg	.L10
	testl	%eax, %eax
	jle	.L11
	movsd	.LC3(%rip), %xmm2
	movslq	%eax, %rdx
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L14:
	movq	-72(%rbp), %rcx
	movsd	(%rbx,%rax,8), %xmm0
	cmpb	$74, (%rcx,%rax,4)
	je	.L25
	mulsd	%xmm2, %xmm0
.L25:
	addq	$1, %rax
	addsd	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L14
.L9:
	movapd	%xmm1, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L11:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	jmp	.L9
.L29:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1092039040
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%lf%s"
.LC4:
	.string	"%lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rcx
	movq	%rsp, %rdi
	leaq	15(,%rcx,8), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rdi
	andq	$-16, %rdx
	cmpq	%rdi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	leaq	15(,%rcx,4), %rax
	movq	%rsp, %rcx
	movq	%rsp, %rbx
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L29
.L7:
	movq	%rsp, -72(%rbp)
	testl	%esi, %esi
	jle	.L11
	movq	%rbx, %r12
	movq	%rsp, %r15
	leaq	.LC2(%rip), %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addl	$1, %r13d
	addq	$8, %r12
	addq	$4, %r15
	cmpl	%r13d, %eax
	jg	.L10
	testl	%eax, %eax
	jle	.L11
	movsd	.LC3(%rip), %xmm2
	movslq	%eax, %rdx
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L14:
	movq	-72(%rbp), %rcx
	movsd	(%rbx,%rax,8), %xmm0
	cmpb	$74, (%rcx,%rax,4)
	je	.L25
	mulsd	%xmm2, %xmm0
.L25:
	addq	$1, %rax
	addsd	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L14
.L9:
	movapd	%xmm1, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L11:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	jmp	.L9
.L29:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1092039040
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```
```c
#include <stdio.h>

int main(void){
   int n,i;
   scanf("%d",&n);

   double coin[n],t=0; char ch[n][4];
   for(i=0;i<n;i++)
      scanf("%lf%s",&coin[i],ch[i]);

   for(i=0;i<n;i++){
      if(ch[i][0]=='J'){
         t+=coin[i];
      } else {
         t+= coin[i]*380000;
      }
   }

   printf("%lf\n",t);
   return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void){
   int n,i;
   scanf("%d",&n);

   double coin[n],t=0; char ch[n][4];
   for(i=0;i<n;i++)
      scanf("%lf%s",&coin[i],ch[i]);

   for(i=0;i<n;i++){
      if(ch[i][0]=='J'){
         t+=coin[i];
      } else {
         t+= coin[i]*380000;
      }
   }

   printf("%lf\n",t);
   return 0;
}```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

2
00000 JPY
0.10000000 BTC
 2
00000 JPY
0.7411383442474536 BTC
 2
10000 JPY
0.7411383442474536 BTC
 2
01000 JPY
0.10000000 BTC
 2
00010 JPY
0.7411383442474536 BTC
 2
10000 JPY
1.729349410778393 BTC
 2
10000 JPY
0.17314902569100102 BTC
 3
100000000 JPY
100.00000000 BTC
0.3694804465533971 BTC
 2
00000 JPY
0.10189738901396564 BTC
 2
00000 JPY
1.673334956965359 BTC

38000.000000
 281632.570814
 291632.570814
 39000.000000
 281642.570814
 667152.776096
 75796.629763
 138140402.569690
 38721.007825
 635867.283647

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void){
   int n,i;
   scanf("%d",&n);

   double coin[n],t=0; char ch[n][4];
   for(i=0;i<n;i++)
      scanf("%lf%s",&coin[i],ch[i]);

   for(i=0;i<n;i++){
      if(ch[i][0]=='J'){
         t+=coin[i];
      } else {
         t+= coin[i]*380000;
      }
   }

   printf("%lf\n",t);
   return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%lf%s"
.LC4:
	.string	"%lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rcx
	movq	%rsp, %rdi
	leaq	15(,%rcx,8), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rdi
	andq	$-16, %rdx
	cmpq	%rdi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	leaq	15(,%rcx,4), %rax
	movq	%rsp, %rcx
	movq	%rsp, %rbx
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L29
.L7:
	movq	%rsp, -72(%rbp)
	testl	%esi, %esi
	jle	.L11
	movq	%rbx, %r12
	movq	%rsp, %r15
	leaq	.LC2(%rip), %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addl	$1, %r13d
	addq	$8, %r12
	addq	$4, %r15
	cmpl	%r13d, %eax
	jg	.L10
	testl	%eax, %eax
	jle	.L11
	movsd	.LC3(%rip), %xmm2
	movslq	%eax, %rdx
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L14:
	movq	-72(%rbp), %rcx
	movsd	(%rbx,%rax,8), %xmm0
	cmpb	$74, (%rcx,%rax,4)
	je	.L25
	mulsd	%xmm2, %xmm0
.L25:
	addq	$1, %rax
	addsd	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L14
.L9:
	movapd	%xmm1, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L11:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	jmp	.L9
.L29:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1092039040
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%lf%s"
.LC4:
	.string	"%lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rcx
	movq	%rsp, %rdi
	leaq	15(,%rcx,8), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rdi
	andq	$-16, %rdx
	cmpq	%rdi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	leaq	15(,%rcx,4), %rax
	movq	%rsp, %rcx
	movq	%rsp, %rbx
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L29
.L7:
	movq	%rsp, -72(%rbp)
	testl	%esi, %esi
	jle	.L11
	movq	%rbx, %r12
	movq	%rsp, %r15
	leaq	.LC2(%rip), %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rdx
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addl	$1, %r13d
	addq	$8, %r12
	addq	$4, %r15
	cmpl	%r13d, %eax
	jg	.L10
	testl	%eax, %eax
	jle	.L11
	movsd	.LC3(%rip), %xmm2
	movslq	%eax, %rdx
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L14:
	movq	-72(%rbp), %rcx
	movsd	(%rbx,%rax,8), %xmm0
	cmpb	$74, (%rcx,%rax,4)
	je	.L25
	mulsd	%xmm2, %xmm0
.L25:
	addq	$1, %rax
	addsd	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L14
.L9:
	movapd	%xmm1, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L11:
	.cfi_restore_state
	pxor	%xmm1, %xmm1
	jmp	.L9
.L29:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1092039040
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```