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 n,x,y,h,w,s,s1,s2,a,i;
  int m[]={600,800,1000,1200,1400,1600,0};
  while(1){
    scanf("%d",&n);
    if(n==0)break;
    a=0;
    for(i=0;i<n;i++){
      scanf("%d %d %d %d",&x,&y,&h,&w);
      if     (x+y+h>160)s1=6;
      else if(x+y+h>140)s1=5;
      else if(x+y+h>120)s1=4;
      else if(x+y+h>100)s1=3;
      else if(x+y+h> 80)s1=2;
      else if(x+y+h> 60)s1=1;
      else              s1=0;
      if     (w>25)s2=6;
      else if(w>20)s2=5;
      else if(w>15)s2=4;
      else if(w>10)s2=3;
      else if(w>5 )s2=2;
      else if(w>2 )s2=1;
      else         s2=0;
      if(s1>s2)s=s1;
      else     s=s2;
      a+=m[s];
    }
    printf("%d\n",a);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d %d %d"
.LC4:
	.string	"%d\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
	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	$104, %rsp
	.cfi_def_cfa_offset 160
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	.LC1(%rip), %rax
	movl	$0, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	movq	%rax, 64(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	jle	.L9
	xorl	%r15d, %r15d
	leaq	44(%rsp), %r14
	leaq	40(%rsp), %r12
	xorl	%r13d, %r13d
	leaq	36(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rdx
	movq	%r14, %r8
	movq	%r12, %rcx
	movq	%rbx, %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %edx
	addl	32(%rsp), %edx
	movl	$6, %eax
	addl	40(%rsp), %edx
	cmpl	$160, %edx
	jg	.L4
	movl	$5, %eax
	cmpl	$140, %edx
	jg	.L4
	movl	$4, %eax
	cmpl	$120, %edx
	jg	.L4
	movl	$3, %eax
	cmpl	$100, %edx
	jg	.L4
	movl	$2, %eax
	cmpl	$80, %edx
	jg	.L4
	xorl	%eax, %eax
	cmpl	$60, %edx
	setg	%al
	.p2align 4,,10
	.p2align 3
.L4:
	movl	44(%rsp), %ecx
	movl	$6, %edx
	cmpl	$25, %ecx
	jg	.L5
	movl	$5, %edx
	cmpl	$20, %ecx
	jg	.L5
	movl	$4, %edx
	cmpl	$15, %ecx
	jg	.L5
	movl	$3, %edx
	cmpl	$10, %ecx
	jg	.L5
	movl	$2, %edx
	cmpl	$5, %ecx
	jg	.L5
	xorl	%edx, %edx
	cmpl	$2, %ecx
	setg	%dl
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	%edx, %eax
	cmovl	%rdx, %rax
	addl	$1, %r15d
	addl	48(%rsp,%rax,4), %r13d
	cmpl	%r15d, 28(%rsp)
	jg	.L6
.L3:
	movl	%r13d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xorl	%r13d, %r13d
	jmp	.L3
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	600
	.long	800
	.long	1000
	.long	1200
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	1400
	.long	1600
	.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
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d %d %d"
.LC4:
	.string	"%d\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
	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	$104, %rsp
	.cfi_def_cfa_offset 160
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	.LC1(%rip), %rax
	movl	$0, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	movq	%rax, 64(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	jle	.L9
	xorl	%r15d, %r15d
	leaq	44(%rsp), %r14
	leaq	40(%rsp), %r12
	xorl	%r13d, %r13d
	leaq	36(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rdx
	movq	%r14, %r8
	movq	%r12, %rcx
	movq	%rbx, %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %edx
	addl	32(%rsp), %edx
	movl	$6, %eax
	addl	40(%rsp), %edx
	cmpl	$160, %edx
	jg	.L4
	movl	$5, %eax
	cmpl	$140, %edx
	jg	.L4
	movl	$4, %eax
	cmpl	$120, %edx
	jg	.L4
	movl	$3, %eax
	cmpl	$100, %edx
	jg	.L4
	movl	$2, %eax
	cmpl	$80, %edx
	jg	.L4
	xorl	%eax, %eax
	cmpl	$60, %edx
	setg	%al
	.p2align 4,,10
	.p2align 3
.L4:
	movl	44(%rsp), %ecx
	movl	$6, %edx
	cmpl	$25, %ecx
	jg	.L5
	movl	$5, %edx
	cmpl	$20, %ecx
	jg	.L5
	movl	$4, %edx
	cmpl	$15, %ecx
	jg	.L5
	movl	$3, %edx
	cmpl	$10, %ecx
	jg	.L5
	movl	$2, %edx
	cmpl	$5, %ecx
	jg	.L5
	xorl	%edx, %edx
	cmpl	$2, %ecx
	setg	%dl
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	%edx, %eax
	cmovl	%rdx, %rax
	addl	$1, %r15d
	addl	48(%rsp,%rax,4), %r13d
	cmpl	%r15d, 28(%rsp)
	jg	.L6
.L3:
	movl	%r13d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xorl	%r13d, %r13d
	jmp	.L3
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	600
	.long	800
	.long	1000
	.long	1200
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	1400
	.long	1600
	.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
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d %d %d"
.LC4:
	.string	"%d\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
	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	$104, %rsp
	.cfi_def_cfa_offset 160
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	.LC1(%rip), %rax
	movl	$0, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	movq	%rax, 64(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	jle	.L9
	xorl	%r15d, %r15d
	leaq	44(%rsp), %r14
	leaq	40(%rsp), %r12
	xorl	%r13d, %r13d
	leaq	36(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rdx
	movq	%r14, %r8
	movq	%r12, %rcx
	movq	%rbx, %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %edx
	addl	32(%rsp), %edx
	movl	$6, %eax
	addl	40(%rsp), %edx
	cmpl	$160, %edx
	jg	.L4
	movl	$5, %eax
	cmpl	$140, %edx
	jg	.L4
	movl	$4, %eax
	cmpl	$120, %edx
	jg	.L4
	movl	$3, %eax
	cmpl	$100, %edx
	jg	.L4
	movl	$2, %eax
	cmpl	$80, %edx
	jg	.L4
	xorl	%eax, %eax
	cmpl	$60, %edx
	setg	%al
	.p2align 4,,10
	.p2align 3
.L4:
	movl	44(%rsp), %ecx
	movl	$6, %edx
	cmpl	$25, %ecx
	jg	.L5
	movl	$5, %edx
	cmpl	$20, %ecx
	jg	.L5
	movl	$4, %edx
	cmpl	$15, %ecx
	jg	.L5
	movl	$3, %edx
	cmpl	$10, %ecx
	jg	.L5
	movl	$2, %edx
	cmpl	$5, %ecx
	jg	.L5
	xorl	%edx, %edx
	cmpl	$2, %ecx
	setg	%dl
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	%edx, %eax
	cmovl	%rdx, %rax
	addl	$1, %r15d
	addl	48(%rsp,%rax,4), %r13d
	cmpl	%r15d, 28(%rsp)
	jg	.L6
.L3:
	movl	%r13d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xorl	%r13d, %r13d
	jmp	.L3
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	600
	.long	800
	.long	1000
	.long	1200
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	1400
	.long	1600
	.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 n,x,y,h,w,s,s1,s2,a,i;
  int m[]={600,800,1000,1200,1400,1600,0};
  while(1){
    scanf("%d",&n);
    if(n==0)break;
    a=0;
    for(i=0;i<n;i++){
      scanf("%d %d %d %d",&x,&y,&h,&w);
      if     (x+y+h>160)s1=6;
      else if(x+y+h>140)s1=5;
      else if(x+y+h>120)s1=4;
      else if(x+y+h>100)s1=3;
      else if(x+y+h> 80)s1=2;
      else if(x+y+h> 60)s1=1;
      else              s1=0;
      if     (w>25)s2=6;
      else if(w>20)s2=5;
      else if(w>15)s2=4;
      else if(w>10)s2=3;
      else if(w>5 )s2=2;
      else if(w>2 )s2=1;
      else         s2=0;
      if(s1>s2)s=s1;
      else     s=s2;
      a+=m[s];
    }
    printf("%d\n",a);
  }
  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 n,x,y,h,w,s,s1,s2,a,i;
  int m[]={600,800,1000,1200,1400,1600,0};
  while(1){
    scanf("%d",&n);
    if(n==0)break;
    a=0;
    for(i=0;i<n;i++){
      scanf("%d %d %d %d",&x,&y,&h,&w);
      if     (x+y+h>160)s1=6;
      else if(x+y+h>140)s1=5;
      else if(x+y+h>120)s1=4;
      else if(x+y+h>100)s1=3;
      else if(x+y+h> 80)s1=2;
      else if(x+y+h> 60)s1=1;
      else              s1=0;
      if     (w>25)s2=6;
      else if(w>20)s2=5;
      else if(w>15)s2=4;
      else if(w>10)s2=3;
      else if(w>5 )s2=2;
      else if(w>2 )s2=1;
      else         s2=0;
      if(s1>s2)s=s1;
      else     s=s2;
      a+=m[s];
    }
    printf("%d\n",a);
  }
  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
50 25 5 5
80 60 10 30
3
10 7 25 24
5 8 12 5
30 30 30 18
0
 2
50 25 5 5
80 60 10 30
3
10 7 25 24
5 8 12 5
30 30 30 3
0
 2
50 25 5 5
135 60 10 30
3
10 7 25 24
5 8 13 5
30 30 30 14
0
 2
50 36 5 5
135 60 8 30
3
10 8 25 24
5 1 13 5
30 30 30 14
0
 2
74 2 5 5
80 82 1 0
0
7 2 0 24
2 -1 12 3
30 30 -1 11
0
 2
74 2 3 5
115 94 1 0
0
7 2 0 24
2 -1 12 3
54 30 -2 11
0
 2
50 34 5 5
80 60 10 30
3
10 15 25 24
5 8 12 5
30 30 30 18
0
 2
50 1 5 2
80 60 10 30
3
10 15 25 24
5 8 12 5
30 30 30 18
0
 2
86 25 5 5
135 60 10 30
3
10 8 25 24
5 8 13 5
30 30 30 14
0
 2
51 1 5 5
80 95 3 30
3
10 15 25 47
2 12 12 3
30 30 30 11
0

800
3800
 800
3400
 800
3600
 1000
3600
 1000
 800
 1000
3800
 600
3800
 1200
3600
 800
2000

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 n,x,y,h,w,s,s1,s2,a,i;
  int m[]={600,800,1000,1200,1400,1600,0};
  while(1){
    scanf("%d",&n);
    if(n==0)break;
    a=0;
    for(i=0;i<n;i++){
      scanf("%d %d %d %d",&x,&y,&h,&w);
      if     (x+y+h>160)s1=6;
      else if(x+y+h>140)s1=5;
      else if(x+y+h>120)s1=4;
      else if(x+y+h>100)s1=3;
      else if(x+y+h> 80)s1=2;
      else if(x+y+h> 60)s1=1;
      else              s1=0;
      if     (w>25)s2=6;
      else if(w>20)s2=5;
      else if(w>15)s2=4;
      else if(w>10)s2=3;
      else if(w>5 )s2=2;
      else if(w>2 )s2=1;
      else         s2=0;
      if(s1>s2)s=s1;
      else     s=s2;
      a+=m[s];
    }
    printf("%d\n",a);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d %d %d"
.LC4:
	.string	"%d\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
	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	$104, %rsp
	.cfi_def_cfa_offset 160
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	.LC1(%rip), %rax
	movl	$0, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	movq	%rax, 64(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	jle	.L9
	xorl	%r15d, %r15d
	leaq	44(%rsp), %r14
	leaq	40(%rsp), %r12
	xorl	%r13d, %r13d
	leaq	36(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rdx
	movq	%r14, %r8
	movq	%r12, %rcx
	movq	%rbx, %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %edx
	addl	32(%rsp), %edx
	movl	$6, %eax
	addl	40(%rsp), %edx
	cmpl	$160, %edx
	jg	.L4
	movl	$5, %eax
	cmpl	$140, %edx
	jg	.L4
	movl	$4, %eax
	cmpl	$120, %edx
	jg	.L4
	movl	$3, %eax
	cmpl	$100, %edx
	jg	.L4
	movl	$2, %eax
	cmpl	$80, %edx
	jg	.L4
	xorl	%eax, %eax
	cmpl	$60, %edx
	setg	%al
	.p2align 4,,10
	.p2align 3
.L4:
	movl	44(%rsp), %ecx
	movl	$6, %edx
	cmpl	$25, %ecx
	jg	.L5
	movl	$5, %edx
	cmpl	$20, %ecx
	jg	.L5
	movl	$4, %edx
	cmpl	$15, %ecx
	jg	.L5
	movl	$3, %edx
	cmpl	$10, %ecx
	jg	.L5
	movl	$2, %edx
	cmpl	$5, %ecx
	jg	.L5
	xorl	%edx, %edx
	cmpl	$2, %ecx
	setg	%dl
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	%edx, %eax
	cmovl	%rdx, %rax
	addl	$1, %r15d
	addl	48(%rsp,%rax,4), %r13d
	cmpl	%r15d, 28(%rsp)
	jg	.L6
.L3:
	movl	%r13d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xorl	%r13d, %r13d
	jmp	.L3
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	600
	.long	800
	.long	1000
	.long	1200
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	1400
	.long	1600
	.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
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d %d %d"
.LC4:
	.string	"%d\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
	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	$104, %rsp
	.cfi_def_cfa_offset 160
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movq	.LC1(%rip), %rax
	movl	$0, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	movq	%rax, 64(%rsp)
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	jle	.L9
	xorl	%r15d, %r15d
	leaq	44(%rsp), %r14
	leaq	40(%rsp), %r12
	xorl	%r13d, %r13d
	leaq	36(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rdx
	movq	%r14, %r8
	movq	%r12, %rcx
	movq	%rbx, %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %edx
	addl	32(%rsp), %edx
	movl	$6, %eax
	addl	40(%rsp), %edx
	cmpl	$160, %edx
	jg	.L4
	movl	$5, %eax
	cmpl	$140, %edx
	jg	.L4
	movl	$4, %eax
	cmpl	$120, %edx
	jg	.L4
	movl	$3, %eax
	cmpl	$100, %edx
	jg	.L4
	movl	$2, %eax
	cmpl	$80, %edx
	jg	.L4
	xorl	%eax, %eax
	cmpl	$60, %edx
	setg	%al
	.p2align 4,,10
	.p2align 3
.L4:
	movl	44(%rsp), %ecx
	movl	$6, %edx
	cmpl	$25, %ecx
	jg	.L5
	movl	$5, %edx
	cmpl	$20, %ecx
	jg	.L5
	movl	$4, %edx
	cmpl	$15, %ecx
	jg	.L5
	movl	$3, %edx
	cmpl	$10, %ecx
	jg	.L5
	movl	$2, %edx
	cmpl	$5, %ecx
	jg	.L5
	xorl	%edx, %edx
	cmpl	$2, %ecx
	setg	%dl
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	%edx, %eax
	cmovl	%rdx, %rax
	addl	$1, %r15d
	addl	48(%rsp,%rax,4), %r13d
	cmpl	%r15d, 28(%rsp)
	jg	.L6
.L3:
	movl	%r13d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xorl	%r13d, %r13d
	jmp	.L3
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	600
	.long	800
	.long	1000
	.long	1200
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	1400
	.long	1600
	.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:
```