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<string.h>
int main()
{
    char s[55], t[55];
    scanf("%s%s", s, t);
    int i, j;
    int n = strlen(s), m = strlen(t);
    if (n < m)
    {
        printf("UNRESTORABLE\n");
        return 0;
    }
    int x;
    for (i = n - m; i >= 0; i--)
    {
        x = 0;
        for (j = 0; j < m; j++)
        {
            if (s[i + j] != '?' && s[i + j] != t[j])
            {
                x++;
                break;
            }
        }
        if (x == 0)
        {
            for (j = 0; j < m; j++)
                s[i + j] = t[j];
            x = -1;
            break;
        }
    }
    if (x != -1)
    {
        printf("UNRESTORABLE\n");
        return 0;
    }
    for (i = 0; i < n; 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:
.LFB35:
	.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
	addq	$-128, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rbx
	movq	%rsp, %rbp
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rbx, %rdi
	movq	%rax, %r12
	call	strlen@PLT
	cmpl	%eax, %r12d
	jl	.L5
	movl	%r12d, %edi
	movq	%rax, %rcx
	movl	%eax, %r8d
	subl	%eax, %edi
	movslq	%edi, %rsi
	addq	%rbp, %rsi
	testl	%edi, %edi
	js	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	testl	%r8d, %r8d
	je	.L17
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movzbl	(%rsi,%rax), %edx
	cmpb	$63, %dl
	je	.L6
	cmpb	(%rbx,%rax), %dl
	jne	.L7
.L6:
	addq	$1, %rax
	cmpq	%rax, %rcx
	jne	.L8
	movslq	%edi, %rdi
	addq	%rbp, %rdi
	cmpl	$8, %ecx
	jnb	.L9
	testb	$4, %cl
	jne	.L37
	testl	%ecx, %ecx
	jne	.L38
.L17:
	testl	%r12d, %r12d
	je	.L16
	leal	-1(%r12), %edx
	movq	%rbp, %rax
	leaq	1(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	cmpb	$63, (%rax)
	jne	.L18
	movb	$97, (%rax)
.L18:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L19
.L16:
	movq	%rbp, %rdi
	call	puts@PLT
.L3:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	subq	$-128, %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
.L7:
	.cfi_restore_state
	subl	$1, %edi
	subq	$1, %rsi
	cmpl	$-1, %edi
	jne	.L20
.L5:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	movq	64(%rsp), %rax
	leaq	8(%rdi), %rsi
	andq	$-8, %rsi
	movq	%rax, (%rdi)
	movl	%ecx, %eax
	movq	-8(%rbx,%rax), %rdx
	movq	%rdx, -8(%rdi,%rax)
	subq	%rsi, %rdi
	addl	%edi, %ecx
	subq	%rdi, %rbx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L17
	andl	$-8, %ecx
	xorl	%eax, %eax
.L13:
	movl	%eax, %edx
	addl	$8, %eax
	movq	(%rbx,%rdx), %rdi
	movq	%rdi, (%rsi,%rdx)
	cmpl	%ecx, %eax
	jb	.L13
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L38:
	movzbl	64(%rsp), %eax
	movb	%al, (%rdi)
	testb	$2, %cl
	je	.L17
	movl	%ecx, %ecx
	movzwl	-2(%rbx,%rcx), %eax
	movw	%ax, -2(%rdi,%rcx)
	jmp	.L17
.L37:
	movl	64(%rsp), %eax
	movl	%ecx, %ecx
	movl	%eax, (%rdi)
	movl	-4(%rbx,%rcx), %eax
	movl	%eax, -4(%rdi,%rcx)
	jmp	.L17
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
.LFB35:
	.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
	addq	$-128, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rbx
	movq	%rsp, %rbp
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rbx, %rdi
	movq	%rax, %r12
	call	strlen@PLT
	cmpl	%eax, %r12d
	jl	.L5
	movl	%r12d, %edi
	movq	%rax, %rcx
	movl	%eax, %r8d
	subl	%eax, %edi
	movslq	%edi, %rsi
	addq	%rbp, %rsi
	testl	%edi, %edi
	js	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	testl	%r8d, %r8d
	je	.L17
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movzbl	(%rsi,%rax), %edx
	cmpb	$63, %dl
	je	.L6
	cmpb	(%rbx,%rax), %dl
	jne	.L7
.L6:
	addq	$1, %rax
	cmpq	%rax, %rcx
	jne	.L8
	movslq	%edi, %rdi
	addq	%rbp, %rdi
	cmpl	$8, %ecx
	jnb	.L9
	testb	$4, %cl
	jne	.L37
	testl	%ecx, %ecx
	jne	.L38
.L17:
	testl	%r12d, %r12d
	je	.L16
	leal	-1(%r12), %edx
	movq	%rbp, %rax
	leaq	1(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	cmpb	$63, (%rax)
	jne	.L18
	movb	$97, (%rax)
.L18:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L19
.L16:
	movq	%rbp, %rdi
	call	puts@PLT
.L3:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	subq	$-128, %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
.L7:
	.cfi_restore_state
	subl	$1, %edi
	subq	$1, %rsi
	cmpl	$-1, %edi
	jne	.L20
.L5:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	movq	64(%rsp), %rax
	leaq	8(%rdi), %rsi
	andq	$-8, %rsi
	movq	%rax, (%rdi)
	movl	%ecx, %eax
	movq	-8(%rbx,%rax), %rdx
	movq	%rdx, -8(%rdi,%rax)
	subq	%rsi, %rdi
	addl	%edi, %ecx
	subq	%rdi, %rbx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L17
	andl	$-8, %ecx
	xorl	%eax, %eax
.L13:
	movl	%eax, %edx
	addl	$8, %eax
	movq	(%rbx,%rdx), %rdi
	movq	%rdi, (%rsi,%rdx)
	cmpl	%ecx, %eax
	jb	.L13
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L38:
	movzbl	64(%rsp), %eax
	movb	%al, (%rdi)
	testb	$2, %cl
	je	.L17
	movl	%ecx, %ecx
	movzwl	-2(%rbx,%rcx), %eax
	movw	%ax, -2(%rdi,%rcx)
	jmp	.L17
.L37:
	movl	64(%rsp), %eax
	movl	%ecx, %ecx
	movl	%eax, (%rdi)
	movl	-4(%rbx,%rcx), %eax
	movl	%eax, -4(%rdi,%rcx)
	jmp	.L17
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
.LFB35:
	.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
	addq	$-128, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rbx
	movq	%rsp, %rbp
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rbx, %rdi
	movq	%rax, %r12
	call	strlen@PLT
	cmpl	%eax, %r12d
	jl	.L5
	movl	%r12d, %edi
	movq	%rax, %rcx
	movl	%eax, %r8d
	subl	%eax, %edi
	movslq	%edi, %rsi
	addq	%rbp, %rsi
	testl	%edi, %edi
	js	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	testl	%r8d, %r8d
	je	.L17
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movzbl	(%rsi,%rax), %edx
	cmpb	$63, %dl
	je	.L6
	cmpb	(%rbx,%rax), %dl
	jne	.L7
.L6:
	addq	$1, %rax
	cmpq	%rax, %rcx
	jne	.L8
	movslq	%edi, %rdi
	addq	%rbp, %rdi
	cmpl	$8, %ecx
	jnb	.L9
	testb	$4, %cl
	jne	.L37
	testl	%ecx, %ecx
	jne	.L38
.L17:
	testl	%r12d, %r12d
	je	.L16
	leal	-1(%r12), %edx
	movq	%rbp, %rax
	leaq	1(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	cmpb	$63, (%rax)
	jne	.L18
	movb	$97, (%rax)
.L18:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L19
.L16:
	movq	%rbp, %rdi
	call	puts@PLT
.L3:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	subq	$-128, %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
.L7:
	.cfi_restore_state
	subl	$1, %edi
	subq	$1, %rsi
	cmpl	$-1, %edi
	jne	.L20
.L5:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	movq	64(%rsp), %rax
	leaq	8(%rdi), %rsi
	andq	$-8, %rsi
	movq	%rax, (%rdi)
	movl	%ecx, %eax
	movq	-8(%rbx,%rax), %rdx
	movq	%rdx, -8(%rdi,%rax)
	subq	%rsi, %rdi
	addl	%edi, %ecx
	subq	%rdi, %rbx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L17
	andl	$-8, %ecx
	xorl	%eax, %eax
.L13:
	movl	%eax, %edx
	addl	$8, %eax
	movq	(%rbx,%rdx), %rdi
	movq	%rdi, (%rsi,%rdx)
	cmpl	%ecx, %eax
	jb	.L13
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L38:
	movzbl	64(%rsp), %eax
	movb	%al, (%rdi)
	testb	$2, %cl
	je	.L17
	movl	%ecx, %ecx
	movzwl	-2(%rbx,%rcx), %eax
	movw	%ax, -2(%rdi,%rcx)
	jmp	.L17
.L37:
	movl	64(%rsp), %eax
	movl	%ecx, %ecx
	movl	%eax, (%rdi)
	movl	-4(%rbx,%rcx), %eax
	movl	%eax, -4(%rdi,%rcx)
	jmp	.L17
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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<string.h>
int main()
{
    char s[55], t[55];
    scanf("%s%s", s, t);
    int i, j;
    int n = strlen(s), m = strlen(t);
    if (n < m)
    {
        printf("UNRESTORABLE\n");
        return 0;
    }
    int x;
    for (i = n - m; i >= 0; i--)
    {
        x = 0;
        for (j = 0; j < m; j++)
        {
            if (s[i + j] != '?' && s[i + j] != t[j])
            {
                x++;
                break;
            }
        }
        if (x == 0)
        {
            for (j = 0; j < m; j++)
                s[i + j] = t[j];
            x = -1;
            break;
        }
    }
    if (x != -1)
    {
        printf("UNRESTORABLE\n");
        return 0;
    }
    for (i = 0; i < n; 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<string.h>
int main()
{
    char s[55], t[55];
    scanf("%s%s", s, t);
    int i, j;
    int n = strlen(s), m = strlen(t);
    if (n < m)
    {
        printf("UNRESTORABLE\n");
        return 0;
    }
    int x;
    for (i = n - m; i >= 0; i--)
    {
        x = 0;
        for (j = 0; j < m; j++)
        {
            if (s[i + j] != '?' && s[i + j] != t[j])
            {
                x++;
                break;
            }
        }
        if (x == 0)
        {
            for (j = 0; j < m; j++)
                s[i + j] = t[j];
            x = -1;
            break;
        }
    }
    if (x != -1)
    {
        printf("UNRESTORABLE\n");
        return 0;
    }
    for (i = 0; i < n; 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<string.h>
int main()
{
    char s[55], t[55];
    scanf("%s%s", s, t);
    int i, j;
    int n = strlen(s), m = strlen(t);
    if (n < m)
    {
        printf("UNRESTORABLE\n");
        return 0;
    }
    int x;
    for (i = n - m; i >= 0; i--)
    {
        x = 0;
        for (j = 0; j < m; j++)
        {
            if (s[i + j] != '?' && s[i + j] != t[j])
            {
                x++;
                break;
            }
        }
        if (x == 0)
        {
            for (j = 0; j < m; j++)
                s[i + j] = t[j];
            x = -1;
            break;
        }
    }
    if (x != -1)
    {
        printf("UNRESTORABLE\n");
        return 0;
    }
    for (i = 0; i < n; 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:
.LFB35:
	.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
	addq	$-128, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rbx
	movq	%rsp, %rbp
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rbx, %rdi
	movq	%rax, %r12
	call	strlen@PLT
	cmpl	%eax, %r12d
	jl	.L5
	movl	%r12d, %edi
	movq	%rax, %rcx
	movl	%eax, %r8d
	subl	%eax, %edi
	movslq	%edi, %rsi
	addq	%rbp, %rsi
	testl	%edi, %edi
	js	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	testl	%r8d, %r8d
	je	.L17
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movzbl	(%rsi,%rax), %edx
	cmpb	$63, %dl
	je	.L6
	cmpb	(%rbx,%rax), %dl
	jne	.L7
.L6:
	addq	$1, %rax
	cmpq	%rax, %rcx
	jne	.L8
	movslq	%edi, %rdi
	addq	%rbp, %rdi
	cmpl	$8, %ecx
	jnb	.L9
	testb	$4, %cl
	jne	.L37
	testl	%ecx, %ecx
	jne	.L38
.L17:
	testl	%r12d, %r12d
	je	.L16
	leal	-1(%r12), %edx
	movq	%rbp, %rax
	leaq	1(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	cmpb	$63, (%rax)
	jne	.L18
	movb	$97, (%rax)
.L18:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L19
.L16:
	movq	%rbp, %rdi
	call	puts@PLT
.L3:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	subq	$-128, %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
.L7:
	.cfi_restore_state
	subl	$1, %edi
	subq	$1, %rsi
	cmpl	$-1, %edi
	jne	.L20
.L5:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	movq	64(%rsp), %rax
	leaq	8(%rdi), %rsi
	andq	$-8, %rsi
	movq	%rax, (%rdi)
	movl	%ecx, %eax
	movq	-8(%rbx,%rax), %rdx
	movq	%rdx, -8(%rdi,%rax)
	subq	%rsi, %rdi
	addl	%edi, %ecx
	subq	%rdi, %rbx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L17
	andl	$-8, %ecx
	xorl	%eax, %eax
.L13:
	movl	%eax, %edx
	addl	$8, %eax
	movq	(%rbx,%rdx), %rdi
	movq	%rdi, (%rsi,%rdx)
	cmpl	%ecx, %eax
	jb	.L13
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L38:
	movzbl	64(%rsp), %eax
	movb	%al, (%rdi)
	testb	$2, %cl
	je	.L17
	movl	%ecx, %ecx
	movzwl	-2(%rbx,%rcx), %eax
	movw	%ax, -2(%rdi,%rcx)
	jmp	.L17
.L37:
	movl	64(%rsp), %eax
	movl	%ecx, %ecx
	movl	%eax, (%rdi)
	movl	-4(%rbx,%rcx), %eax
	movl	%eax, -4(%rdi,%rcx)
	jmp	.L17
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
.LFB35:
	.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
	addq	$-128, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rbx
	movq	%rsp, %rbp
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rbx, %rdi
	movq	%rax, %r12
	call	strlen@PLT
	cmpl	%eax, %r12d
	jl	.L5
	movl	%r12d, %edi
	movq	%rax, %rcx
	movl	%eax, %r8d
	subl	%eax, %edi
	movslq	%edi, %rsi
	addq	%rbp, %rsi
	testl	%edi, %edi
	js	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	testl	%r8d, %r8d
	je	.L17
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movzbl	(%rsi,%rax), %edx
	cmpb	$63, %dl
	je	.L6
	cmpb	(%rbx,%rax), %dl
	jne	.L7
.L6:
	addq	$1, %rax
	cmpq	%rax, %rcx
	jne	.L8
	movslq	%edi, %rdi
	addq	%rbp, %rdi
	cmpl	$8, %ecx
	jnb	.L9
	testb	$4, %cl
	jne	.L37
	testl	%ecx, %ecx
	jne	.L38
.L17:
	testl	%r12d, %r12d
	je	.L16
	leal	-1(%r12), %edx
	movq	%rbp, %rax
	leaq	1(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	cmpb	$63, (%rax)
	jne	.L18
	movb	$97, (%rax)
.L18:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L19
.L16:
	movq	%rbp, %rdi
	call	puts@PLT
.L3:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L39
	subq	$-128, %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
.L7:
	.cfi_restore_state
	subl	$1, %edi
	subq	$1, %rsi
	cmpl	$-1, %edi
	jne	.L20
.L5:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	movq	64(%rsp), %rax
	leaq	8(%rdi), %rsi
	andq	$-8, %rsi
	movq	%rax, (%rdi)
	movl	%ecx, %eax
	movq	-8(%rbx,%rax), %rdx
	movq	%rdx, -8(%rdi,%rax)
	subq	%rsi, %rdi
	addl	%edi, %ecx
	subq	%rdi, %rbx
	andl	$-8, %ecx
	cmpl	$8, %ecx
	jb	.L17
	andl	$-8, %ecx
	xorl	%eax, %eax
.L13:
	movl	%eax, %edx
	addl	$8, %eax
	movq	(%rbx,%rdx), %rdi
	movq	%rdi, (%rsi,%rdx)
	cmpl	%ecx, %eax
	jb	.L13
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L38:
	movzbl	64(%rsp), %eax
	movb	%al, (%rdi)
	testb	$2, %cl
	je	.L17
	movl	%ecx, %ecx
	movzwl	-2(%rbx,%rcx), %eax
	movw	%ax, -2(%rdi,%rcx)
	jmp	.L17
.L37:
	movl	64(%rsp), %eax
	movl	%ecx, %ecx
	movl	%eax, (%rdi)
	movl	-4(%rbx,%rcx), %eax
	movl	%eax, -4(%rdi,%rcx)
	jmp	.L17
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```