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[1010],t[1010];
  int i,j,n,m;
  scanf("%s %s",s,t);
  for(n=0;s[n];n++);
  for(m=0;t[m];m++);
  for(i=n-m+1;i--;){
    for(j=0;j<m;j++){
      if(s[i+j]=='?')continue;
      if(s[i+j]-t[j])goto NEXT;
    }
    for(j=0;j<m;j++)s[i+j]=t[j];
    for(j=0;j<n;j++){
      if(s[j]=='?')s[j]='a';
    }
    printf("%s\n",s);
    return 0;
  NEXT:;
  }
  printf("UNRESTORABLE\n");
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s %s"
.LC1:
	.string	"UNRESTORABLE"
	.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	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1024(%rbp), %rdx
	leaq	-2048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2056(%rbp)
	jmp	.L2
.L3:
	addl	$1, -2056(%rbp)
.L2:
	movl	-2056(%rbp), %eax
	cltq
	movzbl	-2048(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
	movl	$0, -2052(%rbp)
	jmp	.L4
.L5:
	addl	$1, -2052(%rbp)
.L4:
	movl	-2052(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L5
	movl	-2056(%rbp), %eax
	subl	-2052(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -2064(%rbp)
	jmp	.L6
.L18:
	movl	$0, -2060(%rbp)
	jmp	.L7
.L11:
	movl	-2064(%rbp), %edx
	movl	-2060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-2048(%rbp,%rax), %eax
	cmpb	$63, %al
	je	.L22
	movl	-2064(%rbp), %edx
	movl	-2060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-2048(%rbp,%rax), %edx
	movl	-2060(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L23
	jmp	.L9
.L22:
	nop
.L9:
	addl	$1, -2060(%rbp)
.L7:
	movl	-2060(%rbp), %eax
	cmpl	-2052(%rbp), %eax
	jl	.L11
	movl	$0, -2060(%rbp)
	jmp	.L12
.L13:
	movl	-2064(%rbp), %edx
	movl	-2060(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-2060(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %edx
	movslq	%ecx, %rax
	movb	%dl, -2048(%rbp,%rax)
	addl	$1, -2060(%rbp)
.L12:
	movl	-2060(%rbp), %eax
	cmpl	-2052(%rbp), %eax
	jl	.L13
	movl	$0, -2060(%rbp)
	jmp	.L14
.L16:
	movl	-2060(%rbp), %eax
	cltq
	movzbl	-2048(%rbp,%rax), %eax
	cmpb	$63, %al
	jne	.L15
	movl	-2060(%rbp), %eax
	cltq
	movb	$97, -2048(%rbp,%rax)
.L15:
	addl	$1, -2060(%rbp)
.L14:
	movl	-2060(%rbp), %eax
	cmpl	-2056(%rbp), %eax
	jl	.L16
	leaq	-2048(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L19
.L23:
	nop
.L10:
.L6:
	movl	-2064(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -2064(%rbp)
	testl	%eax, %eax
	jne	.L18
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L19:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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 %s"
.LC1:
	.string	"UNRESTORABLE"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$2048, %rsp
	.cfi_def_cfa_offset 2080
	movq	%fs:40, %rax
	movq	%rax, 2040(%rsp)
	xorl	%eax, %eax
	leaq	1024(%rsp), %rbx
	movq	%rsp, %rbp
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, (%rsp)
	je	.L22
	movl	$1, %eax
	leaq	-1(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %r9d
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L3
.L2:
	cmpb	$0, 1024(%rsp)
	je	.L23
	movl	$1, %eax
	leaq	1023(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%eax, %edi
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L5
	movl	%r9d, %eax
	subl	%edi, %eax
	cmpl	$-1, %eax
	je	.L6
.L4:
	movslq	%eax, %rcx
	movl	%eax, %esi
	movq	%rbp, %r8
	leaq	-1(%rsp,%rcx), %rdx
	addq	%rbp, %rcx
	subq	%rsi, %rdx
	subl	%ecx, %eax
	movslq	%edi, %rsi
	movq	%rdx, %r12
	movl	%eax, %r10d
.L18:
	leal	(%r10,%rcx), %r11d
	testl	%edi, %edi
	je	.L20
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movzbl	(%rcx,%rax), %edx
	cmpb	$63, %dl
	je	.L7
	cmpb	(%rbx,%rax), %dl
	jne	.L8
.L7:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L9
	movslq	%r11d, %rdx
	movl	%eax, %ecx
	addq	%rbp, %rdx
	cmpl	$8, %eax
	jnb	.L10
	testb	$4, %al
	jne	.L43
	testl	%ecx, %ecx
	jne	.L44
.L20:
	testl	%r9d, %r9d
	je	.L14
	leal	-1(%r9), %eax
	leaq	1(%rbp,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L16:
	cmpb	$63, (%r8)
	jne	.L15
	movb	$97, (%r8)
.L15:
	addq	$1, %r8
	cmpq	%r8, %rax
	jne	.L16
.L14:
	movq	%rbp, %rdi
	call	puts@PLT
.L17:
	movq	2040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L45
	addq	$2048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	subq	$1, %rcx
	cmpq	%r12, %rcx
	jne	.L18
.L6:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L17
.L10:
	movq	1024(%rsp), %rcx
	leaq	8(%rdx), %rdi
	andq	$-8, %rdi
	movq	%rcx, (%rdx)
	movl	%eax, %ecx
	movq	-8(%rbx,%rcx), %rsi
	movq	%rsi, -8(%rdx,%rcx)
	subq	%rdi, %rdx
	subq	%rdx, %rbx
	leal	(%rax,%rdx), %ecx
	movq	%rbx, %rsi
	shrl	$3, %ecx
	rep movsq
	jmp	.L20
.L44:
	movzbl	1024(%rsp), %eax
	movb	%al, (%rdx)
	testb	$2, %cl
	je	.L20
	movzwl	-2(%rbx,%rcx), %eax
	movw	%ax, -2(%rdx,%rcx)
	jmp	.L20
.L23:
	movl	%r9d, %eax
	xorl	%edi, %edi
	jmp	.L4
.L22:
	xorl	%r9d, %r9d
	jmp	.L2
.L43:
	movl	1024(%rsp), %eax
	movl	%eax, (%rdx)
	movl	-4(%rbx,%rcx), %eax
	movl	%eax, -4(%rdx,%rcx)
	jmp	.L20
.L45:
	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 %s"
.LC1:
	.string	"UNRESTORABLE"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$2048, %rsp
	.cfi_def_cfa_offset 2080
	movq	%fs:40, %rax
	movq	%rax, 2040(%rsp)
	xorl	%eax, %eax
	leaq	1024(%rsp), %rbx
	movq	%rsp, %rbp
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, (%rsp)
	je	.L22
	movl	$1, %eax
	leaq	-1(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %r9d
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L3
.L2:
	cmpb	$0, 1024(%rsp)
	je	.L23
	movl	$1, %eax
	leaq	1023(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%eax, %edi
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L5
	movl	%r9d, %eax
	subl	%edi, %eax
	cmpl	$-1, %eax
	je	.L6
.L4:
	movslq	%eax, %rcx
	movl	%eax, %esi
	movq	%rbp, %r8
	leaq	-1(%rsp,%rcx), %rdx
	addq	%rbp, %rcx
	subq	%rsi, %rdx
	subl	%ecx, %eax
	movslq	%edi, %rsi
	movq	%rdx, %r12
	movl	%eax, %r10d
.L18:
	leal	(%r10,%rcx), %r11d
	testl	%edi, %edi
	je	.L20
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	movzbl	(%rcx,%rax), %edx
	cmpb	$63, %dl
	je	.L7
	cmpb	(%rbx,%rax), %dl
	jne	.L8
.L7:
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L9
	movslq	%r11d, %rdx
	movl	%eax, %ecx
	addq	%rbp, %rdx
	cmpl	$8, %eax
	jnb	.L10
	testb	$4, %al
	jne	.L43
	testl	%ecx, %ecx
	jne	.L44
.L20:
	testl	%r9d, %r9d
	je	.L14
	leal	-1(%r9), %eax
	leaq	1(%rbp,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L16:
	cmpb	$63, (%r8)
	jne	.L15
	movb	$97, (%r8)
.L15:
	addq	$1, %r8
	cmpq	%r8, %rax
	jne	.L16
.L14:
	movq	%rbp, %rdi
	call	puts@PLT
.L17:
	movq	2040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L45
	addq	$2048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	subq	$1, %rcx
	cmpq	%r12, %rcx
	jne	.L18
.L6:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L17
.L10:
	movq	1024(%rsp), %rcx
	leaq	8(%rdx), %rdi
	andq	$-8, %rdi
	movq	%rcx, (%rdx)
	movl	%eax, %ecx
	movq	-8(%rbx,%rcx), %rsi
	movq	%rsi, -8(%rdx,%rcx)
	subq	%rdi, %rdx
	subq	%rdx, %rbx
	leal	(%rax,%rdx), %ecx
	movq	%rbx, %rsi
	shrl	$3, %ecx
	rep movsq
	jmp	.L20
.L44:
	movzbl	1024(%rsp), %eax
	movb	%al, (%rdx)
	testb	$2, %cl
	je	.L20
	movzwl	-2(%rbx,%rcx), %eax
	movw	%ax, -2(%rdx,%rcx)
	jmp	.L20
.L23:
	movl	%r9d, %eax
	xorl	%edi, %edi
	jmp	.L4
.L22:
	xorl	%r9d, %r9d
	jmp	.L2
.L43:
	movl	1024(%rsp), %eax
	movl	%eax, (%rdx)
	movl	-4(%rbx,%rcx), %eax
	movl	%eax, -4(%rdx,%rcx)
	jmp	.L20
.L45:
	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[1010],t[1010];
  int i,j,n,m;
  scanf("%s %s",s,t);
  for(n=0;s[n];n++);
  for(m=0;t[m];m++);
  for(i=n-m+1;i--;){
    for(j=0;j<m;j++){
      if(s[i+j]=='?')continue;
      if(s[i+j]-t[j])goto NEXT;
    }
    for(j=0;j<m;j++)s[i+j]=t[j];
    for(j=0;j<n;j++){
      if(s[j]=='?')s[j]='a';
    }
    printf("%s\n",s);
    return 0;
  NEXT:;
  }
  printf("UNRESTORABLE\n");
  return 0;
}

?tc??@?
coder
 >q???d?>
_ba
 d>>>???q
a`a
 d>>>???q
aaa
 ??p??d??
abb
 ?tc??@?
cnder
 ??p??d??
`bb
 ?tc??@?
endcr
 ??p??d??
`ab
 @tc??@?
endcr

UNRESTORABLE
 >q_bada>
 d>>>a`aq
 d>>>aaaq
 UNRESTORABLE
 UNRESTORABLE
 UNRESTORABLE
 UNRESTORABLE
 UNRESTORABLE
 UNRESTORABLE

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[1010],t[1010];
  int i,j,n,m;
  scanf("%s %s",s,t);
  for(n=0;s[n];n++);
  for(m=0;t[m];m++);
  for(i=n-m+1;i--;){
    for(j=0;j<m;j++){
      if(s[i+j]=='?')continue;
      if(s[i+j]-t[j])goto NEXT;
    }
    for(j=0;j<m;j++)s[i+j]=t[j];
    for(j=0;j<n;j++){
      if(s[j]=='?')s[j]='a';
    }
    printf("%s\n",s);
    return 0;
  NEXT:;
  }
  printf("UNRESTORABLE\n");
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s %s"
.LC1:
	.string	"UNRESTORABLE"
	.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	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1024(%rbp), %rdx
	leaq	-2048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2056(%rbp)
	jmp	.L2
.L3:
	addl	$1, -2056(%rbp)
.L2:
	movl	-2056(%rbp), %eax
	cltq
	movzbl	-2048(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
	movl	$0, -2052(%rbp)
	jmp	.L4
.L5:
	addl	$1, -2052(%rbp)
.L4:
	movl	-2052(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L5
	movl	-2056(%rbp), %eax
	subl	-2052(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -2064(%rbp)
	jmp	.L6
.L18:
	movl	$0, -2060(%rbp)
	jmp	.L7
.L11:
	movl	-2064(%rbp), %edx
	movl	-2060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-2048(%rbp,%rax), %eax
	cmpb	$63, %al
	je	.L22
	movl	-2064(%rbp), %edx
	movl	-2060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-2048(%rbp,%rax), %edx
	movl	-2060(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L23
	jmp	.L9
.L22:
	nop
.L9:
	addl	$1, -2060(%rbp)
.L7:
	movl	-2060(%rbp), %eax
	cmpl	-2052(%rbp), %eax
	jl	.L11
	movl	$0, -2060(%rbp)
	jmp	.L12
.L13:
	movl	-2064(%rbp), %edx
	movl	-2060(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-2060(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %edx
	movslq	%ecx, %rax
	movb	%dl, -2048(%rbp,%rax)
	addl	$1, -2060(%rbp)
.L12:
	movl	-2060(%rbp), %eax
	cmpl	-2052(%rbp), %eax
	jl	.L13
	movl	$0, -2060(%rbp)
	jmp	.L14
.L16:
	movl	-2060(%rbp), %eax
	cltq
	movzbl	-2048(%rbp,%rax), %eax
	cmpb	$63, %al
	jne	.L15
	movl	-2060(%rbp), %eax
	cltq
	movb	$97, -2048(%rbp,%rax)
.L15:
	addl	$1, -2060(%rbp)
.L14:
	movl	-2060(%rbp), %eax
	cmpl	-2056(%rbp), %eax
	jl	.L16
	leaq	-2048(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L19
.L23:
	nop
.L10:
.L6:
	movl	-2064(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -2064(%rbp)
	testl	%eax, %eax
	jne	.L18
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L19:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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 %s"
.LC1:
	.string	"UNRESTORABLE"
	.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	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1024(%rbp), %rdx
	leaq	-2048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2056(%rbp)
	jmp	.L2
.L3:
	addl	$1, -2056(%rbp)
.L2:
	movl	-2056(%rbp), %eax
	cltq
	movzbl	-2048(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
	movl	$0, -2052(%rbp)
	jmp	.L4
.L5:
	addl	$1, -2052(%rbp)
.L4:
	movl	-2052(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L5
	movl	-2056(%rbp), %eax
	subl	-2052(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -2064(%rbp)
	jmp	.L6
.L18:
	movl	$0, -2060(%rbp)
	jmp	.L7
.L11:
	movl	-2064(%rbp), %edx
	movl	-2060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-2048(%rbp,%rax), %eax
	cmpb	$63, %al
	je	.L22
	movl	-2064(%rbp), %edx
	movl	-2060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-2048(%rbp,%rax), %edx
	movl	-2060(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L23
	jmp	.L9
.L22:
	nop
.L9:
	addl	$1, -2060(%rbp)
.L7:
	movl	-2060(%rbp), %eax
	cmpl	-2052(%rbp), %eax
	jl	.L11
	movl	$0, -2060(%rbp)
	jmp	.L12
.L13:
	movl	-2064(%rbp), %edx
	movl	-2060(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-2060(%rbp), %eax
	cltq
	movzbl	-1024(%rbp,%rax), %edx
	movslq	%ecx, %rax
	movb	%dl, -2048(%rbp,%rax)
	addl	$1, -2060(%rbp)
.L12:
	movl	-2060(%rbp), %eax
	cmpl	-2052(%rbp), %eax
	jl	.L13
	movl	$0, -2060(%rbp)
	jmp	.L14
.L16:
	movl	-2060(%rbp), %eax
	cltq
	movzbl	-2048(%rbp,%rax), %eax
	cmpb	$63, %al
	jne	.L15
	movl	-2060(%rbp), %eax
	cltq
	movb	$97, -2048(%rbp,%rax)
.L15:
	addl	$1, -2060(%rbp)
.L14:
	movl	-2060(%rbp), %eax
	cmpl	-2056(%rbp), %eax
	jl	.L16
	leaq	-2048(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L19
.L23:
	nop
.L10:
.L6:
	movl	-2064(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -2064(%rbp)
	testl	%eax, %eax
	jne	.L18
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L19:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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:
