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 n;
  int pm[10000],pe[10000],pj[10000];
  int i;

  scanf("%d",&n);
  while(n){
  for(i=0;i<n;i++)
    scanf("%d %d %d",&pm[i],&pe[i],&pj[i]);
  

  for(i=0;i<n;i++){
    if(pm[i]==100 || pe[i]==100 || pj[i]==100){
      puts("A");
      continue;
    }
    else if((pm[i]+pe[i])/2>=90){
      puts("A");
      continue;
    }
    else if((pm[i]+pe[i]+pj[i])/3>=80){
      puts("A");
      continue;
    }
    else if((pm[i]+pe[i]+pj[i])/3>=70){
      puts("B");
      continue;
    }
    else if((pm[i]+pe[i]+pj[i])/3>=50){
      if(pm[i]>=80 || pe[i]>=80)
	puts("B");
      else 
	puts("C");
      continue;
    }
    else
      puts("C");
  }
  scanf("%d",&n);
  }
  return 0;
}
    
  

  ```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"A"
.LC3:
	.string	"B"
.LC4:
	.string	"C"
	.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
	leaq	-118784(%rsp), %r11
	.cfi_def_cfa 11, 118840
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1272, %rsp
	.cfi_def_cfa_offset 120112
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 120040(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	testl	%eax, %eax
	jle	.L12
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	leaq	80032(%rsp), %r12
	leaq	40032(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r12,%r15), %rcx
	leaq	0(%rbp,%r15), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	(%rbx,%r15), %rsi
	addl	$1, %r14d
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L12
	xorl	%r15d, %r15d
	leaq	.LC3(%rip), %r14
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L29:
	movl	(%r12,%r15,4), %eax
	cmpl	$100, %eax
	je	.L6
	leal	(%rcx,%rsi), %edi
	cmpl	$179, %edi
	jg	.L6
	addl	%edi, %eax
	cmpl	$239, %eax
	jg	.L6
	cmpl	$209, %eax
	jg	.L11
	cmpl	$149, %eax
	jle	.L10
	cmpl	$79, %ecx
	jg	.L11
	cmpl	$79, %esi
	jle	.L10
.L11:
	movq	%r14, %rdi
	call	puts@PLT
.L8:
	addq	$1, %r15
	cmpl	%r15d, 28(%rsp)
	jle	.L12
.L5:
	movl	(%rbx,%r15,4), %ecx
	cmpl	$100, %ecx
	je	.L6
	movl	0(%rbp,%r15,4), %esi
	cmpl	$100, %esi
	jne	.L29
.L6:
	leaq	.LC2(%rip), %rdi
	addq	$1, %r15
	call	puts@PLT
	cmpl	%r15d, 28(%rsp)
	jg	.L5
.L12:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
.L3:
	movq	120040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$120056, %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
.L10:
	.cfi_restore_state
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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	"%d %d %d"
.LC2:
	.string	"A"
.LC3:
	.string	"B"
.LC4:
	.string	"C"
	.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
	leaq	-118784(%rsp), %r11
	.cfi_def_cfa 11, 118840
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1272, %rsp
	.cfi_def_cfa_offset 120112
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 120040(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	testl	%eax, %eax
	jle	.L12
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	leaq	80032(%rsp), %r12
	leaq	40032(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r12,%r15), %rcx
	leaq	0(%rbp,%r15), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	(%rbx,%r15), %rsi
	addl	$1, %r14d
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L12
	xorl	%r15d, %r15d
	leaq	.LC3(%rip), %r14
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L29:
	movl	(%r12,%r15,4), %eax
	cmpl	$100, %eax
	je	.L6
	leal	(%rcx,%rsi), %edi
	cmpl	$179, %edi
	jg	.L6
	addl	%edi, %eax
	cmpl	$239, %eax
	jg	.L6
	cmpl	$209, %eax
	jg	.L11
	cmpl	$149, %eax
	jle	.L10
	cmpl	$79, %ecx
	jg	.L11
	cmpl	$79, %esi
	jle	.L10
.L11:
	movq	%r14, %rdi
	call	puts@PLT
.L8:
	addq	$1, %r15
	cmpl	%r15d, 28(%rsp)
	jle	.L12
.L5:
	movl	(%rbx,%r15,4), %ecx
	cmpl	$100, %ecx
	je	.L6
	movl	0(%rbp,%r15,4), %esi
	cmpl	$100, %esi
	jne	.L29
.L6:
	leaq	.LC2(%rip), %rdi
	addq	$1, %r15
	call	puts@PLT
	cmpl	%r15d, 28(%rsp)
	jg	.L5
.L12:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
.L3:
	movq	120040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$120056, %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
.L10:
	.cfi_restore_state
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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	"%d %d %d"
.LC2:
	.string	"A"
.LC3:
	.string	"B"
.LC4:
	.string	"C"
	.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
	leaq	-118784(%rsp), %r11
	.cfi_def_cfa 11, 118840
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1272, %rsp
	.cfi_def_cfa_offset 120112
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 120040(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	testl	%eax, %eax
	jle	.L12
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	leaq	80032(%rsp), %r12
	leaq	40032(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r12,%r15), %rcx
	leaq	0(%rbp,%r15), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	(%rbx,%r15), %rsi
	addl	$1, %r14d
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L12
	xorl	%r15d, %r15d
	leaq	.LC3(%rip), %r14
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L29:
	movl	(%r12,%r15,4), %eax
	cmpl	$100, %eax
	je	.L6
	leal	(%rcx,%rsi), %edi
	cmpl	$179, %edi
	jg	.L6
	addl	%edi, %eax
	cmpl	$239, %eax
	jg	.L6
	cmpl	$209, %eax
	jg	.L11
	cmpl	$149, %eax
	jle	.L10
	cmpl	$79, %ecx
	jg	.L11
	cmpl	$79, %esi
	jle	.L10
.L11:
	movq	%r14, %rdi
	call	puts@PLT
.L8:
	addq	$1, %r15
	cmpl	%r15d, 28(%rsp)
	jle	.L12
.L5:
	movl	(%rbx,%r15,4), %ecx
	cmpl	$100, %ecx
	je	.L6
	movl	0(%rbp,%r15,4), %esi
	cmpl	$100, %esi
	jne	.L29
.L6:
	leaq	.LC2(%rip), %rdi
	addq	$1, %r15
	call	puts@PLT
	cmpl	%r15d, 28(%rsp)
	jg	.L5
.L12:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
.L3:
	movq	120040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$120056, %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
.L10:
	.cfi_restore_state
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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 n;
  int pm[10000],pe[10000],pj[10000];
  int i;

  scanf("%d",&n);
  while(n){
  for(i=0;i<n;i++)
    scanf("%d %d %d",&pm[i],&pe[i],&pj[i]);
  

  for(i=0;i<n;i++){
    if(pm[i]==100 || pe[i]==100 || pj[i]==100){
      puts("A");
      continue;
    }
    else if((pm[i]+pe[i])/2>=90){
      puts("A");
      continue;
    }
    else if((pm[i]+pe[i]+pj[i])/3>=80){
      puts("A");
      continue;
    }
    else if((pm[i]+pe[i]+pj[i])/3>=70){
      puts("B");
      continue;
    }
    else if((pm[i]+pe[i]+pj[i])/3>=50){
      if(pm[i]>=80 || pe[i]>=80)
	puts("B");
      else 
	puts("C");
      continue;
    }
    else
      puts("C");
  }
  scanf("%d",&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 n;
  int pm[10000],pe[10000],pj[10000];
  int i;

  scanf("%d",&n);
  while(n){
  for(i=0;i<n;i++)
    scanf("%d %d %d",&pm[i],&pe[i],&pj[i]);
  

  for(i=0;i<n;i++){
    if(pm[i]==100 || pe[i]==100 || pj[i]==100){
      puts("A");
      continue;
    }
    else if((pm[i]+pe[i])/2>=90){
      puts("A");
      continue;
    }
    else if((pm[i]+pe[i]+pj[i])/3>=80){
      puts("A");
      continue;
    }
    else if((pm[i]+pe[i]+pj[i])/3>=70){
      puts("B");
      continue;
    }
    else if((pm[i]+pe[i]+pj[i])/3>=50){
      if(pm[i]>=80 || pe[i]>=80)
	puts("B");
      else 
	puts("C");
      continue;
    }
    else
      puts("C");
  }
  scanf("%d",&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
100 70 20
98 86 55
80 34 39
65 79 65
2
99 81 20
66 72 90
0
 4
100 70 20
98 86 55
80 34 36
65 140 65
2
99 81 20
66 72 90
0
 4
100 70 20
98 86 19
80 34 39
65 79 65
2
99 75 20
66 72 90
0
 4
010 70 20
98 86 19
80 34 39
65 79 65
2
120 81 20
66 72 90
0
 4
010 133 20
98 86 19
80 34 39
65 79 65
2
120 81 20
66 72 90
0
 4
110 74 20
98 86 19
80 34 64
65 79 65
2
120 81 20
66 110 90
0
 4
100 70 20
143 86 55
80 34 20
65 53 65
2
99 81 20
66 72 90
0
 4
110 16 20
98 86 19
80 8 39
65 79 65
2
99 81 9
66 72 90
0
 4
010 133 20
98 86 19
80 34 39
65 79 65
2
120 81 20
66 47 90
0
 4
100 70 20
98 86 55
80 34 36
65 140 94
2
99 113 20
110 72 90
0

A
A
B
C
A
B
 A
A
B
A
A
B
 A
A
B
C
B
B
 C
A
B
C
A
B
 B
A
B
C
A
B
 A
A
B
C
A
A
 A
A
C
C
A
B
 C
A
C
C
A
B
 B
A
B
C
A
C
 A
A
B
A
A
A

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 n;
  int pm[10000],pe[10000],pj[10000];
  int i;

  scanf("%d",&n);
  while(n){
  for(i=0;i<n;i++)
    scanf("%d %d %d",&pm[i],&pe[i],&pj[i]);
  

  for(i=0;i<n;i++){
    if(pm[i]==100 || pe[i]==100 || pj[i]==100){
      puts("A");
      continue;
    }
    else if((pm[i]+pe[i])/2>=90){
      puts("A");
      continue;
    }
    else if((pm[i]+pe[i]+pj[i])/3>=80){
      puts("A");
      continue;
    }
    else if((pm[i]+pe[i]+pj[i])/3>=70){
      puts("B");
      continue;
    }
    else if((pm[i]+pe[i]+pj[i])/3>=50){
      if(pm[i]>=80 || pe[i]>=80)
	puts("B");
      else 
	puts("C");
      continue;
    }
    else
      puts("C");
  }
  scanf("%d",&n);
  }
  return 0;
}
    
  

  ```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"A"
.LC3:
	.string	"B"
.LC4:
	.string	"C"
	.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
	leaq	-118784(%rsp), %r11
	.cfi_def_cfa 11, 118840
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1272, %rsp
	.cfi_def_cfa_offset 120112
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 120040(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	testl	%eax, %eax
	jle	.L12
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	leaq	80032(%rsp), %r12
	leaq	40032(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r12,%r15), %rcx
	leaq	0(%rbp,%r15), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	(%rbx,%r15), %rsi
	addl	$1, %r14d
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L12
	xorl	%r15d, %r15d
	leaq	.LC3(%rip), %r14
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L29:
	movl	(%r12,%r15,4), %eax
	cmpl	$100, %eax
	je	.L6
	leal	(%rcx,%rsi), %edi
	cmpl	$179, %edi
	jg	.L6
	addl	%edi, %eax
	cmpl	$239, %eax
	jg	.L6
	cmpl	$209, %eax
	jg	.L11
	cmpl	$149, %eax
	jle	.L10
	cmpl	$79, %ecx
	jg	.L11
	cmpl	$79, %esi
	jle	.L10
.L11:
	movq	%r14, %rdi
	call	puts@PLT
.L8:
	addq	$1, %r15
	cmpl	%r15d, 28(%rsp)
	jle	.L12
.L5:
	movl	(%rbx,%r15,4), %ecx
	cmpl	$100, %ecx
	je	.L6
	movl	0(%rbp,%r15,4), %esi
	cmpl	$100, %esi
	jne	.L29
.L6:
	leaq	.LC2(%rip), %rdi
	addq	$1, %r15
	call	puts@PLT
	cmpl	%r15d, 28(%rsp)
	jg	.L5
.L12:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
.L3:
	movq	120040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$120056, %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
.L10:
	.cfi_restore_state
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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	"%d %d %d"
.LC2:
	.string	"A"
.LC3:
	.string	"B"
.LC4:
	.string	"C"
	.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
	leaq	-118784(%rsp), %r11
	.cfi_def_cfa 11, 118840
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1272, %rsp
	.cfi_def_cfa_offset 120112
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 120040(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	testl	%eax, %eax
	jle	.L12
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	leaq	80032(%rsp), %r12
	leaq	40032(%rsp), %rbp
	leaq	32(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r12,%r15), %rcx
	leaq	0(%rbp,%r15), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	(%rbx,%r15), %rsi
	addl	$1, %r14d
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	cmpl	%r14d, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L12
	xorl	%r15d, %r15d
	leaq	.LC3(%rip), %r14
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L29:
	movl	(%r12,%r15,4), %eax
	cmpl	$100, %eax
	je	.L6
	leal	(%rcx,%rsi), %edi
	cmpl	$179, %edi
	jg	.L6
	addl	%edi, %eax
	cmpl	$239, %eax
	jg	.L6
	cmpl	$209, %eax
	jg	.L11
	cmpl	$149, %eax
	jle	.L10
	cmpl	$79, %ecx
	jg	.L11
	cmpl	$79, %esi
	jle	.L10
.L11:
	movq	%r14, %rdi
	call	puts@PLT
.L8:
	addq	$1, %r15
	cmpl	%r15d, 28(%rsp)
	jle	.L12
.L5:
	movl	(%rbx,%r15,4), %ecx
	cmpl	$100, %ecx
	je	.L6
	movl	0(%rbp,%r15,4), %esi
	cmpl	$100, %esi
	jne	.L29
.L6:
	leaq	.LC2(%rip), %rdi
	addq	$1, %r15
	call	puts@PLT
	cmpl	%r15d, 28(%rsp)
	jg	.L5
.L12:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
.L3:
	movq	120040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$120056, %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
.L10:
	.cfi_restore_state
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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:
```