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

int main(void){
    int n,ans=0,cnt=0;
    scanf("%d",&n);
    char s[n+1];
    scanf("%s",s);
    for(int i=1;i<n;i++){
        int cnt=0;
        for(char c='a';c<='z';c++){
            bool left=false,right=false;
            
            for(int j=0;j<i;j++){
                if(s[j]==c){
                    left=true;
                }
            }
            
            for(int j=i;j<n;j++){
                if(s[j]==c){
                    right=true;
                }
            }
            
            if(left&&right){
                cnt++;
            }
        }
        if(ans<cnt){
            ans=cnt;
        }
    }
    printf("%d\n",ans);
    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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -96(%rbp)
	movl	$0, -76(%rbp)
	leaq	-100(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-100(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -92(%rbp)
	jmp	.L5
.L16:
	movl	$0, -88(%rbp)
	movb	$97, -103(%rbp)
	jmp	.L6
.L14:
	movb	$0, -102(%rbp)
	movb	$0, -101(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L7
.L9:
	movq	-64(%rbp), %rdx
	movl	-84(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	%al, -103(%rbp)
	jne	.L8
	movb	$1, -102(%rbp)
.L8:
	addl	$1, -84(%rbp)
.L7:
	movl	-84(%rbp), %eax
	cmpl	-92(%rbp), %eax
	jl	.L9
	movl	-92(%rbp), %eax
	movl	%eax, -80(%rbp)
	jmp	.L10
.L12:
	movq	-64(%rbp), %rdx
	movl	-80(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	%al, -103(%rbp)
	jne	.L11
	movb	$1, -101(%rbp)
.L11:
	addl	$1, -80(%rbp)
.L10:
	movl	-100(%rbp), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L12
	cmpb	$0, -102(%rbp)
	je	.L13
	cmpb	$0, -101(%rbp)
	je	.L13
	addl	$1, -88(%rbp)
.L13:
	movzbl	-103(%rbp), %eax
	addl	$1, %eax
	movb	%al, -103(%rbp)
.L6:
	cmpb	$122, -103(%rbp)
	jle	.L14
	movl	-96(%rbp), %eax
	cmpl	-88(%rbp), %eax
	jge	.L15
	movl	-88(%rbp), %eax
	movl	%eax, -96(%rbp)
.L15:
	addl	$1, -92(%rbp)
.L5:
	movl	-100(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L16
	movl	-96(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	leaq	-44(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	movq	%rsp, %rcx
	addl	$1, %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L28:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L28
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L29
.L4:
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rsp, %rbx
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %r9d
	cmpl	$1, %r9d
	jle	.L15
	movq	%rsp, %r12
	leaq	1(%rsp), %r8
	movslq	%r9d, %r14
	xorl	%r13d, %r13d
	movl	$1, %r11d
	movl	$1, %edi
.L6:
	movl	$97, %edx
	xorl	%r10d, %r10d
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r12, %rax
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L8:
	cmpb	%dl, (%rax)
	cmove	%edi, %esi
	addq	$1, %rax
	cmpq	%r8, %rax
	jne	.L8
	movq	%r11, %rax
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	%dl, (%rbx,%rax)
	cmove	%edi, %ecx
	addq	$1, %rax
	cmpl	%eax, %r9d
	jg	.L10
	cmpb	$1, %sil
	movl	%r10d, %eax
	sbbl	$-1, %r10d
	testb	%cl, %cl
	cmove	%eax, %r10d
	addl	$1, %edx
	cmpb	$123, %dl
	jne	.L13
	cmpl	%r10d, %r13d
	cmovl	%r10d, %r13d
	addq	$1, %r11
	addq	$1, %r8
	cmpq	%r14, %r11
	jne	.L6
.L5:
	xorl	%eax, %eax
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L29:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L15:
	xorl	%r13d, %r13d
	jmp	.L5
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	leaq	-44(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	movq	%rsp, %rcx
	addl	$1, %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L28:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L28
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L29
.L4:
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rsp, %rbx
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %r9d
	cmpl	$1, %r9d
	jle	.L15
	movq	%rsp, %r12
	leaq	1(%rsp), %r8
	movslq	%r9d, %r14
	xorl	%r13d, %r13d
	movl	$1, %r11d
	movl	$1, %edi
.L6:
	movl	$97, %edx
	xorl	%r10d, %r10d
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r12, %rax
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L8:
	cmpb	%dl, (%rax)
	cmove	%edi, %esi
	addq	$1, %rax
	cmpq	%r8, %rax
	jne	.L8
	movq	%r11, %rax
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	%dl, (%rbx,%rax)
	cmove	%edi, %ecx
	addq	$1, %rax
	cmpl	%eax, %r9d
	jg	.L10
	cmpb	$1, %sil
	movl	%r10d, %eax
	sbbl	$-1, %r10d
	testb	%cl, %cl
	cmove	%eax, %r10d
	addl	$1, %edx
	cmpb	$123, %dl
	jne	.L13
	cmpl	%r10d, %r13d
	cmovl	%r10d, %r13d
	addq	$1, %r11
	addq	$1, %r8
	cmpq	%r14, %r11
	jne	.L6
.L5:
	xorl	%eax, %eax
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L29:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L15:
	xorl	%r13d, %r13d
	jmp	.L5
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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<stdbool.h>

int main(void){
    int n,ans=0,cnt=0;
    scanf("%d",&n);
    char s[n+1];
    scanf("%s",s);
    for(int i=1;i<n;i++){
        int cnt=0;
        for(char c='a';c<='z';c++){
            bool left=false,right=false;
            
            for(int j=0;j<i;j++){
                if(s[j]==c){
                    left=true;
                }
            }
            
            for(int j=i;j<n;j++){
                if(s[j]==c){
                    right=true;
                }
            }
            
            if(left&&right){
                cnt++;
            }
        }
        if(ans<cnt){
            ans=cnt;
        }
    }
    printf("%d\n",ans);
    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
 2
 2
 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
#include<stdio.h>
#include<stdbool.h>

int main(void){
    int n,ans=0,cnt=0;
    scanf("%d",&n);
    char s[n+1];
    scanf("%s",s);
    for(int i=1;i<n;i++){
        int cnt=0;
        for(char c='a';c<='z';c++){
            bool left=false,right=false;
            
            for(int j=0;j<i;j++){
                if(s[j]==c){
                    left=true;
                }
            }
            
            for(int j=i;j<n;j++){
                if(s[j]==c){
                    right=true;
                }
            }
            
            if(left&&right){
                cnt++;
            }
        }
        if(ans<cnt){
            ans=cnt;
        }
    }
    printf("%d\n",ans);
    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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -96(%rbp)
	movl	$0, -76(%rbp)
	leaq	-100(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-100(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -92(%rbp)
	jmp	.L5
.L16:
	movl	$0, -88(%rbp)
	movb	$97, -103(%rbp)
	jmp	.L6
.L14:
	movb	$0, -102(%rbp)
	movb	$0, -101(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L7
.L9:
	movq	-64(%rbp), %rdx
	movl	-84(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	%al, -103(%rbp)
	jne	.L8
	movb	$1, -102(%rbp)
.L8:
	addl	$1, -84(%rbp)
.L7:
	movl	-84(%rbp), %eax
	cmpl	-92(%rbp), %eax
	jl	.L9
	movl	-92(%rbp), %eax
	movl	%eax, -80(%rbp)
	jmp	.L10
.L12:
	movq	-64(%rbp), %rdx
	movl	-80(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	%al, -103(%rbp)
	jne	.L11
	movb	$1, -101(%rbp)
.L11:
	addl	$1, -80(%rbp)
.L10:
	movl	-100(%rbp), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L12
	cmpb	$0, -102(%rbp)
	je	.L13
	cmpb	$0, -101(%rbp)
	je	.L13
	addl	$1, -88(%rbp)
.L13:
	movzbl	-103(%rbp), %eax
	addl	$1, %eax
	movb	%al, -103(%rbp)
.L6:
	cmpb	$122, -103(%rbp)
	jle	.L14
	movl	-96(%rbp), %eax
	cmpl	-88(%rbp), %eax
	jge	.L15
	movl	-88(%rbp), %eax
	movl	%eax, -96(%rbp)
.L15:
	addl	$1, -92(%rbp)
.L5:
	movl	-100(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L16
	movl	-96(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -96(%rbp)
	movl	$0, -76(%rbp)
	leaq	-100(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-100(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -92(%rbp)
	jmp	.L5
.L16:
	movl	$0, -88(%rbp)
	movb	$97, -103(%rbp)
	jmp	.L6
.L14:
	movb	$0, -102(%rbp)
	movb	$0, -101(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L7
.L9:
	movq	-64(%rbp), %rdx
	movl	-84(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	%al, -103(%rbp)
	jne	.L8
	movb	$1, -102(%rbp)
.L8:
	addl	$1, -84(%rbp)
.L7:
	movl	-84(%rbp), %eax
	cmpl	-92(%rbp), %eax
	jl	.L9
	movl	-92(%rbp), %eax
	movl	%eax, -80(%rbp)
	jmp	.L10
.L12:
	movq	-64(%rbp), %rdx
	movl	-80(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	%al, -103(%rbp)
	jne	.L11
	movb	$1, -101(%rbp)
.L11:
	addl	$1, -80(%rbp)
.L10:
	movl	-100(%rbp), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L12
	cmpb	$0, -102(%rbp)
	je	.L13
	cmpb	$0, -101(%rbp)
	je	.L13
	addl	$1, -88(%rbp)
.L13:
	movzbl	-103(%rbp), %eax
	addl	$1, %eax
	movb	%al, -103(%rbp)
.L6:
	cmpb	$122, -103(%rbp)
	jle	.L14
	movl	-96(%rbp), %eax
	cmpl	-88(%rbp), %eax
	jge	.L15
	movl	-88(%rbp), %eax
	movl	%eax, -96(%rbp)
.L15:
	addl	$1, -92(%rbp)
.L5:
	movl	-100(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L16
	movl	-96(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
