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>
#include <inttypes.h>

int main(void) {
	int N;
	uint64_t mizuhasu = 0;
	int i;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		char x[128];
		char u[8];
		if (scanf("%127s%7s", x, u) != 2) return 1;
		if (u[0] == 'J') {
			uint64_t kitaeri;
			if (sscanf(x, "%" SCNu64, &kitaeri) != 1) return 2;
			mizuhasu += kitaeri * 10000;
		} else {
			uint64_t mikakosi, parunyasu;
			if (sscanf(x, "%" SCNu64 ".%" SCNu64, &mikakosi, &parunyasu) != 2) return 1;
			mizuhasu += (mikakosi * UINT64_C(100000000) + parunyasu) * 38;
		}
	}
	printf("%.4f\n", mizuhasu / 10000.0);
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%127s%7s"
.LC2:
	.string	"%lu"
.LC3:
	.string	"%lu.%lu"
.LC5:
	.string	"%.4f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	%eax, 12(%rsp)
	cmpl	$1, %eax
	je	.L22
	movl	$1, 12(%rsp)
.L1:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	movl	12(%rsp), %eax
	addq	$200, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	xorl	%ebp, %ebp
	cmpl	$0, 20(%rsp)
	jle	.L19
	leaq	24(%rsp), %rax
	xorl	%ebx, %ebx
	leaq	40(%rsp), %r14
	xorl	%ebp, %ebp
	movq	%rax, (%rsp)
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %r15
	leaq	.LC1(%rip), %r13
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movq	(%rsp), %rdx
	xorl	%eax, %eax
	movq	%r15, %rcx
	leaq	.LC3(%rip), %rsi
	movq	%r12, %rdi
	call	__isoc99_sscanf@PLT
	cmpl	$2, %eax
	jne	.L1
	imulq	$100000000, 24(%rsp), %rax
	addq	32(%rsp), %rax
	addl	$1, %ebx
	leaq	(%rax,%rax,8), %rdx
	leaq	(%rax,%rdx,2), %rax
	leaq	0(%rbp,%rax,2), %rbp
	cmpl	%ebx, 20(%rsp)
	jle	.L24
.L9:
	xorl	%eax, %eax
	movq	%r14, %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L1
	cmpb	$74, 40(%rsp)
	jne	.L5
	xorl	%eax, %eax
	movq	%r15, %rdx
	leaq	.LC2(%rip), %rsi
	movq	%r12, %rdi
	call	__isoc99_sscanf@PLT
	cmpl	$1, %eax
	jne	.L25
	imulq	$10000, 32(%rsp), %rax
	addl	$1, %ebx
	addq	%rax, %rbp
	cmpl	%ebx, 20(%rsp)
	jg	.L9
.L24:
	testq	%rbp, %rbp
	jns	.L19
	movq	%rbp, %rax
	andl	$1, %ebp
	pxor	%xmm0, %xmm0
	shrq	%rax
	orq	%rbp, %rax
	cvtsi2sdq	%rax, %xmm0
	addsd	%xmm0, %xmm0
	jmp	.L12
.L19:
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rbp, %xmm0
.L12:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	divsd	.LC4(%rip), %xmm0
	call	__printf_chk@PLT
	movl	$0, 12(%rsp)
	jmp	.L1
.L25:
	movl	$2, 12(%rsp)
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	0
	.long	1086556160
	.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
.LC0:
	.string	"%d"
.LC1:
	.string	"%127s%7s"
.LC2:
	.string	"%lu"
.LC3:
	.string	"%lu.%lu"
.LC5:
	.string	"%.4f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	%eax, 12(%rsp)
	cmpl	$1, %eax
	je	.L22
	movl	$1, 12(%rsp)
.L1:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	movl	12(%rsp), %eax
	addq	$200, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	xorl	%ebp, %ebp
	cmpl	$0, 20(%rsp)
	jle	.L19
	leaq	24(%rsp), %rax
	xorl	%ebx, %ebx
	leaq	40(%rsp), %r14
	xorl	%ebp, %ebp
	movq	%rax, (%rsp)
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %r15
	leaq	.LC1(%rip), %r13
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movq	(%rsp), %rdx
	xorl	%eax, %eax
	movq	%r15, %rcx
	leaq	.LC3(%rip), %rsi
	movq	%r12, %rdi
	call	__isoc99_sscanf@PLT
	cmpl	$2, %eax
	jne	.L1
	imulq	$100000000, 24(%rsp), %rax
	addq	32(%rsp), %rax
	addl	$1, %ebx
	leaq	(%rax,%rax,8), %rdx
	leaq	(%rax,%rdx,2), %rax
	leaq	0(%rbp,%rax,2), %rbp
	cmpl	%ebx, 20(%rsp)
	jle	.L24
.L9:
	xorl	%eax, %eax
	movq	%r14, %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L1
	cmpb	$74, 40(%rsp)
	jne	.L5
	xorl	%eax, %eax
	movq	%r15, %rdx
	leaq	.LC2(%rip), %rsi
	movq	%r12, %rdi
	call	__isoc99_sscanf@PLT
	cmpl	$1, %eax
	jne	.L25
	imulq	$10000, 32(%rsp), %rax
	addl	$1, %ebx
	addq	%rax, %rbp
	cmpl	%ebx, 20(%rsp)
	jg	.L9
.L24:
	testq	%rbp, %rbp
	jns	.L19
	movq	%rbp, %rax
	andl	$1, %ebp
	pxor	%xmm0, %xmm0
	shrq	%rax
	orq	%rbp, %rax
	cvtsi2sdq	%rax, %xmm0
	addsd	%xmm0, %xmm0
	jmp	.L12
.L19:
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rbp, %xmm0
.L12:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	divsd	.LC4(%rip), %xmm0
	call	__printf_chk@PLT
	movl	$0, 12(%rsp)
	jmp	.L1
.L25:
	movl	$2, 12(%rsp)
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	0
	.long	1086556160
	.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
.LC0:
	.string	"%d"
.LC1:
	.string	"%127s%7s"
.LC2:
	.string	"%lu"
.LC3:
	.string	"%lu.%lu"
.LC5:
	.string	"%.4f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	%eax, 12(%rsp)
	cmpl	$1, %eax
	je	.L22
	movl	$1, 12(%rsp)
.L1:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	movl	12(%rsp), %eax
	addq	$200, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	xorl	%ebp, %ebp
	cmpl	$0, 20(%rsp)
	jle	.L19
	leaq	24(%rsp), %rax
	xorl	%ebx, %ebx
	leaq	40(%rsp), %r14
	xorl	%ebp, %ebp
	movq	%rax, (%rsp)
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %r15
	leaq	.LC1(%rip), %r13
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movq	(%rsp), %rdx
	xorl	%eax, %eax
	movq	%r15, %rcx
	leaq	.LC3(%rip), %rsi
	movq	%r12, %rdi
	call	__isoc99_sscanf@PLT
	cmpl	$2, %eax
	jne	.L1
	imulq	$100000000, 24(%rsp), %rax
	addq	32(%rsp), %rax
	addl	$1, %ebx
	leaq	(%rax,%rax,8), %rdx
	leaq	(%rax,%rdx,2), %rax
	leaq	0(%rbp,%rax,2), %rbp
	cmpl	%ebx, 20(%rsp)
	jle	.L24
.L9:
	xorl	%eax, %eax
	movq	%r14, %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L1
	cmpb	$74, 40(%rsp)
	jne	.L5
	xorl	%eax, %eax
	movq	%r15, %rdx
	leaq	.LC2(%rip), %rsi
	movq	%r12, %rdi
	call	__isoc99_sscanf@PLT
	cmpl	$1, %eax
	jne	.L25
	imulq	$10000, 32(%rsp), %rax
	addl	$1, %ebx
	addq	%rax, %rbp
	cmpl	%ebx, 20(%rsp)
	jg	.L9
.L24:
	testq	%rbp, %rbp
	jns	.L19
	movq	%rbp, %rax
	andl	$1, %ebp
	pxor	%xmm0, %xmm0
	shrq	%rax
	orq	%rbp, %rax
	cvtsi2sdq	%rax, %xmm0
	addsd	%xmm0, %xmm0
	jmp	.L12
.L19:
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rbp, %xmm0
.L12:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	divsd	.LC4(%rip), %xmm0
	call	__printf_chk@PLT
	movl	$0, 12(%rsp)
	jmp	.L1
.L25:
	movl	$2, 12(%rsp)
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	0
	.long	1086556160
	.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>
#include <inttypes.h>

int main(void) {
	int N;
	uint64_t mizuhasu = 0;
	int i;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		char x[128];
		char u[8];
		if (scanf("%127s%7s", x, u) != 2) return 1;
		if (u[0] == 'J') {
			uint64_t kitaeri;
			if (sscanf(x, "%" SCNu64, &kitaeri) != 1) return 2;
			mizuhasu += kitaeri * 10000;
		} else {
			uint64_t mikakosi, parunyasu;
			if (sscanf(x, "%" SCNu64 ".%" SCNu64, &mikakosi, &parunyasu) != 2) return 1;
			mizuhasu += (mikakosi * UINT64_C(100000000) + parunyasu) * 38;
		}
	}
	printf("%.4f\n", mizuhasu / 10000.0);
	return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <inttypes.h>

int main(void) {
	int N;
	uint64_t mizuhasu = 0;
	int i;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		char x[128];
		char u[8];
		if (scanf("%127s%7s", x, u) != 2) return 1;
		if (u[0] == 'J') {
			uint64_t kitaeri;
			if (sscanf(x, "%" SCNu64, &kitaeri) != 1) return 2;
			mizuhasu += kitaeri * 10000;
		} else {
			uint64_t mikakosi, parunyasu;
			if (sscanf(x, "%" SCNu64 ".%" SCNu64, &mikakosi, &parunyasu) != 2) return 1;
			mizuhasu += (mikakosi * UINT64_C(100000000) + parunyasu) * 38;
		}
	}
	printf("%.4f\n", mizuhasu / 10000.0);
	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.0000
 28163257081403.2383
 28163257091403.2383
 39000.0000
 28163257081413.2344
 2771528150957.8936
 65796629772580.3906
 14040394969029.0898
 38721007825306.9453
 2558673216468.3638

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>
#include <inttypes.h>

int main(void) {
	int N;
	uint64_t mizuhasu = 0;
	int i;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		char x[128];
		char u[8];
		if (scanf("%127s%7s", x, u) != 2) return 1;
		if (u[0] == 'J') {
			uint64_t kitaeri;
			if (sscanf(x, "%" SCNu64, &kitaeri) != 1) return 2;
			mizuhasu += kitaeri * 10000;
		} else {
			uint64_t mikakosi, parunyasu;
			if (sscanf(x, "%" SCNu64 ".%" SCNu64, &mikakosi, &parunyasu) != 2) return 1;
			mizuhasu += (mikakosi * UINT64_C(100000000) + parunyasu) * 38;
		}
	}
	printf("%.4f\n", mizuhasu / 10000.0);
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%127s%7s"
.LC2:
	.string	"%lu"
.LC3:
	.string	"%lu.%lu"
.LC5:
	.string	"%.4f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	%eax, 12(%rsp)
	cmpl	$1, %eax
	je	.L22
	movl	$1, 12(%rsp)
.L1:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	movl	12(%rsp), %eax
	addq	$200, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	xorl	%ebp, %ebp
	cmpl	$0, 20(%rsp)
	jle	.L19
	leaq	24(%rsp), %rax
	xorl	%ebx, %ebx
	leaq	40(%rsp), %r14
	xorl	%ebp, %ebp
	movq	%rax, (%rsp)
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %r15
	leaq	.LC1(%rip), %r13
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movq	(%rsp), %rdx
	xorl	%eax, %eax
	movq	%r15, %rcx
	leaq	.LC3(%rip), %rsi
	movq	%r12, %rdi
	call	__isoc99_sscanf@PLT
	cmpl	$2, %eax
	jne	.L1
	imulq	$100000000, 24(%rsp), %rax
	addq	32(%rsp), %rax
	addl	$1, %ebx
	leaq	(%rax,%rax,8), %rdx
	leaq	(%rax,%rdx,2), %rax
	leaq	0(%rbp,%rax,2), %rbp
	cmpl	%ebx, 20(%rsp)
	jle	.L24
.L9:
	xorl	%eax, %eax
	movq	%r14, %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L1
	cmpb	$74, 40(%rsp)
	jne	.L5
	xorl	%eax, %eax
	movq	%r15, %rdx
	leaq	.LC2(%rip), %rsi
	movq	%r12, %rdi
	call	__isoc99_sscanf@PLT
	cmpl	$1, %eax
	jne	.L25
	imulq	$10000, 32(%rsp), %rax
	addl	$1, %ebx
	addq	%rax, %rbp
	cmpl	%ebx, 20(%rsp)
	jg	.L9
.L24:
	testq	%rbp, %rbp
	jns	.L19
	movq	%rbp, %rax
	andl	$1, %ebp
	pxor	%xmm0, %xmm0
	shrq	%rax
	orq	%rbp, %rax
	cvtsi2sdq	%rax, %xmm0
	addsd	%xmm0, %xmm0
	jmp	.L12
.L19:
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rbp, %xmm0
.L12:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	divsd	.LC4(%rip), %xmm0
	call	__printf_chk@PLT
	movl	$0, 12(%rsp)
	jmp	.L1
.L25:
	movl	$2, 12(%rsp)
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	0
	.long	1086556160
	.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
.LC0:
	.string	"%d"
.LC1:
	.string	"%127s%7s"
.LC2:
	.string	"%lu"
.LC3:
	.string	"%lu.%lu"
.LC5:
	.string	"%.4f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$200, %rsp
	.cfi_def_cfa_offset 256
	movq	%fs:40, %rax
	movq	%rax, 184(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	%eax, 12(%rsp)
	cmpl	$1, %eax
	je	.L22
	movl	$1, 12(%rsp)
.L1:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	movl	12(%rsp), %eax
	addq	$200, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	xorl	%ebp, %ebp
	cmpl	$0, 20(%rsp)
	jle	.L19
	leaq	24(%rsp), %rax
	xorl	%ebx, %ebx
	leaq	40(%rsp), %r14
	xorl	%ebp, %ebp
	movq	%rax, (%rsp)
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %r15
	leaq	.LC1(%rip), %r13
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movq	(%rsp), %rdx
	xorl	%eax, %eax
	movq	%r15, %rcx
	leaq	.LC3(%rip), %rsi
	movq	%r12, %rdi
	call	__isoc99_sscanf@PLT
	cmpl	$2, %eax
	jne	.L1
	imulq	$100000000, 24(%rsp), %rax
	addq	32(%rsp), %rax
	addl	$1, %ebx
	leaq	(%rax,%rax,8), %rdx
	leaq	(%rax,%rdx,2), %rax
	leaq	0(%rbp,%rax,2), %rbp
	cmpl	%ebx, 20(%rsp)
	jle	.L24
.L9:
	xorl	%eax, %eax
	movq	%r14, %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L1
	cmpb	$74, 40(%rsp)
	jne	.L5
	xorl	%eax, %eax
	movq	%r15, %rdx
	leaq	.LC2(%rip), %rsi
	movq	%r12, %rdi
	call	__isoc99_sscanf@PLT
	cmpl	$1, %eax
	jne	.L25
	imulq	$10000, 32(%rsp), %rax
	addl	$1, %ebx
	addq	%rax, %rbp
	cmpl	%ebx, 20(%rsp)
	jg	.L9
.L24:
	testq	%rbp, %rbp
	jns	.L19
	movq	%rbp, %rax
	andl	$1, %ebp
	pxor	%xmm0, %xmm0
	shrq	%rax
	orq	%rbp, %rax
	cvtsi2sdq	%rax, %xmm0
	addsd	%xmm0, %xmm0
	jmp	.L12
.L19:
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rbp, %xmm0
.L12:
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	divsd	.LC4(%rip), %xmm0
	call	__printf_chk@PLT
	movl	$0, 12(%rsp)
	jmp	.L1
.L25:
	movl	$2, 12(%rsp)
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	0
	.long	1086556160
	.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:
```