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

```c
#include <stdio.h>

int main(void)
{
	int n;
	double stu[40];
	int i, j = 0;
	int rank[7];
	
	for (i = 1; i < 7; i++){
		rank[i] = 0;
	}
	
	scanf("%d", &n);
	
	for (i = 1; i <= n; i++){
		scanf("%lf",&stu[i]);
	}
	
	for (i = 1; i <= n; i++){
		if (stu[i] >= 185){
			rank[6]++;
		}
		else if (stu[i] >= 180){
			rank[5]++;
		}
		else if (stu[i] >= 175){
			rank[4]++;
		}
		else if (stu[i] >= 170){
			rank[3]++;
		}
		else if (stu[i] >= 165){
			rank[2]++;
		}
		else if (stu[i] < 165){
			rank[1]++;
		}
	}
	for (i = 1; i <= 6; i++){
		printf("%d:", i);
		for (j = 1; j <= rank[i]; j++){
			printf("*");
		}
		printf("\n");
	}
	
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC7:
	.string	"%d:"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$384, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -372(%rbp)
	movl	$1, -376(%rbp)
	jmp	.L2
.L3:
	movl	-376(%rbp), %eax
	cltq
	movl	$0, -368(%rbp,%rax,4)
	addl	$1, -376(%rbp)
.L2:
	cmpl	$6, -376(%rbp)
	jle	.L3
	leaq	-380(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -376(%rbp)
	jmp	.L4
.L5:
	leaq	-336(%rbp), %rdx
	movl	-376(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -376(%rbp)
.L4:
	movl	-380(%rbp), %eax
	cmpl	%eax, -376(%rbp)
	jle	.L5
	movl	$1, -376(%rbp)
	jmp	.L6
.L19:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC2(%rip), %xmm0
	jb	.L32
	movl	-344(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -344(%rbp)
	jmp	.L9
.L32:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC3(%rip), %xmm0
	jb	.L33
	movl	-348(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -348(%rbp)
	jmp	.L9
.L33:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC4(%rip), %xmm0
	jb	.L34
	movl	-352(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -352(%rbp)
	jmp	.L9
.L34:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC5(%rip), %xmm0
	jb	.L35
	movl	-356(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -356(%rbp)
	jmp	.L9
.L35:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC6(%rip), %xmm0
	jb	.L36
	movl	-360(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -360(%rbp)
	jmp	.L9
.L36:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm1
	movsd	.LC6(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L9
	movl	-364(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -364(%rbp)
.L9:
	addl	$1, -376(%rbp)
.L6:
	movl	-380(%rbp), %eax
	cmpl	%eax, -376(%rbp)
	jle	.L19
	movl	$1, -376(%rbp)
	jmp	.L20
.L23:
	movl	-376(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -372(%rbp)
	jmp	.L21
.L22:
	movl	$42, %edi
	call	putchar@PLT
	addl	$1, -372(%rbp)
.L21:
	movl	-376(%rbp), %eax
	cltq
	movl	-368(%rbp,%rax,4), %eax
	cmpl	%eax, -372(%rbp)
	jle	.L22
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -376(%rbp)
.L20:
	cmpl	$6, -376(%rbp)
	jle	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1080500224
	.align 8
.LC3:
	.long	0
	.long	1080459264
	.align 8
.LC4:
	.long	0
	.long	1080418304
	.align 8
.LC5:
	.long	0
	.long	1080377344
	.align 8
.LC6:
	.long	0
	.long	1080336384
	.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.
user
	.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
	movups	%xmm0, 20(%rsp)
	movq	$0, 36(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	leaq	56(%rsp), %rbx
	movl	$1, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$8, %r12
	cmpl	%ebp, %eax
	jge	.L4
	testl	%eax, %eax
	jle	.L3
	subl	$1, %eax
	movsd	.LC2(%rip), %xmm1
	xorl	%r11d, %r11d
	xorl	%ebp, %ebp
	leaq	64(%rsp,%rax,8), %rdx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movsd	.LC3(%rip), %xmm2
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	movsd	.LC4(%rip), %xmm3
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L68:
	addl	$1, %eax
	movl	$1, %ecx
.L8:
	addq	$8, %rbx
	cmpq	%rdx, %rbx
	je	.L67
.L18:
	movsd	(%rbx), %xmm0
	comisd	%xmm1, %xmm0
	jnb	.L68
	comisd	%xmm2, %xmm0
	jb	.L60
	addq	$8, %rbx
	addl	$1, %esi
	movl	$1, %edi
	cmpq	%rdx, %rbx
	jne	.L18
.L67:
	testb	%r11b, %r11b
	jne	.L69
.L19:
	testb	%r13b, %r13b
	jne	.L70
.L20:
	testb	%bpl, %bpl
	je	.L21
	movl	%r10d, 28(%rsp)
.L21:
	testb	%r9b, %r9b
	je	.L22
	movl	%r8d, 32(%rsp)
.L22:
	testb	%dil, %dil
	je	.L23
	movl	%esi, 36(%rsp)
.L23:
	testb	%cl, %cl
	je	.L3
	movl	%eax, 40(%rsp)
.L3:
	movl	$1, %r12d
	leaq	.LC7(%rip), %r14
	leaq	16(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%r12d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	0(%r13,%r12,4), %ebp
	movl	$1, %ebx
	testl	%ebp, %ebp
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L24:
	movl	$42, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, %ebp
	jge	.L24
.L27:
	movl	$10, %edi
	addq	$1, %r12
	call	putchar@PLT
	cmpq	$7, %r12
	jne	.L25
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L71
	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
.L60:
	.cfi_restore_state
	comisd	%xmm3, %xmm0
	jb	.L61
	addl	$1, %r8d
	movl	$1, %r9d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L61:
	comisd	.LC5(%rip), %xmm0
	jb	.L62
	addl	$1, %r10d
	movl	$1, %ebp
	jmp	.L8
.L62:
	comisd	.LC6(%rip), %xmm0
	jb	.L63
	addl	$1, %r12d
	movl	$1, %r13d
	jmp	.L8
.L63:
	movsd	.LC6(%rip), %xmm4
	comisd	%xmm0, %xmm4
	jbe	.L8
	addl	$1, %r14d
	movl	$1, %r11d
	jmp	.L8
.L69:
	movl	%r14d, 20(%rsp)
	jmp	.L19
.L70:
	movl	%r12d, 24(%rsp)
	jmp	.L20
.L71:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1080500224
	.align 8
.LC3:
	.long	0
	.long	1080459264
	.align 8
.LC4:
	.long	0
	.long	1080418304
	.align 8
.LC5:
	.long	0
	.long	1080377344
	.align 8
.LC6:
	.long	0
	.long	1080336384
	.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
	.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
	movups	%xmm0, 20(%rsp)
	movq	$0, 36(%rsp)
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	leaq	56(%rsp), %rbx
	movl	$1, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$8, %r12
	cmpl	%ebp, %eax
	jge	.L4
	testl	%eax, %eax
	jle	.L3
	subl	$1, %eax
	movsd	.LC2(%rip), %xmm1
	xorl	%r11d, %r11d
	xorl	%ebp, %ebp
	leaq	64(%rsp,%rax,8), %rdx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movsd	.LC3(%rip), %xmm2
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	movsd	.LC4(%rip), %xmm3
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L68:
	addl	$1, %eax
	movl	$1, %ecx
.L8:
	addq	$8, %rbx
	cmpq	%rdx, %rbx
	je	.L67
.L18:
	movsd	(%rbx), %xmm0
	comisd	%xmm1, %xmm0
	jnb	.L68
	comisd	%xmm2, %xmm0
	jb	.L60
	addq	$8, %rbx
	addl	$1, %esi
	movl	$1, %edi
	cmpq	%rdx, %rbx
	jne	.L18
.L67:
	testb	%r11b, %r11b
	jne	.L69
.L19:
	testb	%r13b, %r13b
	jne	.L70
.L20:
	testb	%bpl, %bpl
	je	.L21
	movl	%r10d, 28(%rsp)
.L21:
	testb	%r9b, %r9b
	je	.L22
	movl	%r8d, 32(%rsp)
.L22:
	testb	%dil, %dil
	je	.L23
	movl	%esi, 36(%rsp)
.L23:
	testb	%cl, %cl
	je	.L3
	movl	%eax, 40(%rsp)
.L3:
	movl	$1, %r12d
	leaq	.LC7(%rip), %r14
	leaq	16(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%r12d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	0(%r13,%r12,4), %ebp
	movl	$1, %ebx
	testl	%ebp, %ebp
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L24:
	movl	$42, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, %ebp
	jge	.L24
.L27:
	movl	$10, %edi
	addq	$1, %r12
	call	putchar@PLT
	cmpq	$7, %r12
	jne	.L25
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L71
	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
.L60:
	.cfi_restore_state
	comisd	%xmm3, %xmm0
	jb	.L61
	addl	$1, %r8d
	movl	$1, %r9d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L61:
	comisd	.LC5(%rip), %xmm0
	jb	.L62
	addl	$1, %r10d
	movl	$1, %ebp
	jmp	.L8
.L62:
	comisd	.LC6(%rip), %xmm0
	jb	.L63
	addl	$1, %r12d
	movl	$1, %r13d
	jmp	.L8
.L63:
	movsd	.LC6(%rip), %xmm4
	comisd	%xmm0, %xmm4
	jbe	.L8
	addl	$1, %r14d
	movl	$1, %r11d
	jmp	.L8
.L69:
	movl	%r14d, 20(%rsp)
	jmp	.L19
.L70:
	movl	%r12d, 24(%rsp)
	jmp	.L20
.L71:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1080500224
	.align 8
.LC3:
	.long	0
	.long	1080459264
	.align 8
.LC4:
	.long	0
	.long	1080418304
	.align 8
.LC5:
	.long	0
	.long	1080377344
	.align 8
.LC6:
	.long	0
	.long	1080336384
	.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:

#include <stdio.h>

int main(void)
{
	int n;
	double stu[40];
	int i, j = 0;
	int rank[7];
	
	for (i = 1; i < 7; i++){
		rank[i] = 0;
	}
	
	scanf("%d", &n);
	
	for (i = 1; i <= n; i++){
		scanf("%lf",&stu[i]);
	}
	
	for (i = 1; i <= n; i++){
		if (stu[i] >= 185){
			rank[6]++;
		}
		else if (stu[i] >= 180){
			rank[5]++;
		}
		else if (stu[i] >= 175){
			rank[4]++;
		}
		else if (stu[i] >= 170){
			rank[3]++;
		}
		else if (stu[i] >= 165){
			rank[2]++;
		}
		else if (stu[i] < 165){
			rank[1]++;
		}
	}
	for (i = 1; i <= 6; i++){
		printf("%d:", i);
		for (j = 1; j <= rank[i]; j++){
			printf("*");
		}
		printf("\n");
	}
	
	return (0);
}
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 unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void)
{
	int n;
	double stu[40];
	int i, j = 0;
	int rank[7];
	
	for (i = 1; i < 7; i++){
		rank[i] = 0;
	}
	
	scanf("%d", &n);
	
	for (i = 1; i <= n; i++){
		scanf("%lf",&stu[i]);
	}
	
	for (i = 1; i <= n; i++){
		if (stu[i] >= 185){
			rank[6]++;
		}
		else if (stu[i] >= 180){
			rank[5]++;
		}
		else if (stu[i] >= 175){
			rank[4]++;
		}
		else if (stu[i] >= 170){
			rank[3]++;
		}
		else if (stu[i] >= 165){
			rank[2]++;
		}
		else if (stu[i] < 165){
			rank[1]++;
		}
	}
	for (i = 1; i <= 6; i++){
		printf("%d:", i);
		for (j = 1; j <= rank[i]; j++){
			printf("*");
		}
		printf("\n");
	}
	
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC7:
	.string	"%d:"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$384, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -372(%rbp)
	movl	$1, -376(%rbp)
	jmp	.L2
.L3:
	movl	-376(%rbp), %eax
	cltq
	movl	$0, -368(%rbp,%rax,4)
	addl	$1, -376(%rbp)
.L2:
	cmpl	$6, -376(%rbp)
	jle	.L3
	leaq	-380(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -376(%rbp)
	jmp	.L4
.L5:
	leaq	-336(%rbp), %rdx
	movl	-376(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -376(%rbp)
.L4:
	movl	-380(%rbp), %eax
	cmpl	%eax, -376(%rbp)
	jle	.L5
	movl	$1, -376(%rbp)
	jmp	.L6
.L19:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC2(%rip), %xmm0
	jb	.L32
	movl	-344(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -344(%rbp)
	jmp	.L9
.L32:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC3(%rip), %xmm0
	jb	.L33
	movl	-348(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -348(%rbp)
	jmp	.L9
.L33:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC4(%rip), %xmm0
	jb	.L34
	movl	-352(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -352(%rbp)
	jmp	.L9
.L34:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC5(%rip), %xmm0
	jb	.L35
	movl	-356(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -356(%rbp)
	jmp	.L9
.L35:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC6(%rip), %xmm0
	jb	.L36
	movl	-360(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -360(%rbp)
	jmp	.L9
.L36:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm1
	movsd	.LC6(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L9
	movl	-364(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -364(%rbp)
.L9:
	addl	$1, -376(%rbp)
.L6:
	movl	-380(%rbp), %eax
	cmpl	%eax, -376(%rbp)
	jle	.L19
	movl	$1, -376(%rbp)
	jmp	.L20
.L23:
	movl	-376(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -372(%rbp)
	jmp	.L21
.L22:
	movl	$42, %edi
	call	putchar@PLT
	addl	$1, -372(%rbp)
.L21:
	movl	-376(%rbp), %eax
	cltq
	movl	-368(%rbp,%rax,4), %eax
	cmpl	%eax, -372(%rbp)
	jle	.L22
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -376(%rbp)
.L20:
	cmpl	$6, -376(%rbp)
	jle	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1080500224
	.align 8
.LC3:
	.long	0
	.long	1080459264
	.align 8
.LC4:
	.long	0
	.long	1080418304
	.align 8
.LC5:
	.long	0
	.long	1080377344
	.align 8
.LC6:
	.long	0
	.long	1080336384
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC7:
	.string	"%d:"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$384, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -372(%rbp)
	movl	$1, -376(%rbp)
	jmp	.L2
.L3:
	movl	-376(%rbp), %eax
	cltq
	movl	$0, -368(%rbp,%rax,4)
	addl	$1, -376(%rbp)
.L2:
	cmpl	$6, -376(%rbp)
	jle	.L3
	leaq	-380(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -376(%rbp)
	jmp	.L4
.L5:
	leaq	-336(%rbp), %rdx
	movl	-376(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -376(%rbp)
.L4:
	movl	-380(%rbp), %eax
	cmpl	%eax, -376(%rbp)
	jle	.L5
	movl	$1, -376(%rbp)
	jmp	.L6
.L19:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC2(%rip), %xmm0
	jb	.L32
	movl	-344(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -344(%rbp)
	jmp	.L9
.L32:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC3(%rip), %xmm0
	jb	.L33
	movl	-348(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -348(%rbp)
	jmp	.L9
.L33:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC4(%rip), %xmm0
	jb	.L34
	movl	-352(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -352(%rbp)
	jmp	.L9
.L34:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC5(%rip), %xmm0
	jb	.L35
	movl	-356(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -356(%rbp)
	jmp	.L9
.L35:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm0
	comisd	.LC6(%rip), %xmm0
	jb	.L36
	movl	-360(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -360(%rbp)
	jmp	.L9
.L36:
	movl	-376(%rbp), %eax
	cltq
	movsd	-336(%rbp,%rax,8), %xmm1
	movsd	.LC6(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L9
	movl	-364(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -364(%rbp)
.L9:
	addl	$1, -376(%rbp)
.L6:
	movl	-380(%rbp), %eax
	cmpl	%eax, -376(%rbp)
	jle	.L19
	movl	$1, -376(%rbp)
	jmp	.L20
.L23:
	movl	-376(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -372(%rbp)
	jmp	.L21
.L22:
	movl	$42, %edi
	call	putchar@PLT
	addl	$1, -372(%rbp)
.L21:
	movl	-376(%rbp), %eax
	cltq
	movl	-368(%rbp,%rax,4), %eax
	cmpl	%eax, -372(%rbp)
	jle	.L22
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -376(%rbp)
.L20:
	cmpl	$6, -376(%rbp)
	jle	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1080500224
	.align 8
.LC3:
	.long	0
	.long	1080459264
	.align 8
.LC4:
	.long	0
	.long	1080418304
	.align 8
.LC5:
	.long	0
	.long	1080377344
	.align 8
.LC6:
	.long	0
	.long	1080336384
	.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:
