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 main(void)
{
	int n,cnt,i,j,k,l,flg1,flg2,sa,len1,len2,k1;
	char s[101],name[26];
	scanf("%d",&n);
	scanf("%s",name);
	len1=strlen(name);
	cnt=0;
	for(i=0;i<n;i++){
		flg1=0;
		scanf("%s",s);
		len2=strlen(s);
		for(j=0;j<len2-1;j++){
			for(k=j+1;k<len2;k++){
				if(s[j]==name[0]&&s[k]==name[1]){
					sa=k-j;
				    flg2=0;
					k1=k+sa;
				    for(l=2;l<len1;l++){
						if(k1>len2){
							flg2=1;
							break;
						}
					    if(s[k1]!=name[l]){
						   flg2=1;
						   break;
					    }
						if(s[k1]==name[l]){
							k1+=sa;
						}
				     }
				    if(flg2==0){
					   flg1=1;
				    }
				}
			}
		}
		if(flg1==1){
			cnt++; 
			}
	}
	printf("%d\n",cnt);
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	$216, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rsi
	leaq	64(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rax, 16(%rsp)
	movl	60(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	movl	$0, 40(%rsp)
	leaq	96(%rsp), %r15
	movl	$0, 44(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r15, %rdi
	call	strlen@PLT
	movl	%eax, %r8d
	cmpq	$1, %rax
	jbe	.L3
	leal	-2(%rax), %r13d
	movq	16(%rsp), %rax
	movl	$0, 36(%rsp)
	movl	$1, %r11d
	movzbl	64(%rsp), %r10d
	movzbl	65(%rsp), %r12d
	addq	$2, %r13
	leaq	95(%rsp), %r14
	subl	$3, %eax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%r11d, %r8d
	jle	.L4
	movzbl	(%r14,%r11), %r9d
	leal	1(%r11), %edx
	movq	%r11, %rax
	movl	$1, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	addl	$1, %ecx
	addl	$2, %edx
	cmpl	%eax, %r8d
	jle	.L4
.L8:
	cmpb	%r10b, %r9b
	jne	.L5
	cmpb	%r12b, (%r15,%rax)
	jne	.L5
	cmpq	$2, 16(%rsp)
	jbe	.L13
	cmpl	%edx, %r8d
	jl	.L5
	movq	24(%rsp), %rbx
	leaq	66(%rsp), %rsi
	movl	%ecx, %ebp
	movslq	%edx, %rdi
	movq	%rax, 8(%rsp)
	addq	%rsi, %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	cmpq	%rbx, %rsi
	je	.L21
	addq	%rbp, %rdi
	addq	$1, %rsi
	cmpl	%edi, %r8d
	jl	.L18
.L6:
	movzbl	(%rsi), %eax
	cmpb	%al, (%r15,%rdi)
	je	.L22
.L18:
	movq	8(%rsp), %rax
	addl	$1, %ecx
	addl	$2, %edx
	addq	$1, %rax
	cmpl	%eax, %r8d
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	addq	$1, %r11
	cmpq	%r13, %r11
	jne	.L9
	movl	36(%rsp), %ebx
	addl	%ebx, 44(%rsp)
.L3:
	addl	$1, 40(%rsp)
	movl	40(%rsp), %eax
	cmpl	%eax, 60(%rsp)
	jg	.L10
.L2:
	movl	44(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$216, %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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	$1, 36(%rsp)
	movq	8(%rsp), %rax
	jmp	.L5
.L13:
	movl	$1, 36(%rsp)
	jmp	.L5
.L12:
	movl	$0, 44(%rsp)
	jmp	.L2
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	$216, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rsi
	leaq	64(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rax, 16(%rsp)
	movl	60(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	movl	$0, 40(%rsp)
	leaq	96(%rsp), %r15
	movl	$0, 44(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r15, %rdi
	call	strlen@PLT
	movl	%eax, %r8d
	cmpq	$1, %rax
	jbe	.L3
	leal	-2(%rax), %r13d
	movq	16(%rsp), %rax
	movl	$0, 36(%rsp)
	movl	$1, %r11d
	movzbl	64(%rsp), %r10d
	movzbl	65(%rsp), %r12d
	addq	$2, %r13
	leaq	95(%rsp), %r14
	subl	$3, %eax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%r11d, %r8d
	jle	.L4
	movzbl	(%r14,%r11), %r9d
	leal	1(%r11), %edx
	movq	%r11, %rax
	movl	$1, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	addl	$1, %ecx
	addl	$2, %edx
	cmpl	%eax, %r8d
	jle	.L4
.L8:
	cmpb	%r10b, %r9b
	jne	.L5
	cmpb	%r12b, (%r15,%rax)
	jne	.L5
	cmpq	$2, 16(%rsp)
	jbe	.L13
	cmpl	%edx, %r8d
	jl	.L5
	movq	24(%rsp), %rbx
	leaq	66(%rsp), %rsi
	movl	%ecx, %ebp
	movslq	%edx, %rdi
	movq	%rax, 8(%rsp)
	addq	%rsi, %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	cmpq	%rbx, %rsi
	je	.L21
	addq	%rbp, %rdi
	addq	$1, %rsi
	cmpl	%edi, %r8d
	jl	.L18
.L6:
	movzbl	(%rsi), %eax
	cmpb	%al, (%r15,%rdi)
	je	.L22
.L18:
	movq	8(%rsp), %rax
	addl	$1, %ecx
	addl	$2, %edx
	addq	$1, %rax
	cmpl	%eax, %r8d
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	addq	$1, %r11
	cmpq	%r13, %r11
	jne	.L9
	movl	36(%rsp), %ebx
	addl	%ebx, 44(%rsp)
.L3:
	addl	$1, 40(%rsp)
	movl	40(%rsp), %eax
	cmpl	%eax, 60(%rsp)
	jg	.L10
.L2:
	movl	44(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$216, %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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	$1, 36(%rsp)
	movq	8(%rsp), %rax
	jmp	.L5
.L13:
	movl	$1, 36(%rsp)
	jmp	.L5
.L12:
	movl	$0, 44(%rsp)
	jmp	.L2
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	$216, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rsi
	leaq	64(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rax, 16(%rsp)
	movl	60(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	movl	$0, 40(%rsp)
	leaq	96(%rsp), %r15
	movl	$0, 44(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r15, %rdi
	call	strlen@PLT
	movl	%eax, %r8d
	cmpq	$1, %rax
	jbe	.L3
	leal	-2(%rax), %r13d
	movq	16(%rsp), %rax
	movl	$0, 36(%rsp)
	movl	$1, %r11d
	movzbl	64(%rsp), %r10d
	movzbl	65(%rsp), %r12d
	addq	$2, %r13
	leaq	95(%rsp), %r14
	subl	$3, %eax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%r11d, %r8d
	jle	.L4
	movzbl	(%r14,%r11), %r9d
	leal	1(%r11), %edx
	movq	%r11, %rax
	movl	$1, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	addl	$1, %ecx
	addl	$2, %edx
	cmpl	%eax, %r8d
	jle	.L4
.L8:
	cmpb	%r10b, %r9b
	jne	.L5
	cmpb	%r12b, (%r15,%rax)
	jne	.L5
	cmpq	$2, 16(%rsp)
	jbe	.L13
	cmpl	%edx, %r8d
	jl	.L5
	movq	24(%rsp), %rbx
	leaq	66(%rsp), %rsi
	movl	%ecx, %ebp
	movslq	%edx, %rdi
	movq	%rax, 8(%rsp)
	addq	%rsi, %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	cmpq	%rbx, %rsi
	je	.L21
	addq	%rbp, %rdi
	addq	$1, %rsi
	cmpl	%edi, %r8d
	jl	.L18
.L6:
	movzbl	(%rsi), %eax
	cmpb	%al, (%r15,%rdi)
	je	.L22
.L18:
	movq	8(%rsp), %rax
	addl	$1, %ecx
	addl	$2, %edx
	addq	$1, %rax
	cmpl	%eax, %r8d
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	addq	$1, %r11
	cmpq	%r13, %r11
	jne	.L9
	movl	36(%rsp), %ebx
	addl	%ebx, 44(%rsp)
.L3:
	addl	$1, 40(%rsp)
	movl	40(%rsp), %eax
	cmpl	%eax, 60(%rsp)
	jg	.L10
.L2:
	movl	44(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$216, %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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	$1, 36(%rsp)
	movq	8(%rsp), %rax
	jmp	.L5
.L13:
	movl	$1, 36(%rsp)
	jmp	.L5
.L12:
	movl	$0, 44(%rsp)
	jmp	.L2
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>
#include<string.h>
int main(void)
{
	int n,cnt,i,j,k,l,flg1,flg2,sa,len1,len2,k1;
	char s[101],name[26];
	scanf("%d",&n);
	scanf("%s",name);
	len1=strlen(name);
	cnt=0;
	for(i=0;i<n;i++){
		flg1=0;
		scanf("%s",s);
		len2=strlen(s);
		for(j=0;j<len2-1;j++){
			for(k=j+1;k<len2;k++){
				if(s[j]==name[0]&&s[k]==name[1]){
					sa=k-j;
				    flg2=0;
					k1=k+sa;
				    for(l=2;l<len1;l++){
						if(k1>len2){
							flg2=1;
							break;
						}
					    if(s[k1]!=name[l]){
						   flg2=1;
						   break;
					    }
						if(s[k1]==name[l]){
							k1+=sa;
						}
				     }
				    if(flg2==0){
					   flg1=1;
				    }
				}
			}
		}
		if(flg1==1){
			cnt++; 
			}
	}
	printf("%d\n",cnt);
	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 main(void)
{
	int n,cnt,i,j,k,l,flg1,flg2,sa,len1,len2,k1;
	char s[101],name[26];
	scanf("%d",&n);
	scanf("%s",name);
	len1=strlen(name);
	cnt=0;
	for(i=0;i<n;i++){
		flg1=0;
		scanf("%s",s);
		len2=strlen(s);
		for(j=0;j<len2-1;j++){
			for(k=j+1;k<len2;k++){
				if(s[j]==name[0]&&s[k]==name[1]){
					sa=k-j;
				    flg2=0;
					k1=k+sa;
				    for(l=2;l<len1;l++){
						if(k1>len2){
							flg2=1;
							break;
						}
					    if(s[k1]!=name[l]){
						   flg2=1;
						   break;
					    }
						if(s[k1]==name[l]){
							k1+=sa;
						}
				     }
				    if(flg2==0){
					   flg1=1;
				    }
				}
			}
		}
		if(flg1==1){
			cnt++; 
			}
	}
	printf("%d\n",cnt);
	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:

4
bar
abracadabra
bear
bar
bbraxbara
 4
rab
abracadabra
bear
bar
bbraxbara
 4
rab
abracadabra
bear
bar
arabxarbb
 4
qab
abracadabra
bear
bar
arabxarbb
 4
qab
abracadabra
bear
bra
arabxarbb
 4
qab
abrbcadaara
bear
bra
arabxarbb
 4
qab
abrbcadaara
bear
bra
arbbxarbb
 4
qab
abrbcadaara
raeb
bra
arbbxarbb
 4
qab
abrbcadaara
rafb
bra
arbbxarbb
 4
baq
abrbcadaara
rafb
bra
arbbxarbb

3
 1
 2
 0
 0
 0
 0
 0
 0
 0

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 main(void)
{
	int n,cnt,i,j,k,l,flg1,flg2,sa,len1,len2,k1;
	char s[101],name[26];
	scanf("%d",&n);
	scanf("%s",name);
	len1=strlen(name);
	cnt=0;
	for(i=0;i<n;i++){
		flg1=0;
		scanf("%s",s);
		len2=strlen(s);
		for(j=0;j<len2-1;j++){
			for(k=j+1;k<len2;k++){
				if(s[j]==name[0]&&s[k]==name[1]){
					sa=k-j;
				    flg2=0;
					k1=k+sa;
				    for(l=2;l<len1;l++){
						if(k1>len2){
							flg2=1;
							break;
						}
					    if(s[k1]!=name[l]){
						   flg2=1;
						   break;
					    }
						if(s[k1]==name[l]){
							k1+=sa;
						}
				     }
				    if(flg2==0){
					   flg1=1;
				    }
				}
			}
		}
		if(flg1==1){
			cnt++; 
			}
	}
	printf("%d\n",cnt);
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	$216, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rsi
	leaq	64(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rax, 16(%rsp)
	movl	60(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	movl	$0, 40(%rsp)
	leaq	96(%rsp), %r15
	movl	$0, 44(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r15, %rdi
	call	strlen@PLT
	movl	%eax, %r8d
	cmpq	$1, %rax
	jbe	.L3
	leal	-2(%rax), %r13d
	movq	16(%rsp), %rax
	movl	$0, 36(%rsp)
	movl	$1, %r11d
	movzbl	64(%rsp), %r10d
	movzbl	65(%rsp), %r12d
	addq	$2, %r13
	leaq	95(%rsp), %r14
	subl	$3, %eax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%r11d, %r8d
	jle	.L4
	movzbl	(%r14,%r11), %r9d
	leal	1(%r11), %edx
	movq	%r11, %rax
	movl	$1, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	addl	$1, %ecx
	addl	$2, %edx
	cmpl	%eax, %r8d
	jle	.L4
.L8:
	cmpb	%r10b, %r9b
	jne	.L5
	cmpb	%r12b, (%r15,%rax)
	jne	.L5
	cmpq	$2, 16(%rsp)
	jbe	.L13
	cmpl	%edx, %r8d
	jl	.L5
	movq	24(%rsp), %rbx
	leaq	66(%rsp), %rsi
	movl	%ecx, %ebp
	movslq	%edx, %rdi
	movq	%rax, 8(%rsp)
	addq	%rsi, %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	cmpq	%rbx, %rsi
	je	.L21
	addq	%rbp, %rdi
	addq	$1, %rsi
	cmpl	%edi, %r8d
	jl	.L18
.L6:
	movzbl	(%rsi), %eax
	cmpb	%al, (%r15,%rdi)
	je	.L22
.L18:
	movq	8(%rsp), %rax
	addl	$1, %ecx
	addl	$2, %edx
	addq	$1, %rax
	cmpl	%eax, %r8d
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	addq	$1, %r11
	cmpq	%r13, %r11
	jne	.L9
	movl	36(%rsp), %ebx
	addl	%ebx, 44(%rsp)
.L3:
	addl	$1, 40(%rsp)
	movl	40(%rsp), %eax
	cmpl	%eax, 60(%rsp)
	jg	.L10
.L2:
	movl	44(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$216, %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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	$1, 36(%rsp)
	movq	8(%rsp), %rax
	jmp	.L5
.L13:
	movl	$1, 36(%rsp)
	jmp	.L5
.L12:
	movl	$0, 44(%rsp)
	jmp	.L2
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.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	$216, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rsi
	leaq	64(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rax, 16(%rsp)
	movl	60(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	movl	$0, 40(%rsp)
	leaq	96(%rsp), %r15
	movl	$0, 44(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r15, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r15, %rdi
	call	strlen@PLT
	movl	%eax, %r8d
	cmpq	$1, %rax
	jbe	.L3
	leal	-2(%rax), %r13d
	movq	16(%rsp), %rax
	movl	$0, 36(%rsp)
	movl	$1, %r11d
	movzbl	64(%rsp), %r10d
	movzbl	65(%rsp), %r12d
	addq	$2, %r13
	leaq	95(%rsp), %r14
	subl	$3, %eax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%r11d, %r8d
	jle	.L4
	movzbl	(%r14,%r11), %r9d
	leal	1(%r11), %edx
	movq	%r11, %rax
	movl	$1, %ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	addq	$1, %rax
	addl	$1, %ecx
	addl	$2, %edx
	cmpl	%eax, %r8d
	jle	.L4
.L8:
	cmpb	%r10b, %r9b
	jne	.L5
	cmpb	%r12b, (%r15,%rax)
	jne	.L5
	cmpq	$2, 16(%rsp)
	jbe	.L13
	cmpl	%edx, %r8d
	jl	.L5
	movq	24(%rsp), %rbx
	leaq	66(%rsp), %rsi
	movl	%ecx, %ebp
	movslq	%edx, %rdi
	movq	%rax, 8(%rsp)
	addq	%rsi, %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	cmpq	%rbx, %rsi
	je	.L21
	addq	%rbp, %rdi
	addq	$1, %rsi
	cmpl	%edi, %r8d
	jl	.L18
.L6:
	movzbl	(%rsi), %eax
	cmpb	%al, (%r15,%rdi)
	je	.L22
.L18:
	movq	8(%rsp), %rax
	addl	$1, %ecx
	addl	$2, %edx
	addq	$1, %rax
	cmpl	%eax, %r8d
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	addq	$1, %r11
	cmpq	%r13, %r11
	jne	.L9
	movl	36(%rsp), %ebx
	addl	%ebx, 44(%rsp)
.L3:
	addl	$1, 40(%rsp)
	movl	40(%rsp), %eax
	cmpl	%eax, 60(%rsp)
	jg	.L10
.L2:
	movl	44(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$216, %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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	$1, 36(%rsp)
	movq	8(%rsp), %rax
	jmp	.L5
.L13:
	movl	$1, 36(%rsp)
	jmp	.L5
.L12:
	movl	$0, 44(%rsp)
	jmp	.L2
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```