Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
	submission # - User: herp_sy
	https://atcoder.jp/contests/
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007

int main(int argc, char const *argv[])
{
	int n;
	int p;
	int cnt;
	int max = 0;
	int valL[128],valR[128];
	char s[103];

	scanf("%d",&n);
	scanf("%s",s);

	for (int p = 1; p < strlen(s) - 1; ++p)
	{
		for (int k = 'A'; k <= 'z'; ++k){
			valL[k] = 0;
			valR[k] = 0;
		}	
		for (int i = 0; i < strlen(s); ++i)
		{
			if(i < p) ++valL[(int)s[i]];
			else  ++valR[(int)s[i]];
		}

		cnt = 0;
		for (int k = 'A'; k <= 'z'; ++k)
		{
			if(valL[k] && valR[k])	++cnt;
		}
		if(max < cnt)	max = cnt;
	}
	printf("%d\n", max);
	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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$1192, %rsp
	.cfi_offset 3, -24
	movl	%edi, -1188(%rbp)
	movq	%rsi, -1200(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -1172(%rbp)
	leaq	-1180(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1168(%rbp)
	jmp	.L2
.L13:
	movl	$65, -1164(%rbp)
	jmp	.L3
.L4:
	movl	-1164(%rbp), %eax
	cltq
	movl	$0, -1152(%rbp,%rax,4)
	movl	-1164(%rbp), %eax
	cltq
	movl	$0, -640(%rbp,%rax,4)
	addl	$1, -1164(%rbp)
.L3:
	cmpl	$122, -1164(%rbp)
	jle	.L4
	movl	$0, -1160(%rbp)
	jmp	.L5
.L8:
	movl	-1160(%rbp), %eax
	cmpl	-1168(%rbp), %eax
	jge	.L6
	movl	-1160(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	movl	-1152(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -1152(%rbp,%rax,4)
	jmp	.L7
.L6:
	movl	-1160(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	movl	-640(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -640(%rbp,%rax,4)
.L7:
	addl	$1, -1160(%rbp)
.L5:
	movl	-1160(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L8
	movl	$0, -1176(%rbp)
	movl	$65, -1156(%rbp)
	jmp	.L9
.L11:
	movl	-1156(%rbp), %eax
	cltq
	movl	-1152(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L10
	movl	-1156(%rbp), %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L10
	addl	$1, -1176(%rbp)
.L10:
	addl	$1, -1156(%rbp)
.L9:
	cmpl	$122, -1156(%rbp)
	jle	.L11
	movl	-1172(%rbp), %eax
	cmpl	-1176(%rbp), %eax
	jge	.L12
	movl	-1176(%rbp), %eax
	movl	%eax, -1172(%rbp)
.L12:
	addl	$1, -1168(%rbp)
.L2:
	movl	-1168(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$1, %rax
	cmpq	%rax, %rbx
	jb	.L13
	movl	-1172(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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	$1160, %rsp
	.cfi_def_cfa_offset 1216
	movq	%fs:40, %rax
	movq	%rax, 1144(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	1040(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rbp
	cmpq	$1, %rbp
	jbe	.L12
	movq	%rax, %rsi
	movdqa	.LC2(%rip), %xmm2
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	movl	$1, %edx
	xorl	%r9d, %r9d
	leaq	276(%rsp), %r11
	leaq	516(%rsp), %r13
	leaq	284(%rsp), %r14
	pxor	%xmm0, %xmm0
	leaq	788(%rsp), %r10
	leaq	1028(%rsp), %r12
	leaq	796(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rdi
	movq	%r11, %rcx
	movq	%rax, (%r11)
	andq	$-8, %rdi
	movq	%rax, -16(%r13)
	subq	%rdi, %rcx
	addl	$232, %ecx
	shrl	$3, %ecx
	rep stosq
	movq	%r15, %rdi
	movq	%r10, %rcx
	movq	%rax, (%r10)
	andq	$-8, %rdi
	movq	%rax, -16(%r12)
	subq	%rdi, %rcx
	addl	$232, %ecx
	shrl	$3, %ecx
	rep stosq
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	addl	$1, 16(%rsp,%rdi,4)
.L5:
	addq	$1, %rcx
.L3:
	cmpq	%rsi, %rcx
	jnb	.L16
	movsbq	(%rbx,%rcx), %rdi
	cmpl	%ecx, %edx
	jg	.L17
	addl	$1, 528(%rsp,%rdi,4)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	movdqu	276(%rsp), %xmm3
	movl	500(%rsp), %edi
	movdqu	788(%rsp), %xmm1
	movdqu	804(%rsp), %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	%xmm0, %xmm4
	pand	%xmm1, %xmm3
	movdqu	292(%rsp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	%xmm0, %xmm1
	pand	%xmm4, %xmm1
	movdqu	820(%rsp), %xmm4
	pand	%xmm2, %xmm1
	psubd	%xmm3, %xmm1
	pcmpeqd	%xmm0, %xmm4
	movdqu	308(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	836(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	324(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	852(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	340(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	868(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	356(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	884(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	372(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	900(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	388(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	916(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	404(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	932(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	420(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	948(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	436(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	964(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	452(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	980(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	468(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	996(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	484(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	psubd	%xmm3, %xmm1
	movdqa	%xmm1, %xmm3
	psrldq	$8, %xmm3
	paddd	%xmm3, %xmm1
	movdqa	%xmm1, %xmm3
	psrldq	$4, %xmm3
	paddd	%xmm3, %xmm1
	movd	%xmm1, %ecx
	testl	%edi, %edi
	je	.L7
	cmpl	$1, 1012(%rsp)
	sbbl	$-1, %ecx
.L7:
	movl	504(%rsp), %edi
	testl	%edi, %edi
	je	.L10
	cmpl	$1, 1016(%rsp)
	sbbl	$-1, %ecx
.L10:
	cmpl	%ecx, %r9d
	cmovl	%ecx, %r9d
	leaq	1(%r8), %rcx
	addq	$2, %r8
	addl	$1, %edx
	cmpq	%r8, %rbp
	jbe	.L2
	movq	%rcx, %r8
	jmp	.L9
.L12:
	xorl	%r9d, %r9d
.L2:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	1144(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1160, %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
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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	$1160, %rsp
	.cfi_def_cfa_offset 1216
	movq	%fs:40, %rax
	movq	%rax, 1144(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	1040(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rbp
	cmpq	$1, %rbp
	jbe	.L12
	movq	%rax, %rsi
	movdqa	.LC2(%rip), %xmm2
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	movl	$1, %edx
	xorl	%r9d, %r9d
	leaq	276(%rsp), %r11
	leaq	516(%rsp), %r13
	leaq	284(%rsp), %r14
	pxor	%xmm0, %xmm0
	leaq	788(%rsp), %r10
	leaq	1028(%rsp), %r12
	leaq	796(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rdi
	movq	%r11, %rcx
	movq	%rax, (%r11)
	andq	$-8, %rdi
	movq	%rax, -16(%r13)
	subq	%rdi, %rcx
	addl	$232, %ecx
	shrl	$3, %ecx
	rep stosq
	movq	%r15, %rdi
	movq	%r10, %rcx
	movq	%rax, (%r10)
	andq	$-8, %rdi
	movq	%rax, -16(%r12)
	subq	%rdi, %rcx
	addl	$232, %ecx
	shrl	$3, %ecx
	rep stosq
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	addl	$1, 16(%rsp,%rdi,4)
.L5:
	addq	$1, %rcx
.L3:
	cmpq	%rsi, %rcx
	jnb	.L16
	movsbq	(%rbx,%rcx), %rdi
	cmpl	%ecx, %edx
	jg	.L17
	addl	$1, 528(%rsp,%rdi,4)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	movdqu	276(%rsp), %xmm3
	movl	500(%rsp), %edi
	movdqu	788(%rsp), %xmm1
	movdqu	804(%rsp), %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	%xmm0, %xmm4
	pand	%xmm1, %xmm3
	movdqu	292(%rsp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	%xmm0, %xmm1
	pand	%xmm4, %xmm1
	movdqu	820(%rsp), %xmm4
	pand	%xmm2, %xmm1
	psubd	%xmm3, %xmm1
	pcmpeqd	%xmm0, %xmm4
	movdqu	308(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	836(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	324(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	852(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	340(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	868(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	356(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	884(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	372(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	900(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	388(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	916(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	404(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	932(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	420(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	948(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	436(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	964(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	452(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	980(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	468(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	movdqu	996(%rsp), %xmm4
	psubd	%xmm3, %xmm1
	movdqu	484(%rsp), %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pcmpeqd	%xmm0, %xmm4
	pcmpeqd	%xmm0, %xmm3
	pand	%xmm4, %xmm3
	psubd	%xmm3, %xmm1
	movdqa	%xmm1, %xmm3
	psrldq	$8, %xmm3
	paddd	%xmm3, %xmm1
	movdqa	%xmm1, %xmm3
	psrldq	$4, %xmm3
	paddd	%xmm3, %xmm1
	movd	%xmm1, %ecx
	testl	%edi, %edi
	je	.L7
	cmpl	$1, 1012(%rsp)
	sbbl	$-1, %ecx
.L7:
	movl	504(%rsp), %edi
	testl	%edi, %edi
	je	.L10
	cmpl	$1, 1016(%rsp)
	sbbl	$-1, %ecx
.L10:
	cmpl	%ecx, %r9d
	cmovl	%ecx, %r9d
	leaq	1(%r8), %rcx
	addq	$2, %r8
	addl	$1, %edx
	cmpq	%r8, %rbp
	jbe	.L2
	movq	%rcx, %r8
	jmp	.L9
.L12:
	xorl	%r9d, %r9d
.L2:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	1144(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1160, %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
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:

/*
	submission # - User: herp_sy
	https://atcoder.jp/contests/
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007

int main(int argc, char const *argv[])
{
	int n;
	int p;
	int cnt;
	int max = 0;
	int valL[128],valR[128];
	char s[103];

	scanf("%d",&n);
	scanf("%s",s);

	for (int p = 1; p < strlen(s) - 1; ++p)
	{
		for (int k = 'A'; k <= 'z'; ++k){
			valL[k] = 0;
			valR[k] = 0;
		}	
		for (int i = 0; i < strlen(s); ++i)
		{
			if(i < p) ++valL[(int)s[i]];
			else  ++valR[(int)s[i]];
		}

		cnt = 0;
		for (int k = 'A'; k <= 'z'; ++k)
		{
			if(valL[k] && valR[k])	++cnt;
		}
		if(max < cnt)	max = cnt;
	}
	printf("%d\n", max);
	return 0;
}

10
aaabaaaaaa
 6
`abbca
 45
tgxgdqkyjphyzutjjtllptdfxocrylqfqjynmfbfucbir
 45
tgxgtqkyjfhyzutjjdllptdpxrbrylqfqjynmfbfucbio
 45
bnxgtqkykfhyzutjjdllptdpxrtrylqfqjygmfbftcbio
 10
aba`ab`bbb
 10
`bcca_ba_`
 45
blxhtqkyjehxzutkjdmlpidpurtrzlbfribgmhqfzcyto
 45
twhhbqkztehxjvukjdjioldpurzrzlbfribgmnqfzcytn
 6
b`^dca

1
 2
 9
 10
 11
 3
 4
 12
 8
 0

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
	submission # - User: herp_sy
	https://atcoder.jp/contests/
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007

int main(int argc, char const *argv[])
{
	int n;
	int p;
	int cnt;
	int max = 0;
	int valL[128],valR[128];
	char s[103];

	scanf("%d",&n);
	scanf("%s",s);

	for (int p = 1; p < strlen(s) - 1; ++p)
	{
		for (int k = 'A'; k <= 'z'; ++k){
			valL[k] = 0;
			valR[k] = 0;
		}	
		for (int i = 0; i < strlen(s); ++i)
		{
			if(i < p) ++valL[(int)s[i]];
			else  ++valR[(int)s[i]];
		}

		cnt = 0;
		for (int k = 'A'; k <= 'z'; ++k)
		{
			if(valL[k] && valR[k])	++cnt;
		}
		if(max < cnt)	max = cnt;
	}
	printf("%d\n", max);
	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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$1192, %rsp
	.cfi_offset 3, -24
	movl	%edi, -1188(%rbp)
	movq	%rsi, -1200(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -1172(%rbp)
	leaq	-1180(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1168(%rbp)
	jmp	.L2
.L13:
	movl	$65, -1164(%rbp)
	jmp	.L3
.L4:
	movl	-1164(%rbp), %eax
	cltq
	movl	$0, -1152(%rbp,%rax,4)
	movl	-1164(%rbp), %eax
	cltq
	movl	$0, -640(%rbp,%rax,4)
	addl	$1, -1164(%rbp)
.L3:
	cmpl	$122, -1164(%rbp)
	jle	.L4
	movl	$0, -1160(%rbp)
	jmp	.L5
.L8:
	movl	-1160(%rbp), %eax
	cmpl	-1168(%rbp), %eax
	jge	.L6
	movl	-1160(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	movl	-1152(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -1152(%rbp,%rax,4)
	jmp	.L7
.L6:
	movl	-1160(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	movl	-640(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -640(%rbp,%rax,4)
.L7:
	addl	$1, -1160(%rbp)
.L5:
	movl	-1160(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L8
	movl	$0, -1176(%rbp)
	movl	$65, -1156(%rbp)
	jmp	.L9
.L11:
	movl	-1156(%rbp), %eax
	cltq
	movl	-1152(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L10
	movl	-1156(%rbp), %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L10
	addl	$1, -1176(%rbp)
.L10:
	addl	$1, -1156(%rbp)
.L9:
	cmpl	$122, -1156(%rbp)
	jle	.L11
	movl	-1172(%rbp), %eax
	cmpl	-1176(%rbp), %eax
	jge	.L12
	movl	-1176(%rbp), %eax
	movl	%eax, -1172(%rbp)
.L12:
	addl	$1, -1168(%rbp)
.L2:
	movl	-1168(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$1, %rax
	cmpq	%rax, %rbx
	jb	.L13
	movl	-1172(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$1192, %rsp
	.cfi_offset 3, -24
	movl	%edi, -1188(%rbp)
	movq	%rsi, -1200(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -1172(%rbp)
	leaq	-1180(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1168(%rbp)
	jmp	.L2
.L13:
	movl	$65, -1164(%rbp)
	jmp	.L3
.L4:
	movl	-1164(%rbp), %eax
	cltq
	movl	$0, -1152(%rbp,%rax,4)
	movl	-1164(%rbp), %eax
	cltq
	movl	$0, -640(%rbp,%rax,4)
	addl	$1, -1164(%rbp)
.L3:
	cmpl	$122, -1164(%rbp)
	jle	.L4
	movl	$0, -1160(%rbp)
	jmp	.L5
.L8:
	movl	-1160(%rbp), %eax
	cmpl	-1168(%rbp), %eax
	jge	.L6
	movl	-1160(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	movl	-1152(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -1152(%rbp,%rax,4)
	jmp	.L7
.L6:
	movl	-1160(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	movsbl	%al, %eax
	movslq	%eax, %rdx
	movl	-640(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -640(%rbp,%rax,4)
.L7:
	addl	$1, -1160(%rbp)
.L5:
	movl	-1160(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L8
	movl	$0, -1176(%rbp)
	movl	$65, -1156(%rbp)
	jmp	.L9
.L11:
	movl	-1156(%rbp), %eax
	cltq
	movl	-1152(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L10
	movl	-1156(%rbp), %eax
	cltq
	movl	-640(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L10
	addl	$1, -1176(%rbp)
.L10:
	addl	$1, -1156(%rbp)
.L9:
	cmpl	$122, -1156(%rbp)
	jle	.L11
	movl	-1172(%rbp), %eax
	cmpl	-1176(%rbp), %eax
	jge	.L12
	movl	-1176(%rbp), %eax
	movl	%eax, -1172(%rbp)
.L12:
	addl	$1, -1168(%rbp)
.L2:
	movl	-1168(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$1, %rax
	cmpq	%rax, %rbx
	jb	.L13
	movl	-1172(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
