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<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;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$192, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-192(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -156(%rbp)
	movl	$0, -188(%rbp)
	movl	$0, -184(%rbp)
	jmp	.L2
.L15:
	movl	$0, -168(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -152(%rbp)
	movl	$0, -180(%rbp)
	jmp	.L3
.L13:
	movl	-180(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -176(%rbp)
	jmp	.L4
.L12:
	movl	-180(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movzbl	-144(%rbp), %eax
	cmpb	%al, %dl
	jne	.L5
	movl	-176(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movzbl	-143(%rbp), %eax
	cmpb	%al, %dl
	jne	.L5
	movl	-176(%rbp), %eax
	subl	-180(%rbp), %eax
	movl	%eax, -148(%rbp)
	movl	$0, -164(%rbp)
	movl	-176(%rbp), %edx
	movl	-148(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -160(%rbp)
	movl	$2, -172(%rbp)
	jmp	.L6
.L11:
	movl	-160(%rbp), %eax
	cmpl	-152(%rbp), %eax
	jle	.L7
	movl	$1, -164(%rbp)
	jmp	.L8
.L7:
	movl	-160(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-172(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L9
	movl	$1, -164(%rbp)
	jmp	.L8
.L9:
	movl	-160(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-172(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L10
	movl	-148(%rbp), %eax
	addl	%eax, -160(%rbp)
.L10:
	addl	$1, -172(%rbp)
.L6:
	movl	-172(%rbp), %eax
	cmpl	-156(%rbp), %eax
	jl	.L11
.L8:
	cmpl	$0, -164(%rbp)
	jne	.L5
	movl	$1, -168(%rbp)
.L5:
	addl	$1, -176(%rbp)
.L4:
	movl	-176(%rbp), %eax
	cmpl	-152(%rbp), %eax
	jl	.L12
	addl	$1, -180(%rbp)
.L3:
	movl	-152(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -180(%rbp)
	jl	.L13
	cmpl	$1, -168(%rbp)
	jne	.L14
	addl	$1, -188(%rbp)
.L14:
	addl	$1, -184(%rbp)
.L2:
	movl	-192(%rbp), %eax
	cmpl	%eax, -184(%rbp)
	jl	.L15
	movl	-188(%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	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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"
.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
	.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:

#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;
}

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 unoptimized 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;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$192, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-192(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -156(%rbp)
	movl	$0, -188(%rbp)
	movl	$0, -184(%rbp)
	jmp	.L2
.L15:
	movl	$0, -168(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -152(%rbp)
	movl	$0, -180(%rbp)
	jmp	.L3
.L13:
	movl	-180(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -176(%rbp)
	jmp	.L4
.L12:
	movl	-180(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movzbl	-144(%rbp), %eax
	cmpb	%al, %dl
	jne	.L5
	movl	-176(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movzbl	-143(%rbp), %eax
	cmpb	%al, %dl
	jne	.L5
	movl	-176(%rbp), %eax
	subl	-180(%rbp), %eax
	movl	%eax, -148(%rbp)
	movl	$0, -164(%rbp)
	movl	-176(%rbp), %edx
	movl	-148(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -160(%rbp)
	movl	$2, -172(%rbp)
	jmp	.L6
.L11:
	movl	-160(%rbp), %eax
	cmpl	-152(%rbp), %eax
	jle	.L7
	movl	$1, -164(%rbp)
	jmp	.L8
.L7:
	movl	-160(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-172(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L9
	movl	$1, -164(%rbp)
	jmp	.L8
.L9:
	movl	-160(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-172(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L10
	movl	-148(%rbp), %eax
	addl	%eax, -160(%rbp)
.L10:
	addl	$1, -172(%rbp)
.L6:
	movl	-172(%rbp), %eax
	cmpl	-156(%rbp), %eax
	jl	.L11
.L8:
	cmpl	$0, -164(%rbp)
	jne	.L5
	movl	$1, -168(%rbp)
.L5:
	addl	$1, -176(%rbp)
.L4:
	movl	-176(%rbp), %eax
	cmpl	-152(%rbp), %eax
	jl	.L12
	addl	$1, -180(%rbp)
.L3:
	movl	-152(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -180(%rbp)
	jl	.L13
	cmpl	$1, -168(%rbp)
	jne	.L14
	addl	$1, -188(%rbp)
.L14:
	addl	$1, -184(%rbp)
.L2:
	movl	-192(%rbp), %eax
	cmpl	%eax, -184(%rbp)
	jl	.L15
	movl	-188(%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	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$192, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-192(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-144(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -156(%rbp)
	movl	$0, -188(%rbp)
	movl	$0, -184(%rbp)
	jmp	.L2
.L15:
	movl	$0, -168(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -152(%rbp)
	movl	$0, -180(%rbp)
	jmp	.L3
.L13:
	movl	-180(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -176(%rbp)
	jmp	.L4
.L12:
	movl	-180(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movzbl	-144(%rbp), %eax
	cmpb	%al, %dl
	jne	.L5
	movl	-176(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movzbl	-143(%rbp), %eax
	cmpb	%al, %dl
	jne	.L5
	movl	-176(%rbp), %eax
	subl	-180(%rbp), %eax
	movl	%eax, -148(%rbp)
	movl	$0, -164(%rbp)
	movl	-176(%rbp), %edx
	movl	-148(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -160(%rbp)
	movl	$2, -172(%rbp)
	jmp	.L6
.L11:
	movl	-160(%rbp), %eax
	cmpl	-152(%rbp), %eax
	jle	.L7
	movl	$1, -164(%rbp)
	jmp	.L8
.L7:
	movl	-160(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-172(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L9
	movl	$1, -164(%rbp)
	jmp	.L8
.L9:
	movl	-160(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-172(%rbp), %eax
	cltq
	movzbl	-144(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L10
	movl	-148(%rbp), %eax
	addl	%eax, -160(%rbp)
.L10:
	addl	$1, -172(%rbp)
.L6:
	movl	-172(%rbp), %eax
	cmpl	-156(%rbp), %eax
	jl	.L11
.L8:
	cmpl	$0, -164(%rbp)
	jne	.L5
	movl	$1, -168(%rbp)
.L5:
	addl	$1, -176(%rbp)
.L4:
	movl	-176(%rbp), %eax
	cmpl	-152(%rbp), %eax
	jl	.L12
	addl	$1, -180(%rbp)
.L3:
	movl	-152(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -180(%rbp)
	jl	.L13
	cmpl	$1, -168(%rbp)
	jne	.L14
	addl	$1, -188(%rbp)
.L14:
	addl	$1, -184(%rbp)
.L2:
	movl	-192(%rbp), %eax
	cmpl	%eax, -184(%rbp)
	jl	.L15
	movl	-188(%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	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
