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<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;
}
```

Assembly Code:

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

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"
.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
```assembly
	.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:
```
```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;
}
```
Given the following C 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;
}
```

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
 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 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;
}
```

Assembly Code:

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

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