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>
int main(){
  int h,w,i,j,k;
  scanf("%d%d",&h,&w);
  char s[h+1][w+1];
  int high[h+1][w+1],width[h+1][w+1];
  for(i=0;i<h;i++)
    scanf("%s",s[i]);
  for(i=0;i<h;i++)
    for(j=0;j<w;j++){
      high[i][j]=0;
      width[i][j]=0;
    }
  for(i=0;i<h;i++)
    for(j=0;j<w;j++){
      if(s[i][j]=='#')
        width[i][j]=0;
      else{
        int count=1;
        for(k=j+1;k<w;k++){
          if(s[i][k]!='#')
            count++;
          else
            break;
        }
        for(k=j;k<j+count;k++)
          width[i][k]=count;
        j+=count-1;
      }
    }
  for(j=0;j<w;j++)
    for(i=0;i<h;i++){
      if(s[i][j]=='#')
        high[i][j]=0;
      else{
        int count=1;
        for(k=i+1;k<h;k++){
          if(s[k][j]!='#')
            count++;
          else
            break;
        }
        for(k=i;k<i+count;k++)
          high[k][j]=count;
        i+=count-1;
      }
    }
  int max=0;
  for(i=0;i<h;i++)
    for(j=0;j<w;j++){
      if(high[i][j]==0 || width[i][j]==0){
        if(max<high[i][j]+width[i][j])
          max=high[i][j]+width[i][j];
      }
      else{
        if(max<high[i][j]+width[i][j]-1)
          max=high[i][j]+width[i][j]-1;
      }
    }
  printf("%d\n",max);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$344, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -376(%rbp)
	leaq	-156(%rbp), %rdx
	leaq	-160(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-156(%rbp), %eax
	leal	1(%rax), %esi
	movl	-160(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%esi, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movslq	%esi, %rax
	movq	%rax, -176(%rbp)
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-192(%rbp), %r8
	movq	-184(%rbp), %r9
	movq	%r9, %rdx
	movq	-208(%rbp), %r10
	movq	-200(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -112(%rbp)
	movl	-156(%rbp), %eax
	leal	1(%rax), %esi
	movl	-160(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%esi, %rax
	movq	%rax, -352(%rbp)
	movq	$0, -344(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %r12
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edi, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	-224(%rbp), %r8
	movq	-216(%rbp), %r9
	movq	%r9, %rdx
	movq	-240(%rbp), %r10
	movq	-232(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edi, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movq	-256(%rbp), %r8
	movq	-248(%rbp), %r9
	movq	%r9, %rdx
	movq	-272(%rbp), %r14
	movq	-264(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r14
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L7
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	-156(%rbp), %eax
	leal	1(%rax), %esi
	movl	-160(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%esi, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%esi, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%edi, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movq	-288(%rbp), %r10
	movq	-280(%rbp), %r11
	movq	%r11, %rdx
	movq	-304(%rbp), %r8
	movq	-296(%rbp), %r9
	imulq	%r8, %rdx
	movq	%r9, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r10, %rax
	mulq	%r8
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movslq	%edi, %rax
	movq	%rax, -336(%rbp)
	movq	$0, -328(%rbp)
	movq	-320(%rbp), %r8
	movq	-312(%rbp), %r9
	movq	%r9, %rdx
	movq	-336(%rbp), %r14
	movq	-328(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r14
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L11
.L12:
	movl	-152(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -152(%rbp)
.L11:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L12
	movl	$0, -152(%rbp)
	jmp	.L13
.L16:
	movl	$0, -148(%rbp)
	jmp	.L14
.L15:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -148(%rbp)
.L14:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L15
	addl	$1, -152(%rbp)
.L13:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L16
	movl	$0, -152(%rbp)
	jmp	.L17
.L29:
	movl	$0, -148(%rbp)
	jmp	.L18
.L28:
	movq	-112(%rbp), %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movl	-152(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L19
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L20
.L19:
	movl	$1, -140(%rbp)
	movl	-148(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -144(%rbp)
	jmp	.L21
.L25:
	movq	-112(%rbp), %rcx
	movl	-144(%rbp), %eax
	movslq	%eax, %rdx
	movl	-152(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L53
	addl	$1, -140(%rbp)
	addl	$1, -144(%rbp)
.L21:
	movl	-156(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L25
	jmp	.L24
.L53:
	nop
.L24:
	movl	-148(%rbp), %eax
	movl	%eax, -144(%rbp)
	jmp	.L26
.L27:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-140(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -144(%rbp)
.L26:
	movl	-148(%rbp), %edx
	movl	-140(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -144(%rbp)
	jl	.L27
	movl	-140(%rbp), %eax
	subl	$1, %eax
	addl	%eax, -148(%rbp)
.L20:
	addl	$1, -148(%rbp)
.L18:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L28
	addl	$1, -152(%rbp)
.L17:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L29
	movl	$0, -148(%rbp)
	jmp	.L30
.L42:
	movl	$0, -152(%rbp)
	jmp	.L31
.L41:
	movq	-112(%rbp), %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movl	-152(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L32
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L33
.L32:
	movl	$1, -136(%rbp)
	movl	-152(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -144(%rbp)
	jmp	.L34
.L38:
	movq	-112(%rbp), %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movl	-144(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L54
	addl	$1, -136(%rbp)
	addl	$1, -144(%rbp)
.L34:
	movl	-160(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L38
	jmp	.L37
.L54:
	nop
.L37:
	movl	-152(%rbp), %eax
	movl	%eax, -144(%rbp)
	jmp	.L39
.L40:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-136(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -144(%rbp)
.L39:
	movl	-152(%rbp), %edx
	movl	-136(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -144(%rbp)
	jl	.L40
	movl	-136(%rbp), %eax
	subl	$1, %eax
	addl	%eax, -152(%rbp)
.L33:
	addl	$1, -152(%rbp)
.L31:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L41
	addl	$1, -148(%rbp)
.L30:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L42
	movl	$0, -132(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L43
.L50:
	movl	$0, -148(%rbp)
	jmp	.L44
.L49:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	je	.L45
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L46
.L45:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	cmpl	%eax, -132(%rbp)
	jge	.L48
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	movl	%eax, -132(%rbp)
	jmp	.L48
.L46:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	subl	$1, %eax
	cmpl	%eax, -132(%rbp)
	jge	.L48
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	subl	$1, %eax
	movl	%eax, -132(%rbp)
.L48:
	addl	$1, -148(%rbp)
.L44:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L49
	addl	$1, -152(%rbp)
.L43:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L50
	movl	-132(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-376(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	movl	-64(%rbp), %esi
	movq	%rsp, %rdi
	leal	1(%rax), %ebx
	leal	1(%rsi), %eax
	movslq	%ebx, %rbx
	cltq
	imulq	%rbx, %rax
	leaq	15(%rax), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L3
.L83:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L83
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L84
.L4:
	leaq	0(,%rbx,4), %rdi
	leaq	15(,%rax,4), %rax
	movq	%rsp, -112(%rbp)
	movq	%rsp, %rcx
	movq	%rdi, -120(%rbp)
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L84:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L85
.L7:
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L85:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L9:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L10
	orq	$0, -8(%rsp,%rax)
.L10:
	movq	%rsp, %r13
	testl	%esi, %esi
	jle	.L11
	movq	-112(%rbp), %r14
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	addq	%rbx, %r14
	cmpl	%r15d, %eax
	jg	.L12
	movl	-60(%rbp), %edi
	movl	%eax, -92(%rbp)
	movl	%edi, -96(%rbp)
	testl	%eax, %eax
	jle	.L11
	movq	-120(%rbp), %rax
	movq	%rax, %rsi
	shrq	$2, %rsi
	movq	%rsi, -104(%rbp)
	testl	%edi, %edi
	jle	.L46
	movq	%r12, -80(%rbp)
	movslq	%edi, %r15
	xorl	%ecx, %ecx
	movq	%r13, %r14
	movq	%rbx, -72(%rbp)
	salq	$2, %r15
	movq	%rax, %rbx
	movq	%r13, -88(%rbp)
	movl	%ecx, %r13d
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%esi, %esi
	addl	$1, %r13d
	call	memset@PLT
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	addq	%rbx, %r12
	addq	%rbx, %r14
	cmpl	%r13d, -92(%rbp)
	jne	.L14
	movq	-72(%rbp), %rbx
	movq	-80(%rbp), %r12
	movl	$0, -72(%rbp)
	xorl	%r14d, %r14d
	movq	-88(%rbp), %r13
	movq	-112(%rbp), %r11
	movq	$0, -80(%rbp)
	movq	%rbx, -88(%rbp)
	movl	-96(%rbp), %r8d
	movq	%r12, -128(%rbp)
	.p2align 4,,10
	.p2align 3
.L15:
	movslq	-72(%rbp), %r9
	movq	-88(%rbp), %rbx
	xorl	%eax, %eax
	imulq	%r9, %rbx
	imulq	-104(%rbp), %r9
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L87:
	addq	%r9, %rcx
	movl	%esi, %eax
	movl	$0, 0(%r13,%rcx,4)
	cmpl	%r8d, %eax
	jge	.L86
.L27:
	movslq	%eax, %rcx
	leal	1(%rax), %esi
	leaq	(%r11,%rcx), %rdx
	movl	%esi, %edi
	cmpb	$35, (%rdx,%rbx)
	je	.L87
	cmpl	%r8d, %esi
	jge	.L47
	leaq	(%rcx,%r14), %rdi
	movl	%r8d, %r10d
	movl	$1, %edx
	addq	%r11, %rdi
	subl	%eax, %r10d
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L19:
	leal	1(%rdx), %r12d
	addq	$1, %rdi
	cmpl	%r10d, %r12d
	je	.L88
	movl	%r12d, %edx
.L21:
	cmpb	$35, 1(%rdi)
	jne	.L19
	leal	(%rax,%rdx), %edi
	movl	%edi, %r12d
.L18:
	cmpl	%eax, %edi
	jle	.L25
	movl	%edi, %r10d
	subl	%eax, %r10d
	leal	-1(%r10), %r15d
	cmpl	$2, %r15d
	jbe	.L22
	addq	-80(%rbp), %rcx
	movd	%edx, %xmm1
	leaq	0(%r13,%rcx,4), %rsi
	movl	%r10d, %ecx
	pshufd	$0, %xmm1, %xmm0
	shrl	$2, %ecx
	leal	-1(%rcx), %r15d
	leaq	16(%rsi), %rcx
	salq	$4, %r15
	addq	%rcx, %r15
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L89:
	addq	$16, %rcx
.L23:
	movups	%xmm0, (%rsi)
	movq	%rcx, %rsi
	cmpq	%r15, %rcx
	jne	.L89
	movl	%r10d, %ecx
	andl	$-4, %ecx
	addl	%ecx, %eax
	cmpl	%ecx, %r10d
	je	.L25
	leal	1(%rax), %esi
	movslq	%eax, %rcx
.L22:
	addq	%r9, %rcx
	movl	%edx, 0(%r13,%rcx,4)
	cmpl	%esi, %edi
	jle	.L25
	movslq	%esi, %rsi
	addl	$2, %eax
	addq	%r9, %rsi
	movl	%edx, 0(%r13,%rsi,4)
	cmpl	%edi, %eax
	jge	.L25
	cltq
	addq	%r9, %rax
	movl	%edx, 0(%r13,%rax,4)
.L25:
	movl	%r12d, %eax
	cmpl	%r8d, %eax
	jl	.L27
.L86:
	movl	-72(%rbp), %eax
	movq	-104(%rbp), %rbx
	addq	-88(%rbp), %r14
	addq	%rbx, -80(%rbp)
	leal	1(%rax), %r15d
	cmpl	%r15d, -92(%rbp)
	je	.L28
	movl	%r15d, -72(%rbp)
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L88:
	leal	1(%rax,%rdx), %r12d
	leal	(%r10,%rax), %edi
	movl	%r10d, %edx
	jmp	.L18
.L47:
	movl	%esi, %r12d
	movl	$1, %edx
	jmp	.L18
.L28:
	movq	-120(%rbp), %r14
	xorl	%eax, %eax
	movq	-88(%rbp), %rbx
	movq	%r13, -80(%rbp)
	movq	-128(%rbp), %r12
	movl	%eax, %r13d
	shrq	$2, %r14
	.p2align 4,,10
	.p2align 3
.L44:
	movq	-112(%rbp), %rax
	movslq	%r13d, %r11
	xorl	%edi, %edi
	leaq	(%rax,%r11), %r9
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L91:
	imulq	%r14, %rax
	movl	%ecx, %edi
	addq	%r11, %rax
	movl	$0, (%r12,%rax,4)
	cmpl	%edi, %r15d
	jle	.L90
.L36:
	movslq	%edi, %rax
	leal	1(%rdi), %ecx
	movq	%rax, %rdx
	movl	%ecx, %esi
	imulq	%rbx, %rdx
	cmpb	$35, (%r9,%rdx)
	je	.L91
	cmpl	%edi, -72(%rbp)
	jle	.L49
	movl	%r15d, %r10d
	movl	$1, %edx
	subl	%edi, %r10d
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, %edx
	cmpl	%r10d, %edx
	je	.L92
.L34:
	leal	(%rdx,%rdi), %r8d
	movslq	%r8d, %rsi
	imulq	%rbx, %rsi
	cmpb	$35, (%r9,%rsi)
	jne	.L32
	movl	%r8d, %esi
.L31:
	cmpl	%edi, %esi
	jg	.L33
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L93:
	addl	$1, %ecx
.L33:
	imulq	%r14, %rax
	addq	%r11, %rax
	movl	%edx, (%r12,%rax,4)
	movslq	%ecx, %rax
	cmpl	%ecx, %esi
	jne	.L93
.L35:
	movl	%r8d, %edi
	cmpl	%edi, %r15d
	jg	.L36
.L90:
	addl	$1, %r13d
	cmpl	-96(%rbp), %r13d
	jne	.L44
	movq	-80(%rbp), %r13
.L13:
	movl	-96(%rbp), %ebx
	movq	-120(%rbp), %r11
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	leal	-1(%rbx), %r10d
	addq	$1, %r10
	leaq	0(,%r10,4), %rdi
	negq	%r10
	salq	$2, %r10
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	(%r10,%rdi), %rax
	testl	%ebx, %ebx
	jg	.L40
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L94:
	testl	%esi, %esi
	je	.L38
	subl	$1, %edx
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addq	$4, %rax
	cmpq	%rdi, %rax
	je	.L43
.L40:
	movl	(%r12,%rax), %ecx
	movl	0(%r13,%rax), %esi
	leal	(%rsi,%rcx), %edx
	testl	%ecx, %ecx
	jne	.L94
.L38:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addq	$4, %rax
	cmpq	%rdi, %rax
	jne	.L40
.L43:
	addl	$1, %r9d
	addq	%r11, %rdi
	cmpl	%r15d, %r9d
	jne	.L37
.L41:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L95
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L92:
	.cfi_restore_state
	leal	(%r10,%rdi), %esi
	addl	$1, %r8d
	movl	%r10d, %edx
	jmp	.L31
.L49:
	movl	%ecx, %r8d
	movl	$1, %edx
	jmp	.L31
.L46:
	movl	-92(%rbp), %r15d
	jmp	.L13
.L11:
	xorl	%r8d, %r8d
	jmp	.L41
.L95:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	movl	-64(%rbp), %esi
	movq	%rsp, %rdi
	leal	1(%rax), %ebx
	leal	1(%rsi), %eax
	movslq	%ebx, %rbx
	cltq
	imulq	%rbx, %rax
	leaq	15(%rax), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L3
.L83:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L83
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L84
.L4:
	leaq	0(,%rbx,4), %rdi
	leaq	15(,%rax,4), %rax
	movq	%rsp, -112(%rbp)
	movq	%rsp, %rcx
	movq	%rdi, -120(%rbp)
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L84:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L85
.L7:
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L85:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L9:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L10
	orq	$0, -8(%rsp,%rax)
.L10:
	movq	%rsp, %r13
	testl	%esi, %esi
	jle	.L11
	movq	-112(%rbp), %r14
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	addq	%rbx, %r14
	cmpl	%r15d, %eax
	jg	.L12
	movl	-60(%rbp), %edi
	movl	%eax, -92(%rbp)
	movl	%edi, -96(%rbp)
	testl	%eax, %eax
	jle	.L11
	movq	-120(%rbp), %rax
	movq	%rax, %rsi
	shrq	$2, %rsi
	movq	%rsi, -104(%rbp)
	testl	%edi, %edi
	jle	.L46
	movq	%r12, -80(%rbp)
	movslq	%edi, %r15
	xorl	%ecx, %ecx
	movq	%r13, %r14
	movq	%rbx, -72(%rbp)
	salq	$2, %r15
	movq	%rax, %rbx
	movq	%r13, -88(%rbp)
	movl	%ecx, %r13d
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%esi, %esi
	addl	$1, %r13d
	call	memset@PLT
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%esi, %esi
	call	memset@PLT
	addq	%rbx, %r12
	addq	%rbx, %r14
	cmpl	%r13d, -92(%rbp)
	jne	.L14
	movq	-72(%rbp), %rbx
	movq	-80(%rbp), %r12
	movl	$0, -72(%rbp)
	xorl	%r14d, %r14d
	movq	-88(%rbp), %r13
	movq	-112(%rbp), %r11
	movq	$0, -80(%rbp)
	movq	%rbx, -88(%rbp)
	movl	-96(%rbp), %r8d
	movq	%r12, -128(%rbp)
	.p2align 4,,10
	.p2align 3
.L15:
	movslq	-72(%rbp), %r9
	movq	-88(%rbp), %rbx
	xorl	%eax, %eax
	imulq	%r9, %rbx
	imulq	-104(%rbp), %r9
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L87:
	addq	%r9, %rcx
	movl	%esi, %eax
	movl	$0, 0(%r13,%rcx,4)
	cmpl	%r8d, %eax
	jge	.L86
.L27:
	movslq	%eax, %rcx
	leal	1(%rax), %esi
	leaq	(%r11,%rcx), %rdx
	movl	%esi, %edi
	cmpb	$35, (%rdx,%rbx)
	je	.L87
	cmpl	%r8d, %esi
	jge	.L47
	leaq	(%rcx,%r14), %rdi
	movl	%r8d, %r10d
	movl	$1, %edx
	addq	%r11, %rdi
	subl	%eax, %r10d
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L19:
	leal	1(%rdx), %r12d
	addq	$1, %rdi
	cmpl	%r10d, %r12d
	je	.L88
	movl	%r12d, %edx
.L21:
	cmpb	$35, 1(%rdi)
	jne	.L19
	leal	(%rax,%rdx), %edi
	movl	%edi, %r12d
.L18:
	cmpl	%eax, %edi
	jle	.L25
	movl	%edi, %r10d
	subl	%eax, %r10d
	leal	-1(%r10), %r15d
	cmpl	$2, %r15d
	jbe	.L22
	addq	-80(%rbp), %rcx
	movd	%edx, %xmm1
	leaq	0(%r13,%rcx,4), %rsi
	movl	%r10d, %ecx
	pshufd	$0, %xmm1, %xmm0
	shrl	$2, %ecx
	leal	-1(%rcx), %r15d
	leaq	16(%rsi), %rcx
	salq	$4, %r15
	addq	%rcx, %r15
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L89:
	addq	$16, %rcx
.L23:
	movups	%xmm0, (%rsi)
	movq	%rcx, %rsi
	cmpq	%r15, %rcx
	jne	.L89
	movl	%r10d, %ecx
	andl	$-4, %ecx
	addl	%ecx, %eax
	cmpl	%ecx, %r10d
	je	.L25
	leal	1(%rax), %esi
	movslq	%eax, %rcx
.L22:
	addq	%r9, %rcx
	movl	%edx, 0(%r13,%rcx,4)
	cmpl	%esi, %edi
	jle	.L25
	movslq	%esi, %rsi
	addl	$2, %eax
	addq	%r9, %rsi
	movl	%edx, 0(%r13,%rsi,4)
	cmpl	%edi, %eax
	jge	.L25
	cltq
	addq	%r9, %rax
	movl	%edx, 0(%r13,%rax,4)
.L25:
	movl	%r12d, %eax
	cmpl	%r8d, %eax
	jl	.L27
.L86:
	movl	-72(%rbp), %eax
	movq	-104(%rbp), %rbx
	addq	-88(%rbp), %r14
	addq	%rbx, -80(%rbp)
	leal	1(%rax), %r15d
	cmpl	%r15d, -92(%rbp)
	je	.L28
	movl	%r15d, -72(%rbp)
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L88:
	leal	1(%rax,%rdx), %r12d
	leal	(%r10,%rax), %edi
	movl	%r10d, %edx
	jmp	.L18
.L47:
	movl	%esi, %r12d
	movl	$1, %edx
	jmp	.L18
.L28:
	movq	-120(%rbp), %r14
	xorl	%eax, %eax
	movq	-88(%rbp), %rbx
	movq	%r13, -80(%rbp)
	movq	-128(%rbp), %r12
	movl	%eax, %r13d
	shrq	$2, %r14
	.p2align 4,,10
	.p2align 3
.L44:
	movq	-112(%rbp), %rax
	movslq	%r13d, %r11
	xorl	%edi, %edi
	leaq	(%rax,%r11), %r9
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L91:
	imulq	%r14, %rax
	movl	%ecx, %edi
	addq	%r11, %rax
	movl	$0, (%r12,%rax,4)
	cmpl	%edi, %r15d
	jle	.L90
.L36:
	movslq	%edi, %rax
	leal	1(%rdi), %ecx
	movq	%rax, %rdx
	movl	%ecx, %esi
	imulq	%rbx, %rdx
	cmpb	$35, (%r9,%rdx)
	je	.L91
	cmpl	%edi, -72(%rbp)
	jle	.L49
	movl	%r15d, %r10d
	movl	$1, %edx
	subl	%edi, %r10d
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, %edx
	cmpl	%r10d, %edx
	je	.L92
.L34:
	leal	(%rdx,%rdi), %r8d
	movslq	%r8d, %rsi
	imulq	%rbx, %rsi
	cmpb	$35, (%r9,%rsi)
	jne	.L32
	movl	%r8d, %esi
.L31:
	cmpl	%edi, %esi
	jg	.L33
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L93:
	addl	$1, %ecx
.L33:
	imulq	%r14, %rax
	addq	%r11, %rax
	movl	%edx, (%r12,%rax,4)
	movslq	%ecx, %rax
	cmpl	%ecx, %esi
	jne	.L93
.L35:
	movl	%r8d, %edi
	cmpl	%edi, %r15d
	jg	.L36
.L90:
	addl	$1, %r13d
	cmpl	-96(%rbp), %r13d
	jne	.L44
	movq	-80(%rbp), %r13
.L13:
	movl	-96(%rbp), %ebx
	movq	-120(%rbp), %r11
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	leal	-1(%rbx), %r10d
	addq	$1, %r10
	leaq	0(,%r10,4), %rdi
	negq	%r10
	salq	$2, %r10
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	(%r10,%rdi), %rax
	testl	%ebx, %ebx
	jg	.L40
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L94:
	testl	%esi, %esi
	je	.L38
	subl	$1, %edx
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addq	$4, %rax
	cmpq	%rdi, %rax
	je	.L43
.L40:
	movl	(%r12,%rax), %ecx
	movl	0(%r13,%rax), %esi
	leal	(%rsi,%rcx), %edx
	testl	%ecx, %ecx
	jne	.L94
.L38:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addq	$4, %rax
	cmpq	%rdi, %rax
	jne	.L40
.L43:
	addl	$1, %r9d
	addq	%r11, %rdi
	cmpl	%r15d, %r9d
	jne	.L37
.L41:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L95
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L92:
	.cfi_restore_state
	leal	(%r10,%rdi), %esi
	addl	$1, %r8d
	movl	%r10d, %edx
	jmp	.L31
.L49:
	movl	%ecx, %r8d
	movl	$1, %edx
	jmp	.L31
.L46:
	movl	-92(%rbp), %r15d
	jmp	.L13
.L11:
	xorl	%r8d, %r8d
	jmp	.L41
.L95:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>
int main(){
  int h,w,i,j,k;
  scanf("%d%d",&h,&w);
  char s[h+1][w+1];
  int high[h+1][w+1],width[h+1][w+1];
  for(i=0;i<h;i++)
    scanf("%s",s[i]);
  for(i=0;i<h;i++)
    for(j=0;j<w;j++){
      high[i][j]=0;
      width[i][j]=0;
    }
  for(i=0;i<h;i++)
    for(j=0;j<w;j++){
      if(s[i][j]=='#')
        width[i][j]=0;
      else{
        int count=1;
        for(k=j+1;k<w;k++){
          if(s[i][k]!='#')
            count++;
          else
            break;
        }
        for(k=j;k<j+count;k++)
          width[i][k]=count;
        j+=count-1;
      }
    }
  for(j=0;j<w;j++)
    for(i=0;i<h;i++){
      if(s[i][j]=='#')
        high[i][j]=0;
      else{
        int count=1;
        for(k=i+1;k<h;k++){
          if(s[k][j]!='#')
            count++;
          else
            break;
        }
        for(k=i;k<i+count;k++)
          high[k][j]=count;
        i+=count-1;
      }
    }
  int max=0;
  for(i=0;i<h;i++)
    for(j=0;j<w;j++){
      if(high[i][j]==0 || width[i][j]==0){
        if(max<high[i][j]+width[i][j])
          max=high[i][j]+width[i][j];
      }
      else{
        if(max<high[i][j]+width[i][j]-1)
          max=high[i][j]+width[i][j]-1;
      }
    }
  printf("%d\n",max);
  return 0;
}

3 6
#..#..
.....#
....#.
#.#...
 8 8
..#...#.
....#...
......
..###..#
...#..#-
....#.
...#...
.#..#
 4 8
#..#..
.....#
....#.
#.#...
 2 6
..#..
.....#
....#.
.#...
 1 8
..#...#.
....#...
......
..###..#
...#..#.
....#.
...#...
#..#.
 4 1
..#..
#.....
./..#.
.#...
 2 8
..#...#.
....#...
......
..###..#
...#..#.
....#.
...#...
#..#.
 8 8
/#....#.
...#....
......
..###..#
...#..#.
....#.
...#..-
#..#.
 1 6
#....
.....#
.$....
.#.,.
 1 1
.#...#..
.../#...
0.....
..###..#
.#/.#...
....#.
...#...
#..#.

7
 15
 8
 6
 3
 2
 5
 15
 5
 1

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>
int main(){
  int h,w,i,j,k;
  scanf("%d%d",&h,&w);
  char s[h+1][w+1];
  int high[h+1][w+1],width[h+1][w+1];
  for(i=0;i<h;i++)
    scanf("%s",s[i]);
  for(i=0;i<h;i++)
    for(j=0;j<w;j++){
      high[i][j]=0;
      width[i][j]=0;
    }
  for(i=0;i<h;i++)
    for(j=0;j<w;j++){
      if(s[i][j]=='#')
        width[i][j]=0;
      else{
        int count=1;
        for(k=j+1;k<w;k++){
          if(s[i][k]!='#')
            count++;
          else
            break;
        }
        for(k=j;k<j+count;k++)
          width[i][k]=count;
        j+=count-1;
      }
    }
  for(j=0;j<w;j++)
    for(i=0;i<h;i++){
      if(s[i][j]=='#')
        high[i][j]=0;
      else{
        int count=1;
        for(k=i+1;k<h;k++){
          if(s[k][j]!='#')
            count++;
          else
            break;
        }
        for(k=i;k<i+count;k++)
          high[k][j]=count;
        i+=count-1;
      }
    }
  int max=0;
  for(i=0;i<h;i++)
    for(j=0;j<w;j++){
      if(high[i][j]==0 || width[i][j]==0){
        if(max<high[i][j]+width[i][j])
          max=high[i][j]+width[i][j];
      }
      else{
        if(max<high[i][j]+width[i][j]-1)
          max=high[i][j]+width[i][j]-1;
      }
    }
  printf("%d\n",max);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$344, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -376(%rbp)
	leaq	-156(%rbp), %rdx
	leaq	-160(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-156(%rbp), %eax
	leal	1(%rax), %esi
	movl	-160(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%esi, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movslq	%esi, %rax
	movq	%rax, -176(%rbp)
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-192(%rbp), %r8
	movq	-184(%rbp), %r9
	movq	%r9, %rdx
	movq	-208(%rbp), %r10
	movq	-200(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -112(%rbp)
	movl	-156(%rbp), %eax
	leal	1(%rax), %esi
	movl	-160(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%esi, %rax
	movq	%rax, -352(%rbp)
	movq	$0, -344(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %r12
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edi, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	-224(%rbp), %r8
	movq	-216(%rbp), %r9
	movq	%r9, %rdx
	movq	-240(%rbp), %r10
	movq	-232(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edi, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movq	-256(%rbp), %r8
	movq	-248(%rbp), %r9
	movq	%r9, %rdx
	movq	-272(%rbp), %r14
	movq	-264(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r14
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L7
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	-156(%rbp), %eax
	leal	1(%rax), %esi
	movl	-160(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%esi, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%esi, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%edi, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movq	-288(%rbp), %r10
	movq	-280(%rbp), %r11
	movq	%r11, %rdx
	movq	-304(%rbp), %r8
	movq	-296(%rbp), %r9
	imulq	%r8, %rdx
	movq	%r9, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r10, %rax
	mulq	%r8
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movslq	%edi, %rax
	movq	%rax, -336(%rbp)
	movq	$0, -328(%rbp)
	movq	-320(%rbp), %r8
	movq	-312(%rbp), %r9
	movq	%r9, %rdx
	movq	-336(%rbp), %r14
	movq	-328(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r14
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L11
.L12:
	movl	-152(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -152(%rbp)
.L11:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L12
	movl	$0, -152(%rbp)
	jmp	.L13
.L16:
	movl	$0, -148(%rbp)
	jmp	.L14
.L15:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -148(%rbp)
.L14:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L15
	addl	$1, -152(%rbp)
.L13:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L16
	movl	$0, -152(%rbp)
	jmp	.L17
.L29:
	movl	$0, -148(%rbp)
	jmp	.L18
.L28:
	movq	-112(%rbp), %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movl	-152(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L19
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L20
.L19:
	movl	$1, -140(%rbp)
	movl	-148(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -144(%rbp)
	jmp	.L21
.L25:
	movq	-112(%rbp), %rcx
	movl	-144(%rbp), %eax
	movslq	%eax, %rdx
	movl	-152(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L53
	addl	$1, -140(%rbp)
	addl	$1, -144(%rbp)
.L21:
	movl	-156(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L25
	jmp	.L24
.L53:
	nop
.L24:
	movl	-148(%rbp), %eax
	movl	%eax, -144(%rbp)
	jmp	.L26
.L27:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-140(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -144(%rbp)
.L26:
	movl	-148(%rbp), %edx
	movl	-140(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -144(%rbp)
	jl	.L27
	movl	-140(%rbp), %eax
	subl	$1, %eax
	addl	%eax, -148(%rbp)
.L20:
	addl	$1, -148(%rbp)
.L18:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L28
	addl	$1, -152(%rbp)
.L17:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L29
	movl	$0, -148(%rbp)
	jmp	.L30
.L42:
	movl	$0, -152(%rbp)
	jmp	.L31
.L41:
	movq	-112(%rbp), %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movl	-152(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L32
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L33
.L32:
	movl	$1, -136(%rbp)
	movl	-152(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -144(%rbp)
	jmp	.L34
.L38:
	movq	-112(%rbp), %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movl	-144(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L54
	addl	$1, -136(%rbp)
	addl	$1, -144(%rbp)
.L34:
	movl	-160(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L38
	jmp	.L37
.L54:
	nop
.L37:
	movl	-152(%rbp), %eax
	movl	%eax, -144(%rbp)
	jmp	.L39
.L40:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-136(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -144(%rbp)
.L39:
	movl	-152(%rbp), %edx
	movl	-136(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -144(%rbp)
	jl	.L40
	movl	-136(%rbp), %eax
	subl	$1, %eax
	addl	%eax, -152(%rbp)
.L33:
	addl	$1, -152(%rbp)
.L31:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L41
	addl	$1, -148(%rbp)
.L30:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L42
	movl	$0, -132(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L43
.L50:
	movl	$0, -148(%rbp)
	jmp	.L44
.L49:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	je	.L45
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L46
.L45:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	cmpl	%eax, -132(%rbp)
	jge	.L48
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	movl	%eax, -132(%rbp)
	jmp	.L48
.L46:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	subl	$1, %eax
	cmpl	%eax, -132(%rbp)
	jge	.L48
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	subl	$1, %eax
	movl	%eax, -132(%rbp)
.L48:
	addl	$1, -148(%rbp)
.L44:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L49
	addl	$1, -152(%rbp)
.L43:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L50
	movl	-132(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-376(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	"%s"
.LC2:
	.string	"%d\n"
	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$344, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -376(%rbp)
	leaq	-156(%rbp), %rdx
	leaq	-160(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-156(%rbp), %eax
	leal	1(%rax), %esi
	movl	-160(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%esi, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movslq	%esi, %rax
	movq	%rax, -176(%rbp)
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-192(%rbp), %r8
	movq	-184(%rbp), %r9
	movq	%r9, %rdx
	movq	-208(%rbp), %r10
	movq	-200(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -112(%rbp)
	movl	-156(%rbp), %eax
	leal	1(%rax), %esi
	movl	-160(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%esi, %rax
	movq	%rax, -352(%rbp)
	movq	$0, -344(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %r12
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edi, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	-224(%rbp), %r8
	movq	-216(%rbp), %r9
	movq	%r9, %rdx
	movq	-240(%rbp), %r10
	movq	-232(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edi, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movq	-256(%rbp), %r8
	movq	-248(%rbp), %r9
	movq	%r9, %rdx
	movq	-272(%rbp), %r14
	movq	-264(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r14
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L7
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	-156(%rbp), %eax
	leal	1(%rax), %esi
	movl	-160(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%esi, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%esi, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%edi, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movq	-288(%rbp), %r10
	movq	-280(%rbp), %r11
	movq	%r11, %rdx
	movq	-304(%rbp), %r8
	movq	-296(%rbp), %r9
	imulq	%r8, %rdx
	movq	%r9, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r10, %rax
	mulq	%r8
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movslq	%edi, %rax
	movq	%rax, -336(%rbp)
	movq	$0, -328(%rbp)
	movq	-320(%rbp), %r8
	movq	-312(%rbp), %r9
	movq	%r9, %rdx
	movq	-336(%rbp), %r14
	movq	-328(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r8, %rax
	mulq	%r14
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L11
.L12:
	movl	-152(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -152(%rbp)
.L11:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L12
	movl	$0, -152(%rbp)
	jmp	.L13
.L16:
	movl	$0, -148(%rbp)
	jmp	.L14
.L15:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -148(%rbp)
.L14:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L15
	addl	$1, -152(%rbp)
.L13:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L16
	movl	$0, -152(%rbp)
	jmp	.L17
.L29:
	movl	$0, -148(%rbp)
	jmp	.L18
.L28:
	movq	-112(%rbp), %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movl	-152(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L19
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L20
.L19:
	movl	$1, -140(%rbp)
	movl	-148(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -144(%rbp)
	jmp	.L21
.L25:
	movq	-112(%rbp), %rcx
	movl	-144(%rbp), %eax
	movslq	%eax, %rdx
	movl	-152(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L53
	addl	$1, -140(%rbp)
	addl	$1, -144(%rbp)
.L21:
	movl	-156(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L25
	jmp	.L24
.L53:
	nop
.L24:
	movl	-148(%rbp), %eax
	movl	%eax, -144(%rbp)
	jmp	.L26
.L27:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-140(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -144(%rbp)
.L26:
	movl	-148(%rbp), %edx
	movl	-140(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -144(%rbp)
	jl	.L27
	movl	-140(%rbp), %eax
	subl	$1, %eax
	addl	%eax, -148(%rbp)
.L20:
	addl	$1, -148(%rbp)
.L18:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L28
	addl	$1, -152(%rbp)
.L17:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L29
	movl	$0, -148(%rbp)
	jmp	.L30
.L42:
	movl	$0, -152(%rbp)
	jmp	.L31
.L41:
	movq	-112(%rbp), %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movl	-152(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L32
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L33
.L32:
	movl	$1, -136(%rbp)
	movl	-152(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -144(%rbp)
	jmp	.L34
.L38:
	movq	-112(%rbp), %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movl	-144(%rbp), %eax
	cltq
	imulq	-176(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L54
	addl	$1, -136(%rbp)
	addl	$1, -144(%rbp)
.L34:
	movl	-160(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L38
	jmp	.L37
.L54:
	nop
.L37:
	movl	-152(%rbp), %eax
	movl	%eax, -144(%rbp)
	jmp	.L39
.L40:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-136(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -144(%rbp)
.L39:
	movl	-152(%rbp), %edx
	movl	-136(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -144(%rbp)
	jl	.L40
	movl	-136(%rbp), %eax
	subl	$1, %eax
	addl	%eax, -152(%rbp)
.L33:
	addl	$1, -152(%rbp)
.L31:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L41
	addl	$1, -148(%rbp)
.L30:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L42
	movl	$0, -132(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L43
.L50:
	movl	$0, -148(%rbp)
	jmp	.L44
.L49:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	je	.L45
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L46
.L45:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	cmpl	%eax, -132(%rbp)
	jge	.L48
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	movl	%eax, -132(%rbp)
	jmp	.L48
.L46:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	subl	$1, %eax
	cmpl	%eax, -132(%rbp)
	jge	.L48
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-88(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	subl	$1, %eax
	movl	%eax, -132(%rbp)
.L48:
	addl	$1, -148(%rbp)
.L44:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L49
	addl	$1, -152(%rbp)
.L43:
	movl	-160(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L50
	movl	-132(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-376(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
