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,i,j,k,h,sl,tl,res = 0,f;
	char s[32],t[128];
	scanf("%d%s",&n,s);
	sl = strlen(s);
	for(i = 1;i <= n;i++){
		f = 0;
		scanf("%s",&t);
		tl = strlen(t);
		for(j = 0;j <= tl-sl;j++){
			for(k = 1;1;k++){
				if(j+k*(sl-1) >= tl){break;}
				for(h = 0;h < sl;h++){
					if(t[j+k*h] != s[h]){break;}
					if(h == sl-1){res++;f = 1;}
				}
				if(f){break;}
			}
			if(f){break;}
		}
	}
	printf("%d\n",res);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%s"
.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	$232, %rsp
	.cfi_def_cfa_offset 288
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rbp
	leaq	44(%rsp), %rsi
	movq	%rbp, %rdx
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	44(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	%eax, 16(%rsp)
	movq	%rax, %r15
	movl	%eax, %ebx
	movl	%eax, %ebp
	leal	-1(%rax), %r14d
	leal	(%rax,%rax), %eax
	movl	$1, 12(%rsp)
	xorl	%r12d, %r12d
	movl	%eax, 20(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 24(%rsp)
.L13:
	movq	24(%rsp), %r13
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	movl	16(%rsp), %edi
	movq	%r13, %r9
	xorl	%r11d, %r11d
	movl	%eax, %r10d
	leaq	47(%rsp), %rsi
	leal	-1(%rdi), %r13d
	movl	20(%rsp), %edi
	subl	$2, %edi
	subl	%ebx, %eax
	movl	%edi, 8(%rsp)
	movl	%eax, 4(%rsp)
	js	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	leal	0(%r13,%r11), %eax
	cmpl	%eax, %r10d
	jle	.L10
	movl	8(%rsp), %eax
	movl	$1, %ecx
	leal	(%rax,%r11), %r8d
	.p2align 4,,10
	.p2align 3
.L11:
	testq	%r15, %r15
	je	.L5
	movl	%r8d, (%rsp)
	movq	%r9, %rdx
	movl	$1, %eax
	xorl	%edi, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%eax, %ebx
	jle	.L27
.L8:
	addq	$1, %rax
	addq	%rcx, %rdx
.L9:
	movzbl	(%rsi,%rax), %r8d
	cmpb	%r8b, (%rdx)
	jne	.L27
	cmpl	%eax, %ebp
	jne	.L7
	addl	$1, %r12d
	cmpl	%eax, %ebx
	jle	.L4
	movl	$1, %edi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	movl	(%rsp), %r8d
	testl	%edi, %edi
	jne	.L4
.L5:
	leal	(%r14,%r8), %eax
	addq	$1, %rcx
	cmpl	%r8d, %r10d
	jle	.L10
	movl	%eax, %r8d
	jmp	.L11
.L10:
	addl	$1, %r11d
	addq	$1, %r9
	cmpl	4(%rsp), %r11d
	jle	.L14
.L4:
	addl	$1, 12(%rsp)
	movl	12(%rsp), %eax
	cmpl	%eax, 44(%rsp)
	jge	.L13
.L2:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$232, %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
.L16:
	.cfi_restore_state
	xorl	%r12d, %r12d
	jmp	.L2
.L32:
	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%s"
.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	$232, %rsp
	.cfi_def_cfa_offset 288
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rbp
	leaq	44(%rsp), %rsi
	movq	%rbp, %rdx
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	44(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	%eax, 16(%rsp)
	movq	%rax, %r15
	movl	%eax, %ebx
	movl	%eax, %ebp
	leal	-1(%rax), %r14d
	leal	(%rax,%rax), %eax
	movl	$1, 12(%rsp)
	xorl	%r12d, %r12d
	movl	%eax, 20(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 24(%rsp)
.L13:
	movq	24(%rsp), %r13
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	movl	16(%rsp), %edi
	movq	%r13, %r9
	xorl	%r11d, %r11d
	movl	%eax, %r10d
	leaq	47(%rsp), %rsi
	leal	-1(%rdi), %r13d
	movl	20(%rsp), %edi
	subl	$2, %edi
	subl	%ebx, %eax
	movl	%edi, 8(%rsp)
	movl	%eax, 4(%rsp)
	js	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	leal	0(%r13,%r11), %eax
	cmpl	%eax, %r10d
	jle	.L10
	movl	8(%rsp), %eax
	movl	$1, %ecx
	leal	(%rax,%r11), %r8d
	.p2align 4,,10
	.p2align 3
.L11:
	testq	%r15, %r15
	je	.L5
	movl	%r8d, (%rsp)
	movq	%r9, %rdx
	movl	$1, %eax
	xorl	%edi, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%eax, %ebx
	jle	.L27
.L8:
	addq	$1, %rax
	addq	%rcx, %rdx
.L9:
	movzbl	(%rsi,%rax), %r8d
	cmpb	%r8b, (%rdx)
	jne	.L27
	cmpl	%eax, %ebp
	jne	.L7
	addl	$1, %r12d
	cmpl	%eax, %ebx
	jle	.L4
	movl	$1, %edi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	movl	(%rsp), %r8d
	testl	%edi, %edi
	jne	.L4
.L5:
	leal	(%r14,%r8), %eax
	addq	$1, %rcx
	cmpl	%r8d, %r10d
	jle	.L10
	movl	%eax, %r8d
	jmp	.L11
.L10:
	addl	$1, %r11d
	addq	$1, %r9
	cmpl	4(%rsp), %r11d
	jle	.L14
.L4:
	addl	$1, 12(%rsp)
	movl	12(%rsp), %eax
	cmpl	%eax, 44(%rsp)
	jge	.L13
.L2:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$232, %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
.L16:
	.cfi_restore_state
	xorl	%r12d, %r12d
	jmp	.L2
.L32:
	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%s"
.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	$232, %rsp
	.cfi_def_cfa_offset 288
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rbp
	leaq	44(%rsp), %rsi
	movq	%rbp, %rdx
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	44(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	%eax, 16(%rsp)
	movq	%rax, %r15
	movl	%eax, %ebx
	movl	%eax, %ebp
	leal	-1(%rax), %r14d
	leal	(%rax,%rax), %eax
	movl	$1, 12(%rsp)
	xorl	%r12d, %r12d
	movl	%eax, 20(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 24(%rsp)
.L13:
	movq	24(%rsp), %r13
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	movl	16(%rsp), %edi
	movq	%r13, %r9
	xorl	%r11d, %r11d
	movl	%eax, %r10d
	leaq	47(%rsp), %rsi
	leal	-1(%rdi), %r13d
	movl	20(%rsp), %edi
	subl	$2, %edi
	subl	%ebx, %eax
	movl	%edi, 8(%rsp)
	movl	%eax, 4(%rsp)
	js	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	leal	0(%r13,%r11), %eax
	cmpl	%eax, %r10d
	jle	.L10
	movl	8(%rsp), %eax
	movl	$1, %ecx
	leal	(%rax,%r11), %r8d
	.p2align 4,,10
	.p2align 3
.L11:
	testq	%r15, %r15
	je	.L5
	movl	%r8d, (%rsp)
	movq	%r9, %rdx
	movl	$1, %eax
	xorl	%edi, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%eax, %ebx
	jle	.L27
.L8:
	addq	$1, %rax
	addq	%rcx, %rdx
.L9:
	movzbl	(%rsi,%rax), %r8d
	cmpb	%r8b, (%rdx)
	jne	.L27
	cmpl	%eax, %ebp
	jne	.L7
	addl	$1, %r12d
	cmpl	%eax, %ebx
	jle	.L4
	movl	$1, %edi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	movl	(%rsp), %r8d
	testl	%edi, %edi
	jne	.L4
.L5:
	leal	(%r14,%r8), %eax
	addq	$1, %rcx
	cmpl	%r8d, %r10d
	jle	.L10
	movl	%eax, %r8d
	jmp	.L11
.L10:
	addl	$1, %r11d
	addq	$1, %r9
	cmpl	4(%rsp), %r11d
	jle	.L14
.L4:
	addl	$1, 12(%rsp)
	movl	12(%rsp), %eax
	cmpl	%eax, 44(%rsp)
	jge	.L13
.L2:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$232, %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
.L16:
	.cfi_restore_state
	xorl	%r12d, %r12d
	jmp	.L2
.L32:
	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,i,j,k,h,sl,tl,res = 0,f;
	char s[32],t[128];
	scanf("%d%s",&n,s);
	sl = strlen(s);
	for(i = 1;i <= n;i++){
		f = 0;
		scanf("%s",&t);
		tl = strlen(t);
		for(j = 0;j <= tl-sl;j++){
			for(k = 1;1;k++){
				if(j+k*(sl-1) >= tl){break;}
				for(h = 0;h < sl;h++){
					if(t[j+k*h] != s[h]){break;}
					if(h == sl-1){res++;f = 1;}
				}
				if(f){break;}
			}
			if(f){break;}
		}
	}
	printf("%d\n",res);
	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,i,j,k,h,sl,tl,res = 0,f;
	char s[32],t[128];
	scanf("%d%s",&n,s);
	sl = strlen(s);
	for(i = 1;i <= n;i++){
		f = 0;
		scanf("%s",&t);
		tl = strlen(t);
		for(j = 0;j <= tl-sl;j++){
			for(k = 1;1;k++){
				if(j+k*(sl-1) >= tl){break;}
				for(h = 0;h < sl;h++){
					if(t[j+k*h] != s[h]){break;}
					if(h == sl-1){res++;f = 1;}
				}
				if(f){break;}
			}
			if(f){break;}
		}
	}
	printf("%d\n",res);
	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,i,j,k,h,sl,tl,res = 0,f;
	char s[32],t[128];
	scanf("%d%s",&n,s);
	sl = strlen(s);
	for(i = 1;i <= n;i++){
		f = 0;
		scanf("%s",&t);
		tl = strlen(t);
		for(j = 0;j <= tl-sl;j++){
			for(k = 1;1;k++){
				if(j+k*(sl-1) >= tl){break;}
				for(h = 0;h < sl;h++){
					if(t[j+k*h] != s[h]){break;}
					if(h == sl-1){res++;f = 1;}
				}
				if(f){break;}
			}
			if(f){break;}
		}
	}
	printf("%d\n",res);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%s"
.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	$232, %rsp
	.cfi_def_cfa_offset 288
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rbp
	leaq	44(%rsp), %rsi
	movq	%rbp, %rdx
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	44(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	%eax, 16(%rsp)
	movq	%rax, %r15
	movl	%eax, %ebx
	movl	%eax, %ebp
	leal	-1(%rax), %r14d
	leal	(%rax,%rax), %eax
	movl	$1, 12(%rsp)
	xorl	%r12d, %r12d
	movl	%eax, 20(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 24(%rsp)
.L13:
	movq	24(%rsp), %r13
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	movl	16(%rsp), %edi
	movq	%r13, %r9
	xorl	%r11d, %r11d
	movl	%eax, %r10d
	leaq	47(%rsp), %rsi
	leal	-1(%rdi), %r13d
	movl	20(%rsp), %edi
	subl	$2, %edi
	subl	%ebx, %eax
	movl	%edi, 8(%rsp)
	movl	%eax, 4(%rsp)
	js	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	leal	0(%r13,%r11), %eax
	cmpl	%eax, %r10d
	jle	.L10
	movl	8(%rsp), %eax
	movl	$1, %ecx
	leal	(%rax,%r11), %r8d
	.p2align 4,,10
	.p2align 3
.L11:
	testq	%r15, %r15
	je	.L5
	movl	%r8d, (%rsp)
	movq	%r9, %rdx
	movl	$1, %eax
	xorl	%edi, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%eax, %ebx
	jle	.L27
.L8:
	addq	$1, %rax
	addq	%rcx, %rdx
.L9:
	movzbl	(%rsi,%rax), %r8d
	cmpb	%r8b, (%rdx)
	jne	.L27
	cmpl	%eax, %ebp
	jne	.L7
	addl	$1, %r12d
	cmpl	%eax, %ebx
	jle	.L4
	movl	$1, %edi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	movl	(%rsp), %r8d
	testl	%edi, %edi
	jne	.L4
.L5:
	leal	(%r14,%r8), %eax
	addq	$1, %rcx
	cmpl	%r8d, %r10d
	jle	.L10
	movl	%eax, %r8d
	jmp	.L11
.L10:
	addl	$1, %r11d
	addq	$1, %r9
	cmpl	4(%rsp), %r11d
	jle	.L14
.L4:
	addl	$1, 12(%rsp)
	movl	12(%rsp), %eax
	cmpl	%eax, 44(%rsp)
	jge	.L13
.L2:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$232, %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
.L16:
	.cfi_restore_state
	xorl	%r12d, %r12d
	jmp	.L2
.L32:
	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%s"
.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	$232, %rsp
	.cfi_def_cfa_offset 288
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rbp
	leaq	44(%rsp), %rsi
	movq	%rbp, %rdx
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movl	44(%rsp), %edx
	testl	%edx, %edx
	jle	.L16
	movl	%eax, 16(%rsp)
	movq	%rax, %r15
	movl	%eax, %ebx
	movl	%eax, %ebp
	leal	-1(%rax), %r14d
	leal	(%rax,%rax), %eax
	movl	$1, 12(%rsp)
	xorl	%r12d, %r12d
	movl	%eax, 20(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 24(%rsp)
.L13:
	movq	24(%rsp), %r13
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%r13, %rsi
	call	__isoc99_scanf@PLT
	movq	%r13, %rdi
	call	strlen@PLT
	movl	16(%rsp), %edi
	movq	%r13, %r9
	xorl	%r11d, %r11d
	movl	%eax, %r10d
	leaq	47(%rsp), %rsi
	leal	-1(%rdi), %r13d
	movl	20(%rsp), %edi
	subl	$2, %edi
	subl	%ebx, %eax
	movl	%edi, 8(%rsp)
	movl	%eax, 4(%rsp)
	js	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	leal	0(%r13,%r11), %eax
	cmpl	%eax, %r10d
	jle	.L10
	movl	8(%rsp), %eax
	movl	$1, %ecx
	leal	(%rax,%r11), %r8d
	.p2align 4,,10
	.p2align 3
.L11:
	testq	%r15, %r15
	je	.L5
	movl	%r8d, (%rsp)
	movq	%r9, %rdx
	movl	$1, %eax
	xorl	%edi, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%eax, %ebx
	jle	.L27
.L8:
	addq	$1, %rax
	addq	%rcx, %rdx
.L9:
	movzbl	(%rsi,%rax), %r8d
	cmpb	%r8b, (%rdx)
	jne	.L27
	cmpl	%eax, %ebp
	jne	.L7
	addl	$1, %r12d
	cmpl	%eax, %ebx
	jle	.L4
	movl	$1, %edi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	movl	(%rsp), %r8d
	testl	%edi, %edi
	jne	.L4
.L5:
	leal	(%r14,%r8), %eax
	addq	$1, %rcx
	cmpl	%r8d, %r10d
	jle	.L10
	movl	%eax, %r8d
	jmp	.L11
.L10:
	addl	$1, %r11d
	addq	$1, %r9
	cmpl	4(%rsp), %r11d
	jle	.L14
.L4:
	addl	$1, 12(%rsp)
	movl	12(%rsp), %eax
	cmpl	%eax, 44(%rsp)
	jge	.L13
.L2:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$232, %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
.L16:
	.cfi_restore_state
	xorl	%r12d, %r12d
	jmp	.L2
.L32:
	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:
```