Given the following C code and unoptimized 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>
#include<math.h>

typedef long long ll;

int main(){
  int n;
  char s[105],t[105];
  int cnt = 0;
  int ans,i;

  scanf("%d", &n);
  scanf("%s %s", s, t);
  ans = n*2;

  for(i = 0;i < n;i++){
    if(strncmp(s + i,t,n - i) == 0){
      cnt = n - i;
      break;
    }
  }

  printf("%d\n", ans - cnt);

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %s"
.LC2:
	.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	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -252(%rbp)
	leaq	-256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rdx
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-256(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -244(%rbp)
	movl	$0, -248(%rbp)
	jmp	.L2
.L5:
	movl	-256(%rbp), %eax
	subl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movl	-248(%rbp), %eax
	cltq
	leaq	-240(%rbp), %rcx
	addq	%rax, %rcx
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L3
	movl	-256(%rbp), %eax
	subl	-248(%rbp), %eax
	movl	%eax, -252(%rbp)
	jmp	.L4
.L3:
	addl	$1, -248(%rbp)
.L2:
	movl	-256(%rbp), %eax
	cmpl	%eax, -248(%rbp)
	jl	.L5
.L4:
	movl	-244(%rbp), %eax
	subl	-252(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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"
.LC1:
	.string	"%s %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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	leaq	32(%rsp), %r12
	leaq	144(%rsp), %r13
	call	__isoc99_scanf@PLT
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ebp
	leal	(%rbp,%rbp), %eax
	movl	%eax, 12(%rsp)
	testl	%ebp, %ebp
	jle	.L5
	movslq	%ebp, %rbx
	xorl	%r15d, %r15d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	addq	$1, %r15
	cmpq	%rbx, %r15
	je	.L5
.L3:
	movq	%rbx, %rdx
	movl	%ebp, %r14d
	leaq	(%r12,%r15), %rdi
	movq	%r13, %rsi
	subq	%r15, %rdx
	subl	%r15d, %r14d
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L12
.L2:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	subl	%r14d, %edx
	call	__printf_chk@PLT
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$280, %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
	xorl	%r14d, %r14d
	jmp	.L2
.L13:
	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"
.LC1:
	.string	"%s %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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$280, %rsp
	.cfi_def_cfa_offset 336
	movq	%fs:40, %rax
	movq	%rax, 264(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	leaq	32(%rsp), %r12
	leaq	144(%rsp), %r13
	call	__isoc99_scanf@PLT
	movq	%r13, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ebp
	leal	(%rbp,%rbp), %eax
	movl	%eax, 12(%rsp)
	testl	%ebp, %ebp
	jle	.L5
	movslq	%ebp, %rbx
	xorl	%r15d, %r15d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	addq	$1, %r15
	cmpq	%rbx, %r15
	je	.L5
.L3:
	movq	%rbx, %rdx
	movl	%ebp, %r14d
	leaq	(%r12,%r15), %rdi
	movq	%r13, %rsi
	subq	%r15, %rdx
	subl	%r15d, %r14d
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L12
.L2:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	subl	%r14d, %edx
	call	__printf_chk@PLT
	movq	264(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$280, %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
	xorl	%r14d, %r14d
	jmp	.L2
.L13:
	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:

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

typedef long long ll;

int main(){
  int n;
  char s[105],t[105];
  int cnt = 0;
  int ans,i;

  scanf("%d", &n);
  scanf("%s %s", s, t);
  ans = n*2;

  for(i = 0;i < n;i++){
    if(strncmp(s + i,t,n - i) == 0){
      cnt = n - i;
      break;
    }
  }

  printf("%d\n", ans - cnt);

  return 0;
}

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

typedef long long ll;

int main(){
  int n;
  char s[105],t[105];
  int cnt = 0;
  int ans,i;

  scanf("%d", &n);
  scanf("%s %s", s, t);
  ans = n*2;

  for(i = 0;i < n;i++){
    if(strncmp(s + i,t,n - i) == 0){
      cnt = n - i;
      break;
    }
  }

  printf("%d\n", ans - cnt);

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %s"
.LC2:
	.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	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -252(%rbp)
	leaq	-256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rdx
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-256(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -244(%rbp)
	movl	$0, -248(%rbp)
	jmp	.L2
.L5:
	movl	-256(%rbp), %eax
	subl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movl	-248(%rbp), %eax
	cltq
	leaq	-240(%rbp), %rcx
	addq	%rax, %rcx
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L3
	movl	-256(%rbp), %eax
	subl	-248(%rbp), %eax
	movl	%eax, -252(%rbp)
	jmp	.L4
.L3:
	addl	$1, -248(%rbp)
.L2:
	movl	-256(%rbp), %eax
	cmpl	%eax, -248(%rbp)
	jl	.L5
.L4:
	movl	-244(%rbp), %eax
	subl	-252(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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"
.LC1:
	.string	"%s %s"
.LC2:
	.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	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -252(%rbp)
	leaq	-256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rdx
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-256(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -244(%rbp)
	movl	$0, -248(%rbp)
	jmp	.L2
.L5:
	movl	-256(%rbp), %eax
	subl	-248(%rbp), %eax
	movslq	%eax, %rdx
	movl	-248(%rbp), %eax
	cltq
	leaq	-240(%rbp), %rcx
	addq	%rax, %rcx
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L3
	movl	-256(%rbp), %eax
	subl	-248(%rbp), %eax
	movl	%eax, -252(%rbp)
	jmp	.L4
.L3:
	addl	$1, -248(%rbp)
.L2:
	movl	-256(%rbp), %eax
	cmpl	%eax, -248(%rbp)
	jl	.L5
.L4:
	movl	-244(%rbp), %eax
	subl	-252(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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:
