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

int main(){
  char s[57];
  char t[57];
  char *n;
  int ns,nt;
  int i,r,j;
  int flag[57];
  int sp = 0;
  int max = -999;

  scanf("%s %s", s, t);

  for(i = 0;i < 57;i++) flag[i] = 0;

  ns = strlen(s);
  nt = strlen(t);

  for(i = 0;i <= ns - nt;i++){
    r = 0;
      for(j = 0;j < nt;j++){
        if(t[r] == s[i + j] || s[i + j] == '?') r++;

        else break;

        if(r == nt){
          flag[sp] = i;
          sp++;
        }
      }
    }


  if(sp == 0) printf("UNRESTORABLE\n");

  else{
    n = s + flag[sp - 1];

    strncpy(n,t,nt);

    for(i = 0;i < ns;i++){
      if(s[i] == '?') s[i] = 'a';
    }

    printf("%s\n", s);
  }

  return 0;
}```

Assembly Code:

```assembly
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$392, %rsp
	.cfi_def_cfa_offset 432
	movq	%fs:40, %rax
	movq	%rax, 376(%rsp)
	xorl	%eax, %eax
	leaq	304(%rsp), %rbp
	leaq	240(%rsp), %r12
	movq	%r12, %rsi
	movq	%rbp, %rdx
	call	__isoc99_scanf@PLT
	movq	%rsp, %rdx
	xorl	%eax, %eax
	movl	$28, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, (%rdi)
	movq	%r12, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strlen@PLT
	movl	%ebx, %r10d
	subl	%eax, %r10d
	js	.L2
	movq	%rax, %r8
	movq	%r12, %r13
	addl	$1, %r10d
	movq	%r12, %rcx
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	leal	-1(%rax), %esi
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	testq	%r8, %r8
	jne	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rax
	cmpq	%rax, %r8
	je	.L5
.L8:
	movzbl	(%rcx,%rax), %edx
	cmpb	%dl, 0(%rbp,%rax)
	je	.L16
	cmpb	$63, %dl
	jne	.L5
.L16:
	cmpq	%rax, %rsi
	jne	.L7
	movslq	%edi, %rax
	addl	$1, %edi
	movl	%r9d, (%rsp,%rax,4)
.L5:
	addl	$1, %r9d
	addq	$1, %rcx
	cmpl	%r10d, %r9d
	jne	.L3
	testl	%edi, %edi
	je	.L2
	leal	-1(%rdi), %eax
	movq	%r8, %rdx
	movq	%rbp, %rsi
	cltq
	movslq	(%rsp,%rax,4), %rdi
	addq	%r12, %rdi
	call	strncpy@PLT
	testq	%rbx, %rbx
	je	.L14
	leal	-1(%rbx), %eax
	leaq	1(%r12,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	$63, 0(%r13)
	jne	.L12
	movb	$97, 0(%r13)
.L12:
	addq	$1, %r13
	cmpq	%r13, %rax
	jne	.L13
.L14:
	movq	%r12, %rdi
	call	puts@PLT
.L4:
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$392, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	"%s %s"
.LC1:
	.string	"UNRESTORABLE"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$392, %rsp
	.cfi_def_cfa_offset 432
	movq	%fs:40, %rax
	movq	%rax, 376(%rsp)
	xorl	%eax, %eax
	leaq	304(%rsp), %rbp
	leaq	240(%rsp), %r12
	movq	%r12, %rsi
	movq	%rbp, %rdx
	call	__isoc99_scanf@PLT
	movq	%rsp, %rdx
	xorl	%eax, %eax
	movl	$28, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, (%rdi)
	movq	%r12, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strlen@PLT
	movl	%ebx, %r10d
	subl	%eax, %r10d
	js	.L2
	movq	%rax, %r8
	movq	%r12, %r13
	addl	$1, %r10d
	movq	%r12, %rcx
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	leal	-1(%rax), %esi
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	testq	%r8, %r8
	jne	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rax
	cmpq	%rax, %r8
	je	.L5
.L8:
	movzbl	(%rcx,%rax), %edx
	cmpb	%dl, 0(%rbp,%rax)
	je	.L16
	cmpb	$63, %dl
	jne	.L5
.L16:
	cmpq	%rax, %rsi
	jne	.L7
	movslq	%edi, %rax
	addl	$1, %edi
	movl	%r9d, (%rsp,%rax,4)
.L5:
	addl	$1, %r9d
	addq	$1, %rcx
	cmpl	%r10d, %r9d
	jne	.L3
	testl	%edi, %edi
	je	.L2
	leal	-1(%rdi), %eax
	movq	%r8, %rdx
	movq	%rbp, %rsi
	cltq
	movslq	(%rsp,%rax,4), %rdi
	addq	%r12, %rdi
	call	strncpy@PLT
	testq	%rbx, %rbx
	je	.L14
	leal	-1(%rbx), %eax
	leaq	1(%r12,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	$63, 0(%r13)
	jne	.L12
	movb	$97, 0(%r13)
.L12:
	addq	$1, %r13
	cmpq	%r13, %rax
	jne	.L13
.L14:
	movq	%r12, %rdi
	call	puts@PLT
.L4:
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$392, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	"%s %s"
.LC1:
	.string	"UNRESTORABLE"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$392, %rsp
	.cfi_def_cfa_offset 432
	movq	%fs:40, %rax
	movq	%rax, 376(%rsp)
	xorl	%eax, %eax
	leaq	304(%rsp), %rbp
	leaq	240(%rsp), %r12
	movq	%r12, %rsi
	movq	%rbp, %rdx
	call	__isoc99_scanf@PLT
	movq	%rsp, %rdx
	xorl	%eax, %eax
	movl	$28, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, (%rdi)
	movq	%r12, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strlen@PLT
	movl	%ebx, %r10d
	subl	%eax, %r10d
	js	.L2
	movq	%rax, %r8
	movq	%r12, %r13
	addl	$1, %r10d
	movq	%r12, %rcx
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	leal	-1(%rax), %esi
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	testq	%r8, %r8
	jne	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rax
	cmpq	%rax, %r8
	je	.L5
.L8:
	movzbl	(%rcx,%rax), %edx
	cmpb	%dl, 0(%rbp,%rax)
	je	.L16
	cmpb	$63, %dl
	jne	.L5
.L16:
	cmpq	%rax, %rsi
	jne	.L7
	movslq	%edi, %rax
	addl	$1, %edi
	movl	%r9d, (%rsp,%rax,4)
.L5:
	addl	$1, %r9d
	addq	$1, %rcx
	cmpl	%r10d, %r9d
	jne	.L3
	testl	%edi, %edi
	je	.L2
	leal	-1(%rdi), %eax
	movq	%r8, %rdx
	movq	%rbp, %rsi
	cltq
	movslq	(%rsp,%rax,4), %rdi
	addq	%r12, %rdi
	call	strncpy@PLT
	testq	%rbx, %rbx
	je	.L14
	leal	-1(%rbx), %eax
	leaq	1(%r12,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	$63, 0(%r13)
	jne	.L12
	movb	$97, 0(%r13)
.L12:
	addq	$1, %r13
	cmpq	%r13, %rax
	jne	.L13
.L14:
	movq	%r12, %rdi
	call	puts@PLT
.L4:
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$392, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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<stdlib.h>
#include<string.h>
#include<math.h>

int main(){
  char s[57];
  char t[57];
  char *n;
  int ns,nt;
  int i,r,j;
  int flag[57];
  int sp = 0;
  int max = -999;

  scanf("%s %s", s, t);

  for(i = 0;i < 57;i++) flag[i] = 0;

  ns = strlen(s);
  nt = strlen(t);

  for(i = 0;i <= ns - nt;i++){
    r = 0;
      for(j = 0;j < nt;j++){
        if(t[r] == s[i + j] || s[i + j] == '?') r++;

        else break;

        if(r == nt){
          flag[sp] = i;
          sp++;
        }
      }
    }


  if(sp == 0) printf("UNRESTORABLE\n");

  else{
    n = s + flag[sp - 1];

    strncpy(n,t,nt);

    for(i = 0;i < ns;i++){
      if(s[i] == '?') s[i] = 'a';
    }

    printf("%s\n", s);
  }

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

int main(){
  char s[57];
  char t[57];
  char *n;
  int ns,nt;
  int i,r,j;
  int flag[57];
  int sp = 0;
  int max = -999;

  scanf("%s %s", s, t);

  for(i = 0;i < 57;i++) flag[i] = 0;

  ns = strlen(s);
  nt = strlen(t);

  for(i = 0;i <= ns - nt;i++){
    r = 0;
      for(j = 0;j < nt;j++){
        if(t[r] == s[i + j] || s[i + j] == '?') r++;

        else break;

        if(r == nt){
          flag[sp] = i;
          sp++;
        }
      }
    }


  if(sp == 0) printf("UNRESTORABLE\n");

  else{
    n = s + flag[sp - 1];

    strncpy(n,t,nt);

    for(i = 0;i < ns;i++){
      if(s[i] == '?') s[i] = 'a';
    }

    printf("%s\n", s);
  }

  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:

?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 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>
#include<math.h>

int main(){
  char s[57];
  char t[57];
  char *n;
  int ns,nt;
  int i,r,j;
  int flag[57];
  int sp = 0;
  int max = -999;

  scanf("%s %s", s, t);

  for(i = 0;i < 57;i++) flag[i] = 0;

  ns = strlen(s);
  nt = strlen(t);

  for(i = 0;i <= ns - nt;i++){
    r = 0;
      for(j = 0;j < nt;j++){
        if(t[r] == s[i + j] || s[i + j] == '?') r++;

        else break;

        if(r == nt){
          flag[sp] = i;
          sp++;
        }
      }
    }


  if(sp == 0) printf("UNRESTORABLE\n");

  else{
    n = s + flag[sp - 1];

    strncpy(n,t,nt);

    for(i = 0;i < ns;i++){
      if(s[i] == '?') s[i] = 'a';
    }

    printf("%s\n", s);
  }

  return 0;
}```

Assembly Code:

```assembly
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$392, %rsp
	.cfi_def_cfa_offset 432
	movq	%fs:40, %rax
	movq	%rax, 376(%rsp)
	xorl	%eax, %eax
	leaq	304(%rsp), %rbp
	leaq	240(%rsp), %r12
	movq	%r12, %rsi
	movq	%rbp, %rdx
	call	__isoc99_scanf@PLT
	movq	%rsp, %rdx
	xorl	%eax, %eax
	movl	$28, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, (%rdi)
	movq	%r12, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strlen@PLT
	movl	%ebx, %r10d
	subl	%eax, %r10d
	js	.L2
	movq	%rax, %r8
	movq	%r12, %r13
	addl	$1, %r10d
	movq	%r12, %rcx
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	leal	-1(%rax), %esi
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	testq	%r8, %r8
	jne	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rax
	cmpq	%rax, %r8
	je	.L5
.L8:
	movzbl	(%rcx,%rax), %edx
	cmpb	%dl, 0(%rbp,%rax)
	je	.L16
	cmpb	$63, %dl
	jne	.L5
.L16:
	cmpq	%rax, %rsi
	jne	.L7
	movslq	%edi, %rax
	addl	$1, %edi
	movl	%r9d, (%rsp,%rax,4)
.L5:
	addl	$1, %r9d
	addq	$1, %rcx
	cmpl	%r10d, %r9d
	jne	.L3
	testl	%edi, %edi
	je	.L2
	leal	-1(%rdi), %eax
	movq	%r8, %rdx
	movq	%rbp, %rsi
	cltq
	movslq	(%rsp,%rax,4), %rdi
	addq	%r12, %rdi
	call	strncpy@PLT
	testq	%rbx, %rbx
	je	.L14
	leal	-1(%rbx), %eax
	leaq	1(%r12,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	$63, 0(%r13)
	jne	.L12
	movb	$97, 0(%r13)
.L12:
	addq	$1, %r13
	cmpq	%r13, %rax
	jne	.L13
.L14:
	movq	%r12, %rdi
	call	puts@PLT
.L4:
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$392, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	"%s %s"
.LC1:
	.string	"UNRESTORABLE"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$392, %rsp
	.cfi_def_cfa_offset 432
	movq	%fs:40, %rax
	movq	%rax, 376(%rsp)
	xorl	%eax, %eax
	leaq	304(%rsp), %rbp
	leaq	240(%rsp), %r12
	movq	%r12, %rsi
	movq	%rbp, %rdx
	call	__isoc99_scanf@PLT
	movq	%rsp, %rdx
	xorl	%eax, %eax
	movl	$28, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, (%rdi)
	movq	%r12, %rdi
	call	strlen@PLT
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strlen@PLT
	movl	%ebx, %r10d
	subl	%eax, %r10d
	js	.L2
	movq	%rax, %r8
	movq	%r12, %r13
	addl	$1, %r10d
	movq	%r12, %rcx
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	leal	-1(%rax), %esi
	.p2align 4,,10
	.p2align 3
.L3:
	xorl	%eax, %eax
	testq	%r8, %r8
	jne	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rax
	cmpq	%rax, %r8
	je	.L5
.L8:
	movzbl	(%rcx,%rax), %edx
	cmpb	%dl, 0(%rbp,%rax)
	je	.L16
	cmpb	$63, %dl
	jne	.L5
.L16:
	cmpq	%rax, %rsi
	jne	.L7
	movslq	%edi, %rax
	addl	$1, %edi
	movl	%r9d, (%rsp,%rax,4)
.L5:
	addl	$1, %r9d
	addq	$1, %rcx
	cmpl	%r10d, %r9d
	jne	.L3
	testl	%edi, %edi
	je	.L2
	leal	-1(%rdi), %eax
	movq	%r8, %rdx
	movq	%rbp, %rsi
	cltq
	movslq	(%rsp,%rax,4), %rdi
	addq	%r12, %rdi
	call	strncpy@PLT
	testq	%rbx, %rbx
	je	.L14
	leal	-1(%rbx), %eax
	leaq	1(%r12,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	$63, 0(%r13)
	jne	.L12
	movb	$97, 0(%r13)
.L12:
	addq	$1, %r13
	cmpq	%r13, %rax
	jne	.L13
.L14:
	movq	%r12, %rdi
	call	puts@PLT
.L4:
	movq	376(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$392, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```