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>
#define INF 1 << 29

int min(int a,int b){
  if(a < b){
    return a;
  }
  return b;
}

int main(void){
  int N,M;
  scanf("%d%d",&N,&M);

  int a[M],b[M],c[M],dist[N][N];

  for(int i = 0;i < N;i++){
    for(int j = 0;j < N;j++){
      if(i == j)
        dist[i][j] = 0;
      else
        dist[i][j] = INF;
    }
  }

  for(int i = 0;i < M;i++){
    scanf("%d%d%d",&a[i],&b[i],&c[i]);
    a[i]--; b[i]--;
    dist[a[i]][b[i]] = dist[b[i]][a[i]] = c[i];
  }

  for(int k = 0;k < N;k++){
    for(int i = 0;i < N;i++){
      for(int j = 0;j < N;j++){
        dist[i][j] = min(dist[i][j],dist[i][k]+dist[k][j]);
      }
    }
  }

  int ans = 0;
  for(int i = 0;i < M;i++){
    if(dist[a[i]][b[i]] < c[i]) ans++;
  }

  printf("%d\n",ans);

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$296, %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, -328(%rbp)
	leaq	-164(%rbp), %rdx
	leaq	-168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-164(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L7
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -120(%rbp)
	movl	-164(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edx, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L10
	movq	%rdx, %rax
	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, -104(%rbp)
	movl	-164(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%edx, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L11:
	cmpq	%rdx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L13
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L13:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	-168(%rbp), %ecx
	movl	-168(%rbp), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%esi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-192(%rbp), %r10
	movq	-184(%rbp), %r11
	movq	%r11, %rdx
	movq	-208(%rbp), %r8
	movq	-200(%rbp), %r9
	imulq	%r8, %rdx
	movq	%r9, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r10, %rax
	mulq	%r8
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L14:
	cmpq	%rdx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L16
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L16:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -160(%rbp)
	jmp	.L17
.L22:
	movl	$0, -156(%rbp)
	jmp	.L18
.L21:
	movl	-160(%rbp), %eax
	cmpl	-156(%rbp), %eax
	jne	.L19
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rsi
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L20
.L19:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rsi
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$536870912, (%rax,%rdx,4)
.L20:
	addl	$1, -156(%rbp)
.L18:
	movl	-168(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L21
	addl	$1, -160(%rbp)
.L17:
	movl	-168(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jl	.L22
	movl	$0, -152(%rbp)
	jmp	.L23
.L24:
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-104(%rbp), %rax
	addq	%rax, %rdx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-120(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-120(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-120(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-104(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-104(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-120(%rbp), %rdx
	movl	-152(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %edx
	movq	-88(%rbp), %rsi
	movl	-152(%rbp), %edi
	movslq	%edi, %rdi
	movl	(%rsi,%rdi,4), %edi
	movq	-64(%rbp), %rsi
	movslq	%edx, %r9
	movslq	%eax, %r8
	imulq	%rcx, %r8
	addq	%r9, %r8
	movl	%edi, (%rsi,%r8,4)
	movq	%rbx, %r9
	shrq	$2, %r9
	movq	-120(%rbp), %rsi
	movl	-152(%rbp), %edi
	movslq	%edi, %rdi
	movl	(%rsi,%rdi,4), %r8d
	movq	-104(%rbp), %rsi
	movl	-152(%rbp), %edi
	movslq	%edi, %rdi
	movl	(%rsi,%rdi,4), %edi
	movq	-64(%rbp), %rsi
	movslq	%edx, %rdx
	cltq
	imulq	%rcx, %rax
	addq	%rdx, %rax
	movl	(%rsi,%rax,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edi, %rsi
	movslq	%r8d, %rcx
	imulq	%r9, %rcx
	addq	%rsi, %rcx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -152(%rbp)
.L23:
	movl	-164(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L24
	movl	$0, -148(%rbp)
	jmp	.L25
.L30:
	movl	$0, -144(%rbp)
	jmp	.L26
.L29:
	movl	$0, -140(%rbp)
	jmp	.L27
.L28:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdi
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rsi,%rax), %edx
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-144(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	%rbx, %r12
	shrq	$2, %r12
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movq	-64(%rbp), %rdx
	movl	-140(%rbp), %ecx
	movslq	%ecx, %rsi
	movl	-144(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%r12, %rcx
	addq	%rsi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$1, -140(%rbp)
.L27:
	movl	-168(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L28
	addl	$1, -144(%rbp)
.L26:
	movl	-168(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L29
	addl	$1, -148(%rbp)
.L25:
	movl	-168(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L30
	movl	$0, -136(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L31
.L33:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-120(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-104(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-88(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L32
	addl	$1, -136(%rbp)
.L32:
	addl	$1, -132(%rbp)
.L31:
	movl	-164(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L33
	movl	-136(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-328(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC4:
	.string	"%d%d%d"
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	movl	%eax, -188(%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	.L5
.L74:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L74
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L75
.L6:
	movq	%rax, %rsi
	movq	%rsp, -200(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L7:
	cmpq	%rcx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L75:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L8:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L76
.L9:
	movq	%rsp, -208(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L10:
	cmpq	%rcx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L76:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L9
.L11:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L12
	orq	$0, -8(%rsp,%rax)
.L12:
	movslq	-64(%rbp), %r15
	movq	%rsp, -216(%rbp)
	movq	%rsp, %rcx
	movq	%r15, %rax
	movq	%r15, %r13
	leaq	0(,%r15,4), %r10
	imulq	%r15, %rax
	leaq	15(,%rax,4), %rdx
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rcx
.L13:
	cmpq	%rcx, %rsp
	je	.L14
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L13
.L14:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L15
	orq	$0, -8(%rsp,%rax)
.L15:
	movq	%rsp, %r14
	testl	%r13d, %r13d
	jle	.L16
	movl	%r13d, %eax
	movq	%r10, %r12
	movl	%r13d, %r9d
	movq	%r14, %rdi
	shrl	$2, %eax
	shrq	$2, %r12
	leal	-1(%r13), %ebx
	andl	$-4, %r9d
	leal	-1(%rax), %r11d
	movdqa	.LC2(%rip), %xmm4
	xorl	%eax, %eax
	movdqa	.LC3(%rip), %xmm3
	addq	$1, %r11
	salq	$4, %r11
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	$2, %ebx
	jbe	.L44
	movd	%eax, %xmm7
	movdqa	.LC0(%rip), %xmm1
	leaq	(%r11,%rdi), %rcx
	movq	%rdi, %rdx
	pshufd	$0, %xmm7, %xmm2
	.p2align 4,,10
	.p2align 3
.L18:
	movdqa	%xmm1, %xmm0
	addq	$16, %rdx
	paddd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm0
	pandn	%xmm3, %xmm0
	movups	%xmm0, -16(%rdx)
	cmpq	%rcx, %rdx
	jne	.L18
	movl	%r9d, %edx
	cmpl	%r9d, %r13d
	je	.L19
.L17:
	movslq	%eax, %rsi
	movslq	%edx, %rcx
	xorl	%r8d, %r8d
	imulq	%r12, %rsi
	addq	%rsi, %rcx
	cmpl	%edx, %eax
	setne	%r8b
	sall	$29, %r8d
	movl	%r8d, (%r14,%rcx,4)
	leal	1(%rdx), %ecx
	cmpl	%ecx, %r13d
	jle	.L19
	movslq	%ecx, %r8
	addq	%rsi, %r8
	cmpl	%eax, %ecx
	setne	%cl
	addl	$2, %edx
	movzbl	%cl, %ecx
	sall	$29, %ecx
	movl	%ecx, (%r14,%r8,4)
	cmpl	%r13d, %edx
	jge	.L19
	movslq	%edx, %rcx
	addq	%rsi, %rcx
	cmpl	%eax, %edx
	setne	%dl
	movzbl	%dl, %edx
	sall	$29, %edx
	movl	%edx, (%r14,%rcx,4)
.L19:
	addl	$1, %eax
	addq	%r10, %rdi
	cmpl	%eax, %r13d
	jne	.L20
	movl	-188(%rbp), %eax
	testl	%eax, %eax
	jle	.L77
.L40:
	movq	-216(%rbp), %r15
	movq	%r10, %rbx
	xorl	%r8d, %r8d
	movq	-200(%rbp), %r13
	shrq	$2, %rbx
	movq	-208(%rbp), %r12
	movq	%rbx, -72(%rbp)
	movq	%r15, %rbx
	movq	%r14, %r15
	movl	%r8d, %r14d
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%rbx, %rcx
	movq	%r12, %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	addl	$1, %r14d
	addq	$4, %r13
	addq	$4, %r12
	addq	$4, %rbx
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	-4(%r13), %eax
	movq	-72(%rbp), %rcx
	movl	-4(%rbx), %edi
	leal	-1(%rax), %edx
	movl	-4(%r12), %eax
	movq	%rcx, %rsi
	movl	%edx, -4(%r13)
	movslq	%edx, %rdx
	subl	$1, %eax
	movl	%eax, -4(%r12)
	cltq
	imulq	%rax, %rsi
	addq	%rdx, %rsi
	imulq	%rcx, %rdx
	movl	%edi, (%r15,%rsi,4)
	addq	%rdx, %rax
	movl	%edi, (%r15,%rax,4)
	movl	-60(%rbp), %eax
	cmpl	%r14d, %eax
	jg	.L22
	movl	-64(%rbp), %r13d
	movl	%eax, -188(%rbp)
	movq	%rcx, %rbx
	movq	%r15, %r14
	testl	%r13d, %r13d
	jle	.L23
	movslq	%r13d, %r15
.L39:
	leaq	0(,%rbx,4), %rax
	testl	%r13d, %r13d
	leaq	0(,%r15,4), %rdx
	movq	$0, -168(%rbp)
	movq	%rax, -80(%rbp)
	movl	$4, %eax
	movq	%r14, %r12
	movq	$0, -176(%rbp)
	cmovg	%rdx, %rax
	movq	%rax, -96(%rbp)
	movl	$1, %eax
	cmovg	%r13d, %eax
	movl	%eax, %ecx
	movl	%eax, -100(%rbp)
	shrl	$2, %eax
	andl	$-4, %ecx
	subl	$1, %eax
	leal	1(%rcx), %edi
	leal	2(%rcx), %esi
	movl	%ecx, -104(%rbp)
	movslq	%ecx, %rcx
	movq	%rcx, -112(%rbp)
	movslq	%edi, %rcx
	addq	$1, %rax
	movq	%rcx, -128(%rbp)
	movslq	%esi, %rcx
	salq	$4, %rax
	movl	%edi, -140(%rbp)
	movq	%rax, %r11
	xorl	%eax, %eax
	movl	%esi, -144(%rbp)
	movq	%rcx, -152(%rbp)
	.p2align 4,,10
	.p2align 3
.L24:
	movq	-168(%rbp), %rdi
	leaq	1(%rax), %rcx
	cltq
	movq	-176(%rbp), %r10
	movq	%rax, -72(%rbp)
	imulq	%rbx, %rax
	leaq	0(,%rcx,4), %r9
	xorl	%r8d, %r8d
	subq	$4, %rdi
	movq	%rcx, -184(%rbp)
	xorl	%ecx, %ecx
	movq	%rdi, -88(%rbp)
	movq	-112(%rbp), %rdi
	addq	%rax, %rdi
	movq	%rdi, -120(%rbp)
	movq	-128(%rbp), %rdi
	addq	%rax, %rdi
	addq	-152(%rbp), %rax
	movq	%rdi, -136(%rbp)
	movq	%rax, -160(%rbp)
	.p2align 4,,10
	.p2align 3
.L34:
	movq	-96(%rbp), %rax
	leaq	(%rax,%rcx), %rdx
	leaq	-4(%r9), %rax
	cmpq	%rax, %rdx
	setle	%dl
	cmpq	%rcx, %r9
	setle	%al
	orb	%dl, %al
	je	.L33
	movq	-88(%rbp), %rax
	addq	%rcx, %rax
	cmpq	$8, %rax
	seta	%dl
	cmpl	$3, %r13d
	setg	%al
	testb	%al, %dl
	je	.L33
	movslq	%r8d, %rax
	leaq	(%r14,%rcx), %rsi
	movq	%rax, %rdx
	imulq	%rbx, %rdx
	addq	-72(%rbp), %rdx
	movd	(%r14,%rdx,4), %xmm6
	xorl	%edx, %edx
	pshufd	$0, %xmm6, %xmm3
	.p2align 4,,10
	.p2align 3
.L28:
	movdqu	(%r12,%rdx), %xmm2
	movdqu	(%rsi,%rdx), %xmm5
	paddd	%xmm3, %xmm2
	movdqa	%xmm5, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm5, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rsi,%rdx)
	addq	$16, %rdx
	cmpq	%r11, %rdx
	jne	.L28
	movl	-104(%rbp), %esi
	cmpl	%esi, -100(%rbp)
	je	.L27
	imulq	%rbx, %rax
	movq	-112(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movq	-120(%rbp), %r15
	addq	%rax, %rdi
	addq	%rax, %rsi
	movl	(%r14,%rsi,4), %edx
	addl	(%r14,%r15,4), %edx
	movl	(%r14,%rdi,4), %r15d
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r14,%rdi,4)
	cmpl	%r13d, -140(%rbp)
	jge	.L27
	movq	-128(%rbp), %rdi
	movq	-136(%rbp), %rdx
	addq	%rax, %rdi
	movl	(%r14,%rdx,4), %edx
	addl	(%r14,%rsi,4), %edx
	movl	(%r14,%rdi,4), %r15d
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r14,%rdi,4)
	cmpl	-144(%rbp), %r13d
	jle	.L27
	movq	-160(%rbp), %rdi
	addq	-152(%rbp), %rax
	movl	(%r14,%rdi,4), %edx
	addl	(%r14,%rsi,4), %edx
	movl	(%r14,%rax,4), %esi
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	movl	%edx, (%r14,%rax,4)
.L27:
	movq	-80(%rbp), %rax
	addl	$1, %r8d
	subq	%rbx, %r10
	addq	%rax, %rcx
	addq	%rax, %r9
	cmpl	%r8d, %r13d
	jg	.L34
	movq	%rax, %rdi
	movq	-184(%rbp), %rax
	addq	%rbx, -176(%rbp)
	subq	%rdi, -168(%rbp)
	addq	%rdi, %r12
	cmpl	%eax, %r13d
	jg	.L24
.L23:
	movslq	-188(%rbp), %rsi
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	testl	%esi, %esi
	jle	.L42
	movq	-200(%rbp), %rdi
	movq	-208(%rbp), %r9
	movq	-216(%rbp), %r10
	.p2align 4,,10
	.p2align 3
.L38:
	movslq	(%rdi,%rax,4), %rcx
	movslq	(%r9,%rax,4), %rdx
	imulq	%rbx, %rcx
	addq	%rcx, %rdx
	movl	(%r14,%rdx,4), %ecx
	cmpl	%ecx, (%r10,%rax,4)
	jle	.L37
	addl	$1, %r8d
.L37:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L38
.L36:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L78
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	movslq	%r8d, %rax
	movq	-72(%rbp), %rdi
	leaq	(%r14,%rcx), %rdx
	xorl	%esi, %esi
	imulq	%rbx, %rax
	leaq	(%rdi,%rax), %r15
	.p2align 4,,10
	.p2align 3
.L26:
	movl	(%rdx), %edi
	movl	(%rdx,%r10,4), %eax
	addl	(%r14,%r15,4), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	addl	$1, %esi
	addq	$4, %rdx
	movl	%eax, -4(%rdx)
	cmpl	%esi, %r13d
	jg	.L26
	jmp	.L27
.L44:
	xorl	%edx, %edx
	jmp	.L17
.L16:
	cmpl	$0, -188(%rbp)
	jg	.L40
.L42:
	xorl	%r8d, %r8d
	jmp	.L36
.L77:
	movq	%r10, %rbx
	shrq	$2, %rbx
	jmp	.L39
.L78:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC3:
	.long	536870912
	.long	536870912
	.long	536870912
	.long	536870912
	.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
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC4:
	.string	"%d%d%d"
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	movl	%eax, -188(%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	.L5
.L74:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L74
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L75
.L6:
	movq	%rax, %rsi
	movq	%rsp, -200(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L7:
	cmpq	%rcx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L75:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L8:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L76
.L9:
	movq	%rsp, -208(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L10:
	cmpq	%rcx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L76:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L9
.L11:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L12
	orq	$0, -8(%rsp,%rax)
.L12:
	movslq	-64(%rbp), %r15
	movq	%rsp, -216(%rbp)
	movq	%rsp, %rcx
	movq	%r15, %rax
	movq	%r15, %r13
	leaq	0(,%r15,4), %r10
	imulq	%r15, %rax
	leaq	15(,%rax,4), %rdx
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rcx
.L13:
	cmpq	%rcx, %rsp
	je	.L14
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L13
.L14:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L15
	orq	$0, -8(%rsp,%rax)
.L15:
	movq	%rsp, %r14
	testl	%r13d, %r13d
	jle	.L16
	movl	%r13d, %eax
	movq	%r10, %r12
	movl	%r13d, %r9d
	movq	%r14, %rdi
	shrl	$2, %eax
	shrq	$2, %r12
	leal	-1(%r13), %ebx
	andl	$-4, %r9d
	leal	-1(%rax), %r11d
	movdqa	.LC2(%rip), %xmm4
	xorl	%eax, %eax
	movdqa	.LC3(%rip), %xmm3
	addq	$1, %r11
	salq	$4, %r11
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	$2, %ebx
	jbe	.L44
	movd	%eax, %xmm7
	movdqa	.LC0(%rip), %xmm1
	leaq	(%r11,%rdi), %rcx
	movq	%rdi, %rdx
	pshufd	$0, %xmm7, %xmm2
	.p2align 4,,10
	.p2align 3
.L18:
	movdqa	%xmm1, %xmm0
	addq	$16, %rdx
	paddd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm0
	pandn	%xmm3, %xmm0
	movups	%xmm0, -16(%rdx)
	cmpq	%rcx, %rdx
	jne	.L18
	movl	%r9d, %edx
	cmpl	%r9d, %r13d
	je	.L19
.L17:
	movslq	%eax, %rsi
	movslq	%edx, %rcx
	xorl	%r8d, %r8d
	imulq	%r12, %rsi
	addq	%rsi, %rcx
	cmpl	%edx, %eax
	setne	%r8b
	sall	$29, %r8d
	movl	%r8d, (%r14,%rcx,4)
	leal	1(%rdx), %ecx
	cmpl	%ecx, %r13d
	jle	.L19
	movslq	%ecx, %r8
	addq	%rsi, %r8
	cmpl	%eax, %ecx
	setne	%cl
	addl	$2, %edx
	movzbl	%cl, %ecx
	sall	$29, %ecx
	movl	%ecx, (%r14,%r8,4)
	cmpl	%r13d, %edx
	jge	.L19
	movslq	%edx, %rcx
	addq	%rsi, %rcx
	cmpl	%eax, %edx
	setne	%dl
	movzbl	%dl, %edx
	sall	$29, %edx
	movl	%edx, (%r14,%rcx,4)
.L19:
	addl	$1, %eax
	addq	%r10, %rdi
	cmpl	%eax, %r13d
	jne	.L20
	movl	-188(%rbp), %eax
	testl	%eax, %eax
	jle	.L77
.L40:
	movq	-216(%rbp), %r15
	movq	%r10, %rbx
	xorl	%r8d, %r8d
	movq	-200(%rbp), %r13
	shrq	$2, %rbx
	movq	-208(%rbp), %r12
	movq	%rbx, -72(%rbp)
	movq	%r15, %rbx
	movq	%r14, %r15
	movl	%r8d, %r14d
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%rbx, %rcx
	movq	%r12, %rdx
	movq	%r13, %rsi
	xorl	%eax, %eax
	addl	$1, %r14d
	addq	$4, %r13
	addq	$4, %r12
	addq	$4, %rbx
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	-4(%r13), %eax
	movq	-72(%rbp), %rcx
	movl	-4(%rbx), %edi
	leal	-1(%rax), %edx
	movl	-4(%r12), %eax
	movq	%rcx, %rsi
	movl	%edx, -4(%r13)
	movslq	%edx, %rdx
	subl	$1, %eax
	movl	%eax, -4(%r12)
	cltq
	imulq	%rax, %rsi
	addq	%rdx, %rsi
	imulq	%rcx, %rdx
	movl	%edi, (%r15,%rsi,4)
	addq	%rdx, %rax
	movl	%edi, (%r15,%rax,4)
	movl	-60(%rbp), %eax
	cmpl	%r14d, %eax
	jg	.L22
	movl	-64(%rbp), %r13d
	movl	%eax, -188(%rbp)
	movq	%rcx, %rbx
	movq	%r15, %r14
	testl	%r13d, %r13d
	jle	.L23
	movslq	%r13d, %r15
.L39:
	leaq	0(,%rbx,4), %rax
	testl	%r13d, %r13d
	leaq	0(,%r15,4), %rdx
	movq	$0, -168(%rbp)
	movq	%rax, -80(%rbp)
	movl	$4, %eax
	movq	%r14, %r12
	movq	$0, -176(%rbp)
	cmovg	%rdx, %rax
	movq	%rax, -96(%rbp)
	movl	$1, %eax
	cmovg	%r13d, %eax
	movl	%eax, %ecx
	movl	%eax, -100(%rbp)
	shrl	$2, %eax
	andl	$-4, %ecx
	subl	$1, %eax
	leal	1(%rcx), %edi
	leal	2(%rcx), %esi
	movl	%ecx, -104(%rbp)
	movslq	%ecx, %rcx
	movq	%rcx, -112(%rbp)
	movslq	%edi, %rcx
	addq	$1, %rax
	movq	%rcx, -128(%rbp)
	movslq	%esi, %rcx
	salq	$4, %rax
	movl	%edi, -140(%rbp)
	movq	%rax, %r11
	xorl	%eax, %eax
	movl	%esi, -144(%rbp)
	movq	%rcx, -152(%rbp)
	.p2align 4,,10
	.p2align 3
.L24:
	movq	-168(%rbp), %rdi
	leaq	1(%rax), %rcx
	cltq
	movq	-176(%rbp), %r10
	movq	%rax, -72(%rbp)
	imulq	%rbx, %rax
	leaq	0(,%rcx,4), %r9
	xorl	%r8d, %r8d
	subq	$4, %rdi
	movq	%rcx, -184(%rbp)
	xorl	%ecx, %ecx
	movq	%rdi, -88(%rbp)
	movq	-112(%rbp), %rdi
	addq	%rax, %rdi
	movq	%rdi, -120(%rbp)
	movq	-128(%rbp), %rdi
	addq	%rax, %rdi
	addq	-152(%rbp), %rax
	movq	%rdi, -136(%rbp)
	movq	%rax, -160(%rbp)
	.p2align 4,,10
	.p2align 3
.L34:
	movq	-96(%rbp), %rax
	leaq	(%rax,%rcx), %rdx
	leaq	-4(%r9), %rax
	cmpq	%rax, %rdx
	setle	%dl
	cmpq	%rcx, %r9
	setle	%al
	orb	%dl, %al
	je	.L33
	movq	-88(%rbp), %rax
	addq	%rcx, %rax
	cmpq	$8, %rax
	seta	%dl
	cmpl	$3, %r13d
	setg	%al
	testb	%al, %dl
	je	.L33
	movslq	%r8d, %rax
	leaq	(%r14,%rcx), %rsi
	movq	%rax, %rdx
	imulq	%rbx, %rdx
	addq	-72(%rbp), %rdx
	movd	(%r14,%rdx,4), %xmm6
	xorl	%edx, %edx
	pshufd	$0, %xmm6, %xmm3
	.p2align 4,,10
	.p2align 3
.L28:
	movdqu	(%r12,%rdx), %xmm2
	movdqu	(%rsi,%rdx), %xmm5
	paddd	%xmm3, %xmm2
	movdqa	%xmm5, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm5, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rsi,%rdx)
	addq	$16, %rdx
	cmpq	%r11, %rdx
	jne	.L28
	movl	-104(%rbp), %esi
	cmpl	%esi, -100(%rbp)
	je	.L27
	imulq	%rbx, %rax
	movq	-112(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movq	-120(%rbp), %r15
	addq	%rax, %rdi
	addq	%rax, %rsi
	movl	(%r14,%rsi,4), %edx
	addl	(%r14,%r15,4), %edx
	movl	(%r14,%rdi,4), %r15d
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r14,%rdi,4)
	cmpl	%r13d, -140(%rbp)
	jge	.L27
	movq	-128(%rbp), %rdi
	movq	-136(%rbp), %rdx
	addq	%rax, %rdi
	movl	(%r14,%rdx,4), %edx
	addl	(%r14,%rsi,4), %edx
	movl	(%r14,%rdi,4), %r15d
	cmpl	%r15d, %edx
	cmovg	%r15d, %edx
	movl	%edx, (%r14,%rdi,4)
	cmpl	-144(%rbp), %r13d
	jle	.L27
	movq	-160(%rbp), %rdi
	addq	-152(%rbp), %rax
	movl	(%r14,%rdi,4), %edx
	addl	(%r14,%rsi,4), %edx
	movl	(%r14,%rax,4), %esi
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	movl	%edx, (%r14,%rax,4)
.L27:
	movq	-80(%rbp), %rax
	addl	$1, %r8d
	subq	%rbx, %r10
	addq	%rax, %rcx
	addq	%rax, %r9
	cmpl	%r8d, %r13d
	jg	.L34
	movq	%rax, %rdi
	movq	-184(%rbp), %rax
	addq	%rbx, -176(%rbp)
	subq	%rdi, -168(%rbp)
	addq	%rdi, %r12
	cmpl	%eax, %r13d
	jg	.L24
.L23:
	movslq	-188(%rbp), %rsi
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	testl	%esi, %esi
	jle	.L42
	movq	-200(%rbp), %rdi
	movq	-208(%rbp), %r9
	movq	-216(%rbp), %r10
	.p2align 4,,10
	.p2align 3
.L38:
	movslq	(%rdi,%rax,4), %rcx
	movslq	(%r9,%rax,4), %rdx
	imulq	%rbx, %rcx
	addq	%rcx, %rdx
	movl	(%r14,%rdx,4), %ecx
	cmpl	%ecx, (%r10,%rax,4)
	jle	.L37
	addl	$1, %r8d
.L37:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L38
.L36:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L78
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	movslq	%r8d, %rax
	movq	-72(%rbp), %rdi
	leaq	(%r14,%rcx), %rdx
	xorl	%esi, %esi
	imulq	%rbx, %rax
	leaq	(%rdi,%rax), %r15
	.p2align 4,,10
	.p2align 3
.L26:
	movl	(%rdx), %edi
	movl	(%rdx,%r10,4), %eax
	addl	(%r14,%r15,4), %eax
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	addl	$1, %esi
	addq	$4, %rdx
	movl	%eax, -4(%rdx)
	cmpl	%esi, %r13d
	jg	.L26
	jmp	.L27
.L44:
	xorl	%edx, %edx
	jmp	.L17
.L16:
	cmpl	$0, -188(%rbp)
	jg	.L40
.L42:
	xorl	%r8d, %r8d
	jmp	.L36
.L77:
	movq	%r10, %rbx
	shrq	$2, %rbx
	jmp	.L39
.L78:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC3:
	.long	536870912
	.long	536870912
	.long	536870912
	.long	536870912
	.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>
#define INF 1 << 29

int min(int a,int b){
  if(a < b){
    return a;
  }
  return b;
}

int main(void){
  int N,M;
  scanf("%d%d",&N,&M);

  int a[M],b[M],c[M],dist[N][N];

  for(int i = 0;i < N;i++){
    for(int j = 0;j < N;j++){
      if(i == j)
        dist[i][j] = 0;
      else
        dist[i][j] = INF;
    }
  }

  for(int i = 0;i < M;i++){
    scanf("%d%d%d",&a[i],&b[i],&c[i]);
    a[i]--; b[i]--;
    dist[a[i]][b[i]] = dist[b[i]][a[i]] = c[i];
  }

  for(int k = 0;k < N;k++){
    for(int i = 0;i < N;i++){
      for(int j = 0;j < N;j++){
        dist[i][j] = min(dist[i][j],dist[i][k]+dist[k][j]);
      }
    }
  }

  int ans = 0;
  for(int i = 0;i < M;i++){
    if(dist[a[i]][b[i]] < c[i]) ans++;
  }

  printf("%d\n",ans);

  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
 1
 0
 0
 0
 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>
#define INF 1 << 29

int min(int a,int b){
  if(a < b){
    return a;
  }
  return b;
}

int main(void){
  int N,M;
  scanf("%d%d",&N,&M);

  int a[M],b[M],c[M],dist[N][N];

  for(int i = 0;i < N;i++){
    for(int j = 0;j < N;j++){
      if(i == j)
        dist[i][j] = 0;
      else
        dist[i][j] = INF;
    }
  }

  for(int i = 0;i < M;i++){
    scanf("%d%d%d",&a[i],&b[i],&c[i]);
    a[i]--; b[i]--;
    dist[a[i]][b[i]] = dist[b[i]][a[i]] = c[i];
  }

  for(int k = 0;k < N;k++){
    for(int i = 0;i < N;i++){
      for(int j = 0;j < N;j++){
        dist[i][j] = min(dist[i][j],dist[i][k]+dist[k][j]);
      }
    }
  }

  int ans = 0;
  for(int i = 0;i < M;i++){
    if(dist[a[i]][b[i]] < c[i]) ans++;
  }

  printf("%d\n",ans);

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$296, %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, -328(%rbp)
	leaq	-164(%rbp), %rdx
	leaq	-168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-164(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L7
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -120(%rbp)
	movl	-164(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edx, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L10
	movq	%rdx, %rax
	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, -104(%rbp)
	movl	-164(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%edx, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L11:
	cmpq	%rdx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L13
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L13:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	-168(%rbp), %ecx
	movl	-168(%rbp), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%esi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-192(%rbp), %r10
	movq	-184(%rbp), %r11
	movq	%r11, %rdx
	movq	-208(%rbp), %r8
	movq	-200(%rbp), %r9
	imulq	%r8, %rdx
	movq	%r9, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r10, %rax
	mulq	%r8
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L14:
	cmpq	%rdx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L16
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L16:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -160(%rbp)
	jmp	.L17
.L22:
	movl	$0, -156(%rbp)
	jmp	.L18
.L21:
	movl	-160(%rbp), %eax
	cmpl	-156(%rbp), %eax
	jne	.L19
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rsi
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L20
.L19:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rsi
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$536870912, (%rax,%rdx,4)
.L20:
	addl	$1, -156(%rbp)
.L18:
	movl	-168(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L21
	addl	$1, -160(%rbp)
.L17:
	movl	-168(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jl	.L22
	movl	$0, -152(%rbp)
	jmp	.L23
.L24:
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-104(%rbp), %rax
	addq	%rax, %rdx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-120(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-120(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-120(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-104(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-104(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-120(%rbp), %rdx
	movl	-152(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %edx
	movq	-88(%rbp), %rsi
	movl	-152(%rbp), %edi
	movslq	%edi, %rdi
	movl	(%rsi,%rdi,4), %edi
	movq	-64(%rbp), %rsi
	movslq	%edx, %r9
	movslq	%eax, %r8
	imulq	%rcx, %r8
	addq	%r9, %r8
	movl	%edi, (%rsi,%r8,4)
	movq	%rbx, %r9
	shrq	$2, %r9
	movq	-120(%rbp), %rsi
	movl	-152(%rbp), %edi
	movslq	%edi, %rdi
	movl	(%rsi,%rdi,4), %r8d
	movq	-104(%rbp), %rsi
	movl	-152(%rbp), %edi
	movslq	%edi, %rdi
	movl	(%rsi,%rdi,4), %edi
	movq	-64(%rbp), %rsi
	movslq	%edx, %rdx
	cltq
	imulq	%rcx, %rax
	addq	%rdx, %rax
	movl	(%rsi,%rax,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edi, %rsi
	movslq	%r8d, %rcx
	imulq	%r9, %rcx
	addq	%rsi, %rcx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -152(%rbp)
.L23:
	movl	-164(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L24
	movl	$0, -148(%rbp)
	jmp	.L25
.L30:
	movl	$0, -144(%rbp)
	jmp	.L26
.L29:
	movl	$0, -140(%rbp)
	jmp	.L27
.L28:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdi
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rsi,%rax), %edx
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-144(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	%rbx, %r12
	shrq	$2, %r12
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movq	-64(%rbp), %rdx
	movl	-140(%rbp), %ecx
	movslq	%ecx, %rsi
	movl	-144(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%r12, %rcx
	addq	%rsi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$1, -140(%rbp)
.L27:
	movl	-168(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L28
	addl	$1, -144(%rbp)
.L26:
	movl	-168(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L29
	addl	$1, -148(%rbp)
.L25:
	movl	-168(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L30
	movl	$0, -136(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L31
.L33:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-120(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-104(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-88(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L32
	addl	$1, -136(%rbp)
.L32:
	addl	$1, -132(%rbp)
.L31:
	movl	-164(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L33
	movl	-136(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-328(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$296, %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, -328(%rbp)
	leaq	-164(%rbp), %rdx
	leaq	-168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-164(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L7
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -120(%rbp)
	movl	-164(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edx, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L10
	movq	%rdx, %rax
	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, -104(%rbp)
	movl	-164(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%edx, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L11:
	cmpq	%rdx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L13
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L13:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	-168(%rbp), %ecx
	movl	-168(%rbp), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%esi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-192(%rbp), %r10
	movq	-184(%rbp), %r11
	movq	%r11, %rdx
	movq	-208(%rbp), %r8
	movq	-200(%rbp), %r9
	imulq	%r8, %rdx
	movq	%r9, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r10, %rax
	mulq	%r8
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L14:
	cmpq	%rdx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L16
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L16:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -160(%rbp)
	jmp	.L17
.L22:
	movl	$0, -156(%rbp)
	jmp	.L18
.L21:
	movl	-160(%rbp), %eax
	cmpl	-156(%rbp), %eax
	jne	.L19
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rsi
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L20
.L19:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rsi
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$536870912, (%rax,%rdx,4)
.L20:
	addl	$1, -156(%rbp)
.L18:
	movl	-168(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L21
	addl	$1, -160(%rbp)
.L17:
	movl	-168(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jl	.L22
	movl	$0, -152(%rbp)
	jmp	.L23
.L24:
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-104(%rbp), %rax
	addq	%rax, %rdx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-120(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-120(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-120(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-104(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-104(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-104(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-120(%rbp), %rdx
	movl	-152(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %edx
	movq	-88(%rbp), %rsi
	movl	-152(%rbp), %edi
	movslq	%edi, %rdi
	movl	(%rsi,%rdi,4), %edi
	movq	-64(%rbp), %rsi
	movslq	%edx, %r9
	movslq	%eax, %r8
	imulq	%rcx, %r8
	addq	%r9, %r8
	movl	%edi, (%rsi,%r8,4)
	movq	%rbx, %r9
	shrq	$2, %r9
	movq	-120(%rbp), %rsi
	movl	-152(%rbp), %edi
	movslq	%edi, %rdi
	movl	(%rsi,%rdi,4), %r8d
	movq	-104(%rbp), %rsi
	movl	-152(%rbp), %edi
	movslq	%edi, %rdi
	movl	(%rsi,%rdi,4), %edi
	movq	-64(%rbp), %rsi
	movslq	%edx, %rdx
	cltq
	imulq	%rcx, %rax
	addq	%rdx, %rax
	movl	(%rsi,%rax,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edi, %rsi
	movslq	%r8d, %rcx
	imulq	%r9, %rcx
	addq	%rsi, %rcx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -152(%rbp)
.L23:
	movl	-164(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L24
	movl	$0, -148(%rbp)
	jmp	.L25
.L30:
	movl	$0, -144(%rbp)
	jmp	.L26
.L29:
	movl	$0, -140(%rbp)
	jmp	.L27
.L28:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rsi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdi
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rsi,%rax), %edx
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-144(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	%rbx, %r12
	shrq	$2, %r12
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movq	-64(%rbp), %rdx
	movl	-140(%rbp), %ecx
	movslq	%ecx, %rsi
	movl	-144(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%r12, %rcx
	addq	%rsi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$1, -140(%rbp)
.L27:
	movl	-168(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L28
	addl	$1, -144(%rbp)
.L26:
	movl	-168(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jl	.L29
	addl	$1, -148(%rbp)
.L25:
	movl	-168(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L30
	movl	$0, -136(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L31
.L33:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-120(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-104(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-88(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L32
	addl	$1, -136(%rbp)
.L32:
	addl	$1, -132(%rbp)
.L31:
	movl	-164(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L33
	movl	-136(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-328(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
