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,Q;
	int i;
	char names[50][32]={"kogakubu10gokan"};
	char* answer=names[0];
	scanf("%d%d",&N,&Q);
	for(i=1;i<=N;i++) {
		int year;
		scanf("%d%s",&year,names[i]);
		if(year<=Q)answer=names[i];
	}
	puts(answer);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%s"
	.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
	movl	$200, %ecx
	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	$1632, %rsp
	.cfi_def_cfa_offset 1680
	movdqa	.LC2(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 1624(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %rdx
	movq	%r12, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	movaps	%xmm0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rbx
	movl	$1, %ebp
	leaq	12(%rsp), %r14
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rdx
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	cmpl	%eax, 12(%rsp)
	cmovle	%rbx, %r12
	addl	$1, %ebp
	addq	$32, %rbx
	cmpl	%ebp, 4(%rsp)
	jge	.L4
.L2:
	movq	%r12, %rdi
	call	puts@PLT
	movq	1624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$1632, %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
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	8458452154211331947
	.quad	31069361496600625
	.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%d"
.LC1:
	.string	"%d%s"
	.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
	movl	$200, %ecx
	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	$1632, %rsp
	.cfi_def_cfa_offset 1680
	movdqa	.LC2(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 1624(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %rdx
	movq	%r12, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	movaps	%xmm0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rbx
	movl	$1, %ebp
	leaq	12(%rsp), %r14
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rdx
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	cmpl	%eax, 12(%rsp)
	cmovle	%rbx, %r12
	addl	$1, %ebp
	addq	$32, %rbx
	cmpl	%ebp, 4(%rsp)
	jge	.L4
.L2:
	movq	%r12, %rdi
	call	puts@PLT
	movq	1624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$1632, %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
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	8458452154211331947
	.quad	31069361496600625
	.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%d"
.LC1:
	.string	"%d%s"
	.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
	movl	$200, %ecx
	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	$1632, %rsp
	.cfi_def_cfa_offset 1680
	movdqa	.LC2(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 1624(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %rdx
	movq	%r12, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	movaps	%xmm0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rbx
	movl	$1, %ebp
	leaq	12(%rsp), %r14
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rdx
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	cmpl	%eax, 12(%rsp)
	cmovle	%rbx, %r12
	addl	$1, %ebp
	addq	$32, %rbx
	cmpl	%ebp, 4(%rsp)
	jge	.L4
.L2:
	movq	%r12, %rdi
	call	puts@PLT
	movq	1624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$1632, %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
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	8458452154211331947
	.quad	31069361496600625
	.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,Q;
	int i;
	char names[50][32]={"kogakubu10gokan"};
	char* answer=names[0];
	scanf("%d%d",&N,&Q);
	for(i=1;i<=N;i++) {
		int year;
		scanf("%d%s",&year,names[i]);
		if(year<=Q)answer=names[i];
	}
	puts(answer);
	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,Q;
	int i;
	char names[50][32]={"kogakubu10gokan"};
	char* answer=names[0];
	scanf("%d%d",&N,&Q);
	for(i=1;i<=N;i++) {
		int year;
		scanf("%d%s",&year,names[i]);
		if(year<=Q)answer=names[i];
	}
	puts(answer);
	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:

3 12
5 sogo5gokan
10 sogo10gokan
15 sogo15gokan

sogo10gokan

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,Q;
	int i;
	char names[50][32]={"kogakubu10gokan"};
	char* answer=names[0];
	scanf("%d%d",&N,&Q);
	for(i=1;i<=N;i++) {
		int year;
		scanf("%d%s",&year,names[i]);
		if(year<=Q)answer=names[i];
	}
	puts(answer);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%s"
	.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
	movl	$200, %ecx
	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	$1632, %rsp
	.cfi_def_cfa_offset 1680
	movdqa	.LC2(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 1624(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %rdx
	movq	%r12, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	movaps	%xmm0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rbx
	movl	$1, %ebp
	leaq	12(%rsp), %r14
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rdx
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	cmpl	%eax, 12(%rsp)
	cmovle	%rbx, %r12
	addl	$1, %ebp
	addq	$32, %rbx
	cmpl	%ebp, 4(%rsp)
	jge	.L4
.L2:
	movq	%r12, %rdi
	call	puts@PLT
	movq	1624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$1632, %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
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	8458452154211331947
	.quad	31069361496600625
	.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%d"
.LC1:
	.string	"%d%s"
	.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
	movl	$200, %ecx
	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	$1632, %rsp
	.cfi_def_cfa_offset 1680
	movdqa	.LC2(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 1624(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %rdx
	movq	%r12, %rdi
	leaq	4(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	movaps	%xmm0, 16(%rsp)
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	48(%rsp), %rbx
	movl	$1, %ebp
	leaq	12(%rsp), %r14
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbx, %rdx
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	cmpl	%eax, 12(%rsp)
	cmovle	%rbx, %r12
	addl	$1, %ebp
	addq	$32, %rbx
	cmpl	%ebp, 4(%rsp)
	jge	.L4
.L2:
	movq	%r12, %rdi
	call	puts@PLT
	movq	1624(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$1632, %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
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	8458452154211331947
	.quad	31069361496600625
	.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:
```