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<string.h>
int main(){
  int n,d=1,m,i;
  char s[300][20],c[20],w[][20]={"Opened by","Closed by","Unknown"};
  scanf("%d",&n);
  for(i=0;i<n;i++)scanf("%s",s[i]);
  scanf("%d",&m);
  while(m--){
    scanf("%s",c);
    for(i=0;i<n&&strcmp(s[i],c);i++);
    printf("%s %s\n",i-n?w[d=1-d]:w[2],c);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%s %s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$2024, %rsp
	.cfi_def_cfa_offset 6176
	movdqa	.LC3(%rip), %xmm0
	leaq	.LC0(%rip), %r13
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 6104(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %rsi
	movdqa	.LC4(%rip), %xmm0
	movq	$0, 64(%rsp)
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movl	$0, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	80(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$20, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L2:
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L4
	movl	$1, %r13d
	leaq	.LC1(%rip), %r12
	leaq	6080(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L5
	leaq	80(%rsp), %r14
	xorl	%r15d, %r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %r15d
	addq	$20, %r14
	cmpl	%ebp, %r15d
	je	.L13
.L6:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L8
.L9:
	movl	$1, %eax
	subl	%r13d, %eax
	movl	%eax, %r13d
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	16(%rsp,%rax,4), %rdx
.L7:
	movq	%rbx, %rcx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L4:
	movq	6104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$6120, %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
.L5:
	.cfi_restore_state
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	56(%rsp), %rdx
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	7070761801778294863
	.quad	121
	.align 16
.LC4:
	.quad	8317986071795204096
	.quad	521337332837
	.align 16
.LC5:
	.quad	0
	.quad	31093567915781717
	.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	"%s"
.LC2:
	.string	"%s %s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$2024, %rsp
	.cfi_def_cfa_offset 6176
	movdqa	.LC3(%rip), %xmm0
	leaq	.LC0(%rip), %r13
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 6104(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %rsi
	movdqa	.LC4(%rip), %xmm0
	movq	$0, 64(%rsp)
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movl	$0, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	80(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$20, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L2:
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L4
	movl	$1, %r13d
	leaq	.LC1(%rip), %r12
	leaq	6080(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L5
	leaq	80(%rsp), %r14
	xorl	%r15d, %r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %r15d
	addq	$20, %r14
	cmpl	%ebp, %r15d
	je	.L13
.L6:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L8
.L9:
	movl	$1, %eax
	subl	%r13d, %eax
	movl	%eax, %r13d
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	16(%rsp,%rax,4), %rdx
.L7:
	movq	%rbx, %rcx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L4:
	movq	6104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$6120, %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
.L5:
	.cfi_restore_state
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	56(%rsp), %rdx
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	7070761801778294863
	.quad	121
	.align 16
.LC4:
	.quad	8317986071795204096
	.quad	521337332837
	.align 16
.LC5:
	.quad	0
	.quad	31093567915781717
	.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	"%s"
.LC2:
	.string	"%s %s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$2024, %rsp
	.cfi_def_cfa_offset 6176
	movdqa	.LC3(%rip), %xmm0
	leaq	.LC0(%rip), %r13
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 6104(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %rsi
	movdqa	.LC4(%rip), %xmm0
	movq	$0, 64(%rsp)
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movl	$0, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	80(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$20, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L2:
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L4
	movl	$1, %r13d
	leaq	.LC1(%rip), %r12
	leaq	6080(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L5
	leaq	80(%rsp), %r14
	xorl	%r15d, %r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %r15d
	addq	$20, %r14
	cmpl	%ebp, %r15d
	je	.L13
.L6:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L8
.L9:
	movl	$1, %eax
	subl	%r13d, %eax
	movl	%eax, %r13d
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	16(%rsp,%rax,4), %rdx
.L7:
	movq	%rbx, %rcx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L4:
	movq	6104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$6120, %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
.L5:
	.cfi_restore_state
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	56(%rsp), %rdx
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	7070761801778294863
	.quad	121
	.align 16
.LC4:
	.quad	8317986071795204096
	.quad	521337332837
	.align 16
.LC5:
	.quad	0
	.quad	31093567915781717
	.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<string.h>
int main(){
  int n,d=1,m,i;
  char s[300][20],c[20],w[][20]={"Opened by","Closed by","Unknown"};
  scanf("%d",&n);
  for(i=0;i<n;i++)scanf("%s",s[i]);
  scanf("%d",&m);
  while(m--){
    scanf("%s",c);
    for(i=0;i<n&&strcmp(s[i],c);i++);
    printf("%s %s\n",i-n?w[d=1-d]:w[2],c);
  }
  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<string.h>
int main(){
  int n,d=1,m,i;
  char s[300][20],c[20],w[][20]={"Opened by","Closed by","Unknown"};
  scanf("%d",&n);
  for(i=0;i<n;i++)scanf("%s",s[i]);
  scanf("%d",&m);
  while(m--){
    scanf("%s",c);
    for(i=0;i<n&&strcmp(s[i],c);i++);
    printf("%s %s\n",i-n?w[d=1-d]:w[2],c);
  }
  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
abcd
efgh
ijkl
mnop
5
abcd
abcc
efgh
abcd
mnop

Opened by abcd
Unknown abcc
Closed by efgh
Opened by abcd
Closed by mnop

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<string.h>
int main(){
  int n,d=1,m,i;
  char s[300][20],c[20],w[][20]={"Opened by","Closed by","Unknown"};
  scanf("%d",&n);
  for(i=0;i<n;i++)scanf("%s",s[i]);
  scanf("%d",&m);
  while(m--){
    scanf("%s",c);
    for(i=0;i<n&&strcmp(s[i],c);i++);
    printf("%s %s\n",i-n?w[d=1-d]:w[2],c);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%s %s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$2024, %rsp
	.cfi_def_cfa_offset 6176
	movdqa	.LC3(%rip), %xmm0
	leaq	.LC0(%rip), %r13
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 6104(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %rsi
	movdqa	.LC4(%rip), %xmm0
	movq	$0, 64(%rsp)
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movl	$0, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	80(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$20, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L2:
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L4
	movl	$1, %r13d
	leaq	.LC1(%rip), %r12
	leaq	6080(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L5
	leaq	80(%rsp), %r14
	xorl	%r15d, %r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %r15d
	addq	$20, %r14
	cmpl	%ebp, %r15d
	je	.L13
.L6:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L8
.L9:
	movl	$1, %eax
	subl	%r13d, %eax
	movl	%eax, %r13d
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	16(%rsp,%rax,4), %rdx
.L7:
	movq	%rbx, %rcx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L4:
	movq	6104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$6120, %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
.L5:
	.cfi_restore_state
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	56(%rsp), %rdx
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	7070761801778294863
	.quad	121
	.align 16
.LC4:
	.quad	8317986071795204096
	.quad	521337332837
	.align 16
.LC5:
	.quad	0
	.quad	31093567915781717
	.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	"%s"
.LC2:
	.string	"%s %s\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$2024, %rsp
	.cfi_def_cfa_offset 6176
	movdqa	.LC3(%rip), %xmm0
	leaq	.LC0(%rip), %r13
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 6104(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 16(%rsp)
	leaq	8(%rsp), %rsi
	movdqa	.LC4(%rip), %xmm0
	movq	$0, 64(%rsp)
	movaps	%xmm0, 32(%rsp)
	movdqa	.LC5(%rip), %xmm0
	movl	$0, 72(%rsp)
	movaps	%xmm0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	80(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$20, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L3
.L2:
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L4
	movl	$1, %r13d
	leaq	.LC1(%rip), %r12
	leaq	6080(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbx, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L5
	leaq	80(%rsp), %r14
	xorl	%r15d, %r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %r15d
	addq	$20, %r14
	cmpl	%ebp, %r15d
	je	.L13
.L6:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L8
.L9:
	movl	$1, %eax
	subl	%r13d, %eax
	movl	%eax, %r13d
	cltq
	leaq	(%rax,%rax,4), %rax
	leaq	16(%rsp,%rax,4), %rdx
.L7:
	movq	%rbx, %rcx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L4:
	movq	6104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$6120, %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
.L5:
	.cfi_restore_state
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L13:
	leaq	56(%rsp), %rdx
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	7070761801778294863
	.quad	121
	.align 16
.LC4:
	.quad	8317986071795204096
	.quad	521337332837
	.align 16
.LC5:
	.quad	0
	.quad	31093567915781717
	.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:
```