Given the following C code and 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);
}
```

Assembly Code:

```assembly
	.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:
```

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 %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
```assembly
	.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:
```
```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);
}
```
Given the following C 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);
}
```

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
/*
	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);
}
```

Assembly Code:

```assembly
	.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:
```

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 %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:
```