Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
	submission # - User: herp_sy
	https://atcoder.jp/contests/

	coding: utf-8
	lang: C (GCC 5.4.1)
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>

int main(int argc, char const *argv[])
{
	int n;
	int i,p = 0;
	char s[103],t[103];
	bool f;

	scanf("%d %s %s", &n, s, t);
	for(i = 0; i < n; ++i){
		f = true;
		for(int j = 0; i + j < n; ++j){
			if(s[i + j] != t[j]){
				f = false;
				break;
			}
		}
		if(f)	break;
	}
	printf("%d\n", n + i);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %s %s"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$272, %rsp
	movl	%edi, -260(%rbp)
	movq	%rsi, -272(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -228(%rbp)
	leaq	-112(%rbp), %rcx
	leaq	-224(%rbp), %rdx
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -236(%rbp)
	jmp	.L2
.L9:
	movb	$1, -241(%rbp)
	movl	$0, -232(%rbp)
	jmp	.L3
.L6:
	movl	-236(%rbp), %edx
	movl	-232(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-232(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L4
	movb	$0, -241(%rbp)
	jmp	.L5
.L4:
	addl	$1, -232(%rbp)
.L3:
	movl	-236(%rbp), %edx
	movl	-232(%rbp), %eax
	addl	%eax, %edx
	movl	-240(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L6
.L5:
	cmpb	$0, -241(%rbp)
	jne	.L12
	addl	$1, -236(%rbp)
.L2:
	movl	-240(%rbp), %eax
	cmpl	%eax, -236(%rbp)
	jl	.L9
	jmp	.L8
.L12:
	nop
.L8:
	movl	-240(%rbp), %edx
	movl	-236(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %s %s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$248, %rsp
	.cfi_def_cfa_offset 256
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	leaq	128(%rsp), %rcx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	testl	%edi, %edi
	jg	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %edx
	leal	(%rdx,%rsi), %eax
	cmpl	%edi, %eax
	jge	.L3
.L2:
	movslq	%edx, %rcx
	cltq
	movzbl	128(%rsp,%rcx), %ecx
	cmpb	%cl, 16(%rsp,%rax)
	je	.L13
	leal	1(%rsi), %eax
	movl	%eax, %esi
	cmpl	%eax, %edi
	jle	.L3
	xorl	%edx, %edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	leal	(%rdi,%rsi), %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %s %s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$248, %rsp
	.cfi_def_cfa_offset 256
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	leaq	128(%rsp), %rcx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	testl	%edi, %edi
	jg	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %edx
	leal	(%rdx,%rsi), %eax
	cmpl	%edi, %eax
	jge	.L3
.L2:
	movslq	%edx, %rcx
	cltq
	movzbl	128(%rsp,%rcx), %ecx
	cmpb	%cl, 16(%rsp,%rax)
	je	.L13
	leal	1(%rsi), %eax
	movl	%eax, %esi
	cmpl	%eax, %edi
	jle	.L3
	xorl	%edx, %edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	leal	(%rdi,%rsi), %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	xorl	%eax, %eax
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	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:

/*
	submission # - User: herp_sy
	https://atcoder.jp/contests/

	coding: utf-8
	lang: C (GCC 5.4.1)
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>

int main(int argc, char const *argv[])
{
	int n;
	int i,p = 0;
	char s[103],t[103];
	bool f;

	scanf("%d %s %s", &n, s, t);
	for(i = 0; i < n; ++i){
		f = true;
		for(int j = 0; i + j < n; ++j){
			if(s[i + j] != t[j]){
				f = false;
				break;
			}
		}
		if(f)	break;
	}
	printf("%d\n", n + i);
}

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 unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
	submission # - User: herp_sy
	https://atcoder.jp/contests/

	coding: utf-8
	lang: C (GCC 5.4.1)
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>

int main(int argc, char const *argv[])
{
	int n;
	int i,p = 0;
	char s[103],t[103];
	bool f;

	scanf("%d %s %s", &n, s, t);
	for(i = 0; i < n; ++i){
		f = true;
		for(int j = 0; i + j < n; ++j){
			if(s[i + j] != t[j]){
				f = false;
				break;
			}
		}
		if(f)	break;
	}
	printf("%d\n", n + i);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %s %s"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$272, %rsp
	movl	%edi, -260(%rbp)
	movq	%rsi, -272(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -228(%rbp)
	leaq	-112(%rbp), %rcx
	leaq	-224(%rbp), %rdx
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -236(%rbp)
	jmp	.L2
.L9:
	movb	$1, -241(%rbp)
	movl	$0, -232(%rbp)
	jmp	.L3
.L6:
	movl	-236(%rbp), %edx
	movl	-232(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-232(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L4
	movb	$0, -241(%rbp)
	jmp	.L5
.L4:
	addl	$1, -232(%rbp)
.L3:
	movl	-236(%rbp), %edx
	movl	-232(%rbp), %eax
	addl	%eax, %edx
	movl	-240(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L6
.L5:
	cmpb	$0, -241(%rbp)
	jne	.L12
	addl	$1, -236(%rbp)
.L2:
	movl	-240(%rbp), %eax
	cmpl	%eax, -236(%rbp)
	jl	.L9
	jmp	.L8
.L12:
	nop
.L8:
	movl	-240(%rbp), %edx
	movl	-236(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %s %s"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$272, %rsp
	movl	%edi, -260(%rbp)
	movq	%rsi, -272(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -228(%rbp)
	leaq	-112(%rbp), %rcx
	leaq	-224(%rbp), %rdx
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -236(%rbp)
	jmp	.L2
.L9:
	movb	$1, -241(%rbp)
	movl	$0, -232(%rbp)
	jmp	.L3
.L6:
	movl	-236(%rbp), %edx
	movl	-232(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-224(%rbp,%rax), %edx
	movl	-232(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L4
	movb	$0, -241(%rbp)
	jmp	.L5
.L4:
	addl	$1, -232(%rbp)
.L3:
	movl	-236(%rbp), %edx
	movl	-232(%rbp), %eax
	addl	%eax, %edx
	movl	-240(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L6
.L5:
	cmpb	$0, -241(%rbp)
	jne	.L12
	addl	$1, -236(%rbp)
.L2:
	movl	-240(%rbp), %eax
	cmpl	%eax, -236(%rbp)
	jl	.L9
	jmp	.L8
.L12:
	nop
.L8:
	movl	-240(%rbp), %edx
	movl	-236(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
