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(){
  char s[100] = {};
  char t[100] = {};
  int n = 0;
  int i = 0;
  int j = 0;
  int hoge = -1;
  int flag = 0;
  
  scanf("%d",&n);
  scanf("%s",s);
  scanf("%s",t);
  for(i=0;i<n;i++){
    flag = 1;
    for(j=0;j<n-i;j++){
      if(s[j+i] == t[j]){
        flag = 1;
      }else{
      	flag = 0;
        break;
      }
    }
    if(flag){
      hoge = i;
      break;
    }
  }
  
  if(hoge != -1){
    printf("%d",(n-hoge)+2*(hoge));
  }else{
    printf("%d",2*n);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pxor	%xmm0, %xmm0
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	leaq	.LC1(%rip), %rbp
	subq	$248, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 144(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 192(%rsp)
	movaps	%xmm0, 208(%rsp)
	movl	$0, 112(%rsp)
	movl	$0, 224(%rsp)
	movl	$0, 12(%rsp)
	call	__isoc99_scanf@PLT
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	128(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	xorl	%esi, %esi
	xorl	%eax, %eax
	movl	%r8d, %edi
	testl	%r8d, %r8d
	jg	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	addl	$1, %eax
	cmpl	%edi, %eax
	jge	.L6
.L2:
	leal	(%rax,%rsi), %edx
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movzbl	128(%rsp,%rcx), %ecx
	cmpb	%cl, 16(%rsp,%rdx)
	je	.L16
	addl	$1, %esi
	cmpl	%r8d, %esi
	jge	.L3
	movl	%r8d, %edi
	subl	%esi, %edi
	testl	%edi, %edi
	jle	.L6
	xorl	%eax, %eax
	jmp	.L2
.L6:
	leal	(%rdi,%rsi,2), %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
.L7:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	leal	(%r8,%r8), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pxor	%xmm0, %xmm0
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	leaq	.LC1(%rip), %rbp
	subq	$248, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 144(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 192(%rsp)
	movaps	%xmm0, 208(%rsp)
	movl	$0, 112(%rsp)
	movl	$0, 224(%rsp)
	movl	$0, 12(%rsp)
	call	__isoc99_scanf@PLT
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	128(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	xorl	%esi, %esi
	xorl	%eax, %eax
	movl	%r8d, %edi
	testl	%r8d, %r8d
	jg	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	addl	$1, %eax
	cmpl	%edi, %eax
	jge	.L6
.L2:
	leal	(%rax,%rsi), %edx
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movzbl	128(%rsp,%rcx), %ecx
	cmpb	%cl, 16(%rsp,%rdx)
	je	.L16
	addl	$1, %esi
	cmpl	%r8d, %esi
	jge	.L3
	movl	%r8d, %edi
	subl	%esi, %edi
	testl	%edi, %edi
	jle	.L6
	xorl	%eax, %eax
	jmp	.L2
.L6:
	leal	(%rdi,%rsi,2), %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
.L7:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	leal	(%r8,%r8), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pxor	%xmm0, %xmm0
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	leaq	.LC1(%rip), %rbp
	subq	$248, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 144(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 192(%rsp)
	movaps	%xmm0, 208(%rsp)
	movl	$0, 112(%rsp)
	movl	$0, 224(%rsp)
	movl	$0, 12(%rsp)
	call	__isoc99_scanf@PLT
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	128(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	xorl	%esi, %esi
	xorl	%eax, %eax
	movl	%r8d, %edi
	testl	%r8d, %r8d
	jg	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	addl	$1, %eax
	cmpl	%edi, %eax
	jge	.L6
.L2:
	leal	(%rax,%rsi), %edx
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movzbl	128(%rsp,%rcx), %ecx
	cmpb	%cl, 16(%rsp,%rdx)
	je	.L16
	addl	$1, %esi
	cmpl	%r8d, %esi
	jge	.L3
	movl	%r8d, %edi
	subl	%esi, %edi
	testl	%edi, %edi
	jle	.L6
	xorl	%eax, %eax
	jmp	.L2
.L6:
	leal	(%rdi,%rsi,2), %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
.L7:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	leal	(%r8,%r8), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main(){
  char s[100] = {};
  char t[100] = {};
  int n = 0;
  int i = 0;
  int j = 0;
  int hoge = -1;
  int flag = 0;
  
  scanf("%d",&n);
  scanf("%s",s);
  scanf("%s",t);
  for(i=0;i<n;i++){
    flag = 1;
    for(j=0;j<n-i;j++){
      if(s[j+i] == t[j]){
        flag = 1;
      }else{
      	flag = 0;
        break;
      }
    }
    if(flag){
      hoge = i;
      break;
    }
  }
  
  if(hoge != -1){
    printf("%d",(n-hoge)+2*(hoge));
  }else{
    printf("%d",2*n);
  }
  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(){
  char s[100] = {};
  char t[100] = {};
  int n = 0;
  int i = 0;
  int j = 0;
  int hoge = -1;
  int flag = 0;
  
  scanf("%d",&n);
  scanf("%s",s);
  scanf("%s",t);
  for(i=0;i<n;i++){
    flag = 1;
    for(j=0;j<n-i;j++){
      if(s[j+i] == t[j]){
        flag = 1;
      }else{
      	flag = 0;
        break;
      }
    }
    if(flag){
      hoge = i;
      break;
    }
  }
  
  if(hoge != -1){
    printf("%d",(n-hoge)+2*(hoge));
  }else{
    printf("%d",2*n);
  }
  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>

int main(){
  char s[100] = {};
  char t[100] = {};
  int n = 0;
  int i = 0;
  int j = 0;
  int hoge = -1;
  int flag = 0;
  
  scanf("%d",&n);
  scanf("%s",s);
  scanf("%s",t);
  for(i=0;i<n;i++){
    flag = 1;
    for(j=0;j<n-i;j++){
      if(s[j+i] == t[j]){
        flag = 1;
      }else{
      	flag = 0;
        break;
      }
    }
    if(flag){
      hoge = i;
      break;
    }
  }
  
  if(hoge != -1){
    printf("%d",(n-hoge)+2*(hoge));
  }else{
    printf("%d",2*n);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pxor	%xmm0, %xmm0
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	leaq	.LC1(%rip), %rbp
	subq	$248, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 144(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 192(%rsp)
	movaps	%xmm0, 208(%rsp)
	movl	$0, 112(%rsp)
	movl	$0, 224(%rsp)
	movl	$0, 12(%rsp)
	call	__isoc99_scanf@PLT
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	128(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	xorl	%esi, %esi
	xorl	%eax, %eax
	movl	%r8d, %edi
	testl	%r8d, %r8d
	jg	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	addl	$1, %eax
	cmpl	%edi, %eax
	jge	.L6
.L2:
	leal	(%rax,%rsi), %edx
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movzbl	128(%rsp,%rcx), %ecx
	cmpb	%cl, 16(%rsp,%rdx)
	je	.L16
	addl	$1, %esi
	cmpl	%r8d, %esi
	jge	.L3
	movl	%r8d, %edi
	subl	%esi, %edi
	testl	%edi, %edi
	jle	.L6
	xorl	%eax, %eax
	jmp	.L2
.L6:
	leal	(%rdi,%rsi,2), %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
.L7:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	leal	(%r8,%r8), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pxor	%xmm0, %xmm0
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	leaq	.LC1(%rip), %rbp
	subq	$248, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 144(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 192(%rsp)
	movaps	%xmm0, 208(%rsp)
	movl	$0, 112(%rsp)
	movl	$0, 224(%rsp)
	movl	$0, 12(%rsp)
	call	__isoc99_scanf@PLT
	leaq	16(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	128(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	xorl	%esi, %esi
	xorl	%eax, %eax
	movl	%r8d, %edi
	testl	%r8d, %r8d
	jg	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	addl	$1, %eax
	cmpl	%edi, %eax
	jge	.L6
.L2:
	leal	(%rax,%rsi), %edx
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movzbl	128(%rsp,%rcx), %ecx
	cmpb	%cl, 16(%rsp,%rdx)
	je	.L16
	addl	$1, %esi
	cmpl	%r8d, %esi
	jge	.L3
	movl	%r8d, %edi
	subl	%esi, %edi
	testl	%edi, %edi
	jle	.L6
	xorl	%eax, %eax
	jmp	.L2
.L6:
	leal	(%rdi,%rsi,2), %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
.L7:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	leal	(%r8,%r8), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```