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(){
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;
}
```

Assembly Code:

```assembly
	.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:
```

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\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
```assembly
	.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:
```
```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;
}
```
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(){
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;
}
```

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(){
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;
}
```

Assembly Code:

```assembly
	.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:
```

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\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:
```