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>

int main(){

char S[100000];
char ans;
int ch;
int alpha[26];
for (int i = 0; i < 26; i++){alpha[i]= -1;}

scanf("%s",S);

for (int i = 0; i < 100000; i++)
{ 
 if (S[i] == '\0')
  {
    break;
  }else
  {
    int t = (int)S[i] - 'a';
    alpha[t] = (int)S[i] - 'a';
  } 
}

for (int i = 0; i < 26; i++)
{
  if (alpha[i] == -1)
  {
    printf("%c",'a'+i);
    break;
  }else if (i==25 && alpha[25]!= -1)
  {
    puts("None");
  }
}

return 0;

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"None"
	.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
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1840, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -100144(%rbp)
	jmp	.L2
.L3:
	movl	-100144(%rbp), %eax
	cltq
	movl	$-1, -100128(%rbp,%rax,4)
	addl	$1, -100144(%rbp)
.L2:
	cmpl	$25, -100144(%rbp)
	jle	.L3
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100140(%rbp)
	jmp	.L4
.L7:
	movl	-100140(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L15
	movl	-100140(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movl	%eax, -100132(%rbp)
	movl	-100140(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-97(%rax), %edx
	movl	-100132(%rbp), %eax
	cltq
	movl	%edx, -100128(%rbp,%rax,4)
	addl	$1, -100140(%rbp)
.L4:
	cmpl	$99999, -100140(%rbp)
	jle	.L7
	jmp	.L6
.L15:
	nop
.L6:
	movl	$0, -100136(%rbp)
	jmp	.L8
.L12:
	movl	-100136(%rbp), %eax
	cltq
	movl	-100128(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	jne	.L9
	movl	-100136(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L10
.L9:
	cmpl	$25, -100136(%rbp)
	jne	.L11
	movl	-100028(%rbp), %eax
	cmpl	$-1, %eax
	je	.L11
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L11:
	addl	$1, -100136(%rbp)
.L8:
	cmpl	$25, -100136(%rbp)
	jle	.L12
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.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	"%s"
.LC1:
	.string	"None"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1824, %rsp
	.cfi_def_cfa_offset 100144
	pcmpeqd	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100120(%rsp)
	xorl	%eax, %eax
	leaq	112(%rsp), %rbx
	movaps	%xmm0, (%rsp)
	movq	%rbx, %rsi
	movaps	%xmm0, 16(%rsp)
	movq	$-1, 96(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdx
	leaq	100112(%rsp), %rsi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	subl	$97, %eax
	addq	$1, %rdx
	movslq	%eax, %rcx
	movl	%eax, (%rsp,%rcx,4)
	cmpq	%rsi, %rdx
	je	.L2
.L3:
	movsbl	(%rdx), %eax
	testb	%al, %al
	jne	.L16
.L2:
	xorl	%eax, %eax
	movq	%rsp, %rdx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rax
.L8:
	cmpl	$-1, (%rdx,%rax,4)
	movl	%eax, %edi
	je	.L17
	cmpq	$25, %rax
	jne	.L6
	cmpl	$-1, 100(%rsp)
	je	.L5
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L5:
	movq	100120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$100128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	addl	$97, %edi
	call	putchar@PLT
	jmp	.L5
.L18:
	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	"%s"
.LC1:
	.string	"None"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1824, %rsp
	.cfi_def_cfa_offset 100144
	pcmpeqd	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100120(%rsp)
	xorl	%eax, %eax
	leaq	112(%rsp), %rbx
	movaps	%xmm0, (%rsp)
	movq	%rbx, %rsi
	movaps	%xmm0, 16(%rsp)
	movq	$-1, 96(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdx
	leaq	100112(%rsp), %rsi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	subl	$97, %eax
	addq	$1, %rdx
	movslq	%eax, %rcx
	movl	%eax, (%rsp,%rcx,4)
	cmpq	%rsi, %rdx
	je	.L2
.L3:
	movsbl	(%rdx), %eax
	testb	%al, %al
	jne	.L16
.L2:
	xorl	%eax, %eax
	movq	%rsp, %rdx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rax
.L8:
	cmpl	$-1, (%rdx,%rax,4)
	movl	%eax, %edi
	je	.L17
	cmpq	$25, %rax
	jne	.L6
	cmpl	$-1, 100(%rsp)
	je	.L5
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L5:
	movq	100120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$100128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	addl	$97, %edi
	call	putchar@PLT
	jmp	.L5
.L18:
	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>

int main(){

char S[100000];
char ans;
int ch;
int alpha[26];
for (int i = 0; i < 26; i++){alpha[i]= -1;}

scanf("%s",S);

for (int i = 0; i < 100000; i++)
{ 
 if (S[i] == '\0')
  {
    break;
  }else
  {
    int t = (int)S[i] - 'a';
    alpha[t] = (int)S[i] - 'a';
  } 
}

for (int i = 0; i < 26; i++)
{
  if (alpha[i] == -1)
  {
    printf("%c",'a'+i);
    break;
  }else if (i==25 && alpha[25]!= -1)
  {
    puts("None");
  }
}

return 0;

}
atcoderregularcontest

b
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>

int main(){

char S[100000];
char ans;
int ch;
int alpha[26];
for (int i = 0; i < 26; i++){alpha[i]= -1;}

scanf("%s",S);

for (int i = 0; i < 100000; i++)
{ 
 if (S[i] == '\0')
  {
    break;
  }else
  {
    int t = (int)S[i] - 'a';
    alpha[t] = (int)S[i] - 'a';
  } 
}

for (int i = 0; i < 26; i++)
{
  if (alpha[i] == -1)
  {
    printf("%c",'a'+i);
    break;
  }else if (i==25 && alpha[25]!= -1)
  {
    puts("None");
  }
}

return 0;

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"None"
	.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
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1840, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -100144(%rbp)
	jmp	.L2
.L3:
	movl	-100144(%rbp), %eax
	cltq
	movl	$-1, -100128(%rbp,%rax,4)
	addl	$1, -100144(%rbp)
.L2:
	cmpl	$25, -100144(%rbp)
	jle	.L3
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100140(%rbp)
	jmp	.L4
.L7:
	movl	-100140(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L15
	movl	-100140(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movl	%eax, -100132(%rbp)
	movl	-100140(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-97(%rax), %edx
	movl	-100132(%rbp), %eax
	cltq
	movl	%edx, -100128(%rbp,%rax,4)
	addl	$1, -100140(%rbp)
.L4:
	cmpl	$99999, -100140(%rbp)
	jle	.L7
	jmp	.L6
.L15:
	nop
.L6:
	movl	$0, -100136(%rbp)
	jmp	.L8
.L12:
	movl	-100136(%rbp), %eax
	cltq
	movl	-100128(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	jne	.L9
	movl	-100136(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L10
.L9:
	cmpl	$25, -100136(%rbp)
	jne	.L11
	movl	-100028(%rbp), %eax
	cmpl	$-1, %eax
	je	.L11
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L11:
	addl	$1, -100136(%rbp)
.L8:
	cmpl	$25, -100136(%rbp)
	jle	.L12
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.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	"%s"
.LC1:
	.string	"None"
	.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
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1840, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -100144(%rbp)
	jmp	.L2
.L3:
	movl	-100144(%rbp), %eax
	cltq
	movl	$-1, -100128(%rbp,%rax,4)
	addl	$1, -100144(%rbp)
.L2:
	cmpl	$25, -100144(%rbp)
	jle	.L3
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100140(%rbp)
	jmp	.L4
.L7:
	movl	-100140(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L15
	movl	-100140(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movl	%eax, -100132(%rbp)
	movl	-100140(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	movsbl	%al, %eax
	leal	-97(%rax), %edx
	movl	-100132(%rbp), %eax
	cltq
	movl	%edx, -100128(%rbp,%rax,4)
	addl	$1, -100140(%rbp)
.L4:
	cmpl	$99999, -100140(%rbp)
	jle	.L7
	jmp	.L6
.L15:
	nop
.L6:
	movl	$0, -100136(%rbp)
	jmp	.L8
.L12:
	movl	-100136(%rbp), %eax
	cltq
	movl	-100128(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	jne	.L9
	movl	-100136(%rbp), %eax
	addl	$97, %eax
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L10
.L9:
	cmpl	$25, -100136(%rbp)
	jne	.L11
	movl	-100028(%rbp), %eax
	cmpl	$-1, %eax
	je	.L11
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L11:
	addl	$1, -100136(%rbp)
.L8:
	cmpl	$25, -100136(%rbp)
	jle	.L12
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.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:
