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 <stdlib.h>
#include <string.h>

int b[26] ={0};

int main(void)
{
    char s[101];
    scanf("%s", s);
    int l = strlen(s);
    for (int i = 0; i < l; ++i){
       b[s[i] -'a'] ++;
    }

    for (int j = 0; j < 26; ++j){
        if (b[j]){
            int k = 0;
            int max = 0;
            for (int i = 0; i < l; ++i){
                if (s[i] == j + 'a'){
                    if (k > max){
                        max = k;
                        k = 0;
                    }
                     k = 0;
                }
                else
                    k++;
            }
            if (k > max)
                b[j] = k;
            else
                b[j] = max;
        }
        else
            b[j] = 200;
    }
       
    int min = 200;
    for (int j = 0; j < 26; ++j){
        if (b[j] < min){
            min = b[j];
        }
    }
    printf("%d\n", min);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %r10
	testq	%rax, %rax
	je	.L5
	leal	-1(%rax), %eax
	movq	%rbx, %rdx
	leaq	b(%rip), %rcx
	leaq	1(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	movsbl	(%rdx), %eax
	addq	$1, %rdx
	subl	$97, %eax
	cltq
	addl	$1, (%rcx,%rax,4)
	cmpq	%rsi, %rdx
	jne	.L4
.L5:
	leal	-1(%r10), %eax
	leaq	b(%rip), %rdi
	movl	$97, %ecx
	leaq	1(%rsp,%rax), %r9
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %ecx
	movl	%edx, (%rdi)
	addq	$4, %rdi
	cmpl	$123, %ecx
	je	.L19
.L3:
	movl	(%rdi), %eax
	movl	$200, %edx
	testl	%eax, %eax
	je	.L6
	testq	%r10, %r10
	je	.L13
	movq	%rbx, %rax
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, %rax
	addl	$1, %edx
	cmpq	%r9, %rax
	je	.L20
.L10:
	movsbl	(%rax), %esi
	cmpl	%ecx, %esi
	jne	.L8
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addq	$1, %rax
	xorl	%edx, %edx
	cmpq	%r9, %rax
	jne	.L10
.L20:
	cmpl	%edx, %r8d
	jl	.L6
.L7:
	movl	%r8d, %edx
	addl	$1, %ecx
	addq	$4, %rdi
	movl	%edx, -4(%rdi)
	cmpl	$123, %ecx
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	movdqa	32+b(%rip), %xmm1
	movdqa	48+b(%rip), %xmm0
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movdqa	b(%rip), %xmm2
	movdqa	.LC1(%rip), %xmm3
	pcmpgtd	48+b(%rip), %xmm1
	movl	100+b(%rip), %edx
	movl	96+b(%rip), %ecx
	cmpl	%ecx, %edx
	pand	%xmm1, %xmm0
	pandn	32+b(%rip), %xmm1
	cmovg	%ecx, %edx
	por	%xmm0, %xmm1
	movdqa	16+b(%rip), %xmm0
	pcmpgtd	b(%rip), %xmm0
	pand	%xmm0, %xmm2
	pandn	16+b(%rip), %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm1, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pand	%xmm2, %xmm0
	pandn	%xmm1, %xmm2
	movdqa	80+b(%rip), %xmm1
	por	%xmm0, %xmm2
	movdqa	64+b(%rip), %xmm0
	pcmpgtd	64+b(%rip), %xmm1
	pand	%xmm1, %xmm0
	pandn	80+b(%rip), %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	por	%xmm3, %xmm0
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$8, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 104
b:
	.zero	104
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	200
	.long	200
	.long	200
	.long	200
	.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	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %r10
	testq	%rax, %rax
	je	.L5
	leal	-1(%rax), %eax
	movq	%rbx, %rdx
	leaq	b(%rip), %rcx
	leaq	1(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	movsbl	(%rdx), %eax
	addq	$1, %rdx
	subl	$97, %eax
	cltq
	addl	$1, (%rcx,%rax,4)
	cmpq	%rsi, %rdx
	jne	.L4
.L5:
	leal	-1(%r10), %eax
	leaq	b(%rip), %rdi
	movl	$97, %ecx
	leaq	1(%rsp,%rax), %r9
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %ecx
	movl	%edx, (%rdi)
	addq	$4, %rdi
	cmpl	$123, %ecx
	je	.L19
.L3:
	movl	(%rdi), %eax
	movl	$200, %edx
	testl	%eax, %eax
	je	.L6
	testq	%r10, %r10
	je	.L13
	movq	%rbx, %rax
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, %rax
	addl	$1, %edx
	cmpq	%r9, %rax
	je	.L20
.L10:
	movsbl	(%rax), %esi
	cmpl	%ecx, %esi
	jne	.L8
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addq	$1, %rax
	xorl	%edx, %edx
	cmpq	%r9, %rax
	jne	.L10
.L20:
	cmpl	%edx, %r8d
	jl	.L6
.L7:
	movl	%r8d, %edx
	addl	$1, %ecx
	addq	$4, %rdi
	movl	%edx, -4(%rdi)
	cmpl	$123, %ecx
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	movdqa	32+b(%rip), %xmm1
	movdqa	48+b(%rip), %xmm0
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movdqa	b(%rip), %xmm2
	movdqa	.LC1(%rip), %xmm3
	pcmpgtd	48+b(%rip), %xmm1
	movl	100+b(%rip), %edx
	movl	96+b(%rip), %ecx
	cmpl	%ecx, %edx
	pand	%xmm1, %xmm0
	pandn	32+b(%rip), %xmm1
	cmovg	%ecx, %edx
	por	%xmm0, %xmm1
	movdqa	16+b(%rip), %xmm0
	pcmpgtd	b(%rip), %xmm0
	pand	%xmm0, %xmm2
	pandn	16+b(%rip), %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm1, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pand	%xmm2, %xmm0
	pandn	%xmm1, %xmm2
	movdqa	80+b(%rip), %xmm1
	por	%xmm0, %xmm2
	movdqa	64+b(%rip), %xmm0
	pcmpgtd	64+b(%rip), %xmm1
	pand	%xmm1, %xmm0
	pandn	80+b(%rip), %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	por	%xmm3, %xmm0
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$8, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 104
b:
	.zero	104
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	200
	.long	200
	.long	200
	.long	200
	.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	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %r10
	testq	%rax, %rax
	je	.L5
	leal	-1(%rax), %eax
	movq	%rbx, %rdx
	leaq	b(%rip), %rcx
	leaq	1(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	movsbl	(%rdx), %eax
	addq	$1, %rdx
	subl	$97, %eax
	cltq
	addl	$1, (%rcx,%rax,4)
	cmpq	%rsi, %rdx
	jne	.L4
.L5:
	leal	-1(%r10), %eax
	leaq	b(%rip), %rdi
	movl	$97, %ecx
	leaq	1(%rsp,%rax), %r9
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %ecx
	movl	%edx, (%rdi)
	addq	$4, %rdi
	cmpl	$123, %ecx
	je	.L19
.L3:
	movl	(%rdi), %eax
	movl	$200, %edx
	testl	%eax, %eax
	je	.L6
	testq	%r10, %r10
	je	.L13
	movq	%rbx, %rax
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, %rax
	addl	$1, %edx
	cmpq	%r9, %rax
	je	.L20
.L10:
	movsbl	(%rax), %esi
	cmpl	%ecx, %esi
	jne	.L8
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addq	$1, %rax
	xorl	%edx, %edx
	cmpq	%r9, %rax
	jne	.L10
.L20:
	cmpl	%edx, %r8d
	jl	.L6
.L7:
	movl	%r8d, %edx
	addl	$1, %ecx
	addq	$4, %rdi
	movl	%edx, -4(%rdi)
	cmpl	$123, %ecx
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	movdqa	32+b(%rip), %xmm1
	movdqa	48+b(%rip), %xmm0
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movdqa	b(%rip), %xmm2
	movdqa	.LC1(%rip), %xmm3
	pcmpgtd	48+b(%rip), %xmm1
	movl	100+b(%rip), %edx
	movl	96+b(%rip), %ecx
	cmpl	%ecx, %edx
	pand	%xmm1, %xmm0
	pandn	32+b(%rip), %xmm1
	cmovg	%ecx, %edx
	por	%xmm0, %xmm1
	movdqa	16+b(%rip), %xmm0
	pcmpgtd	b(%rip), %xmm0
	pand	%xmm0, %xmm2
	pandn	16+b(%rip), %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm1, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pand	%xmm2, %xmm0
	pandn	%xmm1, %xmm2
	movdqa	80+b(%rip), %xmm1
	por	%xmm0, %xmm2
	movdqa	64+b(%rip), %xmm0
	pcmpgtd	64+b(%rip), %xmm1
	pand	%xmm1, %xmm0
	pandn	80+b(%rip), %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	por	%xmm3, %xmm0
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$8, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 104
b:
	.zero	104
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	200
	.long	200
	.long	200
	.long	200
	.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 <stdlib.h>
#include <string.h>

int b[26] ={0};

int main(void)
{
    char s[101];
    scanf("%s", s);
    int l = strlen(s);
    for (int i = 0; i < l; ++i){
       b[s[i] -'a'] ++;
    }

    for (int j = 0; j < 26; ++j){
        if (b[j]){
            int k = 0;
            int max = 0;
            for (int i = 0; i < l; ++i){
                if (s[i] == j + 'a'){
                    if (k > max){
                        max = k;
                        k = 0;
                    }
                     k = 0;
                }
                else
                    k++;
            }
            if (k > max)
                b[j] = k;
            else
                b[j] = max;
        }
        else
            b[j] = 200;
    }
       
    int min = 200;
    for (int j = 0; j < 26; ++j){
        if (b[j] < min){
            min = b[j];
        }
    }
    printf("%d\n", min);
    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 <stdlib.h>
#include <string.h>

int b[26] ={0};

int main(void)
{
    char s[101];
    scanf("%s", s);
    int l = strlen(s);
    for (int i = 0; i < l; ++i){
       b[s[i] -'a'] ++;
    }

    for (int j = 0; j < 26; ++j){
        if (b[j]){
            int k = 0;
            int max = 0;
            for (int i = 0; i < l; ++i){
                if (s[i] == j + 'a'){
                    if (k > max){
                        max = k;
                        k = 0;
                    }
                     k = 0;
                }
                else
                    k++;
            }
            if (k > max)
                b[j] = k;
            else
                b[j] = max;
        }
        else
            b[j] = 200;
    }
       
    int min = 200;
    for (int j = 0; j < 26; ++j){
        if (b[j] < min){
            min = b[j];
        }
    }
    printf("%d\n", min);
    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:

resval
 whbrjpjyhsrywlqjxcbrbaomnw
 zzy
 lakjac
 xmboabrbnxjrlwyrthyjpjrchv
 whcrjpbyhtxywkrlxnbrbaojmr
 smjoabjdoxmrjwypugydyqrchv
 whdrpxdwhuozxkrmxodjaaojkt
 xwwwnajdrxmrqwzpugnhlojced
 wyeoqidphazibqrnvxibngzwpx

3
 8
 1
 2
 6
 10
 11
 9
 12
 7

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 <stdlib.h>
#include <string.h>

int b[26] ={0};

int main(void)
{
    char s[101];
    scanf("%s", s);
    int l = strlen(s);
    for (int i = 0; i < l; ++i){
       b[s[i] -'a'] ++;
    }

    for (int j = 0; j < 26; ++j){
        if (b[j]){
            int k = 0;
            int max = 0;
            for (int i = 0; i < l; ++i){
                if (s[i] == j + 'a'){
                    if (k > max){
                        max = k;
                        k = 0;
                    }
                     k = 0;
                }
                else
                    k++;
            }
            if (k > max)
                b[j] = k;
            else
                b[j] = max;
        }
        else
            b[j] = 200;
    }
       
    int min = 200;
    for (int j = 0; j < 26; ++j){
        if (b[j] < min){
            min = b[j];
        }
    }
    printf("%d\n", min);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %r10
	testq	%rax, %rax
	je	.L5
	leal	-1(%rax), %eax
	movq	%rbx, %rdx
	leaq	b(%rip), %rcx
	leaq	1(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	movsbl	(%rdx), %eax
	addq	$1, %rdx
	subl	$97, %eax
	cltq
	addl	$1, (%rcx,%rax,4)
	cmpq	%rsi, %rdx
	jne	.L4
.L5:
	leal	-1(%r10), %eax
	leaq	b(%rip), %rdi
	movl	$97, %ecx
	leaq	1(%rsp,%rax), %r9
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %ecx
	movl	%edx, (%rdi)
	addq	$4, %rdi
	cmpl	$123, %ecx
	je	.L19
.L3:
	movl	(%rdi), %eax
	movl	$200, %edx
	testl	%eax, %eax
	je	.L6
	testq	%r10, %r10
	je	.L13
	movq	%rbx, %rax
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, %rax
	addl	$1, %edx
	cmpq	%r9, %rax
	je	.L20
.L10:
	movsbl	(%rax), %esi
	cmpl	%ecx, %esi
	jne	.L8
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addq	$1, %rax
	xorl	%edx, %edx
	cmpq	%r9, %rax
	jne	.L10
.L20:
	cmpl	%edx, %r8d
	jl	.L6
.L7:
	movl	%r8d, %edx
	addl	$1, %ecx
	addq	$4, %rdi
	movl	%edx, -4(%rdi)
	cmpl	$123, %ecx
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	movdqa	32+b(%rip), %xmm1
	movdqa	48+b(%rip), %xmm0
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movdqa	b(%rip), %xmm2
	movdqa	.LC1(%rip), %xmm3
	pcmpgtd	48+b(%rip), %xmm1
	movl	100+b(%rip), %edx
	movl	96+b(%rip), %ecx
	cmpl	%ecx, %edx
	pand	%xmm1, %xmm0
	pandn	32+b(%rip), %xmm1
	cmovg	%ecx, %edx
	por	%xmm0, %xmm1
	movdqa	16+b(%rip), %xmm0
	pcmpgtd	b(%rip), %xmm0
	pand	%xmm0, %xmm2
	pandn	16+b(%rip), %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm1, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pand	%xmm2, %xmm0
	pandn	%xmm1, %xmm2
	movdqa	80+b(%rip), %xmm1
	por	%xmm0, %xmm2
	movdqa	64+b(%rip), %xmm0
	pcmpgtd	64+b(%rip), %xmm1
	pand	%xmm1, %xmm0
	pandn	80+b(%rip), %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	por	%xmm3, %xmm0
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$8, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 104
b:
	.zero	104
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	200
	.long	200
	.long	200
	.long	200
	.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	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %r10
	testq	%rax, %rax
	je	.L5
	leal	-1(%rax), %eax
	movq	%rbx, %rdx
	leaq	b(%rip), %rcx
	leaq	1(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	movsbl	(%rdx), %eax
	addq	$1, %rdx
	subl	$97, %eax
	cltq
	addl	$1, (%rcx,%rax,4)
	cmpq	%rsi, %rdx
	jne	.L4
.L5:
	leal	-1(%r10), %eax
	leaq	b(%rip), %rdi
	movl	$97, %ecx
	leaq	1(%rsp,%rax), %r9
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %ecx
	movl	%edx, (%rdi)
	addq	$4, %rdi
	cmpl	$123, %ecx
	je	.L19
.L3:
	movl	(%rdi), %eax
	movl	$200, %edx
	testl	%eax, %eax
	je	.L6
	testq	%r10, %r10
	je	.L13
	movq	%rbx, %rax
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, %rax
	addl	$1, %edx
	cmpq	%r9, %rax
	je	.L20
.L10:
	movsbl	(%rax), %esi
	cmpl	%ecx, %esi
	jne	.L8
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addq	$1, %rax
	xorl	%edx, %edx
	cmpq	%r9, %rax
	jne	.L10
.L20:
	cmpl	%edx, %r8d
	jl	.L6
.L7:
	movl	%r8d, %edx
	addl	$1, %ecx
	addq	$4, %rdi
	movl	%edx, -4(%rdi)
	cmpl	$123, %ecx
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	movdqa	32+b(%rip), %xmm1
	movdqa	48+b(%rip), %xmm0
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movdqa	b(%rip), %xmm2
	movdqa	.LC1(%rip), %xmm3
	pcmpgtd	48+b(%rip), %xmm1
	movl	100+b(%rip), %edx
	movl	96+b(%rip), %ecx
	cmpl	%ecx, %edx
	pand	%xmm1, %xmm0
	pandn	32+b(%rip), %xmm1
	cmovg	%ecx, %edx
	por	%xmm0, %xmm1
	movdqa	16+b(%rip), %xmm0
	pcmpgtd	b(%rip), %xmm0
	pand	%xmm0, %xmm2
	pandn	16+b(%rip), %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm1, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pand	%xmm2, %xmm0
	pandn	%xmm1, %xmm2
	movdqa	80+b(%rip), %xmm1
	por	%xmm0, %xmm2
	movdqa	64+b(%rip), %xmm0
	pcmpgtd	64+b(%rip), %xmm1
	pand	%xmm1, %xmm0
	pandn	80+b(%rip), %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	movdqa	%xmm2, %xmm1
	por	%xmm3, %xmm0
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$8, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 104
b:
	.zero	104
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	200
	.long	200
	.long	200
	.long	200
	.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:
```