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 input_d, input_w;
  int input_e[10][10];
  int okuyuki, haba;
  int moving_yoko, moving_tate;
  int counter_i, counter_j;

  for( ; ; )
  {
    int in_max_height = 0, out_min_height = 9;
    int sum_deepth = 0, max_deepth = 0;

    scanf("%d %d", &input_d, &input_w);
    if(input_d == 0 && input_w == 0)
      break;

    for(counter_i = 0 ; counter_i < input_d ; counter_i++)
    {
      for(counter_j = 0 ; counter_j < input_w ; counter_j++)
        scanf("%d", &input_e[counter_i][counter_j]);
    }

    for(okuyuki = 0 ; okuyuki <= input_d - 3 ; okuyuki++)
    {
      for(haba = 0 ; haba <= input_w - 3 ; haba++)
      {
        for(moving_tate = 0 ; moving_tate <= input_d - 3 - okuyuki ; moving_tate++)
        {
          for(moving_yoko = 0 ; moving_yoko <= input_w - 3 - haba ; moving_yoko++)
          {
            for(counter_i = moving_tate ; counter_i <= okuyuki + 2 + moving_tate ; counter_i++)
            {
              for(counter_j = moving_yoko ; counter_j <= haba + 2 + moving_yoko ; counter_j++)
              {
                if(moving_tate < counter_i && counter_i < okuyuki + 2 + moving_tate)
                {
                  if(moving_yoko < counter_j && counter_j < haba + 2 + moving_yoko)
                  {
                    if(in_max_height < input_e[counter_i][counter_j])
                    {
                      in_max_height = input_e[counter_i][counter_j];
                    }
                  }
                  else
                  {
                    if(out_min_height > input_e[counter_i][counter_j])
                    {
                      out_min_height = input_e[counter_i][counter_j];
                    }
                  }
                }
                else
                {
                  if(out_min_height > input_e[counter_i][counter_j])
                  {
                    out_min_height = input_e[counter_i][counter_j];
                  }
                }
              }
            }
            if(out_min_height <= in_max_height)
            {
              in_max_height = 0;
              out_min_height = 9;
              continue;
            }
            for(counter_i = moving_tate + 1 ; counter_i < okuyuki + 2 + moving_tate ; counter_i++)
            {
              for(counter_j = moving_yoko + 1 ; counter_j < haba + 2 + moving_yoko ; counter_j++)
              {
                sum_deepth = sum_deepth + (out_min_height - input_e[counter_i][counter_j]);
              }
            }
            if(max_deepth < sum_deepth)
            {
              max_deepth = sum_deepth;
            }
            sum_deepth = 0;
          }
        }
      }
    }

    printf("%d\n", max_deepth);
  }
  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$464, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L32:
	movl	$0, -432(%rbp)
	movl	$9, -428(%rbp)
	movl	$0, -424(%rbp)
	movl	$0, -420(%rbp)
	leaq	-460(%rbp), %rdx
	leaq	-464(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-464(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-460(%rbp), %eax
	testl	%eax, %eax
	je	.L36
.L2:
	movl	$0, -440(%rbp)
	jmp	.L4
.L7:
	movl	$0, -436(%rbp)
	jmp	.L5
.L6:
	leaq	-416(%rbp), %rcx
	movl	-436(%rbp), %eax
	movslq	%eax, %rsi
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -436(%rbp)
.L5:
	movl	-460(%rbp), %eax
	cmpl	%eax, -436(%rbp)
	jl	.L6
	addl	$1, -440(%rbp)
.L4:
	movl	-464(%rbp), %eax
	cmpl	%eax, -440(%rbp)
	jl	.L7
	movl	$0, -456(%rbp)
	jmp	.L8
.L31:
	movl	$0, -452(%rbp)
	jmp	.L9
.L30:
	movl	$0, -444(%rbp)
	jmp	.L10
.L29:
	movl	$0, -448(%rbp)
	jmp	.L11
.L28:
	movl	-444(%rbp), %eax
	movl	%eax, -440(%rbp)
	jmp	.L12
.L20:
	movl	-448(%rbp), %eax
	movl	%eax, -436(%rbp)
	jmp	.L13
.L19:
	movl	-444(%rbp), %eax
	cmpl	-440(%rbp), %eax
	jge	.L14
	movl	-456(%rbp), %eax
	leal	2(%rax), %edx
	movl	-444(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -440(%rbp)
	jge	.L14
	movl	-448(%rbp), %eax
	cmpl	-436(%rbp), %eax
	jge	.L15
	movl	-452(%rbp), %eax
	leal	2(%rax), %edx
	movl	-448(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -436(%rbp)
	jge	.L15
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, -432(%rbp)
	jge	.L17
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, -432(%rbp)
	jmp	.L17
.L15:
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L37
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, -428(%rbp)
	jmp	.L37
.L17:
	jmp	.L37
.L14:
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L18
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, -428(%rbp)
	jmp	.L18
.L37:
	nop
.L18:
	addl	$1, -436(%rbp)
.L13:
	movl	-452(%rbp), %eax
	leal	2(%rax), %edx
	movl	-448(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -436(%rbp)
	jle	.L19
	addl	$1, -440(%rbp)
.L12:
	movl	-456(%rbp), %eax
	leal	2(%rax), %edx
	movl	-444(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -440(%rbp)
	jle	.L20
	movl	-428(%rbp), %eax
	cmpl	-432(%rbp), %eax
	jg	.L21
	movl	$0, -432(%rbp)
	movl	$9, -428(%rbp)
	jmp	.L22
.L21:
	movl	-444(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -440(%rbp)
	jmp	.L23
.L26:
	movl	-448(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -436(%rbp)
	jmp	.L24
.L25:
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %edx
	movl	-428(%rbp), %eax
	subl	%edx, %eax
	addl	%eax, -424(%rbp)
	addl	$1, -436(%rbp)
.L24:
	movl	-452(%rbp), %eax
	leal	2(%rax), %edx
	movl	-448(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -436(%rbp)
	jl	.L25
	addl	$1, -440(%rbp)
.L23:
	movl	-456(%rbp), %eax
	leal	2(%rax), %edx
	movl	-444(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -440(%rbp)
	jl	.L26
	movl	-420(%rbp), %eax
	cmpl	-424(%rbp), %eax
	jge	.L27
	movl	-424(%rbp), %eax
	movl	%eax, -420(%rbp)
.L27:
	movl	$0, -424(%rbp)
.L22:
	addl	$1, -448(%rbp)
.L11:
	movl	-460(%rbp), %eax
	subl	$3, %eax
	subl	-452(%rbp), %eax
	cmpl	%eax, -448(%rbp)
	jle	.L28
	addl	$1, -444(%rbp)
.L10:
	movl	-464(%rbp), %eax
	subl	$3, %eax
	subl	-456(%rbp), %eax
	cmpl	%eax, -444(%rbp)
	jle	.L29
	addl	$1, -452(%rbp)
.L9:
	movl	-460(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -452(%rbp)
	jl	.L30
	addl	$1, -456(%rbp)
.L8:
	movl	-464(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -456(%rbp)
	jl	.L31
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L32
.L36:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$680, %rsp
	.cfi_def_cfa_offset 736
	movq	%fs:40, %rax
	movq	%rax, 664(%rsp)
	xorl	%eax, %eax
	leaq	252(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	248(%rsp), %rax
	movq	%rax, 208(%rsp)
	jmp	.L54
.L2:
	movl	252(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L80
.L6:
	movl	148(%rsp), %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L54:
	movq	216(%rsp), %rdx
	movq	208(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	248(%rsp), %eax
	movl	%eax, 148(%rsp)
	testl	%eax, %eax
	je	.L2
	jle	.L3
	movl	252(%rsp), %eax
	xorl	%ebp, %ebp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	testl	%eax, %eax
	jle	.L3
.L9:
	leaq	256(%rsp,%rbp,4), %r13
	xorl	%r12d, %r12d
.L7:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	252(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L7
	movl	248(%rsp), %edi
	addl	$1, %ebx
	movl	%edi, 148(%rsp)
	cmpl	%ebx, %edi
	jle	.L3
	addq	$10, %rbp
	testl	%eax, %eax
	jg	.L9
.L3:
	movl	148(%rsp), %eax
	cmpl	$2, %eax
	jle	.L58
	movl	252(%rsp), %ebx
	movl	%eax, 200(%rsp)
	leaq	256(%rsp), %rax
	movl	$9, %r15d
	movl	$2, 172(%rsp)
	movl	%r15d, %r14d
	movl	%ebx, 176(%rsp)
	movl	$0, 148(%rsp)
	movl	$0, 56(%rsp)
	movq	%rax, 232(%rsp)
.L11:
	cmpl	$2, 176(%rsp)
	jle	.L81
	movl	200(%rsp), %ebx
	movl	$2, %r15d
	movl	$3, 16(%rsp)
	leal	-1(%rbx), %eax
	movl	%eax, %edi
	movl	172(%rsp), %eax
	subl	%eax, %edi
	subl	%eax, %ebx
	movl	%edi, 224(%rsp)
	leal	1(%rax), %edi
	movl	%r15d, %eax
	movl	%r14d, %r15d
	movl	%edi, 180(%rsp)
	movl	%eax, %r14d
	movl	%ebx, 228(%rsp)
.L52:
	movl	224(%rsp), %edx
	testl	%edx, %edx
	js	.L12
	movl	176(%rsp), %edi
	movl	16(%rsp), %eax
	movq	$0, 192(%rsp)
	movl	180(%rsp), %r13d
	movl	%r14d, 108(%rsp)
	movl	%edi, %ebx
	subl	%r14d, %edi
	movl	172(%rsp), %r12d
	movq	$0, 184(%rsp)
	subl	%eax, %ebx
	movl	%edi, 152(%rsp)
	movl	%r13d, %r14d
	movl	%ebx, 204(%rsp)
	movl	%eax, %ebx
	movl	%r12d, %r10d
	movl	$0, 160(%rsp)
	shrl	$2, %ebx
	movl	%ebx, 24(%rsp)
	movl	%eax, %ebx
	andl	$-4, %ebx
	movl	%ebx, 8(%rsp)
	leal	-2(%rax), %ebx
	subl	$3, %eax
	movl	%ebx, 164(%rsp)
	movl	%eax, 168(%rsp)
.L14:
	movl	160(%rsp), %eax
	movl	%eax, 156(%rsp)
	addl	$1, %eax
	movl	%eax, 160(%rsp)
	movl	204(%rsp), %eax
	testl	%eax, %eax
	js	.L23
	movl	16(%rsp), %eax
	movq	192(%rsp), %rbx
	movq	$2, 40(%rsp)
	xorl	%ebp, %ebp
	movl	$9, 76(%rsp)
	xorl	%r13d, %r13d
	leal	-1(%rax), %r12d
	movq	232(%rsp), %rax
	movl	$8, 72(%rsp)
	movl	$7, 60(%rsp)
	leaq	(%rax,%rbx,4), %rax
	movl	$6, 36(%rsp)
	movl	%r10d, %ebx
	movq	%rax, 88(%rsp)
	movl	184(%rsp), %eax
	movl	$5, 32(%rsp)
	movl	%eax, 12(%rsp)
	movl	%r14d, %eax
	movq	%rbp, %r14
	movl	$4, 28(%rsp)
	movl	$3, 48(%rsp)
	movl	%eax, 112(%rsp)
	.p2align 4,,10
	.p2align 3
.L22:
	leal	1(%r13), %eax
	cmpl	%ebx, 12(%rsp)
	movl	%eax, 20(%rsp)
	jg	.L16
	movq	40(%rsp), %rax
	movslq	48(%rsp), %rcx
	movl	32(%rsp), %edi
	movl	36(%rsp), %r9d
	cmpl	%eax, %r12d
	movl	%eax, %r10d
	movl	60(%rsp), %ebp
	movq	%rcx, %rsi
	setg	%dl
	cmpl	%eax, %r13d
	movl	%r10d, 52(%rsp)
	movl	108(%rsp), %r10d
	setl	%al
	andl	%eax, %edx
	cmpl	%ecx, %r12d
	movl	%edx, %r11d
	setg	%dl
	cmpl	%ecx, %r13d
	movslq	28(%rsp), %rcx
	setl	%al
	andl	%eax, %edx
	movl	28(%rsp), %eax
	movb	%dl, 64(%rsp)
	cmpl	%eax, %r12d
	setg	%dl
	cmpl	%eax, %r13d
	setl	%al
	andl	%eax, %edx
	cmpl	%edi, %r12d
	movb	%dl, 104(%rsp)
	setg	%dl
	cmpl	%edi, %r13d
	setl	%al
	andl	%eax, %edx
	cmpl	%r9d, %r12d
	movb	%dl, 119(%rsp)
	setg	%dl
	cmpl	%r9d, %r13d
	setl	%al
	andl	%eax, %edx
	cmpl	%ebp, %r12d
	movb	%dl, 144(%rsp)
	setg	%dl
	cmpl	%ebp, %r13d
	setl	%al
	andl	%eax, %edx
	movl	72(%rsp), %eax
	movb	%dl, 145(%rsp)
	cmpl	%eax, %r12d
	setg	%dl
	cmpl	%eax, %r13d
	setl	%al
	andl	%eax, %edx
	movl	76(%rsp), %eax
	movb	%dl, 146(%rsp)
	cmpl	%eax, %r12d
	setg	%dl
	cmpl	%eax, %r13d
	setl	%al
	andl	%eax, %edx
	cmpl	$2, 108(%rsp)
	movl	156(%rsp), %eax
	movb	%dl, 147(%rsp)
	movl	8(%rsp), %edx
	leal	(%rdx,%r13), %r8d
	movq	88(%rsp), %rdx
	cmovbe	%r13d, %r8d
	subq	%r14, %rsi
	movq	%rsi, 80(%rsp)
	movq	%rcx, %rsi
	movslq	32(%rsp), %rcx
	subq	%r14, %rsi
	leal	1(%r8), %edi
	leal	2(%r8), %r9d
	movq	%rsi, 96(%rsp)
	movq	%rcx, %rsi
	movslq	36(%rsp), %rcx
	subq	%r14, %rsi
	subq	%r14, %rcx
	movq	%rsi, 120(%rsp)
	movq	%rcx, 128(%rsp)
	movslq	%ebp, %rcx
	movl	112(%rsp), %ebp
	subq	%r14, %rcx
	movq	%rcx, 136(%rsp)
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L27:
	cmpl	$2, %r10d
	je	.L48
	movdqu	(%rdx), %xmm0
	movd	%r15d, %xmm3
	movdqu	(%rdx), %xmm4
	pshufd	$0, %xmm3, %xmm1
	cmpl	$1, 24(%rsp)
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm4, %xmm0
	por	%xmm1, %xmm0
	jbe	.L49
	movdqu	16(%rdx), %xmm1
	movdqu	16(%rdx), %xmm5
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm5, %xmm1
	por	%xmm1, %xmm0
.L49:
	movdqa	%xmm0, %xmm2
	movl	16(%rsp), %ecx
	psrldq	$8, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %r15d
	cmpl	%ecx, 8(%rsp)
	je	.L24
.L48:
	movslq	%eax, %rcx
	movslq	%r8d, %rsi
	leaq	(%rcx,%rcx,4), %rcx
	addq	%rcx, %rcx
	addq	%rcx, %rsi
	movl	256(%rsp,%rsi,4), %esi
	cmpl	%esi, %r15d
	cmovg	%esi, %r15d
	cmpl	%r12d, %edi
	jg	.L24
	movslq	%edi, %rsi
	addq	%rcx, %rsi
	movl	256(%rsp,%rsi,4), %esi
	cmpl	%esi, %r15d
	cmovg	%esi, %r15d
	cmpl	%r12d, %r9d
	jg	.L24
	movslq	%r9d, %rsi
	addq	%rsi, %rcx
	movl	256(%rsp,%rcx,4), %ecx
.L78:
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L24:
	addl	$1, %eax
	addq	$40, %rdx
	cmpl	%ebp, %eax
	je	.L82
.L51:
	cmpl	%r12d, %r13d
	jg	.L24
	cmpl	%ebx, %eax
	jge	.L27
	cmpl	12(%rsp), %eax
	jle	.L27
	movslq	%eax, %rsi
	movslq	%r13d, %rcx
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%rcx,%rsi,2), %rcx
	movl	256(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
	cmpl	20(%rsp), %r12d
	jl	.L24
	movl	4(%rdx), %ecx
	jg	.L83
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L30:
	cmpl	52(%rsp), %r12d
	jl	.L24
	movq	40(%rsp), %rcx
	subq	%r14, %rcx
	movl	(%rdx,%rcx,4), %ecx
	testb	%r11b, %r11b
	jne	.L84
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L32:
	cmpl	48(%rsp), %r12d
	jl	.L24
	movq	80(%rsp), %rcx
	cmpb	$0, 64(%rsp)
	movl	(%rdx,%rcx,4), %ecx
	jne	.L85
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L34:
	cmpl	28(%rsp), %r12d
	jl	.L24
	movq	96(%rsp), %rsi
	cmpb	$0, 104(%rsp)
	movl	(%rdx,%rsi,4), %ecx
	jne	.L86
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L36:
	cmpl	32(%rsp), %r12d
	jl	.L24
	movq	120(%rsp), %rcx
	cmpb	$0, 119(%rsp)
	movl	(%rdx,%rcx,4), %ecx
	jne	.L87
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L38:
	cmpl	36(%rsp), %r12d
	jl	.L24
	movq	128(%rsp), %rsi
	cmpb	$0, 144(%rsp)
	movl	(%rdx,%rsi,4), %ecx
	jne	.L88
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L40:
	cmpl	60(%rsp), %r12d
	jl	.L24
	movq	136(%rsp), %rcx
	cmpb	$0, 145(%rsp)
	movl	(%rdx,%rcx,4), %ecx
	jne	.L89
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L42:
	movl	72(%rsp), %esi
	cmpl	%esi, %r12d
	jl	.L24
	movslq	%esi, %rcx
	subq	%r14, %rcx
	cmpb	$0, 146(%rsp)
	movl	(%rdx,%rcx,4), %ecx
	jne	.L90
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L44:
	movslq	76(%rsp), %rcx
	cmpl	%ecx, %r12d
	jl	.L24
	subq	%r14, %rcx
	cmpb	$0, 147(%rsp)
	movl	(%rdx,%rcx,4), %ecx
	je	.L78
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	addl	$1, %eax
	addq	$40, %rdx
	movl	%ecx, 56(%rsp)
	cmpl	%ebp, %eax
	jne	.L51
	.p2align 4,,10
	.p2align 3
.L82:
	movl	%ebp, 112(%rsp)
.L16:
	movl	20(%rsp), %r13d
	cmpl	%r15d, 56(%rsp)
	jl	.L91
	movl	$0, 56(%rsp)
	movl	$9, %r15d
.L55:
	addq	$4, 88(%rsp)
	movl	152(%rsp), %edi
	addq	$1, %r14
	addl	$1, %r12d
	addl	$1, 48(%rsp)
	addl	$1, 28(%rsp)
	addl	$1, 32(%rsp)
	addl	$1, 36(%rsp)
	addl	$1, 60(%rsp)
	addl	$1, 72(%rsp)
	addl	$1, 76(%rsp)
	addq	$1, 40(%rsp)
	cmpl	%edi, 20(%rsp)
	jne	.L22
	movl	112(%rsp), %r14d
	movl	%ebx, %r10d
.L23:
	movl	228(%rsp), %ebx
	addl	$1, %r10d
	addl	$1, %r14d
	addq	$1, 184(%rsp)
	addq	$10, 192(%rsp)
	cmpl	%ebx, 160(%rsp)
	jne	.L14
	movl	108(%rsp), %r14d
.L12:
	movl	16(%rsp), %ebx
	addl	$1, %r14d
	leal	1(%rbx), %eax
	cmpl	176(%rsp), %ebx
	je	.L92
	movl	%eax, 16(%rsp)
	jmp	.L52
.L80:
	movq	664(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L93
	addq	$680, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L91:
	.cfi_restore_state
	cmpl	%r13d, %r12d
	movl	$1, %r10d
	movq	88(%rsp), %rax
	cmovg	164(%rsp), %r10d
	cmpl	$2, 168(%rsp)
	movq	%r14, 96(%rsp)
	movd	%r15d, %xmm7
	setbe	%r9b
	movl	%r10d, %r11d
	cmpl	%r13d, %r12d
	movl	%r10d, %edx
	leaq	40(%rax), %rsi
	setle	%al
	andl	$-4, %r11d
	shrl	$2, %edx
	leal	0(%r13,%r11), %r8d
	orb	%al, %r9b
	movl	%r13d, 104(%rsp)
	movl	160(%rsp), %ecx
	cmovne	%r13d, %r8d
	pshufd	$0, %xmm7, %xmm2
	movl	%edx, %r13d
	leal	1(%r8), %edi
	leal	2(%r8), %eax
	movslq	%r8d, %r8
	movslq	%edi, %rbp
	movl	%eax, 52(%rsp)
	xorl	%eax, %eax
	movq	%rbp, 64(%rsp)
	movslq	52(%rsp), %rbp
	movq	%rbp, 80(%rsp)
	movl	%edi, %ebp
	.p2align 4,,10
	.p2align 3
.L19:
	testb	%r9b, %r9b
	jne	.L17
	movdqu	4(%rsi), %xmm6
	movdqa	%xmm2, %xmm0
	psubd	%xmm6, %xmm0
	cmpl	$1, %r13d
	jbe	.L18
	movdqu	20(%rsi), %xmm7
	movdqa	%xmm2, %xmm1
	psubd	%xmm7, %xmm1
	paddd	%xmm1, %xmm0
.L18:
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	addl	%edx, %eax
	cmpl	%r10d, %r11d
	je	.L21
.L17:
	movslq	%ecx, %rdx
	movl	%r15d, %r14d
	leaq	(%rdx,%rdx,4), %rdx
	addq	%rdx, %rdx
	leaq	(%rdx,%r8), %rdi
	subl	256(%rsp,%rdi,4), %r14d
	addl	%r14d, %eax
	cmpl	%r12d, %ebp
	jge	.L21
	movq	64(%rsp), %rdi
	movl	%r15d, %r14d
	addq	%rdx, %rdi
	subl	256(%rsp,%rdi,4), %r14d
	addl	%r14d, %eax
	cmpl	52(%rsp), %r12d
	jle	.L21
	addq	80(%rsp), %rdx
	movl	%r15d, %edi
	subl	256(%rsp,%rdx,4), %edi
	addl	%edi, %eax
.L21:
	addl	$1, %ecx
	addq	$40, %rsi
	cmpl	%ebx, %ecx
	jl	.L19
	movl	148(%rsp), %edi
	movl	104(%rsp), %r13d
	movq	96(%rsp), %r14
	cmpl	%eax, %edi
	cmovge	%edi, %eax
	movl	%eax, 148(%rsp)
	jmp	.L55
.L83:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L30
.L84:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L32
.L85:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L34
.L86:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L36
.L87:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L38
.L88:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L40
.L89:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L42
.L90:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L44
.L81:
	movl	172(%rsp), %eax
	addl	$1, %eax
	movl	%eax, 180(%rsp)
.L53:
	movl	180(%rsp), %eax
	movl	200(%rsp), %ebx
	movl	%eax, 172(%rsp)
	cmpl	%ebx, %eax
	jne	.L11
	jmp	.L6
.L92:
	movl	%r15d, %r14d
	jmp	.L53
.L93:
	call	__stack_chk_fail@PLT
.L58:
	movl	$0, 148(%rsp)
	jmp	.L6
	.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	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$680, %rsp
	.cfi_def_cfa_offset 736
	movq	%fs:40, %rax
	movq	%rax, 664(%rsp)
	xorl	%eax, %eax
	leaq	252(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	248(%rsp), %rax
	movq	%rax, 208(%rsp)
	jmp	.L54
.L2:
	movl	252(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L80
.L6:
	movl	148(%rsp), %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L54:
	movq	216(%rsp), %rdx
	movq	208(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	248(%rsp), %eax
	movl	%eax, 148(%rsp)
	testl	%eax, %eax
	je	.L2
	jle	.L3
	movl	252(%rsp), %eax
	xorl	%ebp, %ebp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	testl	%eax, %eax
	jle	.L3
.L9:
	leaq	256(%rsp,%rbp,4), %r13
	xorl	%r12d, %r12d
.L7:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	252(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L7
	movl	248(%rsp), %edi
	addl	$1, %ebx
	movl	%edi, 148(%rsp)
	cmpl	%ebx, %edi
	jle	.L3
	addq	$10, %rbp
	testl	%eax, %eax
	jg	.L9
.L3:
	movl	148(%rsp), %eax
	cmpl	$2, %eax
	jle	.L58
	movl	252(%rsp), %ebx
	movl	%eax, 200(%rsp)
	leaq	256(%rsp), %rax
	movl	$9, %r15d
	movl	$2, 172(%rsp)
	movl	%r15d, %r14d
	movl	%ebx, 176(%rsp)
	movl	$0, 148(%rsp)
	movl	$0, 56(%rsp)
	movq	%rax, 232(%rsp)
.L11:
	cmpl	$2, 176(%rsp)
	jle	.L81
	movl	200(%rsp), %ebx
	movl	$2, %r15d
	movl	$3, 16(%rsp)
	leal	-1(%rbx), %eax
	movl	%eax, %edi
	movl	172(%rsp), %eax
	subl	%eax, %edi
	subl	%eax, %ebx
	movl	%edi, 224(%rsp)
	leal	1(%rax), %edi
	movl	%r15d, %eax
	movl	%r14d, %r15d
	movl	%edi, 180(%rsp)
	movl	%eax, %r14d
	movl	%ebx, 228(%rsp)
.L52:
	movl	224(%rsp), %edx
	testl	%edx, %edx
	js	.L12
	movl	176(%rsp), %edi
	movl	16(%rsp), %eax
	movq	$0, 192(%rsp)
	movl	180(%rsp), %r13d
	movl	%r14d, 108(%rsp)
	movl	%edi, %ebx
	subl	%r14d, %edi
	movl	172(%rsp), %r12d
	movq	$0, 184(%rsp)
	subl	%eax, %ebx
	movl	%edi, 152(%rsp)
	movl	%r13d, %r14d
	movl	%ebx, 204(%rsp)
	movl	%eax, %ebx
	movl	%r12d, %r10d
	movl	$0, 160(%rsp)
	shrl	$2, %ebx
	movl	%ebx, 24(%rsp)
	movl	%eax, %ebx
	andl	$-4, %ebx
	movl	%ebx, 8(%rsp)
	leal	-2(%rax), %ebx
	subl	$3, %eax
	movl	%ebx, 164(%rsp)
	movl	%eax, 168(%rsp)
.L14:
	movl	160(%rsp), %eax
	movl	%eax, 156(%rsp)
	addl	$1, %eax
	movl	%eax, 160(%rsp)
	movl	204(%rsp), %eax
	testl	%eax, %eax
	js	.L23
	movl	16(%rsp), %eax
	movq	192(%rsp), %rbx
	movq	$2, 40(%rsp)
	xorl	%ebp, %ebp
	movl	$9, 76(%rsp)
	xorl	%r13d, %r13d
	leal	-1(%rax), %r12d
	movq	232(%rsp), %rax
	movl	$8, 72(%rsp)
	movl	$7, 60(%rsp)
	leaq	(%rax,%rbx,4), %rax
	movl	$6, 36(%rsp)
	movl	%r10d, %ebx
	movq	%rax, 88(%rsp)
	movl	184(%rsp), %eax
	movl	$5, 32(%rsp)
	movl	%eax, 12(%rsp)
	movl	%r14d, %eax
	movq	%rbp, %r14
	movl	$4, 28(%rsp)
	movl	$3, 48(%rsp)
	movl	%eax, 112(%rsp)
	.p2align 4,,10
	.p2align 3
.L22:
	leal	1(%r13), %eax
	cmpl	%ebx, 12(%rsp)
	movl	%eax, 20(%rsp)
	jg	.L16
	movq	40(%rsp), %rax
	movslq	48(%rsp), %rcx
	movl	32(%rsp), %edi
	movl	36(%rsp), %r9d
	cmpl	%eax, %r12d
	movl	%eax, %r10d
	movl	60(%rsp), %ebp
	movq	%rcx, %rsi
	setg	%dl
	cmpl	%eax, %r13d
	movl	%r10d, 52(%rsp)
	movl	108(%rsp), %r10d
	setl	%al
	andl	%eax, %edx
	cmpl	%ecx, %r12d
	movl	%edx, %r11d
	setg	%dl
	cmpl	%ecx, %r13d
	movslq	28(%rsp), %rcx
	setl	%al
	andl	%eax, %edx
	movl	28(%rsp), %eax
	movb	%dl, 64(%rsp)
	cmpl	%eax, %r12d
	setg	%dl
	cmpl	%eax, %r13d
	setl	%al
	andl	%eax, %edx
	cmpl	%edi, %r12d
	movb	%dl, 104(%rsp)
	setg	%dl
	cmpl	%edi, %r13d
	setl	%al
	andl	%eax, %edx
	cmpl	%r9d, %r12d
	movb	%dl, 119(%rsp)
	setg	%dl
	cmpl	%r9d, %r13d
	setl	%al
	andl	%eax, %edx
	cmpl	%ebp, %r12d
	movb	%dl, 144(%rsp)
	setg	%dl
	cmpl	%ebp, %r13d
	setl	%al
	andl	%eax, %edx
	movl	72(%rsp), %eax
	movb	%dl, 145(%rsp)
	cmpl	%eax, %r12d
	setg	%dl
	cmpl	%eax, %r13d
	setl	%al
	andl	%eax, %edx
	movl	76(%rsp), %eax
	movb	%dl, 146(%rsp)
	cmpl	%eax, %r12d
	setg	%dl
	cmpl	%eax, %r13d
	setl	%al
	andl	%eax, %edx
	cmpl	$2, 108(%rsp)
	movl	156(%rsp), %eax
	movb	%dl, 147(%rsp)
	movl	8(%rsp), %edx
	leal	(%rdx,%r13), %r8d
	movq	88(%rsp), %rdx
	cmovbe	%r13d, %r8d
	subq	%r14, %rsi
	movq	%rsi, 80(%rsp)
	movq	%rcx, %rsi
	movslq	32(%rsp), %rcx
	subq	%r14, %rsi
	leal	1(%r8), %edi
	leal	2(%r8), %r9d
	movq	%rsi, 96(%rsp)
	movq	%rcx, %rsi
	movslq	36(%rsp), %rcx
	subq	%r14, %rsi
	subq	%r14, %rcx
	movq	%rsi, 120(%rsp)
	movq	%rcx, 128(%rsp)
	movslq	%ebp, %rcx
	movl	112(%rsp), %ebp
	subq	%r14, %rcx
	movq	%rcx, 136(%rsp)
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L27:
	cmpl	$2, %r10d
	je	.L48
	movdqu	(%rdx), %xmm0
	movd	%r15d, %xmm3
	movdqu	(%rdx), %xmm4
	pshufd	$0, %xmm3, %xmm1
	cmpl	$1, 24(%rsp)
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm4, %xmm0
	por	%xmm1, %xmm0
	jbe	.L49
	movdqu	16(%rdx), %xmm1
	movdqu	16(%rdx), %xmm5
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm5, %xmm1
	por	%xmm1, %xmm0
.L49:
	movdqa	%xmm0, %xmm2
	movl	16(%rsp), %ecx
	psrldq	$8, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %r15d
	cmpl	%ecx, 8(%rsp)
	je	.L24
.L48:
	movslq	%eax, %rcx
	movslq	%r8d, %rsi
	leaq	(%rcx,%rcx,4), %rcx
	addq	%rcx, %rcx
	addq	%rcx, %rsi
	movl	256(%rsp,%rsi,4), %esi
	cmpl	%esi, %r15d
	cmovg	%esi, %r15d
	cmpl	%r12d, %edi
	jg	.L24
	movslq	%edi, %rsi
	addq	%rcx, %rsi
	movl	256(%rsp,%rsi,4), %esi
	cmpl	%esi, %r15d
	cmovg	%esi, %r15d
	cmpl	%r12d, %r9d
	jg	.L24
	movslq	%r9d, %rsi
	addq	%rsi, %rcx
	movl	256(%rsp,%rcx,4), %ecx
.L78:
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L24:
	addl	$1, %eax
	addq	$40, %rdx
	cmpl	%ebp, %eax
	je	.L82
.L51:
	cmpl	%r12d, %r13d
	jg	.L24
	cmpl	%ebx, %eax
	jge	.L27
	cmpl	12(%rsp), %eax
	jle	.L27
	movslq	%eax, %rsi
	movslq	%r13d, %rcx
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%rcx,%rsi,2), %rcx
	movl	256(%rsp,%rcx,4), %ecx
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
	cmpl	20(%rsp), %r12d
	jl	.L24
	movl	4(%rdx), %ecx
	jg	.L83
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L30:
	cmpl	52(%rsp), %r12d
	jl	.L24
	movq	40(%rsp), %rcx
	subq	%r14, %rcx
	movl	(%rdx,%rcx,4), %ecx
	testb	%r11b, %r11b
	jne	.L84
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L32:
	cmpl	48(%rsp), %r12d
	jl	.L24
	movq	80(%rsp), %rcx
	cmpb	$0, 64(%rsp)
	movl	(%rdx,%rcx,4), %ecx
	jne	.L85
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L34:
	cmpl	28(%rsp), %r12d
	jl	.L24
	movq	96(%rsp), %rsi
	cmpb	$0, 104(%rsp)
	movl	(%rdx,%rsi,4), %ecx
	jne	.L86
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L36:
	cmpl	32(%rsp), %r12d
	jl	.L24
	movq	120(%rsp), %rcx
	cmpb	$0, 119(%rsp)
	movl	(%rdx,%rcx,4), %ecx
	jne	.L87
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L38:
	cmpl	36(%rsp), %r12d
	jl	.L24
	movq	128(%rsp), %rsi
	cmpb	$0, 144(%rsp)
	movl	(%rdx,%rsi,4), %ecx
	jne	.L88
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L40:
	cmpl	60(%rsp), %r12d
	jl	.L24
	movq	136(%rsp), %rcx
	cmpb	$0, 145(%rsp)
	movl	(%rdx,%rcx,4), %ecx
	jne	.L89
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L42:
	movl	72(%rsp), %esi
	cmpl	%esi, %r12d
	jl	.L24
	movslq	%esi, %rcx
	subq	%r14, %rcx
	cmpb	$0, 146(%rsp)
	movl	(%rdx,%rcx,4), %ecx
	jne	.L90
	cmpl	%ecx, %r15d
	cmovg	%ecx, %r15d
.L44:
	movslq	76(%rsp), %rcx
	cmpl	%ecx, %r12d
	jl	.L24
	subq	%r14, %rcx
	cmpb	$0, 147(%rsp)
	movl	(%rdx,%rcx,4), %ecx
	je	.L78
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	addl	$1, %eax
	addq	$40, %rdx
	movl	%ecx, 56(%rsp)
	cmpl	%ebp, %eax
	jne	.L51
	.p2align 4,,10
	.p2align 3
.L82:
	movl	%ebp, 112(%rsp)
.L16:
	movl	20(%rsp), %r13d
	cmpl	%r15d, 56(%rsp)
	jl	.L91
	movl	$0, 56(%rsp)
	movl	$9, %r15d
.L55:
	addq	$4, 88(%rsp)
	movl	152(%rsp), %edi
	addq	$1, %r14
	addl	$1, %r12d
	addl	$1, 48(%rsp)
	addl	$1, 28(%rsp)
	addl	$1, 32(%rsp)
	addl	$1, 36(%rsp)
	addl	$1, 60(%rsp)
	addl	$1, 72(%rsp)
	addl	$1, 76(%rsp)
	addq	$1, 40(%rsp)
	cmpl	%edi, 20(%rsp)
	jne	.L22
	movl	112(%rsp), %r14d
	movl	%ebx, %r10d
.L23:
	movl	228(%rsp), %ebx
	addl	$1, %r10d
	addl	$1, %r14d
	addq	$1, 184(%rsp)
	addq	$10, 192(%rsp)
	cmpl	%ebx, 160(%rsp)
	jne	.L14
	movl	108(%rsp), %r14d
.L12:
	movl	16(%rsp), %ebx
	addl	$1, %r14d
	leal	1(%rbx), %eax
	cmpl	176(%rsp), %ebx
	je	.L92
	movl	%eax, 16(%rsp)
	jmp	.L52
.L80:
	movq	664(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L93
	addq	$680, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L91:
	.cfi_restore_state
	cmpl	%r13d, %r12d
	movl	$1, %r10d
	movq	88(%rsp), %rax
	cmovg	164(%rsp), %r10d
	cmpl	$2, 168(%rsp)
	movq	%r14, 96(%rsp)
	movd	%r15d, %xmm7
	setbe	%r9b
	movl	%r10d, %r11d
	cmpl	%r13d, %r12d
	movl	%r10d, %edx
	leaq	40(%rax), %rsi
	setle	%al
	andl	$-4, %r11d
	shrl	$2, %edx
	leal	0(%r13,%r11), %r8d
	orb	%al, %r9b
	movl	%r13d, 104(%rsp)
	movl	160(%rsp), %ecx
	cmovne	%r13d, %r8d
	pshufd	$0, %xmm7, %xmm2
	movl	%edx, %r13d
	leal	1(%r8), %edi
	leal	2(%r8), %eax
	movslq	%r8d, %r8
	movslq	%edi, %rbp
	movl	%eax, 52(%rsp)
	xorl	%eax, %eax
	movq	%rbp, 64(%rsp)
	movslq	52(%rsp), %rbp
	movq	%rbp, 80(%rsp)
	movl	%edi, %ebp
	.p2align 4,,10
	.p2align 3
.L19:
	testb	%r9b, %r9b
	jne	.L17
	movdqu	4(%rsi), %xmm6
	movdqa	%xmm2, %xmm0
	psubd	%xmm6, %xmm0
	cmpl	$1, %r13d
	jbe	.L18
	movdqu	20(%rsi), %xmm7
	movdqa	%xmm2, %xmm1
	psubd	%xmm7, %xmm1
	paddd	%xmm1, %xmm0
.L18:
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	addl	%edx, %eax
	cmpl	%r10d, %r11d
	je	.L21
.L17:
	movslq	%ecx, %rdx
	movl	%r15d, %r14d
	leaq	(%rdx,%rdx,4), %rdx
	addq	%rdx, %rdx
	leaq	(%rdx,%r8), %rdi
	subl	256(%rsp,%rdi,4), %r14d
	addl	%r14d, %eax
	cmpl	%r12d, %ebp
	jge	.L21
	movq	64(%rsp), %rdi
	movl	%r15d, %r14d
	addq	%rdx, %rdi
	subl	256(%rsp,%rdi,4), %r14d
	addl	%r14d, %eax
	cmpl	52(%rsp), %r12d
	jle	.L21
	addq	80(%rsp), %rdx
	movl	%r15d, %edi
	subl	256(%rsp,%rdx,4), %edi
	addl	%edi, %eax
.L21:
	addl	$1, %ecx
	addq	$40, %rsi
	cmpl	%ebx, %ecx
	jl	.L19
	movl	148(%rsp), %edi
	movl	104(%rsp), %r13d
	movq	96(%rsp), %r14
	cmpl	%eax, %edi
	cmovge	%edi, %eax
	movl	%eax, 148(%rsp)
	jmp	.L55
.L83:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L30
.L84:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L32
.L85:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L34
.L86:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L36
.L87:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L38
.L88:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L40
.L89:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L42
.L90:
	movl	56(%rsp), %esi
	cmpl	%ecx, %esi
	cmovge	%esi, %ecx
	movl	%ecx, 56(%rsp)
	jmp	.L44
.L81:
	movl	172(%rsp), %eax
	addl	$1, %eax
	movl	%eax, 180(%rsp)
.L53:
	movl	180(%rsp), %eax
	movl	200(%rsp), %ebx
	movl	%eax, 172(%rsp)
	cmpl	%ebx, %eax
	jne	.L11
	jmp	.L6
.L92:
	movl	%r15d, %r14d
	jmp	.L53
.L93:
	call	__stack_chk_fail@PLT
.L58:
	movl	$0, 148(%rsp)
	jmp	.L6
	.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 input_d, input_w;
  int input_e[10][10];
  int okuyuki, haba;
  int moving_yoko, moving_tate;
  int counter_i, counter_j;

  for( ; ; )
  {
    int in_max_height = 0, out_min_height = 9;
    int sum_deepth = 0, max_deepth = 0;

    scanf("%d %d", &input_d, &input_w);
    if(input_d == 0 && input_w == 0)
      break;

    for(counter_i = 0 ; counter_i < input_d ; counter_i++)
    {
      for(counter_j = 0 ; counter_j < input_w ; counter_j++)
        scanf("%d", &input_e[counter_i][counter_j]);
    }

    for(okuyuki = 0 ; okuyuki <= input_d - 3 ; okuyuki++)
    {
      for(haba = 0 ; haba <= input_w - 3 ; haba++)
      {
        for(moving_tate = 0 ; moving_tate <= input_d - 3 - okuyuki ; moving_tate++)
        {
          for(moving_yoko = 0 ; moving_yoko <= input_w - 3 - haba ; moving_yoko++)
          {
            for(counter_i = moving_tate ; counter_i <= okuyuki + 2 + moving_tate ; counter_i++)
            {
              for(counter_j = moving_yoko ; counter_j <= haba + 2 + moving_yoko ; counter_j++)
              {
                if(moving_tate < counter_i && counter_i < okuyuki + 2 + moving_tate)
                {
                  if(moving_yoko < counter_j && counter_j < haba + 2 + moving_yoko)
                  {
                    if(in_max_height < input_e[counter_i][counter_j])
                    {
                      in_max_height = input_e[counter_i][counter_j];
                    }
                  }
                  else
                  {
                    if(out_min_height > input_e[counter_i][counter_j])
                    {
                      out_min_height = input_e[counter_i][counter_j];
                    }
                  }
                }
                else
                {
                  if(out_min_height > input_e[counter_i][counter_j])
                  {
                    out_min_height = input_e[counter_i][counter_j];
                  }
                }
              }
            }
            if(out_min_height <= in_max_height)
            {
              in_max_height = 0;
              out_min_height = 9;
              continue;
            }
            for(counter_i = moving_tate + 1 ; counter_i < okuyuki + 2 + moving_tate ; counter_i++)
            {
              for(counter_j = moving_yoko + 1 ; counter_j < haba + 2 + moving_yoko ; counter_j++)
              {
                sum_deepth = sum_deepth + (out_min_height - input_e[counter_i][counter_j]);
              }
            }
            if(max_deepth < sum_deepth)
            {
              max_deepth = sum_deepth;
            }
            sum_deepth = 0;
          }
        }
      }
    }

    printf("%d\n", max_deepth);
  }
  return 0;
}


3 3
2 3 2
2 1 2
2 3 1
3 5
3 3 4 3 3
3 1 0 2 3
3 3 4 3 2
7 7
1 1 1 1 1 0 0
1 0 0 0 1 0 0
1 0 1 1 1 1 1
1 0 1 0 1 0 1
1 1 1 1 1 0 1
0 0 2 0 0 0 1
0 0 1 1 1 1 1
6 6
1 1 1 1 2 2
1 0 0 2 0 2
1 0 0 2 0 2
3 3 3 9 9 9
3 0 0 9 0 9
3 3 3 9 9 9
0 0
 3 3
2 3 2
2 1 2
2 3 1
3 5
3 3 4 3 3
3 1 0 2 3
3 3 4 3 2
7 7
1 1 1 1 1 0 0
1 0 0 0 1 0 0
1 0 1 1 1 1 1
1 0 1 0 1 0 1
1 1 1 1 1 0 1
0 0 2 0 0 0 1
0 0 1 1 1 1 1
6 6
1 1 1 1 2 2
1 0 0 2 0 2
1 0 0 2 0 2
3 3 3 9 9 9
3 0 0 4 0 9
3 3 3 9 9 10
0 0
 3 3
2 3 2
2 1 2
2 3 1
3 5
3 3 4 3 3
3 1 0 2 3
3 3 4 3 2
7 7
1 1 1 2 1 0 0
1 0 0 0 1 0 0
1 0 1 1 1 1 1
1 0 1 0 1 0 1
1 1 1 1 1 0 1
0 0 2 0 0 0 1
0 0 1 1 1 1 1
6 6
1 1 1 1 2 2
1 0 0 2 0 2
1 0 0 2 0 2
3 1 3 9 9 9
3 0 0 4 0 9
3 3 3 9 9 10
0 0
 3 3
2 3 2
2 1 2
2 3 1
3 5
3 3 1 3 3
3 1 0 2 3
3 3 4 3 2
7 7
1 1 0 2 1 0 0
1 0 0 0 1 0 0
1 0 1 1 1 1 1
1 0 1 0 1 0 1
1 1 1 1 1 0 1
0 0 2 0 0 0 0
0 0 1 1 1 1 1
6 6
1 1 1 1 2 2
1 0 0 2 0 2
1 0 0 2 0 2
3 3 3 9 9 9
3 0 0 4 0 9
3 3 3 9 9 10
0 0
 3 3
2 3 2
2 1 2
2 3 1
3 5
3 3 4 3 3
3 1 0 2 3
3 3 4 3 2
7 7
1 1 0 2 1 0 0
1 0 0 0 1 0 0
1 0 1 1 1 1 1
1 0 1 0 1 0 1
1 1 1 1 1 -1 1
0 0 2 0 0 0 0
0 0 1 1 1 1 1
6 6
1 1 1 1 2 2
1 0 0 2 0 2
1 0 0 2 0 2
3 3 3 9 9 9
3 1 0 4 0 9
3 3 3 9 9 10
0 0
 3 3
2 3 2
2 1 2
2 3 1
3 5
3 3 4 3 3
3 1 0 2 3
3 3 4 3 2
7 7
1 1 1 2 1 0 0
1 0 0 0 1 0 0
1 0 1 1 1 1 1
1 0 1 0 1 0 1
1 1 1 1 1 0 1
0 0 2 0 0 0 0
0 0 1 1 1 1 1
6 6
1 1 1 1 2 2
1 0 0 2 0 0
1 0 0 2 0 2
3 3 3 9 9 9
3 0 0 2 0 9
3 3 3 9 9 10
0 0
 3 3
2 3 2
2 1 2
2 3 1
3 5
3 3 0 3 3
3 1 0 2 3
3 3 4 6 2
7 7
1 1 0 2 1 0 0
1 0 0 0 1 0 0
1 0 1 1 1 1 1
1 0 1 0 1 0 1
1 1 1 1 1 -1 1
0 0 2 0 0 0 0
0 0 1 1 1 1 1
6 6
0 1 1 1 2 2
1 1 0 2 0 2
1 0 0 2 0 0
3 3 3 9 9 9
3 0 0 4 0 9
3 3 3 9 9 10
0 0
 3 3
2 3 2
2 1 2
2 3 0
3 5
3 3 4 3 3
3 1 0 2 3
3 3 4 3 2
7 7
0 1 1 1 1 0 0
1 0 0 0 1 0 0
1 0 2 1 1 1 1
1 0 1 0 1 0 2
1 1 1 1 1 0 1
0 0 2 0 1 0 1
0 0 1 1 1 1 1
6 6
1 1 1 1 2 2
1 0 0 2 0 2
1 0 0 2 0 2
3 3 3 9 9 9
3 0 0 9 0 9
3 3 3 9 9 9
0 0
 3 3
2 0 2
0 1 2
2 3 1
3 5
0 3 4 3 3
3 1 0 2 3
3 3 4 0 2
6 7
1 1 1 1 1 0 0
1 0 0 0 1 0 0
1 0 1 1 1 1 1
1 0 1 0 1 0 1
1 1 1 1 1 0 1
0 0 2 0 0 1 1
0 0 1 1 1 2 0
6 6
1 1 1 1 2 2
1 0 0 2 0 2
1 0 0 2 1 2
3 3 3 9 13 9
3 0 0 18 -1 9
3 3 3 9 9 2
0 0
 3 3
2 0 2
0 1 2
2 3 1
3 5
0 3 7 3 3
3 1 0 2 3
3 3 4 0 2
7 7
2 1 1 1 1 0 0
1 0 0 0 1 0 0
1 0 1 1 1 1 1
1 0 1 0 2 0 1
1 1 1 1 1 0 1
0 0 2 0 0 1 1
0 0 1 1 1 2 0
6 6
1 1 1 1 2 2
1 0 0 2 0 2
1 0 0 2 1 2
3 3 3 9 13 9
3 0 0 18 -1 9
2 6 3 9 9 2
0 0

0
3
1
9
 0
3
1
6
 0
3
1
4
 0
1
1
6
 0
3
1
5
 0
3
1
10
 0
0
1
6
 0
3
3
9
 0
0
1
 0
0
1
4

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 input_d, input_w;
  int input_e[10][10];
  int okuyuki, haba;
  int moving_yoko, moving_tate;
  int counter_i, counter_j;

  for( ; ; )
  {
    int in_max_height = 0, out_min_height = 9;
    int sum_deepth = 0, max_deepth = 0;

    scanf("%d %d", &input_d, &input_w);
    if(input_d == 0 && input_w == 0)
      break;

    for(counter_i = 0 ; counter_i < input_d ; counter_i++)
    {
      for(counter_j = 0 ; counter_j < input_w ; counter_j++)
        scanf("%d", &input_e[counter_i][counter_j]);
    }

    for(okuyuki = 0 ; okuyuki <= input_d - 3 ; okuyuki++)
    {
      for(haba = 0 ; haba <= input_w - 3 ; haba++)
      {
        for(moving_tate = 0 ; moving_tate <= input_d - 3 - okuyuki ; moving_tate++)
        {
          for(moving_yoko = 0 ; moving_yoko <= input_w - 3 - haba ; moving_yoko++)
          {
            for(counter_i = moving_tate ; counter_i <= okuyuki + 2 + moving_tate ; counter_i++)
            {
              for(counter_j = moving_yoko ; counter_j <= haba + 2 + moving_yoko ; counter_j++)
              {
                if(moving_tate < counter_i && counter_i < okuyuki + 2 + moving_tate)
                {
                  if(moving_yoko < counter_j && counter_j < haba + 2 + moving_yoko)
                  {
                    if(in_max_height < input_e[counter_i][counter_j])
                    {
                      in_max_height = input_e[counter_i][counter_j];
                    }
                  }
                  else
                  {
                    if(out_min_height > input_e[counter_i][counter_j])
                    {
                      out_min_height = input_e[counter_i][counter_j];
                    }
                  }
                }
                else
                {
                  if(out_min_height > input_e[counter_i][counter_j])
                  {
                    out_min_height = input_e[counter_i][counter_j];
                  }
                }
              }
            }
            if(out_min_height <= in_max_height)
            {
              in_max_height = 0;
              out_min_height = 9;
              continue;
            }
            for(counter_i = moving_tate + 1 ; counter_i < okuyuki + 2 + moving_tate ; counter_i++)
            {
              for(counter_j = moving_yoko + 1 ; counter_j < haba + 2 + moving_yoko ; counter_j++)
              {
                sum_deepth = sum_deepth + (out_min_height - input_e[counter_i][counter_j]);
              }
            }
            if(max_deepth < sum_deepth)
            {
              max_deepth = sum_deepth;
            }
            sum_deepth = 0;
          }
        }
      }
    }

    printf("%d\n", max_deepth);
  }
  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$464, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L32:
	movl	$0, -432(%rbp)
	movl	$9, -428(%rbp)
	movl	$0, -424(%rbp)
	movl	$0, -420(%rbp)
	leaq	-460(%rbp), %rdx
	leaq	-464(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-464(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-460(%rbp), %eax
	testl	%eax, %eax
	je	.L36
.L2:
	movl	$0, -440(%rbp)
	jmp	.L4
.L7:
	movl	$0, -436(%rbp)
	jmp	.L5
.L6:
	leaq	-416(%rbp), %rcx
	movl	-436(%rbp), %eax
	movslq	%eax, %rsi
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -436(%rbp)
.L5:
	movl	-460(%rbp), %eax
	cmpl	%eax, -436(%rbp)
	jl	.L6
	addl	$1, -440(%rbp)
.L4:
	movl	-464(%rbp), %eax
	cmpl	%eax, -440(%rbp)
	jl	.L7
	movl	$0, -456(%rbp)
	jmp	.L8
.L31:
	movl	$0, -452(%rbp)
	jmp	.L9
.L30:
	movl	$0, -444(%rbp)
	jmp	.L10
.L29:
	movl	$0, -448(%rbp)
	jmp	.L11
.L28:
	movl	-444(%rbp), %eax
	movl	%eax, -440(%rbp)
	jmp	.L12
.L20:
	movl	-448(%rbp), %eax
	movl	%eax, -436(%rbp)
	jmp	.L13
.L19:
	movl	-444(%rbp), %eax
	cmpl	-440(%rbp), %eax
	jge	.L14
	movl	-456(%rbp), %eax
	leal	2(%rax), %edx
	movl	-444(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -440(%rbp)
	jge	.L14
	movl	-448(%rbp), %eax
	cmpl	-436(%rbp), %eax
	jge	.L15
	movl	-452(%rbp), %eax
	leal	2(%rax), %edx
	movl	-448(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -436(%rbp)
	jge	.L15
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, -432(%rbp)
	jge	.L17
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, -432(%rbp)
	jmp	.L17
.L15:
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L37
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, -428(%rbp)
	jmp	.L37
.L17:
	jmp	.L37
.L14:
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L18
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, -428(%rbp)
	jmp	.L18
.L37:
	nop
.L18:
	addl	$1, -436(%rbp)
.L13:
	movl	-452(%rbp), %eax
	leal	2(%rax), %edx
	movl	-448(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -436(%rbp)
	jle	.L19
	addl	$1, -440(%rbp)
.L12:
	movl	-456(%rbp), %eax
	leal	2(%rax), %edx
	movl	-444(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -440(%rbp)
	jle	.L20
	movl	-428(%rbp), %eax
	cmpl	-432(%rbp), %eax
	jg	.L21
	movl	$0, -432(%rbp)
	movl	$9, -428(%rbp)
	jmp	.L22
.L21:
	movl	-444(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -440(%rbp)
	jmp	.L23
.L26:
	movl	-448(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -436(%rbp)
	jmp	.L24
.L25:
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %edx
	movl	-428(%rbp), %eax
	subl	%edx, %eax
	addl	%eax, -424(%rbp)
	addl	$1, -436(%rbp)
.L24:
	movl	-452(%rbp), %eax
	leal	2(%rax), %edx
	movl	-448(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -436(%rbp)
	jl	.L25
	addl	$1, -440(%rbp)
.L23:
	movl	-456(%rbp), %eax
	leal	2(%rax), %edx
	movl	-444(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -440(%rbp)
	jl	.L26
	movl	-420(%rbp), %eax
	cmpl	-424(%rbp), %eax
	jge	.L27
	movl	-424(%rbp), %eax
	movl	%eax, -420(%rbp)
.L27:
	movl	$0, -424(%rbp)
.L22:
	addl	$1, -448(%rbp)
.L11:
	movl	-460(%rbp), %eax
	subl	$3, %eax
	subl	-452(%rbp), %eax
	cmpl	%eax, -448(%rbp)
	jle	.L28
	addl	$1, -444(%rbp)
.L10:
	movl	-464(%rbp), %eax
	subl	$3, %eax
	subl	-456(%rbp), %eax
	cmpl	%eax, -444(%rbp)
	jle	.L29
	addl	$1, -452(%rbp)
.L9:
	movl	-460(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -452(%rbp)
	jl	.L30
	addl	$1, -456(%rbp)
.L8:
	movl	-464(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -456(%rbp)
	jl	.L31
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L32
.L36:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$464, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L32:
	movl	$0, -432(%rbp)
	movl	$9, -428(%rbp)
	movl	$0, -424(%rbp)
	movl	$0, -420(%rbp)
	leaq	-460(%rbp), %rdx
	leaq	-464(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-464(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-460(%rbp), %eax
	testl	%eax, %eax
	je	.L36
.L2:
	movl	$0, -440(%rbp)
	jmp	.L4
.L7:
	movl	$0, -436(%rbp)
	jmp	.L5
.L6:
	leaq	-416(%rbp), %rcx
	movl	-436(%rbp), %eax
	movslq	%eax, %rsi
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -436(%rbp)
.L5:
	movl	-460(%rbp), %eax
	cmpl	%eax, -436(%rbp)
	jl	.L6
	addl	$1, -440(%rbp)
.L4:
	movl	-464(%rbp), %eax
	cmpl	%eax, -440(%rbp)
	jl	.L7
	movl	$0, -456(%rbp)
	jmp	.L8
.L31:
	movl	$0, -452(%rbp)
	jmp	.L9
.L30:
	movl	$0, -444(%rbp)
	jmp	.L10
.L29:
	movl	$0, -448(%rbp)
	jmp	.L11
.L28:
	movl	-444(%rbp), %eax
	movl	%eax, -440(%rbp)
	jmp	.L12
.L20:
	movl	-448(%rbp), %eax
	movl	%eax, -436(%rbp)
	jmp	.L13
.L19:
	movl	-444(%rbp), %eax
	cmpl	-440(%rbp), %eax
	jge	.L14
	movl	-456(%rbp), %eax
	leal	2(%rax), %edx
	movl	-444(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -440(%rbp)
	jge	.L14
	movl	-448(%rbp), %eax
	cmpl	-436(%rbp), %eax
	jge	.L15
	movl	-452(%rbp), %eax
	leal	2(%rax), %edx
	movl	-448(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -436(%rbp)
	jge	.L15
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, -432(%rbp)
	jge	.L17
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, -432(%rbp)
	jmp	.L17
.L15:
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L37
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, -428(%rbp)
	jmp	.L37
.L17:
	jmp	.L37
.L14:
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	cmpl	%eax, -428(%rbp)
	jle	.L18
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, -428(%rbp)
	jmp	.L18
.L37:
	nop
.L18:
	addl	$1, -436(%rbp)
.L13:
	movl	-452(%rbp), %eax
	leal	2(%rax), %edx
	movl	-448(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -436(%rbp)
	jle	.L19
	addl	$1, -440(%rbp)
.L12:
	movl	-456(%rbp), %eax
	leal	2(%rax), %edx
	movl	-444(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -440(%rbp)
	jle	.L20
	movl	-428(%rbp), %eax
	cmpl	-432(%rbp), %eax
	jg	.L21
	movl	$0, -432(%rbp)
	movl	$9, -428(%rbp)
	jmp	.L22
.L21:
	movl	-444(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -440(%rbp)
	jmp	.L23
.L26:
	movl	-448(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -436(%rbp)
	jmp	.L24
.L25:
	movl	-436(%rbp), %eax
	movslq	%eax, %rcx
	movl	-440(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-416(%rbp,%rax,4), %edx
	movl	-428(%rbp), %eax
	subl	%edx, %eax
	addl	%eax, -424(%rbp)
	addl	$1, -436(%rbp)
.L24:
	movl	-452(%rbp), %eax
	leal	2(%rax), %edx
	movl	-448(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -436(%rbp)
	jl	.L25
	addl	$1, -440(%rbp)
.L23:
	movl	-456(%rbp), %eax
	leal	2(%rax), %edx
	movl	-444(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -440(%rbp)
	jl	.L26
	movl	-420(%rbp), %eax
	cmpl	-424(%rbp), %eax
	jge	.L27
	movl	-424(%rbp), %eax
	movl	%eax, -420(%rbp)
.L27:
	movl	$0, -424(%rbp)
.L22:
	addl	$1, -448(%rbp)
.L11:
	movl	-460(%rbp), %eax
	subl	$3, %eax
	subl	-452(%rbp), %eax
	cmpl	%eax, -448(%rbp)
	jle	.L28
	addl	$1, -444(%rbp)
.L10:
	movl	-464(%rbp), %eax
	subl	$3, %eax
	subl	-456(%rbp), %eax
	cmpl	%eax, -444(%rbp)
	jle	.L29
	addl	$1, -452(%rbp)
.L9:
	movl	-460(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -452(%rbp)
	jl	.L30
	addl	$1, -456(%rbp)
.L8:
	movl	-464(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -456(%rbp)
	jl	.L31
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L32
.L36:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
