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

```c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>

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

int main(void){

    int N, M;

    scanf("%d%d", &N, &M);

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

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

    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] = 1000000000;
            }
        }
    }

    for(int i = 0; i < M; i++){
        dist[a[i]][b[i]] = min(dist[a[i]][b[i]], c[i]);
        dist[b[i]][a[i]] = min(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 = M;

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

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

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.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
.LFE6:
	.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:
.LFB7:
	.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	$312, %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, -344(%rbp)
	leaq	-176(%rbp), %rdx
	leaq	-180(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%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	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
	movslq	%edx, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%edx, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%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	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%edx, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%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	-180(%rbp), %ecx
	movl	-180(%rbp), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -336(%rbp)
	movq	$0, -328(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%esi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-224(%rbp), %r9
	movq	-216(%rbp), %r10
	movq	%r10, %rdx
	imulq	-208(%rbp), %rdx
	movq	-200(%rbp), %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r9, %rax
	mulq	-208(%rbp)
	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, -172(%rbp)
	jmp	.L17
.L18:
	movl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-104(%rbp), %rax
	addq	%rax, %rdx
	movl	-172(%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	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-120(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-104(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-104(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -172(%rbp)
.L17:
	movl	-176(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jl	.L18
	movl	$0, -168(%rbp)
	jmp	.L19
.L24:
	movl	$0, -164(%rbp)
	jmp	.L20
.L23:
	movl	-168(%rbp), %eax
	cmpl	-164(%rbp), %eax
	jne	.L21
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-164(%rbp), %edx
	movslq	%edx, %rsi
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L22
.L21:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-164(%rbp), %edx
	movslq	%edx, %rsi
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$1000000000, (%rax,%rdx,4)
.L22:
	addl	$1, -164(%rbp)
.L20:
	movl	-180(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jl	.L23
	addl	$1, -168(%rbp)
.L19:
	movl	-180(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L24
	movl	$0, -160(%rbp)
	jmp	.L25
.L26:
	movq	-88(%rbp), %rax
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-120(%rbp), %rax
	movl	-160(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	-104(%rbp), %rax
	movl	-160(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	-64(%rbp), %rax
	movslq	%ecx, %r8
	movslq	%esi, %rcx
	imulq	%rdi, %rcx
	addq	%r8, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	%rbx, %r14
	shrq	$2, %r14
	movq	-120(%rbp), %rcx
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %r12d
	movq	-104(%rbp), %rcx
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %r13d
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movq	-64(%rbp), %rdx
	movslq	%r13d, %rsi
	movslq	%r12d, %rcx
	imulq	%r14, %rcx
	addq	%rsi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	movq	-88(%rbp), %rax
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-104(%rbp), %rax
	movl	-160(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	-120(%rbp), %rax
	movl	-160(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	-64(%rbp), %rax
	movslq	%ecx, %r8
	movslq	%esi, %rcx
	imulq	%rdi, %rcx
	addq	%r8, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	%rbx, %r14
	shrq	$2, %r14
	movq	-104(%rbp), %rcx
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %r12d
	movq	-120(%rbp), %rcx
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %r13d
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movq	-64(%rbp), %rdx
	movslq	%r13d, %rsi
	movslq	%r12d, %rcx
	imulq	%r14, %rcx
	addq	%rsi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$1, -160(%rbp)
.L25:
	movl	-176(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jl	.L26
	movl	$0, -156(%rbp)
	jmp	.L27
.L32:
	movl	$0, -152(%rbp)
	jmp	.L28
.L31:
	movl	$0, -148(%rbp)
	jmp	.L29
.L30:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%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	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-156(%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	-148(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-152(%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	-148(%rbp), %ecx
	movslq	%ecx, %rsi
	movl	-152(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%r12, %rcx
	addq	%rsi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$1, -148(%rbp)
.L29:
	movl	-180(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L30
	addl	$1, -152(%rbp)
.L28:
	movl	-180(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L31
	addl	$1, -156(%rbp)
.L27:
	movl	-180(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L32
	movl	-176(%rbp), %eax
	movl	%eax, -144(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L33
.L38:
	movl	$1, -136(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L34
.L36:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-120(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rsi
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-88(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%eax, %ecx
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-104(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdi
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jne	.L35
	movl	$0, -136(%rbp)
.L35:
	addl	$1, -132(%rbp)
.L34:
	movl	-180(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L36
	cmpl	$0, -136(%rbp)
	jne	.L37
	subl	$1, -144(%rbp)
.L37:
	addl	$1, -140(%rbp)
.L33:
	movl	-176(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L38
	movl	-144(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-344(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d%d%d"
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	$216, %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), %r11
	movq	%rsp, %rcx
	leaq	15(,%r11,4), %rax
	movl	%r11d, -244(%rbp)
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L5
.L85:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L85
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L86
.L6:
	movq	%rax, %rsi
	movq	%rsp, -208(%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
.L86:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L8:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L87
.L9:
	movq	%rsp, -216(%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
.L87:
	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), %rax
	movq	%rsp, -224(%rbp)
	movq	%rsp, %rcx
	movq	%rax, %r12
	leaq	0(,%rax,4), %r14
	imulq	%rax, %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:
	cmpl	$0, -244(%rbp)
	movq	%rsp, %r13
	jle	.L16
	movq	-224(%rbp), %r15
	movq	-208(%rbp), %rsi
	xorl	%ebx, %ebx
	movq	%r14, -72(%rbp)
	movq	-216(%rbp), %r12
	movq	%r15, %r14
	movq	%r13, %r15
	movl	%ebx, %r13d
	movq	%rsi, %rbx
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%r14, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	addl	$1, %r13d
	addq	$4, %r14
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	subl	$1, (%rbx)
	addq	$4, %rbx
	subl	$1, (%r12)
	addq	$4, %r12
	cmpl	%r13d, %eax
	jg	.L17
	movl	%eax, -244(%rbp)
	movq	-72(%rbp), %r14
	movq	%r15, %r13
	movl	-64(%rbp), %r12d
.L16:
	testl	%r12d, %r12d
	jle	.L18
	leal	-1(%r12), %eax
	movq	%r14, %r15
	movl	%r12d, %r10d
	movq	%r13, %rdi
	movl	%eax, -84(%rbp)
	movl	%r12d, %eax
	movdqa	.LC3(%rip), %xmm4
	xorl	%edx, %edx
	shrl	$2, %eax
	shrq	$2, %r15
	andl	$-4, %r10d
	xorl	%r9d, %r9d
	subl	$1, %eax
	movdqa	.LC4(%rip), %xmm3
	movl	$1000000000, %r8d
	addq	$1, %rax
	salq	$4, %rax
	movq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	$2, -84(%rbp)
	jbe	.L52
	movd	%edx, %xmm7
	movdqa	.LC0(%rip), %xmm1
	leaq	(%rbx,%rdi), %rcx
	movq	%rdi, %rax
	pshufd	$0, %xmm7, %xmm2
	.p2align 4,,10
	.p2align 3
.L20:
	movdqa	%xmm1, %xmm0
	addq	$16, %rax
	paddd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm0
	pandn	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rcx, %rax
	jne	.L20
	movl	%r10d, %eax
	cmpl	%r10d, %r12d
	je	.L21
.L19:
	cmpl	%eax, %edx
	movl	%r8d, %r11d
	movslq	%edx, %rsi
	movslq	%eax, %rcx
	cmove	%r9d, %r11d
	imulq	%r15, %rsi
	addq	%rsi, %rcx
	movl	%r11d, 0(%r13,%rcx,4)
	leal	1(%rax), %ecx
	cmpl	%ecx, %r12d
	jle	.L21
	cmpl	%edx, %ecx
	movl	%r8d, %r11d
	movslq	%ecx, %rcx
	cmove	%r9d, %r11d
	addq	%rsi, %rcx
	addl	$2, %eax
	movl	%r11d, 0(%r13,%rcx,4)
	cmpl	%r12d, %eax
	jge	.L21
	cmpl	%edx, %eax
	movl	%r8d, %ecx
	cltq
	cmove	%r9d, %ecx
	addq	%rsi, %rax
	movl	%ecx, 0(%r13,%rax,4)
.L21:
	addl	$1, %edx
	addq	%r14, %rdi
	cmpl	%edx, %r12d
	jne	.L25
	movl	-244(%rbp), %eax
	testl	%eax, %eax
	jle	.L27
.L50:
	movq	%r14, %r9
	movslq	-244(%rbp), %r11
	xorl	%eax, %eax
	movq	-208(%rbp), %rdi
	movq	-216(%rbp), %r8
	movq	-224(%rbp), %r10
	shrq	$2, %r9
	.p2align 4,,10
	.p2align 3
.L29:
	movslq	(%rdi,%rax,4), %rdx
	movslq	(%r8,%rax,4), %rcx
	movl	(%r10,%rax,4), %esi
	movq	%rdx, %rbx
	imulq	%r9, %rbx
	addq	%rcx, %rbx
	movl	0(%r13,%rbx,4), %r15d
	cmpl	%esi, %r15d
	cmovg	%esi, %r15d
	imulq	%r9, %rcx
	movl	%r15d, 0(%r13,%rbx,4)
	addq	%rcx, %rdx
	movl	0(%r13,%rdx,4), %ecx
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	addq	$1, %rax
	movl	%ecx, 0(%r13,%rdx,4)
	cmpq	%r11, %rax
	jne	.L29
	leal	-1(%r12), %eax
	movl	-244(%rbp), %r15d
	movl	%eax, -84(%rbp)
	testl	%r12d, %r12d
	jle	.L28
.L27:
	movq	%r14, %rax
	movl	%r12d, %edi
	movq	%r14, -80(%rbp)
	movq	%r14, %r15
	negq	%rax
	andl	$-4, %edi
	shrq	$2, %r15
	movq	%r13, %rbx
	movq	%rax, -240(%rbp)
	movl	%r12d, %eax
	leal	1(%rdi), %esi
	leal	2(%rdi), %ecx
	movq	%rax, -232(%rbp)
	salq	$2, %rax
	movq	%rax, -104(%rbp)
	movl	%r12d, %eax
	shrl	$2, %eax
	movl	%edi, -88(%rbp)
	movslq	%edi, %rdi
	subl	$1, %eax
	movq	%rdi, -112(%rbp)
	movslq	%esi, %rdi
	addq	$1, %rax
	movq	%rdi, -128(%rbp)
	movslq	%ecx, %rdi
	salq	$4, %rax
	movl	%esi, -140(%rbp)
	movq	%rax, %r11
	movl	-84(%rbp), %eax
	movl	%ecx, -144(%rbp)
	movq	$0, -192(%rbp)
	leaq	4(%r13,%rax,4), %rax
	movq	$0, -184(%rbp)
	movq	$4, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	%rdi, -152(%rbp)
	movq	%rax, -200(%rbp)
	.p2align 4,,10
	.p2align 3
.L31:
	movslq	-168(%rbp), %rax
	movq	-192(%rbp), %rsi
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	movq	-184(%rbp), %r10
	movq	-176(%rbp), %r9
	subq	$4, %rsi
	movq	%rax, -72(%rbp)
	imulq	%r15, %rax
	movq	%rsi, -96(%rbp)
	movq	-112(%rbp), %rsi
	addq	%rax, %rsi
	movq	%rsi, -120(%rbp)
	movq	-128(%rbp), %rsi
	addq	%rax, %rsi
	addq	-152(%rbp), %rax
	movq	%rsi, -136(%rbp)
	movq	%rax, -160(%rbp)
	.p2align 4,,10
	.p2align 3
.L42:
	movq	-104(%rbp), %rax
	leaq	-4(%r9), %rdx
	addq	%rdi, %rax
	cmpq	%rax, %rdx
	setge	%dl
	cmpq	%r9, %rdi
	setge	%al
	orb	%dl, %al
	je	.L40
	movq	-96(%rbp), %rax
	addq	%rdi, %rax
	cmpq	$8, %rax
	seta	%dl
	cmpl	$2, -84(%rbp)
	seta	%al
	testb	%al, %dl
	je	.L40
	movslq	%r8d, %rax
	leaq	0(%r13,%rdi), %rcx
	movq	%rax, %rdx
	imulq	%r15, %rdx
	addq	-72(%rbp), %rdx
	movd	0(%r13,%rdx,4), %xmm6
	xorl	%edx, %edx
	pshufd	$0, %xmm6, %xmm3
	.p2align 4,,10
	.p2align 3
.L35:
	movdqu	(%rbx,%rdx), %xmm2
	movdqu	(%rcx,%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, (%rcx,%rdx)
	addq	$16, %rdx
	cmpq	%rdx, %r11
	jne	.L35
	cmpl	%r12d, -88(%rbp)
	je	.L34
	imulq	%r15, %rax
	movq	-112(%rbp), %rsi
	movq	-72(%rbp), %rcx
	movq	-120(%rbp), %r14
	addq	%rax, %rsi
	addq	%rax, %rcx
	movl	0(%r13,%rcx,4), %edx
	addl	0(%r13,%r14,4), %edx
	movl	0(%r13,%rsi,4), %r14d
	cmpl	%r14d, %edx
	cmovg	%r14d, %edx
	movl	%edx, 0(%r13,%rsi,4)
	cmpl	%r12d, -140(%rbp)
	jge	.L34
	movq	-128(%rbp), %rsi
	movq	-136(%rbp), %r14
	movl	0(%r13,%rcx,4), %edx
	addq	%rax, %rsi
	addl	0(%r13,%r14,4), %edx
	movl	0(%r13,%rsi,4), %r14d
	cmpl	%r14d, %edx
	cmovg	%r14d, %edx
	movl	%edx, 0(%r13,%rsi,4)
	cmpl	-144(%rbp), %r12d
	jle	.L34
	movq	-160(%rbp), %rsi
	addq	-152(%rbp), %rax
	movl	0(%r13,%rsi,4), %edx
	addl	0(%r13,%rcx,4), %edx
	movl	0(%r13,%rax,4), %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movl	%edx, 0(%r13,%rax,4)
.L34:
	movq	-80(%rbp), %rax
	addl	$1, %r8d
	subq	%r15, %r10
	addq	%rax, %rdi
	addq	%rax, %r9
	cmpl	%r8d, %r12d
	jne	.L42
	addq	$1, -168(%rbp)
	movq	-240(%rbp), %rsi
	addq	$4, -176(%rbp)
	movq	-168(%rbp), %rax
	addq	%r15, -184(%rbp)
	addq	-80(%rbp), %rbx
	addq	%rsi, -192(%rbp)
	cmpq	-232(%rbp), %rax
	jne	.L31
	movl	-244(%rbp), %eax
	movq	-80(%rbp), %r14
	testl	%eax, %eax
	jle	.L48
	movslq	%eax, %r11
	movl	%eax, %r15d
.L28:
	movq	%r14, %rbx
	xorl	%r10d, %r10d
	xorl	%r14d, %r14d
	shrq	$2, %rbx
	.p2align 4,,10
	.p2align 3
.L44:
	testl	%r12d, %r12d
	jle	.L47
	movq	-224(%rbp), %rax
	movq	%r11, -72(%rbp)
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	(%rax,%r14,4), %r9d
	movq	-216(%rbp), %rax
	movslq	(%rax,%r14,4), %r8
	movq	-208(%rbp), %rax
	movslq	(%rax,%r14,4), %rdi
	.p2align 4,,10
	.p2align 3
.L46:
	movslq	%edx, %rax
	imulq	%rbx, %rax
	leaq	(%r8,%rax), %rsi
	addq	%rdi, %rax
	movl	0(%r13,%rax,4), %r11d
	addl	%r9d, %r11d
	cmpl	%r11d, 0(%r13,%rsi,4)
	cmove	%r10d, %ecx
	addl	$1, %edx
	cmpl	%edx, %r12d
	jne	.L46
	cmpl	$1, %ecx
	movq	-72(%rbp), %r11
	sbbl	$0, %r15d
.L47:
	addq	$1, %r14
	cmpq	%r14, %r11
	jne	.L44
	movl	%r15d, -244(%rbp)
.L48:
	movl	-244(%rbp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L88
	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
.L40:
	.cfi_restore_state
	movq	-200(%rbp), %rax
	movq	-72(%rbp), %rsi
	leaq	0(%r13,%rdi), %rdx
	leaq	(%rax,%rdi), %r14
	movslq	%r8d, %rax
	imulq	%r15, %rax
	addq	%rax, %rsi
	.p2align 4,,10
	.p2align 3
.L33:
	movl	(%rdx), %ecx
	movl	(%rdx,%r10,4), %eax
	addl	0(%r13,%rsi,4), %eax
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	addq	$4, %rdx
	movl	%eax, -4(%rdx)
	cmpq	%r14, %rdx
	jne	.L33
	jmp	.L34
.L52:
	xorl	%eax, %eax
	jmp	.L19
.L88:
	call	__stack_chk_fail@PLT
.L18:
	cmpl	$0, -244(%rbp)
	jg	.L50
	jmp	.L48
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	1000000000
	.long	1000000000
	.long	1000000000
	.long	1000000000
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%d%d%d"
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	$216, %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), %r11
	movq	%rsp, %rcx
	leaq	15(,%r11,4), %rax
	movl	%r11d, -244(%rbp)
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L5
.L85:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L85
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L86
.L6:
	movq	%rax, %rsi
	movq	%rsp, -208(%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
.L86:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L8:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L87
.L9:
	movq	%rsp, -216(%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
.L87:
	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), %rax
	movq	%rsp, -224(%rbp)
	movq	%rsp, %rcx
	movq	%rax, %r12
	leaq	0(,%rax,4), %r14
	imulq	%rax, %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:
	cmpl	$0, -244(%rbp)
	movq	%rsp, %r13
	jle	.L16
	movq	-224(%rbp), %r15
	movq	-208(%rbp), %rsi
	xorl	%ebx, %ebx
	movq	%r14, -72(%rbp)
	movq	-216(%rbp), %r12
	movq	%r15, %r14
	movq	%r13, %r15
	movl	%ebx, %r13d
	movq	%rsi, %rbx
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%r14, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	addl	$1, %r13d
	addq	$4, %r14
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	subl	$1, (%rbx)
	addq	$4, %rbx
	subl	$1, (%r12)
	addq	$4, %r12
	cmpl	%r13d, %eax
	jg	.L17
	movl	%eax, -244(%rbp)
	movq	-72(%rbp), %r14
	movq	%r15, %r13
	movl	-64(%rbp), %r12d
.L16:
	testl	%r12d, %r12d
	jle	.L18
	leal	-1(%r12), %eax
	movq	%r14, %r15
	movl	%r12d, %r10d
	movq	%r13, %rdi
	movl	%eax, -84(%rbp)
	movl	%r12d, %eax
	movdqa	.LC3(%rip), %xmm4
	xorl	%edx, %edx
	shrl	$2, %eax
	shrq	$2, %r15
	andl	$-4, %r10d
	xorl	%r9d, %r9d
	subl	$1, %eax
	movdqa	.LC4(%rip), %xmm3
	movl	$1000000000, %r8d
	addq	$1, %rax
	salq	$4, %rax
	movq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	$2, -84(%rbp)
	jbe	.L52
	movd	%edx, %xmm7
	movdqa	.LC0(%rip), %xmm1
	leaq	(%rbx,%rdi), %rcx
	movq	%rdi, %rax
	pshufd	$0, %xmm7, %xmm2
	.p2align 4,,10
	.p2align 3
.L20:
	movdqa	%xmm1, %xmm0
	addq	$16, %rax
	paddd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm0
	pandn	%xmm3, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rcx, %rax
	jne	.L20
	movl	%r10d, %eax
	cmpl	%r10d, %r12d
	je	.L21
.L19:
	cmpl	%eax, %edx
	movl	%r8d, %r11d
	movslq	%edx, %rsi
	movslq	%eax, %rcx
	cmove	%r9d, %r11d
	imulq	%r15, %rsi
	addq	%rsi, %rcx
	movl	%r11d, 0(%r13,%rcx,4)
	leal	1(%rax), %ecx
	cmpl	%ecx, %r12d
	jle	.L21
	cmpl	%edx, %ecx
	movl	%r8d, %r11d
	movslq	%ecx, %rcx
	cmove	%r9d, %r11d
	addq	%rsi, %rcx
	addl	$2, %eax
	movl	%r11d, 0(%r13,%rcx,4)
	cmpl	%r12d, %eax
	jge	.L21
	cmpl	%edx, %eax
	movl	%r8d, %ecx
	cltq
	cmove	%r9d, %ecx
	addq	%rsi, %rax
	movl	%ecx, 0(%r13,%rax,4)
.L21:
	addl	$1, %edx
	addq	%r14, %rdi
	cmpl	%edx, %r12d
	jne	.L25
	movl	-244(%rbp), %eax
	testl	%eax, %eax
	jle	.L27
.L50:
	movq	%r14, %r9
	movslq	-244(%rbp), %r11
	xorl	%eax, %eax
	movq	-208(%rbp), %rdi
	movq	-216(%rbp), %r8
	movq	-224(%rbp), %r10
	shrq	$2, %r9
	.p2align 4,,10
	.p2align 3
.L29:
	movslq	(%rdi,%rax,4), %rdx
	movslq	(%r8,%rax,4), %rcx
	movl	(%r10,%rax,4), %esi
	movq	%rdx, %rbx
	imulq	%r9, %rbx
	addq	%rcx, %rbx
	movl	0(%r13,%rbx,4), %r15d
	cmpl	%esi, %r15d
	cmovg	%esi, %r15d
	imulq	%r9, %rcx
	movl	%r15d, 0(%r13,%rbx,4)
	addq	%rcx, %rdx
	movl	0(%r13,%rdx,4), %ecx
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	addq	$1, %rax
	movl	%ecx, 0(%r13,%rdx,4)
	cmpq	%r11, %rax
	jne	.L29
	leal	-1(%r12), %eax
	movl	-244(%rbp), %r15d
	movl	%eax, -84(%rbp)
	testl	%r12d, %r12d
	jle	.L28
.L27:
	movq	%r14, %rax
	movl	%r12d, %edi
	movq	%r14, -80(%rbp)
	movq	%r14, %r15
	negq	%rax
	andl	$-4, %edi
	shrq	$2, %r15
	movq	%r13, %rbx
	movq	%rax, -240(%rbp)
	movl	%r12d, %eax
	leal	1(%rdi), %esi
	leal	2(%rdi), %ecx
	movq	%rax, -232(%rbp)
	salq	$2, %rax
	movq	%rax, -104(%rbp)
	movl	%r12d, %eax
	shrl	$2, %eax
	movl	%edi, -88(%rbp)
	movslq	%edi, %rdi
	subl	$1, %eax
	movq	%rdi, -112(%rbp)
	movslq	%esi, %rdi
	addq	$1, %rax
	movq	%rdi, -128(%rbp)
	movslq	%ecx, %rdi
	salq	$4, %rax
	movl	%esi, -140(%rbp)
	movq	%rax, %r11
	movl	-84(%rbp), %eax
	movl	%ecx, -144(%rbp)
	movq	$0, -192(%rbp)
	leaq	4(%r13,%rax,4), %rax
	movq	$0, -184(%rbp)
	movq	$4, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	%rdi, -152(%rbp)
	movq	%rax, -200(%rbp)
	.p2align 4,,10
	.p2align 3
.L31:
	movslq	-168(%rbp), %rax
	movq	-192(%rbp), %rsi
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	movq	-184(%rbp), %r10
	movq	-176(%rbp), %r9
	subq	$4, %rsi
	movq	%rax, -72(%rbp)
	imulq	%r15, %rax
	movq	%rsi, -96(%rbp)
	movq	-112(%rbp), %rsi
	addq	%rax, %rsi
	movq	%rsi, -120(%rbp)
	movq	-128(%rbp), %rsi
	addq	%rax, %rsi
	addq	-152(%rbp), %rax
	movq	%rsi, -136(%rbp)
	movq	%rax, -160(%rbp)
	.p2align 4,,10
	.p2align 3
.L42:
	movq	-104(%rbp), %rax
	leaq	-4(%r9), %rdx
	addq	%rdi, %rax
	cmpq	%rax, %rdx
	setge	%dl
	cmpq	%r9, %rdi
	setge	%al
	orb	%dl, %al
	je	.L40
	movq	-96(%rbp), %rax
	addq	%rdi, %rax
	cmpq	$8, %rax
	seta	%dl
	cmpl	$2, -84(%rbp)
	seta	%al
	testb	%al, %dl
	je	.L40
	movslq	%r8d, %rax
	leaq	0(%r13,%rdi), %rcx
	movq	%rax, %rdx
	imulq	%r15, %rdx
	addq	-72(%rbp), %rdx
	movd	0(%r13,%rdx,4), %xmm6
	xorl	%edx, %edx
	pshufd	$0, %xmm6, %xmm3
	.p2align 4,,10
	.p2align 3
.L35:
	movdqu	(%rbx,%rdx), %xmm2
	movdqu	(%rcx,%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, (%rcx,%rdx)
	addq	$16, %rdx
	cmpq	%rdx, %r11
	jne	.L35
	cmpl	%r12d, -88(%rbp)
	je	.L34
	imulq	%r15, %rax
	movq	-112(%rbp), %rsi
	movq	-72(%rbp), %rcx
	movq	-120(%rbp), %r14
	addq	%rax, %rsi
	addq	%rax, %rcx
	movl	0(%r13,%rcx,4), %edx
	addl	0(%r13,%r14,4), %edx
	movl	0(%r13,%rsi,4), %r14d
	cmpl	%r14d, %edx
	cmovg	%r14d, %edx
	movl	%edx, 0(%r13,%rsi,4)
	cmpl	%r12d, -140(%rbp)
	jge	.L34
	movq	-128(%rbp), %rsi
	movq	-136(%rbp), %r14
	movl	0(%r13,%rcx,4), %edx
	addq	%rax, %rsi
	addl	0(%r13,%r14,4), %edx
	movl	0(%r13,%rsi,4), %r14d
	cmpl	%r14d, %edx
	cmovg	%r14d, %edx
	movl	%edx, 0(%r13,%rsi,4)
	cmpl	-144(%rbp), %r12d
	jle	.L34
	movq	-160(%rbp), %rsi
	addq	-152(%rbp), %rax
	movl	0(%r13,%rsi,4), %edx
	addl	0(%r13,%rcx,4), %edx
	movl	0(%r13,%rax,4), %ecx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	movl	%edx, 0(%r13,%rax,4)
.L34:
	movq	-80(%rbp), %rax
	addl	$1, %r8d
	subq	%r15, %r10
	addq	%rax, %rdi
	addq	%rax, %r9
	cmpl	%r8d, %r12d
	jne	.L42
	addq	$1, -168(%rbp)
	movq	-240(%rbp), %rsi
	addq	$4, -176(%rbp)
	movq	-168(%rbp), %rax
	addq	%r15, -184(%rbp)
	addq	-80(%rbp), %rbx
	addq	%rsi, -192(%rbp)
	cmpq	-232(%rbp), %rax
	jne	.L31
	movl	-244(%rbp), %eax
	movq	-80(%rbp), %r14
	testl	%eax, %eax
	jle	.L48
	movslq	%eax, %r11
	movl	%eax, %r15d
.L28:
	movq	%r14, %rbx
	xorl	%r10d, %r10d
	xorl	%r14d, %r14d
	shrq	$2, %rbx
	.p2align 4,,10
	.p2align 3
.L44:
	testl	%r12d, %r12d
	jle	.L47
	movq	-224(%rbp), %rax
	movq	%r11, -72(%rbp)
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	(%rax,%r14,4), %r9d
	movq	-216(%rbp), %rax
	movslq	(%rax,%r14,4), %r8
	movq	-208(%rbp), %rax
	movslq	(%rax,%r14,4), %rdi
	.p2align 4,,10
	.p2align 3
.L46:
	movslq	%edx, %rax
	imulq	%rbx, %rax
	leaq	(%r8,%rax), %rsi
	addq	%rdi, %rax
	movl	0(%r13,%rax,4), %r11d
	addl	%r9d, %r11d
	cmpl	%r11d, 0(%r13,%rsi,4)
	cmove	%r10d, %ecx
	addl	$1, %edx
	cmpl	%edx, %r12d
	jne	.L46
	cmpl	$1, %ecx
	movq	-72(%rbp), %r11
	sbbl	$0, %r15d
.L47:
	addq	$1, %r14
	cmpq	%r14, %r11
	jne	.L44
	movl	%r15d, -244(%rbp)
.L48:
	movl	-244(%rbp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L88
	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
.L40:
	.cfi_restore_state
	movq	-200(%rbp), %rax
	movq	-72(%rbp), %rsi
	leaq	0(%r13,%rdi), %rdx
	leaq	(%rax,%rdi), %r14
	movslq	%r8d, %rax
	imulq	%r15, %rax
	addq	%rax, %rsi
	.p2align 4,,10
	.p2align 3
.L33:
	movl	(%rdx), %ecx
	movl	(%rdx,%r10,4), %eax
	addl	0(%r13,%rsi,4), %eax
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	addq	$4, %rdx
	movl	%eax, -4(%rdx)
	cmpq	%r14, %rdx
	jne	.L33
	jmp	.L34
.L52:
	xorl	%eax, %eax
	jmp	.L19
.L88:
	call	__stack_chk_fail@PLT
.L18:
	cmpl	$0, -244(%rbp)
	jg	.L50
	jmp	.L48
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC4:
	.long	1000000000
	.long	1000000000
	.long	1000000000
	.long	1000000000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>

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

int main(void){

    int N, M;

    scanf("%d%d", &N, &M);

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

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

    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] = 1000000000;
            }
        }
    }

    for(int i = 0; i < M; i++){
        dist[a[i]][b[i]] = min(dist[a[i]][b[i]], c[i]);
        dist[b[i]][a[i]] = min(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 = M;

    for(int i = 0; i < M; i++){
        int f = 1;
        for(int j = 0; j < N; j++){
            if(dist[j][a[i]] + c[i] == dist[j][b[i]]){
                f = 0;
            }
        }
        if(f == 0){
            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
 1
 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>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>

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

int main(void){

    int N, M;

    scanf("%d%d", &N, &M);

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

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

    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] = 1000000000;
            }
        }
    }

    for(int i = 0; i < M; i++){
        dist[a[i]][b[i]] = min(dist[a[i]][b[i]], c[i]);
        dist[b[i]][a[i]] = min(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 = M;

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

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

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.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
.LFE6:
	.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:
.LFB7:
	.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	$312, %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, -344(%rbp)
	leaq	-176(%rbp), %rdx
	leaq	-180(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%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	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
	movslq	%edx, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%edx, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%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	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%edx, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%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	-180(%rbp), %ecx
	movl	-180(%rbp), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -336(%rbp)
	movq	$0, -328(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%esi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-224(%rbp), %r9
	movq	-216(%rbp), %r10
	movq	%r10, %rdx
	imulq	-208(%rbp), %rdx
	movq	-200(%rbp), %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r9, %rax
	mulq	-208(%rbp)
	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, -172(%rbp)
	jmp	.L17
.L18:
	movl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-104(%rbp), %rax
	addq	%rax, %rdx
	movl	-172(%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	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-120(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-104(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-104(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -172(%rbp)
.L17:
	movl	-176(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jl	.L18
	movl	$0, -168(%rbp)
	jmp	.L19
.L24:
	movl	$0, -164(%rbp)
	jmp	.L20
.L23:
	movl	-168(%rbp), %eax
	cmpl	-164(%rbp), %eax
	jne	.L21
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-164(%rbp), %edx
	movslq	%edx, %rsi
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L22
.L21:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-164(%rbp), %edx
	movslq	%edx, %rsi
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$1000000000, (%rax,%rdx,4)
.L22:
	addl	$1, -164(%rbp)
.L20:
	movl	-180(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jl	.L23
	addl	$1, -168(%rbp)
.L19:
	movl	-180(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L24
	movl	$0, -160(%rbp)
	jmp	.L25
.L26:
	movq	-88(%rbp), %rax
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-120(%rbp), %rax
	movl	-160(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	-104(%rbp), %rax
	movl	-160(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	-64(%rbp), %rax
	movslq	%ecx, %r8
	movslq	%esi, %rcx
	imulq	%rdi, %rcx
	addq	%r8, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	%rbx, %r14
	shrq	$2, %r14
	movq	-120(%rbp), %rcx
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %r12d
	movq	-104(%rbp), %rcx
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %r13d
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movq	-64(%rbp), %rdx
	movslq	%r13d, %rsi
	movslq	%r12d, %rcx
	imulq	%r14, %rcx
	addq	%rsi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	movq	-88(%rbp), %rax
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-104(%rbp), %rax
	movl	-160(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	-120(%rbp), %rax
	movl	-160(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	-64(%rbp), %rax
	movslq	%ecx, %r8
	movslq	%esi, %rcx
	imulq	%rdi, %rcx
	addq	%r8, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	%rbx, %r14
	shrq	$2, %r14
	movq	-104(%rbp), %rcx
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %r12d
	movq	-120(%rbp), %rcx
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %r13d
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movq	-64(%rbp), %rdx
	movslq	%r13d, %rsi
	movslq	%r12d, %rcx
	imulq	%r14, %rcx
	addq	%rsi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$1, -160(%rbp)
.L25:
	movl	-176(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jl	.L26
	movl	$0, -156(%rbp)
	jmp	.L27
.L32:
	movl	$0, -152(%rbp)
	jmp	.L28
.L31:
	movl	$0, -148(%rbp)
	jmp	.L29
.L30:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%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	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-156(%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	-148(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-152(%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	-148(%rbp), %ecx
	movslq	%ecx, %rsi
	movl	-152(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%r12, %rcx
	addq	%rsi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$1, -148(%rbp)
.L29:
	movl	-180(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L30
	addl	$1, -152(%rbp)
.L28:
	movl	-180(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L31
	addl	$1, -156(%rbp)
.L27:
	movl	-180(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L32
	movl	-176(%rbp), %eax
	movl	%eax, -144(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L33
.L38:
	movl	$1, -136(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L34
.L36:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-120(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rsi
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-88(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%eax, %ecx
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-104(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdi
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jne	.L35
	movl	$0, -136(%rbp)
.L35:
	addl	$1, -132(%rbp)
.L34:
	movl	-180(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L36
	cmpl	$0, -136(%rbp)
	jne	.L37
	subl	$1, -144(%rbp)
.L37:
	addl	$1, -140(%rbp)
.L33:
	movl	-176(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L38
	movl	-144(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-344(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
.LFB6:
	.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
.LFE6:
	.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:
.LFB7:
	.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	$312, %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, -344(%rbp)
	leaq	-176(%rbp), %rdx
	leaq	-180(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%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	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
	movslq	%edx, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%edx, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%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	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%edx, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%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	-180(%rbp), %ecx
	movl	-180(%rbp), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -336(%rbp)
	movq	$0, -328(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%esi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-224(%rbp), %r9
	movq	-216(%rbp), %r10
	movq	%r10, %rdx
	imulq	-208(%rbp), %rdx
	movq	-200(%rbp), %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r9, %rax
	mulq	-208(%rbp)
	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, -172(%rbp)
	jmp	.L17
.L18:
	movl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-104(%rbp), %rax
	addq	%rax, %rdx
	movl	-172(%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	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-120(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-104(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-104(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -172(%rbp)
.L17:
	movl	-176(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jl	.L18
	movl	$0, -168(%rbp)
	jmp	.L19
.L24:
	movl	$0, -164(%rbp)
	jmp	.L20
.L23:
	movl	-168(%rbp), %eax
	cmpl	-164(%rbp), %eax
	jne	.L21
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-164(%rbp), %edx
	movslq	%edx, %rsi
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L22
.L21:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-164(%rbp), %edx
	movslq	%edx, %rsi
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	$1000000000, (%rax,%rdx,4)
.L22:
	addl	$1, -164(%rbp)
.L20:
	movl	-180(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jl	.L23
	addl	$1, -168(%rbp)
.L19:
	movl	-180(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L24
	movl	$0, -160(%rbp)
	jmp	.L25
.L26:
	movq	-88(%rbp), %rax
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-120(%rbp), %rax
	movl	-160(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	-104(%rbp), %rax
	movl	-160(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	-64(%rbp), %rax
	movslq	%ecx, %r8
	movslq	%esi, %rcx
	imulq	%rdi, %rcx
	addq	%r8, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	%rbx, %r14
	shrq	$2, %r14
	movq	-120(%rbp), %rcx
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %r12d
	movq	-104(%rbp), %rcx
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %r13d
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movq	-64(%rbp), %rdx
	movslq	%r13d, %rsi
	movslq	%r12d, %rcx
	imulq	%r14, %rcx
	addq	%rsi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	movq	-88(%rbp), %rax
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-104(%rbp), %rax
	movl	-160(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	-120(%rbp), %rax
	movl	-160(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	-64(%rbp), %rax
	movslq	%ecx, %r8
	movslq	%esi, %rcx
	imulq	%rdi, %rcx
	addq	%r8, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	%rbx, %r14
	shrq	$2, %r14
	movq	-104(%rbp), %rcx
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %r12d
	movq	-120(%rbp), %rcx
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	movl	(%rcx,%rsi,4), %r13d
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movq	-64(%rbp), %rdx
	movslq	%r13d, %rsi
	movslq	%r12d, %rcx
	imulq	%r14, %rcx
	addq	%rsi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$1, -160(%rbp)
.L25:
	movl	-176(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jl	.L26
	movl	$0, -156(%rbp)
	jmp	.L27
.L32:
	movl	$0, -152(%rbp)
	jmp	.L28
.L31:
	movl	$0, -148(%rbp)
	jmp	.L29
.L30:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rsi
	movl	-152(%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	-148(%rbp), %edx
	movslq	%edx, %rdi
	movl	-156(%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	-148(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-152(%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	-148(%rbp), %ecx
	movslq	%ecx, %rsi
	movl	-152(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%r12, %rcx
	addq	%rsi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$1, -148(%rbp)
.L29:
	movl	-180(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L30
	addl	$1, -152(%rbp)
.L28:
	movl	-180(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L31
	addl	$1, -156(%rbp)
.L27:
	movl	-180(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L32
	movl	-176(%rbp), %eax
	movl	%eax, -144(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L33
.L38:
	movl	$1, -136(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L34
.L36:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-120(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rsi
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-88(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	%eax, %ecx
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-104(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdi
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jne	.L35
	movl	$0, -136(%rbp)
.L35:
	addl	$1, -132(%rbp)
.L34:
	movl	-180(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L36
	cmpl	$0, -136(%rbp)
	jne	.L37
	subl	$1, -144(%rbp)
.L37:
	addl	$1, -140(%rbp)
.L33:
	movl	-176(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L38
	movl	-144(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-344(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
