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 <stdlib.h>
#include <string.h>

int main(void) {
	int i, j, N;
	char R[220], S[110], T[110], U[110], V[110];
	scanf("%d", &N);
	scanf("%s", &S);
	scanf("%s", &T);
//	printf("%s %s\n", S, T);

	memmove(R, S, N);
	for (i=0;i<N;i++) {
		memset(U, 0, 110);
		memset(V, 0, 110);
		memmove(U, R+i, N-i);
		memmove(V, T, N-i);
//		printf("%s %s\n", U, V);
		if (!strcmp(U,V)) {
			memmove(R+N, T+N-i, i);
			break;
		}
	}
	if (i == N) memmove(R+N, T, N);
	R[N+i] = '\0'; 

//	printf("%s\n", R);
	printf("%d\n", strlen(R));

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$744, %rsp
	.cfi_def_cfa_offset 800
	movq	%fs:40, %rax
	movq	%rax, 728(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	leaq	48(%rsp), %rbp
	leaq	160(%rsp), %r14
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %r8
	movl	$220, %ecx
	movq	%rbp, %rsi
	leaq	496(%rsp), %rdi
	movq	%r8, %rbx
	movq	%r8, %rdx
	movl	%r8d, 28(%rsp)
	movq	%r8, 8(%rsp)
	movq	%rdi, 16(%rsp)
	call	__memmove_chk@PLT
	testl	%ebx, %ebx
	movq	8(%rsp), %r8
	jle	.L7
	xorl	%r12d, %r12d
	leaq	272(%rsp), %r15
	leaq	384(%rsp), %rbp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%r12), %ebx
	addq	$1, %r12
	cmpq	%r8, %r12
	je	.L2
.L4:
	xorl	%eax, %eax
	movl	$13, %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	rep stosq
	movl	$13, %ecx
	movq	%r8, %r13
	movq	%r8, 8(%rsp)
	subq	%r12, %r13
	movl	%r12d, %ebx
	movw	%dx, 4(%rdi)
	movq	%r13, %rdx
	movl	$0, (%rdi)
	movq	%rbp, %rdi
	rep stosq
	xorl	%ecx, %ecx
	movq	16(%rsp), %rax
	leaq	(%rax,%r12), %rsi
	movw	%cx, 4(%rdi)
	movl	$110, %ecx
	movl	$0, (%rdi)
	movq	%r15, %rdi
	call	__memmove_chk@PLT
	movl	$110, %ecx
	movq	%r13, %rdx
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	__memmove_chk@PLT
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	movq	8(%rsp), %r8
	testl	%eax, %eax
	jne	.L3
	movq	16(%rsp), %rax
	leaq	(%r14,%r13), %rsi
	movq	%r12, %rdx
	leaq	(%rax,%r8), %rdi
	call	memcpy@PLT
	movq	8(%rsp), %r8
.L2:
	cmpl	%ebx, 28(%rsp)
	je	.L11
.L5:
	movl	28(%rsp), %r15d
	movq	16(%rsp), %rdi
	addl	%ebx, %r15d
	movslq	%r15d, %r15
	movb	$0, 496(%rsp,%r15)
	call	strlen@PLT
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	728(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$744, %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
.L11:
	.cfi_restore_state
	movq	16(%rsp), %rax
	movq	%r8, %rdx
	movq	%r14, %rsi
	leaq	(%rax,%r8), %rdi
	call	memcpy@PLT
	jmp	.L5
.L7:
	xorl	%ebx, %ebx
	jmp	.L2
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$744, %rsp
	.cfi_def_cfa_offset 800
	movq	%fs:40, %rax
	movq	%rax, 728(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	leaq	48(%rsp), %rbp
	leaq	160(%rsp), %r14
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %r8
	movl	$220, %ecx
	movq	%rbp, %rsi
	leaq	496(%rsp), %rdi
	movq	%r8, %rbx
	movq	%r8, %rdx
	movl	%r8d, 28(%rsp)
	movq	%r8, 8(%rsp)
	movq	%rdi, 16(%rsp)
	call	__memmove_chk@PLT
	testl	%ebx, %ebx
	movq	8(%rsp), %r8
	jle	.L7
	xorl	%r12d, %r12d
	leaq	272(%rsp), %r15
	leaq	384(%rsp), %rbp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%r12), %ebx
	addq	$1, %r12
	cmpq	%r8, %r12
	je	.L2
.L4:
	xorl	%eax, %eax
	movl	$13, %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	rep stosq
	movl	$13, %ecx
	movq	%r8, %r13
	movq	%r8, 8(%rsp)
	subq	%r12, %r13
	movl	%r12d, %ebx
	movw	%dx, 4(%rdi)
	movq	%r13, %rdx
	movl	$0, (%rdi)
	movq	%rbp, %rdi
	rep stosq
	xorl	%ecx, %ecx
	movq	16(%rsp), %rax
	leaq	(%rax,%r12), %rsi
	movw	%cx, 4(%rdi)
	movl	$110, %ecx
	movl	$0, (%rdi)
	movq	%r15, %rdi
	call	__memmove_chk@PLT
	movl	$110, %ecx
	movq	%r13, %rdx
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	__memmove_chk@PLT
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	movq	8(%rsp), %r8
	testl	%eax, %eax
	jne	.L3
	movq	16(%rsp), %rax
	leaq	(%r14,%r13), %rsi
	movq	%r12, %rdx
	leaq	(%rax,%r8), %rdi
	call	memcpy@PLT
	movq	8(%rsp), %r8
.L2:
	cmpl	%ebx, 28(%rsp)
	je	.L11
.L5:
	movl	28(%rsp), %r15d
	movq	16(%rsp), %rdi
	addl	%ebx, %r15d
	movslq	%r15d, %r15
	movb	$0, 496(%rsp,%r15)
	call	strlen@PLT
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	728(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$744, %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
.L11:
	.cfi_restore_state
	movq	16(%rsp), %rax
	movq	%r8, %rdx
	movq	%r14, %rsi
	leaq	(%rax,%r8), %rdi
	call	memcpy@PLT
	jmp	.L5
.L7:
	xorl	%ebx, %ebx
	jmp	.L2
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$744, %rsp
	.cfi_def_cfa_offset 800
	movq	%fs:40, %rax
	movq	%rax, 728(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	leaq	48(%rsp), %rbp
	leaq	160(%rsp), %r14
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %r8
	movl	$220, %ecx
	movq	%rbp, %rsi
	leaq	496(%rsp), %rdi
	movq	%r8, %rbx
	movq	%r8, %rdx
	movl	%r8d, 28(%rsp)
	movq	%r8, 8(%rsp)
	movq	%rdi, 16(%rsp)
	call	__memmove_chk@PLT
	testl	%ebx, %ebx
	movq	8(%rsp), %r8
	jle	.L7
	xorl	%r12d, %r12d
	leaq	272(%rsp), %r15
	leaq	384(%rsp), %rbp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%r12), %ebx
	addq	$1, %r12
	cmpq	%r8, %r12
	je	.L2
.L4:
	xorl	%eax, %eax
	movl	$13, %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	rep stosq
	movl	$13, %ecx
	movq	%r8, %r13
	movq	%r8, 8(%rsp)
	subq	%r12, %r13
	movl	%r12d, %ebx
	movw	%dx, 4(%rdi)
	movq	%r13, %rdx
	movl	$0, (%rdi)
	movq	%rbp, %rdi
	rep stosq
	xorl	%ecx, %ecx
	movq	16(%rsp), %rax
	leaq	(%rax,%r12), %rsi
	movw	%cx, 4(%rdi)
	movl	$110, %ecx
	movl	$0, (%rdi)
	movq	%r15, %rdi
	call	__memmove_chk@PLT
	movl	$110, %ecx
	movq	%r13, %rdx
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	__memmove_chk@PLT
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	movq	8(%rsp), %r8
	testl	%eax, %eax
	jne	.L3
	movq	16(%rsp), %rax
	leaq	(%r14,%r13), %rsi
	movq	%r12, %rdx
	leaq	(%rax,%r8), %rdi
	call	memcpy@PLT
	movq	8(%rsp), %r8
.L2:
	cmpl	%ebx, 28(%rsp)
	je	.L11
.L5:
	movl	28(%rsp), %r15d
	movq	16(%rsp), %rdi
	addl	%ebx, %r15d
	movslq	%r15d, %r15
	movb	$0, 496(%rsp,%r15)
	call	strlen@PLT
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	728(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$744, %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
.L11:
	.cfi_restore_state
	movq	16(%rsp), %rax
	movq	%r8, %rdx
	movq	%r14, %rsi
	leaq	(%rax,%r8), %rdi
	call	memcpy@PLT
	jmp	.L5
.L7:
	xorl	%ebx, %ebx
	jmp	.L2
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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>
#include <stdlib.h>
#include <string.h>

int main(void) {
	int i, j, N;
	char R[220], S[110], T[110], U[110], V[110];
	scanf("%d", &N);
	scanf("%s", &S);
	scanf("%s", &T);
//	printf("%s %s\n", S, T);

	memmove(R, S, N);
	for (i=0;i<N;i++) {
		memset(U, 0, 110);
		memset(V, 0, 110);
		memmove(U, R+i, N-i);
		memmove(V, T, N-i);
//		printf("%s %s\n", U, V);
		if (!strcmp(U,V)) {
			memmove(R+N, T+N-i, i);
			break;
		}
	}
	if (i == N) memmove(R+N, T, N);
	R[N+i] = '\0'; 

//	printf("%s\n", R);
	printf("%d\n", strlen(R));

	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 <stdlib.h>
#include <string.h>

int main(void) {
	int i, j, N;
	char R[220], S[110], T[110], U[110], V[110];
	scanf("%d", &N);
	scanf("%s", &S);
	scanf("%s", &T);
//	printf("%s %s\n", S, T);

	memmove(R, S, N);
	for (i=0;i<N;i++) {
		memset(U, 0, 110);
		memset(V, 0, 110);
		memmove(U, R+i, N-i);
		memmove(V, T, N-i);
//		printf("%s %s\n", U, V);
		if (!strcmp(U,V)) {
			memmove(R+N, T+N-i, i);
			break;
		}
	}
	if (i == N) memmove(R+N, T, N);
	R[N+i] = '\0'; 

//	printf("%s\n", R);
	printf("%d\n", strlen(R));

	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
abc
cce
 1
a
{
 4
expr
expq
 3
cba
cec
 4
expr
rxep
 3
abc
cec
 1
`
z
 4
expr
epxq
 1
`
{
 4
expr
pexq

5
 2
 8
 6
 7
 5
 2
 8
 2
 8

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 <stdlib.h>
#include <string.h>

int main(void) {
	int i, j, N;
	char R[220], S[110], T[110], U[110], V[110];
	scanf("%d", &N);
	scanf("%s", &S);
	scanf("%s", &T);
//	printf("%s %s\n", S, T);

	memmove(R, S, N);
	for (i=0;i<N;i++) {
		memset(U, 0, 110);
		memset(V, 0, 110);
		memmove(U, R+i, N-i);
		memmove(V, T, N-i);
//		printf("%s %s\n", U, V);
		if (!strcmp(U,V)) {
			memmove(R+N, T+N-i, i);
			break;
		}
	}
	if (i == N) memmove(R+N, T, N);
	R[N+i] = '\0'; 

//	printf("%s\n", R);
	printf("%d\n", strlen(R));

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$744, %rsp
	.cfi_def_cfa_offset 800
	movq	%fs:40, %rax
	movq	%rax, 728(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	leaq	48(%rsp), %rbp
	leaq	160(%rsp), %r14
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %r8
	movl	$220, %ecx
	movq	%rbp, %rsi
	leaq	496(%rsp), %rdi
	movq	%r8, %rbx
	movq	%r8, %rdx
	movl	%r8d, 28(%rsp)
	movq	%r8, 8(%rsp)
	movq	%rdi, 16(%rsp)
	call	__memmove_chk@PLT
	testl	%ebx, %ebx
	movq	8(%rsp), %r8
	jle	.L7
	xorl	%r12d, %r12d
	leaq	272(%rsp), %r15
	leaq	384(%rsp), %rbp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%r12), %ebx
	addq	$1, %r12
	cmpq	%r8, %r12
	je	.L2
.L4:
	xorl	%eax, %eax
	movl	$13, %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	rep stosq
	movl	$13, %ecx
	movq	%r8, %r13
	movq	%r8, 8(%rsp)
	subq	%r12, %r13
	movl	%r12d, %ebx
	movw	%dx, 4(%rdi)
	movq	%r13, %rdx
	movl	$0, (%rdi)
	movq	%rbp, %rdi
	rep stosq
	xorl	%ecx, %ecx
	movq	16(%rsp), %rax
	leaq	(%rax,%r12), %rsi
	movw	%cx, 4(%rdi)
	movl	$110, %ecx
	movl	$0, (%rdi)
	movq	%r15, %rdi
	call	__memmove_chk@PLT
	movl	$110, %ecx
	movq	%r13, %rdx
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	__memmove_chk@PLT
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	movq	8(%rsp), %r8
	testl	%eax, %eax
	jne	.L3
	movq	16(%rsp), %rax
	leaq	(%r14,%r13), %rsi
	movq	%r12, %rdx
	leaq	(%rax,%r8), %rdi
	call	memcpy@PLT
	movq	8(%rsp), %r8
.L2:
	cmpl	%ebx, 28(%rsp)
	je	.L11
.L5:
	movl	28(%rsp), %r15d
	movq	16(%rsp), %rdi
	addl	%ebx, %r15d
	movslq	%r15d, %r15
	movb	$0, 496(%rsp,%r15)
	call	strlen@PLT
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	728(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$744, %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
.L11:
	.cfi_restore_state
	movq	16(%rsp), %rax
	movq	%r8, %rdx
	movq	%r14, %rsi
	leaq	(%rax,%r8), %rdi
	call	memcpy@PLT
	jmp	.L5
.L7:
	xorl	%ebx, %ebx
	jmp	.L2
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$744, %rsp
	.cfi_def_cfa_offset 800
	movq	%fs:40, %rax
	movq	%rax, 728(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	leaq	48(%rsp), %rbp
	leaq	160(%rsp), %r14
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	44(%rsp), %r8
	movl	$220, %ecx
	movq	%rbp, %rsi
	leaq	496(%rsp), %rdi
	movq	%r8, %rbx
	movq	%r8, %rdx
	movl	%r8d, 28(%rsp)
	movq	%r8, 8(%rsp)
	movq	%rdi, 16(%rsp)
	call	__memmove_chk@PLT
	testl	%ebx, %ebx
	movq	8(%rsp), %r8
	jle	.L7
	xorl	%r12d, %r12d
	leaq	272(%rsp), %r15
	leaq	384(%rsp), %rbp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%r12), %ebx
	addq	$1, %r12
	cmpq	%r8, %r12
	je	.L2
.L4:
	xorl	%eax, %eax
	movl	$13, %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	rep stosq
	movl	$13, %ecx
	movq	%r8, %r13
	movq	%r8, 8(%rsp)
	subq	%r12, %r13
	movl	%r12d, %ebx
	movw	%dx, 4(%rdi)
	movq	%r13, %rdx
	movl	$0, (%rdi)
	movq	%rbp, %rdi
	rep stosq
	xorl	%ecx, %ecx
	movq	16(%rsp), %rax
	leaq	(%rax,%r12), %rsi
	movw	%cx, 4(%rdi)
	movl	$110, %ecx
	movl	$0, (%rdi)
	movq	%r15, %rdi
	call	__memmove_chk@PLT
	movl	$110, %ecx
	movq	%r13, %rdx
	movq	%r14, %rsi
	movq	%rbp, %rdi
	call	__memmove_chk@PLT
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	movq	8(%rsp), %r8
	testl	%eax, %eax
	jne	.L3
	movq	16(%rsp), %rax
	leaq	(%r14,%r13), %rsi
	movq	%r12, %rdx
	leaq	(%rax,%r8), %rdi
	call	memcpy@PLT
	movq	8(%rsp), %r8
.L2:
	cmpl	%ebx, 28(%rsp)
	je	.L11
.L5:
	movl	28(%rsp), %r15d
	movq	16(%rsp), %rdi
	addl	%ebx, %r15d
	movslq	%r15d, %r15
	movb	$0, 496(%rsp,%r15)
	call	strlen@PLT
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	728(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$744, %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
.L11:
	.cfi_restore_state
	movq	16(%rsp), %rax
	movq	%r8, %rdx
	movq	%r14, %rsi
	leaq	(%rax,%r8), %rdi
	call	memcpy@PLT
	jmp	.L5
.L7:
	xorl	%ebx, %ebx
	jmp	.L2
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```