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<ctype.h>
#define rep(i,n) for(int i=0;(i)<(n);(i)++)
int main(void){
    while(1){
        int map[9][9]={0};
        char s[102]={0};
        fgets(s,100,stdin);
        //printf("%s",s);
        if(s[0]=='#') break;
        int a,b,c,d;
        scanf("%d%d%d%d",&a,&b,&c,&d);
        //getchar()注意
        getchar();
        int y=0,x=0;
        int h=0,w=0;
        int p=0;
        while(1){
            if(isdigit(s[p])){
                rep(i,(s[p]-'0')){
                    map[y][x]=0;
                    if(h<y) h=y;
                    if(w<x) w=x;
                    x++;
                }
                p++;
            }
            else if(s[p]=='b'){
                map[y][x]=1;
                if(h<y) h=y;
                if(w<x) w=x;
                x++;
                p++;
            }
            else if(s[p]=='/'){
                y++; x=0;
                p++;
            }
            else{
                break;
            }
        }
        map[a-1][b-1]=0; map[c-1][d-1]=1;
        /*rep(i,h+1){
            rep(j,w+1){
                printf("%2d ",map[i][j]);
            }puts("");
        }puts("");*/
        p=0;
        rep(i,h+1){
            while(1){
                if(map[i][p]==1){
                    printf("b");
                    p++;
                }
                else if(map[i][p]==0){
                    int cnt=0;
                    while(1){
                        cnt++;
                        if(p==w||map[i][p+1]==1) break;
                        p++;
                    }p++;
                    printf("%d",cnt);
                }
                if(p>w){
                    if(i!=h)
                    printf("/");
                    p=0; break;
                }
            }
        }puts("");
    }
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	""
	.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	$496, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L25:
	leaq	-448(%rbp), %rdx
	movl	$0, %eax
	movl	$40, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movq	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movw	$0, -12(%rbp)
	movq	stdin(%rip), %rdx
	leaq	-112(%rbp), %rax
	movl	$100, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movzbl	-112(%rbp), %eax
	cmpb	$35, %al
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	jmp	.L27
.L2:
	leaq	-484(%rbp), %rsi
	leaq	-488(%rbp), %rcx
	leaq	-492(%rbp), %rdx
	leaq	-496(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movl	$0, -480(%rbp)
	movl	$0, -476(%rbp)
	movl	$0, -472(%rbp)
	movl	$0, -468(%rbp)
	movl	$0, -464(%rbp)
.L15:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movl	-464(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L4
	movl	$0, -460(%rbp)
	jmp	.L5
.L8:
	movl	-476(%rbp), %eax
	movslq	%eax, %rcx
	movl	-480(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -448(%rbp,%rax,4)
	movl	-472(%rbp), %eax
	cmpl	-480(%rbp), %eax
	jge	.L6
	movl	-480(%rbp), %eax
	movl	%eax, -472(%rbp)
.L6:
	movl	-468(%rbp), %eax
	cmpl	-476(%rbp), %eax
	jge	.L7
	movl	-476(%rbp), %eax
	movl	%eax, -468(%rbp)
.L7:
	addl	$1, -476(%rbp)
	addl	$1, -460(%rbp)
.L5:
	movl	-464(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	cmpl	%eax, -460(%rbp)
	jl	.L8
	addl	$1, -464(%rbp)
	jmp	.L15
.L4:
	movl	-464(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$98, %al
	jne	.L10
	movl	-476(%rbp), %eax
	movslq	%eax, %rcx
	movl	-480(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -448(%rbp,%rax,4)
	movl	-472(%rbp), %eax
	cmpl	-480(%rbp), %eax
	jge	.L11
	movl	-480(%rbp), %eax
	movl	%eax, -472(%rbp)
.L11:
	movl	-468(%rbp), %eax
	cmpl	-476(%rbp), %eax
	jge	.L12
	movl	-476(%rbp), %eax
	movl	%eax, -468(%rbp)
.L12:
	addl	$1, -476(%rbp)
	addl	$1, -464(%rbp)
	jmp	.L15
.L10:
	movl	-464(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L29
	addl	$1, -480(%rbp)
	movl	$0, -476(%rbp)
	addl	$1, -464(%rbp)
	jmp	.L15
.L29:
	nop
	movl	-496(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-492(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -448(%rbp,%rax,4)
	movl	-488(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-484(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -448(%rbp,%rax,4)
	movl	$0, -464(%rbp)
	movl	$0, -456(%rbp)
	jmp	.L16
.L24:
	movl	-464(%rbp), %eax
	movslq	%eax, %rcx
	movl	-456(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-448(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L17
	movl	$98, %edi
	call	putchar@PLT
	addl	$1, -464(%rbp)
	jmp	.L18
.L17:
	movl	-464(%rbp), %eax
	movslq	%eax, %rcx
	movl	-456(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-448(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L18
	movl	$0, -452(%rbp)
.L20:
	addl	$1, -452(%rbp)
	movl	-464(%rbp), %eax
	cmpl	-468(%rbp), %eax
	je	.L19
	movl	-464(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movl	-456(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-448(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L19
	addl	$1, -464(%rbp)
	jmp	.L20
.L19:
	addl	$1, -464(%rbp)
	movl	-452(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L18:
	movl	-464(%rbp), %eax
	cmpl	-468(%rbp), %eax
	jle	.L24
	movl	-456(%rbp), %eax
	cmpl	-472(%rbp), %eax
	je	.L22
	movl	$47, %edi
	call	putchar@PLT
.L22:
	movl	$0, -464(%rbp)
	nop
	addl	$1, -456(%rbp)
.L16:
	movl	-472(%rbp), %eax
	cmpl	-456(%rbp), %eax
	jge	.L24
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L25
.L27:
	call	__stack_chk_fail@PLT
.L26:
	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	"%d%d%d%d"
.LC3:
	.string	"%d"
.LC4:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$488, %rsp
	.cfi_def_cfa_offset 544
	movq	%fs:40, %rax
	movq	%rax, 472(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	368(%rsp), %rax
	movq	%rax, 8(%rsp)
.L22:
	movq	(%rsp), %rdi
	xorl	%eax, %eax
	movl	$40, %ecx
	movq	8(%rsp), %r14
	movq	stdin(%rip), %rdx
	pxor	%xmm0, %xmm0
	movl	$100, %esi
	movl	$0, 464(%rsp)
	rep stosq
	xorl	%eax, %eax
	movaps	%xmm0, 368(%rsp)
	movw	%ax, 468(%rsp)
	movaps	%xmm0, 384(%rsp)
	movaps	%xmm0, 400(%rsp)
	movaps	%xmm0, 416(%rsp)
	movaps	%xmm0, 432(%rsp)
	movl	$0, (%rdi)
	movq	%r14, %rdi
	movaps	%xmm0, 448(%rsp)
	call	fgets@PLT
	cmpb	$35, 368(%rsp)
	je	.L2
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	leaq	24(%rsp), %rcx
	leaq	28(%rsp), %r8
	xorl	%ebp, %ebp
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	call	__ctype_b_loc@PLT
	movq	(%rsp), %r11
	movq	%r14, %rsi
	xorl	%edi, %edi
	movq	(%rax), %rbx
	xorl	%edx, %edx
	pxor	%xmm2, %xmm2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$98, %cl
	je	.L49
	cmpb	$47, %cl
	jne	.L11
	addl	$1, %edx
	xorl	%edi, %edi
.L9:
	addq	$1, %rsi
.L3:
	movsbq	(%rsi), %rcx
	movq	%rcx, %rax
	testb	$8, 1(%rbx,%rcx,2)
	je	.L4
	leal	-48(%rcx), %r9d
	testl	%r9d, %r9d
	jle	.L9
	leal	-49(%rcx), %ecx
	cmpl	$2, %ecx
	jbe	.L24
	movd	%edi, %xmm6
	movdqa	.LC1(%rip), %xmm4
	movslq	%edx, %rcx
	movslq	%edi, %r10
	pshufd	$0, %xmm6, %xmm1
	movd	%r15d, %xmm6
	leaq	(%rcx,%rcx,8), %r8
	paddd	%xmm1, %xmm4
	paddd	.LC2(%rip), %xmm1
	pshufd	$0, %xmm6, %xmm5
	addq	%r10, %r8
	cmpl	%ebp, %edx
	movl	%r9d, %r10d
	leaq	(%r11,%r8,4), %r8
	movdqa	%xmm1, %xmm0
	cmovge	%edx, %ebp
	shrl	$2, %r10d
	movups	%xmm2, (%r8)
	pcmpgtd	%xmm5, %xmm0
	movd	%ebp, %xmm7
	pshufd	$0, %xmm7, %xmm3
	pand	%xmm0, %xmm1
	pandn	%xmm5, %xmm0
	por	%xmm1, %xmm0
	cmpl	$1, %r10d
	je	.L7
	movdqa	%xmm4, %xmm1
	cmpl	%ebp, %edx
	movups	%xmm2, 16(%r8)
	pcmpgtd	%xmm0, %xmm1
	cmovge	%edx, %ebp
	movd	%ebp, %xmm7
	pand	%xmm1, %xmm4
	pandn	%xmm0, %xmm1
	pshufd	$0, %xmm7, %xmm3
	movdqa	%xmm1, %xmm0
	por	%xmm4, %xmm0
.L7:
	movdqa	%xmm0, %xmm4
	movl	%r9d, %r10d
	psrldq	$8, %xmm4
	andl	$-4, %r10d
	movdqa	%xmm4, %xmm1
	leal	(%rdi,%r10), %r8d
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm4
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm4, %xmm0
	movdqa	%xmm0, %xmm4
	psrldq	$4, %xmm4
	movdqa	%xmm4, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm4
	pandn	%xmm0, %xmm1
	por	%xmm4, %xmm1
	movd	%xmm1, %r15d
	movdqa	%xmm3, %xmm1
	psrldq	$8, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm3
	psrldq	$4, %xmm3
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	por	%xmm3, %xmm1
	movd	%xmm1, %ebp
	cmpl	%r10d, %r9d
	je	.L8
.L6:
	movslq	%r8d, %r13
	leaq	(%rcx,%rcx,8), %r12
	movq	%r13, %rcx
	leal	1(%r10), %r13d
	addq	%r12, %rcx
	cmpl	%edx, %ebp
	cmovl	%edx, %ebp
	cmpl	%r8d, %r15d
	movl	$0, 32(%rsp,%rcx,4)
	leal	1(%r8), %ecx
	cmovl	%r8d, %r15d
	cmpl	%r13d, %r9d
	jle	.L8
	movslq	%ecx, %r13
	addq	%r12, %r13
	cmpl	%edx, %ebp
	movl	$0, 32(%rsp,%r13,4)
	cmovl	%edx, %ebp
	cmpl	%ecx, %r15d
	cmovl	%ecx, %r15d
	addl	$2, %r10d
	addl	$2, %r8d
	cmpl	%r10d, %r9d
	jle	.L8
	movslq	%r8d, %rcx
	addq	%rcx, %r12
	cmpl	%edx, %ebp
	movl	$0, 32(%rsp,%r12,4)
	cmovl	%edx, %ebp
	cmpl	%r8d, %r15d
	cmovl	%r8d, %r15d
.L8:
	leal	-48(%rdi,%rax), %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L49:
	movslq	%edx, %rcx
	movslq	%edi, %r8
	leaq	(%rcx,%rcx,8), %rax
	addq	%r8, %rax
	cmpl	%edx, %ebp
	cmovl	%edx, %ebp
	cmpl	%edi, %r15d
	movl	$1, 32(%rsp,%rax,4)
	cmovl	%edi, %r15d
	addl	$1, %edi
	jmp	.L9
.L11:
	movl	20(%rsp), %eax
	xorl	%r12d, %r12d
	leaq	.LC3(%rip), %r13
	leal	-1(%rax), %edx
	movl	16(%rsp), %eax
	movslq	%edx, %rdx
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax,8), %rax
	addq	%rdx, %rax
	movl	$0, 32(%rsp,%rax,4)
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	24(%rsp), %eax
	movslq	%edx, %rdx
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax,8), %rax
	addq	%rdx, %rax
	movl	$1, 32(%rsp,%rax,4)
	.p2align 4,,10
	.p2align 3
.L21:
	movslq	%r12d, %rax
	xorl	%ebx, %ebx
	leaq	(%rax,%rax,8), %r14
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%ebx, %r15d
	jl	.L50
.L17:
	movslq	%ebx, %rax
	addq	%r14, %rax
	movl	32(%rsp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L51
	testl	%eax, %eax
	jne	.L13
	leal	1(%rbx), %ecx
	cmpl	%ebx, %r15d
	je	.L25
	movslq	%ecx, %rax
	addq	%r14, %rax
	movl	32(%rsp,%rax,4), %edx
	cmpl	$1, %edx
	je	.L26
	leal	2(%rbx), %edx
	cmpl	%ecx, %r15d
	je	.L27
	movslq	%edx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L27
	leal	3(%rbx), %ecx
	cmpl	%edx, %r15d
	je	.L29
	movslq	%ecx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L29
	leal	4(%rbx), %edx
	cmpl	%ecx, %r15d
	je	.L31
	movslq	%edx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L31
	leal	5(%rbx), %ecx
	cmpl	%edx, %r15d
	je	.L33
	movslq	%ecx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L33
	leal	6(%rbx), %edx
	cmpl	%ecx, %r15d
	je	.L35
	movslq	%edx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L35
	leal	7(%rbx), %ecx
	cmpl	%edx, %r15d
	je	.L37
	movslq	%ecx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L37
	leal	8(%rbx), %edx
	cmpl	%ecx, %r15d
	je	.L39
	movslq	%edx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L39
	leal	9(%rbx), %ecx
	cmpl	%edx, %r15d
	je	.L41
	movslq	%ecx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L41
	addl	$10, %ebx
	movl	$10, %edx
.L16:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%ebx, %r15d
	jge	.L17
.L50:
	cmpl	%r12d, %ebp
	je	.L18
	movl	$47, %edi
	addl	$1, %r12d
	call	putchar@PLT
	cmpl	%r12d, %ebp
	jge	.L21
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L51:
	movl	$98, %edi
	addl	$1, %ebx
	call	putchar@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L18:
	leal	1(%rbp), %r12d
	cmpl	%r12d, %ebp
	jge	.L21
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%edx, %ebx
	movl	$2, %edx
	jmp	.L16
.L29:
	movl	%ecx, %ebx
	movl	$3, %edx
	jmp	.L16
.L31:
	movl	%edx, %ebx
	movl	$4, %edx
	jmp	.L16
.L33:
	movl	%ecx, %ebx
	movl	$5, %edx
	jmp	.L16
.L35:
	movl	%edx, %ebx
	movl	$6, %edx
	jmp	.L16
.L25:
	movl	%ecx, %ebx
	movl	$1, %edx
	jmp	.L16
.L37:
	movl	%ecx, %ebx
	movl	$7, %edx
	jmp	.L16
.L26:
	movl	%ecx, %ebx
	jmp	.L16
.L39:
	movl	%edx, %ebx
	movl	$8, %edx
	jmp	.L16
.L41:
	movl	%ecx, %ebx
	movl	$9, %edx
	jmp	.L16
.L24:
	movl	%edi, %r8d
	xorl	%r10d, %r10d
	movslq	%edx, %rcx
	jmp	.L6
.L2:
	movq	472(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	addq	$488, %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
.L52:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	4
	.long	5
	.long	6
	.long	7
	.align 16
.LC2:
	.long	0
	.long	1
	.long	2
	.long	3
	.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	"%d%d%d%d"
.LC3:
	.string	"%d"
.LC4:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$488, %rsp
	.cfi_def_cfa_offset 544
	movq	%fs:40, %rax
	movq	%rax, 472(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rax
	movq	%rax, (%rsp)
	leaq	368(%rsp), %rax
	movq	%rax, 8(%rsp)
.L22:
	movq	(%rsp), %rdi
	xorl	%eax, %eax
	movl	$40, %ecx
	movq	8(%rsp), %r14
	movq	stdin(%rip), %rdx
	pxor	%xmm0, %xmm0
	movl	$100, %esi
	movl	$0, 464(%rsp)
	rep stosq
	xorl	%eax, %eax
	movaps	%xmm0, 368(%rsp)
	movw	%ax, 468(%rsp)
	movaps	%xmm0, 384(%rsp)
	movaps	%xmm0, 400(%rsp)
	movaps	%xmm0, 416(%rsp)
	movaps	%xmm0, 432(%rsp)
	movl	$0, (%rdi)
	movq	%r14, %rdi
	movaps	%xmm0, 448(%rsp)
	call	fgets@PLT
	cmpb	$35, 368(%rsp)
	je	.L2
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	leaq	24(%rsp), %rcx
	leaq	28(%rsp), %r8
	xorl	%ebp, %ebp
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	call	__ctype_b_loc@PLT
	movq	(%rsp), %r11
	movq	%r14, %rsi
	xorl	%edi, %edi
	movq	(%rax), %rbx
	xorl	%edx, %edx
	pxor	%xmm2, %xmm2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$98, %cl
	je	.L49
	cmpb	$47, %cl
	jne	.L11
	addl	$1, %edx
	xorl	%edi, %edi
.L9:
	addq	$1, %rsi
.L3:
	movsbq	(%rsi), %rcx
	movq	%rcx, %rax
	testb	$8, 1(%rbx,%rcx,2)
	je	.L4
	leal	-48(%rcx), %r9d
	testl	%r9d, %r9d
	jle	.L9
	leal	-49(%rcx), %ecx
	cmpl	$2, %ecx
	jbe	.L24
	movd	%edi, %xmm6
	movdqa	.LC1(%rip), %xmm4
	movslq	%edx, %rcx
	movslq	%edi, %r10
	pshufd	$0, %xmm6, %xmm1
	movd	%r15d, %xmm6
	leaq	(%rcx,%rcx,8), %r8
	paddd	%xmm1, %xmm4
	paddd	.LC2(%rip), %xmm1
	pshufd	$0, %xmm6, %xmm5
	addq	%r10, %r8
	cmpl	%ebp, %edx
	movl	%r9d, %r10d
	leaq	(%r11,%r8,4), %r8
	movdqa	%xmm1, %xmm0
	cmovge	%edx, %ebp
	shrl	$2, %r10d
	movups	%xmm2, (%r8)
	pcmpgtd	%xmm5, %xmm0
	movd	%ebp, %xmm7
	pshufd	$0, %xmm7, %xmm3
	pand	%xmm0, %xmm1
	pandn	%xmm5, %xmm0
	por	%xmm1, %xmm0
	cmpl	$1, %r10d
	je	.L7
	movdqa	%xmm4, %xmm1
	cmpl	%ebp, %edx
	movups	%xmm2, 16(%r8)
	pcmpgtd	%xmm0, %xmm1
	cmovge	%edx, %ebp
	movd	%ebp, %xmm7
	pand	%xmm1, %xmm4
	pandn	%xmm0, %xmm1
	pshufd	$0, %xmm7, %xmm3
	movdqa	%xmm1, %xmm0
	por	%xmm4, %xmm0
.L7:
	movdqa	%xmm0, %xmm4
	movl	%r9d, %r10d
	psrldq	$8, %xmm4
	andl	$-4, %r10d
	movdqa	%xmm4, %xmm1
	leal	(%rdi,%r10), %r8d
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm4
	pandn	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	por	%xmm4, %xmm0
	movdqa	%xmm0, %xmm4
	psrldq	$4, %xmm4
	movdqa	%xmm4, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm4
	pandn	%xmm0, %xmm1
	por	%xmm4, %xmm1
	movd	%xmm1, %r15d
	movdqa	%xmm3, %xmm1
	psrldq	$8, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm3
	psrldq	$4, %xmm3
	movdqa	%xmm3, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	por	%xmm3, %xmm1
	movd	%xmm1, %ebp
	cmpl	%r10d, %r9d
	je	.L8
.L6:
	movslq	%r8d, %r13
	leaq	(%rcx,%rcx,8), %r12
	movq	%r13, %rcx
	leal	1(%r10), %r13d
	addq	%r12, %rcx
	cmpl	%edx, %ebp
	cmovl	%edx, %ebp
	cmpl	%r8d, %r15d
	movl	$0, 32(%rsp,%rcx,4)
	leal	1(%r8), %ecx
	cmovl	%r8d, %r15d
	cmpl	%r13d, %r9d
	jle	.L8
	movslq	%ecx, %r13
	addq	%r12, %r13
	cmpl	%edx, %ebp
	movl	$0, 32(%rsp,%r13,4)
	cmovl	%edx, %ebp
	cmpl	%ecx, %r15d
	cmovl	%ecx, %r15d
	addl	$2, %r10d
	addl	$2, %r8d
	cmpl	%r10d, %r9d
	jle	.L8
	movslq	%r8d, %rcx
	addq	%rcx, %r12
	cmpl	%edx, %ebp
	movl	$0, 32(%rsp,%r12,4)
	cmovl	%edx, %ebp
	cmpl	%r8d, %r15d
	cmovl	%r8d, %r15d
.L8:
	leal	-48(%rdi,%rax), %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L49:
	movslq	%edx, %rcx
	movslq	%edi, %r8
	leaq	(%rcx,%rcx,8), %rax
	addq	%r8, %rax
	cmpl	%edx, %ebp
	cmovl	%edx, %ebp
	cmpl	%edi, %r15d
	movl	$1, 32(%rsp,%rax,4)
	cmovl	%edi, %r15d
	addl	$1, %edi
	jmp	.L9
.L11:
	movl	20(%rsp), %eax
	xorl	%r12d, %r12d
	leaq	.LC3(%rip), %r13
	leal	-1(%rax), %edx
	movl	16(%rsp), %eax
	movslq	%edx, %rdx
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax,8), %rax
	addq	%rdx, %rax
	movl	$0, 32(%rsp,%rax,4)
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	24(%rsp), %eax
	movslq	%edx, %rdx
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax,8), %rax
	addq	%rdx, %rax
	movl	$1, 32(%rsp,%rax,4)
	.p2align 4,,10
	.p2align 3
.L21:
	movslq	%r12d, %rax
	xorl	%ebx, %ebx
	leaq	(%rax,%rax,8), %r14
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%ebx, %r15d
	jl	.L50
.L17:
	movslq	%ebx, %rax
	addq	%r14, %rax
	movl	32(%rsp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L51
	testl	%eax, %eax
	jne	.L13
	leal	1(%rbx), %ecx
	cmpl	%ebx, %r15d
	je	.L25
	movslq	%ecx, %rax
	addq	%r14, %rax
	movl	32(%rsp,%rax,4), %edx
	cmpl	$1, %edx
	je	.L26
	leal	2(%rbx), %edx
	cmpl	%ecx, %r15d
	je	.L27
	movslq	%edx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L27
	leal	3(%rbx), %ecx
	cmpl	%edx, %r15d
	je	.L29
	movslq	%ecx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L29
	leal	4(%rbx), %edx
	cmpl	%ecx, %r15d
	je	.L31
	movslq	%edx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L31
	leal	5(%rbx), %ecx
	cmpl	%edx, %r15d
	je	.L33
	movslq	%ecx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L33
	leal	6(%rbx), %edx
	cmpl	%ecx, %r15d
	je	.L35
	movslq	%edx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L35
	leal	7(%rbx), %ecx
	cmpl	%edx, %r15d
	je	.L37
	movslq	%ecx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L37
	leal	8(%rbx), %edx
	cmpl	%ecx, %r15d
	je	.L39
	movslq	%edx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L39
	leal	9(%rbx), %ecx
	cmpl	%edx, %r15d
	je	.L41
	movslq	%ecx, %rax
	addq	%r14, %rax
	cmpl	$1, 32(%rsp,%rax,4)
	je	.L41
	addl	$10, %ebx
	movl	$10, %edx
.L16:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpl	%ebx, %r15d
	jge	.L17
.L50:
	cmpl	%r12d, %ebp
	je	.L18
	movl	$47, %edi
	addl	$1, %r12d
	call	putchar@PLT
	cmpl	%r12d, %ebp
	jge	.L21
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L51:
	movl	$98, %edi
	addl	$1, %ebx
	call	putchar@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L18:
	leal	1(%rbp), %r12d
	cmpl	%r12d, %ebp
	jge	.L21
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%edx, %ebx
	movl	$2, %edx
	jmp	.L16
.L29:
	movl	%ecx, %ebx
	movl	$3, %edx
	jmp	.L16
.L31:
	movl	%edx, %ebx
	movl	$4, %edx
	jmp	.L16
.L33:
	movl	%ecx, %ebx
	movl	$5, %edx
	jmp	.L16
.L35:
	movl	%edx, %ebx
	movl	$6, %edx
	jmp	.L16
.L25:
	movl	%ecx, %ebx
	movl	$1, %edx
	jmp	.L16
.L37:
	movl	%ecx, %ebx
	movl	$7, %edx
	jmp	.L16
.L26:
	movl	%ecx, %ebx
	jmp	.L16
.L39:
	movl	%edx, %ebx
	movl	$8, %edx
	jmp	.L16
.L41:
	movl	%ecx, %ebx
	movl	$9, %edx
	jmp	.L16
.L24:
	movl	%edi, %r8d
	xorl	%r10d, %r10d
	movslq	%edx, %rcx
	jmp	.L6
.L2:
	movq	472(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	addq	$488, %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
.L52:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	4
	.long	5
	.long	6
	.long	7
	.align 16
.LC2:
	.long	0
	.long	1
	.long	2
	.long	3
	.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<ctype.h>
#define rep(i,n) for(int i=0;(i)<(n);(i)++)
int main(void){
    while(1){
        int map[9][9]={0};
        char s[102]={0};
        fgets(s,100,stdin);
        //printf("%s",s);
        if(s[0]=='#') break;
        int a,b,c,d;
        scanf("%d%d%d%d",&a,&b,&c,&d);
        //getchar()注意
        getchar();
        int y=0,x=0;
        int h=0,w=0;
        int p=0;
        while(1){
            if(isdigit(s[p])){
                rep(i,(s[p]-'0')){
                    map[y][x]=0;
                    if(h<y) h=y;
                    if(w<x) w=x;
                    x++;
                }
                p++;
            }
            else if(s[p]=='b'){
                map[y][x]=1;
                if(h<y) h=y;
                if(w<x) w=x;
                x++;
                p++;
            }
            else if(s[p]=='/'){
                y++; x=0;
                p++;
            }
            else{
                break;
            }
        }
        map[a-1][b-1]=0; map[c-1][d-1]=1;
        /*rep(i,h+1){
            rep(j,w+1){
                printf("%2d ",map[i][j]);
            }puts("");
        }puts("");*/
        p=0;
        rep(i,h+1){
            while(1){
                if(map[i][p]==1){
                    printf("b");
                    p++;
                }
                else if(map[i][p]==0){
                    int cnt=0;
                    while(1){
                        cnt++;
                        if(p==w||map[i][p+1]==1) break;
                        p++;
                    }p++;
                    printf("%d",cnt);
                }
                if(p>w){
                    if(i!=h)
                    printf("/");
                    p=0; break;
                }
            }
        }puts("");
    }
}


b1/1b
1 1 1 2
b5/bbbbbb
2 4 1 4
b2b2b/7
1 4 2 6
#
 b1/1b
1 1 1 2
b5/bbbbbb
2 4 1 5
b2b2b/7
1 4 2 4
#
 b1/1b
1 1 1 2
b5/bbbbbb
2 4 1 4
b2b2b/7
1 4 1 4
#
 b1/1b
1 1 1 2
b5/bbbbbb
2 4 0 5
b2b2b/7
1 4 2 4
#
 b1/1b
1 1 1 2
b5/bbbbbb
2 4 1 4
b2b2b/7
1 4 2 2
#
 b1/1b
1 1 1 2
b5/bbbbbb
2 4 1 4
b2b2b/7
1 4 1 2
#
 b1/1b
1 1 1 2
b5/bbbbbb
2 8 0 5
b2b2b/7
1 4 2 4
#
 b1/1b
1 1 1 2
b5/bbbbbb
2 4 1 8
b2b2b/7
1 4 1 2
#
 b1/1b
1 1 1 2
b5/bbbbbb
2 4 0 5
b2b2b/7
1 4 2 7
#
 b1/1b
1 1 1 2
b5/bbbbbb
2 4 1 2
b2b2b/7
1 4 2 2
#

1b/1b
b2b2/bbb1bb
b5b/5b1
 1b/1b
b3b1/bbb1bb
b5b/3b3
 1b/1b
b2b2/bbb1bb
b2b2b/7
 1b/1b
b1/bb
b5b/3b3
 1b/1b
b2b2/bbb1bb
b5b/1b5
 1b/1b
b2b2/bbb1bb
bb4b/7
 1b/1b
b1/bb
b5b/3b3
 1b/1b
b5/bbb1bb
bb4b/7
 1b/1b
b1/bb
b5b/6b
 1b/1b
bb4/bbb1bb
b5b/1b5

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<ctype.h>
#define rep(i,n) for(int i=0;(i)<(n);(i)++)
int main(void){
    while(1){
        int map[9][9]={0};
        char s[102]={0};
        fgets(s,100,stdin);
        //printf("%s",s);
        if(s[0]=='#') break;
        int a,b,c,d;
        scanf("%d%d%d%d",&a,&b,&c,&d);
        //getchar()注意
        getchar();
        int y=0,x=0;
        int h=0,w=0;
        int p=0;
        while(1){
            if(isdigit(s[p])){
                rep(i,(s[p]-'0')){
                    map[y][x]=0;
                    if(h<y) h=y;
                    if(w<x) w=x;
                    x++;
                }
                p++;
            }
            else if(s[p]=='b'){
                map[y][x]=1;
                if(h<y) h=y;
                if(w<x) w=x;
                x++;
                p++;
            }
            else if(s[p]=='/'){
                y++; x=0;
                p++;
            }
            else{
                break;
            }
        }
        map[a-1][b-1]=0; map[c-1][d-1]=1;
        /*rep(i,h+1){
            rep(j,w+1){
                printf("%2d ",map[i][j]);
            }puts("");
        }puts("");*/
        p=0;
        rep(i,h+1){
            while(1){
                if(map[i][p]==1){
                    printf("b");
                    p++;
                }
                else if(map[i][p]==0){
                    int cnt=0;
                    while(1){
                        cnt++;
                        if(p==w||map[i][p+1]==1) break;
                        p++;
                    }p++;
                    printf("%d",cnt);
                }
                if(p>w){
                    if(i!=h)
                    printf("/");
                    p=0; break;
                }
            }
        }puts("");
    }
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	""
	.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	$496, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L25:
	leaq	-448(%rbp), %rdx
	movl	$0, %eax
	movl	$40, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movq	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movw	$0, -12(%rbp)
	movq	stdin(%rip), %rdx
	leaq	-112(%rbp), %rax
	movl	$100, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movzbl	-112(%rbp), %eax
	cmpb	$35, %al
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	jmp	.L27
.L2:
	leaq	-484(%rbp), %rsi
	leaq	-488(%rbp), %rcx
	leaq	-492(%rbp), %rdx
	leaq	-496(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movl	$0, -480(%rbp)
	movl	$0, -476(%rbp)
	movl	$0, -472(%rbp)
	movl	$0, -468(%rbp)
	movl	$0, -464(%rbp)
.L15:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movl	-464(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L4
	movl	$0, -460(%rbp)
	jmp	.L5
.L8:
	movl	-476(%rbp), %eax
	movslq	%eax, %rcx
	movl	-480(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -448(%rbp,%rax,4)
	movl	-472(%rbp), %eax
	cmpl	-480(%rbp), %eax
	jge	.L6
	movl	-480(%rbp), %eax
	movl	%eax, -472(%rbp)
.L6:
	movl	-468(%rbp), %eax
	cmpl	-476(%rbp), %eax
	jge	.L7
	movl	-476(%rbp), %eax
	movl	%eax, -468(%rbp)
.L7:
	addl	$1, -476(%rbp)
	addl	$1, -460(%rbp)
.L5:
	movl	-464(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	cmpl	%eax, -460(%rbp)
	jl	.L8
	addl	$1, -464(%rbp)
	jmp	.L15
.L4:
	movl	-464(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$98, %al
	jne	.L10
	movl	-476(%rbp), %eax
	movslq	%eax, %rcx
	movl	-480(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -448(%rbp,%rax,4)
	movl	-472(%rbp), %eax
	cmpl	-480(%rbp), %eax
	jge	.L11
	movl	-480(%rbp), %eax
	movl	%eax, -472(%rbp)
.L11:
	movl	-468(%rbp), %eax
	cmpl	-476(%rbp), %eax
	jge	.L12
	movl	-476(%rbp), %eax
	movl	%eax, -468(%rbp)
.L12:
	addl	$1, -476(%rbp)
	addl	$1, -464(%rbp)
	jmp	.L15
.L10:
	movl	-464(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L29
	addl	$1, -480(%rbp)
	movl	$0, -476(%rbp)
	addl	$1, -464(%rbp)
	jmp	.L15
.L29:
	nop
	movl	-496(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-492(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -448(%rbp,%rax,4)
	movl	-488(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-484(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -448(%rbp,%rax,4)
	movl	$0, -464(%rbp)
	movl	$0, -456(%rbp)
	jmp	.L16
.L24:
	movl	-464(%rbp), %eax
	movslq	%eax, %rcx
	movl	-456(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-448(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L17
	movl	$98, %edi
	call	putchar@PLT
	addl	$1, -464(%rbp)
	jmp	.L18
.L17:
	movl	-464(%rbp), %eax
	movslq	%eax, %rcx
	movl	-456(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-448(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L18
	movl	$0, -452(%rbp)
.L20:
	addl	$1, -452(%rbp)
	movl	-464(%rbp), %eax
	cmpl	-468(%rbp), %eax
	je	.L19
	movl	-464(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movl	-456(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-448(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L19
	addl	$1, -464(%rbp)
	jmp	.L20
.L19:
	addl	$1, -464(%rbp)
	movl	-452(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L18:
	movl	-464(%rbp), %eax
	cmpl	-468(%rbp), %eax
	jle	.L24
	movl	-456(%rbp), %eax
	cmpl	-472(%rbp), %eax
	je	.L22
	movl	$47, %edi
	call	putchar@PLT
.L22:
	movl	$0, -464(%rbp)
	nop
	addl	$1, -456(%rbp)
.L16:
	movl	-472(%rbp), %eax
	cmpl	-456(%rbp), %eax
	jge	.L24
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L25
.L27:
	call	__stack_chk_fail@PLT
.L26:
	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	"%d%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	""
	.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	$496, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L25:
	leaq	-448(%rbp), %rdx
	movl	$0, %eax
	movl	$40, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movq	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movw	$0, -12(%rbp)
	movq	stdin(%rip), %rdx
	leaq	-112(%rbp), %rax
	movl	$100, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movzbl	-112(%rbp), %eax
	cmpb	$35, %al
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	jmp	.L27
.L2:
	leaq	-484(%rbp), %rsi
	leaq	-488(%rbp), %rcx
	leaq	-492(%rbp), %rdx
	leaq	-496(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	movl	$0, -480(%rbp)
	movl	$0, -476(%rbp)
	movl	$0, -472(%rbp)
	movl	$0, -468(%rbp)
	movl	$0, -464(%rbp)
.L15:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movl	-464(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L4
	movl	$0, -460(%rbp)
	jmp	.L5
.L8:
	movl	-476(%rbp), %eax
	movslq	%eax, %rcx
	movl	-480(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -448(%rbp,%rax,4)
	movl	-472(%rbp), %eax
	cmpl	-480(%rbp), %eax
	jge	.L6
	movl	-480(%rbp), %eax
	movl	%eax, -472(%rbp)
.L6:
	movl	-468(%rbp), %eax
	cmpl	-476(%rbp), %eax
	jge	.L7
	movl	-476(%rbp), %eax
	movl	%eax, -468(%rbp)
.L7:
	addl	$1, -476(%rbp)
	addl	$1, -460(%rbp)
.L5:
	movl	-464(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	cmpl	%eax, -460(%rbp)
	jl	.L8
	addl	$1, -464(%rbp)
	jmp	.L15
.L4:
	movl	-464(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$98, %al
	jne	.L10
	movl	-476(%rbp), %eax
	movslq	%eax, %rcx
	movl	-480(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -448(%rbp,%rax,4)
	movl	-472(%rbp), %eax
	cmpl	-480(%rbp), %eax
	jge	.L11
	movl	-480(%rbp), %eax
	movl	%eax, -472(%rbp)
.L11:
	movl	-468(%rbp), %eax
	cmpl	-476(%rbp), %eax
	jge	.L12
	movl	-476(%rbp), %eax
	movl	%eax, -468(%rbp)
.L12:
	addl	$1, -476(%rbp)
	addl	$1, -464(%rbp)
	jmp	.L15
.L10:
	movl	-464(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$47, %al
	jne	.L29
	addl	$1, -480(%rbp)
	movl	$0, -476(%rbp)
	addl	$1, -464(%rbp)
	jmp	.L15
.L29:
	nop
	movl	-496(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-492(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$0, -448(%rbp,%rax,4)
	movl	-488(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-484(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -448(%rbp,%rax,4)
	movl	$0, -464(%rbp)
	movl	$0, -456(%rbp)
	jmp	.L16
.L24:
	movl	-464(%rbp), %eax
	movslq	%eax, %rcx
	movl	-456(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-448(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L17
	movl	$98, %edi
	call	putchar@PLT
	addl	$1, -464(%rbp)
	jmp	.L18
.L17:
	movl	-464(%rbp), %eax
	movslq	%eax, %rcx
	movl	-456(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-448(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L18
	movl	$0, -452(%rbp)
.L20:
	addl	$1, -452(%rbp)
	movl	-464(%rbp), %eax
	cmpl	-468(%rbp), %eax
	je	.L19
	movl	-464(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rcx
	movl	-456(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-448(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L19
	addl	$1, -464(%rbp)
	jmp	.L20
.L19:
	addl	$1, -464(%rbp)
	movl	-452(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L18:
	movl	-464(%rbp), %eax
	cmpl	-468(%rbp), %eax
	jle	.L24
	movl	-456(%rbp), %eax
	cmpl	-472(%rbp), %eax
	je	.L22
	movl	$47, %edi
	call	putchar@PLT
.L22:
	movl	$0, -464(%rbp)
	nop
	addl	$1, -456(%rbp)
.L16:
	movl	-472(%rbp), %eax
	cmpl	-456(%rbp), %eax
	jge	.L24
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L25
.L27:
	call	__stack_chk_fail@PLT
.L26:
	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:
