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<stdlib.h>
#include<math.h>
#include<string.h>
int main(void){
    int height,width;
    char **cell;

    scanf("%d %d",&height,&width);
    cell=(char **)malloc(sizeof(char *)*(height));
    int i;
    for(i=0;i<height;i++){
        cell[i]=(char *)malloc(sizeof(char)*width);
    }
    int j;
    for(i=0;i<height;i++){
        for(j=0;j<width;j++){
            scanf(" %c",&cell[i][j]);
        }
    }
    for(i=0;i<height;i++){
        for(j=0;j<width;j++){
            if(i==0){
                if(j==0){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i][j+1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j!=0&&j!=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i][j-1]!='#'&&cell[i][j+1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j==width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i][j-1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
            }
            else if(i!=0&&i!=height-1){
                if(j==0){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i][j+1]!='#'&&cell[i-1][j]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j!=0&&j!=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i-1][j]!='#'&&cell[i][j-1]!='#'&&cell[i][j+1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i-1][j]!='#'&&cell[i][j-1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
            }
            else if(i==height){
                if(j==0){
                    if(cell[i][j]=='#'){
                        if(cell[i][j+1]!='#'&&cell[i-1][j]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j!=0&&j!=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i-1][j]!='#'&&cell[i][j-1]!='#'&&cell[i][j+1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i-1][j]!='#'&&cell[i][j-1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
            }
        }
    }
    printf("Yes");
    free(cell);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	" %c"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L2
.L3:
	movl	-44(%rbp), %eax
	cltq
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	addl	$1, -40(%rbp)
.L2:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L3
	movl	$0, -40(%rbp)
	jmp	.L4
.L7:
	movl	$0, -36(%rbp)
	jmp	.L5
.L6:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -36(%rbp)
.L5:
	movl	-44(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L6
	addl	$1, -40(%rbp)
.L4:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L7
	movl	$0, -40(%rbp)
	jmp	.L8
.L26:
	movl	$0, -36(%rbp)
	jmp	.L9
.L25:
	cmpl	$0, -40(%rbp)
	jne	.L10
	cmpl	$0, -36(%rbp)
	jne	.L11
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L11:
	cmpl	$0, -36(%rbp)
	je	.L14
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	je	.L14
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L29
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L29
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L29
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L29
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L14:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L10:
	cmpl	$0, -40(%rbp)
	je	.L17
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -40(%rbp)
	je	.L17
	cmpl	$0, -36(%rbp)
	jne	.L18
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L30
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L18:
	cmpl	$0, -36(%rbp)
	je	.L20
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	je	.L20
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L31
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L31
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L31
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L31
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L31
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L20:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	cmpl	$0, -36(%rbp)
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L30
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L31:
	nop
	jmp	.L30
.L17:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jne	.L16
	cmpl	$0, -36(%rbp)
	jne	.L22
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L22:
	cmpl	$0, -36(%rbp)
	je	.L23
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	je	.L23
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L32
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L32
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L32
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L32
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L23:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	cmpl	$0, -36(%rbp)
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L29:
	nop
	jmp	.L16
.L30:
	nop
	jmp	.L16
.L32:
	nop
.L16:
	addl	$1, -36(%rbp)
.L9:
	movl	-44(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L25
	addl	$1, -40(%rbp)
.L8:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L26
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movl	$0, %eax
.L27:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
.LC1:
	.string	" %c"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rdi
	movq	%rdi, %rbp
	salq	$3, %rdi
	call	malloc@PLT
	movq	%rax, %r15
	testl	%ebp, %ebp
	jle	.L2
	movq	%rax, %r12
	movl	%ebp, %eax
	movslq	20(%rsp), %r14
	movq	%r15, %r13
	leaq	(%r15,%rax,8), %rax
	movq	%rax, 8(%rsp)
	movq	%r14, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rdi
	addq	$8, %r13
	call	malloc@PLT
	movq	%rax, -8(%r13)
	cmpq	%r13, 8(%rsp)
	jne	.L3
	movq	$1, 8(%rsp)
	leaq	.LC1(%rip), %r14
	testl	%ebx, %ebx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	movq	8(%rsp), %rax
	xorl	%ebp, %ebp
	movq	-8(%r15,%rax,8), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	0(%r13,%rbp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %ebx
	cmpl	%ebp, %ebx
	jg	.L5
	movl	16(%rsp), %ebp
	cmpl	8(%rsp), %ebp
	jle	.L7
	addq	$1, 8(%rsp)
	testl	%ebx, %ebx
	jg	.L8
.L7:
	testl	%ebp, %ebp
	jle	.L2
	xorl	%edi, %edi
	leal	-1(%rbp), %r9d
	leal	-1(%rbx), %r10d
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%ebx, %ebx
	jle	.L13
	xorl	%eax, %eax
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	%edi, %r9d
	je	.L57
	movq	(%r12), %rdx
	testl	%eax, %eax
	jne	.L26
	cmpb	$35, (%rdx)
	je	.L27
.L54:
	cmpl	$1, %ebx
	je	.L13
.L28:
	movq	(%r12), %rdx
	movl	$1, %eax
.L26:
	movslq	%eax, %rcx
	movzbl	(%rdx,%rcx), %esi
	cmpl	%eax, %r10d
	je	.L31
	cmpb	$35, %sil
	je	.L32
.L57:
	addl	$1, %eax
.L21:
	cmpl	%eax, %ebx
	jle	.L13
.L39:
	testl	%edi, %edi
	jne	.L10
	movq	(%r15), %rdx
	testl	%eax, %eax
	jne	.L11
	cmpb	$35, (%rdx)
	je	.L12
.L58:
	cmpl	$1, %ebx
	je	.L13
	movl	$1, %eax
.L11:
	cmpl	%r10d, %eax
	je	.L19
	movslq	%eax, %rcx
	cmpb	$35, (%rdx,%rcx)
	jne	.L57
	movq	8(%r15), %rsi
	cmpb	$35, (%rsi,%rcx)
	je	.L57
.L34:
	cmpb	$35, -1(%rdx,%rcx)
	je	.L57
	cmpb	$35, 1(%rdx,%rcx)
	je	.L57
.L15:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L61
	addq	$40, %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
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movq	8(%r12), %rax
	cmpb	$35, (%rax)
	je	.L54
	cmpb	$35, 1(%rdx)
	je	.L54
	movq	-8(%r12), %rax
	cmpb	$35, (%rax)
	jne	.L15
	cmpl	$1, %ebx
	jne	.L28
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %edi
	addq	$8, %r12
	cmpl	%edi, %ebp
	jne	.L9
.L2:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r15, %rdi
	call	free@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L19:
	cltq
	cmpb	$35, (%rdx,%rax)
	je	.L24
.L56:
	movl	%ebx, %eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L24:
	movq	8(%r15), %rcx
	cmpb	$35, (%rcx,%rax)
	je	.L56
	cmpb	$35, -1(%rdx,%rax)
	jne	.L15
	movl	%ebx, %eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L12:
	movq	8(%r15), %rax
	cmpb	$35, (%rax)
	je	.L58
	cmpb	$35, 1(%rdx)
	je	.L58
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L32:
	movq	8(%r12), %rsi
	cmpb	$35, (%rsi,%rcx)
	je	.L57
	movq	-8(%r12), %rsi
	cmpb	$35, (%rsi,%rcx)
	jne	.L34
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L31:
	cmpb	$35, %sil
	jne	.L56
	movq	8(%r12), %rax
	cmpb	$35, (%rax,%rcx)
	je	.L56
	movq	-8(%r12), %rax
	cmpb	$35, (%rax,%rcx)
	je	.L56
	cmpb	$35, -1(%rdx,%rcx)
	jne	.L15
	movl	%ebx, %eax
	jmp	.L21
.L61:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	" %c"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rdi
	movq	%rdi, %rbp
	salq	$3, %rdi
	call	malloc@PLT
	movq	%rax, %r15
	testl	%ebp, %ebp
	jle	.L2
	movq	%rax, %r12
	movl	%ebp, %eax
	movslq	20(%rsp), %r14
	movq	%r15, %r13
	leaq	(%r15,%rax,8), %rax
	movq	%rax, 8(%rsp)
	movq	%r14, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rdi
	addq	$8, %r13
	call	malloc@PLT
	movq	%rax, -8(%r13)
	cmpq	%r13, 8(%rsp)
	jne	.L3
	movq	$1, 8(%rsp)
	leaq	.LC1(%rip), %r14
	testl	%ebx, %ebx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	movq	8(%rsp), %rax
	xorl	%ebp, %ebp
	movq	-8(%r15,%rax,8), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	0(%r13,%rbp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %ebx
	cmpl	%ebp, %ebx
	jg	.L5
	movl	16(%rsp), %ebp
	cmpl	8(%rsp), %ebp
	jle	.L7
	addq	$1, 8(%rsp)
	testl	%ebx, %ebx
	jg	.L8
.L7:
	testl	%ebp, %ebp
	jle	.L2
	xorl	%edi, %edi
	leal	-1(%rbp), %r9d
	leal	-1(%rbx), %r10d
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%ebx, %ebx
	jle	.L13
	xorl	%eax, %eax
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	%edi, %r9d
	je	.L57
	movq	(%r12), %rdx
	testl	%eax, %eax
	jne	.L26
	cmpb	$35, (%rdx)
	je	.L27
.L54:
	cmpl	$1, %ebx
	je	.L13
.L28:
	movq	(%r12), %rdx
	movl	$1, %eax
.L26:
	movslq	%eax, %rcx
	movzbl	(%rdx,%rcx), %esi
	cmpl	%eax, %r10d
	je	.L31
	cmpb	$35, %sil
	je	.L32
.L57:
	addl	$1, %eax
.L21:
	cmpl	%eax, %ebx
	jle	.L13
.L39:
	testl	%edi, %edi
	jne	.L10
	movq	(%r15), %rdx
	testl	%eax, %eax
	jne	.L11
	cmpb	$35, (%rdx)
	je	.L12
.L58:
	cmpl	$1, %ebx
	je	.L13
	movl	$1, %eax
.L11:
	cmpl	%r10d, %eax
	je	.L19
	movslq	%eax, %rcx
	cmpb	$35, (%rdx,%rcx)
	jne	.L57
	movq	8(%r15), %rsi
	cmpb	$35, (%rsi,%rcx)
	je	.L57
.L34:
	cmpb	$35, -1(%rdx,%rcx)
	je	.L57
	cmpb	$35, 1(%rdx,%rcx)
	je	.L57
.L15:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L61
	addq	$40, %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
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movq	8(%r12), %rax
	cmpb	$35, (%rax)
	je	.L54
	cmpb	$35, 1(%rdx)
	je	.L54
	movq	-8(%r12), %rax
	cmpb	$35, (%rax)
	jne	.L15
	cmpl	$1, %ebx
	jne	.L28
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %edi
	addq	$8, %r12
	cmpl	%edi, %ebp
	jne	.L9
.L2:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r15, %rdi
	call	free@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L19:
	cltq
	cmpb	$35, (%rdx,%rax)
	je	.L24
.L56:
	movl	%ebx, %eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L24:
	movq	8(%r15), %rcx
	cmpb	$35, (%rcx,%rax)
	je	.L56
	cmpb	$35, -1(%rdx,%rax)
	jne	.L15
	movl	%ebx, %eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L12:
	movq	8(%r15), %rax
	cmpb	$35, (%rax)
	je	.L58
	cmpb	$35, 1(%rdx)
	je	.L58
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L32:
	movq	8(%r12), %rsi
	cmpb	$35, (%rsi,%rcx)
	je	.L57
	movq	-8(%r12), %rsi
	cmpb	$35, (%rsi,%rcx)
	jne	.L34
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L31:
	cmpb	$35, %sil
	jne	.L56
	movq	8(%r12), %rax
	cmpb	$35, (%rax,%rcx)
	je	.L56
	movq	-8(%r12), %rax
	cmpb	$35, (%rax,%rcx)
	je	.L56
	cmpb	$35, -1(%rdx,%rcx)
	jne	.L15
	movl	%ebx, %eax
	jmp	.L21
.L61:
	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:

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
int main(void){
    int height,width;
    char **cell;

    scanf("%d %d",&height,&width);
    cell=(char **)malloc(sizeof(char *)*(height));
    int i;
    for(i=0;i<height;i++){
        cell[i]=(char *)malloc(sizeof(char)*width);
    }
    int j;
    for(i=0;i<height;i++){
        for(j=0;j<width;j++){
            scanf(" %c",&cell[i][j]);
        }
    }
    for(i=0;i<height;i++){
        for(j=0;j<width;j++){
            if(i==0){
                if(j==0){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i][j+1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j!=0&&j!=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i][j-1]!='#'&&cell[i][j+1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j==width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i][j-1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
            }
            else if(i!=0&&i!=height-1){
                if(j==0){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i][j+1]!='#'&&cell[i-1][j]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j!=0&&j!=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i-1][j]!='#'&&cell[i][j-1]!='#'&&cell[i][j+1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i-1][j]!='#'&&cell[i][j-1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
            }
            else if(i==height){
                if(j==0){
                    if(cell[i][j]=='#'){
                        if(cell[i][j+1]!='#'&&cell[i-1][j]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j!=0&&j!=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i-1][j]!='#'&&cell[i][j-1]!='#'&&cell[i][j+1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i-1][j]!='#'&&cell[i][j-1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
            }
        }
    }
    printf("Yes");
    free(cell);
    return 0;
}
3 5
.#.
###
.#.
 5 5
.#.#
.#.#.
-#.#
.#.#.
.#.#
 11 11
...#####...
.##.....##.
..##.##..#
..##.##..#
.........#
...###...#
.#########.
.#.#.#.#.#.
.#.#.#.#$
..##.#.##..
.##..#..##.
 3 6
.#.
###
.#.
 11 11
...#####...
.##.....##.
..##.##..#
..##.##..#
.........#
...###...#
.#########.
.#.#.#.#.#.
.$.#.#.#$
..##.#.##..
.##..#..##.
 5 6
.#.
###
.#.
 11 11
...#####...
.##.....##.
..##.##..#
..##.##..#
.........#
...###...#
.#########.
.#...#.###.
.$.#.#.#$
..##.#.##..
.##..#..##.
 6 6
.#.
###
.#.
 11 15
...#####...
.##.....##.
..##.##..#
..##.##..#
.........#
...###...#
.#########.
.#...#.###.
.$.#.#.#$
..##.#.##..
.##..#..##.
 6 6
#..
###
.#.

No No No Yes No Yes No Yes No No
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<stdlib.h>
#include<math.h>
#include<string.h>
int main(void){
    int height,width;
    char **cell;

    scanf("%d %d",&height,&width);
    cell=(char **)malloc(sizeof(char *)*(height));
    int i;
    for(i=0;i<height;i++){
        cell[i]=(char *)malloc(sizeof(char)*width);
    }
    int j;
    for(i=0;i<height;i++){
        for(j=0;j<width;j++){
            scanf(" %c",&cell[i][j]);
        }
    }
    for(i=0;i<height;i++){
        for(j=0;j<width;j++){
            if(i==0){
                if(j==0){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i][j+1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j!=0&&j!=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i][j-1]!='#'&&cell[i][j+1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j==width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i][j-1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
            }
            else if(i!=0&&i!=height-1){
                if(j==0){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i][j+1]!='#'&&cell[i-1][j]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j!=0&&j!=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i-1][j]!='#'&&cell[i][j-1]!='#'&&cell[i][j+1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i+1][j]!='#'&&cell[i-1][j]!='#'&&cell[i][j-1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
            }
            else if(i==height){
                if(j==0){
                    if(cell[i][j]=='#'){
                        if(cell[i][j+1]!='#'&&cell[i-1][j]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j!=0&&j!=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i-1][j]!='#'&&cell[i][j-1]!='#'&&cell[i][j+1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
                else if(j=width-1){
                    if(cell[i][j]=='#'){
                        if(cell[i-1][j]!='#'&&cell[i][j-1]!='#'){
                            printf("No");
                            return 0;
                        }
                    }
                }
            }
        }
    }
    printf("Yes");
    free(cell);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	" %c"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L2
.L3:
	movl	-44(%rbp), %eax
	cltq
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	addl	$1, -40(%rbp)
.L2:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L3
	movl	$0, -40(%rbp)
	jmp	.L4
.L7:
	movl	$0, -36(%rbp)
	jmp	.L5
.L6:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -36(%rbp)
.L5:
	movl	-44(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L6
	addl	$1, -40(%rbp)
.L4:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L7
	movl	$0, -40(%rbp)
	jmp	.L8
.L26:
	movl	$0, -36(%rbp)
	jmp	.L9
.L25:
	cmpl	$0, -40(%rbp)
	jne	.L10
	cmpl	$0, -36(%rbp)
	jne	.L11
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L11:
	cmpl	$0, -36(%rbp)
	je	.L14
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	je	.L14
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L29
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L29
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L29
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L29
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L14:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L10:
	cmpl	$0, -40(%rbp)
	je	.L17
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -40(%rbp)
	je	.L17
	cmpl	$0, -36(%rbp)
	jne	.L18
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L30
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L18:
	cmpl	$0, -36(%rbp)
	je	.L20
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	je	.L20
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L31
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L31
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L31
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L31
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L31
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L20:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	cmpl	$0, -36(%rbp)
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L30
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L31:
	nop
	jmp	.L30
.L17:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jne	.L16
	cmpl	$0, -36(%rbp)
	jne	.L22
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L22:
	cmpl	$0, -36(%rbp)
	je	.L23
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	je	.L23
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L32
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L32
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L32
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L32
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L23:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	cmpl	$0, -36(%rbp)
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L29:
	nop
	jmp	.L16
.L30:
	nop
	jmp	.L16
.L32:
	nop
.L16:
	addl	$1, -36(%rbp)
.L9:
	movl	-44(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L25
	addl	$1, -40(%rbp)
.L8:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L26
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movl	$0, %eax
.L27:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
.LC1:
	.string	" %c"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L2
.L3:
	movl	-44(%rbp), %eax
	cltq
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	addl	$1, -40(%rbp)
.L2:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L3
	movl	$0, -40(%rbp)
	jmp	.L4
.L7:
	movl	$0, -36(%rbp)
	jmp	.L5
.L6:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -36(%rbp)
.L5:
	movl	-44(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L6
	addl	$1, -40(%rbp)
.L4:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L7
	movl	$0, -40(%rbp)
	jmp	.L8
.L26:
	movl	$0, -36(%rbp)
	jmp	.L9
.L25:
	cmpl	$0, -40(%rbp)
	jne	.L10
	cmpl	$0, -36(%rbp)
	jne	.L11
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L11:
	cmpl	$0, -36(%rbp)
	je	.L14
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	je	.L14
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L29
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L29
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L29
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L29
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L14:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L10:
	cmpl	$0, -40(%rbp)
	je	.L17
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -40(%rbp)
	je	.L17
	cmpl	$0, -36(%rbp)
	jne	.L18
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L30
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L18:
	cmpl	$0, -36(%rbp)
	je	.L20
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	je	.L20
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L31
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L31
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L31
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L31
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L31
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L20:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	cmpl	$0, -36(%rbp)
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L30
	movl	-40(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L30
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L31:
	nop
	jmp	.L30
.L17:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jne	.L16
	cmpl	$0, -36(%rbp)
	jne	.L22
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L22:
	cmpl	$0, -36(%rbp)
	je	.L23
	movl	-44(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	je	.L23
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L32
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L32
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L32
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L32
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L23:
	movl	-44(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	cmpl	$0, -36(%rbp)
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L16
	movl	-40(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-36(%rbp), %eax
	cltq
	subq	$1, %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L16
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L27
.L29:
	nop
	jmp	.L16
.L30:
	nop
	jmp	.L16
.L32:
	nop
.L16:
	addl	$1, -36(%rbp)
.L9:
	movl	-44(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L25
	addl	$1, -40(%rbp)
.L8:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L26
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movl	$0, %eax
.L27:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
