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(void){

  int n , m;
  scanf("%d %d",&n,&m);

  int pass[101][101] = {0} , x[m] , y[m] , z[m];
  
  for(int i = 0;i <= n;i ++){
    for(int j = 0;j <= n;j ++){
      if(i != j){
        pass[i][j] = -1;
      }
    }
  }

  for(int i = 0;i < m;i ++){
    scanf("%d %d %d",&x[i] ,&y[i] ,&z[i]);
    pass[x[i]][y[i]] = z[i];
    pass[y[i]][x[i]] = z[i]; 
  }

  int count = 0 , flag = 0;
  
while(1){
  flag = 0;
  for(int i = 1;i <= n;i ++){
    for(int j = 1;j <= n;j ++){
      for(int k = 1;k <= n;k ++){
        if(pass[i][k] == -1 || pass[k][j] == -1){
          continue;
        }
        if(pass[i][j] == -1 || pass[i][k] + pass[k][j] < pass[i][j]){
          pass[i][j] = pass[i][k] + pass[k][j];
          pass[j][i] = pass[i][j];
          flag = 1;
        }
      }
    }
  }
  if(flag == 0){
    break;
  }
}
  for(int i = 0;i < m;i ++){
    flag = 0;
    for(int j = 0;j <= n;j ++){
      if(pass[j][x[i]] + z[i] == pass[j][y[i]]){
        flag = 1;
        break;
      }
    }
    if(flag == 1){
      count ++;
    }
  }

  printf("%d\n",m - count);

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-40960(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$24, %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, %rbx
	leaq	-40956(%rbp), %rax
	leaq	-40960(%rbp), %rcx
	movq	%rax, %rdx
	movq	%rcx, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-40864(%rbp), %rcx
	movl	$40804, %eax
	movq	%rax, %rdx
	movl	$0, %esi
	movq	%rcx, %rdi
	call	memset@PLT
	movl	-40956(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -40912(%rbp)
	movslq	%edx, %rax
	movq	%rax, -40976(%rbp)
	movq	$0, -40968(%rbp)
	movslq	%edx, %rax
	movq	%rax, -40992(%rbp)
	movq	$0, -40984(%rbp)
	movslq	%edx, %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
.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, -40904(%rbp)
	movl	-40956(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -40896(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -41008(%rbp)
	movq	$0, -41000(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -41024(%rbp)
	movq	$0, -41016(%rbp)
	cltq
	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, -40888(%rbp)
	movl	-40956(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -40880(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -40872(%rbp)
	movl	$0, -40952(%rbp)
	jmp	.L11
.L15:
	movl	$0, -40948(%rbp)
	jmp	.L12
.L14:
	movl	-40952(%rbp), %eax
	cmpl	-40948(%rbp), %eax
	je	.L13
	movl	-40948(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40952(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$-1, -40864(%rbp,%rax,4)
.L13:
	addl	$1, -40948(%rbp)
.L12:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40948(%rbp)
	jle	.L14
	addl	$1, -40952(%rbp)
.L11:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40952(%rbp)
	jle	.L15
	movl	$0, -40944(%rbp)
	jmp	.L16
.L17:
	movl	-40944(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40872(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-40944(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40888(%rbp), %rax
	addq	%rax, %rdx
	movl	-40944(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-40904(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40904(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-40888(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edi
	movq	-40872(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movslq	%edi, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movl	%ecx, -40864(%rbp,%rax,4)
	movq	-40888(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-40904(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edi
	movq	-40872(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movslq	%edi, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movl	%ecx, -40864(%rbp,%rax,4)
	addl	$1, -40944(%rbp)
.L16:
	movl	-40956(%rbp), %eax
	cmpl	%eax, -40944(%rbp)
	jl	.L17
	movl	$0, -40940(%rbp)
	movl	$0, -40936(%rbp)
.L30:
	movl	$0, -40936(%rbp)
	movl	$1, -40932(%rbp)
	jmp	.L18
.L27:
	movl	$1, -40928(%rbp)
	jmp	.L19
.L26:
	movl	$1, -40924(%rbp)
	jmp	.L20
.L25:
	movl	-40924(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L41
	movl	-40928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40924(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L41
	movl	-40928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L24
	movl	-40924(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %ecx
	movl	-40928(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40924(%rbp), %eax
	movslq	%eax, %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	-40864(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-40928(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40932(%rbp), %eax
	movslq	%eax, %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	-40864(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jge	.L23
.L24:
	movl	-40924(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %ecx
	movl	-40928(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40924(%rbp), %eax
	movslq	%eax, %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	-40864(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-40928(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40932(%rbp), %eax
	movslq	%eax, %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, -40864(%rbp,%rax,4)
	movl	-40928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %ecx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40928(%rbp), %eax
	movslq	%eax, %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, -40864(%rbp,%rax,4)
	movl	$1, -40936(%rbp)
	jmp	.L23
.L41:
	nop
.L23:
	addl	$1, -40924(%rbp)
.L20:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40924(%rbp)
	jle	.L25
	addl	$1, -40928(%rbp)
.L19:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40928(%rbp)
	jle	.L26
	addl	$1, -40932(%rbp)
.L18:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40932(%rbp)
	jle	.L27
	cmpl	$0, -40936(%rbp)
	je	.L42
	jmp	.L30
.L42:
	nop
	movl	$0, -40920(%rbp)
	jmp	.L31
.L37:
	movl	$0, -40936(%rbp)
	movl	$0, -40916(%rbp)
	jmp	.L32
.L35:
	movq	-40904(%rbp), %rax
	movl	-40920(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movslq	%eax, %rcx
	movl	-40916(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %ecx
	movq	-40872(%rbp), %rax
	movl	-40920(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%eax, %ecx
	movq	-40888(%rbp), %rax
	movl	-40920(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movslq	%eax, %rsi
	movl	-40916(%rbp), %eax
	movslq	%eax, %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	-40864(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jne	.L33
	movl	$1, -40936(%rbp)
	jmp	.L34
.L33:
	addl	$1, -40916(%rbp)
.L32:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40916(%rbp)
	jle	.L35
.L34:
	cmpl	$1, -40936(%rbp)
	jne	.L36
	addl	$1, -40940(%rbp)
.L36:
	addl	$1, -40920(%rbp)
.L31:
	movl	-40956(%rbp), %eax
	cmpl	%eax, -40920(%rbp)
	jl	.L37
	movl	-40956(%rbp), %eax
	subl	-40940(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.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
	leaq	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4040, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-40868(%rbp), %rdx
	leaq	-40872(%rbp), %rsi
	call	__isoc99_scanf@PLT
	leaq	-40864(%rbp), %rax
	movl	$40804, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, -40928(%rbp)
	call	memset@PLT
	movslq	-40868(%rbp), %rax
	movq	%rsp, %rcx
	movl	%eax, -40892(%rbp)
	leaq	15(,%rax,4), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L3
.L67:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L67
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L68
.L4:
	movq	%rax, %rsi
	movq	%rsp, -40904(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L68:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L69
.L7:
	movq	%rsp, -40912(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L69:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L9:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L10
	orq	$0, -8(%rsp,%rax)
.L10:
	movl	-40872(%rbp), %r15d
	movq	%rsp, -40920(%rbp)
	testl	%r15d, %r15d
	js	.L17
	movq	-40928(%rbp), %rdi
	leal	1(%r15), %r8d
	xorl	%ecx, %ecx
	movslq	%r15d, %rsi
.L16:
	xorl	%eax, %eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L35:
	movq	%rdx, %rax
.L15:
	cmpl	%eax, %ecx
	je	.L14
	movl	$-1, (%rdi,%rax,4)
.L14:
	leaq	1(%rax), %rdx
	cmpq	%rsi, %rax
	jne	.L35
	addl	$1, %ecx
	addq	$404, %rdi
	cmpl	%r8d, %ecx
	jne	.L16
.L17:
	movl	-40892(%rbp), %edx
	testl	%edx, %edx
	jle	.L13
	movq	-40904(%rbp), %r13
	movq	-40912(%rbp), %r12
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %r15
	movq	-40920(%rbp), %rbx
.L18:
	movq	%rbx, %rcx
	movq	%r12, %rdx
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	addq	$4, %r13
	addq	$4, %r12
	call	__isoc99_scanf@PLT
	movslq	-4(%r13), %rax
	movl	(%rbx), %esi
	addq	$4, %rbx
	movslq	-4(%r12), %rdx
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rax,%rcx,4), %rcx
	addq	%rdx, %rcx
	movl	%esi, -40864(%rbp,%rcx,4)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rdx
	addq	%rdx, %rax
	movl	%esi, -40864(%rbp,%rax,4)
	movl	-40868(%rbp), %eax
	movl	%eax, -40892(%rbp)
	cmpl	%r14d, %eax
	jg	.L18
	movl	-40872(%rbp), %r15d
.L13:
	leal	-1(%r15), %eax
	leaq	-40456(%rbp), %rbx
	movl	%r15d, -40896(%rbp)
	leaq	-40856(%rbp,%rax,4), %r13
	movq	%rbx, -40936(%rbp)
	imulq	$404, %rax, %rax
	addq	%rbx, %rax
	movq	%rax, -40888(%rbp)
	leaq	-40860(%rbp), %rax
	movq	%rax, %r15
.L29:
	movl	-40896(%rbp), %eax
	testl	%eax, %eax
	jle	.L63
	movq	-40936(%rbp), %r12
	movq	%r15, %r14
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L20:
	movq	-40888(%rbp), %r9
	movq	%r15, %r11
	movq	%r14, %r10
	movq	%r12, %r8
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%r11, %rdx
	movq	%r12, %rcx
	.p2align 4,,10
	.p2align 3
.L25:
	movl	(%rcx), %eax
	cmpl	$-1, %eax
	je	.L23
	movl	404(%rdx), %edi
	cmpl	$-1, %edi
	je	.L23
	movl	(%r8), %esi
	addl	%edi, %eax
	cmpl	$-1, %esi
	je	.L24
	cmpl	%esi, %eax
	jge	.L23
.L24:
	movl	%eax, (%r8)
	movl	$1, %ebx
	movl	%eax, 404(%r10)
.L23:
	addq	$404, %rdx
	addq	$4, %rcx
	cmpq	%r9, %rdx
	jne	.L25
	addq	$4, %r11
	leaq	4(%rdx), %r9
	addq	$4, %r8
	addq	$404, %r10
	cmpq	%r13, %r11
	jne	.L28
	addq	$4, %r14
	addq	$404, %r12
	cmpq	%r13, %r14
	jne	.L20
	testl	%ebx, %ebx
	jne	.L29
.L63:
	movl	-40892(%rbp), %eax
	movl	-40896(%rbp), %r15d
	testl	%eax, %eax
	jle	.L36
	movslq	%eax, %r10
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
.L22:
	testl	%r15d, %r15d
	js	.L33
	movq	-40920(%rbp), %rax
	movq	-40912(%rbp), %rbx
	xorl	%edx, %edx
	movl	(%rax,%r8,4), %edi
	movq	-40904(%rbp), %rax
	movslq	(%rbx,%r8,4), %rsi
	movslq	(%rax,%r8,4), %rcx
	movq	-40928(%rbp), %rax
	subq	%rcx, %rsi
	leaq	(%rax,%rcx,4), %rax
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L70:
	addl	$1, %edx
	addq	$404, %rax
	cmpl	%r15d, %edx
	jg	.L33
.L31:
	movl	(%rax), %ecx
	addl	%edi, %ecx
	cmpl	(%rax,%rsi,4), %ecx
	jne	.L70
	addl	$1, %r9d
.L33:
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L22
.L21:
	movl	-40892(%rbp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	subl	%r9d, %edx
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L71
	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
.L36:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L21
.L71:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.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
	leaq	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4040, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-40868(%rbp), %rdx
	leaq	-40872(%rbp), %rsi
	call	__isoc99_scanf@PLT
	leaq	-40864(%rbp), %rax
	movl	$40804, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	movq	%rax, -40928(%rbp)
	call	memset@PLT
	movslq	-40868(%rbp), %rax
	movq	%rsp, %rcx
	movl	%eax, -40892(%rbp)
	leaq	15(,%rax,4), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L3
.L67:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L67
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L68
.L4:
	movq	%rax, %rsi
	movq	%rsp, -40904(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L68:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L69
.L7:
	movq	%rsp, -40912(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L69:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L9:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L10
	orq	$0, -8(%rsp,%rax)
.L10:
	movl	-40872(%rbp), %r15d
	movq	%rsp, -40920(%rbp)
	testl	%r15d, %r15d
	js	.L17
	movq	-40928(%rbp), %rdi
	leal	1(%r15), %r8d
	xorl	%ecx, %ecx
	movslq	%r15d, %rsi
.L16:
	xorl	%eax, %eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L35:
	movq	%rdx, %rax
.L15:
	cmpl	%eax, %ecx
	je	.L14
	movl	$-1, (%rdi,%rax,4)
.L14:
	leaq	1(%rax), %rdx
	cmpq	%rsi, %rax
	jne	.L35
	addl	$1, %ecx
	addq	$404, %rdi
	cmpl	%r8d, %ecx
	jne	.L16
.L17:
	movl	-40892(%rbp), %edx
	testl	%edx, %edx
	jle	.L13
	movq	-40904(%rbp), %r13
	movq	-40912(%rbp), %r12
	xorl	%r14d, %r14d
	leaq	.LC1(%rip), %r15
	movq	-40920(%rbp), %rbx
.L18:
	movq	%rbx, %rcx
	movq	%r12, %rdx
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	addq	$4, %r13
	addq	$4, %r12
	call	__isoc99_scanf@PLT
	movslq	-4(%r13), %rax
	movl	(%rbx), %esi
	addq	$4, %rbx
	movslq	-4(%r12), %rdx
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rax,%rcx,4), %rcx
	addq	%rdx, %rcx
	movl	%esi, -40864(%rbp,%rcx,4)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rdx
	addq	%rdx, %rax
	movl	%esi, -40864(%rbp,%rax,4)
	movl	-40868(%rbp), %eax
	movl	%eax, -40892(%rbp)
	cmpl	%r14d, %eax
	jg	.L18
	movl	-40872(%rbp), %r15d
.L13:
	leal	-1(%r15), %eax
	leaq	-40456(%rbp), %rbx
	movl	%r15d, -40896(%rbp)
	leaq	-40856(%rbp,%rax,4), %r13
	movq	%rbx, -40936(%rbp)
	imulq	$404, %rax, %rax
	addq	%rbx, %rax
	movq	%rax, -40888(%rbp)
	leaq	-40860(%rbp), %rax
	movq	%rax, %r15
.L29:
	movl	-40896(%rbp), %eax
	testl	%eax, %eax
	jle	.L63
	movq	-40936(%rbp), %r12
	movq	%r15, %r14
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L20:
	movq	-40888(%rbp), %r9
	movq	%r15, %r11
	movq	%r14, %r10
	movq	%r12, %r8
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%r11, %rdx
	movq	%r12, %rcx
	.p2align 4,,10
	.p2align 3
.L25:
	movl	(%rcx), %eax
	cmpl	$-1, %eax
	je	.L23
	movl	404(%rdx), %edi
	cmpl	$-1, %edi
	je	.L23
	movl	(%r8), %esi
	addl	%edi, %eax
	cmpl	$-1, %esi
	je	.L24
	cmpl	%esi, %eax
	jge	.L23
.L24:
	movl	%eax, (%r8)
	movl	$1, %ebx
	movl	%eax, 404(%r10)
.L23:
	addq	$404, %rdx
	addq	$4, %rcx
	cmpq	%r9, %rdx
	jne	.L25
	addq	$4, %r11
	leaq	4(%rdx), %r9
	addq	$4, %r8
	addq	$404, %r10
	cmpq	%r13, %r11
	jne	.L28
	addq	$4, %r14
	addq	$404, %r12
	cmpq	%r13, %r14
	jne	.L20
	testl	%ebx, %ebx
	jne	.L29
.L63:
	movl	-40892(%rbp), %eax
	movl	-40896(%rbp), %r15d
	testl	%eax, %eax
	jle	.L36
	movslq	%eax, %r10
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
.L22:
	testl	%r15d, %r15d
	js	.L33
	movq	-40920(%rbp), %rax
	movq	-40912(%rbp), %rbx
	xorl	%edx, %edx
	movl	(%rax,%r8,4), %edi
	movq	-40904(%rbp), %rax
	movslq	(%rbx,%r8,4), %rsi
	movslq	(%rax,%r8,4), %rcx
	movq	-40928(%rbp), %rax
	subq	%rcx, %rsi
	leaq	(%rax,%rcx,4), %rax
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L70:
	addl	$1, %edx
	addq	$404, %rax
	cmpl	%r15d, %edx
	jg	.L33
.L31:
	movl	(%rax), %ecx
	addl	%edi, %ecx
	cmpl	(%rax,%rsi,4), %ecx
	jne	.L70
	addl	$1, %r9d
.L33:
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L22
.L21:
	movl	-40892(%rbp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	subl	%r9d, %edx
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L71
	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
.L36:
	.cfi_restore_state
	xorl	%r9d, %r9d
	jmp	.L21
.L71:
	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(void){

  int n , m;
  scanf("%d %d",&n,&m);

  int pass[101][101] = {0} , x[m] , y[m] , z[m];
  
  for(int i = 0;i <= n;i ++){
    for(int j = 0;j <= n;j ++){
      if(i != j){
        pass[i][j] = -1;
      }
    }
  }

  for(int i = 0;i < m;i ++){
    scanf("%d %d %d",&x[i] ,&y[i] ,&z[i]);
    pass[x[i]][y[i]] = z[i];
    pass[y[i]][x[i]] = z[i]; 
  }

  int count = 0 , flag = 0;
  
while(1){
  flag = 0;
  for(int i = 1;i <= n;i ++){
    for(int j = 1;j <= n;j ++){
      for(int k = 1;k <= n;k ++){
        if(pass[i][k] == -1 || pass[k][j] == -1){
          continue;
        }
        if(pass[i][j] == -1 || pass[i][k] + pass[k][j] < pass[i][j]){
          pass[i][j] = pass[i][k] + pass[k][j];
          pass[j][i] = pass[i][j];
          flag = 1;
        }
      }
    }
  }
  if(flag == 0){
    break;
  }
}
  for(int i = 0;i < m;i ++){
    flag = 0;
    for(int j = 0;j <= n;j ++){
      if(pass[j][x[i]] + z[i] == pass[j][y[i]]){
        flag = 1;
        break;
      }
    }
    if(flag == 1){
      count ++;
    }
  }

  printf("%d\n",m - count);

  return 0;
}
3 3
1 2 2
1 3 1
2 3 3
 4 3
1 2 1
1 3 1
2 3 3
 3 2
1 2 2
2 3 1
 3 2
1 3 2
2 3 1
 3 2
1 3 2
2 0 1
 3 2
1 2 2
2 0 1
 3 2
2 2 2
2 0 1
 3 2
1 1 1
2 3 1
 3 3
1 2 2
1 3 1
2 3 0
 3 2
1 3 2
2 1 1

0
 1
 0
 0
 0
 0
 2
 1
 1
 0

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(void){

  int n , m;
  scanf("%d %d",&n,&m);

  int pass[101][101] = {0} , x[m] , y[m] , z[m];
  
  for(int i = 0;i <= n;i ++){
    for(int j = 0;j <= n;j ++){
      if(i != j){
        pass[i][j] = -1;
      }
    }
  }

  for(int i = 0;i < m;i ++){
    scanf("%d %d %d",&x[i] ,&y[i] ,&z[i]);
    pass[x[i]][y[i]] = z[i];
    pass[y[i]][x[i]] = z[i]; 
  }

  int count = 0 , flag = 0;
  
while(1){
  flag = 0;
  for(int i = 1;i <= n;i ++){
    for(int j = 1;j <= n;j ++){
      for(int k = 1;k <= n;k ++){
        if(pass[i][k] == -1 || pass[k][j] == -1){
          continue;
        }
        if(pass[i][j] == -1 || pass[i][k] + pass[k][j] < pass[i][j]){
          pass[i][j] = pass[i][k] + pass[k][j];
          pass[j][i] = pass[i][j];
          flag = 1;
        }
      }
    }
  }
  if(flag == 0){
    break;
  }
}
  for(int i = 0;i < m;i ++){
    flag = 0;
    for(int j = 0;j <= n;j ++){
      if(pass[j][x[i]] + z[i] == pass[j][y[i]]){
        flag = 1;
        break;
      }
    }
    if(flag == 1){
      count ++;
    }
  }

  printf("%d\n",m - count);

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-40960(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$24, %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, %rbx
	leaq	-40956(%rbp), %rax
	leaq	-40960(%rbp), %rcx
	movq	%rax, %rdx
	movq	%rcx, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-40864(%rbp), %rcx
	movl	$40804, %eax
	movq	%rax, %rdx
	movl	$0, %esi
	movq	%rcx, %rdi
	call	memset@PLT
	movl	-40956(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -40912(%rbp)
	movslq	%edx, %rax
	movq	%rax, -40976(%rbp)
	movq	$0, -40968(%rbp)
	movslq	%edx, %rax
	movq	%rax, -40992(%rbp)
	movq	$0, -40984(%rbp)
	movslq	%edx, %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
.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, -40904(%rbp)
	movl	-40956(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -40896(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -41008(%rbp)
	movq	$0, -41000(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -41024(%rbp)
	movq	$0, -41016(%rbp)
	cltq
	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, -40888(%rbp)
	movl	-40956(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -40880(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -40872(%rbp)
	movl	$0, -40952(%rbp)
	jmp	.L11
.L15:
	movl	$0, -40948(%rbp)
	jmp	.L12
.L14:
	movl	-40952(%rbp), %eax
	cmpl	-40948(%rbp), %eax
	je	.L13
	movl	-40948(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40952(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$-1, -40864(%rbp,%rax,4)
.L13:
	addl	$1, -40948(%rbp)
.L12:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40948(%rbp)
	jle	.L14
	addl	$1, -40952(%rbp)
.L11:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40952(%rbp)
	jle	.L15
	movl	$0, -40944(%rbp)
	jmp	.L16
.L17:
	movl	-40944(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40872(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-40944(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40888(%rbp), %rax
	addq	%rax, %rdx
	movl	-40944(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-40904(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40904(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-40888(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edi
	movq	-40872(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movslq	%edi, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movl	%ecx, -40864(%rbp,%rax,4)
	movq	-40888(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-40904(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edi
	movq	-40872(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movslq	%edi, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movl	%ecx, -40864(%rbp,%rax,4)
	addl	$1, -40944(%rbp)
.L16:
	movl	-40956(%rbp), %eax
	cmpl	%eax, -40944(%rbp)
	jl	.L17
	movl	$0, -40940(%rbp)
	movl	$0, -40936(%rbp)
.L30:
	movl	$0, -40936(%rbp)
	movl	$1, -40932(%rbp)
	jmp	.L18
.L27:
	movl	$1, -40928(%rbp)
	jmp	.L19
.L26:
	movl	$1, -40924(%rbp)
	jmp	.L20
.L25:
	movl	-40924(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L41
	movl	-40928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40924(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L41
	movl	-40928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L24
	movl	-40924(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %ecx
	movl	-40928(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40924(%rbp), %eax
	movslq	%eax, %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	-40864(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-40928(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40932(%rbp), %eax
	movslq	%eax, %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	-40864(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jge	.L23
.L24:
	movl	-40924(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %ecx
	movl	-40928(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40924(%rbp), %eax
	movslq	%eax, %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	-40864(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-40928(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40932(%rbp), %eax
	movslq	%eax, %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, -40864(%rbp,%rax,4)
	movl	-40928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %ecx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40928(%rbp), %eax
	movslq	%eax, %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, -40864(%rbp,%rax,4)
	movl	$1, -40936(%rbp)
	jmp	.L23
.L41:
	nop
.L23:
	addl	$1, -40924(%rbp)
.L20:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40924(%rbp)
	jle	.L25
	addl	$1, -40928(%rbp)
.L19:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40928(%rbp)
	jle	.L26
	addl	$1, -40932(%rbp)
.L18:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40932(%rbp)
	jle	.L27
	cmpl	$0, -40936(%rbp)
	je	.L42
	jmp	.L30
.L42:
	nop
	movl	$0, -40920(%rbp)
	jmp	.L31
.L37:
	movl	$0, -40936(%rbp)
	movl	$0, -40916(%rbp)
	jmp	.L32
.L35:
	movq	-40904(%rbp), %rax
	movl	-40920(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movslq	%eax, %rcx
	movl	-40916(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %ecx
	movq	-40872(%rbp), %rax
	movl	-40920(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%eax, %ecx
	movq	-40888(%rbp), %rax
	movl	-40920(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movslq	%eax, %rsi
	movl	-40916(%rbp), %eax
	movslq	%eax, %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	-40864(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jne	.L33
	movl	$1, -40936(%rbp)
	jmp	.L34
.L33:
	addl	$1, -40916(%rbp)
.L32:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40916(%rbp)
	jle	.L35
.L34:
	cmpl	$1, -40936(%rbp)
	jne	.L36
	addl	$1, -40940(%rbp)
.L36:
	addl	$1, -40920(%rbp)
.L31:
	movl	-40956(%rbp), %eax
	cmpl	%eax, -40920(%rbp)
	jl	.L37
	movl	-40956(%rbp), %eax
	subl	-40940(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-40960(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$24, %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, %rbx
	leaq	-40956(%rbp), %rax
	leaq	-40960(%rbp), %rcx
	movq	%rax, %rdx
	movq	%rcx, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-40864(%rbp), %rcx
	movl	$40804, %eax
	movq	%rax, %rdx
	movl	$0, %esi
	movq	%rcx, %rdi
	call	memset@PLT
	movl	-40956(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -40912(%rbp)
	movslq	%edx, %rax
	movq	%rax, -40976(%rbp)
	movq	$0, -40968(%rbp)
	movslq	%edx, %rax
	movq	%rax, -40992(%rbp)
	movq	$0, -40984(%rbp)
	movslq	%edx, %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
.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, -40904(%rbp)
	movl	-40956(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -40896(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -41008(%rbp)
	movq	$0, -41000(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -41024(%rbp)
	movq	$0, -41016(%rbp)
	cltq
	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, -40888(%rbp)
	movl	-40956(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -40880(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -40872(%rbp)
	movl	$0, -40952(%rbp)
	jmp	.L11
.L15:
	movl	$0, -40948(%rbp)
	jmp	.L12
.L14:
	movl	-40952(%rbp), %eax
	cmpl	-40948(%rbp), %eax
	je	.L13
	movl	-40948(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40952(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$-1, -40864(%rbp,%rax,4)
.L13:
	addl	$1, -40948(%rbp)
.L12:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40948(%rbp)
	jle	.L14
	addl	$1, -40952(%rbp)
.L11:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40952(%rbp)
	jle	.L15
	movl	$0, -40944(%rbp)
	jmp	.L16
.L17:
	movl	-40944(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40872(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-40944(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40888(%rbp), %rax
	addq	%rax, %rdx
	movl	-40944(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-40904(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40904(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-40888(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edi
	movq	-40872(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movslq	%edi, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movl	%ecx, -40864(%rbp,%rax,4)
	movq	-40888(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-40904(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edi
	movq	-40872(%rbp), %rax
	movl	-40944(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movslq	%edi, %rdi
	movslq	%esi, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movl	%ecx, -40864(%rbp,%rax,4)
	addl	$1, -40944(%rbp)
.L16:
	movl	-40956(%rbp), %eax
	cmpl	%eax, -40944(%rbp)
	jl	.L17
	movl	$0, -40940(%rbp)
	movl	$0, -40936(%rbp)
.L30:
	movl	$0, -40936(%rbp)
	movl	$1, -40932(%rbp)
	jmp	.L18
.L27:
	movl	$1, -40928(%rbp)
	jmp	.L19
.L26:
	movl	$1, -40924(%rbp)
	jmp	.L20
.L25:
	movl	-40924(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L41
	movl	-40928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40924(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L41
	movl	-40928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %eax
	cmpl	$-1, %eax
	je	.L24
	movl	-40924(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %ecx
	movl	-40928(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40924(%rbp), %eax
	movslq	%eax, %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	-40864(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-40928(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40932(%rbp), %eax
	movslq	%eax, %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	-40864(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jge	.L23
.L24:
	movl	-40924(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %ecx
	movl	-40928(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40924(%rbp), %eax
	movslq	%eax, %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	-40864(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-40928(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40932(%rbp), %eax
	movslq	%eax, %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, -40864(%rbp,%rax,4)
	movl	-40928(%rbp), %eax
	movslq	%eax, %rcx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %ecx
	movl	-40932(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40928(%rbp), %eax
	movslq	%eax, %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, -40864(%rbp,%rax,4)
	movl	$1, -40936(%rbp)
	jmp	.L23
.L41:
	nop
.L23:
	addl	$1, -40924(%rbp)
.L20:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40924(%rbp)
	jle	.L25
	addl	$1, -40928(%rbp)
.L19:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40928(%rbp)
	jle	.L26
	addl	$1, -40932(%rbp)
.L18:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40932(%rbp)
	jle	.L27
	cmpl	$0, -40936(%rbp)
	je	.L42
	jmp	.L30
.L42:
	nop
	movl	$0, -40920(%rbp)
	jmp	.L31
.L37:
	movl	$0, -40936(%rbp)
	movl	$0, -40916(%rbp)
	jmp	.L32
.L35:
	movq	-40904(%rbp), %rax
	movl	-40920(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movslq	%eax, %rcx
	movl	-40916(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40864(%rbp,%rax,4), %ecx
	movq	-40872(%rbp), %rax
	movl	-40920(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%eax, %ecx
	movq	-40888(%rbp), %rax
	movl	-40920(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movslq	%eax, %rsi
	movl	-40916(%rbp), %eax
	movslq	%eax, %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	-40864(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	jne	.L33
	movl	$1, -40936(%rbp)
	jmp	.L34
.L33:
	addl	$1, -40916(%rbp)
.L32:
	movl	-40960(%rbp), %eax
	cmpl	%eax, -40916(%rbp)
	jle	.L35
.L34:
	cmpl	$1, -40936(%rbp)
	jne	.L36
	addl	$1, -40940(%rbp)
.L36:
	addl	$1, -40920(%rbp)
.L31:
	movl	-40956(%rbp), %eax
	cmpl	%eax, -40920(%rbp)
	jl	.L37
	movl	-40956(%rbp), %eax
	subl	-40940(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	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:
