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(){
char s[30],a[101010];
int ans=0,n,i,j,k,x,y,o,z=0,l,b;
scanf("%d\n",&n);
scanf("%s\n",s);
for(i=0;i<n;i++){
for(j=0;j<100010;j++){
a[j]='A';
}
scanf("%s\n",a);
x=strlen(s),y=strlen(a);
for(j=1;j<=y;j++){
	for(l=0;l<y;l++){
		b=l;
		for(k=0;k<x;k++){
			if(s[k]==a[b]){
			b=b+j;
			}
			else{
			break;
			}
		}
		if(k==x){
		z=1;
		break;
		}
	}
	if(z==1){
	ans++,z=0;
	break;
	}
}
}
printf("%d\n",ans);
return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%s\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
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2800, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -101092(%rbp)
	movl	$0, -101076(%rbp)
	leaq	-101096(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-101056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -101088(%rbp)
	jmp	.L2
.L18:
	movl	$0, -101084(%rbp)
	jmp	.L3
.L4:
	movl	-101084(%rbp), %eax
	cltq
	movb	$65, -101024(%rbp,%rax)
	addl	$1, -101084(%rbp)
.L3:
	cmpl	$100009, -101084(%rbp)
	jle	.L4
	leaq	-101024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-101056(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -101064(%rbp)
	leaq	-101024(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -101060(%rbp)
	movl	$1, -101084(%rbp)
	jmp	.L5
.L17:
	movl	$0, -101072(%rbp)
	jmp	.L6
.L14:
	movl	-101072(%rbp), %eax
	movl	%eax, -101068(%rbp)
	movl	$0, -101080(%rbp)
	jmp	.L7
.L11:
	movl	-101080(%rbp), %eax
	cltq
	movzbl	-101056(%rbp,%rax), %edx
	movl	-101068(%rbp), %eax
	cltq
	movzbl	-101024(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L21
	movl	-101084(%rbp), %eax
	addl	%eax, -101068(%rbp)
	addl	$1, -101080(%rbp)
.L7:
	movl	-101080(%rbp), %eax
	cmpl	-101064(%rbp), %eax
	jl	.L11
	jmp	.L10
.L21:
	nop
.L10:
	movl	-101080(%rbp), %eax
	cmpl	-101064(%rbp), %eax
	jne	.L12
	movl	$1, -101076(%rbp)
	jmp	.L13
.L12:
	addl	$1, -101072(%rbp)
.L6:
	movl	-101072(%rbp), %eax
	cmpl	-101060(%rbp), %eax
	jl	.L14
.L13:
	cmpl	$1, -101076(%rbp)
	jne	.L15
	addl	$1, -101092(%rbp)
	movl	$0, -101076(%rbp)
	jmp	.L16
.L15:
	addl	$1, -101084(%rbp)
.L5:
	movl	-101084(%rbp), %eax
	cmpl	-101060(%rbp), %eax
	jle	.L17
.L16:
	addl	$1, -101088(%rbp)
.L2:
	movl	-101096(%rbp), %eax
	cmpl	%eax, -101088(%rbp)
	jl	.L18
	movl	-101092(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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\n"
.LC1:
	.string	"%s\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
	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
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98360
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2792, %rsp
	.cfi_def_cfa_offset 101152
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 101080(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	leaq	32(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L18
	movl	$0, 8(%rsp)
	xorl	%r14d, %r14d
	leaq	64(%rsp), %r13
	leaq	31(%rsp), %rbx
.L16:
	movl	$100010, %edx
	movl	$65, %esi
	movq	%r13, %rdi
	call	memset@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%r13, %rdi
	movq	%rax, %r15
	movl	%eax, 12(%rsp)
	call	strlen@PLT
	movl	$1, %esi
	leal	1(%r15), %edx
	movl	%r15d, %r9d
	testq	%rax, %rax
	movl	%eax, %r8d
	je	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rcx
	xorl	%r10d, %r10d
	cmpq	$1, %rsi
	jne	.L40
	.p2align 4,,10
	.p2align 3
.L12:
	testq	%r15, %r15
	je	.L7
	movl	$1, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%eax, %edi
	addq	$1, %rax
	cmpq	%rax, %rdx
	je	.L41
.L11:
	movzbl	-1(%rcx,%rax), %edi
	cmpb	%dil, (%rbx,%rax)
	je	.L42
.L10:
	addl	$1, %r10d
	addq	$1, %rcx
	cmpl	%r10d, %r8d
	jne	.L12
	addq	$1, %rsi
	cmpl	%esi, %r8d
	jge	.L3
.L4:
	addl	$1, 8(%rsp)
	movl	8(%rsp), %eax
	cmpl	%eax, 28(%rsp)
	jg	.L16
.L2:
	xorl	%eax, %eax
	movl	%r14d, %edx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	101080(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$101096, %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
.L41:
	.cfi_restore_state
	cmpl	%edi, %r9d
	jne	.L10
.L7:
	addl	$1, 8(%rsp)
	addl	$1, %r14d
	movl	8(%rsp), %eax
	cmpl	%eax, 28(%rsp)
	jg	.L16
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L40:
	movq	%r13, %r11
	xorl	%r10d, %r10d
	.p2align 4,,10
	.p2align 3
.L8:
	testq	%r15, %r15
	je	.L7
	movq	%r11, %rcx
	movl	$1, %eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L45:
	movl	%eax, %edi
	addq	$1, %rax
	addq	%rsi, %rcx
	cmpq	%rdx, %rax
	je	.L44
.L6:
	movzbl	(%rcx), %edi
	cmpb	%dil, (%rbx,%rax)
	je	.L45
	addl	$1, %r10d
	addq	$1, %r11
	cmpl	%r10d, %r8d
	jne	.L8
.L46:
	addq	$1, %rsi
	cmpl	%esi, %r8d
	jge	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L44:
	cmpl	%edi, %r9d
	je	.L7
	addl	$1, %r10d
	addq	$1, %r11
	cmpl	%r10d, %r8d
	jne	.L8
	jmp	.L46
.L18:
	xorl	%r14d, %r14d
	jmp	.L2
.L43:
	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\n"
.LC1:
	.string	"%s\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
	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
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98360
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2792, %rsp
	.cfi_def_cfa_offset 101152
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 101080(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	leaq	32(%rsp), %rbp
	call	__isoc99_scanf@PLT
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L18
	movl	$0, 8(%rsp)
	xorl	%r14d, %r14d
	leaq	64(%rsp), %r13
	leaq	31(%rsp), %rbx
.L16:
	movl	$100010, %edx
	movl	$65, %esi
	movq	%r13, %rdi
	call	memset@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%r13, %rdi
	movq	%rax, %r15
	movl	%eax, 12(%rsp)
	call	strlen@PLT
	movl	$1, %esi
	leal	1(%r15), %edx
	movl	%r15d, %r9d
	testq	%rax, %rax
	movl	%eax, %r8d
	je	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rcx
	xorl	%r10d, %r10d
	cmpq	$1, %rsi
	jne	.L40
	.p2align 4,,10
	.p2align 3
.L12:
	testq	%r15, %r15
	je	.L7
	movl	$1, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%eax, %edi
	addq	$1, %rax
	cmpq	%rax, %rdx
	je	.L41
.L11:
	movzbl	-1(%rcx,%rax), %edi
	cmpb	%dil, (%rbx,%rax)
	je	.L42
.L10:
	addl	$1, %r10d
	addq	$1, %rcx
	cmpl	%r10d, %r8d
	jne	.L12
	addq	$1, %rsi
	cmpl	%esi, %r8d
	jge	.L3
.L4:
	addl	$1, 8(%rsp)
	movl	8(%rsp), %eax
	cmpl	%eax, 28(%rsp)
	jg	.L16
.L2:
	xorl	%eax, %eax
	movl	%r14d, %edx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	call	__printf_chk@PLT
	movq	101080(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$101096, %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
.L41:
	.cfi_restore_state
	cmpl	%edi, %r9d
	jne	.L10
.L7:
	addl	$1, 8(%rsp)
	addl	$1, %r14d
	movl	8(%rsp), %eax
	cmpl	%eax, 28(%rsp)
	jg	.L16
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L40:
	movq	%r13, %r11
	xorl	%r10d, %r10d
	.p2align 4,,10
	.p2align 3
.L8:
	testq	%r15, %r15
	je	.L7
	movq	%r11, %rcx
	movl	$1, %eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L45:
	movl	%eax, %edi
	addq	$1, %rax
	addq	%rsi, %rcx
	cmpq	%rdx, %rax
	je	.L44
.L6:
	movzbl	(%rcx), %edi
	cmpb	%dil, (%rbx,%rax)
	je	.L45
	addl	$1, %r10d
	addq	$1, %r11
	cmpl	%r10d, %r8d
	jne	.L8
.L46:
	addq	$1, %rsi
	cmpl	%esi, %r8d
	jge	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L44:
	cmpl	%edi, %r9d
	je	.L7
	addl	$1, %r10d
	addq	$1, %r11
	cmpl	%r10d, %r8d
	jne	.L8
	jmp	.L46
.L18:
	xorl	%r14d, %r14d
	jmp	.L2
.L43:
	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(){
char s[30],a[101010];
int ans=0,n,i,j,k,x,y,o,z=0,l,b;
scanf("%d\n",&n);
scanf("%s\n",s);
for(i=0;i<n;i++){
for(j=0;j<100010;j++){
a[j]='A';
}
scanf("%s\n",a);
x=strlen(s),y=strlen(a);
for(j=1;j<=y;j++){
	for(l=0;l<y;l++){
		b=l;
		for(k=0;k<x;k++){
			if(s[k]==a[b]){
			b=b+j;
			}
			else{
			break;
			}
		}
		if(k==x){
		z=1;
		break;
		}
	}
	if(z==1){
	ans++,z=0;
	break;
	}
}
}
printf("%d\n",ans);
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(){
char s[30],a[101010];
int ans=0,n,i,j,k,x,y,o,z=0,l,b;
scanf("%d\n",&n);
scanf("%s\n",s);
for(i=0;i<n;i++){
for(j=0;j<100010;j++){
a[j]='A';
}
scanf("%s\n",a);
x=strlen(s),y=strlen(a);
for(j=1;j<=y;j++){
	for(l=0;l<y;l++){
		b=l;
		for(k=0;k<x;k++){
			if(s[k]==a[b]){
			b=b+j;
			}
			else{
			break;
			}
		}
		if(k==x){
		z=1;
		break;
		}
	}
	if(z==1){
	ans++,z=0;
	break;
	}
}
}
printf("%d\n",ans);
return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%s\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
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2800, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -101092(%rbp)
	movl	$0, -101076(%rbp)
	leaq	-101096(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-101056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -101088(%rbp)
	jmp	.L2
.L18:
	movl	$0, -101084(%rbp)
	jmp	.L3
.L4:
	movl	-101084(%rbp), %eax
	cltq
	movb	$65, -101024(%rbp,%rax)
	addl	$1, -101084(%rbp)
.L3:
	cmpl	$100009, -101084(%rbp)
	jle	.L4
	leaq	-101024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-101056(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -101064(%rbp)
	leaq	-101024(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -101060(%rbp)
	movl	$1, -101084(%rbp)
	jmp	.L5
.L17:
	movl	$0, -101072(%rbp)
	jmp	.L6
.L14:
	movl	-101072(%rbp), %eax
	movl	%eax, -101068(%rbp)
	movl	$0, -101080(%rbp)
	jmp	.L7
.L11:
	movl	-101080(%rbp), %eax
	cltq
	movzbl	-101056(%rbp,%rax), %edx
	movl	-101068(%rbp), %eax
	cltq
	movzbl	-101024(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L21
	movl	-101084(%rbp), %eax
	addl	%eax, -101068(%rbp)
	addl	$1, -101080(%rbp)
.L7:
	movl	-101080(%rbp), %eax
	cmpl	-101064(%rbp), %eax
	jl	.L11
	jmp	.L10
.L21:
	nop
.L10:
	movl	-101080(%rbp), %eax
	cmpl	-101064(%rbp), %eax
	jne	.L12
	movl	$1, -101076(%rbp)
	jmp	.L13
.L12:
	addl	$1, -101072(%rbp)
.L6:
	movl	-101072(%rbp), %eax
	cmpl	-101060(%rbp), %eax
	jl	.L14
.L13:
	cmpl	$1, -101076(%rbp)
	jne	.L15
	addl	$1, -101092(%rbp)
	movl	$0, -101076(%rbp)
	jmp	.L16
.L15:
	addl	$1, -101084(%rbp)
.L5:
	movl	-101084(%rbp), %eax
	cmpl	-101060(%rbp), %eax
	jle	.L17
.L16:
	addl	$1, -101088(%rbp)
.L2:
	movl	-101096(%rbp), %eax
	cmpl	%eax, -101088(%rbp)
	jl	.L18
	movl	-101092(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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\n"
.LC1:
	.string	"%s\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
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2800, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -101092(%rbp)
	movl	$0, -101076(%rbp)
	leaq	-101096(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-101056(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -101088(%rbp)
	jmp	.L2
.L18:
	movl	$0, -101084(%rbp)
	jmp	.L3
.L4:
	movl	-101084(%rbp), %eax
	cltq
	movb	$65, -101024(%rbp,%rax)
	addl	$1, -101084(%rbp)
.L3:
	cmpl	$100009, -101084(%rbp)
	jle	.L4
	leaq	-101024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-101056(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -101064(%rbp)
	leaq	-101024(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -101060(%rbp)
	movl	$1, -101084(%rbp)
	jmp	.L5
.L17:
	movl	$0, -101072(%rbp)
	jmp	.L6
.L14:
	movl	-101072(%rbp), %eax
	movl	%eax, -101068(%rbp)
	movl	$0, -101080(%rbp)
	jmp	.L7
.L11:
	movl	-101080(%rbp), %eax
	cltq
	movzbl	-101056(%rbp,%rax), %edx
	movl	-101068(%rbp), %eax
	cltq
	movzbl	-101024(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L21
	movl	-101084(%rbp), %eax
	addl	%eax, -101068(%rbp)
	addl	$1, -101080(%rbp)
.L7:
	movl	-101080(%rbp), %eax
	cmpl	-101064(%rbp), %eax
	jl	.L11
	jmp	.L10
.L21:
	nop
.L10:
	movl	-101080(%rbp), %eax
	cmpl	-101064(%rbp), %eax
	jne	.L12
	movl	$1, -101076(%rbp)
	jmp	.L13
.L12:
	addl	$1, -101072(%rbp)
.L6:
	movl	-101072(%rbp), %eax
	cmpl	-101060(%rbp), %eax
	jl	.L14
.L13:
	cmpl	$1, -101076(%rbp)
	jne	.L15
	addl	$1, -101092(%rbp)
	movl	$0, -101076(%rbp)
	jmp	.L16
.L15:
	addl	$1, -101084(%rbp)
.L5:
	movl	-101084(%rbp), %eax
	cmpl	-101060(%rbp), %eax
	jle	.L17
.L16:
	addl	$1, -101088(%rbp)
.L2:
	movl	-101096(%rbp), %eax
	cmpl	%eax, -101088(%rbp)
	jl	.L18
	movl	-101092(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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:
