Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<math.h>

 static int N=100;

int main(){
  int i,l,j,k,n,p[N+1],m[N+1][N+1];
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    scanf("%d",&p[i-1]);
    scanf("%d",&p[i]);
  }

  for(i=1;i<=n;i++)m[i][i]=0;
  for(l=2;l<=n;l++){
    for(i=1;i<=n-l+1;i++){
      j=i+l-1;
      m[i][j]=1<<21;
      for(k=i;k<=j-1;k++){
	m[i][j]=fmin(m[i][j],m[i][k]+m[k+1][j]+p[i-1]*p[k]*p[j]);
      }
    }
  }
 
  printf("%d",m[1][n]);
  printf("\n");
  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.data
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.long	100
	.section	.rodata
.LC0:
	.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	$120, %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, -152(%rbp)
	movl	N(%rip), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, %rcx
	movl	$0, %ebx
	movslq	%edx, %rax
	movq	%rax, %rsi
	movl	$0, %edi
	movslq	%edx, %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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	N(%rip), %eax
	leal	1(%rax), %ecx
	movl	N(%rip), %eax
	leal	1(%rax), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r10
	movl	$0, %r11d
	movslq	%esi, %rax
	movq	%rax, %r8
	movl	$0, %r9d
	movq	%r11, %rdx
	imulq	%r8, %rdx
	movq	%r9, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r10, %rax
	mulq	%r8
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	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, -64(%rbp)
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -112(%rbp)
	jmp	.L8
.L9:
	movl	-112(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -112(%rbp)
.L8:
	movl	-116(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jle	.L9
	movl	$1, -112(%rbp)
	jmp	.L10
.L11:
	movq	%rbx, %rdx
	shrq	$2, %rdx
	movq	-64(%rbp), %rax
	leaq	1(%rdx), %rcx
	movl	-112(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -112(%rbp)
.L10:
	movl	-116(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jle	.L11
	movl	$2, -108(%rbp)
	jmp	.L12
.L17:
	movl	$1, -112(%rbp)
	jmp	.L13
.L16:
	movl	-112(%rbp), %edx
	movl	-108(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -100(%rbp)
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rsi
	movl	-112(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$2097152, (%rax,%rdx,4)
	movl	-112(%rbp), %eax
	movl	%eax, -104(%rbp)
	jmp	.L14
.L15:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rsi
	movl	-112(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %edi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movl	-104(%rbp), %eax
	leal	1(%rax), %esi
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %r8
	movslq	%esi, %rdx
	imulq	%rcx, %rdx
	addq	%r8, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rdi,%rax), %esi
	movl	-112(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-88(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	imull	%eax, %ecx
	movq	-88(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	imull	%ecx, %eax
	addl	%esi, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rsi
	movl	-112(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	fmin@PLT
	movq	%rbx, %rsi
	shrq	$2, %rsi
	cvttsd2sil	%xmm0, %edx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-112(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -104(%rbp)
.L14:
	movl	-100(%rbp), %eax
	cmpl	-104(%rbp), %eax
	jg	.L15
	addl	$1, -112(%rbp)
.L13:
	movl	-116(%rbp), %eax
	subl	-108(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -112(%rbp)
	jle	.L16
	addl	$1, -108(%rbp)
.L12:
	movl	-116(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jle	.L17
	shrq	$2, %rbx
	movq	%rbx, %rcx
	movl	-116(%rbp), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	addq	%rcx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-152(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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"
	.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
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %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)
	movq	%rsp, %rax
	cmpq	%rax, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rax, %rsp
	jne	.L27
.L3:
	subq	$416, %rsp
	orq	$0, 408(%rsp)
	movq	%rsp, -72(%rbp)
	leaq	-36864(%rsp), %rax
.L5:
	cmpq	%rax, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	subq	$3952, %rsp
	orq	$0, 3944(%rsp)
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	leaq	-60(%rbp), %rsi
	movq	%rsp, -136(%rbp)
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	movl	%eax, -124(%rbp)
	testl	%eax, %eax
	jle	.L18
	movq	-72(%rbp), %rbx
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbx, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	movq	%rbx, %rsi
	xorl	%eax, %eax
	addl	$1, %r12d
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	cmpl	%r12d, %eax
	jge	.L9
	movl	%eax, -124(%rbp)
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	.L18
	leal	-1(%rbx), %edx
	movq	-136(%rbp), %rdi
	imulq	$408, %rdx, %rdx
	leaq	408(%rdi), %rax
	leaq	816(%rdi,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$0, (%rax)
	addq	$408, %rax
	cmpq	%rdx, %rax
	jne	.L10
	movl	-124(%rbp), %eax
	cmpl	$1, %eax
	jle	.L18
	movq	-72(%rbp), %rbx
	addl	$1, %eax
	movq	$2, -112(%rbp)
	movl	%eax, -128(%rbp)
	addq	$8, %rbx
	movq	%rax, -144(%rbp)
	movq	%rbx, -104(%rbp)
	movq	-136(%rbp), %rbx
	addq	$412, %rbx
	movq	%rbx, -120(%rbp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	-112(%rbp), %rbx
	movl	-128(%rbp), %eax
	subl	%ebx, %eax
	movl	%ebx, %r12d
	testl	%eax, %eax
	jle	.L15
	movq	-136(%rbp), %rax
	movq	-120(%rbp), %rbx
	movq	$1, -88(%rbp)
	leaq	404(%rax), %r13
	movl	-124(%rbp), %eax
	subl	-112(%rbp), %eax
	addq	$2, %rax
	movq	%rax, -96(%rbp)
	.p2align 4,,10
	.p2align 3
.L14:
	movl	$2097152, (%rbx)
	cmpl	-88(%rbp), %r12d
	jle	.L17
	movq	-88(%rbp), %r14
	movq	-72(%rbp), %rax
	movq	%rbx, %r15
	movl	$2097152, %esi
	movl	-4(%rax,%r14,4), %eax
	movl	%eax, -76(%rbp)
	movq	-104(%rbp), %rax
	movl	-4(%rax,%r14,4), %eax
	movl	%eax, -80(%rbp)
	.p2align 4,,10
	.p2align 3
.L16:
	movq	-72(%rbp), %rdx
	movl	-76(%rbp), %ecx
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	404(%r15), %eax
	addl	0(%r13,%r14,4), %eax
	cvtsi2sdl	%esi, %xmm0
	addq	$404, %r15
	imull	(%rdx,%r14,4), %ecx
	addq	$1, %r14
	imull	-80(%rbp), %ecx
	addl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %esi
	movl	%esi, (%rbx)
	cmpl	%r14d, %r12d
	jg	.L16
.L17:
	addq	$1, -88(%rbp)
	addl	$1, %r12d
	movq	-88(%rbp), %rax
	addq	$408, %rbx
	addq	$404, %r13
	cmpq	-96(%rbp), %rax
	jne	.L14
.L15:
	addq	$1, -112(%rbp)
	movq	-112(%rbp), %rax
	addq	$4, -104(%rbp)
	addq	$4, -120(%rbp)
	cmpq	-144(%rbp), %rax
	jne	.L12
.L18:
	movslq	-124(%rbp), %rax
	movq	-136(%rbp), %rbx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	movl	404(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$10, %edi
	call	putchar@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L28
	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
.L28:
	.cfi_restore_state
	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"
	.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
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %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)
	movq	%rsp, %rax
	cmpq	%rax, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rax, %rsp
	jne	.L27
.L3:
	subq	$416, %rsp
	orq	$0, 408(%rsp)
	movq	%rsp, -72(%rbp)
	leaq	-36864(%rsp), %rax
.L5:
	cmpq	%rax, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	subq	$3952, %rsp
	orq	$0, 3944(%rsp)
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	leaq	-60(%rbp), %rsi
	movq	%rsp, -136(%rbp)
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	movl	%eax, -124(%rbp)
	testl	%eax, %eax
	jle	.L18
	movq	-72(%rbp), %rbx
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbx, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	movq	%rbx, %rsi
	xorl	%eax, %eax
	addl	$1, %r12d
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	cmpl	%r12d, %eax
	jge	.L9
	movl	%eax, -124(%rbp)
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	.L18
	leal	-1(%rbx), %edx
	movq	-136(%rbp), %rdi
	imulq	$408, %rdx, %rdx
	leaq	408(%rdi), %rax
	leaq	816(%rdi,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$0, (%rax)
	addq	$408, %rax
	cmpq	%rdx, %rax
	jne	.L10
	movl	-124(%rbp), %eax
	cmpl	$1, %eax
	jle	.L18
	movq	-72(%rbp), %rbx
	addl	$1, %eax
	movq	$2, -112(%rbp)
	movl	%eax, -128(%rbp)
	addq	$8, %rbx
	movq	%rax, -144(%rbp)
	movq	%rbx, -104(%rbp)
	movq	-136(%rbp), %rbx
	addq	$412, %rbx
	movq	%rbx, -120(%rbp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	-112(%rbp), %rbx
	movl	-128(%rbp), %eax
	subl	%ebx, %eax
	movl	%ebx, %r12d
	testl	%eax, %eax
	jle	.L15
	movq	-136(%rbp), %rax
	movq	-120(%rbp), %rbx
	movq	$1, -88(%rbp)
	leaq	404(%rax), %r13
	movl	-124(%rbp), %eax
	subl	-112(%rbp), %eax
	addq	$2, %rax
	movq	%rax, -96(%rbp)
	.p2align 4,,10
	.p2align 3
.L14:
	movl	$2097152, (%rbx)
	cmpl	-88(%rbp), %r12d
	jle	.L17
	movq	-88(%rbp), %r14
	movq	-72(%rbp), %rax
	movq	%rbx, %r15
	movl	$2097152, %esi
	movl	-4(%rax,%r14,4), %eax
	movl	%eax, -76(%rbp)
	movq	-104(%rbp), %rax
	movl	-4(%rax,%r14,4), %eax
	movl	%eax, -80(%rbp)
	.p2align 4,,10
	.p2align 3
.L16:
	movq	-72(%rbp), %rdx
	movl	-76(%rbp), %ecx
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	404(%r15), %eax
	addl	0(%r13,%r14,4), %eax
	cvtsi2sdl	%esi, %xmm0
	addq	$404, %r15
	imull	(%rdx,%r14,4), %ecx
	addq	$1, %r14
	imull	-80(%rbp), %ecx
	addl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm1
	call	fmin@PLT
	cvttsd2sil	%xmm0, %esi
	movl	%esi, (%rbx)
	cmpl	%r14d, %r12d
	jg	.L16
.L17:
	addq	$1, -88(%rbp)
	addl	$1, %r12d
	movq	-88(%rbp), %rax
	addq	$408, %rbx
	addq	$404, %r13
	cmpq	-96(%rbp), %rax
	jne	.L14
.L15:
	addq	$1, -112(%rbp)
	movq	-112(%rbp), %rax
	addq	$4, -104(%rbp)
	addq	$4, -120(%rbp)
	cmpq	-144(%rbp), %rax
	jne	.L12
.L18:
	movslq	-124(%rbp), %rax
	movq	-136(%rbp), %rbx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	movl	404(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$10, %edi
	call	putchar@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L28
	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
.L28:
	.cfi_restore_state
	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>
#include<math.h>

 static int N=100;

int main(){
  int i,l,j,k,n,p[N+1],m[N+1][N+1];
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    scanf("%d",&p[i-1]);
    scanf("%d",&p[i]);
  }

  for(i=1;i<=n;i++)m[i][i]=0;
  for(l=2;l<=n;l++){
    for(i=1;i<=n-l+1;i++){
      j=i+l-1;
      m[i][j]=1<<21;
      for(k=i;k<=j-1;k++){
	m[i][j]=fmin(m[i][j],m[i][k]+m[k+1][j]+p[i-1]*p[k]*p[j]);
      }
    }
  }
 
  printf("%d",m[1][n]);
  printf("\n");
  return 0;
}


6
10 35
35 15
15 5
5 10
10 20
20 25
 6
1 35
35 15
15 5
5 10
10 20
20 25
 6
30 35
35 15
15 5
5 10
10 20
20 29
 6
2 35
35 15
15 5
5 10
10 20
20 25
 6
2 35
35 15
15 5
5 10
10 20
20 24
 6
30 35
35 15
15 5
5 10
10 20
20 27
 6
30 35
35 15
15 5
5 10
10 20
20 8
 6
30 35
35 15
15 5
5 10
10 20
20 7
 6
2 35
35 15
15 5
5 10
10 20
20 34
 6
29 35
35 15
15 5
5 10
10 20
20 7

9125
 1350
 16125
 2700
 2660
 15625
 10875
 10625
 3060
 10415

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<math.h>

 static int N=100;

int main(){
  int i,l,j,k,n,p[N+1],m[N+1][N+1];
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    scanf("%d",&p[i-1]);
    scanf("%d",&p[i]);
  }

  for(i=1;i<=n;i++)m[i][i]=0;
  for(l=2;l<=n;l++){
    for(i=1;i<=n-l+1;i++){
      j=i+l-1;
      m[i][j]=1<<21;
      for(k=i;k<=j-1;k++){
	m[i][j]=fmin(m[i][j],m[i][k]+m[k+1][j]+p[i-1]*p[k]*p[j]);
      }
    }
  }
 
  printf("%d",m[1][n]);
  printf("\n");
  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.data
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.long	100
	.section	.rodata
.LC0:
	.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	$120, %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, -152(%rbp)
	movl	N(%rip), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, %rcx
	movl	$0, %ebx
	movslq	%edx, %rax
	movq	%rax, %rsi
	movl	$0, %edi
	movslq	%edx, %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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	N(%rip), %eax
	leal	1(%rax), %ecx
	movl	N(%rip), %eax
	leal	1(%rax), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r10
	movl	$0, %r11d
	movslq	%esi, %rax
	movq	%rax, %r8
	movl	$0, %r9d
	movq	%r11, %rdx
	imulq	%r8, %rdx
	movq	%r9, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r10, %rax
	mulq	%r8
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	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, -64(%rbp)
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -112(%rbp)
	jmp	.L8
.L9:
	movl	-112(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -112(%rbp)
.L8:
	movl	-116(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jle	.L9
	movl	$1, -112(%rbp)
	jmp	.L10
.L11:
	movq	%rbx, %rdx
	shrq	$2, %rdx
	movq	-64(%rbp), %rax
	leaq	1(%rdx), %rcx
	movl	-112(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -112(%rbp)
.L10:
	movl	-116(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jle	.L11
	movl	$2, -108(%rbp)
	jmp	.L12
.L17:
	movl	$1, -112(%rbp)
	jmp	.L13
.L16:
	movl	-112(%rbp), %edx
	movl	-108(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -100(%rbp)
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rsi
	movl	-112(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$2097152, (%rax,%rdx,4)
	movl	-112(%rbp), %eax
	movl	%eax, -104(%rbp)
	jmp	.L14
.L15:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rsi
	movl	-112(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %edi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movl	-104(%rbp), %eax
	leal	1(%rax), %esi
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %r8
	movslq	%esi, %rdx
	imulq	%rcx, %rdx
	addq	%r8, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rdi,%rax), %esi
	movl	-112(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-88(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	imull	%eax, %ecx
	movq	-88(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	imull	%ecx, %eax
	addl	%esi, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rsi
	movl	-112(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	fmin@PLT
	movq	%rbx, %rsi
	shrq	$2, %rsi
	cvttsd2sil	%xmm0, %edx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-112(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -104(%rbp)
.L14:
	movl	-100(%rbp), %eax
	cmpl	-104(%rbp), %eax
	jg	.L15
	addl	$1, -112(%rbp)
.L13:
	movl	-116(%rbp), %eax
	subl	-108(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -112(%rbp)
	jle	.L16
	addl	$1, -108(%rbp)
.L12:
	movl	-116(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jle	.L17
	shrq	$2, %rbx
	movq	%rbx, %rcx
	movl	-116(%rbp), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	addq	%rcx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-152(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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
	.data
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.long	100
	.section	.rodata
.LC0:
	.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	$120, %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, -152(%rbp)
	movl	N(%rip), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, %rcx
	movl	$0, %ebx
	movslq	%edx, %rax
	movq	%rax, %rsi
	movl	$0, %edi
	movslq	%edx, %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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	N(%rip), %eax
	leal	1(%rax), %ecx
	movl	N(%rip), %eax
	leal	1(%rax), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r10
	movl	$0, %r11d
	movslq	%esi, %rax
	movq	%rax, %r8
	movl	$0, %r9d
	movq	%r11, %rdx
	imulq	%r8, %rdx
	movq	%r9, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r10, %rax
	mulq	%r8
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	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, -64(%rbp)
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -112(%rbp)
	jmp	.L8
.L9:
	movl	-112(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -112(%rbp)
.L8:
	movl	-116(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jle	.L9
	movl	$1, -112(%rbp)
	jmp	.L10
.L11:
	movq	%rbx, %rdx
	shrq	$2, %rdx
	movq	-64(%rbp), %rax
	leaq	1(%rdx), %rcx
	movl	-112(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -112(%rbp)
.L10:
	movl	-116(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jle	.L11
	movl	$2, -108(%rbp)
	jmp	.L12
.L17:
	movl	$1, -112(%rbp)
	jmp	.L13
.L16:
	movl	-112(%rbp), %edx
	movl	-108(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -100(%rbp)
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rsi
	movl	-112(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$2097152, (%rax,%rdx,4)
	movl	-112(%rbp), %eax
	movl	%eax, -104(%rbp)
	jmp	.L14
.L15:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rsi
	movl	-112(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %edi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movl	-104(%rbp), %eax
	leal	1(%rax), %esi
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %r8
	movslq	%esi, %rdx
	imulq	%rcx, %rdx
	addq	%r8, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rdi,%rax), %esi
	movl	-112(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-88(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	imull	%eax, %ecx
	movq	-88(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	imull	%ecx, %eax
	addl	%esi, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rsi
	movl	-112(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	fmin@PLT
	movq	%rbx, %rsi
	shrq	$2, %rsi
	cvttsd2sil	%xmm0, %edx
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-112(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -104(%rbp)
.L14:
	movl	-100(%rbp), %eax
	cmpl	-104(%rbp), %eax
	jg	.L15
	addl	$1, -112(%rbp)
.L13:
	movl	-116(%rbp), %eax
	subl	-108(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -112(%rbp)
	jle	.L16
	addl	$1, -108(%rbp)
.L12:
	movl	-116(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jle	.L17
	shrq	$2, %rbx
	movq	%rbx, %rcx
	movl	-116(%rbp), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	addq	%rcx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-152(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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:
