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 i,j,k,l,n,o,max,mi;
  while(scanf("%d %d",&l,&n),l||n){
    int a[2][101][101]={0};
    int m[2][101][101]={0};
    while(l--){
      scanf("%d %d %d %d",&i,&j,&k,&o);
      m[0][i][j]=m[0][j][i]=k;
      m[1][i][j]=m[1][j][i]=o;
    }
    for(o=0;o<2;o++){
      for(i=1;i<=n;i++){//start
	int c[101]={0};
	c[i]=1;
	mi=i;
	for(k=0;k<n;k++){
	  for(j=1;j<=n;j++){
	    if(c[j]==1)continue;
	    if(m[o][mi][j]==0)continue;
	    if(a[o][i][j]==0)a[o][i][j]=a[o][i][mi]+m[o][mi][j];
	    else if(a[o][i][j]>a[o][i][mi]+m[o][mi][j]){
	            a[o][i][j]=a[o][i][mi]+m[o][mi][j];
	    }
	  }
	  max=2100000000;
	  for(j=1;j<=n;j++){
	    if(c[j]==1)continue;
	    if(a[o][i][j]==0)continue;
	    if(max>a[o][i][j]){
	      max=a[o][i][j];
	      mi=j;
	    }
	  }
	  c[mi]=1;
	}
      }
    }
    scanf("%d",&n);
    while(n--){
      scanf("%d %d %d",&i,&j,&k);
      printf("%d\n",a[k][i][j]);
    }
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d %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
	leaq	-159744(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3936, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L27:
	leaq	-163232(%rbp), %rax
	movl	$81608, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-81616(%rbp), %rax
	movl	$81608, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L3
.L4:
	leaq	-163660(%rbp), %rsi
	leaq	-163672(%rbp), %rcx
	leaq	-163676(%rbp), %rdx
	leaq	-163680(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-163676(%rbp), %ecx
	movl	-163680(%rbp), %esi
	movl	-163672(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	movl	%edi, -81616(%rbp,%rax,4)
	movl	-163680(%rbp), %edi
	movl	-163676(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-81616(%rbp,%rax,4), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -81616(%rbp,%rax,4)
	movl	-163676(%rbp), %ecx
	movl	-163680(%rbp), %esi
	movl	-163660(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	$10201, %rax
	movl	%edi, -81616(%rbp,%rax,4)
	movl	-163680(%rbp), %edi
	movl	-163676(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$10201, %rax
	movl	-81616(%rbp,%rax,4), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$10201, %rax
	movl	%ecx, -81616(%rbp,%rax,4)
.L3:
	movl	-163668(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -163668(%rbp)
	testl	%eax, %eax
	jne	.L4
	movl	$0, -163660(%rbp)
	jmp	.L5
.L21:
	movl	$1, -163680(%rbp)
	jmp	.L6
.L20:
	leaq	-163648(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	-163680(%rbp), %eax
	cltq
	movl	$1, -163648(%rbp,%rax,4)
	movl	-163680(%rbp), %eax
	movl	%eax, -163652(%rbp)
	movl	$0, -163672(%rbp)
	jmp	.L7
.L19:
	movl	$1, -163676(%rbp)
	jmp	.L8
.L13:
	movl	-163676(%rbp), %eax
	cltq
	movl	-163648(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L30
	movl	-163660(%rbp), %eax
	movl	-163676(%rbp), %edx
	movslq	%edx, %rcx
	cltq
	movl	-163652(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-81616(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L31
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L12
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163652(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %edi
	movl	-163660(%rbp), %eax
	movl	-163676(%rbp), %edx
	movslq	%edx, %rcx
	cltq
	movl	-163652(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-81616(%rbp,%rax,4), %ecx
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %esi
	addl	%edi, %ecx
	movslq	%esi, %rsi
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rdi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	movl	%ecx, -163232(%rbp,%rax,4)
	jmp	.L10
.L12:
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %ecx
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163652(%rbp), %esi
	movslq	%esi, %rsi
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rdi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	movl	-163232(%rbp,%rax,4), %esi
	movl	-163660(%rbp), %eax
	movl	-163676(%rbp), %edx
	movslq	%edx, %rdi
	cltq
	movl	-163652(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10201, %rax, %r8
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rdi, %rax
	movl	-81616(%rbp,%rax,4), %eax
	addl	%esi, %eax
	cmpl	%eax, %ecx
	jle	.L10
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163652(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %edi
	movl	-163660(%rbp), %eax
	movl	-163676(%rbp), %edx
	movslq	%edx, %rcx
	cltq
	movl	-163652(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-81616(%rbp,%rax,4), %ecx
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %esi
	addl	%edi, %ecx
	movslq	%esi, %rsi
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rdi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	movl	%ecx, -163232(%rbp,%rax,4)
	jmp	.L10
.L30:
	nop
	jmp	.L10
.L31:
	nop
.L10:
	movl	-163676(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163676(%rbp)
.L8:
	movl	-163676(%rbp), %edx
	movl	-163664(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	$2100000000, -163656(%rbp)
	movl	$1, -163676(%rbp)
	jmp	.L14
.L18:
	movl	-163676(%rbp), %eax
	cltq
	movl	-163648(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L32
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L33
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	cmpl	%eax, -163656(%rbp)
	jle	.L16
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	movl	%eax, -163656(%rbp)
	movl	-163676(%rbp), %eax
	movl	%eax, -163652(%rbp)
	jmp	.L16
.L32:
	nop
	jmp	.L16
.L33:
	nop
.L16:
	movl	-163676(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163676(%rbp)
.L14:
	movl	-163676(%rbp), %edx
	movl	-163664(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L18
	movl	-163652(%rbp), %eax
	cltq
	movl	$1, -163648(%rbp,%rax,4)
	movl	-163672(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163672(%rbp)
.L7:
	movl	-163672(%rbp), %edx
	movl	-163664(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	-163680(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163680(%rbp)
.L6:
	movl	-163680(%rbp), %edx
	movl	-163664(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L20
	movl	-163660(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163660(%rbp)
.L5:
	movl	-163660(%rbp), %eax
	cmpl	$1, %eax
	jle	.L21
	leaq	-163664(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L22
.L23:
	leaq	-163672(%rbp), %rcx
	leaq	-163676(%rbp), %rdx
	leaq	-163680(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-163672(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L22:
	movl	-163664(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -163664(%rbp)
	testl	%eax, %eax
	jne	.L23
.L2:
	leaq	-163664(%rbp), %rdx
	leaq	-163668(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-163668(%rbp), %eax
	testl	%eax, %eax
	jne	.L24
	movl	-163664(%rbp), %eax
	testl	%eax, %eax
	je	.L25
.L24:
	movl	$1, %eax
	jmp	.L26
.L25:
	movl	$0, %eax
.L26:
	testl	%eax, %eax
	jne	.L27
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	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 %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d %d"
	.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
	leaq	-159744(%rsp), %r11
	.cfi_def_cfa 11, 159800
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4008, %rsp
	.cfi_def_cfa_offset 163808
	movq	%fs:40, %rax
	movq	%rax, 163736(%rsp)
	xorl	%eax, %eax
	leaq	88(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	84(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	916(%rsp), %rax
	movq	%rax, 56(%rsp)
.L2:
	movq	40(%rsp), %rdx
	movq	48(%rsp), %rsi
	leaq	.LC4(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	84(%rsp), %ebx
	testl	%ebx, %ebx
	jne	.L18
	movl	88(%rsp), %eax
	movl	%eax, 8(%rsp)
	testl	%eax, %eax
	je	.L42
	leaq	512(%rsp), %rdi
	movl	$81608, %edx
	xorl	%esi, %esi
	call	memset@PLT
	leaq	82128(%rsp), %r12
	movl	$81608, %edx
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	memset@PLT
	movl	$-1, 84(%rsp)
	movl	8(%rsp), %eax
.L20:
	leal	1(%rax), %ebx
	movl	$0, 92(%rsp)
	xorl	%ebp, %ebp
	movq	%r12, %r14
	movl	$0, 36(%rsp)
	leaq	96(%rsp), %r15
	movl	%ebx, 32(%rsp)
.L5:
	movl	8(%rsp), %eax
	movl	$1, 72(%rsp)
	testl	%eax, %eax
	jle	.L15
	leaq	100(%rsp), %rax
	movl	$1, 12(%rsp)
	movq	%rbp, %r13
	movq	%rax, 16(%rsp)
	movq	56(%rsp), %rax
	leaq	(%rax,%rbp), %r11
	movslq	36(%rsp), %rax
	imulq	$10201, %rax, %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%eax, %eax
	movl	$50, %ecx
	movq	%r15, %rdi
	movslq	12(%rsp), %r10
	rep stosq
	movq	16(%rsp), %rax
	xorl	%r12d, %r12d
	movl	%r10d, %esi
	movl	$0, (%rdi)
	leaq	4(%r11), %rdi
	movl	$1, (%rax)
	leaq	(%r10,%r10,4), %rax
	movq	%rdi, (%rsp)
	leaq	(%rax,%rax,4), %rax
	leaq	(%r10,%rax,4), %rbp
	addq	24(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	imulq	$404, %r10, %rdi
	movq	(%rsp), %rcx
	movl	$1, %eax
	addq	%r13, %rdi
	addq	%r14, %rdi
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$1, (%r15,%rax,4)
	je	.L7
	movl	(%rdi,%rax,4), %edx
	testl	%edx, %edx
	je	.L7
	movl	(%rcx), %r8d
	leaq	0(%rbp,%r10), %r9
	addl	512(%rsp,%r9,4), %edx
	testl	%r8d, %r8d
	je	.L40
	cmpl	%edx, %r8d
	jle	.L7
.L40:
	movl	%edx, (%rcx)
.L7:
	addq	$1, %rax
	addq	$4, %rcx
	cmpq	%rbx, %rax
	jne	.L9
	movl	$1, %eax
	movl	$2100000000, %ecx
	.p2align 4,,10
	.p2align 3
.L12:
	cmpl	$1, (%r15,%rax,4)
	je	.L10
	movl	(%r11,%rax,4), %edx
	cmpl	%ecx, %edx
	jge	.L10
	testl	%edx, %edx
	setne	%dil
	testb	%dil, %dil
	cmovne	%eax, %esi
	cmovne	%edx, %ecx
.L10:
	addq	$1, %rax
	cmpq	%rbx, %rax
	jne	.L12
	movslq	%esi, %r10
	addl	$1, %r12d
	movl	$1, 96(%rsp,%r10,4)
	cmpl	8(%rsp), %r12d
	jne	.L13
	movl	8(%rsp), %eax
	addl	$1, 12(%rsp)
	addq	$404, %r11
	movl	32(%rsp), %esi
	addq	$4, 16(%rsp)
	movl	%eax, 80(%rsp)
	movl	12(%rsp), %eax
	movl	%esi, 76(%rsp)
	movl	%eax, 72(%rsp)
	cmpl	%esi, %eax
	jne	.L14
	movq	%r13, %rbp
.L15:
	movl	36(%rsp), %eax
	addq	$40804, %rbp
	movl	$1, 36(%rsp)
	addl	$1, %eax
	movl	%eax, 92(%rsp)
	cmpl	$2, %eax
	jne	.L5
	movq	40(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	88(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 88(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	80(%rsp), %r13
	leaq	76(%rsp), %r15
	leaq	72(%rsp), %rbp
	leaq	.LC2(%rip), %r14
	leaq	.LC3(%rip), %rbx
.L16:
	movq	%r13, %rcx
	movq	%r15, %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	72(%rsp), %rdx
	movslq	80(%rsp), %rax
	movl	$1, %edi
	movslq	76(%rsp), %rsi
	imulq	$10201, %rax, %rax
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rbx, %rsi
	movl	512(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	88(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 88(%rsp)
	testl	%eax, %eax
	jne	.L16
	jmp	.L2
.L18:
	movl	$81608, %edx
	xorl	%esi, %esi
	leaq	80(%rsp), %r13
	subl	$1, %ebx
	leaq	512(%rsp), %rdi
	leaq	82128(%rsp), %r12
	call	memset@PLT
	movl	$81608, %edx
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	memset@PLT
	leaq	76(%rsp), %r15
	movl	%ebx, 84(%rsp)
	leaq	72(%rsp), %rbp
	leaq	92(%rsp), %rbx
.L3:
	movq	%r13, %rcx
	movq	%r15, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %r8
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	76(%rsp), %rcx
	movslq	72(%rsp), %rax
	movl	80(%rsp), %esi
	leaq	(%rcx,%rcx,4), %rdx
	leaq	(%rax,%rax,4), %rdi
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rdi,%rdi,4), %rdi
	leaq	(%rcx,%rdx,4), %rdx
	addq	%rax, %rdx
	leaq	(%rax,%rdi,4), %rax
	addq	%rcx, %rax
	movl	92(%rsp), %ecx
	movl	%esi, 82128(%rsp,%rdx,4)
	movl	%esi, 82128(%rsp,%rax,4)
	movl	%ecx, 122932(%rsp,%rdx,4)
	movl	%ecx, 122932(%rsp,%rax,4)
	movl	84(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 84(%rsp)
	testl	%eax, %eax
	jne	.L3
	movl	88(%rsp), %eax
	movl	%eax, 8(%rsp)
	jmp	.L20
.L42:
	movq	163736(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$163752, %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
.L43:
	.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 %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d %d"
	.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
	leaq	-159744(%rsp), %r11
	.cfi_def_cfa 11, 159800
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4008, %rsp
	.cfi_def_cfa_offset 163808
	movq	%fs:40, %rax
	movq	%rax, 163736(%rsp)
	xorl	%eax, %eax
	leaq	88(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	84(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	916(%rsp), %rax
	movq	%rax, 56(%rsp)
.L2:
	movq	40(%rsp), %rdx
	movq	48(%rsp), %rsi
	leaq	.LC4(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	84(%rsp), %ebx
	testl	%ebx, %ebx
	jne	.L18
	movl	88(%rsp), %eax
	movl	%eax, 8(%rsp)
	testl	%eax, %eax
	je	.L42
	leaq	512(%rsp), %rdi
	movl	$81608, %edx
	xorl	%esi, %esi
	call	memset@PLT
	leaq	82128(%rsp), %r12
	movl	$81608, %edx
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	memset@PLT
	movl	$-1, 84(%rsp)
	movl	8(%rsp), %eax
.L20:
	leal	1(%rax), %ebx
	movl	$0, 92(%rsp)
	xorl	%ebp, %ebp
	movq	%r12, %r14
	movl	$0, 36(%rsp)
	leaq	96(%rsp), %r15
	movl	%ebx, 32(%rsp)
.L5:
	movl	8(%rsp), %eax
	movl	$1, 72(%rsp)
	testl	%eax, %eax
	jle	.L15
	leaq	100(%rsp), %rax
	movl	$1, 12(%rsp)
	movq	%rbp, %r13
	movq	%rax, 16(%rsp)
	movq	56(%rsp), %rax
	leaq	(%rax,%rbp), %r11
	movslq	36(%rsp), %rax
	imulq	$10201, %rax, %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%eax, %eax
	movl	$50, %ecx
	movq	%r15, %rdi
	movslq	12(%rsp), %r10
	rep stosq
	movq	16(%rsp), %rax
	xorl	%r12d, %r12d
	movl	%r10d, %esi
	movl	$0, (%rdi)
	leaq	4(%r11), %rdi
	movl	$1, (%rax)
	leaq	(%r10,%r10,4), %rax
	movq	%rdi, (%rsp)
	leaq	(%rax,%rax,4), %rax
	leaq	(%r10,%rax,4), %rbp
	addq	24(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	imulq	$404, %r10, %rdi
	movq	(%rsp), %rcx
	movl	$1, %eax
	addq	%r13, %rdi
	addq	%r14, %rdi
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	$1, (%r15,%rax,4)
	je	.L7
	movl	(%rdi,%rax,4), %edx
	testl	%edx, %edx
	je	.L7
	movl	(%rcx), %r8d
	leaq	0(%rbp,%r10), %r9
	addl	512(%rsp,%r9,4), %edx
	testl	%r8d, %r8d
	je	.L40
	cmpl	%edx, %r8d
	jle	.L7
.L40:
	movl	%edx, (%rcx)
.L7:
	addq	$1, %rax
	addq	$4, %rcx
	cmpq	%rbx, %rax
	jne	.L9
	movl	$1, %eax
	movl	$2100000000, %ecx
	.p2align 4,,10
	.p2align 3
.L12:
	cmpl	$1, (%r15,%rax,4)
	je	.L10
	movl	(%r11,%rax,4), %edx
	cmpl	%ecx, %edx
	jge	.L10
	testl	%edx, %edx
	setne	%dil
	testb	%dil, %dil
	cmovne	%eax, %esi
	cmovne	%edx, %ecx
.L10:
	addq	$1, %rax
	cmpq	%rbx, %rax
	jne	.L12
	movslq	%esi, %r10
	addl	$1, %r12d
	movl	$1, 96(%rsp,%r10,4)
	cmpl	8(%rsp), %r12d
	jne	.L13
	movl	8(%rsp), %eax
	addl	$1, 12(%rsp)
	addq	$404, %r11
	movl	32(%rsp), %esi
	addq	$4, 16(%rsp)
	movl	%eax, 80(%rsp)
	movl	12(%rsp), %eax
	movl	%esi, 76(%rsp)
	movl	%eax, 72(%rsp)
	cmpl	%esi, %eax
	jne	.L14
	movq	%r13, %rbp
.L15:
	movl	36(%rsp), %eax
	addq	$40804, %rbp
	movl	$1, 36(%rsp)
	addl	$1, %eax
	movl	%eax, 92(%rsp)
	cmpl	$2, %eax
	jne	.L5
	movq	40(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	88(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 88(%rsp)
	testl	%eax, %eax
	je	.L2
	leaq	80(%rsp), %r13
	leaq	76(%rsp), %r15
	leaq	72(%rsp), %rbp
	leaq	.LC2(%rip), %r14
	leaq	.LC3(%rip), %rbx
.L16:
	movq	%r13, %rcx
	movq	%r15, %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	72(%rsp), %rdx
	movslq	80(%rsp), %rax
	movl	$1, %edi
	movslq	76(%rsp), %rsi
	imulq	$10201, %rax, %rax
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rdx
	addq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rbx, %rsi
	movl	512(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	88(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 88(%rsp)
	testl	%eax, %eax
	jne	.L16
	jmp	.L2
.L18:
	movl	$81608, %edx
	xorl	%esi, %esi
	leaq	80(%rsp), %r13
	subl	$1, %ebx
	leaq	512(%rsp), %rdi
	leaq	82128(%rsp), %r12
	call	memset@PLT
	movl	$81608, %edx
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	memset@PLT
	leaq	76(%rsp), %r15
	movl	%ebx, 84(%rsp)
	leaq	72(%rsp), %rbp
	leaq	92(%rsp), %rbx
.L3:
	movq	%r13, %rcx
	movq	%r15, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %r8
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	76(%rsp), %rcx
	movslq	72(%rsp), %rax
	movl	80(%rsp), %esi
	leaq	(%rcx,%rcx,4), %rdx
	leaq	(%rax,%rax,4), %rdi
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rdi,%rdi,4), %rdi
	leaq	(%rcx,%rdx,4), %rdx
	addq	%rax, %rdx
	leaq	(%rax,%rdi,4), %rax
	addq	%rcx, %rax
	movl	92(%rsp), %ecx
	movl	%esi, 82128(%rsp,%rdx,4)
	movl	%esi, 82128(%rsp,%rax,4)
	movl	%ecx, 122932(%rsp,%rdx,4)
	movl	%ecx, 122932(%rsp,%rax,4)
	movl	84(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 84(%rsp)
	testl	%eax, %eax
	jne	.L3
	movl	88(%rsp), %eax
	movl	%eax, 8(%rsp)
	jmp	.L20
.L42:
	movq	163736(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$163752, %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
.L43:
	.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>
int main(){
  int i,j,k,l,n,o,max,mi;
  while(scanf("%d %d",&l,&n),l||n){
    int a[2][101][101]={0};
    int m[2][101][101]={0};
    while(l--){
      scanf("%d %d %d %d",&i,&j,&k,&o);
      m[0][i][j]=m[0][j][i]=k;
      m[1][i][j]=m[1][j][i]=o;
    }
    for(o=0;o<2;o++){
      for(i=1;i<=n;i++){//start
	int c[101]={0};
	c[i]=1;
	mi=i;
	for(k=0;k<n;k++){
	  for(j=1;j<=n;j++){
	    if(c[j]==1)continue;
	    if(m[o][mi][j]==0)continue;
	    if(a[o][i][j]==0)a[o][i][j]=a[o][i][mi]+m[o][mi][j];
	    else if(a[o][i][j]>a[o][i][mi]+m[o][mi][j]){
	            a[o][i][j]=a[o][i][mi]+m[o][mi][j];
	    }
	  }
	  max=2100000000;
	  for(j=1;j<=n;j++){
	    if(c[j]==1)continue;
	    if(a[o][i][j]==0)continue;
	    if(max>a[o][i][j]){
	      max=a[o][i][j];
	      mi=j;
	    }
	  }
	  c[mi]=1;
	}
      }
    }
    scanf("%d",&n);
    while(n--){
      scanf("%d %d %d",&i,&j,&k);
      printf("%d\n",a[k][i][j]);
    }
  }
  return 0;
}
6 5
1 2 200 10
1 4 400 15
1 3 250 25
2 4 100 10
4 5 150 20
3 5 300 30
2
1 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 400 22
1 3 250 25
2 4 100 10
4 5 150 20
3 3 300 30
2
1 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 158 22
1 3 250 25
2 4 100 10
4 5 150 20
3 3 300 30
2
1 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 158 41
1 3 250 22
2 4 100 10
4 5 1 20
3 3 300 30
2
1 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 71 22
1 3 250 25
2 4 100 10
4 5 150 20
3 3 300 30
2
1 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 158 22
2 3 250 25
2 4 100 10
4 5 150 20
3 3 300 30
2
2 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 158 41
1 3 250 22
2 4 100 10
4 5 150 20
3 3 335 30
2
1 5 0
1 2 1
0 0
 6 5
1 2 200 10
1 4 400 15
1 3 250 25
1 4 100 10
4 5 150 20
2 3 95 30
2
1 5 0
1 5 1
0 0
 6 5
1 2 200 10
1 4 158 41
1 3 250 22
2 4 100 10
2 5 150 20
3 3 335 30
2
1 5 0
1 2 1
0 0
 6 5
1 2 200 12
1 4 400 15
1 3 250 25
2 4 100 10
4 5 150 20
3 5 300 21
2
1 5 0
2 5 1
0 0

450
35
 450
40
 308
40
 159
40
 221
40
 250
40
 308
10
 250
30
 350
10
 450
30

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 i,j,k,l,n,o,max,mi;
  while(scanf("%d %d",&l,&n),l||n){
    int a[2][101][101]={0};
    int m[2][101][101]={0};
    while(l--){
      scanf("%d %d %d %d",&i,&j,&k,&o);
      m[0][i][j]=m[0][j][i]=k;
      m[1][i][j]=m[1][j][i]=o;
    }
    for(o=0;o<2;o++){
      for(i=1;i<=n;i++){//start
	int c[101]={0};
	c[i]=1;
	mi=i;
	for(k=0;k<n;k++){
	  for(j=1;j<=n;j++){
	    if(c[j]==1)continue;
	    if(m[o][mi][j]==0)continue;
	    if(a[o][i][j]==0)a[o][i][j]=a[o][i][mi]+m[o][mi][j];
	    else if(a[o][i][j]>a[o][i][mi]+m[o][mi][j]){
	            a[o][i][j]=a[o][i][mi]+m[o][mi][j];
	    }
	  }
	  max=2100000000;
	  for(j=1;j<=n;j++){
	    if(c[j]==1)continue;
	    if(a[o][i][j]==0)continue;
	    if(max>a[o][i][j]){
	      max=a[o][i][j];
	      mi=j;
	    }
	  }
	  c[mi]=1;
	}
      }
    }
    scanf("%d",&n);
    while(n--){
      scanf("%d %d %d",&i,&j,&k);
      printf("%d\n",a[k][i][j]);
    }
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d %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
	leaq	-159744(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3936, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L27:
	leaq	-163232(%rbp), %rax
	movl	$81608, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-81616(%rbp), %rax
	movl	$81608, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L3
.L4:
	leaq	-163660(%rbp), %rsi
	leaq	-163672(%rbp), %rcx
	leaq	-163676(%rbp), %rdx
	leaq	-163680(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-163676(%rbp), %ecx
	movl	-163680(%rbp), %esi
	movl	-163672(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	movl	%edi, -81616(%rbp,%rax,4)
	movl	-163680(%rbp), %edi
	movl	-163676(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-81616(%rbp,%rax,4), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -81616(%rbp,%rax,4)
	movl	-163676(%rbp), %ecx
	movl	-163680(%rbp), %esi
	movl	-163660(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	$10201, %rax
	movl	%edi, -81616(%rbp,%rax,4)
	movl	-163680(%rbp), %edi
	movl	-163676(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$10201, %rax
	movl	-81616(%rbp,%rax,4), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$10201, %rax
	movl	%ecx, -81616(%rbp,%rax,4)
.L3:
	movl	-163668(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -163668(%rbp)
	testl	%eax, %eax
	jne	.L4
	movl	$0, -163660(%rbp)
	jmp	.L5
.L21:
	movl	$1, -163680(%rbp)
	jmp	.L6
.L20:
	leaq	-163648(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	-163680(%rbp), %eax
	cltq
	movl	$1, -163648(%rbp,%rax,4)
	movl	-163680(%rbp), %eax
	movl	%eax, -163652(%rbp)
	movl	$0, -163672(%rbp)
	jmp	.L7
.L19:
	movl	$1, -163676(%rbp)
	jmp	.L8
.L13:
	movl	-163676(%rbp), %eax
	cltq
	movl	-163648(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L30
	movl	-163660(%rbp), %eax
	movl	-163676(%rbp), %edx
	movslq	%edx, %rcx
	cltq
	movl	-163652(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-81616(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L31
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L12
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163652(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %edi
	movl	-163660(%rbp), %eax
	movl	-163676(%rbp), %edx
	movslq	%edx, %rcx
	cltq
	movl	-163652(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-81616(%rbp,%rax,4), %ecx
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %esi
	addl	%edi, %ecx
	movslq	%esi, %rsi
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rdi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	movl	%ecx, -163232(%rbp,%rax,4)
	jmp	.L10
.L12:
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %ecx
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163652(%rbp), %esi
	movslq	%esi, %rsi
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rdi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	movl	-163232(%rbp,%rax,4), %esi
	movl	-163660(%rbp), %eax
	movl	-163676(%rbp), %edx
	movslq	%edx, %rdi
	cltq
	movl	-163652(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10201, %rax, %r8
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rdi, %rax
	movl	-81616(%rbp,%rax,4), %eax
	addl	%esi, %eax
	cmpl	%eax, %ecx
	jle	.L10
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163652(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %edi
	movl	-163660(%rbp), %eax
	movl	-163676(%rbp), %edx
	movslq	%edx, %rcx
	cltq
	movl	-163652(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-81616(%rbp,%rax,4), %ecx
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %esi
	addl	%edi, %ecx
	movslq	%esi, %rsi
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rdi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	movl	%ecx, -163232(%rbp,%rax,4)
	jmp	.L10
.L30:
	nop
	jmp	.L10
.L31:
	nop
.L10:
	movl	-163676(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163676(%rbp)
.L8:
	movl	-163676(%rbp), %edx
	movl	-163664(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	$2100000000, -163656(%rbp)
	movl	$1, -163676(%rbp)
	jmp	.L14
.L18:
	movl	-163676(%rbp), %eax
	cltq
	movl	-163648(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L32
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L33
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	cmpl	%eax, -163656(%rbp)
	jle	.L16
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	movl	%eax, -163656(%rbp)
	movl	-163676(%rbp), %eax
	movl	%eax, -163652(%rbp)
	jmp	.L16
.L32:
	nop
	jmp	.L16
.L33:
	nop
.L16:
	movl	-163676(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163676(%rbp)
.L14:
	movl	-163676(%rbp), %edx
	movl	-163664(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L18
	movl	-163652(%rbp), %eax
	cltq
	movl	$1, -163648(%rbp,%rax,4)
	movl	-163672(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163672(%rbp)
.L7:
	movl	-163672(%rbp), %edx
	movl	-163664(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	-163680(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163680(%rbp)
.L6:
	movl	-163680(%rbp), %edx
	movl	-163664(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L20
	movl	-163660(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163660(%rbp)
.L5:
	movl	-163660(%rbp), %eax
	cmpl	$1, %eax
	jle	.L21
	leaq	-163664(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L22
.L23:
	leaq	-163672(%rbp), %rcx
	leaq	-163676(%rbp), %rdx
	leaq	-163680(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-163672(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L22:
	movl	-163664(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -163664(%rbp)
	testl	%eax, %eax
	jne	.L23
.L2:
	leaq	-163664(%rbp), %rdx
	leaq	-163668(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-163668(%rbp), %eax
	testl	%eax, %eax
	jne	.L24
	movl	-163664(%rbp), %eax
	testl	%eax, %eax
	je	.L25
.L24:
	movl	$1, %eax
	jmp	.L26
.L25:
	movl	$0, %eax
.L26:
	testl	%eax, %eax
	jne	.L27
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	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 %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d %d"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d %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
	leaq	-159744(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3936, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L27:
	leaq	-163232(%rbp), %rax
	movl	$81608, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-81616(%rbp), %rax
	movl	$81608, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L3
.L4:
	leaq	-163660(%rbp), %rsi
	leaq	-163672(%rbp), %rcx
	leaq	-163676(%rbp), %rdx
	leaq	-163680(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-163676(%rbp), %ecx
	movl	-163680(%rbp), %esi
	movl	-163672(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	movl	%edi, -81616(%rbp,%rax,4)
	movl	-163680(%rbp), %edi
	movl	-163676(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-81616(%rbp,%rax,4), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -81616(%rbp,%rax,4)
	movl	-163676(%rbp), %ecx
	movl	-163680(%rbp), %esi
	movl	-163660(%rbp), %edi
	movslq	%esi, %r8
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	$10201, %rax
	movl	%edi, -81616(%rbp,%rax,4)
	movl	-163680(%rbp), %edi
	movl	-163676(%rbp), %r8d
	movslq	%esi, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$10201, %rax
	movl	-81616(%rbp,%rax,4), %ecx
	movslq	%r8d, %rsi
	movslq	%edi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	$10201, %rax
	movl	%ecx, -81616(%rbp,%rax,4)
.L3:
	movl	-163668(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -163668(%rbp)
	testl	%eax, %eax
	jne	.L4
	movl	$0, -163660(%rbp)
	jmp	.L5
.L21:
	movl	$1, -163680(%rbp)
	jmp	.L6
.L20:
	leaq	-163648(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	-163680(%rbp), %eax
	cltq
	movl	$1, -163648(%rbp,%rax,4)
	movl	-163680(%rbp), %eax
	movl	%eax, -163652(%rbp)
	movl	$0, -163672(%rbp)
	jmp	.L7
.L19:
	movl	$1, -163676(%rbp)
	jmp	.L8
.L13:
	movl	-163676(%rbp), %eax
	cltq
	movl	-163648(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L30
	movl	-163660(%rbp), %eax
	movl	-163676(%rbp), %edx
	movslq	%edx, %rcx
	cltq
	movl	-163652(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-81616(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L31
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L12
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163652(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %edi
	movl	-163660(%rbp), %eax
	movl	-163676(%rbp), %edx
	movslq	%edx, %rcx
	cltq
	movl	-163652(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-81616(%rbp,%rax,4), %ecx
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %esi
	addl	%edi, %ecx
	movslq	%esi, %rsi
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rdi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	movl	%ecx, -163232(%rbp,%rax,4)
	jmp	.L10
.L12:
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %ecx
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163652(%rbp), %esi
	movslq	%esi, %rsi
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rdi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	movl	-163232(%rbp,%rax,4), %esi
	movl	-163660(%rbp), %eax
	movl	-163676(%rbp), %edx
	movslq	%edx, %rdi
	cltq
	movl	-163652(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10201, %rax, %r8
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r9
	addq	%r9, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rdi, %rax
	movl	-81616(%rbp,%rax,4), %eax
	addl	%esi, %eax
	cmpl	%eax, %ecx
	jle	.L10
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163652(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %edi
	movl	-163660(%rbp), %eax
	movl	-163676(%rbp), %edx
	movslq	%edx, %rcx
	cltq
	movl	-163652(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-81616(%rbp,%rax,4), %ecx
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %esi
	addl	%edi, %ecx
	movslq	%esi, %rsi
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rdi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %r8
	addq	%r8, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	addq	%rsi, %rax
	movl	%ecx, -163232(%rbp,%rax,4)
	jmp	.L10
.L30:
	nop
	jmp	.L10
.L31:
	nop
.L10:
	movl	-163676(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163676(%rbp)
.L8:
	movl	-163676(%rbp), %edx
	movl	-163664(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	$2100000000, -163656(%rbp)
	movl	$1, -163676(%rbp)
	jmp	.L14
.L18:
	movl	-163676(%rbp), %eax
	cltq
	movl	-163648(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L32
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L33
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	cmpl	%eax, -163656(%rbp)
	jle	.L16
	movl	-163660(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	movl	%eax, -163656(%rbp)
	movl	-163676(%rbp), %eax
	movl	%eax, -163652(%rbp)
	jmp	.L16
.L32:
	nop
	jmp	.L16
.L33:
	nop
.L16:
	movl	-163676(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163676(%rbp)
.L14:
	movl	-163676(%rbp), %edx
	movl	-163664(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L18
	movl	-163652(%rbp), %eax
	cltq
	movl	$1, -163648(%rbp,%rax,4)
	movl	-163672(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163672(%rbp)
.L7:
	movl	-163672(%rbp), %edx
	movl	-163664(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	-163680(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163680(%rbp)
.L6:
	movl	-163680(%rbp), %edx
	movl	-163664(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L20
	movl	-163660(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -163660(%rbp)
.L5:
	movl	-163660(%rbp), %eax
	cmpl	$1, %eax
	jle	.L21
	leaq	-163664(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L22
.L23:
	leaq	-163672(%rbp), %rcx
	leaq	-163676(%rbp), %rdx
	leaq	-163680(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-163672(%rbp), %eax
	movl	-163680(%rbp), %edx
	movl	-163676(%rbp), %ecx
	movslq	%ecx, %rcx
	cltq
	movslq	%edx, %rdx
	imulq	$10201, %rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movl	-163232(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L22:
	movl	-163664(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -163664(%rbp)
	testl	%eax, %eax
	jne	.L23
.L2:
	leaq	-163664(%rbp), %rdx
	leaq	-163668(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-163668(%rbp), %eax
	testl	%eax, %eax
	jne	.L24
	movl	-163664(%rbp), %eax
	testl	%eax, %eax
	je	.L25
.L24:
	movl	$1, %eax
	jmp	.L26
.L25:
	movl	$0, %eax
.L26:
	testl	%eax, %eax
	jne	.L27
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	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:
