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

    int N, M;

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

    int d[N+1][N+1];

    for(int i = 1; i <= N; i++){
        for(int j = 1; j <= N; j++){
            if(i == j){
                d[i][j] = 0;
            }else{
                d[i][j] = 1000000000;
            }
        }
    }

    int a[M], b[M];

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

    int ans = 0;

    int e[N+1][N+1];

    for(int l = 0; l < M; l++){
        for(int i = 1; i <= N; i++){
            for(int j = 1; j <= N; j++){
                e[i][j] = d[i][j];
            }
        }
        e[a[l]][b[l]] = 1000000000;
        e[b[l]][a[l]] = 1000000000;
        for(int k = 1; k <= N; k++){
            for(int i = 1; i <= N; i++){
                for(int j = 1; j <= N; j++){
                    if(e[i][j] > e[i][k] + e[k][j]){
                        e[i][j] = e[i][k] + e[k][j];
                    }
                }
            }
        }
        int f = 0;
        for(int i = 1; i <= N; i++){
            if(f == 1){
                break;
            }
            for(int j = 1; j <= N; j++){
                if(e[i][j] == 1000000000){
                    f = 1;
                    break;
                }
            }
        }
        if(f == 1){
            ans++;
        }
    }

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

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.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	$376, %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, -408(%rbp)
	leaq	-192(%rbp), %rdx
	leaq	-196(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-196(%rbp), %eax
	leal	1(%rax), %esi
	movl	-196(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	movslq	%esi, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -128(%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, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edi, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	-224(%rbp), %r10
	movq	-216(%rbp), %r11
	movq	%r11, %rdx
	movq	-240(%rbp), %r14
	movq	-232(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r10, %rax
	mulq	%r14
	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, %ecx
	movl	$0, %edx
	divq	%rcx
	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, -120(%rbp)
	movl	$1, -188(%rbp)
	jmp	.L5
.L10:
	movl	$1, -184(%rbp)
	jmp	.L6
.L9:
	movl	-188(%rbp), %eax
	cmpl	-184(%rbp), %eax
	jne	.L7
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-120(%rbp), %rcx
	movl	-184(%rbp), %eax
	movslq	%eax, %rdx
	movl	-188(%rbp), %eax
	cltq
	imulq	%rsi, %rax
	addq	%rdx, %rax
	movl	$0, (%rcx,%rax,4)
	jmp	.L8
.L7:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-120(%rbp), %rcx
	movl	-184(%rbp), %eax
	movslq	%eax, %rdx
	movl	-188(%rbp), %eax
	cltq
	imulq	%rsi, %rax
	addq	%rdx, %rax
	movl	$1000000000, (%rcx,%rax,4)
.L8:
	addl	$1, -184(%rbp)
.L6:
	movl	-196(%rbp), %eax
	cmpl	%eax, -184(%rbp)
	jle	.L9
	addl	$1, -188(%rbp)
.L5:
	movl	-196(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jle	.L10
	movl	-192(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
	movslq	%edx, %rax
	movq	%rax, -336(%rbp)
	movq	$0, -328(%rbp)
	movslq	%edx, %rax
	movq	%rax, -352(%rbp)
	movq	$0, -344(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ecx
	movl	$0, %edx
	divq	%rcx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L11:
	cmpq	%rcx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L13
	movq	%rdx, %rax
	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, -104(%rbp)
	movl	-192(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movslq	%edx, %rax
	movq	%rax, -384(%rbp)
	movq	$0, -376(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ecx
	movl	$0, %edx
	divq	%rcx
	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, -88(%rbp)
	movl	$0, -180(%rbp)
	jmp	.L17
.L18:
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rax, %rdx
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-104(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-104(%rbp), %rdx
	movl	-180(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %esi
	movq	-88(%rbp), %rdx
	movl	-180(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	movq	-120(%rbp), %rdx
	movslq	%eax, %rcx
	movslq	%esi, %rax
	imulq	%rdi, %rax
	addq	%rcx, %rax
	movl	$1, (%rdx,%rax,4)
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-88(%rbp), %rdx
	movl	-180(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %esi
	movq	-104(%rbp), %rdx
	movl	-180(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	movq	-120(%rbp), %rdx
	movslq	%eax, %rcx
	movslq	%esi, %rax
	imulq	%rdi, %rax
	addq	%rcx, %rax
	movl	$1, (%rdx,%rax,4)
	addl	$1, -180(%rbp)
.L17:
	movl	-192(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L18
	movl	$0, -176(%rbp)
	movl	-196(%rbp), %eax
	leal	1(%rax), %edi
	movl	-196(%rbp), %eax
	leal	1(%rax), %r8d
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%edi, %rax
	movq	%rax, -400(%rbp)
	movq	$0, -392(%rbp)
	movslq	%edi, %rax
	leaq	0(,%rax,4), %rcx
	movslq	%r8d, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%edi, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%r8d, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movq	-256(%rbp), %r9
	movq	-248(%rbp), %r10
	movq	%r10, %rdx
	movq	-272(%rbp), %r14
	movq	-264(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rsi
	movq	%r9, %rax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%edi, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%r8d, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movq	-288(%rbp), %r9
	movq	-280(%rbp), %r10
	movq	%r10, %rdx
	movq	-304(%rbp), %r11
	movq	-296(%rbp), %r12
	imulq	%r11, %rdx
	movq	%r12, %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rsi
	movq	%r9, %rax
	mulq	%r11
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%edi, %rdx
	movslq	%r8d, %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, %rsi
	andq	$-4096, %rsi
	movq	%rsp, %rdx
	subq	%rsi, %rdx
.L19:
	cmpq	%rdx, %rsp
	je	.L20
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L19
.L20:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L21
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L21:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -172(%rbp)
	jmp	.L22
.L43:
	movl	$1, -168(%rbp)
	jmp	.L23
.L26:
	movl	$1, -164(%rbp)
	jmp	.L24
.L25:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-120(%rbp), %rax
	movl	-164(%rbp), %edx
	movslq	%edx, %r8
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%r8, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movl	-164(%rbp), %esi
	movslq	%esi, %r8
	movl	-168(%rbp), %esi
	movslq	%esi, %rsi
	imulq	%rdi, %rsi
	addq	%r8, %rsi
	movl	%edx, (%rax,%rsi,4)
	addl	$1, -164(%rbp)
.L24:
	movl	-196(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jle	.L25
	addl	$1, -168(%rbp)
.L23:
	movl	-196(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jle	.L26
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-104(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-88(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %r8
	movslq	%esi, %rdx
	imulq	%rdi, %rdx
	addq	%r8, %rdx
	movl	$1000000000, (%rax,%rdx,4)
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-88(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-104(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %r8
	movslq	%esi, %rdx
	imulq	%rdi, %rdx
	addq	%r8, %rdx
	movl	$1000000000, (%rax,%rdx,4)
	movl	$1, -160(%rbp)
	jmp	.L27
.L33:
	movl	$1, -156(%rbp)
	jmp	.L28
.L32:
	movl	$1, -152(%rbp)
	jmp	.L29
.L31:
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdi
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-64(%rbp), %rax
	movl	-160(%rbp), %esi
	movslq	%esi, %r8
	movl	-156(%rbp), %esi
	movslq	%esi, %rsi
	imulq	%rdi, %rsi
	addq	%r8, %rsi
	movl	(%rax,%rsi,4), %r8d
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %esi
	movslq	%esi, %r9
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	imulq	%rdi, %rsi
	addq	%r9, %rsi
	movl	(%rax,%rsi,4), %eax
	addl	%r8d, %eax
	cmpl	%eax, %edx
	jle	.L30
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-160(%rbp), %edx
	movslq	%edx, %rdi
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %r8d
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdi
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	%rcx, %rdi
	shrq	$2, %rdi
	leal	(%r8,%rax), %esi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %r8
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rdi, %rdx
	addq	%r8, %rdx
	movl	%esi, (%rax,%rdx,4)
.L30:
	addl	$1, -152(%rbp)
.L29:
	movl	-196(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jle	.L31
	addl	$1, -156(%rbp)
.L28:
	movl	-196(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L32
	addl	$1, -160(%rbp)
.L27:
	movl	-196(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jle	.L33
	movl	$0, -148(%rbp)
	movl	$1, -144(%rbp)
	jmp	.L34
.L41:
	cmpl	$1, -148(%rbp)
	je	.L46
	movl	$1, -140(%rbp)
	jmp	.L37
.L40:
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	$1000000000, %eax
	jne	.L38
	movl	$1, -148(%rbp)
	jmp	.L39
.L38:
	addl	$1, -140(%rbp)
.L37:
	movl	-196(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jle	.L40
.L39:
	addl	$1, -144(%rbp)
.L34:
	movl	-196(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jle	.L41
	jmp	.L36
.L46:
	nop
.L36:
	cmpl	$1, -148(%rbp)
	jne	.L42
	addl	$1, -176(%rbp)
.L42:
	addl	$1, -172(%rbp)
.L22:
	movl	-192(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jl	.L43
	movl	-176(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-408(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	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\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
	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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	movq	%rbx, %rdi
	subq	$152, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %edx
	movq	%rsp, %rsi
	leal	1(%rdx), %eax
	cltq
	leaq	0(,%rax,4), %rdi
	imulq	%rax, %rax
	movq	%rdi, -72(%rbp)
	leaq	15(,%rax,4), %rcx
	movq	%rcx, %rax
	andq	$-4096, %rcx
	subq	%rcx, %rsi
	andq	$-16, %rax
	cmpq	%rsi, %rsp
	je	.L3
.L75:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L75
.L3:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L76
.L4:
	movq	%rsp, %r14
	testl	%edx, %edx
	jle	.L21
	movq	-72(%rbp), %rax
	movl	%edx, %r11d
	leal	-1(%rdx), %r12d
	movl	$1, %ecx
	andl	$-4, %r11d
	movdqa	.LC2(%rip), %xmm3
	xorl	%r10d, %r10d
	movdqa	.LC3(%rip), %xmm2
	movq	%rax, %rdi
	leaq	4(%r14,%rax), %r8
	movl	%edx, %eax
	movl	$1000000000, %r9d
	shrl	$2, %eax
	shrq	$2, %rdi
	leal	1(%r11), %r15d
	subl	$1, %eax
	movq	%rdi, -80(%rbp)
	addq	$1, %rax
	salq	$4, %rax
	movq	%rax, -88(%rbp)
	cmpl	$2, %r12d
	jbe	.L42
.L77:
	movq	-88(%rbp), %rax
	movd	%ecx, %xmm5
	movdqa	.LC0(%rip), %xmm1
	pshufd	$0, %xmm5, %xmm4
	leaq	(%rax,%r8), %rsi
	movq	%r8, %rax
.L15:
	movdqa	%xmm1, %xmm0
	addq	$16, %rax
	paddd	%xmm3, %xmm1
	pcmpeqd	%xmm4, %xmm0
	pandn	%xmm2, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rsi, %rax
	jne	.L15
	movl	%r15d, %eax
	cmpl	%edx, %r11d
	je	.L16
.L14:
	cmpl	%eax, %ecx
	movl	%r9d, %r13d
	movslq	%ecx, %rsi
	movslq	%eax, %rdi
	cmove	%r10d, %r13d
	imulq	-80(%rbp), %rsi
	addq	%rsi, %rdi
	movl	%r13d, (%r14,%rdi,4)
	leal	1(%rax), %edi
	cmpl	%edi, %edx
	jl	.L16
	cmpl	%ecx, %edi
	movl	%r9d, %r13d
	movslq	%edi, %rdi
	cmove	%r10d, %r13d
	addq	%rsi, %rdi
	addl	$2, %eax
	movl	%r13d, (%r14,%rdi,4)
	cmpl	%eax, %edx
	jl	.L16
	cmpl	%ecx, %eax
	movl	%r9d, %edi
	cltq
	cmove	%r10d, %edi
	addq	%rsi, %rax
	movl	%edi, (%r14,%rax,4)
.L16:
	leal	1(%rcx), %eax
	addq	-72(%rbp), %r8
	cmpl	%ecx, %edx
	je	.L21
	movl	%eax, %ecx
	cmpl	$2, %r12d
	ja	.L77
.L42:
	movl	$1, %eax
	jmp	.L14
.L21:
	movslq	-60(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L7
.L78:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L78
.L7:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L79
.L8:
	movq	%rax, %rdx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%rsp, %r15
	andq	$-16, %rdx
	subq	%rax, %rsi
.L9:
	cmpq	%rsi, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L76:
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L10:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L80
.L11:
	movq	%rsp, %rax
	testl	%ecx, %ecx
	jle	.L13
	movq	-72(%rbp), %rcx
	movq	%rax, -120(%rbp)
	movq	%r15, %r12
	movq	%rax, %r8
	movq	%r15, -104(%rbp)
	xorl	%r13d, %r13d
	shrq	$2, %rcx
	movq	%r15, -80(%rbp)
	movq	%r14, %r15
	movq	%rcx, %r14
.L22:
	movq	%r8, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%r8, -88(%rbp)
	addl	$1, %r13d
	addq	$4, %r12
	call	__isoc99_scanf@PLT
	movslq	-4(%r12), %rax
	movq	-88(%rbp), %r8
	movq	%rax, %rsi
	movslq	(%r8), %rdx
	addq	$4, %r8
	imulq	%r14, %rsi
	addq	%rdx, %rsi
	imulq	%r14, %rdx
	movl	$1, (%r15,%rsi,4)
	addq	%rdx, %rax
	movl	-60(%rbp), %edx
	movl	$1, (%r15,%rax,4)
	cmpl	%r13d, %edx
	jg	.L22
	movl	-64(%rbp), %r12d
	movq	%r15, %r14
	movq	%rsp, %rsi
	movq	-80(%rbp), %r15
	leal	1(%r12), %eax
	cltq
	leaq	0(,%rax,4), %r8
	imulq	%rax, %rax
	leaq	15(,%rax,4), %rcx
	movq	%rcx, %rax
	andq	$-4096, %rcx
	andq	$-16, %rax
	subq	%rcx, %rsi
.L23:
	cmpq	%rsi, %rsp
	je	.L24
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L23
.L79:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L8
.L24:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L25
	orq	$0, -8(%rsp,%rax)
.L25:
	movq	%rsp, %rbx
	testl	%edx, %edx
	jle	.L13
	leaq	(%r15,%rdx,4), %rax
	movq	%r8, %r13
	leal	-1(%r12), %edx
	movl	$0, -92(%rbp)
	movq	%rax, -160(%rbp)
	leaq	4(%rbx,%r8), %rax
	shrq	$2, %r13
	movq	%rax, -144(%rbp)
	movq	-72(%rbp), %rax
	leaq	0(%r13,%rdx), %rcx
	leaq	4(%r14,%rax), %rax
	movq	%r8, %r14
	movq	%rax, -152(%rbp)
	leaq	1(%rdx), %rax
	leaq	0(,%rax,4), %rdi
	negq	%rax
	movq	%rdi, -136(%rbp)
	leaq	8(%rbx,%rcx,4), %rdi
	leaq	0(,%rax,4), %r9
	movq	%rdi, -80(%rbp)
	leaq	(%rbx,%r8), %rdi
	movq	%r9, %r15
	movq	%rdi, -128(%rbp)
	leaq	2(%rdx), %rdi
	movq	%rdi, -88(%rbp)
.L26:
	movq	-104(%rbp), %rax
	movq	-152(%rbp), %rsi
	movl	$1, %ecx
	movq	-144(%rbp), %rdi
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movq	-120(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	testl	%r12d, %r12d
	jle	.L81
	movq	%r13, -168(%rbp)
	movq	-136(%rbp), %r13
	movq	%rbx, -176(%rbp)
	movq	%rsi, %rbx
	movq	%r15, -184(%rbp)
	movl	%ecx, %r15d
	.p2align 4,,10
	.p2align 3
.L27:
	movq	%rbx, %rsi
	movq	%r13, %rdx
	call	memcpy@PLT
	addq	-72(%rbp), %rbx
	movq	%rax, %rdi
	movl	%r15d, %eax
	addl	$1, %r15d
	addq	%r14, %rdi
	cmpl	%eax, %r12d
	jne	.L27
	movslq	-108(%rbp), %rax
	movslq	-96(%rbp), %rdx
	xorl	%r11d, %r11d
	movl	$1, %r10d
	movq	-168(%rbp), %r13
	movq	-176(%rbp), %rbx
	movq	%rax, %rcx
	movq	-184(%rbp), %r15
	imulq	%r13, %rcx
	addq	%rdx, %rcx
	imulq	%r13, %rdx
	movl	$1000000000, (%rbx,%rcx,4)
	addq	%rdx, %rax
	movl	$1000000000, (%rbx,%rax,4)
	.p2align 4,,10
	.p2align 3
.L40:
	movq	-80(%rbp), %rsi
	movq	%r11, %rdi
	movl	$1, %r8d
	movslq	%r10d, %r9
	.p2align 4,,10
	.p2align 3
.L33:
	movslq	%r8d, %rcx
	leaq	(%r15,%rsi), %rax
	imulq	%r13, %rcx
	addq	%r9, %rcx
	.p2align 4,,10
	.p2align 3
.L30:
	movl	(%rax,%rdi,4), %edx
	addl	(%rbx,%rcx,4), %edx
	cmpl	%edx, (%rax)
	jle	.L29
	movl	%edx, (%rax)
.L29:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L30
	leal	1(%r8), %eax
	addq	%r14, %rsi
	subq	%r13, %rdi
	cmpl	%r8d, %r12d
	je	.L31
	movl	%eax, %r8d
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$1, %r10
	addq	%r13, %r11
	cmpq	-88(%rbp), %r10
	jne	.L40
	movq	-128(%rbp), %rdx
	movl	$1, %ecx
.L32:
	movl	$1, %eax
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L83:
	addq	$1, %rax
	cmpl	%eax, %r12d
	jl	.L82
.L35:
	cmpl	$1000000000, (%rdx,%rax,4)
	jne	.L83
	addl	$1, -92(%rbp)
.L39:
	addq	$4, -104(%rbp)
	movq	-104(%rbp), %rax
	addq	$4, -120(%rbp)
	cmpq	-160(%rbp), %rax
	jne	.L26
.L37:
	movl	-92(%rbp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L84
	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
.L82:
	.cfi_restore_state
	addl	$1, %ecx
	addq	%r14, %rdx
	cmpl	%ecx, %r12d
	jge	.L32
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L81:
	movslq	-108(%rbp), %rdx
	movslq	-96(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%r13, %rcx
	addq	%rax, %rcx
	imulq	%r13, %rax
	movl	$1000000000, (%rbx,%rcx,4)
	addq	%rax, %rdx
	movl	$1000000000, (%rbx,%rdx,4)
	jmp	.L39
.L13:
	movl	$0, -92(%rbp)
	jmp	.L37
.L80:
	orq	$0, -8(%rsp,%rax)
	jmp	.L11
.L84:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC3:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC4:
	.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
	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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	movq	%rbx, %rdi
	subq	$152, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %edx
	movq	%rsp, %rsi
	leal	1(%rdx), %eax
	cltq
	leaq	0(,%rax,4), %rdi
	imulq	%rax, %rax
	movq	%rdi, -72(%rbp)
	leaq	15(,%rax,4), %rcx
	movq	%rcx, %rax
	andq	$-4096, %rcx
	subq	%rcx, %rsi
	andq	$-16, %rax
	cmpq	%rsi, %rsp
	je	.L3
.L75:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L75
.L3:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L76
.L4:
	movq	%rsp, %r14
	testl	%edx, %edx
	jle	.L21
	movq	-72(%rbp), %rax
	movl	%edx, %r11d
	leal	-1(%rdx), %r12d
	movl	$1, %ecx
	andl	$-4, %r11d
	movdqa	.LC2(%rip), %xmm3
	xorl	%r10d, %r10d
	movdqa	.LC3(%rip), %xmm2
	movq	%rax, %rdi
	leaq	4(%r14,%rax), %r8
	movl	%edx, %eax
	movl	$1000000000, %r9d
	shrl	$2, %eax
	shrq	$2, %rdi
	leal	1(%r11), %r15d
	subl	$1, %eax
	movq	%rdi, -80(%rbp)
	addq	$1, %rax
	salq	$4, %rax
	movq	%rax, -88(%rbp)
	cmpl	$2, %r12d
	jbe	.L42
.L77:
	movq	-88(%rbp), %rax
	movd	%ecx, %xmm5
	movdqa	.LC0(%rip), %xmm1
	pshufd	$0, %xmm5, %xmm4
	leaq	(%rax,%r8), %rsi
	movq	%r8, %rax
.L15:
	movdqa	%xmm1, %xmm0
	addq	$16, %rax
	paddd	%xmm3, %xmm1
	pcmpeqd	%xmm4, %xmm0
	pandn	%xmm2, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rsi, %rax
	jne	.L15
	movl	%r15d, %eax
	cmpl	%edx, %r11d
	je	.L16
.L14:
	cmpl	%eax, %ecx
	movl	%r9d, %r13d
	movslq	%ecx, %rsi
	movslq	%eax, %rdi
	cmove	%r10d, %r13d
	imulq	-80(%rbp), %rsi
	addq	%rsi, %rdi
	movl	%r13d, (%r14,%rdi,4)
	leal	1(%rax), %edi
	cmpl	%edi, %edx
	jl	.L16
	cmpl	%ecx, %edi
	movl	%r9d, %r13d
	movslq	%edi, %rdi
	cmove	%r10d, %r13d
	addq	%rsi, %rdi
	addl	$2, %eax
	movl	%r13d, (%r14,%rdi,4)
	cmpl	%eax, %edx
	jl	.L16
	cmpl	%ecx, %eax
	movl	%r9d, %edi
	cltq
	cmove	%r10d, %edi
	addq	%rsi, %rax
	movl	%edi, (%r14,%rax,4)
.L16:
	leal	1(%rcx), %eax
	addq	-72(%rbp), %r8
	cmpl	%ecx, %edx
	je	.L21
	movl	%eax, %ecx
	cmpl	$2, %r12d
	ja	.L77
.L42:
	movl	$1, %eax
	jmp	.L14
.L21:
	movslq	-60(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L7
.L78:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L78
.L7:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L79
.L8:
	movq	%rax, %rdx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%rsp, %r15
	andq	$-16, %rdx
	subq	%rax, %rsi
.L9:
	cmpq	%rsi, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L76:
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L10:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L80
.L11:
	movq	%rsp, %rax
	testl	%ecx, %ecx
	jle	.L13
	movq	-72(%rbp), %rcx
	movq	%rax, -120(%rbp)
	movq	%r15, %r12
	movq	%rax, %r8
	movq	%r15, -104(%rbp)
	xorl	%r13d, %r13d
	shrq	$2, %rcx
	movq	%r15, -80(%rbp)
	movq	%r14, %r15
	movq	%rcx, %r14
.L22:
	movq	%r8, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%r8, -88(%rbp)
	addl	$1, %r13d
	addq	$4, %r12
	call	__isoc99_scanf@PLT
	movslq	-4(%r12), %rax
	movq	-88(%rbp), %r8
	movq	%rax, %rsi
	movslq	(%r8), %rdx
	addq	$4, %r8
	imulq	%r14, %rsi
	addq	%rdx, %rsi
	imulq	%r14, %rdx
	movl	$1, (%r15,%rsi,4)
	addq	%rdx, %rax
	movl	-60(%rbp), %edx
	movl	$1, (%r15,%rax,4)
	cmpl	%r13d, %edx
	jg	.L22
	movl	-64(%rbp), %r12d
	movq	%r15, %r14
	movq	%rsp, %rsi
	movq	-80(%rbp), %r15
	leal	1(%r12), %eax
	cltq
	leaq	0(,%rax,4), %r8
	imulq	%rax, %rax
	leaq	15(,%rax,4), %rcx
	movq	%rcx, %rax
	andq	$-4096, %rcx
	andq	$-16, %rax
	subq	%rcx, %rsi
.L23:
	cmpq	%rsi, %rsp
	je	.L24
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L23
.L79:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L8
.L24:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L25
	orq	$0, -8(%rsp,%rax)
.L25:
	movq	%rsp, %rbx
	testl	%edx, %edx
	jle	.L13
	leaq	(%r15,%rdx,4), %rax
	movq	%r8, %r13
	leal	-1(%r12), %edx
	movl	$0, -92(%rbp)
	movq	%rax, -160(%rbp)
	leaq	4(%rbx,%r8), %rax
	shrq	$2, %r13
	movq	%rax, -144(%rbp)
	movq	-72(%rbp), %rax
	leaq	0(%r13,%rdx), %rcx
	leaq	4(%r14,%rax), %rax
	movq	%r8, %r14
	movq	%rax, -152(%rbp)
	leaq	1(%rdx), %rax
	leaq	0(,%rax,4), %rdi
	negq	%rax
	movq	%rdi, -136(%rbp)
	leaq	8(%rbx,%rcx,4), %rdi
	leaq	0(,%rax,4), %r9
	movq	%rdi, -80(%rbp)
	leaq	(%rbx,%r8), %rdi
	movq	%r9, %r15
	movq	%rdi, -128(%rbp)
	leaq	2(%rdx), %rdi
	movq	%rdi, -88(%rbp)
.L26:
	movq	-104(%rbp), %rax
	movq	-152(%rbp), %rsi
	movl	$1, %ecx
	movq	-144(%rbp), %rdi
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movq	-120(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	testl	%r12d, %r12d
	jle	.L81
	movq	%r13, -168(%rbp)
	movq	-136(%rbp), %r13
	movq	%rbx, -176(%rbp)
	movq	%rsi, %rbx
	movq	%r15, -184(%rbp)
	movl	%ecx, %r15d
	.p2align 4,,10
	.p2align 3
.L27:
	movq	%rbx, %rsi
	movq	%r13, %rdx
	call	memcpy@PLT
	addq	-72(%rbp), %rbx
	movq	%rax, %rdi
	movl	%r15d, %eax
	addl	$1, %r15d
	addq	%r14, %rdi
	cmpl	%eax, %r12d
	jne	.L27
	movslq	-108(%rbp), %rax
	movslq	-96(%rbp), %rdx
	xorl	%r11d, %r11d
	movl	$1, %r10d
	movq	-168(%rbp), %r13
	movq	-176(%rbp), %rbx
	movq	%rax, %rcx
	movq	-184(%rbp), %r15
	imulq	%r13, %rcx
	addq	%rdx, %rcx
	imulq	%r13, %rdx
	movl	$1000000000, (%rbx,%rcx,4)
	addq	%rdx, %rax
	movl	$1000000000, (%rbx,%rax,4)
	.p2align 4,,10
	.p2align 3
.L40:
	movq	-80(%rbp), %rsi
	movq	%r11, %rdi
	movl	$1, %r8d
	movslq	%r10d, %r9
	.p2align 4,,10
	.p2align 3
.L33:
	movslq	%r8d, %rcx
	leaq	(%r15,%rsi), %rax
	imulq	%r13, %rcx
	addq	%r9, %rcx
	.p2align 4,,10
	.p2align 3
.L30:
	movl	(%rax,%rdi,4), %edx
	addl	(%rbx,%rcx,4), %edx
	cmpl	%edx, (%rax)
	jle	.L29
	movl	%edx, (%rax)
.L29:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L30
	leal	1(%r8), %eax
	addq	%r14, %rsi
	subq	%r13, %rdi
	cmpl	%r8d, %r12d
	je	.L31
	movl	%eax, %r8d
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$1, %r10
	addq	%r13, %r11
	cmpq	-88(%rbp), %r10
	jne	.L40
	movq	-128(%rbp), %rdx
	movl	$1, %ecx
.L32:
	movl	$1, %eax
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L83:
	addq	$1, %rax
	cmpl	%eax, %r12d
	jl	.L82
.L35:
	cmpl	$1000000000, (%rdx,%rax,4)
	jne	.L83
	addl	$1, -92(%rbp)
.L39:
	addq	$4, -104(%rbp)
	movq	-104(%rbp), %rax
	addq	$4, -120(%rbp)
	cmpq	-160(%rbp), %rax
	jne	.L26
.L37:
	movl	-92(%rbp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC4(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L84
	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
.L82:
	.cfi_restore_state
	addl	$1, %ecx
	addq	%r14, %rdx
	cmpl	%ecx, %r12d
	jge	.L32
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L81:
	movslq	-108(%rbp), %rdx
	movslq	-96(%rbp), %rax
	movq	%rdx, %rcx
	imulq	%r13, %rcx
	addq	%rax, %rcx
	imulq	%r13, %rax
	movl	$1000000000, (%rbx,%rcx,4)
	addq	%rax, %rdx
	movl	$1000000000, (%rbx,%rdx,4)
	jmp	.L39
.L13:
	movl	$0, -92(%rbp)
	jmp	.L37
.L80:
	orq	$0, -8(%rsp,%rax)
	jmp	.L11
.L84:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC3:
	.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 main(void){

    int N, M;

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

    int d[N+1][N+1];

    for(int i = 1; i <= N; i++){
        for(int j = 1; j <= N; j++){
            if(i == j){
                d[i][j] = 0;
            }else{
                d[i][j] = 1000000000;
            }
        }
    }

    int a[M], b[M];

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

    int ans = 0;

    int e[N+1][N+1];

    for(int l = 0; l < M; l++){
        for(int i = 1; i <= N; i++){
            for(int j = 1; j <= N; j++){
                e[i][j] = d[i][j];
            }
        }
        e[a[l]][b[l]] = 1000000000;
        e[b[l]][a[l]] = 1000000000;
        for(int k = 1; k <= N; k++){
            for(int i = 1; i <= N; i++){
                for(int j = 1; j <= N; j++){
                    if(e[i][j] > e[i][k] + e[k][j]){
                        e[i][j] = e[i][k] + e[k][j];
                    }
                }
            }
        }
        int f = 0;
        for(int i = 1; i <= N; i++){
            if(f == 1){
                break;
            }
            for(int j = 1; j <= N; j++){
                if(e[i][j] == 1000000000){
                    f = 1;
                    break;
                }
            }
        }
        if(f == 1){
            ans++;
        }
    }

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

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

2
 5
 0
 1
 2
 2
 5
 5
 2
 5

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

    int N, M;

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

    int d[N+1][N+1];

    for(int i = 1; i <= N; i++){
        for(int j = 1; j <= N; j++){
            if(i == j){
                d[i][j] = 0;
            }else{
                d[i][j] = 1000000000;
            }
        }
    }

    int a[M], b[M];

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

    int ans = 0;

    int e[N+1][N+1];

    for(int l = 0; l < M; l++){
        for(int i = 1; i <= N; i++){
            for(int j = 1; j <= N; j++){
                e[i][j] = d[i][j];
            }
        }
        e[a[l]][b[l]] = 1000000000;
        e[b[l]][a[l]] = 1000000000;
        for(int k = 1; k <= N; k++){
            for(int i = 1; i <= N; i++){
                for(int j = 1; j <= N; j++){
                    if(e[i][j] > e[i][k] + e[k][j]){
                        e[i][j] = e[i][k] + e[k][j];
                    }
                }
            }
        }
        int f = 0;
        for(int i = 1; i <= N; i++){
            if(f == 1){
                break;
            }
            for(int j = 1; j <= N; j++){
                if(e[i][j] == 1000000000){
                    f = 1;
                    break;
                }
            }
        }
        if(f == 1){
            ans++;
        }
    }

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

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.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	$376, %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, -408(%rbp)
	leaq	-192(%rbp), %rdx
	leaq	-196(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-196(%rbp), %eax
	leal	1(%rax), %esi
	movl	-196(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	movslq	%esi, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -128(%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, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edi, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	-224(%rbp), %r10
	movq	-216(%rbp), %r11
	movq	%r11, %rdx
	movq	-240(%rbp), %r14
	movq	-232(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r10, %rax
	mulq	%r14
	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, %ecx
	movl	$0, %edx
	divq	%rcx
	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, -120(%rbp)
	movl	$1, -188(%rbp)
	jmp	.L5
.L10:
	movl	$1, -184(%rbp)
	jmp	.L6
.L9:
	movl	-188(%rbp), %eax
	cmpl	-184(%rbp), %eax
	jne	.L7
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-120(%rbp), %rcx
	movl	-184(%rbp), %eax
	movslq	%eax, %rdx
	movl	-188(%rbp), %eax
	cltq
	imulq	%rsi, %rax
	addq	%rdx, %rax
	movl	$0, (%rcx,%rax,4)
	jmp	.L8
.L7:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-120(%rbp), %rcx
	movl	-184(%rbp), %eax
	movslq	%eax, %rdx
	movl	-188(%rbp), %eax
	cltq
	imulq	%rsi, %rax
	addq	%rdx, %rax
	movl	$1000000000, (%rcx,%rax,4)
.L8:
	addl	$1, -184(%rbp)
.L6:
	movl	-196(%rbp), %eax
	cmpl	%eax, -184(%rbp)
	jle	.L9
	addl	$1, -188(%rbp)
.L5:
	movl	-196(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jle	.L10
	movl	-192(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
	movslq	%edx, %rax
	movq	%rax, -336(%rbp)
	movq	$0, -328(%rbp)
	movslq	%edx, %rax
	movq	%rax, -352(%rbp)
	movq	$0, -344(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ecx
	movl	$0, %edx
	divq	%rcx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L11:
	cmpq	%rcx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L13
	movq	%rdx, %rax
	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, -104(%rbp)
	movl	-192(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movslq	%edx, %rax
	movq	%rax, -384(%rbp)
	movq	$0, -376(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ecx
	movl	$0, %edx
	divq	%rcx
	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, -88(%rbp)
	movl	$0, -180(%rbp)
	jmp	.L17
.L18:
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rax, %rdx
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-104(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-104(%rbp), %rdx
	movl	-180(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %esi
	movq	-88(%rbp), %rdx
	movl	-180(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	movq	-120(%rbp), %rdx
	movslq	%eax, %rcx
	movslq	%esi, %rax
	imulq	%rdi, %rax
	addq	%rcx, %rax
	movl	$1, (%rdx,%rax,4)
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-88(%rbp), %rdx
	movl	-180(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %esi
	movq	-104(%rbp), %rdx
	movl	-180(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	movq	-120(%rbp), %rdx
	movslq	%eax, %rcx
	movslq	%esi, %rax
	imulq	%rdi, %rax
	addq	%rcx, %rax
	movl	$1, (%rdx,%rax,4)
	addl	$1, -180(%rbp)
.L17:
	movl	-192(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L18
	movl	$0, -176(%rbp)
	movl	-196(%rbp), %eax
	leal	1(%rax), %edi
	movl	-196(%rbp), %eax
	leal	1(%rax), %r8d
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%edi, %rax
	movq	%rax, -400(%rbp)
	movq	$0, -392(%rbp)
	movslq	%edi, %rax
	leaq	0(,%rax,4), %rcx
	movslq	%r8d, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%edi, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%r8d, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movq	-256(%rbp), %r9
	movq	-248(%rbp), %r10
	movq	%r10, %rdx
	movq	-272(%rbp), %r14
	movq	-264(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rsi
	movq	%r9, %rax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%edi, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%r8d, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movq	-288(%rbp), %r9
	movq	-280(%rbp), %r10
	movq	%r10, %rdx
	movq	-304(%rbp), %r11
	movq	-296(%rbp), %r12
	imulq	%r11, %rdx
	movq	%r12, %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rsi
	movq	%r9, %rax
	mulq	%r11
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%edi, %rdx
	movslq	%r8d, %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, %rsi
	andq	$-4096, %rsi
	movq	%rsp, %rdx
	subq	%rsi, %rdx
.L19:
	cmpq	%rdx, %rsp
	je	.L20
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L19
.L20:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L21
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L21:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -172(%rbp)
	jmp	.L22
.L43:
	movl	$1, -168(%rbp)
	jmp	.L23
.L26:
	movl	$1, -164(%rbp)
	jmp	.L24
.L25:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-120(%rbp), %rax
	movl	-164(%rbp), %edx
	movslq	%edx, %r8
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%r8, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movl	-164(%rbp), %esi
	movslq	%esi, %r8
	movl	-168(%rbp), %esi
	movslq	%esi, %rsi
	imulq	%rdi, %rsi
	addq	%r8, %rsi
	movl	%edx, (%rax,%rsi,4)
	addl	$1, -164(%rbp)
.L24:
	movl	-196(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jle	.L25
	addl	$1, -168(%rbp)
.L23:
	movl	-196(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jle	.L26
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-104(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-88(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %r8
	movslq	%esi, %rdx
	imulq	%rdi, %rdx
	addq	%r8, %rdx
	movl	$1000000000, (%rax,%rdx,4)
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-88(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-104(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %r8
	movslq	%esi, %rdx
	imulq	%rdi, %rdx
	addq	%r8, %rdx
	movl	$1000000000, (%rax,%rdx,4)
	movl	$1, -160(%rbp)
	jmp	.L27
.L33:
	movl	$1, -156(%rbp)
	jmp	.L28
.L32:
	movl	$1, -152(%rbp)
	jmp	.L29
.L31:
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdi
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-64(%rbp), %rax
	movl	-160(%rbp), %esi
	movslq	%esi, %r8
	movl	-156(%rbp), %esi
	movslq	%esi, %rsi
	imulq	%rdi, %rsi
	addq	%r8, %rsi
	movl	(%rax,%rsi,4), %r8d
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %esi
	movslq	%esi, %r9
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	imulq	%rdi, %rsi
	addq	%r9, %rsi
	movl	(%rax,%rsi,4), %eax
	addl	%r8d, %eax
	cmpl	%eax, %edx
	jle	.L30
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-160(%rbp), %edx
	movslq	%edx, %rdi
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %r8d
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdi
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	%rcx, %rdi
	shrq	$2, %rdi
	leal	(%r8,%rax), %esi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %r8
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rdi, %rdx
	addq	%r8, %rdx
	movl	%esi, (%rax,%rdx,4)
.L30:
	addl	$1, -152(%rbp)
.L29:
	movl	-196(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jle	.L31
	addl	$1, -156(%rbp)
.L28:
	movl	-196(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L32
	addl	$1, -160(%rbp)
.L27:
	movl	-196(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jle	.L33
	movl	$0, -148(%rbp)
	movl	$1, -144(%rbp)
	jmp	.L34
.L41:
	cmpl	$1, -148(%rbp)
	je	.L46
	movl	$1, -140(%rbp)
	jmp	.L37
.L40:
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	$1000000000, %eax
	jne	.L38
	movl	$1, -148(%rbp)
	jmp	.L39
.L38:
	addl	$1, -140(%rbp)
.L37:
	movl	-196(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jle	.L40
.L39:
	addl	$1, -144(%rbp)
.L34:
	movl	-196(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jle	.L41
	jmp	.L36
.L46:
	nop
.L36:
	cmpl	$1, -148(%rbp)
	jne	.L42
	addl	$1, -176(%rbp)
.L42:
	addl	$1, -172(%rbp)
.L22:
	movl	-192(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jl	.L43
	movl	-176(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-408(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	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\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	$376, %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, -408(%rbp)
	leaq	-192(%rbp), %rdx
	leaq	-196(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-196(%rbp), %eax
	leal	1(%rax), %esi
	movl	-196(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	movslq	%esi, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -128(%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, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edi, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	-224(%rbp), %r10
	movq	-216(%rbp), %r11
	movq	%r11, %rdx
	movq	-240(%rbp), %r14
	movq	-232(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r10, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r10, %rax
	mulq	%r14
	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, %ecx
	movl	$0, %edx
	divq	%rcx
	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, -120(%rbp)
	movl	$1, -188(%rbp)
	jmp	.L5
.L10:
	movl	$1, -184(%rbp)
	jmp	.L6
.L9:
	movl	-188(%rbp), %eax
	cmpl	-184(%rbp), %eax
	jne	.L7
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-120(%rbp), %rcx
	movl	-184(%rbp), %eax
	movslq	%eax, %rdx
	movl	-188(%rbp), %eax
	cltq
	imulq	%rsi, %rax
	addq	%rdx, %rax
	movl	$0, (%rcx,%rax,4)
	jmp	.L8
.L7:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-120(%rbp), %rcx
	movl	-184(%rbp), %eax
	movslq	%eax, %rdx
	movl	-188(%rbp), %eax
	cltq
	imulq	%rsi, %rax
	addq	%rdx, %rax
	movl	$1000000000, (%rcx,%rax,4)
.L8:
	addl	$1, -184(%rbp)
.L6:
	movl	-196(%rbp), %eax
	cmpl	%eax, -184(%rbp)
	jle	.L9
	addl	$1, -188(%rbp)
.L5:
	movl	-196(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jle	.L10
	movl	-192(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -112(%rbp)
	movslq	%edx, %rax
	movq	%rax, -336(%rbp)
	movq	$0, -328(%rbp)
	movslq	%edx, %rax
	movq	%rax, -352(%rbp)
	movq	$0, -344(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ecx
	movl	$0, %edx
	divq	%rcx
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L11:
	cmpq	%rcx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L13
	movq	%rdx, %rax
	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, -104(%rbp)
	movl	-192(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movslq	%edx, %rax
	movq	%rax, -384(%rbp)
	movq	$0, -376(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ecx
	movl	$0, %edx
	divq	%rcx
	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, -88(%rbp)
	movl	$0, -180(%rbp)
	jmp	.L17
.L18:
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rax, %rdx
	movl	-180(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-104(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-104(%rbp), %rdx
	movl	-180(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %esi
	movq	-88(%rbp), %rdx
	movl	-180(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	movq	-120(%rbp), %rdx
	movslq	%eax, %rcx
	movslq	%esi, %rax
	imulq	%rdi, %rax
	addq	%rcx, %rax
	movl	$1, (%rdx,%rax,4)
	movq	%rbx, %rdi
	shrq	$2, %rdi
	movq	-88(%rbp), %rdx
	movl	-180(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %esi
	movq	-104(%rbp), %rdx
	movl	-180(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	movq	-120(%rbp), %rdx
	movslq	%eax, %rcx
	movslq	%esi, %rax
	imulq	%rdi, %rax
	addq	%rcx, %rax
	movl	$1, (%rdx,%rax,4)
	addl	$1, -180(%rbp)
.L17:
	movl	-192(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L18
	movl	$0, -176(%rbp)
	movl	-196(%rbp), %eax
	leal	1(%rax), %edi
	movl	-196(%rbp), %eax
	leal	1(%rax), %r8d
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%edi, %rax
	movq	%rax, -400(%rbp)
	movq	$0, -392(%rbp)
	movslq	%edi, %rax
	leaq	0(,%rax,4), %rcx
	movslq	%r8d, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%edi, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%r8d, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movq	-256(%rbp), %r9
	movq	-248(%rbp), %r10
	movq	%r10, %rdx
	movq	-272(%rbp), %r14
	movq	-264(%rbp), %r15
	imulq	%r14, %rdx
	movq	%r15, %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rsi
	movq	%r9, %rax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%edi, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%r8d, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movq	-288(%rbp), %r9
	movq	-280(%rbp), %r10
	movq	%r10, %rdx
	movq	-304(%rbp), %r11
	movq	-296(%rbp), %r12
	imulq	%r11, %rdx
	movq	%r12, %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rsi
	movq	%r9, %rax
	mulq	%r11
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%edi, %rdx
	movslq	%r8d, %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, %rsi
	andq	$-4096, %rsi
	movq	%rsp, %rdx
	subq	%rsi, %rdx
.L19:
	cmpq	%rdx, %rsp
	je	.L20
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L19
.L20:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L21
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L21:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -172(%rbp)
	jmp	.L22
.L43:
	movl	$1, -168(%rbp)
	jmp	.L23
.L26:
	movl	$1, -164(%rbp)
	jmp	.L24
.L25:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-120(%rbp), %rax
	movl	-164(%rbp), %edx
	movslq	%edx, %r8
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%r8, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movl	-164(%rbp), %esi
	movslq	%esi, %r8
	movl	-168(%rbp), %esi
	movslq	%esi, %rsi
	imulq	%rdi, %rsi
	addq	%r8, %rsi
	movl	%edx, (%rax,%rsi,4)
	addl	$1, -164(%rbp)
.L24:
	movl	-196(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jle	.L25
	addl	$1, -168(%rbp)
.L23:
	movl	-196(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jle	.L26
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-104(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-88(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %r8
	movslq	%esi, %rdx
	imulq	%rdi, %rdx
	addq	%r8, %rdx
	movl	$1000000000, (%rax,%rdx,4)
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-88(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-104(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %r8
	movslq	%esi, %rdx
	imulq	%rdi, %rdx
	addq	%r8, %rdx
	movl	$1000000000, (%rax,%rdx,4)
	movl	$1, -160(%rbp)
	jmp	.L27
.L33:
	movl	$1, -156(%rbp)
	jmp	.L28
.L32:
	movl	$1, -152(%rbp)
	jmp	.L29
.L31:
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdi
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-64(%rbp), %rax
	movl	-160(%rbp), %esi
	movslq	%esi, %r8
	movl	-156(%rbp), %esi
	movslq	%esi, %rsi
	imulq	%rdi, %rsi
	addq	%r8, %rsi
	movl	(%rax,%rsi,4), %r8d
	movq	%rcx, %rdi
	shrq	$2, %rdi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %esi
	movslq	%esi, %r9
	movl	-160(%rbp), %esi
	movslq	%esi, %rsi
	imulq	%rdi, %rsi
	addq	%r9, %rsi
	movl	(%rax,%rsi,4), %eax
	addl	%r8d, %eax
	cmpl	%eax, %edx
	jle	.L30
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-160(%rbp), %edx
	movslq	%edx, %rdi
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %r8d
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdi
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	%rcx, %rdi
	shrq	$2, %rdi
	leal	(%r8,%rax), %esi
	movq	-64(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %r8
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rdi, %rdx
	addq	%r8, %rdx
	movl	%esi, (%rax,%rdx,4)
.L30:
	addl	$1, -152(%rbp)
.L29:
	movl	-196(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jle	.L31
	addl	$1, -156(%rbp)
.L28:
	movl	-196(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L32
	addl	$1, -160(%rbp)
.L27:
	movl	-196(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jle	.L33
	movl	$0, -148(%rbp)
	movl	$1, -144(%rbp)
	jmp	.L34
.L41:
	cmpl	$1, -148(%rbp)
	je	.L46
	movl	$1, -140(%rbp)
	jmp	.L37
.L40:
	movq	%rcx, %rsi
	shrq	$2, %rsi
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdi
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	%rdi, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	$1000000000, %eax
	jne	.L38
	movl	$1, -148(%rbp)
	jmp	.L39
.L38:
	addl	$1, -140(%rbp)
.L37:
	movl	-196(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jle	.L40
.L39:
	addl	$1, -144(%rbp)
.L34:
	movl	-196(%rbp), %eax
	cmpl	%eax, -144(%rbp)
	jle	.L41
	jmp	.L36
.L46:
	nop
.L36:
	cmpl	$1, -148(%rbp)
	jne	.L42
	addl	$1, -176(%rbp)
.L42:
	addl	$1, -172(%rbp)
.L22:
	movl	-192(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jl	.L43
	movl	-176(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-408(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	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:
