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

char c[6600];


int main(){
  int i,j,k,hoge,head,tail,size,v,keta,ci,isEOF,isL;
  char code[15],form[6],b;
  size=head=tail=ci=0;
  keta=1;
  c[23]=' ';
  c[364]='\'';
  c[688]=',';;
  c[5495]='-';
  c[610]='.';
  c[607]='?';
  c[635]='A';
  c[4118]='B';
  c[70]='C';
  c[67]='D';
  c[17]='E';
  c[205]='F';
  c[6305]='G';
  c[367]='H';
  c[79]='I';
  c[3389]='J';
  c[52]='K';
  c[130]='L';
  c[5576]='M';
  c[4361]='N';
  c[211]='O';
  c[26]='P';
  c[6548]='Q';
  c[41]='R';
  c[157]='S';
  c[238]='T';
  c[3632]='U';
  c[5819]='V';
  c[445]='W';
  c[4037]='X';
  c[6224]='Y';
  c[3308]='Z';
  isEOF=0;
  isL=0;
  do{
    for(i=size;i<8;i+=5){
      if((b=getchar())!=EOF){
	if(isalpha(b)){
	  for(j=0,hoge=1,v=0;j<5;j++,hoge*=10)
	    v+=((((int)b-(int)'A')>>j)&1)*hoge;
	  sprintf(form,"%05d",v);
	}else if(b==' '){
	  strcpy(form,"11010");
	}else if(b=='.'){
	  strcpy(form,"11011");
	}else if(b==','){
	  strcpy(form,"11100");
	}else if(b=='-'){
	  strcpy(form,"11101");
	}else if(b=='\''){
	  strcpy(form,"11110");
	}else if(b=='?'){
	  strcpy(form,"11111");
	}else if(b=='\n'){
	  isL=1;
	  break;;
	}
	for(j=tail,k=0;form[k];k++,j=(j+1)%15){
	  code[j]=form[k];
	}
	size+=5;
	tail=(tail+5)%15;
      }else{
	isEOF=1;
	break;
      }
    }/*
    printf("head=%d tail=%d\n",head,tail);
    for(i=head;i!=tail;i=(i+1)%15)
      printf("%c",code[i]);
    printf("\n");
     */
    for(i=head;i!=tail;i=(i+1)%15){
      ci+=((int)code[i]-(int)'0'+1)*keta;
      keta*=3;
      if(c[ci]){
	printf("%c",c[ci]);
	keta=1;
	ci=0;
	head=(i+1)%15;
	size=head<=tail?tail-head:15-head+tail;
      }
    }
    ci=0;
    keta=1;
    if(isL){
      printf("\n");
      isL=0;
      size=head=tail=ci=0;
    }
    if(isEOF) break;
  }while(1);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 6600
c:
	.zero	6600
	.section	.rodata
.LC0:
	.string	"%05d"
	.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
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -44(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -60(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	$1, -48(%rbp)
	movb	$32, 23+c(%rip)
	movb	$39, 364+c(%rip)
	movb	$44, 688+c(%rip)
	movb	$45, 5495+c(%rip)
	movb	$46, 610+c(%rip)
	movb	$63, 607+c(%rip)
	movb	$65, 635+c(%rip)
	movb	$66, 4118+c(%rip)
	movb	$67, 70+c(%rip)
	movb	$68, 67+c(%rip)
	movb	$69, 17+c(%rip)
	movb	$70, 205+c(%rip)
	movb	$71, 6305+c(%rip)
	movb	$72, 367+c(%rip)
	movb	$73, 79+c(%rip)
	movb	$74, 3389+c(%rip)
	movb	$75, 52+c(%rip)
	movb	$76, 130+c(%rip)
	movb	$77, 5576+c(%rip)
	movb	$78, 4361+c(%rip)
	movb	$79, 211+c(%rip)
	movb	$80, 26+c(%rip)
	movb	$81, 6548+c(%rip)
	movb	$82, 41+c(%rip)
	movb	$83, 157+c(%rip)
	movb	$84, 238+c(%rip)
	movb	$85, 3632+c(%rip)
	movb	$86, 5819+c(%rip)
	movb	$87, 445+c(%rip)
	movb	$88, 4037+c(%rip)
	movb	$89, 6224+c(%rip)
	movb	$90, 3308+c(%rip)
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
.L27:
	movl	-56(%rbp), %eax
	movl	%eax, -80(%rbp)
	jmp	.L2
.L18:
	call	getchar@PLT
	movb	%al, -81(%rbp)
	cmpb	$-1, -81(%rbp)
	je	.L3
	movsbl	-81(%rbp), %eax
	movl	%eax, %edi
	call	isalpha@PLT
	testl	%eax, %eax
	je	.L4
	movl	$0, -76(%rbp)
	movl	$1, -68(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L5
.L6:
	movsbl	-81(%rbp), %eax
	leal	-65(%rax), %edx
	movl	-76(%rbp), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	imull	-68(%rbp), %eax
	addl	%eax, -52(%rbp)
	addl	$1, -76(%rbp)
	movl	-68(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -68(%rbp)
.L5:
	cmpl	$4, -76(%rbp)
	jle	.L6
	movl	-52(%rbp), %edx
	leaq	-29(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	jmp	.L7
.L4:
	cmpb	$32, -81(%rbp)
	jne	.L8
	movl	$825241905, -29(%rbp)
	movw	$48, -25(%rbp)
	jmp	.L7
.L8:
	cmpb	$46, -81(%rbp)
	jne	.L9
	movl	$825241905, -29(%rbp)
	movw	$49, -25(%rbp)
	jmp	.L7
.L9:
	cmpb	$44, -81(%rbp)
	jne	.L10
	movl	$808530225, -29(%rbp)
	movw	$48, -25(%rbp)
	jmp	.L7
.L10:
	cmpb	$45, -81(%rbp)
	jne	.L11
	movl	$808530225, -29(%rbp)
	movw	$49, -25(%rbp)
	jmp	.L7
.L11:
	cmpb	$39, -81(%rbp)
	jne	.L12
	movl	$825307441, -29(%rbp)
	movw	$48, -25(%rbp)
	jmp	.L7
.L12:
	cmpb	$63, -81(%rbp)
	jne	.L13
	movl	$825307441, -29(%rbp)
	movw	$49, -25(%rbp)
	jmp	.L7
.L13:
	cmpb	$10, -81(%rbp)
	jne	.L7
	movl	$1, -36(%rbp)
	jmp	.L14
.L7:
	movl	-60(%rbp), %eax
	movl	%eax, -76(%rbp)
	movl	$0, -72(%rbp)
	jmp	.L15
.L16:
	movl	-72(%rbp), %eax
	cltq
	movzbl	-29(%rbp,%rax), %edx
	movl	-76(%rbp), %eax
	cltq
	movb	%dl, -23(%rbp,%rax)
	addl	$1, -72(%rbp)
	movl	-76(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-2004318071, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -76(%rbp)
	movl	-76(%rbp), %ecx
	movl	%ecx, %edx
	sall	$4, %edx
	subl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -76(%rbp)
.L15:
	movl	-72(%rbp), %eax
	cltq
	movzbl	-29(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L16
	addl	$5, -56(%rbp)
	movl	-60(%rbp), %eax
	addl	$5, %eax
	movslq	%eax, %rdx
	imulq	$-2004318071, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -60(%rbp)
	movl	-60(%rbp), %ecx
	movl	%ecx, %edx
	sall	$4, %edx
	subl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -60(%rbp)
	jmp	.L30
.L3:
	movl	$1, -40(%rbp)
	jmp	.L14
.L30:
	addl	$5, -80(%rbp)
.L2:
	cmpl	$7, -80(%rbp)
	jle	.L18
.L14:
	movl	-64(%rbp), %eax
	movl	%eax, -80(%rbp)
	jmp	.L19
.L23:
	movl	-80(%rbp), %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$47, %eax
	imull	-48(%rbp), %eax
	addl	%eax, -44(%rbp)
	movl	-48(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %eax
	cltq
	leaq	c(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L20
	movl	-44(%rbp), %eax
	cltq
	leaq	c(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	movl	$1, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	-80(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-2004318071, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -64(%rbp)
	movl	-64(%rbp), %ecx
	movl	%ecx, %edx
	sall	$4, %edx
	subl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jg	.L21
	movl	-60(%rbp), %eax
	subl	-64(%rbp), %eax
	jmp	.L22
.L21:
	movl	$15, %eax
	subl	-64(%rbp), %eax
	movl	%eax, %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
.L22:
	movl	%eax, -56(%rbp)
.L20:
	movl	-80(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-2004318071, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -80(%rbp)
	movl	-80(%rbp), %ecx
	movl	%ecx, %edx
	sall	$4, %edx
	subl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -80(%rbp)
.L19:
	movl	-80(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jne	.L23
	movl	$0, -44(%rbp)
	movl	$1, -48(%rbp)
	cmpl	$0, -36(%rbp)
	je	.L24
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, -36(%rbp)
	movl	$0, -44(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -60(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -56(%rbp)
.L24:
	cmpl	$0, -40(%rbp)
	jne	.L32
	jmp	.L27
.L32:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	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	"%05d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%r15d, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	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
	movl	$2290649225, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movb	$32, 23+c(%rip)
	movb	$39, 364+c(%rip)
	movb	$44, 688+c(%rip)
	movb	$45, 5495+c(%rip)
	movb	$46, 610+c(%rip)
	movb	$63, 607+c(%rip)
	movb	$65, 635+c(%rip)
	movb	$66, 4118+c(%rip)
	movb	$67, 70+c(%rip)
	movb	$68, 67+c(%rip)
	movb	$69, 17+c(%rip)
	movb	$70, 205+c(%rip)
	movb	$71, 6305+c(%rip)
	movb	$72, 367+c(%rip)
	movb	$73, 79+c(%rip)
	movb	$74, 3389+c(%rip)
	movb	$75, 52+c(%rip)
	movb	$76, 130+c(%rip)
	movb	$77, 5576+c(%rip)
	movb	$78, 4361+c(%rip)
	movb	$79, 211+c(%rip)
	movb	$80, 26+c(%rip)
	movb	$81, 6548+c(%rip)
	movb	$82, 41+c(%rip)
	movb	$83, 157+c(%rip)
	movb	$84, 238+c(%rip)
	movb	$85, 3632+c(%rip)
	movb	$86, 5819+c(%rip)
	movb	$87, 445+c(%rip)
	movb	$88, 4037+c(%rip)
	movb	$89, 6224+c(%rip)
	movb	$90, 3308+c(%rip)
	.p2align 4,,10
	.p2align 3
.L32:
	cmpl	$7, %ebx
	jg	.L50
.L28:
	leaq	19(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L15:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movl	%eax, %r13d
	cmpb	$-1, %al
	je	.L3
	movsbl	%al, %r12d
	movl	%r12d, %edi
	call	isalpha@PLT
	movl	%eax, %ecx
	testl	%eax, %eax
	jne	.L56
	leal	-10(%r13), %edx
	cmpb	$53, %dl
	ja	.L5
	leaq	.L7(%rip), %rsi
	movzbl	%dl, %edx
	movslq	(%rsi,%rdx,4), %rax
	addq	%rsi, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L13-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L12-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L11-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L6-.L7
	.section	.text.startup
	.p2align 4,,10
	.p2align 3
.L56:
	leal	-65(%r12), %eax
	movq	8(%rsp), %rdi
	movl	$1, %esi
	movl	%eax, %edx
	movl	%eax, %r8d
	sarl	%edx
	sarl	$3, %r8d
	andl	$1, %edx
	andl	$1, %r8d
	imull	$1000, %r8d, %r8d
	leal	(%rdx,%rdx,4), %ecx
	movl	%eax, %edx
	andl	$1, %edx
	leal	(%rdx,%rcx,2), %ecx
	movl	%eax, %edx
	sarl	$4, %eax
	sarl	$2, %edx
	andl	$1, %eax
	andl	$1, %edx
	imull	$10000, %eax, %eax
	imull	$100, %edx, %edx
	addl	%ecx, %edx
	leaq	.LC0(%rip), %rcx
	addl	%edx, %r8d
	movl	$6, %edx
	addl	%eax, %r8d
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	movzbl	19(%rsp), %eax
	testb	%al, %al
	je	.L18
	movslq	%r14d, %rdx
	movb	%al, 25(%rsp,%rdx)
	leal	1(%r14), %eax
	movq	%rax, %rcx
	imulq	%rbp, %rax
	shrq	$35, %rax
	movl	%eax, %edx
	sall	$4, %edx
	subl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movzbl	20(%rsp), %edx
	testb	%dl, %dl
	je	.L18
	movslq	%eax, %rcx
	movb	%dl, 25(%rsp,%rcx)
	leal	1(%rax), %edx
	movq	%rdx, %rax
	imulq	%rbp, %rdx
	shrq	$35, %rdx
	movl	%edx, %ecx
	sall	$4, %ecx
	subl	%edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movzbl	21(%rsp), %eax
	testb	%al, %al
	je	.L18
	movslq	%edx, %rcx
	movb	%al, 25(%rsp,%rcx)
	leal	1(%rdx), %eax
	movq	%rax, %rdx
	imulq	%rbp, %rax
	shrq	$35, %rax
	movl	%eax, %ecx
	sall	$4, %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	movzbl	22(%rsp), %edx
	subl	%ecx, %eax
	testb	%dl, %dl
	je	.L18
	movslq	%eax, %rcx
	movb	%dl, 25(%rsp,%rcx)
	leal	1(%rax), %edx
	movq	%rdx, %rax
	imulq	%rbp, %rdx
	shrq	$35, %rdx
	movl	%edx, %ecx
	sall	$4, %ecx
	subl	%edx, %ecx
	subl	%ecx, %eax
	movslq	%eax, %rdx
	movzbl	23(%rsp), %eax
	testb	%al, %al
	je	.L18
	movb	%al, 25(%rsp,%rdx)
.L18:
	leal	5(%r14), %r10d
	addl	$5, %ebx
	movq	%r10, %rdx
	imulq	%rbp, %r10
	shrq	$35, %r10
	movl	%r10d, %eax
	sall	$4, %eax
	subl	%r10d, %eax
	subl	%eax, %edx
	movl	%edx, %r14d
	cmpl	$7, %ebx
	jle	.L15
.L50:
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	cmpl	%r14d, %r15d
	je	.L20
.L19:
	movl	%r15d, %r8d
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$15, %r13d
	.p2align 4,,10
	.p2align 3
.L27:
	movslq	%r15d, %rax
	leaq	c(%rip), %rdi
	movsbl	25(%rsp,%rax), %eax
	subl	$47, %eax
	imull	%edx, %eax
	leal	(%rdx,%rdx,2), %edx
	addl	%eax, %esi
	movslq	%esi, %rax
	movsbl	(%rdi,%rax), %edi
	leal	1(%r15), %eax
	movslq	%eax, %r9
	movl	%eax, %r11d
	imulq	$-2004318071, %r9, %r9
	sarl	$31, %r11d
	shrq	$32, %r9
	addl	%eax, %r9d
	sarl	$3, %r9d
	movl	%r9d, %r15d
	subl	%r11d, %r15d
	movl	%r15d, %r11d
	sall	$4, %r11d
	subl	%r15d, %r11d
	subl	%r11d, %eax
	movl	%eax, %r15d
	testb	%dil, %dil
	jne	.L57
.L24:
	cmpl	%r15d, %r14d
	jne	.L27
	testl	%r12d, %r12d
	jne	.L58
	testl	%ecx, %ecx
	jne	.L30
.L20:
	movl	%r15d, %r14d
	movl	%r8d, %r15d
	jmp	.L32
.L6:
	movl	$49, %eax
	movl	$825307441, 19(%rsp)
	movw	%ax, 23(%rsp)
	jmp	.L5
.L8:
	movl	$49, %edi
	movl	$825241905, 19(%rsp)
	movw	%di, 23(%rsp)
	jmp	.L5
.L9:
	movl	$49, %ecx
	movl	$808530225, 19(%rsp)
	movw	%cx, 23(%rsp)
	jmp	.L5
.L10:
	movl	$48, %esi
	movl	$808530225, 19(%rsp)
	movw	%si, 23(%rsp)
	jmp	.L5
.L11:
	movl	$48, %edx
	movl	$825307441, 19(%rsp)
	movw	%dx, 23(%rsp)
	jmp	.L5
.L12:
	movl	$48, %r8d
	movl	$825241905, 19(%rsp)
	movw	%r8w, 23(%rsp)
	jmp	.L5
.L13:
	cmpl	%r14d, %r15d
	je	.L21
	movl	$1, %r12d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L57:
	movl	%ecx, 8(%rsp)
	call	putchar@PLT
	cmpl	%r15d, %r14d
	movl	8(%rsp), %ecx
	jl	.L23
	movl	%r14d, %ebx
	movl	%r15d, %r8d
	xorl	%esi, %esi
	movl	$1, %edx
	subl	%r15d, %ebx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%r13d, %ebx
	movl	%r15d, %r8d
	xorl	%esi, %esi
	movl	$1, %edx
	subl	%r15d, %ebx
	addl	%r14d, %ebx
	jmp	.L27
.L58:
	movl	$10, %edi
	movl	%ecx, 8(%rsp)
	call	putchar@PLT
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jne	.L30
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	.L28
.L3:
	cmpl	%r14d, %r15d
	je	.L30
	xorl	%r12d, %r12d
	movl	$1, %ecx
	jmp	.L19
.L30:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	addq	$56, %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
.L21:
	.cfi_restore_state
	movl	$10, %edi
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	call	putchar@PLT
	jmp	.L28
.L59:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 6600
c:
	.zero	6600
	.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	"%05d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%r15d, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	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
	movl	$2290649225, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xorl	%ebx, %ebx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	movb	$32, 23+c(%rip)
	movb	$39, 364+c(%rip)
	movb	$44, 688+c(%rip)
	movb	$45, 5495+c(%rip)
	movb	$46, 610+c(%rip)
	movb	$63, 607+c(%rip)
	movb	$65, 635+c(%rip)
	movb	$66, 4118+c(%rip)
	movb	$67, 70+c(%rip)
	movb	$68, 67+c(%rip)
	movb	$69, 17+c(%rip)
	movb	$70, 205+c(%rip)
	movb	$71, 6305+c(%rip)
	movb	$72, 367+c(%rip)
	movb	$73, 79+c(%rip)
	movb	$74, 3389+c(%rip)
	movb	$75, 52+c(%rip)
	movb	$76, 130+c(%rip)
	movb	$77, 5576+c(%rip)
	movb	$78, 4361+c(%rip)
	movb	$79, 211+c(%rip)
	movb	$80, 26+c(%rip)
	movb	$81, 6548+c(%rip)
	movb	$82, 41+c(%rip)
	movb	$83, 157+c(%rip)
	movb	$84, 238+c(%rip)
	movb	$85, 3632+c(%rip)
	movb	$86, 5819+c(%rip)
	movb	$87, 445+c(%rip)
	movb	$88, 4037+c(%rip)
	movb	$89, 6224+c(%rip)
	movb	$90, 3308+c(%rip)
	.p2align 4,,10
	.p2align 3
.L32:
	cmpl	$7, %ebx
	jg	.L50
.L28:
	leaq	19(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L15:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movl	%eax, %r13d
	cmpb	$-1, %al
	je	.L3
	movsbl	%al, %r12d
	movl	%r12d, %edi
	call	isalpha@PLT
	movl	%eax, %ecx
	testl	%eax, %eax
	jne	.L56
	leal	-10(%r13), %edx
	cmpb	$53, %dl
	ja	.L5
	leaq	.L7(%rip), %rsi
	movzbl	%dl, %edx
	movslq	(%rsi,%rdx,4), %rax
	addq	%rsi, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L13-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L12-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L11-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L6-.L7
	.section	.text.startup
	.p2align 4,,10
	.p2align 3
.L56:
	leal	-65(%r12), %eax
	movq	8(%rsp), %rdi
	movl	$1, %esi
	movl	%eax, %edx
	movl	%eax, %r8d
	sarl	%edx
	sarl	$3, %r8d
	andl	$1, %edx
	andl	$1, %r8d
	imull	$1000, %r8d, %r8d
	leal	(%rdx,%rdx,4), %ecx
	movl	%eax, %edx
	andl	$1, %edx
	leal	(%rdx,%rcx,2), %ecx
	movl	%eax, %edx
	sarl	$4, %eax
	sarl	$2, %edx
	andl	$1, %eax
	andl	$1, %edx
	imull	$10000, %eax, %eax
	imull	$100, %edx, %edx
	addl	%ecx, %edx
	leaq	.LC0(%rip), %rcx
	addl	%edx, %r8d
	movl	$6, %edx
	addl	%eax, %r8d
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	movzbl	19(%rsp), %eax
	testb	%al, %al
	je	.L18
	movslq	%r14d, %rdx
	movb	%al, 25(%rsp,%rdx)
	leal	1(%r14), %eax
	movq	%rax, %rcx
	imulq	%rbp, %rax
	shrq	$35, %rax
	movl	%eax, %edx
	sall	$4, %edx
	subl	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movzbl	20(%rsp), %edx
	testb	%dl, %dl
	je	.L18
	movslq	%eax, %rcx
	movb	%dl, 25(%rsp,%rcx)
	leal	1(%rax), %edx
	movq	%rdx, %rax
	imulq	%rbp, %rdx
	shrq	$35, %rdx
	movl	%edx, %ecx
	sall	$4, %ecx
	subl	%edx, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
	movzbl	21(%rsp), %eax
	testb	%al, %al
	je	.L18
	movslq	%edx, %rcx
	movb	%al, 25(%rsp,%rcx)
	leal	1(%rdx), %eax
	movq	%rax, %rdx
	imulq	%rbp, %rax
	shrq	$35, %rax
	movl	%eax, %ecx
	sall	$4, %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	movzbl	22(%rsp), %edx
	subl	%ecx, %eax
	testb	%dl, %dl
	je	.L18
	movslq	%eax, %rcx
	movb	%dl, 25(%rsp,%rcx)
	leal	1(%rax), %edx
	movq	%rdx, %rax
	imulq	%rbp, %rdx
	shrq	$35, %rdx
	movl	%edx, %ecx
	sall	$4, %ecx
	subl	%edx, %ecx
	subl	%ecx, %eax
	movslq	%eax, %rdx
	movzbl	23(%rsp), %eax
	testb	%al, %al
	je	.L18
	movb	%al, 25(%rsp,%rdx)
.L18:
	leal	5(%r14), %r10d
	addl	$5, %ebx
	movq	%r10, %rdx
	imulq	%rbp, %r10
	shrq	$35, %r10
	movl	%r10d, %eax
	sall	$4, %eax
	subl	%r10d, %eax
	subl	%eax, %edx
	movl	%edx, %r14d
	cmpl	$7, %ebx
	jle	.L15
.L50:
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	cmpl	%r14d, %r15d
	je	.L20
.L19:
	movl	%r15d, %r8d
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$15, %r13d
	.p2align 4,,10
	.p2align 3
.L27:
	movslq	%r15d, %rax
	leaq	c(%rip), %rdi
	movsbl	25(%rsp,%rax), %eax
	subl	$47, %eax
	imull	%edx, %eax
	leal	(%rdx,%rdx,2), %edx
	addl	%eax, %esi
	movslq	%esi, %rax
	movsbl	(%rdi,%rax), %edi
	leal	1(%r15), %eax
	movslq	%eax, %r9
	movl	%eax, %r11d
	imulq	$-2004318071, %r9, %r9
	sarl	$31, %r11d
	shrq	$32, %r9
	addl	%eax, %r9d
	sarl	$3, %r9d
	movl	%r9d, %r15d
	subl	%r11d, %r15d
	movl	%r15d, %r11d
	sall	$4, %r11d
	subl	%r15d, %r11d
	subl	%r11d, %eax
	movl	%eax, %r15d
	testb	%dil, %dil
	jne	.L57
.L24:
	cmpl	%r15d, %r14d
	jne	.L27
	testl	%r12d, %r12d
	jne	.L58
	testl	%ecx, %ecx
	jne	.L30
.L20:
	movl	%r15d, %r14d
	movl	%r8d, %r15d
	jmp	.L32
.L6:
	movl	$49, %eax
	movl	$825307441, 19(%rsp)
	movw	%ax, 23(%rsp)
	jmp	.L5
.L8:
	movl	$49, %edi
	movl	$825241905, 19(%rsp)
	movw	%di, 23(%rsp)
	jmp	.L5
.L9:
	movl	$49, %ecx
	movl	$808530225, 19(%rsp)
	movw	%cx, 23(%rsp)
	jmp	.L5
.L10:
	movl	$48, %esi
	movl	$808530225, 19(%rsp)
	movw	%si, 23(%rsp)
	jmp	.L5
.L11:
	movl	$48, %edx
	movl	$825307441, 19(%rsp)
	movw	%dx, 23(%rsp)
	jmp	.L5
.L12:
	movl	$48, %r8d
	movl	$825241905, 19(%rsp)
	movw	%r8w, 23(%rsp)
	jmp	.L5
.L13:
	cmpl	%r14d, %r15d
	je	.L21
	movl	$1, %r12d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L57:
	movl	%ecx, 8(%rsp)
	call	putchar@PLT
	cmpl	%r15d, %r14d
	movl	8(%rsp), %ecx
	jl	.L23
	movl	%r14d, %ebx
	movl	%r15d, %r8d
	xorl	%esi, %esi
	movl	$1, %edx
	subl	%r15d, %ebx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%r13d, %ebx
	movl	%r15d, %r8d
	xorl	%esi, %esi
	movl	$1, %edx
	subl	%r15d, %ebx
	addl	%r14d, %ebx
	jmp	.L27
.L58:
	movl	$10, %edi
	movl	%ecx, 8(%rsp)
	call	putchar@PLT
	movl	8(%rsp), %ecx
	testl	%ecx, %ecx
	jne	.L30
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	.L28
.L3:
	cmpl	%r14d, %r15d
	je	.L30
	xorl	%r12d, %r12d
	movl	$1, %ecx
	jmp	.L19
.L30:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	addq	$56, %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
.L21:
	.cfi_restore_state
	movl	$10, %edi
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	call	putchar@PLT
	jmp	.L28
.L59:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 6600
c:
	.zero	6600
	.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<string.h>

char c[6600];


int main(){
  int i,j,k,hoge,head,tail,size,v,keta,ci,isEOF,isL;
  char code[15],form[6],b;
  size=head=tail=ci=0;
  keta=1;
  c[23]=' ';
  c[364]='\'';
  c[688]=',';;
  c[5495]='-';
  c[610]='.';
  c[607]='?';
  c[635]='A';
  c[4118]='B';
  c[70]='C';
  c[67]='D';
  c[17]='E';
  c[205]='F';
  c[6305]='G';
  c[367]='H';
  c[79]='I';
  c[3389]='J';
  c[52]='K';
  c[130]='L';
  c[5576]='M';
  c[4361]='N';
  c[211]='O';
  c[26]='P';
  c[6548]='Q';
  c[41]='R';
  c[157]='S';
  c[238]='T';
  c[3632]='U';
  c[5819]='V';
  c[445]='W';
  c[4037]='X';
  c[6224]='Y';
  c[3308]='Z';
  isEOF=0;
  isL=0;
  do{
    for(i=size;i<8;i+=5){
      if((b=getchar())!=EOF){
	if(isalpha(b)){
	  for(j=0,hoge=1,v=0;j<5;j++,hoge*=10)
	    v+=((((int)b-(int)'A')>>j)&1)*hoge;
	  sprintf(form,"%05d",v);
	}else if(b==' '){
	  strcpy(form,"11010");
	}else if(b=='.'){
	  strcpy(form,"11011");
	}else if(b==','){
	  strcpy(form,"11100");
	}else if(b=='-'){
	  strcpy(form,"11101");
	}else if(b=='\''){
	  strcpy(form,"11110");
	}else if(b=='?'){
	  strcpy(form,"11111");
	}else if(b=='\n'){
	  isL=1;
	  break;;
	}
	for(j=tail,k=0;form[k];k++,j=(j+1)%15){
	  code[j]=form[k];
	}
	size+=5;
	tail=(tail+5)%15;
      }else{
	isEOF=1;
	break;
      }
    }/*
    printf("head=%d tail=%d\n",head,tail);
    for(i=head;i!=tail;i=(i+1)%15)
      printf("%c",code[i]);
    printf("\n");
     */
    for(i=head;i!=tail;i=(i+1)%15){
      ci+=((int)code[i]-(int)'0'+1)*keta;
      keta*=3;
      if(c[ci]){
	printf("%c",c[ci]);
	keta=1;
	ci=0;
	head=(i+1)%15;
	size=head<=tail?tail-head:15-head+tail;
      }
    }
    ci=0;
    keta=1;
    if(isL){
      printf("\n");
      isL=0;
      size=head=tail=ci=0;
    }
    if(isEOF) break;
  }while(1);
  return 0;
}
?D-C'KOQUA
 ?D-B'KOQUA
 AUQOK'B-D?
 -UQOK'BAD?
 -UQOK'BBD?
 -UQNK'BBD?
 ?DBB'KNQU-
 .UQNK'BBD?
 .UPNK'BBD?
 .UPNK'BCD?

PETER POTH '
 PETERIECTH '
 ?F?ECIRT DPP
 PKZIOIRL'PP
 PKZIOIRLLIP
 PKZK CP?WTP
 PESD,POSEDFE
 EPF? CIRLLIP
 EP.PK CP?WTP
 EP.PK CP?D,P

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

char c[6600];


int main(){
  int i,j,k,hoge,head,tail,size,v,keta,ci,isEOF,isL;
  char code[15],form[6],b;
  size=head=tail=ci=0;
  keta=1;
  c[23]=' ';
  c[364]='\'';
  c[688]=',';;
  c[5495]='-';
  c[610]='.';
  c[607]='?';
  c[635]='A';
  c[4118]='B';
  c[70]='C';
  c[67]='D';
  c[17]='E';
  c[205]='F';
  c[6305]='G';
  c[367]='H';
  c[79]='I';
  c[3389]='J';
  c[52]='K';
  c[130]='L';
  c[5576]='M';
  c[4361]='N';
  c[211]='O';
  c[26]='P';
  c[6548]='Q';
  c[41]='R';
  c[157]='S';
  c[238]='T';
  c[3632]='U';
  c[5819]='V';
  c[445]='W';
  c[4037]='X';
  c[6224]='Y';
  c[3308]='Z';
  isEOF=0;
  isL=0;
  do{
    for(i=size;i<8;i+=5){
      if((b=getchar())!=EOF){
	if(isalpha(b)){
	  for(j=0,hoge=1,v=0;j<5;j++,hoge*=10)
	    v+=((((int)b-(int)'A')>>j)&1)*hoge;
	  sprintf(form,"%05d",v);
	}else if(b==' '){
	  strcpy(form,"11010");
	}else if(b=='.'){
	  strcpy(form,"11011");
	}else if(b==','){
	  strcpy(form,"11100");
	}else if(b=='-'){
	  strcpy(form,"11101");
	}else if(b=='\''){
	  strcpy(form,"11110");
	}else if(b=='?'){
	  strcpy(form,"11111");
	}else if(b=='\n'){
	  isL=1;
	  break;;
	}
	for(j=tail,k=0;form[k];k++,j=(j+1)%15){
	  code[j]=form[k];
	}
	size+=5;
	tail=(tail+5)%15;
      }else{
	isEOF=1;
	break;
      }
    }/*
    printf("head=%d tail=%d\n",head,tail);
    for(i=head;i!=tail;i=(i+1)%15)
      printf("%c",code[i]);
    printf("\n");
     */
    for(i=head;i!=tail;i=(i+1)%15){
      ci+=((int)code[i]-(int)'0'+1)*keta;
      keta*=3;
      if(c[ci]){
	printf("%c",c[ci]);
	keta=1;
	ci=0;
	head=(i+1)%15;
	size=head<=tail?tail-head:15-head+tail;
      }
    }
    ci=0;
    keta=1;
    if(isL){
      printf("\n");
      isL=0;
      size=head=tail=ci=0;
    }
    if(isEOF) break;
  }while(1);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 6600
c:
	.zero	6600
	.section	.rodata
.LC0:
	.string	"%05d"
	.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
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -44(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -60(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	$1, -48(%rbp)
	movb	$32, 23+c(%rip)
	movb	$39, 364+c(%rip)
	movb	$44, 688+c(%rip)
	movb	$45, 5495+c(%rip)
	movb	$46, 610+c(%rip)
	movb	$63, 607+c(%rip)
	movb	$65, 635+c(%rip)
	movb	$66, 4118+c(%rip)
	movb	$67, 70+c(%rip)
	movb	$68, 67+c(%rip)
	movb	$69, 17+c(%rip)
	movb	$70, 205+c(%rip)
	movb	$71, 6305+c(%rip)
	movb	$72, 367+c(%rip)
	movb	$73, 79+c(%rip)
	movb	$74, 3389+c(%rip)
	movb	$75, 52+c(%rip)
	movb	$76, 130+c(%rip)
	movb	$77, 5576+c(%rip)
	movb	$78, 4361+c(%rip)
	movb	$79, 211+c(%rip)
	movb	$80, 26+c(%rip)
	movb	$81, 6548+c(%rip)
	movb	$82, 41+c(%rip)
	movb	$83, 157+c(%rip)
	movb	$84, 238+c(%rip)
	movb	$85, 3632+c(%rip)
	movb	$86, 5819+c(%rip)
	movb	$87, 445+c(%rip)
	movb	$88, 4037+c(%rip)
	movb	$89, 6224+c(%rip)
	movb	$90, 3308+c(%rip)
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
.L27:
	movl	-56(%rbp), %eax
	movl	%eax, -80(%rbp)
	jmp	.L2
.L18:
	call	getchar@PLT
	movb	%al, -81(%rbp)
	cmpb	$-1, -81(%rbp)
	je	.L3
	movsbl	-81(%rbp), %eax
	movl	%eax, %edi
	call	isalpha@PLT
	testl	%eax, %eax
	je	.L4
	movl	$0, -76(%rbp)
	movl	$1, -68(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L5
.L6:
	movsbl	-81(%rbp), %eax
	leal	-65(%rax), %edx
	movl	-76(%rbp), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	imull	-68(%rbp), %eax
	addl	%eax, -52(%rbp)
	addl	$1, -76(%rbp)
	movl	-68(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -68(%rbp)
.L5:
	cmpl	$4, -76(%rbp)
	jle	.L6
	movl	-52(%rbp), %edx
	leaq	-29(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	jmp	.L7
.L4:
	cmpb	$32, -81(%rbp)
	jne	.L8
	movl	$825241905, -29(%rbp)
	movw	$48, -25(%rbp)
	jmp	.L7
.L8:
	cmpb	$46, -81(%rbp)
	jne	.L9
	movl	$825241905, -29(%rbp)
	movw	$49, -25(%rbp)
	jmp	.L7
.L9:
	cmpb	$44, -81(%rbp)
	jne	.L10
	movl	$808530225, -29(%rbp)
	movw	$48, -25(%rbp)
	jmp	.L7
.L10:
	cmpb	$45, -81(%rbp)
	jne	.L11
	movl	$808530225, -29(%rbp)
	movw	$49, -25(%rbp)
	jmp	.L7
.L11:
	cmpb	$39, -81(%rbp)
	jne	.L12
	movl	$825307441, -29(%rbp)
	movw	$48, -25(%rbp)
	jmp	.L7
.L12:
	cmpb	$63, -81(%rbp)
	jne	.L13
	movl	$825307441, -29(%rbp)
	movw	$49, -25(%rbp)
	jmp	.L7
.L13:
	cmpb	$10, -81(%rbp)
	jne	.L7
	movl	$1, -36(%rbp)
	jmp	.L14
.L7:
	movl	-60(%rbp), %eax
	movl	%eax, -76(%rbp)
	movl	$0, -72(%rbp)
	jmp	.L15
.L16:
	movl	-72(%rbp), %eax
	cltq
	movzbl	-29(%rbp,%rax), %edx
	movl	-76(%rbp), %eax
	cltq
	movb	%dl, -23(%rbp,%rax)
	addl	$1, -72(%rbp)
	movl	-76(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-2004318071, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -76(%rbp)
	movl	-76(%rbp), %ecx
	movl	%ecx, %edx
	sall	$4, %edx
	subl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -76(%rbp)
.L15:
	movl	-72(%rbp), %eax
	cltq
	movzbl	-29(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L16
	addl	$5, -56(%rbp)
	movl	-60(%rbp), %eax
	addl	$5, %eax
	movslq	%eax, %rdx
	imulq	$-2004318071, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -60(%rbp)
	movl	-60(%rbp), %ecx
	movl	%ecx, %edx
	sall	$4, %edx
	subl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -60(%rbp)
	jmp	.L30
.L3:
	movl	$1, -40(%rbp)
	jmp	.L14
.L30:
	addl	$5, -80(%rbp)
.L2:
	cmpl	$7, -80(%rbp)
	jle	.L18
.L14:
	movl	-64(%rbp), %eax
	movl	%eax, -80(%rbp)
	jmp	.L19
.L23:
	movl	-80(%rbp), %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$47, %eax
	imull	-48(%rbp), %eax
	addl	%eax, -44(%rbp)
	movl	-48(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %eax
	cltq
	leaq	c(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L20
	movl	-44(%rbp), %eax
	cltq
	leaq	c(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	movl	$1, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	-80(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-2004318071, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -64(%rbp)
	movl	-64(%rbp), %ecx
	movl	%ecx, %edx
	sall	$4, %edx
	subl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jg	.L21
	movl	-60(%rbp), %eax
	subl	-64(%rbp), %eax
	jmp	.L22
.L21:
	movl	$15, %eax
	subl	-64(%rbp), %eax
	movl	%eax, %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
.L22:
	movl	%eax, -56(%rbp)
.L20:
	movl	-80(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-2004318071, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -80(%rbp)
	movl	-80(%rbp), %ecx
	movl	%ecx, %edx
	sall	$4, %edx
	subl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -80(%rbp)
.L19:
	movl	-80(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jne	.L23
	movl	$0, -44(%rbp)
	movl	$1, -48(%rbp)
	cmpl	$0, -36(%rbp)
	je	.L24
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, -36(%rbp)
	movl	$0, -44(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -60(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -56(%rbp)
.L24:
	cmpl	$0, -40(%rbp)
	jne	.L32
	jmp	.L27
.L32:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	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
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 6600
c:
	.zero	6600
	.section	.rodata
.LC0:
	.string	"%05d"
	.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
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -44(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -60(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	$1, -48(%rbp)
	movb	$32, 23+c(%rip)
	movb	$39, 364+c(%rip)
	movb	$44, 688+c(%rip)
	movb	$45, 5495+c(%rip)
	movb	$46, 610+c(%rip)
	movb	$63, 607+c(%rip)
	movb	$65, 635+c(%rip)
	movb	$66, 4118+c(%rip)
	movb	$67, 70+c(%rip)
	movb	$68, 67+c(%rip)
	movb	$69, 17+c(%rip)
	movb	$70, 205+c(%rip)
	movb	$71, 6305+c(%rip)
	movb	$72, 367+c(%rip)
	movb	$73, 79+c(%rip)
	movb	$74, 3389+c(%rip)
	movb	$75, 52+c(%rip)
	movb	$76, 130+c(%rip)
	movb	$77, 5576+c(%rip)
	movb	$78, 4361+c(%rip)
	movb	$79, 211+c(%rip)
	movb	$80, 26+c(%rip)
	movb	$81, 6548+c(%rip)
	movb	$82, 41+c(%rip)
	movb	$83, 157+c(%rip)
	movb	$84, 238+c(%rip)
	movb	$85, 3632+c(%rip)
	movb	$86, 5819+c(%rip)
	movb	$87, 445+c(%rip)
	movb	$88, 4037+c(%rip)
	movb	$89, 6224+c(%rip)
	movb	$90, 3308+c(%rip)
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
.L27:
	movl	-56(%rbp), %eax
	movl	%eax, -80(%rbp)
	jmp	.L2
.L18:
	call	getchar@PLT
	movb	%al, -81(%rbp)
	cmpb	$-1, -81(%rbp)
	je	.L3
	movsbl	-81(%rbp), %eax
	movl	%eax, %edi
	call	isalpha@PLT
	testl	%eax, %eax
	je	.L4
	movl	$0, -76(%rbp)
	movl	$1, -68(%rbp)
	movl	$0, -52(%rbp)
	jmp	.L5
.L6:
	movsbl	-81(%rbp), %eax
	leal	-65(%rax), %edx
	movl	-76(%rbp), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	imull	-68(%rbp), %eax
	addl	%eax, -52(%rbp)
	addl	$1, -76(%rbp)
	movl	-68(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -68(%rbp)
.L5:
	cmpl	$4, -76(%rbp)
	jle	.L6
	movl	-52(%rbp), %edx
	leaq	-29(%rbp), %rax
	leaq	.LC0(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sprintf@PLT
	jmp	.L7
.L4:
	cmpb	$32, -81(%rbp)
	jne	.L8
	movl	$825241905, -29(%rbp)
	movw	$48, -25(%rbp)
	jmp	.L7
.L8:
	cmpb	$46, -81(%rbp)
	jne	.L9
	movl	$825241905, -29(%rbp)
	movw	$49, -25(%rbp)
	jmp	.L7
.L9:
	cmpb	$44, -81(%rbp)
	jne	.L10
	movl	$808530225, -29(%rbp)
	movw	$48, -25(%rbp)
	jmp	.L7
.L10:
	cmpb	$45, -81(%rbp)
	jne	.L11
	movl	$808530225, -29(%rbp)
	movw	$49, -25(%rbp)
	jmp	.L7
.L11:
	cmpb	$39, -81(%rbp)
	jne	.L12
	movl	$825307441, -29(%rbp)
	movw	$48, -25(%rbp)
	jmp	.L7
.L12:
	cmpb	$63, -81(%rbp)
	jne	.L13
	movl	$825307441, -29(%rbp)
	movw	$49, -25(%rbp)
	jmp	.L7
.L13:
	cmpb	$10, -81(%rbp)
	jne	.L7
	movl	$1, -36(%rbp)
	jmp	.L14
.L7:
	movl	-60(%rbp), %eax
	movl	%eax, -76(%rbp)
	movl	$0, -72(%rbp)
	jmp	.L15
.L16:
	movl	-72(%rbp), %eax
	cltq
	movzbl	-29(%rbp,%rax), %edx
	movl	-76(%rbp), %eax
	cltq
	movb	%dl, -23(%rbp,%rax)
	addl	$1, -72(%rbp)
	movl	-76(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-2004318071, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -76(%rbp)
	movl	-76(%rbp), %ecx
	movl	%ecx, %edx
	sall	$4, %edx
	subl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -76(%rbp)
.L15:
	movl	-72(%rbp), %eax
	cltq
	movzbl	-29(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L16
	addl	$5, -56(%rbp)
	movl	-60(%rbp), %eax
	addl	$5, %eax
	movslq	%eax, %rdx
	imulq	$-2004318071, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -60(%rbp)
	movl	-60(%rbp), %ecx
	movl	%ecx, %edx
	sall	$4, %edx
	subl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -60(%rbp)
	jmp	.L30
.L3:
	movl	$1, -40(%rbp)
	jmp	.L14
.L30:
	addl	$5, -80(%rbp)
.L2:
	cmpl	$7, -80(%rbp)
	jle	.L18
.L14:
	movl	-64(%rbp), %eax
	movl	%eax, -80(%rbp)
	jmp	.L19
.L23:
	movl	-80(%rbp), %eax
	cltq
	movzbl	-23(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$47, %eax
	imull	-48(%rbp), %eax
	addl	%eax, -44(%rbp)
	movl	-48(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %eax
	cltq
	leaq	c(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L20
	movl	-44(%rbp), %eax
	cltq
	leaq	c(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	movl	$1, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	-80(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-2004318071, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -64(%rbp)
	movl	-64(%rbp), %ecx
	movl	%ecx, %edx
	sall	$4, %edx
	subl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jg	.L21
	movl	-60(%rbp), %eax
	subl	-64(%rbp), %eax
	jmp	.L22
.L21:
	movl	$15, %eax
	subl	-64(%rbp), %eax
	movl	%eax, %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
.L22:
	movl	%eax, -56(%rbp)
.L20:
	movl	-80(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	imulq	$-2004318071, %rdx, %rdx
	shrq	$32, %rdx
	addl	%eax, %edx
	sarl	$3, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -80(%rbp)
	movl	-80(%rbp), %ecx
	movl	%ecx, %edx
	sall	$4, %edx
	subl	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -80(%rbp)
.L19:
	movl	-80(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jne	.L23
	movl	$0, -44(%rbp)
	movl	$1, -48(%rbp)
	cmpl	$0, -36(%rbp)
	je	.L24
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, -36(%rbp)
	movl	$0, -44(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -60(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -56(%rbp)
.L24:
	cmpl	$0, -40(%rbp)
	jne	.L32
	jmp	.L27
.L32:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	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:
