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>

int main(){
  int h, w;
  scanf( "%d %d", &h, &w);
  char c[h+2][w+2];
  int lr[h+2][w+2], ud[h+2][w+2];
  
  for (int i=0; i<h+2; i++) {
    for (int j=0; j<w+2; j++) {
      c[i][j] = '#';
    }
  }
  for (int i=1; i<h+1; i++) {
    char str[w+1];
    scanf("%s", str);
    for (int j=1; j<w+1; j++) {
      c[i][j] = str[j-1];
    }
  }
  for (int i=1; i<h+1; i++) {
    int cnt = 0;
    for (int j=1; j<w+1; j++) {
      if (c[i][j]=='.') {
        cnt++;
      } else {
        cnt = 0;
      }
      lr[i][j] = cnt;
    }
    cnt = 0;
    for (int j=w; j>0; j--) {
      if (lr[i][j]==0) {
        cnt = 0;
      } else if (cnt==0) {
        cnt = lr[i][j];
      } else {
        lr[i][j] = cnt;
      }
    }
  }
  for (int j=1; j<w+1; j++) {
    int cnt = 0;
    for (int i=1; i<h+1; i++) {
      if (c[i][j]=='.') {
        cnt++;
      } else {
        cnt = 0;
      }
      ud[i][j] = cnt;
    }
    cnt = 0;
    for (int i=h; i>0; i--) {
      if (ud[i][j]==0) {
        cnt = 0;
      } else if (cnt==0) {
        cnt = ud[i][j];
      } else {
        ud[i][j] = cnt;
      }
    }
  }

  int ans = 0;
  for (int i=1; i<h+1; i++) {
    for (int j=1; j<w+1; j++) {
      int cnt = lr[i][j] + ud[i][j];
      if (ans<cnt) {
        ans = cnt;
      }
    }
  }
  ans -= 1;
  printf ("%d", ans);
  
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$440, %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, -472(%rbp)
	leaq	-212(%rbp), %rdx
	leaq	-216(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-212(%rbp), %eax
	leal	2(%rax), %esi
	movl	-216(%rbp), %eax
	leal	2(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -144(%rbp)
	movslq	%esi, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%esi, %rax
	movq	%rax, -240(%rbp)
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -136(%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, -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), %r10
	movq	-264(%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, -128(%rbp)
	movl	-212(%rbp), %eax
	leal	2(%rax), %esi
	movl	-216(%rbp), %eax
	leal	2(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%esi, %rax
	movq	%rax, -416(%rbp)
	movq	$0, -408(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %r13
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -112(%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), %r8
	movq	-280(%rbp), %r9
	movq	%r9, %rdx
	movq	-304(%rbp), %r10
	movq	-296(%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, -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, %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, -104(%rbp)
	movl	-212(%rbp), %eax
	leal	2(%rax), %esi
	movl	-216(%rbp), %eax
	leal	2(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, -432(%rbp)
	movq	$0, -424(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %r12
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%esi, %rax
	movq	%rax, -352(%rbp)
	movq	$0, -344(%rbp)
	movslq	%edi, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movq	-352(%rbp), %r8
	movq	-344(%rbp), %r9
	movq	%r9, %rdx
	movq	-368(%rbp), %r10
	movq	-360(%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, -384(%rbp)
	movq	$0, -376(%rbp)
	movslq	%edi, %rax
	movq	%rax, -400(%rbp)
	movq	$0, -392(%rbp)
	movq	-384(%rbp), %r8
	movq	-376(%rbp), %r9
	movq	%r9, %rdx
	movq	-400(%rbp), %r14
	movq	-392(%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, %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, -80(%rbp)
	movl	$0, -208(%rbp)
	jmp	.L11
.L14:
	movl	$0, -204(%rbp)
	jmp	.L12
.L13:
	movq	-128(%rbp), %rcx
	movl	-204(%rbp), %eax
	movslq	%eax, %rdx
	movl	-208(%rbp), %eax
	cltq
	imulq	-240(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movb	$35, (%rax)
	addl	$1, -204(%rbp)
.L12:
	movl	-212(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -204(%rbp)
	jle	.L13
	addl	$1, -208(%rbp)
.L11:
	movl	-216(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -208(%rbp)
	jle	.L14
	movl	$1, -200(%rbp)
	jmp	.L15
.L21:
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	-212(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -448(%rbp)
	movq	$0, -440(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -464(%rbp)
	movq	$0, -456(%rbp)
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	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
.L16:
	cmpq	%rdx, %rsp
	je	.L17
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L16
.L17:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L18
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L18:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -196(%rbp)
	jmp	.L19
.L20:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	movq	-128(%rbp), %rsi
	movl	-196(%rbp), %edx
	movslq	%edx, %rcx
	movl	-200(%rbp), %edx
	movslq	%edx, %rdx
	imulq	-240(%rbp), %rdx
	addq	%rsi, %rcx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	addl	$1, -196(%rbp)
.L19:
	movl	-212(%rbp), %eax
	cmpl	%eax, -196(%rbp)
	jle	.L20
	movq	%rbx, %rsp
	addl	$1, -200(%rbp)
.L15:
	movl	-216(%rbp), %eax
	cmpl	%eax, -200(%rbp)
	jle	.L21
	movl	$1, -192(%rbp)
	jmp	.L22
.L32:
	movl	$0, -188(%rbp)
	movl	$1, -184(%rbp)
	jmp	.L23
.L26:
	movq	-128(%rbp), %rcx
	movl	-184(%rbp), %eax
	movslq	%eax, %rdx
	movl	-192(%rbp), %eax
	cltq
	imulq	-240(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L24
	addl	$1, -188(%rbp)
	jmp	.L25
.L24:
	movl	$0, -188(%rbp)
.L25:
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-184(%rbp), %edx
	movslq	%edx, %rsi
	movl	-192(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-188(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -184(%rbp)
.L23:
	movl	-212(%rbp), %eax
	cmpl	%eax, -184(%rbp)
	jle	.L26
	movl	$0, -188(%rbp)
	movl	-212(%rbp), %eax
	movl	%eax, -180(%rbp)
	jmp	.L27
.L31:
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rsi
	movl	-192(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L28
	movl	$0, -188(%rbp)
	jmp	.L29
.L28:
	cmpl	$0, -188(%rbp)
	jne	.L30
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rsi
	movl	-192(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -188(%rbp)
	jmp	.L29
.L30:
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rsi
	movl	-192(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-188(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
.L29:
	subl	$1, -180(%rbp)
.L27:
	cmpl	$0, -180(%rbp)
	jg	.L31
	addl	$1, -192(%rbp)
.L22:
	movl	-216(%rbp), %eax
	cmpl	%eax, -192(%rbp)
	jle	.L32
	movl	$1, -176(%rbp)
	jmp	.L33
.L43:
	movl	$0, -172(%rbp)
	movl	$1, -168(%rbp)
	jmp	.L34
.L37:
	movq	-128(%rbp), %rcx
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	movl	-168(%rbp), %eax
	cltq
	imulq	-240(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L35
	addl	$1, -172(%rbp)
	jmp	.L36
.L35:
	movl	$0, -172(%rbp)
.L36:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rsi
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-172(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -168(%rbp)
.L34:
	movl	-216(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jle	.L37
	movl	$0, -172(%rbp)
	movl	-216(%rbp), %eax
	movl	%eax, -164(%rbp)
	jmp	.L38
.L42:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rsi
	movl	-164(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L39
	movl	$0, -172(%rbp)
	jmp	.L40
.L39:
	cmpl	$0, -172(%rbp)
	jne	.L41
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rsi
	movl	-164(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -172(%rbp)
	jmp	.L40
.L41:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rsi
	movl	-164(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-172(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
.L40:
	subl	$1, -164(%rbp)
.L38:
	cmpl	$0, -164(%rbp)
	jg	.L42
	addl	$1, -176(%rbp)
.L33:
	movl	-212(%rbp), %eax
	cmpl	%eax, -176(%rbp)
	jle	.L43
	movl	$0, -160(%rbp)
	movl	$1, -156(%rbp)
	jmp	.L44
.L48:
	movl	$1, -152(%rbp)
	jmp	.L45
.L47:
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rsi
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdi
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	movl	%eax, -148(%rbp)
	movl	-160(%rbp), %eax
	cmpl	-148(%rbp), %eax
	jge	.L46
	movl	-148(%rbp), %eax
	movl	%eax, -160(%rbp)
.L46:
	addl	$1, -152(%rbp)
.L45:
	movl	-212(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jle	.L47
	addl	$1, -156(%rbp)
.L44:
	movl	-216(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L48
	subl	$1, -160(%rbp)
	movl	-160(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-472(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$72, %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), %r12d
	movl	-64(%rbp), %r8d
	movq	%rsp, %rsi
	leal	2(%r8), %eax
	leal	2(%r12), %r13d
	movslq	%eax, %rdx
	movslq	%r13d, %r13
	movl	%eax, %r11d
	imulq	%r13, %rdx
	leaq	15(%rdx), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L88:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L88
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L89
.L4:
	leaq	0(,%r13,4), %rax
	movq	%rsp, -72(%rbp)
	movq	%rsp, %rcx
	movq	%rax, -88(%rbp)
	leaq	15(,%rdx,4), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L89:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L90
.L7:
	movq	%rsp, -96(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L90:
	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, %rbx
	cmpl	$-1, %r8d
	jl	.L11
	movl	%r12d, %eax
	addl	$1, %eax
	js	.L11
	cltq
	movl	%r8d, -76(%rbp)
	xorl	%r15d, %r15d
	movq	-72(%rbp), %rdi
	leaq	1(%rax), %r14
	movq	%rbx, -104(%rbp)
	movl	%r15d, %ebx
	movq	%r14, %r15
	movl	%r11d, %r14d
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r15, %rdx
	movl	$35, %esi
	addl	$1, %ebx
	call	memset@PLT
	movq	%rax, %rdi
	addq	%r13, %rdi
	cmpl	%ebx, %r14d
	jne	.L13
	movl	-76(%rbp), %r8d
	movq	-104(%rbp), %rbx
.L11:
	testl	%r8d, %r8d
	jle	.L14
	movq	-72(%rbp), %rax
	movl	$1, %r15d
	leaq	1(%rax,%r13), %r14
	movl	%r12d, %eax
	.p2align 4,,10
	.p2align 3
.L21:
	addl	$1, %eax
	movq	%rsp, %rcx
	movq	%rsp, %r12
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L16
.L91:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L91
.L16:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L17
	orq	$0, -8(%rsp,%rdx)
.L17:
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rdx
	testl	%edx, %edx
	jle	.L92
	movq	%rsp, %rsi
	movq	%r14, %rdi
	addl	$1, %r15d
	addq	%r13, %r14
	call	memcpy@PLT
	movl	-64(%rbp), %r8d
	movq	%r12, %rsp
	cmpl	%r8d, %r15d
	jg	.L20
.L19:
	movl	-60(%rbp), %eax
	jmp	.L21
.L92:
	movl	-64(%rbp), %r8d
	addl	$1, %r15d
	movq	%r12, %rsp
	addq	%r13, %r14
	cmpl	%r15d, %r8d
	jge	.L19
.L20:
	movl	-60(%rbp), %r12d
	testl	%r8d, %r8d
	jle	.L14
	movq	-88(%rbp), %r9
	movslq	%r12d, %rax
	leal	-1(%r12), %r10d
	movq	-96(%rbp), %rdi
	movq	-72(%rbp), %rcx
	movl	%r8d, -104(%rbp)
	leal	1(%r8), %r14d
	leaq	0(,%rax,4), %r15
	movq	%r9, %rdx
	movl	%r10d, -76(%rbp)
	movl	$1, %r11d
	shrq	$2, %rdx
	addq	%r13, %rcx
	addq	%rax, %rdx
	subq	%r10, %rdx
	addq	$2, %r10
	leaq	-4(%rdi,%rdx,4), %rsi
	movq	%rdi, %rdx
	addq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L22:
	movl	$1, %eax
	xorl	%edi, %edi
	testl	%r12d, %r12d
	jle	.L28
.L26:
	cmpb	$46, (%rcx,%rax)
	je	.L93
.L23:
	movl	$0, (%rdx,%rax,4)
	addq	$1, %rax
	cmpq	%r10, %rax
	je	.L25
	xorl	%edi, %edi
	cmpb	$46, (%rcx,%rax)
	jne	.L23
.L93:
	addl	$1, %edi
	movl	%edi, (%rdx,%rax,4)
	addq	$1, %rax
	cmpq	%r10, %rax
	jne	.L26
.L25:
	leaq	(%rdx,%r15), %rax
	xorl	%r8d, %r8d
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L27:
	testl	%r8d, %r8d
	je	.L54
	movl	%r8d, (%rax)
.L29:
	subq	$4, %rax
	cmpq	%rsi, %rax
	je	.L28
	.p2align 4,,10
	.p2align 3
.L30:
	movl	(%rax), %edi
	testl	%edi, %edi
	jne	.L27
	subq	$4, %rax
	cmpq	%rax, %rsi
	je	.L28
	movl	(%rax), %r8d
	subq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L30
.L28:
	addl	$1, %r11d
	addq	%r9, %rsi
	addq	%r9, %rdx
	addq	%r13, %rcx
	cmpl	%r14d, %r11d
	jne	.L22
	movl	-104(%rbp), %r8d
	testl	%r12d, %r12d
	jle	.L52
.L51:
	movq	-88(%rbp), %rsi
	movl	%r12d, -76(%rbp)
	leal	1(%r12), %r15d
	movl	$1, %r14d
	movq	-72(%rbp), %r12
	leal	1(%r8), %r11d
	shrq	$2, %rsi
	.p2align 4,,10
	.p2align 3
.L33:
	testl	%r8d, %r8d
	jle	.L39
	movslq	%r14d, %rcx
	movl	$1, %edx
	xorl	%r9d, %r9d
	leaq	(%r12,%rcx), %r10
	.p2align 4,,10
	.p2align 3
.L37:
	movslq	%edx, %rax
	movq	%rax, %rdi
	imulq	%r13, %rdi
	cmpb	$46, (%r10,%rdi)
	je	.L94
	imulq	%rsi, %rax
	addl	$1, %edx
	addq	%rcx, %rax
	movl	$0, (%rbx,%rax,4)
	cmpl	%r11d, %edx
	je	.L36
	xorl	%r9d, %r9d
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L94:
	imulq	%rsi, %rax
	addl	$1, %r9d
	addl	$1, %edx
	addq	%rcx, %rax
	movl	%r9d, (%rbx,%rax,4)
	cmpl	%r11d, %edx
	jne	.L37
.L36:
	movl	%r8d, %eax
	xorl	%edi, %edi
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L38:
	testl	%edi, %edi
	je	.L55
	movl	%edi, (%rbx,%rdx,4)
.L40:
	subl	$1, %eax
	je	.L39
	.p2align 4,,10
	.p2align 3
.L41:
	movslq	%eax, %rdx
	imulq	%rsi, %rdx
	addq	%rcx, %rdx
	movl	(%rbx,%rdx,4), %r9d
	testl	%r9d, %r9d
	jne	.L38
	subl	$1, %eax
	je	.L39
	movslq	%eax, %rdx
	imulq	%rsi, %rdx
	addq	%rcx, %rdx
	movl	(%rbx,%rdx,4), %edi
	subl	$1, %eax
	jne	.L41
.L39:
	addl	$1, %r14d
	cmpl	%r15d, %r14d
	jne	.L33
	movl	-76(%rbp), %r12d
	testl	%r8d, %r8d
	jle	.L56
	leal	-1(%r12), %eax
	leal	1(%r8), %r14d
	movl	%eax, -76(%rbp)
.L52:
	movl	%r12d, %eax
	movq	-88(%rbp), %rcx
	movl	%r12d, %r11d
	movq	-96(%rbp), %r9
	shrl	$2, %eax
	andl	$-4, %r11d
	movl	$1, %r10d
	leal	-1(%rax), %edi
	movq	%rcx, %r13
	leaq	4(%rcx), %rdx
	xorl	%eax, %eax
	addq	$1, %rdi
	shrq	$2, %r13
	leal	1(%r11), %r15d
	leaq	(%r9,%rdx), %rsi
	salq	$4, %rdi
	movq	%r13, -88(%rbp)
	addq	%rbx, %rdx
	movq	%rcx, %r13
	movq	%rdi, -72(%rbp)
	movl	%r15d, -96(%rbp)
	movq	%r9, %r15
	.p2align 4,,10
	.p2align 3
.L45:
	testl	%r12d, %r12d
	jle	.L50
	cmpl	$2, -76(%rbp)
	jbe	.L57
	movd	%eax, %xmm4
	movq	-72(%rbp), %rdi
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm2
	.p2align 4,,10
	.p2align 3
.L47:
	movdqu	(%rdx,%rax), %xmm0
	movdqu	(%rsi,%rax), %xmm3
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rax, %rdi
	jne	.L47
	movdqa	%xmm2, %xmm1
	movq	%rdi, -72(%rbp)
	psrldq	$8, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %eax
	cmpl	%r11d, %r12d
	je	.L50
	movl	-96(%rbp), %ecx
.L46:
	movslq	%r10d, %r9
	imulq	-88(%rbp), %r9
	movslq	%ecx, %r8
	addq	%r9, %r8
	movl	(%rbx,%r8,4), %edi
	addl	(%r15,%r8,4), %edi
	leal	1(%rcx), %r8d
	cmpl	%edi, %eax
	cmovl	%edi, %eax
	cmpl	%r12d, %r8d
	jg	.L50
	movslq	%r8d, %r8
	addq	%r9, %r8
	movl	(%rbx,%r8,4), %edi
	addl	(%r15,%r8,4), %edi
	cmpl	%edi, %eax
	cmovl	%edi, %eax
	addl	$2, %ecx
	cmpl	%r12d, %ecx
	jg	.L50
	movslq	%ecx, %rcx
	addq	%r9, %rcx
	movl	(%rbx,%rcx,4), %r8d
	addl	(%r15,%rcx,4), %r8d
	cmpl	%r8d, %eax
	cmovl	%r8d, %eax
.L50:
	addl	$1, %r10d
	addq	%r13, %rsi
	addq	%r13, %rdx
	cmpl	%r14d, %r10d
	jne	.L45
.L44:
	leal	-1(%rax), %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	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
.L55:
	.cfi_restore_state
	movl	%r9d, %edi
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L54:
	movl	%edi, %r8d
	jmp	.L29
.L57:
	movl	$1, %ecx
	jmp	.L46
.L14:
	testl	%r12d, %r12d
	jg	.L51
.L56:
	xorl	%eax, %eax
	jmp	.L44
.L95:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$72, %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), %r12d
	movl	-64(%rbp), %r8d
	movq	%rsp, %rsi
	leal	2(%r8), %eax
	leal	2(%r12), %r13d
	movslq	%eax, %rdx
	movslq	%r13d, %r13
	movl	%eax, %r11d
	imulq	%r13, %rdx
	leaq	15(%rdx), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L88:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L88
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L89
.L4:
	leaq	0(,%r13,4), %rax
	movq	%rsp, -72(%rbp)
	movq	%rsp, %rcx
	movq	%rax, -88(%rbp)
	leaq	15(,%rdx,4), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L89:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L90
.L7:
	movq	%rsp, -96(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L90:
	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, %rbx
	cmpl	$-1, %r8d
	jl	.L11
	movl	%r12d, %eax
	addl	$1, %eax
	js	.L11
	cltq
	movl	%r8d, -76(%rbp)
	xorl	%r15d, %r15d
	movq	-72(%rbp), %rdi
	leaq	1(%rax), %r14
	movq	%rbx, -104(%rbp)
	movl	%r15d, %ebx
	movq	%r14, %r15
	movl	%r11d, %r14d
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r15, %rdx
	movl	$35, %esi
	addl	$1, %ebx
	call	memset@PLT
	movq	%rax, %rdi
	addq	%r13, %rdi
	cmpl	%ebx, %r14d
	jne	.L13
	movl	-76(%rbp), %r8d
	movq	-104(%rbp), %rbx
.L11:
	testl	%r8d, %r8d
	jle	.L14
	movq	-72(%rbp), %rax
	movl	$1, %r15d
	leaq	1(%rax,%r13), %r14
	movl	%r12d, %eax
	.p2align 4,,10
	.p2align 3
.L21:
	addl	$1, %eax
	movq	%rsp, %rcx
	movq	%rsp, %r12
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L16
.L91:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L91
.L16:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L17
	orq	$0, -8(%rsp,%rdx)
.L17:
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rdx
	testl	%edx, %edx
	jle	.L92
	movq	%rsp, %rsi
	movq	%r14, %rdi
	addl	$1, %r15d
	addq	%r13, %r14
	call	memcpy@PLT
	movl	-64(%rbp), %r8d
	movq	%r12, %rsp
	cmpl	%r8d, %r15d
	jg	.L20
.L19:
	movl	-60(%rbp), %eax
	jmp	.L21
.L92:
	movl	-64(%rbp), %r8d
	addl	$1, %r15d
	movq	%r12, %rsp
	addq	%r13, %r14
	cmpl	%r15d, %r8d
	jge	.L19
.L20:
	movl	-60(%rbp), %r12d
	testl	%r8d, %r8d
	jle	.L14
	movq	-88(%rbp), %r9
	movslq	%r12d, %rax
	leal	-1(%r12), %r10d
	movq	-96(%rbp), %rdi
	movq	-72(%rbp), %rcx
	movl	%r8d, -104(%rbp)
	leal	1(%r8), %r14d
	leaq	0(,%rax,4), %r15
	movq	%r9, %rdx
	movl	%r10d, -76(%rbp)
	movl	$1, %r11d
	shrq	$2, %rdx
	addq	%r13, %rcx
	addq	%rax, %rdx
	subq	%r10, %rdx
	addq	$2, %r10
	leaq	-4(%rdi,%rdx,4), %rsi
	movq	%rdi, %rdx
	addq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L22:
	movl	$1, %eax
	xorl	%edi, %edi
	testl	%r12d, %r12d
	jle	.L28
.L26:
	cmpb	$46, (%rcx,%rax)
	je	.L93
.L23:
	movl	$0, (%rdx,%rax,4)
	addq	$1, %rax
	cmpq	%r10, %rax
	je	.L25
	xorl	%edi, %edi
	cmpb	$46, (%rcx,%rax)
	jne	.L23
.L93:
	addl	$1, %edi
	movl	%edi, (%rdx,%rax,4)
	addq	$1, %rax
	cmpq	%r10, %rax
	jne	.L26
.L25:
	leaq	(%rdx,%r15), %rax
	xorl	%r8d, %r8d
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L27:
	testl	%r8d, %r8d
	je	.L54
	movl	%r8d, (%rax)
.L29:
	subq	$4, %rax
	cmpq	%rsi, %rax
	je	.L28
	.p2align 4,,10
	.p2align 3
.L30:
	movl	(%rax), %edi
	testl	%edi, %edi
	jne	.L27
	subq	$4, %rax
	cmpq	%rax, %rsi
	je	.L28
	movl	(%rax), %r8d
	subq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L30
.L28:
	addl	$1, %r11d
	addq	%r9, %rsi
	addq	%r9, %rdx
	addq	%r13, %rcx
	cmpl	%r14d, %r11d
	jne	.L22
	movl	-104(%rbp), %r8d
	testl	%r12d, %r12d
	jle	.L52
.L51:
	movq	-88(%rbp), %rsi
	movl	%r12d, -76(%rbp)
	leal	1(%r12), %r15d
	movl	$1, %r14d
	movq	-72(%rbp), %r12
	leal	1(%r8), %r11d
	shrq	$2, %rsi
	.p2align 4,,10
	.p2align 3
.L33:
	testl	%r8d, %r8d
	jle	.L39
	movslq	%r14d, %rcx
	movl	$1, %edx
	xorl	%r9d, %r9d
	leaq	(%r12,%rcx), %r10
	.p2align 4,,10
	.p2align 3
.L37:
	movslq	%edx, %rax
	movq	%rax, %rdi
	imulq	%r13, %rdi
	cmpb	$46, (%r10,%rdi)
	je	.L94
	imulq	%rsi, %rax
	addl	$1, %edx
	addq	%rcx, %rax
	movl	$0, (%rbx,%rax,4)
	cmpl	%r11d, %edx
	je	.L36
	xorl	%r9d, %r9d
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L94:
	imulq	%rsi, %rax
	addl	$1, %r9d
	addl	$1, %edx
	addq	%rcx, %rax
	movl	%r9d, (%rbx,%rax,4)
	cmpl	%r11d, %edx
	jne	.L37
.L36:
	movl	%r8d, %eax
	xorl	%edi, %edi
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L38:
	testl	%edi, %edi
	je	.L55
	movl	%edi, (%rbx,%rdx,4)
.L40:
	subl	$1, %eax
	je	.L39
	.p2align 4,,10
	.p2align 3
.L41:
	movslq	%eax, %rdx
	imulq	%rsi, %rdx
	addq	%rcx, %rdx
	movl	(%rbx,%rdx,4), %r9d
	testl	%r9d, %r9d
	jne	.L38
	subl	$1, %eax
	je	.L39
	movslq	%eax, %rdx
	imulq	%rsi, %rdx
	addq	%rcx, %rdx
	movl	(%rbx,%rdx,4), %edi
	subl	$1, %eax
	jne	.L41
.L39:
	addl	$1, %r14d
	cmpl	%r15d, %r14d
	jne	.L33
	movl	-76(%rbp), %r12d
	testl	%r8d, %r8d
	jle	.L56
	leal	-1(%r12), %eax
	leal	1(%r8), %r14d
	movl	%eax, -76(%rbp)
.L52:
	movl	%r12d, %eax
	movq	-88(%rbp), %rcx
	movl	%r12d, %r11d
	movq	-96(%rbp), %r9
	shrl	$2, %eax
	andl	$-4, %r11d
	movl	$1, %r10d
	leal	-1(%rax), %edi
	movq	%rcx, %r13
	leaq	4(%rcx), %rdx
	xorl	%eax, %eax
	addq	$1, %rdi
	shrq	$2, %r13
	leal	1(%r11), %r15d
	leaq	(%r9,%rdx), %rsi
	salq	$4, %rdi
	movq	%r13, -88(%rbp)
	addq	%rbx, %rdx
	movq	%rcx, %r13
	movq	%rdi, -72(%rbp)
	movl	%r15d, -96(%rbp)
	movq	%r9, %r15
	.p2align 4,,10
	.p2align 3
.L45:
	testl	%r12d, %r12d
	jle	.L50
	cmpl	$2, -76(%rbp)
	jbe	.L57
	movd	%eax, %xmm4
	movq	-72(%rbp), %rdi
	xorl	%eax, %eax
	pshufd	$0, %xmm4, %xmm2
	.p2align 4,,10
	.p2align 3
.L47:
	movdqu	(%rdx,%rax), %xmm0
	movdqu	(%rsi,%rax), %xmm3
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rax, %rdi
	jne	.L47
	movdqa	%xmm2, %xmm1
	movq	%rdi, -72(%rbp)
	psrldq	$8, %xmm1
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movd	%xmm1, %eax
	cmpl	%r11d, %r12d
	je	.L50
	movl	-96(%rbp), %ecx
.L46:
	movslq	%r10d, %r9
	imulq	-88(%rbp), %r9
	movslq	%ecx, %r8
	addq	%r9, %r8
	movl	(%rbx,%r8,4), %edi
	addl	(%r15,%r8,4), %edi
	leal	1(%rcx), %r8d
	cmpl	%edi, %eax
	cmovl	%edi, %eax
	cmpl	%r12d, %r8d
	jg	.L50
	movslq	%r8d, %r8
	addq	%r9, %r8
	movl	(%rbx,%r8,4), %edi
	addl	(%r15,%r8,4), %edi
	cmpl	%edi, %eax
	cmovl	%edi, %eax
	addl	$2, %ecx
	cmpl	%r12d, %ecx
	jg	.L50
	movslq	%ecx, %rcx
	addq	%r9, %rcx
	movl	(%rbx,%rcx,4), %r8d
	addl	(%r15,%rcx,4), %r8d
	cmpl	%r8d, %eax
	cmovl	%r8d, %eax
.L50:
	addl	$1, %r10d
	addq	%r13, %rsi
	addq	%r13, %rdx
	cmpl	%r14d, %r10d
	jne	.L45
.L44:
	leal	-1(%rax), %edx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	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
.L55:
	.cfi_restore_state
	movl	%r9d, %edi
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L54:
	movl	%edi, %r8d
	jmp	.L29
.L57:
	movl	$1, %ecx
	jmp	.L46
.L14:
	testl	%r12d, %r12d
	jg	.L51
.L56:
	xorl	%eax, %eax
	jmp	.L44
.L95:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main(){
  int h, w;
  scanf( "%d %d", &h, &w);
  char c[h+2][w+2];
  int lr[h+2][w+2], ud[h+2][w+2];
  
  for (int i=0; i<h+2; i++) {
    for (int j=0; j<w+2; j++) {
      c[i][j] = '#';
    }
  }
  for (int i=1; i<h+1; i++) {
    char str[w+1];
    scanf("%s", str);
    for (int j=1; j<w+1; j++) {
      c[i][j] = str[j-1];
    }
  }
  for (int i=1; i<h+1; i++) {
    int cnt = 0;
    for (int j=1; j<w+1; j++) {
      if (c[i][j]=='.') {
        cnt++;
      } else {
        cnt = 0;
      }
      lr[i][j] = cnt;
    }
    cnt = 0;
    for (int j=w; j>0; j--) {
      if (lr[i][j]==0) {
        cnt = 0;
      } else if (cnt==0) {
        cnt = lr[i][j];
      } else {
        lr[i][j] = cnt;
      }
    }
  }
  for (int j=1; j<w+1; j++) {
    int cnt = 0;
    for (int i=1; i<h+1; i++) {
      if (c[i][j]=='.') {
        cnt++;
      } else {
        cnt = 0;
      }
      ud[i][j] = cnt;
    }
    cnt = 0;
    for (int i=h; i>0; i--) {
      if (ud[i][j]==0) {
        cnt = 0;
      } else if (cnt==0) {
        cnt = ud[i][j];
      } else {
        ud[i][j] = cnt;
      }
    }
  }

  int ans = 0;
  for (int i=1; i<h+1; i++) {
    for (int j=1; j<w+1; j++) {
      int cnt = lr[i][j] + ud[i][j];
      if (ans<cnt) {
        ans = cnt;
      }
    }
  }
  ans -= 1;
  printf ("%d", ans);
  
  return 0;
}
3 6
#..#..
.....#
....#.
#.#...
 8 8
..#...#.
....#...
......
..###..#
...#..#-
....#.
...#...
.#..#
 4 8
#..#..
.....#
....#.
#.#...
 2 6
..#..
.....#
....#.
.#...
 1 8
..#...#.
....#...
......
..###..#
...#..#.
....#.
...#...
#..#.
 4 1
..#..
#.....
./..#.
.#...
 2 8
..#...#.
....#...
......
..###..#
...#..#.
....#.
...#...
#..#.
 8 8
/#....#.
...#....
......
..###..#
...#..#.
....#.
...#..-
#..#.
 1 6
#....
.....#
.$....
.#.,.
 1 1
.#...#..
.../#...
0.....
..###..#
.#/.#...
....#.
...#...
#..#.

7 13 8 6 3 2 5 12 4 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>

int main(){
  int h, w;
  scanf( "%d %d", &h, &w);
  char c[h+2][w+2];
  int lr[h+2][w+2], ud[h+2][w+2];
  
  for (int i=0; i<h+2; i++) {
    for (int j=0; j<w+2; j++) {
      c[i][j] = '#';
    }
  }
  for (int i=1; i<h+1; i++) {
    char str[w+1];
    scanf("%s", str);
    for (int j=1; j<w+1; j++) {
      c[i][j] = str[j-1];
    }
  }
  for (int i=1; i<h+1; i++) {
    int cnt = 0;
    for (int j=1; j<w+1; j++) {
      if (c[i][j]=='.') {
        cnt++;
      } else {
        cnt = 0;
      }
      lr[i][j] = cnt;
    }
    cnt = 0;
    for (int j=w; j>0; j--) {
      if (lr[i][j]==0) {
        cnt = 0;
      } else if (cnt==0) {
        cnt = lr[i][j];
      } else {
        lr[i][j] = cnt;
      }
    }
  }
  for (int j=1; j<w+1; j++) {
    int cnt = 0;
    for (int i=1; i<h+1; i++) {
      if (c[i][j]=='.') {
        cnt++;
      } else {
        cnt = 0;
      }
      ud[i][j] = cnt;
    }
    cnt = 0;
    for (int i=h; i>0; i--) {
      if (ud[i][j]==0) {
        cnt = 0;
      } else if (cnt==0) {
        cnt = ud[i][j];
      } else {
        ud[i][j] = cnt;
      }
    }
  }

  int ans = 0;
  for (int i=1; i<h+1; i++) {
    for (int j=1; j<w+1; j++) {
      int cnt = lr[i][j] + ud[i][j];
      if (ans<cnt) {
        ans = cnt;
      }
    }
  }
  ans -= 1;
  printf ("%d", ans);
  
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$440, %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, -472(%rbp)
	leaq	-212(%rbp), %rdx
	leaq	-216(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-212(%rbp), %eax
	leal	2(%rax), %esi
	movl	-216(%rbp), %eax
	leal	2(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -144(%rbp)
	movslq	%esi, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%esi, %rax
	movq	%rax, -240(%rbp)
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -136(%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, -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), %r10
	movq	-264(%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, -128(%rbp)
	movl	-212(%rbp), %eax
	leal	2(%rax), %esi
	movl	-216(%rbp), %eax
	leal	2(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%esi, %rax
	movq	%rax, -416(%rbp)
	movq	$0, -408(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %r13
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -112(%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), %r8
	movq	-280(%rbp), %r9
	movq	%r9, %rdx
	movq	-304(%rbp), %r10
	movq	-296(%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, -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, %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, -104(%rbp)
	movl	-212(%rbp), %eax
	leal	2(%rax), %esi
	movl	-216(%rbp), %eax
	leal	2(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, -432(%rbp)
	movq	$0, -424(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %r12
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%esi, %rax
	movq	%rax, -352(%rbp)
	movq	$0, -344(%rbp)
	movslq	%edi, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movq	-352(%rbp), %r8
	movq	-344(%rbp), %r9
	movq	%r9, %rdx
	movq	-368(%rbp), %r10
	movq	-360(%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, -384(%rbp)
	movq	$0, -376(%rbp)
	movslq	%edi, %rax
	movq	%rax, -400(%rbp)
	movq	$0, -392(%rbp)
	movq	-384(%rbp), %r8
	movq	-376(%rbp), %r9
	movq	%r9, %rdx
	movq	-400(%rbp), %r14
	movq	-392(%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, %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, -80(%rbp)
	movl	$0, -208(%rbp)
	jmp	.L11
.L14:
	movl	$0, -204(%rbp)
	jmp	.L12
.L13:
	movq	-128(%rbp), %rcx
	movl	-204(%rbp), %eax
	movslq	%eax, %rdx
	movl	-208(%rbp), %eax
	cltq
	imulq	-240(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movb	$35, (%rax)
	addl	$1, -204(%rbp)
.L12:
	movl	-212(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -204(%rbp)
	jle	.L13
	addl	$1, -208(%rbp)
.L11:
	movl	-216(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -208(%rbp)
	jle	.L14
	movl	$1, -200(%rbp)
	jmp	.L15
.L21:
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	-212(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -448(%rbp)
	movq	$0, -440(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -464(%rbp)
	movq	$0, -456(%rbp)
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	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
.L16:
	cmpq	%rdx, %rsp
	je	.L17
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L16
.L17:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L18
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L18:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -196(%rbp)
	jmp	.L19
.L20:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	movq	-128(%rbp), %rsi
	movl	-196(%rbp), %edx
	movslq	%edx, %rcx
	movl	-200(%rbp), %edx
	movslq	%edx, %rdx
	imulq	-240(%rbp), %rdx
	addq	%rsi, %rcx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	addl	$1, -196(%rbp)
.L19:
	movl	-212(%rbp), %eax
	cmpl	%eax, -196(%rbp)
	jle	.L20
	movq	%rbx, %rsp
	addl	$1, -200(%rbp)
.L15:
	movl	-216(%rbp), %eax
	cmpl	%eax, -200(%rbp)
	jle	.L21
	movl	$1, -192(%rbp)
	jmp	.L22
.L32:
	movl	$0, -188(%rbp)
	movl	$1, -184(%rbp)
	jmp	.L23
.L26:
	movq	-128(%rbp), %rcx
	movl	-184(%rbp), %eax
	movslq	%eax, %rdx
	movl	-192(%rbp), %eax
	cltq
	imulq	-240(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L24
	addl	$1, -188(%rbp)
	jmp	.L25
.L24:
	movl	$0, -188(%rbp)
.L25:
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-184(%rbp), %edx
	movslq	%edx, %rsi
	movl	-192(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-188(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -184(%rbp)
.L23:
	movl	-212(%rbp), %eax
	cmpl	%eax, -184(%rbp)
	jle	.L26
	movl	$0, -188(%rbp)
	movl	-212(%rbp), %eax
	movl	%eax, -180(%rbp)
	jmp	.L27
.L31:
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rsi
	movl	-192(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L28
	movl	$0, -188(%rbp)
	jmp	.L29
.L28:
	cmpl	$0, -188(%rbp)
	jne	.L30
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rsi
	movl	-192(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -188(%rbp)
	jmp	.L29
.L30:
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rsi
	movl	-192(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-188(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
.L29:
	subl	$1, -180(%rbp)
.L27:
	cmpl	$0, -180(%rbp)
	jg	.L31
	addl	$1, -192(%rbp)
.L22:
	movl	-216(%rbp), %eax
	cmpl	%eax, -192(%rbp)
	jle	.L32
	movl	$1, -176(%rbp)
	jmp	.L33
.L43:
	movl	$0, -172(%rbp)
	movl	$1, -168(%rbp)
	jmp	.L34
.L37:
	movq	-128(%rbp), %rcx
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	movl	-168(%rbp), %eax
	cltq
	imulq	-240(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L35
	addl	$1, -172(%rbp)
	jmp	.L36
.L35:
	movl	$0, -172(%rbp)
.L36:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rsi
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-172(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -168(%rbp)
.L34:
	movl	-216(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jle	.L37
	movl	$0, -172(%rbp)
	movl	-216(%rbp), %eax
	movl	%eax, -164(%rbp)
	jmp	.L38
.L42:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rsi
	movl	-164(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L39
	movl	$0, -172(%rbp)
	jmp	.L40
.L39:
	cmpl	$0, -172(%rbp)
	jne	.L41
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rsi
	movl	-164(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -172(%rbp)
	jmp	.L40
.L41:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rsi
	movl	-164(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-172(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
.L40:
	subl	$1, -164(%rbp)
.L38:
	cmpl	$0, -164(%rbp)
	jg	.L42
	addl	$1, -176(%rbp)
.L33:
	movl	-212(%rbp), %eax
	cmpl	%eax, -176(%rbp)
	jle	.L43
	movl	$0, -160(%rbp)
	movl	$1, -156(%rbp)
	jmp	.L44
.L48:
	movl	$1, -152(%rbp)
	jmp	.L45
.L47:
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rsi
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdi
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	movl	%eax, -148(%rbp)
	movl	-160(%rbp), %eax
	cmpl	-148(%rbp), %eax
	jge	.L46
	movl	-148(%rbp), %eax
	movl	%eax, -160(%rbp)
.L46:
	addl	$1, -152(%rbp)
.L45:
	movl	-212(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jle	.L47
	addl	$1, -156(%rbp)
.L44:
	movl	-216(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L48
	subl	$1, -160(%rbp)
	movl	-160(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-472(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$440, %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, -472(%rbp)
	leaq	-212(%rbp), %rdx
	leaq	-216(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-212(%rbp), %eax
	leal	2(%rax), %esi
	movl	-216(%rbp), %eax
	leal	2(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -144(%rbp)
	movslq	%esi, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%esi, %rax
	movq	%rax, -240(%rbp)
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -136(%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, -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), %r10
	movq	-264(%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, -128(%rbp)
	movl	-212(%rbp), %eax
	leal	2(%rax), %esi
	movl	-216(%rbp), %eax
	leal	2(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%esi, %rax
	movq	%rax, -416(%rbp)
	movq	$0, -408(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %r13
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -112(%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), %r8
	movq	-280(%rbp), %r9
	movq	%r9, %rdx
	movq	-304(%rbp), %r10
	movq	-296(%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, -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, %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, -104(%rbp)
	movl	-212(%rbp), %eax
	leal	2(%rax), %esi
	movl	-216(%rbp), %eax
	leal	2(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, -432(%rbp)
	movq	$0, -424(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %r12
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%esi, %rax
	movq	%rax, -352(%rbp)
	movq	$0, -344(%rbp)
	movslq	%edi, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movq	-352(%rbp), %r8
	movq	-344(%rbp), %r9
	movq	%r9, %rdx
	movq	-368(%rbp), %r10
	movq	-360(%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, -384(%rbp)
	movq	$0, -376(%rbp)
	movslq	%edi, %rax
	movq	%rax, -400(%rbp)
	movq	$0, -392(%rbp)
	movq	-384(%rbp), %r8
	movq	-376(%rbp), %r9
	movq	%r9, %rdx
	movq	-400(%rbp), %r14
	movq	-392(%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, %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, -80(%rbp)
	movl	$0, -208(%rbp)
	jmp	.L11
.L14:
	movl	$0, -204(%rbp)
	jmp	.L12
.L13:
	movq	-128(%rbp), %rcx
	movl	-204(%rbp), %eax
	movslq	%eax, %rdx
	movl	-208(%rbp), %eax
	cltq
	imulq	-240(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movb	$35, (%rax)
	addl	$1, -204(%rbp)
.L12:
	movl	-212(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -204(%rbp)
	jle	.L13
	addl	$1, -208(%rbp)
.L11:
	movl	-216(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -208(%rbp)
	jle	.L14
	movl	$1, -200(%rbp)
	jmp	.L15
.L21:
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	-212(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -448(%rbp)
	movq	$0, -440(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -464(%rbp)
	movq	$0, -456(%rbp)
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	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
.L16:
	cmpq	%rdx, %rsp
	je	.L17
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L16
.L17:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L18
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L18:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -196(%rbp)
	jmp	.L19
.L20:
	movl	-196(%rbp), %eax
	subl	$1, %eax
	movq	-64(%rbp), %rdx
	cltq
	movzbl	(%rdx,%rax), %eax
	movq	-128(%rbp), %rsi
	movl	-196(%rbp), %edx
	movslq	%edx, %rcx
	movl	-200(%rbp), %edx
	movslq	%edx, %rdx
	imulq	-240(%rbp), %rdx
	addq	%rsi, %rcx
	addq	%rcx, %rdx
	movb	%al, (%rdx)
	addl	$1, -196(%rbp)
.L19:
	movl	-212(%rbp), %eax
	cmpl	%eax, -196(%rbp)
	jle	.L20
	movq	%rbx, %rsp
	addl	$1, -200(%rbp)
.L15:
	movl	-216(%rbp), %eax
	cmpl	%eax, -200(%rbp)
	jle	.L21
	movl	$1, -192(%rbp)
	jmp	.L22
.L32:
	movl	$0, -188(%rbp)
	movl	$1, -184(%rbp)
	jmp	.L23
.L26:
	movq	-128(%rbp), %rcx
	movl	-184(%rbp), %eax
	movslq	%eax, %rdx
	movl	-192(%rbp), %eax
	cltq
	imulq	-240(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L24
	addl	$1, -188(%rbp)
	jmp	.L25
.L24:
	movl	$0, -188(%rbp)
.L25:
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-184(%rbp), %edx
	movslq	%edx, %rsi
	movl	-192(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-188(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -184(%rbp)
.L23:
	movl	-212(%rbp), %eax
	cmpl	%eax, -184(%rbp)
	jle	.L26
	movl	$0, -188(%rbp)
	movl	-212(%rbp), %eax
	movl	%eax, -180(%rbp)
	jmp	.L27
.L31:
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rsi
	movl	-192(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L28
	movl	$0, -188(%rbp)
	jmp	.L29
.L28:
	cmpl	$0, -188(%rbp)
	jne	.L30
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rsi
	movl	-192(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -188(%rbp)
	jmp	.L29
.L30:
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-180(%rbp), %edx
	movslq	%edx, %rsi
	movl	-192(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-188(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
.L29:
	subl	$1, -180(%rbp)
.L27:
	cmpl	$0, -180(%rbp)
	jg	.L31
	addl	$1, -192(%rbp)
.L22:
	movl	-216(%rbp), %eax
	cmpl	%eax, -192(%rbp)
	jle	.L32
	movl	$1, -176(%rbp)
	jmp	.L33
.L43:
	movl	$0, -172(%rbp)
	movl	$1, -168(%rbp)
	jmp	.L34
.L37:
	movq	-128(%rbp), %rcx
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	movl	-168(%rbp), %eax
	cltq
	imulq	-240(%rbp), %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$46, %al
	jne	.L35
	addl	$1, -172(%rbp)
	jmp	.L36
.L35:
	movl	$0, -172(%rbp)
.L36:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rsi
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-172(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -168(%rbp)
.L34:
	movl	-216(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jle	.L37
	movl	$0, -172(%rbp)
	movl	-216(%rbp), %eax
	movl	%eax, -164(%rbp)
	jmp	.L38
.L42:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rsi
	movl	-164(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L39
	movl	$0, -172(%rbp)
	jmp	.L40
.L39:
	cmpl	$0, -172(%rbp)
	jne	.L41
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rsi
	movl	-164(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -172(%rbp)
	jmp	.L40
.L41:
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-176(%rbp), %edx
	movslq	%edx, %rsi
	movl	-164(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-172(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
.L40:
	subl	$1, -164(%rbp)
.L38:
	cmpl	$0, -164(%rbp)
	jg	.L42
	addl	$1, -176(%rbp)
.L33:
	movl	-212(%rbp), %eax
	cmpl	%eax, -176(%rbp)
	jle	.L43
	movl	$0, -160(%rbp)
	movl	$1, -156(%rbp)
	jmp	.L44
.L48:
	movl	$1, -152(%rbp)
	jmp	.L45
.L47:
	movq	%r13, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rsi
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%r12, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdi
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%esi, %eax
	movl	%eax, -148(%rbp)
	movl	-160(%rbp), %eax
	cmpl	-148(%rbp), %eax
	jge	.L46
	movl	-148(%rbp), %eax
	movl	%eax, -160(%rbp)
.L46:
	addl	$1, -152(%rbp)
.L45:
	movl	-212(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jle	.L47
	addl	$1, -156(%rbp)
.L44:
	movl	-216(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L48
	subl	$1, -160(%rbp)
	movl	-160(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-472(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
