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<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

int main(){
    int n, m;
    scanf("%d %d", &n, &m);
    int wf[n+1][n+1];
    rep(i, 0, n+1){
        rep(j, 0, n+1){
            wf[i][j] = 1000000;
            if(i==j){
                wf[i][j] = 0;
            }
        }
    }
    int a[m], b[m], c[m];
    rep(i, 0, m){
        scanf("%d %d %d", &a[i], &b[i], &c[i]);
        wf[a[i]][b[i]] = c[i];
        wf[b[i]][a[i]] = c[i];
    }
    rep(k, 1, n+1){
        rep(i, 1, n+1){
            rep(j, 1, n+1){
                if(wf[i][j] > wf[i][k] + wf[k][j]){
                    wf[i][j] = wf[i][k] + wf[k][j];
                }
            }
        }
    }
    int ans = 0;
    rep(i, 0, m){
        if(wf[a[i]][b[i]] < c[i]){
            ans++;
        }
    }
    printf("%d\n", ans);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	-168(%rbp), %eax
	leal	1(%rax), %esi
	movl	-168(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%esi, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-192(%rbp), %r9
	movq	-184(%rbp), %r10
	movq	%r10, %rdx
	movq	-208(%rbp), %r11
	movq	-200(%rbp), %r12
	imulq	%r11, %rdx
	movq	%r12, %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r9, %rax
	mulq	%r11
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %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, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -112(%rbp)
	movl	$0, -160(%rbp)
	jmp	.L5
.L9:
	movl	$0, -156(%rbp)
	jmp	.L6
.L8:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-112(%rbp), %rcx
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	movl	-160(%rbp), %eax
	cltq
	imulq	%rsi, %rax
	addq	%rdx, %rax
	movl	$1000000, (%rcx,%rax,4)
	movl	-160(%rbp), %eax
	cmpl	-156(%rbp), %eax
	jne	.L7
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-112(%rbp), %rcx
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	movl	-160(%rbp), %eax
	cltq
	imulq	%rsi, %rax
	addq	%rdx, %rax
	movl	$0, (%rcx,%rax,4)
.L7:
	addl	$1, -156(%rbp)
.L6:
	movl	-168(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L8
	addl	$1, -160(%rbp)
.L5:
	movl	-168(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jle	.L9
	movl	-164(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%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, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -96(%rbp)
	movl	-164(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L13:
	cmpq	%rdx, %rsp
	je	.L14
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L13
.L14:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L15
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L15:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-164(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -320(%rbp)
	movq	$0, -312(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L16:
	cmpq	%rdx, %rsp
	je	.L17
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L16
.L17:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L18
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L18:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L19
.L20:
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rax, %rdx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-96(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-96(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-112(%rbp), %rax
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	imulq	%rdi, %rcx
	addq	%rsi, %rcx
	movl	%edx, (%rax,%rcx,4)
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-96(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-112(%rbp), %rax
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	imulq	%rdi, %rcx
	addq	%rsi, %rcx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -152(%rbp)
.L19:
	movl	-164(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L20
	movl	$1, -148(%rbp)
	jmp	.L21
.L27:
	movl	$1, -144(%rbp)
	jmp	.L22
.L26:
	movl	$1, -140(%rbp)
	jmp	.L23
.L25:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-112(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rsi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-112(%rbp), %rax
	movl	-148(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-144(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	(%rax,%rcx,4), %edi
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-112(%rbp), %rax
	movl	-140(%rbp), %ecx
	movslq	%ecx, %r8
	movl	-148(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%r8, %rcx
	movl	(%rax,%rcx,4), %eax
	addl	%edi, %eax
	cmpl	%eax, %edx
	jle	.L24
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-112(%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), %edi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-112(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rsi
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	%rbx, %rsi
	shrq	$2, %rsi
	leal	(%rdi,%rax), %ecx
	movq	-112(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L24:
	addl	$1, -140(%rbp)
.L23:
	movl	-168(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jle	.L25
	addl	$1, -144(%rbp)
.L22:
	movl	-168(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jle	.L26
	addl	$1, -148(%rbp)
.L21:
	movl	-168(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jle	.L27
	movl	$0, -136(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L28
.L30:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-96(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L29
	addl	$1, -136(%rbp)
.L29:
	addl	$1, -132(%rbp)
.L28:
	movl	-164(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L30
	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	.L32
	call	__stack_chk_fail@PLT
.L32:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.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:
.LFB51:
	.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	$72, %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
	movl	-64(%rbp), %eax
	movq	%rsp, %rdi
	leal	1(%rax), %r15d
	movslq	%r15d, %rcx
	leaq	0(,%rcx,4), %rdx
	imulq	%rcx, %rcx
	leaq	15(,%rcx,4), %rsi
	movq	%rsi, %rcx
	andq	$-4096, %rsi
	subq	%rsi, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L3
.L67:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L67
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L68
.L4:
	movq	%rsp, %rbx
	testl	%eax, %eax
	js	.L24
	movl	%r15d, %ecx
	movq	%rdx, %rdi
	movl	%r15d, %r12d
	movq	%rbx, %r9
	shrl	$2, %ecx
	shrq	$2, %rdi
	andl	$-4, %r12d
	xorl	%esi, %esi
	leal	-1(%rcx), %r14d
	movq	%rdi, -72(%rbp)
	movdqa	.LC2(%rip), %xmm4
	movl	$1000000, %r11d
	addq	$1, %r14
	movdqa	.LC3(%rip), %xmm3
	xorl	%r10d, %r10d
	salq	$4, %r14
	cmpl	$2, %eax
	jle	.L39
	.p2align 4,,10
	.p2align 3
.L69:
	movd	%esi, %xmm5
	movdqa	.LC0(%rip), %xmm1
	leaq	(%r14,%r9), %rdi
	movq	%r9, %rcx
	pshufd	$0, %xmm5, %xmm2
	.p2align 4,,10
	.p2align 3
.L18:
	movdqa	%xmm1, %xmm0
	addq	$16, %rcx
	paddd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm0
	pandn	%xmm3, %xmm0
	movups	%xmm0, -16(%rcx)
	cmpq	%rdi, %rcx
	jne	.L18
	movl	%r12d, %ecx
	cmpl	%r15d, %r12d
	je	.L19
.L17:
	cmpl	%ecx, %esi
	movl	%r10d, %r13d
	movslq	%esi, %r8
	movslq	%ecx, %rdi
	cmovne	%r11d, %r13d
	imulq	-72(%rbp), %r8
	addq	%r8, %rdi
	movl	%r13d, (%rbx,%rdi,4)
	leal	1(%rcx), %edi
	cmpl	%edi, %eax
	jl	.L19
	cmpl	%esi, %edi
	movl	%r10d, %r13d
	movslq	%edi, %rdi
	cmovne	%r11d, %r13d
	addq	%r8, %rdi
	addl	$2, %ecx
	movl	%r13d, (%rbx,%rdi,4)
	cmpl	%ecx, %eax
	jl	.L19
	cmpl	%esi, %ecx
	movl	%r10d, %edi
	movslq	%ecx, %rcx
	cmovne	%r11d, %edi
	addq	%r8, %rcx
	movl	%edi, (%rbx,%rcx,4)
.L19:
	leal	1(%rsi), %ecx
	addq	%rdx, %r9
	cmpl	%esi, %eax
	je	.L24
	movl	%ecx, %esi
	cmpl	$2, %eax
	jg	.L69
.L39:
	xorl	%ecx, %ecx
	jmp	.L17
.L24:
	movslq	-60(%rbp), %rcx
	movq	%rsp, %rdi
	movl	%ecx, -76(%rbp)
	leaq	15(,%rcx,4), %rcx
	movq	%rcx, %r8
	movq	%rcx, %rsi
	andq	$-4096, %r8
	andq	$-16, %rsi
	subq	%r8, %rdi
	cmpq	%rdi, %rsp
	je	.L7
.L70:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L70
.L7:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	jne	.L71
.L8:
	movq	%rcx, %r8
	movq	%rsp, -88(%rbp)
	movq	%rcx, %rsi
	movq	%rsp, %rdi
	andq	$-4096, %r8
	andq	$-16, %rsi
	subq	%r8, %rdi
.L9:
	cmpq	%rdi, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L71:
	orq	$0, -8(%rsp,%rsi)
	jmp	.L8
.L68:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L10:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	jne	.L72
.L11:
	movq	%rsp, -96(%rbp)
	movq	%rcx, %rsi
	movq	%rsp, %rdi
	andq	$-4096, %rcx
	andq	$-16, %rsi
	subq	%rcx, %rdi
.L12:
	cmpq	%rdi, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L72:
	orq	$0, -8(%rsp,%rsi)
	jmp	.L11
.L13:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	je	.L14
	orq	$0, -8(%rsp,%rsi)
.L14:
	cmpl	$0, -76(%rbp)
	movq	%rsp, -104(%rbp)
	jle	.L73
	shrq	$2, %rdx
	movq	-88(%rbp), %rsi
	movq	%rsp, %r14
	movq	-96(%rbp), %r15
	movq	%rdx, -72(%rbp)
	movq	%r14, %r12
	xorl	%r13d, %r13d
	movq	%rbx, %r14
	movq	%rsi, %rbx
	.p2align 4,,10
	.p2align 3
.L25:
	movq	%r12, %rcx
	movq	%r15, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	addl	$1, %r13d
	addq	$4, %rbx
	addq	$4, %r15
	addq	$4, %r12
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rcx
	movslq	-4(%rbx), %rax
	movslq	-4(%r15), %rdx
	movl	-4(%r12), %edi
	movq	%rcx, %rsi
	imulq	%rax, %rsi
	addq	%rdx, %rsi
	imulq	%rcx, %rdx
	movl	%edi, (%r14,%rsi,4)
	addq	%rdx, %rax
	movl	%edi, (%r14,%rax,4)
	movl	-60(%rbp), %eax
	cmpl	%r13d, %eax
	jg	.L25
	movl	%eax, -76(%rbp)
	movl	-64(%rbp), %eax
	movq	%rcx, %r12
	movq	%r14, %rbx
	testl	%eax, %eax
	jle	.L26
.L37:
	leaq	0(,%r12,4), %r13
	xorl	%r15d, %r15d
	movl	$1, %r14d
	leaq	4(%rbx,%r13), %rdi
	movq	%rdi, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L27:
	movq	-72(%rbp), %r10
	movq	%r15, %r8
	movl	$1, %r9d
	movslq	%r14d, %r11
	.p2align 4,,10
	.p2align 3
.L31:
	movslq	%r9d, %rdi
	movq	%r10, %rdx
	movl	$1, %esi
	imulq	%r12, %rdi
	addq	%r11, %rdi
	.p2align 4,,10
	.p2align 3
.L29:
	movl	(%rdx,%r8,4), %ecx
	addl	(%rbx,%rdi,4), %ecx
	cmpl	%ecx, (%rdx)
	jle	.L28
	movl	%ecx, (%rdx)
.L28:
	addl	$1, %esi
	addq	$4, %rdx
	cmpl	%esi, %eax
	jge	.L29
	addl	$1, %r9d
	addq	%r13, %r10
	subq	%r12, %r8
	cmpl	%r9d, %eax
	jge	.L31
	addq	$1, %r14
	addq	%r12, %r15
	cmpl	%r14d, %eax
	jge	.L27
.L26:
	movslq	-76(%rbp), %rsi
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	testl	%esi, %esi
	jle	.L36
	movq	-88(%rbp), %rdi
	movq	-96(%rbp), %r9
	movq	-104(%rbp), %r10
	.p2align 4,,10
	.p2align 3
.L35:
	movslq	(%rdi,%rax,4), %rcx
	movslq	(%r9,%rax,4), %rdx
	imulq	%r12, %rcx
	addq	%rcx, %rdx
	movl	(%rbx,%rdx,4), %edx
	cmpl	%edx, (%r10,%rax,4)
	jle	.L34
	addl	$1, %r8d
.L34:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L35
.L33:
	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	.L74
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L36:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L33
.L73:
	testl	%eax, %eax
	jle	.L36
	shrq	$2, %rdx
	movq	%rdx, %r12
	jmp	.L37
.L74:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	1000000
	.long	1000000
	.long	1000000
	.long	1000000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.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:
.LFB51:
	.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	$72, %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
	movl	-64(%rbp), %eax
	movq	%rsp, %rdi
	leal	1(%rax), %r15d
	movslq	%r15d, %rcx
	leaq	0(,%rcx,4), %rdx
	imulq	%rcx, %rcx
	leaq	15(,%rcx,4), %rsi
	movq	%rsi, %rcx
	andq	$-4096, %rsi
	subq	%rsi, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L3
.L67:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L67
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L68
.L4:
	movq	%rsp, %rbx
	testl	%eax, %eax
	js	.L24
	movl	%r15d, %ecx
	movq	%rdx, %rdi
	movl	%r15d, %r12d
	movq	%rbx, %r9
	shrl	$2, %ecx
	shrq	$2, %rdi
	andl	$-4, %r12d
	xorl	%esi, %esi
	leal	-1(%rcx), %r14d
	movq	%rdi, -72(%rbp)
	movdqa	.LC2(%rip), %xmm4
	movl	$1000000, %r11d
	addq	$1, %r14
	movdqa	.LC3(%rip), %xmm3
	xorl	%r10d, %r10d
	salq	$4, %r14
	cmpl	$2, %eax
	jle	.L39
	.p2align 4,,10
	.p2align 3
.L69:
	movd	%esi, %xmm5
	movdqa	.LC0(%rip), %xmm1
	leaq	(%r14,%r9), %rdi
	movq	%r9, %rcx
	pshufd	$0, %xmm5, %xmm2
	.p2align 4,,10
	.p2align 3
.L18:
	movdqa	%xmm1, %xmm0
	addq	$16, %rcx
	paddd	%xmm4, %xmm1
	pcmpeqd	%xmm2, %xmm0
	pandn	%xmm3, %xmm0
	movups	%xmm0, -16(%rcx)
	cmpq	%rdi, %rcx
	jne	.L18
	movl	%r12d, %ecx
	cmpl	%r15d, %r12d
	je	.L19
.L17:
	cmpl	%ecx, %esi
	movl	%r10d, %r13d
	movslq	%esi, %r8
	movslq	%ecx, %rdi
	cmovne	%r11d, %r13d
	imulq	-72(%rbp), %r8
	addq	%r8, %rdi
	movl	%r13d, (%rbx,%rdi,4)
	leal	1(%rcx), %edi
	cmpl	%edi, %eax
	jl	.L19
	cmpl	%esi, %edi
	movl	%r10d, %r13d
	movslq	%edi, %rdi
	cmovne	%r11d, %r13d
	addq	%r8, %rdi
	addl	$2, %ecx
	movl	%r13d, (%rbx,%rdi,4)
	cmpl	%ecx, %eax
	jl	.L19
	cmpl	%esi, %ecx
	movl	%r10d, %edi
	movslq	%ecx, %rcx
	cmovne	%r11d, %edi
	addq	%r8, %rcx
	movl	%edi, (%rbx,%rcx,4)
.L19:
	leal	1(%rsi), %ecx
	addq	%rdx, %r9
	cmpl	%esi, %eax
	je	.L24
	movl	%ecx, %esi
	cmpl	$2, %eax
	jg	.L69
.L39:
	xorl	%ecx, %ecx
	jmp	.L17
.L24:
	movslq	-60(%rbp), %rcx
	movq	%rsp, %rdi
	movl	%ecx, -76(%rbp)
	leaq	15(,%rcx,4), %rcx
	movq	%rcx, %r8
	movq	%rcx, %rsi
	andq	$-4096, %r8
	andq	$-16, %rsi
	subq	%r8, %rdi
	cmpq	%rdi, %rsp
	je	.L7
.L70:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L70
.L7:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	jne	.L71
.L8:
	movq	%rcx, %r8
	movq	%rsp, -88(%rbp)
	movq	%rcx, %rsi
	movq	%rsp, %rdi
	andq	$-4096, %r8
	andq	$-16, %rsi
	subq	%r8, %rdi
.L9:
	cmpq	%rdi, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L71:
	orq	$0, -8(%rsp,%rsi)
	jmp	.L8
.L68:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L10:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	jne	.L72
.L11:
	movq	%rsp, -96(%rbp)
	movq	%rcx, %rsi
	movq	%rsp, %rdi
	andq	$-4096, %rcx
	andq	$-16, %rsi
	subq	%rcx, %rdi
.L12:
	cmpq	%rdi, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L72:
	orq	$0, -8(%rsp,%rsi)
	jmp	.L11
.L13:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	je	.L14
	orq	$0, -8(%rsp,%rsi)
.L14:
	cmpl	$0, -76(%rbp)
	movq	%rsp, -104(%rbp)
	jle	.L73
	shrq	$2, %rdx
	movq	-88(%rbp), %rsi
	movq	%rsp, %r14
	movq	-96(%rbp), %r15
	movq	%rdx, -72(%rbp)
	movq	%r14, %r12
	xorl	%r13d, %r13d
	movq	%rbx, %r14
	movq	%rsi, %rbx
	.p2align 4,,10
	.p2align 3
.L25:
	movq	%r12, %rcx
	movq	%r15, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	addl	$1, %r13d
	addq	$4, %rbx
	addq	$4, %r15
	addq	$4, %r12
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rcx
	movslq	-4(%rbx), %rax
	movslq	-4(%r15), %rdx
	movl	-4(%r12), %edi
	movq	%rcx, %rsi
	imulq	%rax, %rsi
	addq	%rdx, %rsi
	imulq	%rcx, %rdx
	movl	%edi, (%r14,%rsi,4)
	addq	%rdx, %rax
	movl	%edi, (%r14,%rax,4)
	movl	-60(%rbp), %eax
	cmpl	%r13d, %eax
	jg	.L25
	movl	%eax, -76(%rbp)
	movl	-64(%rbp), %eax
	movq	%rcx, %r12
	movq	%r14, %rbx
	testl	%eax, %eax
	jle	.L26
.L37:
	leaq	0(,%r12,4), %r13
	xorl	%r15d, %r15d
	movl	$1, %r14d
	leaq	4(%rbx,%r13), %rdi
	movq	%rdi, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L27:
	movq	-72(%rbp), %r10
	movq	%r15, %r8
	movl	$1, %r9d
	movslq	%r14d, %r11
	.p2align 4,,10
	.p2align 3
.L31:
	movslq	%r9d, %rdi
	movq	%r10, %rdx
	movl	$1, %esi
	imulq	%r12, %rdi
	addq	%r11, %rdi
	.p2align 4,,10
	.p2align 3
.L29:
	movl	(%rdx,%r8,4), %ecx
	addl	(%rbx,%rdi,4), %ecx
	cmpl	%ecx, (%rdx)
	jle	.L28
	movl	%ecx, (%rdx)
.L28:
	addl	$1, %esi
	addq	$4, %rdx
	cmpl	%esi, %eax
	jge	.L29
	addl	$1, %r9d
	addq	%r13, %r10
	subq	%r12, %r8
	cmpl	%r9d, %eax
	jge	.L31
	addq	$1, %r14
	addq	%r12, %r15
	cmpl	%r14d, %eax
	jge	.L27
.L26:
	movslq	-76(%rbp), %rsi
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	testl	%esi, %esi
	jle	.L36
	movq	-88(%rbp), %rdi
	movq	-96(%rbp), %r9
	movq	-104(%rbp), %r10
	.p2align 4,,10
	.p2align 3
.L35:
	movslq	(%rdi,%rax,4), %rcx
	movslq	(%r9,%rax,4), %rdx
	imulq	%r12, %rcx
	addq	%rcx, %rdx
	movl	(%rbx,%rdx,4), %edx
	cmpl	%edx, (%r10,%rax,4)
	jle	.L34
	addl	$1, %r8d
.L34:
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L35
.L33:
	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	.L74
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L36:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L33
.L73:
	testl	%eax, %eax
	jle	.L36
	shrq	$2, %rdx
	movq	%rdx, %r12
	jmp	.L37
.L74:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	1000000
	.long	1000000
	.long	1000000
	.long	1000000
	.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<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

int main(){
    int n, m;
    scanf("%d %d", &n, &m);
    int wf[n+1][n+1];
    rep(i, 0, n+1){
        rep(j, 0, n+1){
            wf[i][j] = 1000000;
            if(i==j){
                wf[i][j] = 0;
            }
        }
    }
    int a[m], b[m], c[m];
    rep(i, 0, m){
        scanf("%d %d %d", &a[i], &b[i], &c[i]);
        wf[a[i]][b[i]] = c[i];
        wf[b[i]][a[i]] = c[i];
    }
    rep(k, 1, n+1){
        rep(i, 1, n+1){
            rep(j, 1, n+1){
                if(wf[i][j] > wf[i][k] + wf[k][j]){
                    wf[i][j] = wf[i][k] + wf[k][j];
                }
            }
        }
    }
    int ans = 0;
    rep(i, 0, m){
        if(wf[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
 0
 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>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

int main(){
    int n, m;
    scanf("%d %d", &n, &m);
    int wf[n+1][n+1];
    rep(i, 0, n+1){
        rep(j, 0, n+1){
            wf[i][j] = 1000000;
            if(i==j){
                wf[i][j] = 0;
            }
        }
    }
    int a[m], b[m], c[m];
    rep(i, 0, m){
        scanf("%d %d %d", &a[i], &b[i], &c[i]);
        wf[a[i]][b[i]] = c[i];
        wf[b[i]][a[i]] = c[i];
    }
    rep(k, 1, n+1){
        rep(i, 1, n+1){
            rep(j, 1, n+1){
                if(wf[i][j] > wf[i][k] + wf[k][j]){
                    wf[i][j] = wf[i][k] + wf[k][j];
                }
            }
        }
    }
    int ans = 0;
    rep(i, 0, m){
        if(wf[a[i]][b[i]] < c[i]){
            ans++;
        }
    }
    printf("%d\n", ans);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	-168(%rbp), %eax
	leal	1(%rax), %esi
	movl	-168(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%esi, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-192(%rbp), %r9
	movq	-184(%rbp), %r10
	movq	%r10, %rdx
	movq	-208(%rbp), %r11
	movq	-200(%rbp), %r12
	imulq	%r11, %rdx
	movq	%r12, %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r9, %rax
	mulq	%r11
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %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, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -112(%rbp)
	movl	$0, -160(%rbp)
	jmp	.L5
.L9:
	movl	$0, -156(%rbp)
	jmp	.L6
.L8:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-112(%rbp), %rcx
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	movl	-160(%rbp), %eax
	cltq
	imulq	%rsi, %rax
	addq	%rdx, %rax
	movl	$1000000, (%rcx,%rax,4)
	movl	-160(%rbp), %eax
	cmpl	-156(%rbp), %eax
	jne	.L7
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-112(%rbp), %rcx
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	movl	-160(%rbp), %eax
	cltq
	imulq	%rsi, %rax
	addq	%rdx, %rax
	movl	$0, (%rcx,%rax,4)
.L7:
	addl	$1, -156(%rbp)
.L6:
	movl	-168(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L8
	addl	$1, -160(%rbp)
.L5:
	movl	-168(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jle	.L9
	movl	-164(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%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, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -96(%rbp)
	movl	-164(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L13:
	cmpq	%rdx, %rsp
	je	.L14
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L13
.L14:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L15
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L15:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-164(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -320(%rbp)
	movq	$0, -312(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L16:
	cmpq	%rdx, %rsp
	je	.L17
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L16
.L17:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L18
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L18:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L19
.L20:
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rax, %rdx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-96(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-96(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-112(%rbp), %rax
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	imulq	%rdi, %rcx
	addq	%rsi, %rcx
	movl	%edx, (%rax,%rcx,4)
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-96(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-112(%rbp), %rax
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	imulq	%rdi, %rcx
	addq	%rsi, %rcx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -152(%rbp)
.L19:
	movl	-164(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L20
	movl	$1, -148(%rbp)
	jmp	.L21
.L27:
	movl	$1, -144(%rbp)
	jmp	.L22
.L26:
	movl	$1, -140(%rbp)
	jmp	.L23
.L25:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-112(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rsi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-112(%rbp), %rax
	movl	-148(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-144(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	(%rax,%rcx,4), %edi
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-112(%rbp), %rax
	movl	-140(%rbp), %ecx
	movslq	%ecx, %r8
	movl	-148(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%r8, %rcx
	movl	(%rax,%rcx,4), %eax
	addl	%edi, %eax
	cmpl	%eax, %edx
	jle	.L24
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-112(%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), %edi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-112(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rsi
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	%rbx, %rsi
	shrq	$2, %rsi
	leal	(%rdi,%rax), %ecx
	movq	-112(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L24:
	addl	$1, -140(%rbp)
.L23:
	movl	-168(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jle	.L25
	addl	$1, -144(%rbp)
.L22:
	movl	-168(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jle	.L26
	addl	$1, -148(%rbp)
.L21:
	movl	-168(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jle	.L27
	movl	$0, -136(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L28
.L30:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-96(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L29
	addl	$1, -136(%rbp)
.L29:
	addl	$1, -132(%rbp)
.L28:
	movl	-164(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L30
	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	.L32
	call	__stack_chk_fail@PLT
.L32:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	-168(%rbp), %eax
	leal	1(%rax), %esi
	movl	-168(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -128(%rbp)
	movslq	%esi, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edi, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	-192(%rbp), %r9
	movq	-184(%rbp), %r10
	movq	%r10, %rdx
	movq	-208(%rbp), %r11
	movq	-200(%rbp), %r12
	imulq	%r11, %rdx
	movq	%r12, %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r9, %rax
	mulq	%r11
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %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, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -112(%rbp)
	movl	$0, -160(%rbp)
	jmp	.L5
.L9:
	movl	$0, -156(%rbp)
	jmp	.L6
.L8:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-112(%rbp), %rcx
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	movl	-160(%rbp), %eax
	cltq
	imulq	%rsi, %rax
	addq	%rdx, %rax
	movl	$1000000, (%rcx,%rax,4)
	movl	-160(%rbp), %eax
	cmpl	-156(%rbp), %eax
	jne	.L7
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-112(%rbp), %rcx
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	movl	-160(%rbp), %eax
	cltq
	imulq	%rsi, %rax
	addq	%rdx, %rax
	movl	$0, (%rcx,%rax,4)
.L7:
	addl	$1, -156(%rbp)
.L6:
	movl	-168(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L8
	addl	$1, -160(%rbp)
.L5:
	movl	-168(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jle	.L9
	movl	-164(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%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, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -96(%rbp)
	movl	-164(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L13:
	cmpq	%rdx, %rsp
	je	.L14
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L13
.L14:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L15
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L15:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-164(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -320(%rbp)
	movq	$0, -312(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L16:
	cmpq	%rdx, %rsp
	je	.L17
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L16
.L17:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L18
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L18:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L19
.L20:
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rax, %rdx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-96(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-96(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-112(%rbp), %rax
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	imulq	%rdi, %rcx
	addq	%rsi, %rcx
	movl	%edx, (%rax,%rcx,4)
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-96(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-112(%rbp), %rax
	movslq	%esi, %rsi
	movslq	%ecx, %rcx
	imulq	%rdi, %rcx
	addq	%rsi, %rcx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -152(%rbp)
.L19:
	movl	-164(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L20
	movl	$1, -148(%rbp)
	jmp	.L21
.L27:
	movl	$1, -144(%rbp)
	jmp	.L22
.L26:
	movl	$1, -140(%rbp)
	jmp	.L23
.L25:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-112(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rsi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-112(%rbp), %rax
	movl	-148(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-144(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	(%rax,%rcx,4), %edi
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-112(%rbp), %rax
	movl	-140(%rbp), %ecx
	movslq	%ecx, %r8
	movl	-148(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%r8, %rcx
	movl	(%rax,%rcx,4), %eax
	addl	%edi, %eax
	cmpl	%eax, %edx
	jle	.L24
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-112(%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), %edi
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-112(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rsi
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	%rbx, %rsi
	shrq	$2, %rsi
	leal	(%rdi,%rax), %ecx
	movq	-112(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L24:
	addl	$1, -140(%rbp)
.L23:
	movl	-168(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jle	.L25
	addl	$1, -144(%rbp)
.L22:
	movl	-168(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jle	.L26
	addl	$1, -148(%rbp)
.L21:
	movl	-168(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jle	.L27
	movl	$0, -136(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L28
.L30:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-96(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdi
	movslq	%ecx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L29
	addl	$1, -136(%rbp)
.L29:
	addl	$1, -132(%rbp)
.L28:
	movl	-164(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L30
	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	.L32
	call	__stack_chk_fail@PLT
.L32:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
