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 <math.h>

int main(){
	int n; char s[101];
	scanf("%d", &n);
	scanf("%s", s);

	int cout, max = -1 ;
	int memo[26] = { 0 };

	//切る場所
	for (int i = 0; i < n; ++i) {
		cout = 0;
		//check
		for (int j = 0; j <= i; ++j) {
			for (int k = i + 1; k < n; ++k) {

				if (s[j] == s[k]) {
					memo[s[j]-97] = 1;
				}
			}
		}
		for (int j = 0; j < 26; ++j) {
			if (memo[j]) {
				cout++;
			}
			memo[j] = 0;
		}

		max = fmax(max, cout);
	}

	printf("%d", max);

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	128(%rsp), %rbp
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	leaq	16(%rsp), %rdi
	xorl	%eax, %eax
	movl	$13, %ecx
	rep stosq
	testl	%ebx, %ebx
	jle	.L12
	leal	-2(%rbx), %r14d
	movq	%rbp, %r9
	xorl	%r13d, %r13d
	movl	$-1, %r8d
	pxor	%xmm2, %xmm2
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %r13d
	leaq	1(%r9), %r15
	cmpl	%ebx, %r13d
	jge	.L3
	leaq	1(%r9), %r15
	movl	%r14d, %ecx
	movq	%rbp, %rdi
	addq	%r15, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	movsbl	(%rdi), %esi
	movq	%r9, %rax
	movl	%esi, %edx
	subl	$97, %esi
	movslq	%esi, %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	1(%rax), %dl
	jne	.L4
	movl	$1, 16(%rsp,%rsi,4)
.L4:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L5
	leaq	1(%rdi), %rax
	cmpq	%r9, %rdi
	je	.L3
	movq	%rax, %rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movdqa	%xmm2, %xmm1
	movdqa	%xmm2, %xmm0
	cmpl	$1, 112(%rsp)
	movl	$0, 112(%rsp)
	pcmpeqd	16(%rsp), %xmm1
	pcmpeqd	32(%rsp), %xmm0
	movaps	%xmm2, 16(%rsp)
	pandn	.LC2(%rip), %xmm0
	movaps	%xmm2, 32(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	48(%rsp), %xmm1
	movaps	%xmm2, 48(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	64(%rsp), %xmm1
	movaps	%xmm2, 64(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	80(%rsp), %xmm1
	movaps	%xmm2, 80(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	96(%rsp), %xmm1
	movaps	%xmm2, 96(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	movd	%xmm0, %eax
	pxor	%xmm0, %xmm0
	sbbl	$-1, %eax
	cvtsi2sdl	%r8d, %xmm0
	cmpl	$1, 116(%rsp)
	movl	$0, 116(%rsp)
	sbbl	$-1, %eax
	subl	$1, %r14d
	cvtsi2sdl	%eax, %xmm1
	call	fmax@PLT
	cmpl	%ebx, %r13d
	movq	%r15, %r9
	pxor	%xmm2, %xmm2
	cvttsd2sil	%xmm0, %r8d
	jne	.L9
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$248, %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
.L12:
	.cfi_restore_state
	orl	$-1, %r8d
	jmp	.L2
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	128(%rsp), %rbp
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	leaq	16(%rsp), %rdi
	xorl	%eax, %eax
	movl	$13, %ecx
	rep stosq
	testl	%ebx, %ebx
	jle	.L12
	leal	-2(%rbx), %r14d
	movq	%rbp, %r9
	xorl	%r13d, %r13d
	movl	$-1, %r8d
	pxor	%xmm2, %xmm2
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %r13d
	leaq	1(%r9), %r15
	cmpl	%ebx, %r13d
	jge	.L3
	leaq	1(%r9), %r15
	movl	%r14d, %ecx
	movq	%rbp, %rdi
	addq	%r15, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	movsbl	(%rdi), %esi
	movq	%r9, %rax
	movl	%esi, %edx
	subl	$97, %esi
	movslq	%esi, %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	1(%rax), %dl
	jne	.L4
	movl	$1, 16(%rsp,%rsi,4)
.L4:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L5
	leaq	1(%rdi), %rax
	cmpq	%r9, %rdi
	je	.L3
	movq	%rax, %rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movdqa	%xmm2, %xmm1
	movdqa	%xmm2, %xmm0
	cmpl	$1, 112(%rsp)
	movl	$0, 112(%rsp)
	pcmpeqd	16(%rsp), %xmm1
	pcmpeqd	32(%rsp), %xmm0
	movaps	%xmm2, 16(%rsp)
	pandn	.LC2(%rip), %xmm0
	movaps	%xmm2, 32(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	48(%rsp), %xmm1
	movaps	%xmm2, 48(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	64(%rsp), %xmm1
	movaps	%xmm2, 64(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	80(%rsp), %xmm1
	movaps	%xmm2, 80(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	96(%rsp), %xmm1
	movaps	%xmm2, 96(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	movd	%xmm0, %eax
	pxor	%xmm0, %xmm0
	sbbl	$-1, %eax
	cvtsi2sdl	%r8d, %xmm0
	cmpl	$1, 116(%rsp)
	movl	$0, 116(%rsp)
	sbbl	$-1, %eax
	subl	$1, %r14d
	cvtsi2sdl	%eax, %xmm1
	call	fmax@PLT
	cmpl	%ebx, %r13d
	movq	%r15, %r9
	pxor	%xmm2, %xmm2
	cvttsd2sil	%xmm0, %r8d
	jne	.L9
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$248, %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
.L12:
	.cfi_restore_state
	orl	$-1, %r8d
	jmp	.L2
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	128(%rsp), %rbp
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	leaq	16(%rsp), %rdi
	xorl	%eax, %eax
	movl	$13, %ecx
	rep stosq
	testl	%ebx, %ebx
	jle	.L12
	leal	-2(%rbx), %r14d
	movq	%rbp, %r9
	xorl	%r13d, %r13d
	movl	$-1, %r8d
	pxor	%xmm2, %xmm2
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %r13d
	leaq	1(%r9), %r15
	cmpl	%ebx, %r13d
	jge	.L3
	leaq	1(%r9), %r15
	movl	%r14d, %ecx
	movq	%rbp, %rdi
	addq	%r15, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	movsbl	(%rdi), %esi
	movq	%r9, %rax
	movl	%esi, %edx
	subl	$97, %esi
	movslq	%esi, %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	1(%rax), %dl
	jne	.L4
	movl	$1, 16(%rsp,%rsi,4)
.L4:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L5
	leaq	1(%rdi), %rax
	cmpq	%r9, %rdi
	je	.L3
	movq	%rax, %rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movdqa	%xmm2, %xmm1
	movdqa	%xmm2, %xmm0
	cmpl	$1, 112(%rsp)
	movl	$0, 112(%rsp)
	pcmpeqd	16(%rsp), %xmm1
	pcmpeqd	32(%rsp), %xmm0
	movaps	%xmm2, 16(%rsp)
	pandn	.LC2(%rip), %xmm0
	movaps	%xmm2, 32(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	48(%rsp), %xmm1
	movaps	%xmm2, 48(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	64(%rsp), %xmm1
	movaps	%xmm2, 64(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	80(%rsp), %xmm1
	movaps	%xmm2, 80(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	96(%rsp), %xmm1
	movaps	%xmm2, 96(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	movd	%xmm0, %eax
	pxor	%xmm0, %xmm0
	sbbl	$-1, %eax
	cvtsi2sdl	%r8d, %xmm0
	cmpl	$1, 116(%rsp)
	movl	$0, 116(%rsp)
	sbbl	$-1, %eax
	subl	$1, %r14d
	cvtsi2sdl	%eax, %xmm1
	call	fmax@PLT
	cmpl	%ebx, %r13d
	movq	%r15, %r9
	pxor	%xmm2, %xmm2
	cvttsd2sil	%xmm0, %r8d
	jne	.L9
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$248, %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
.L12:
	.cfi_restore_state
	orl	$-1, %r8d
	jmp	.L2
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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 <math.h>

int main(){
	int n; char s[101];
	scanf("%d", &n);
	scanf("%s", s);

	int cout, max = -1 ;
	int memo[26] = { 0 };

	//切る場所
	for (int i = 0; i < n; ++i) {
		cout = 0;
		//check
		for (int j = 0; j <= i; ++j) {
			for (int k = i + 1; k < n; ++k) {

				if (s[j] == s[k]) {
					memo[s[j]-97] = 1;
				}
			}
		}
		for (int j = 0; j < 26; ++j) {
			if (memo[j]) {
				cout++;
			}
			memo[j] = 0;
		}

		max = fmax(max, cout);
	}

	printf("%d", max);

	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 <math.h>

int main(){
	int n; char s[101];
	scanf("%d", &n);
	scanf("%s", s);

	int cout, max = -1 ;
	int memo[26] = { 0 };

	//切る場所
	for (int i = 0; i < n; ++i) {
		cout = 0;
		//check
		for (int j = 0; j <= i; ++j) {
			for (int k = i + 1; k < n; ++k) {

				if (s[j] == s[k]) {
					memo[s[j]-97] = 1;
				}
			}
		}
		for (int j = 0; j < 26; ++j) {
			if (memo[j]) {
				cout++;
			}
			memo[j] = 0;
		}

		max = fmax(max, cout);
	}

	printf("%d", max);

	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:

10
aaabaaaaaa
 6
`abbca
 45
tgxgdqkyjphyzutjjtllptdfxocrylqfqjynmfbfucbir
 45
tgxgtqkyjfhyzutjjdllptdpxrbrylqfqjynmfbfucbio
 45
bnxgtqkykfhyzutjjdllptdpxrtrylqfqjygmfbftcbio
 10
aba`ab`bbb

1 2 9 10 11 2
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 <math.h>

int main(){
	int n; char s[101];
	scanf("%d", &n);
	scanf("%s", s);

	int cout, max = -1 ;
	int memo[26] = { 0 };

	//切る場所
	for (int i = 0; i < n; ++i) {
		cout = 0;
		//check
		for (int j = 0; j <= i; ++j) {
			for (int k = i + 1; k < n; ++k) {

				if (s[j] == s[k]) {
					memo[s[j]-97] = 1;
				}
			}
		}
		for (int j = 0; j < 26; ++j) {
			if (memo[j]) {
				cout++;
			}
			memo[j] = 0;
		}

		max = fmax(max, cout);
	}

	printf("%d", max);

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	128(%rsp), %rbp
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	leaq	16(%rsp), %rdi
	xorl	%eax, %eax
	movl	$13, %ecx
	rep stosq
	testl	%ebx, %ebx
	jle	.L12
	leal	-2(%rbx), %r14d
	movq	%rbp, %r9
	xorl	%r13d, %r13d
	movl	$-1, %r8d
	pxor	%xmm2, %xmm2
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %r13d
	leaq	1(%r9), %r15
	cmpl	%ebx, %r13d
	jge	.L3
	leaq	1(%r9), %r15
	movl	%r14d, %ecx
	movq	%rbp, %rdi
	addq	%r15, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	movsbl	(%rdi), %esi
	movq	%r9, %rax
	movl	%esi, %edx
	subl	$97, %esi
	movslq	%esi, %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	1(%rax), %dl
	jne	.L4
	movl	$1, 16(%rsp,%rsi,4)
.L4:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L5
	leaq	1(%rdi), %rax
	cmpq	%r9, %rdi
	je	.L3
	movq	%rax, %rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movdqa	%xmm2, %xmm1
	movdqa	%xmm2, %xmm0
	cmpl	$1, 112(%rsp)
	movl	$0, 112(%rsp)
	pcmpeqd	16(%rsp), %xmm1
	pcmpeqd	32(%rsp), %xmm0
	movaps	%xmm2, 16(%rsp)
	pandn	.LC2(%rip), %xmm0
	movaps	%xmm2, 32(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	48(%rsp), %xmm1
	movaps	%xmm2, 48(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	64(%rsp), %xmm1
	movaps	%xmm2, 64(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	80(%rsp), %xmm1
	movaps	%xmm2, 80(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	96(%rsp), %xmm1
	movaps	%xmm2, 96(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	movd	%xmm0, %eax
	pxor	%xmm0, %xmm0
	sbbl	$-1, %eax
	cvtsi2sdl	%r8d, %xmm0
	cmpl	$1, 116(%rsp)
	movl	$0, 116(%rsp)
	sbbl	$-1, %eax
	subl	$1, %r14d
	cvtsi2sdl	%eax, %xmm1
	call	fmax@PLT
	cmpl	%ebx, %r13d
	movq	%r15, %r9
	pxor	%xmm2, %xmm2
	cvttsd2sil	%xmm0, %r8d
	jne	.L9
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$248, %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
.L12:
	.cfi_restore_state
	orl	$-1, %r8d
	jmp	.L2
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	128(%rsp), %rbp
	call	__isoc99_scanf@PLT
	leaq	.LC1(%rip), %rdi
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	leaq	16(%rsp), %rdi
	xorl	%eax, %eax
	movl	$13, %ecx
	rep stosq
	testl	%ebx, %ebx
	jle	.L12
	leal	-2(%rbx), %r14d
	movq	%rbp, %r9
	xorl	%r13d, %r13d
	movl	$-1, %r8d
	pxor	%xmm2, %xmm2
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %r13d
	leaq	1(%r9), %r15
	cmpl	%ebx, %r13d
	jge	.L3
	leaq	1(%r9), %r15
	movl	%r14d, %ecx
	movq	%rbp, %rdi
	addq	%r15, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	movsbl	(%rdi), %esi
	movq	%r9, %rax
	movl	%esi, %edx
	subl	$97, %esi
	movslq	%esi, %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	1(%rax), %dl
	jne	.L4
	movl	$1, 16(%rsp,%rsi,4)
.L4:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L5
	leaq	1(%rdi), %rax
	cmpq	%r9, %rdi
	je	.L3
	movq	%rax, %rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movdqa	%xmm2, %xmm1
	movdqa	%xmm2, %xmm0
	cmpl	$1, 112(%rsp)
	movl	$0, 112(%rsp)
	pcmpeqd	16(%rsp), %xmm1
	pcmpeqd	32(%rsp), %xmm0
	movaps	%xmm2, 16(%rsp)
	pandn	.LC2(%rip), %xmm0
	movaps	%xmm2, 32(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	48(%rsp), %xmm1
	movaps	%xmm2, 48(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	64(%rsp), %xmm1
	movaps	%xmm2, 64(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	80(%rsp), %xmm1
	movaps	%xmm2, 80(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	pcmpeqd	96(%rsp), %xmm1
	movaps	%xmm2, 96(%rsp)
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	pxor	%xmm1, %xmm1
	movd	%xmm0, %eax
	pxor	%xmm0, %xmm0
	sbbl	$-1, %eax
	cvtsi2sdl	%r8d, %xmm0
	cmpl	$1, 116(%rsp)
	movl	$0, 116(%rsp)
	sbbl	$-1, %eax
	subl	$1, %r14d
	cvtsi2sdl	%eax, %xmm1
	call	fmax@PLT
	cmpl	%ebx, %r13d
	movq	%r15, %r9
	pxor	%xmm2, %xmm2
	cvttsd2sil	%xmm0, %r8d
	jne	.L9
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$248, %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
.L12:
	.cfi_restore_state
	orl	$-1, %r8d
	jmp	.L2
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:
```