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 <string.h>
int N;
char s[101];
char t[101];
int cmp(){
  int d=N;
  int flag=0;
  int i,j;
  for( i=N-1;i>=0;i--){
    flag=0;
    if(s[i]==t[0]){
      for(j=1;i+j<N;j++){
	if(s[i+j]!=t[j]){
	  //printf("not %c %c\n",s[i+j],t[j]);
	  flag=1;
	}
      }
    if(flag==0)d=i;
    }
    // printf("%d\n",d);
  }
  return d;
}
int main(){
  int len;
  scanf("%d",&N);
  scanf("%s %s",s,t);
  if(N==1){
    if(s[0]==t[0])printf("1\n");
    else printf("2\n");
    return 0;
  }
  len=cmp();
  printf("%d\n",len+N);
  
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB35:
	.cfi_startproc
	endbr64
	movl	N(%rip), %r8d
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movl	%r8d, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subl	$1, %edx
	js	.L7
	movzbl	t(%rip), %ebx
	movslq	%edx, %rdx
	movl	%r8d, %esi
	movl	%r8d, %r12d
	leaq	s(%rip), %rdi
	leaq	t(%rip), %rbp
	movl	$1, %r10d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	subq	$1, %rdx
	subl	$1, %esi
	testl	%edx, %edx
	js	.L1
.L6:
	movl	%edx, %r11d
	cmpb	%bl, (%rdi,%rdx)
	jne	.L3
	cmpl	%esi, %r8d
	jle	.L8
	movq	%rbp, %r9
	movslq	%esi, %rax
	xorl	%ecx, %ecx
	subq	%rdx, %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movzbl	(%r9,%rax), %r14d
	cmpb	%r14b, (%rdi,%rax)
	cmovne	%r10d, %ecx
	addq	$1, %rax
	cmpl	%eax, %r8d
	jg	.L5
	testl	%ecx, %ecx
	cmove	%r11d, %r12d
	subq	$1, %rdx
	subl	$1, %esi
	testl	%edx, %edx
	jns	.L6
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	movl	%r12d, %eax
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movl	%edx, %r12d
	jmp	.L3
.L7:
	movl	%r8d, %r12d
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %s"
.LC2:
	.string	"1"
.LC3:
	.string	"2"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	t(%rip), %rdx
	leaq	s(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	N(%rip), %ebx
	cmpl	$1, %ebx
	je	.L19
	xorl	%eax, %eax
	call	cmp
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	leal	(%rbx,%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L17:
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	movzbl	t(%rip), %eax
	cmpb	%al, s(%rip)
	je	.L20
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L17
.L20:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L17
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 101
t:
	.zero	101
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 101
s:
	.zero	101
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB35:
	.cfi_startproc
	endbr64
	movl	N(%rip), %r8d
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movl	%r8d, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subl	$1, %edx
	js	.L7
	movzbl	t(%rip), %ebx
	movslq	%edx, %rdx
	movl	%r8d, %esi
	movl	%r8d, %r12d
	leaq	s(%rip), %rdi
	leaq	t(%rip), %rbp
	movl	$1, %r10d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	subq	$1, %rdx
	subl	$1, %esi
	testl	%edx, %edx
	js	.L1
.L6:
	movl	%edx, %r11d
	cmpb	%bl, (%rdi,%rdx)
	jne	.L3
	cmpl	%esi, %r8d
	jle	.L8
	movq	%rbp, %r9
	movslq	%esi, %rax
	xorl	%ecx, %ecx
	subq	%rdx, %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movzbl	(%r9,%rax), %r14d
	cmpb	%r14b, (%rdi,%rax)
	cmovne	%r10d, %ecx
	addq	$1, %rax
	cmpl	%eax, %r8d
	jg	.L5
	testl	%ecx, %ecx
	cmove	%r11d, %r12d
	subq	$1, %rdx
	subl	$1, %esi
	testl	%edx, %edx
	jns	.L6
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	movl	%r12d, %eax
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movl	%edx, %r12d
	jmp	.L3
.L7:
	movl	%r8d, %r12d
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %s"
.LC2:
	.string	"1"
.LC3:
	.string	"2"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	t(%rip), %rdx
	leaq	s(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	N(%rip), %ebx
	cmpl	$1, %ebx
	je	.L19
	xorl	%eax, %eax
	call	cmp
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	leal	(%rbx,%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L17:
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	movzbl	t(%rip), %eax
	cmpb	%al, s(%rip)
	je	.L20
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L17
.L20:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L17
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 101
t:
	.zero	101
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 101
s:
	.zero	101
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB35:
	.cfi_startproc
	endbr64
	movl	N(%rip), %r8d
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movl	%r8d, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subl	$1, %edx
	js	.L7
	movzbl	t(%rip), %ebx
	movslq	%edx, %rdx
	movl	%r8d, %esi
	movl	%r8d, %r12d
	leaq	s(%rip), %rdi
	leaq	t(%rip), %rbp
	movl	$1, %r10d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	subq	$1, %rdx
	subl	$1, %esi
	testl	%edx, %edx
	js	.L1
.L6:
	movl	%edx, %r11d
	cmpb	%bl, (%rdi,%rdx)
	jne	.L3
	cmpl	%esi, %r8d
	jle	.L8
	movq	%rbp, %r9
	movslq	%esi, %rax
	xorl	%ecx, %ecx
	subq	%rdx, %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movzbl	(%r9,%rax), %r14d
	cmpb	%r14b, (%rdi,%rax)
	cmovne	%r10d, %ecx
	addq	$1, %rax
	cmpl	%eax, %r8d
	jg	.L5
	testl	%ecx, %ecx
	cmove	%r11d, %r12d
	subq	$1, %rdx
	subl	$1, %esi
	testl	%edx, %edx
	jns	.L6
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	movl	%r12d, %eax
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movl	%edx, %r12d
	jmp	.L3
.L7:
	movl	%r8d, %r12d
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %s"
.LC2:
	.string	"1"
.LC3:
	.string	"2"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	t(%rip), %rdx
	leaq	s(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	N(%rip), %ebx
	cmpl	$1, %ebx
	je	.L19
	xorl	%eax, %eax
	call	cmp
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	leal	(%rbx,%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L17:
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	movzbl	t(%rip), %eax
	cmpb	%al, s(%rip)
	je	.L20
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L17
.L20:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L17
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 101
t:
	.zero	101
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 101
s:
	.zero	101
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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 <string.h>
int N;
char s[101];
char t[101];
int cmp(){
  int d=N;
  int flag=0;
  int i,j;
  for( i=N-1;i>=0;i--){
    flag=0;
    if(s[i]==t[0]){
      for(j=1;i+j<N;j++){
	if(s[i+j]!=t[j]){
	  //printf("not %c %c\n",s[i+j],t[j]);
	  flag=1;
	}
      }
    if(flag==0)d=i;
    }
    // printf("%d\n",d);
  }
  return d;
}
int main(){
  int len;
  scanf("%d",&N);
  scanf("%s %s",s,t);
  if(N==1){
    if(s[0]==t[0])printf("1\n");
    else printf("2\n");
    return 0;
  }
  len=cmp();
  printf("%d\n",len+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>
#include <string.h>
int N;
char s[101];
char t[101];
int cmp(){
  int d=N;
  int flag=0;
  int i,j;
  for( i=N-1;i>=0;i--){
    flag=0;
    if(s[i]==t[0]){
      for(j=1;i+j<N;j++){
	if(s[i+j]!=t[j]){
	  //printf("not %c %c\n",s[i+j],t[j]);
	  flag=1;
	}
      }
    if(flag==0)d=i;
    }
    // printf("%d\n",d);
  }
  return d;
}
int main(){
  int len;
  scanf("%d",&N);
  scanf("%s %s",s,t);
  if(N==1){
    if(s[0]==t[0])printf("1\n");
    else printf("2\n");
    return 0;
  }
  len=cmp();
  printf("%d\n",len+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>
#include <string.h>
int N;
char s[101];
char t[101];
int cmp(){
  int d=N;
  int flag=0;
  int i,j;
  for( i=N-1;i>=0;i--){
    flag=0;
    if(s[i]==t[0]){
      for(j=1;i+j<N;j++){
	if(s[i+j]!=t[j]){
	  //printf("not %c %c\n",s[i+j],t[j]);
	  flag=1;
	}
      }
    if(flag==0)d=i;
    }
    // printf("%d\n",d);
  }
  return d;
}
int main(){
  int len;
  scanf("%d",&N);
  scanf("%s %s",s,t);
  if(N==1){
    if(s[0]==t[0])printf("1\n");
    else printf("2\n");
    return 0;
  }
  len=cmp();
  printf("%d\n",len+N);
  
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB35:
	.cfi_startproc
	endbr64
	movl	N(%rip), %r8d
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movl	%r8d, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subl	$1, %edx
	js	.L7
	movzbl	t(%rip), %ebx
	movslq	%edx, %rdx
	movl	%r8d, %esi
	movl	%r8d, %r12d
	leaq	s(%rip), %rdi
	leaq	t(%rip), %rbp
	movl	$1, %r10d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	subq	$1, %rdx
	subl	$1, %esi
	testl	%edx, %edx
	js	.L1
.L6:
	movl	%edx, %r11d
	cmpb	%bl, (%rdi,%rdx)
	jne	.L3
	cmpl	%esi, %r8d
	jle	.L8
	movq	%rbp, %r9
	movslq	%esi, %rax
	xorl	%ecx, %ecx
	subq	%rdx, %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movzbl	(%r9,%rax), %r14d
	cmpb	%r14b, (%rdi,%rax)
	cmovne	%r10d, %ecx
	addq	$1, %rax
	cmpl	%eax, %r8d
	jg	.L5
	testl	%ecx, %ecx
	cmove	%r11d, %r12d
	subq	$1, %rdx
	subl	$1, %esi
	testl	%edx, %edx
	jns	.L6
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	movl	%r12d, %eax
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movl	%edx, %r12d
	jmp	.L3
.L7:
	movl	%r8d, %r12d
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %s"
.LC2:
	.string	"1"
.LC3:
	.string	"2"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	t(%rip), %rdx
	leaq	s(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	N(%rip), %ebx
	cmpl	$1, %ebx
	je	.L19
	xorl	%eax, %eax
	call	cmp
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	leal	(%rbx,%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L17:
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	movzbl	t(%rip), %eax
	cmpb	%al, s(%rip)
	je	.L20
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L17
.L20:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L17
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 101
t:
	.zero	101
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 101
s:
	.zero	101
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB35:
	.cfi_startproc
	endbr64
	movl	N(%rip), %r8d
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movl	%r8d, %edx
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subl	$1, %edx
	js	.L7
	movzbl	t(%rip), %ebx
	movslq	%edx, %rdx
	movl	%r8d, %esi
	movl	%r8d, %r12d
	leaq	s(%rip), %rdi
	leaq	t(%rip), %rbp
	movl	$1, %r10d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	subq	$1, %rdx
	subl	$1, %esi
	testl	%edx, %edx
	js	.L1
.L6:
	movl	%edx, %r11d
	cmpb	%bl, (%rdi,%rdx)
	jne	.L3
	cmpl	%esi, %r8d
	jle	.L8
	movq	%rbp, %r9
	movslq	%esi, %rax
	xorl	%ecx, %ecx
	subq	%rdx, %r9
	.p2align 4,,10
	.p2align 3
.L5:
	movzbl	(%r9,%rax), %r14d
	cmpb	%r14b, (%rdi,%rax)
	cmovne	%r10d, %ecx
	addq	$1, %rax
	cmpl	%eax, %r8d
	jg	.L5
	testl	%ecx, %ecx
	cmove	%r11d, %r12d
	subq	$1, %rdx
	subl	$1, %esi
	testl	%edx, %edx
	jns	.L6
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	movl	%r12d, %eax
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movl	%edx, %r12d
	jmp	.L3
.L7:
	movl	%r8d, %r12d
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %s"
.LC2:
	.string	"1"
.LC3:
	.string	"2"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	t(%rip), %rdx
	leaq	s(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	N(%rip), %ebx
	cmpl	$1, %ebx
	je	.L19
	xorl	%eax, %eax
	call	cmp
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	leal	(%rbx,%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L17:
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	movzbl	t(%rip), %eax
	cmpb	%al, s(%rip)
	je	.L20
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L17
.L20:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L17
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 101
t:
	.zero	101
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 101
s:
	.zero	101
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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:
```