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 i,j,n, c[6] = {0};
	double h[40];

	scanf("%d",&n);
	for (i = 0; i < n; i++) {
		scanf("%lf", &h[i]);

		if (h[i] < 165.0)
			c[0]++;
		else if (h[i] >= 165.0 && h[i] < 170.0)
			c[1]++;
		else if (h[i] >= 170.0 && h[i] < 175.0)
			c[2]++;
		else if (h[i] >= 175.0 && h[i] < 180.0)
			c[3]++;
		else if (h[i] >= 180.0 && h[i] < 185.0)
			c[4]++;
		else
			c[5]++;
	}
	for (i = 0; i < 6; i++) {
		printf("%d:",i+1);
		for (j = 0; j < c[i]; j++)
			printf("*");
		printf("\n");
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC7:
	.string	"%d:"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$384, %rsp
	.cfi_def_cfa_offset 432
	movq	%fs:40, %rax
	movq	%rax, 376(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movq	$0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L38:
	addl	$1, 16(%rsp)
.L5:
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 12(%rsp)
	jle	.L2
.L18:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movsd	(%rbx), %xmm0
	movsd	.LC2(%rip), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L38
	comisd	.LC2(%rip), %xmm0
	movsd	.LC3(%rip), %xmm1
	jb	.L6
	comisd	%xmm0, %xmm1
	jbe	.L6
	addl	$1, 20(%rsp)
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 12(%rsp)
	jg	.L18
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$1, %r12d
	leaq	.LC7(%rip), %r14
	leaq	16(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%r12d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	-4(%r13,%r12,4), %ebp
	testl	%ebp, %ebp
	jle	.L19
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$42, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, %ebp
	jne	.L20
.L19:
	movl	$10, %edi
	addq	$1, %r12
	call	putchar@PLT
	cmpq	$7, %r12
	jne	.L21
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$384, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	comisd	%xmm1, %xmm0
	jnb	.L26
	movsd	.LC4(%rip), %xmm1
.L9:
	comisd	%xmm1, %xmm0
	movq	.LC5(%rip), %rax
	movq	%rax, %xmm1
	jb	.L12
	comisd	%xmm0, %xmm1
	jbe	.L12
	addl	$1, 28(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	comisd	%xmm1, %xmm0
	jb	.L15
	movsd	.LC6(%rip), %xmm5
	comisd	%xmm0, %xmm5
	jbe	.L15
	addl	$1, 32(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, 36(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	movq	.LC4(%rip), %rax
	movq	%rax, %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L9
	addl	$1, 24(%rsp)
	jmp	.L5
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1080336384
	.align 8
.LC3:
	.long	0
	.long	1080377344
	.align 8
.LC4:
	.long	0
	.long	1080418304
	.align 8
.LC5:
	.long	0
	.long	1080459264
	.align 8
.LC6:
	.long	0
	.long	1080500224
	.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	"%lf"
.LC7:
	.string	"%d:"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$384, %rsp
	.cfi_def_cfa_offset 432
	movq	%fs:40, %rax
	movq	%rax, 376(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movq	$0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L38:
	addl	$1, 16(%rsp)
.L5:
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 12(%rsp)
	jle	.L2
.L18:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movsd	(%rbx), %xmm0
	movsd	.LC2(%rip), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L38
	comisd	.LC2(%rip), %xmm0
	movsd	.LC3(%rip), %xmm1
	jb	.L6
	comisd	%xmm0, %xmm1
	jbe	.L6
	addl	$1, 20(%rsp)
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 12(%rsp)
	jg	.L18
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$1, %r12d
	leaq	.LC7(%rip), %r14
	leaq	16(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%r12d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	-4(%r13,%r12,4), %ebp
	testl	%ebp, %ebp
	jle	.L19
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$42, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, %ebp
	jne	.L20
.L19:
	movl	$10, %edi
	addq	$1, %r12
	call	putchar@PLT
	cmpq	$7, %r12
	jne	.L21
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$384, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	comisd	%xmm1, %xmm0
	jnb	.L26
	movsd	.LC4(%rip), %xmm1
.L9:
	comisd	%xmm1, %xmm0
	movq	.LC5(%rip), %rax
	movq	%rax, %xmm1
	jb	.L12
	comisd	%xmm0, %xmm1
	jbe	.L12
	addl	$1, 28(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	comisd	%xmm1, %xmm0
	jb	.L15
	movsd	.LC6(%rip), %xmm5
	comisd	%xmm0, %xmm5
	jbe	.L15
	addl	$1, 32(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, 36(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	movq	.LC4(%rip), %rax
	movq	%rax, %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L9
	addl	$1, 24(%rsp)
	jmp	.L5
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1080336384
	.align 8
.LC3:
	.long	0
	.long	1080377344
	.align 8
.LC4:
	.long	0
	.long	1080418304
	.align 8
.LC5:
	.long	0
	.long	1080459264
	.align 8
.LC6:
	.long	0
	.long	1080500224
	.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	"%lf"
.LC7:
	.string	"%d:"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$384, %rsp
	.cfi_def_cfa_offset 432
	movq	%fs:40, %rax
	movq	%rax, 376(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movq	$0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L38:
	addl	$1, 16(%rsp)
.L5:
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 12(%rsp)
	jle	.L2
.L18:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movsd	(%rbx), %xmm0
	movsd	.LC2(%rip), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L38
	comisd	.LC2(%rip), %xmm0
	movsd	.LC3(%rip), %xmm1
	jb	.L6
	comisd	%xmm0, %xmm1
	jbe	.L6
	addl	$1, 20(%rsp)
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 12(%rsp)
	jg	.L18
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$1, %r12d
	leaq	.LC7(%rip), %r14
	leaq	16(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%r12d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	-4(%r13,%r12,4), %ebp
	testl	%ebp, %ebp
	jle	.L19
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$42, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, %ebp
	jne	.L20
.L19:
	movl	$10, %edi
	addq	$1, %r12
	call	putchar@PLT
	cmpq	$7, %r12
	jne	.L21
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$384, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	comisd	%xmm1, %xmm0
	jnb	.L26
	movsd	.LC4(%rip), %xmm1
.L9:
	comisd	%xmm1, %xmm0
	movq	.LC5(%rip), %rax
	movq	%rax, %xmm1
	jb	.L12
	comisd	%xmm0, %xmm1
	jbe	.L12
	addl	$1, 28(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	comisd	%xmm1, %xmm0
	jb	.L15
	movsd	.LC6(%rip), %xmm5
	comisd	%xmm0, %xmm5
	jbe	.L15
	addl	$1, 32(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, 36(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	movq	.LC4(%rip), %rax
	movq	%rax, %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L9
	addl	$1, 24(%rsp)
	jmp	.L5
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1080336384
	.align 8
.LC3:
	.long	0
	.long	1080377344
	.align 8
.LC4:
	.long	0
	.long	1080418304
	.align 8
.LC5:
	.long	0
	.long	1080459264
	.align 8
.LC6:
	.long	0
	.long	1080500224
	.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 i,j,n, c[6] = {0};
	double h[40];

	scanf("%d",&n);
	for (i = 0; i < n; i++) {
		scanf("%lf", &h[i]);

		if (h[i] < 165.0)
			c[0]++;
		else if (h[i] >= 165.0 && h[i] < 170.0)
			c[1]++;
		else if (h[i] >= 170.0 && h[i] < 175.0)
			c[2]++;
		else if (h[i] >= 175.0 && h[i] < 180.0)
			c[3]++;
		else if (h[i] >= 180.0 && h[i] < 185.0)
			c[4]++;
		else
			c[5]++;
	}
	for (i = 0; i < 6; i++) {
		printf("%d:",i+1);
		for (j = 0; j < c[i]; j++)
			printf("*");
		printf("\n");
	}
	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 i,j,n, c[6] = {0};
	double h[40];

	scanf("%d",&n);
	for (i = 0; i < n; i++) {
		scanf("%lf", &h[i]);

		if (h[i] < 165.0)
			c[0]++;
		else if (h[i] >= 165.0 && h[i] < 170.0)
			c[1]++;
		else if (h[i] >= 170.0 && h[i] < 175.0)
			c[2]++;
		else if (h[i] >= 175.0 && h[i] < 180.0)
			c[3]++;
		else if (h[i] >= 180.0 && h[i] < 185.0)
			c[4]++;
		else
			c[5]++;
	}
	for (i = 0; i < 6; i++) {
		printf("%d:",i+1);
		for (j = 0; j < c[i]; j++)
			printf("*");
		printf("\n");
	}
	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:

4
180.3
168.42932428490565
165.5
175.3
 21
180.11768905370886
171.5
156.6
173.0
169.4
181.2
172.4
170.0
163.6
165.9
173.5
168.2
162.5
172.0
175.1
172.3
167.5
175.9
186.2
168.0
178.6
 4
181.18433876305002
170.39693722948385
166.4360577935364
175.91022475280127
 21
180.76994722892775
171.5
156.6
174.10655592841871
169.4
181.2
172.4
170.0
163.6
167.65281188168532
175.28081347921966
168.51173370867775
162.5
172.0
175.1
172.3
167.5
176.42167691499978
186.2
168.0
178.6
 21
180.76994722892775
172.14005499467143
156.6
174.2398386835892
170.3704401327679
181.62299381350638
172.4
170.0
163.82005098261095
167.65281188168532
175.28081347921966
169.48159755867619
162.5
172.0
175.9052617275492
173.35493340870184
167.50879258252357
176.42167691499978
186.2
168.0
179.33405379113478
 4
184.5675474968178
172.0731721880196
170.25357436206482
177.33733362116456
 4
185.1886327803251
172.0731721880196
170.25357436206482
178.58071356182316
 4
185.1886327803251
172.97453109161933
171.40515198896472
180.0524415225808
 4
185.4896572821238
175.28984893984995
172.89728286072392
180.0524415225808
 4
186.487152384495
176.25755947274573
175.0305181428357
181.06399491806826

1:
2:**
3:
4:*
5:*
6:
 1:***
2:*****
3:*******
4:***
5:**
6:*
 1:
2:*
3:*
4:*
5:*
6:
 1:***
2:*****
3:******
4:****
5:**
6:*
 1:***
2:****
3:*******
4:****
5:**
6:*
 1:
2:
3:**
4:*
5:*
6:
 1:
2:
3:**
4:*
5:
6:*
 1:
2:
3:**
4:
5:*
6:*
 1:
2:
3:*
4:*
5:*
6:*
 1:
2:
3:
4:**
5:*
6:*

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 i,j,n, c[6] = {0};
	double h[40];

	scanf("%d",&n);
	for (i = 0; i < n; i++) {
		scanf("%lf", &h[i]);

		if (h[i] < 165.0)
			c[0]++;
		else if (h[i] >= 165.0 && h[i] < 170.0)
			c[1]++;
		else if (h[i] >= 170.0 && h[i] < 175.0)
			c[2]++;
		else if (h[i] >= 175.0 && h[i] < 180.0)
			c[3]++;
		else if (h[i] >= 180.0 && h[i] < 185.0)
			c[4]++;
		else
			c[5]++;
	}
	for (i = 0; i < 6; i++) {
		printf("%d:",i+1);
		for (j = 0; j < c[i]; j++)
			printf("*");
		printf("\n");
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC7:
	.string	"%d:"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$384, %rsp
	.cfi_def_cfa_offset 432
	movq	%fs:40, %rax
	movq	%rax, 376(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movq	$0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L38:
	addl	$1, 16(%rsp)
.L5:
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 12(%rsp)
	jle	.L2
.L18:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movsd	(%rbx), %xmm0
	movsd	.LC2(%rip), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L38
	comisd	.LC2(%rip), %xmm0
	movsd	.LC3(%rip), %xmm1
	jb	.L6
	comisd	%xmm0, %xmm1
	jbe	.L6
	addl	$1, 20(%rsp)
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 12(%rsp)
	jg	.L18
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$1, %r12d
	leaq	.LC7(%rip), %r14
	leaq	16(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%r12d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	-4(%r13,%r12,4), %ebp
	testl	%ebp, %ebp
	jle	.L19
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$42, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, %ebp
	jne	.L20
.L19:
	movl	$10, %edi
	addq	$1, %r12
	call	putchar@PLT
	cmpq	$7, %r12
	jne	.L21
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$384, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	comisd	%xmm1, %xmm0
	jnb	.L26
	movsd	.LC4(%rip), %xmm1
.L9:
	comisd	%xmm1, %xmm0
	movq	.LC5(%rip), %rax
	movq	%rax, %xmm1
	jb	.L12
	comisd	%xmm0, %xmm1
	jbe	.L12
	addl	$1, 28(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	comisd	%xmm1, %xmm0
	jb	.L15
	movsd	.LC6(%rip), %xmm5
	comisd	%xmm0, %xmm5
	jbe	.L15
	addl	$1, 32(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, 36(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	movq	.LC4(%rip), %rax
	movq	%rax, %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L9
	addl	$1, 24(%rsp)
	jmp	.L5
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1080336384
	.align 8
.LC3:
	.long	0
	.long	1080377344
	.align 8
.LC4:
	.long	0
	.long	1080418304
	.align 8
.LC5:
	.long	0
	.long	1080459264
	.align 8
.LC6:
	.long	0
	.long	1080500224
	.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	"%lf"
.LC7:
	.string	"%d:"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$384, %rsp
	.cfi_def_cfa_offset 432
	movq	%fs:40, %rax
	movq	%rax, 376(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movq	$0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L38:
	addl	$1, 16(%rsp)
.L5:
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 12(%rsp)
	jle	.L2
.L18:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	movsd	(%rbx), %xmm0
	movsd	.LC2(%rip), %xmm2
	comisd	%xmm0, %xmm2
	ja	.L38
	comisd	.LC2(%rip), %xmm0
	movsd	.LC3(%rip), %xmm1
	jb	.L6
	comisd	%xmm0, %xmm1
	jbe	.L6
	addl	$1, 20(%rsp)
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, 12(%rsp)
	jg	.L18
	.p2align 4,,10
	.p2align 3
.L2:
	movl	$1, %r12d
	leaq	.LC7(%rip), %r14
	leaq	16(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%r12d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	-4(%r13,%r12,4), %ebp
	testl	%ebp, %ebp
	jle	.L19
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$42, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, %ebp
	jne	.L20
.L19:
	movl	$10, %edi
	addq	$1, %r12
	call	putchar@PLT
	cmpq	$7, %r12
	jne	.L21
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	addq	$384, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	comisd	%xmm1, %xmm0
	jnb	.L26
	movsd	.LC4(%rip), %xmm1
.L9:
	comisd	%xmm1, %xmm0
	movq	.LC5(%rip), %rax
	movq	%rax, %xmm1
	jb	.L12
	comisd	%xmm0, %xmm1
	jbe	.L12
	addl	$1, 28(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	comisd	%xmm1, %xmm0
	jb	.L15
	movsd	.LC6(%rip), %xmm5
	comisd	%xmm0, %xmm5
	jbe	.L15
	addl	$1, 32(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, 36(%rsp)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	movq	.LC4(%rip), %rax
	movq	%rax, %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L9
	addl	$1, 24(%rsp)
	jmp	.L5
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1080336384
	.align 8
.LC3:
	.long	0
	.long	1080377344
	.align 8
.LC4:
	.long	0
	.long	1080418304
	.align 8
.LC5:
	.long	0
	.long	1080459264
	.align 8
.LC6:
	.long	0
	.long	1080500224
	.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:
```