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()
{
	int i, N;
	long double x, sum = 0.0;
	char u[4];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) {
		scanf("%Lf %s", &x, u);
		if (u[0] == 'B') sum += x * 380000.0;
		else sum += x;
	}
	printf("%Lf\n", sum);
	fflush(stdout);
	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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	fldz
	testl	%ecx, %ecx
	jle	.L2
	movl	$1, %ebx
	leaq	52(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	faddp	%st, %st(1)
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jl	.L2
.L5:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	fstpt	(%rsp)
	call	__isoc99_scanf@PLT
	fldt	32(%rsp)
	cmpb	$66, 52(%rsp)
	fldt	(%rsp)
	jne	.L3
	fxch	%st(1)
	fmuls	.LC3(%rip)
	addl	$1, %ebx
	faddp	%st, %st(1)
	cmpl	%ebx, 28(%rsp)
	jge	.L5
.L2:
	subq	$16, %rsp
	.cfi_def_cfa_offset 128
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC3:
	.long	1220119552
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	fldz
	testl	%ecx, %ecx
	jle	.L2
	movl	$1, %ebx
	leaq	52(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	faddp	%st, %st(1)
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jl	.L2
.L5:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	fstpt	(%rsp)
	call	__isoc99_scanf@PLT
	fldt	32(%rsp)
	cmpb	$66, 52(%rsp)
	fldt	(%rsp)
	jne	.L3
	fxch	%st(1)
	fmuls	.LC3(%rip)
	addl	$1, %ebx
	faddp	%st, %st(1)
	cmpl	%ebx, 28(%rsp)
	jge	.L5
.L2:
	subq	$16, %rsp
	.cfi_def_cfa_offset 128
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC3:
	.long	1220119552
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	fldz
	testl	%ecx, %ecx
	jle	.L2
	movl	$1, %ebx
	leaq	52(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	faddp	%st, %st(1)
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jl	.L2
.L5:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	fstpt	(%rsp)
	call	__isoc99_scanf@PLT
	fldt	32(%rsp)
	cmpb	$66, 52(%rsp)
	fldt	(%rsp)
	jne	.L3
	fxch	%st(1)
	fmuls	.LC3(%rip)
	addl	$1, %ebx
	faddp	%st, %st(1)
	cmpl	%ebx, 28(%rsp)
	jge	.L5
.L2:
	subq	$16, %rsp
	.cfi_def_cfa_offset 128
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC3:
	.long	1220119552
	.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()
{
	int i, N;
	long double x, sum = 0.0;
	char u[4];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) {
		scanf("%Lf %s", &x, u);
		if (u[0] == 'B') sum += x * 380000.0;
		else sum += x;
	}
	printf("%Lf\n", sum);
	fflush(stdout);
	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()
{
	int i, N;
	long double x, sum = 0.0;
	char u[4];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) {
		scanf("%Lf %s", &x, u);
		if (u[0] == 'B') sum += x * 380000.0;
		else sum += x;
	}
	printf("%Lf\n", sum);
	fflush(stdout);
	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()
{
	int i, N;
	long double x, sum = 0.0;
	char u[4];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) {
		scanf("%Lf %s", &x, u);
		if (u[0] == 'B') sum += x * 380000.0;
		else sum += x;
	}
	printf("%Lf\n", sum);
	fflush(stdout);
	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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	fldz
	testl	%ecx, %ecx
	jle	.L2
	movl	$1, %ebx
	leaq	52(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	faddp	%st, %st(1)
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jl	.L2
.L5:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	fstpt	(%rsp)
	call	__isoc99_scanf@PLT
	fldt	32(%rsp)
	cmpb	$66, 52(%rsp)
	fldt	(%rsp)
	jne	.L3
	fxch	%st(1)
	fmuls	.LC3(%rip)
	addl	$1, %ebx
	faddp	%st, %st(1)
	cmpl	%ebx, 28(%rsp)
	jge	.L5
.L2:
	subq	$16, %rsp
	.cfi_def_cfa_offset 128
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC3:
	.long	1220119552
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	fldz
	testl	%ecx, %ecx
	jle	.L2
	movl	$1, %ebx
	leaq	52(%rsp), %r13
	leaq	32(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	faddp	%st, %st(1)
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jl	.L2
.L5:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	fstpt	(%rsp)
	call	__isoc99_scanf@PLT
	fldt	32(%rsp)
	cmpb	$66, 52(%rsp)
	fldt	(%rsp)
	jne	.L3
	fxch	%st(1)
	fmuls	.LC3(%rip)
	addl	$1, %ebx
	faddp	%st, %st(1)
	cmpl	%ebx, 28(%rsp)
	jge	.L5
.L2:
	subq	$16, %rsp
	.cfi_def_cfa_offset 128
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC3:
	.long	1220119552
	.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:
```