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 <stdint.h> // int64_t

#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))

int get_int(void) {
  int num;
  scanf("%d", &num);
  return num;
}

int get_int2(int *a1, int *a2) {
  scanf("%d %d", a1, a2);
  return 0;
}

int get_int3(int *a1, int *a2, int *a3) {
  scanf("%d %d %d", a1, a2, a3);
  return 0;
}

#define NUM_MAX 100
#define INF 0x01010101

int main(void) {
    int vs, es;
    get_int2(&vs, &es);
    static int graph[NUM_MAX][NUM_MAX];
    memset(graph, 0x01, sizeof(int)*NUM_MAX*NUM_MAX);
    int i;
    for(i = 0; i < es; i++) {
        int v1, v2, cost;
        get_int3(&v1, &v2, &cost);
        // 1-indexed -> 0-indexed
        v1--; v2--;
        graph[v1][v2] = graph[v2][v1] = cost;
    }
    static int origin[NUM_MAX][NUM_MAX];
    memcpy(origin, graph, sizeof(int)*NUM_MAX*NUM_MAX);

    int j, k;
    // Warshall floyd
    for(k = 0; k < vs; k++) {
        for(i = 0; i < vs; i++) {
            for(j = 0; j < vs; j++) {
                graph[i][j] = min(graph[i][j], graph[i][k]+graph[k][j]);
            }
        }
    }

    int cnt = 0;
    for(i = 0; i < vs; i++) {
        for(j = i+1; j < vs; j++) {
            if(origin[i][j] == INF) continue;
            if(origin[i][j] != graph[i][j]) cnt++;
        }
    }
    printf("%d\n", cnt);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_int, .-get_int
	.section	.rodata
.LC1:
	.string	"%d %d"
	.text
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_int2, .-get_int2
	.section	.rodata
.LC2:
	.string	"%d %d %d"
	.text
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-24(%rbp), %rcx
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_int3, .-get_int3
	.section	.rodata
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	$40000, %edx
	movl	$1, %esi
	leaq	graph.1(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -24(%rbp)
	jmp	.L9
.L10:
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	get_int3
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %ecx
	movl	-28(%rbp), %esi
	movslq	%ecx, %r8
	movslq	%edx, %rdi
	movq	%rdi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdi
	leaq	graph.1(%rip), %rax
	movl	%esi, (%rdi,%rax)
	movl	-36(%rbp), %esi
	movl	-32(%rbp), %edi
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	graph.1(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edi, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	graph.1(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -24(%rbp)
.L9:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L10
	leaq	origin.0(%rip), %rax
	leaq	graph.1(%rip), %rcx
	movl	$40000, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	$0, -16(%rbp)
	jmp	.L11
.L16:
	movl	$0, -24(%rbp)
	jmp	.L12
.L15:
	movl	$0, -20(%rbp)
	jmp	.L13
.L14:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	graph.1(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	graph.1(%rip), %rax
	movl	(%rcx,%rax), %esi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdi
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	graph.1(%rip), %rax
	movl	(%rcx,%rax), %eax
	addl	%esi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	graph.1(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -20(%rbp)
.L13:
	movl	-44(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	addl	$1, -24(%rbp)
.L12:
	movl	-44(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L15
	addl	$1, -16(%rbp)
.L11:
	movl	-44(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L16
	movl	$0, -12(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L17
.L22:
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L18
.L21:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	origin.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$16843009, %eax
	je	.L25
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	origin.0(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	graph.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	je	.L20
	addl	$1, -12(%rbp)
	jmp	.L20
.L25:
	nop
.L20:
	addl	$1, -20(%rbp)
.L18:
	movl	-44(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L21
	addl	$1, -24(%rbp)
.L17:
	movl	-44(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L22
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.local	graph.1
	.comm	graph.1,40000,32
	.local	origin.0
	.comm	origin.0,40000,32
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.text
	.p2align 4
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L5
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	get_int, .-get_int
	.section	.rodata.str1.1
.LC1:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB52:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rsi, %rdx
	xorl	%eax, %eax
	movq	%rdi, %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE52:
	.size	get_int2, .-get_int2
	.section	.rodata.str1.1
.LC2:
	.string	"%d %d %d"
	.text
	.p2align 4
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB53:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdx, %rcx
	xorl	%eax, %eax
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE53:
	.size	get_int3, .-get_int3
	.section	.rodata.str1.1
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	graph.1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	120(%rsp), %rdx
	leaq	116(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	$40000, %edx
	movl	$1, %esi
	movq	%rbp, %rdi
	call	memset@PLT
	movl	120(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	xorl	%r15d, %r15d
	leaq	132(%rsp), %r14
	leaq	128(%rsp), %r13
	leaq	124(%rsp), %r12
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	124(%rsp), %eax
	movl	132(%rsp), %ecx
	leal	-1(%rax), %edx
	movl	128(%rsp), %eax
	movslq	%edx, %rdx
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax,4), %rsi
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%rdx,%rsi,4), %rsi
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	movl	%ecx, 0(%rbp,%rsi,4)
	leaq	(%rax,%rdx,4), %rax
	movl	%ecx, 0(%rbp,%rax,4)
	cmpl	%r15d, 120(%rsp)
	jg	.L12
.L11:
	movl	$40000, %edx
	movq	%rbp, %rsi
	leaq	origin.0(%rip), %rdi
	call	memcpy@PLT
	movl	116(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L31
	leaq	graph.1(%rip), %rax
	leal	-1(%r12), %edx
	xorl	%ebx, %ebx
	movq	$0, 8(%rsp)
	movq	%rax, 104(%rsp)
	movl	%r12d, %eax
	xorl	%r14d, %r14d
	leaq	graph.1(%rip), %rbp
	movq	%rax, 96(%rsp)
	movslq	%r12d, %rax
	movq	%rbp, %r8
	salq	$2, %rax
	movl	%edx, 24(%rsp)
	movq	%rax, 16(%rsp)
	movl	%r12d, %eax
	movq	$0, 72(%rsp)
	shrl	$2, %eax
	leal	-1(%rax), %r10d
	movl	%r12d, %eax
	andl	$-4, %eax
	addq	$1, %r10
	leal	1(%rax), %edi
	leal	2(%rax), %esi
	movl	%eax, 28(%rsp)
	cltq
	movq	%rax, 32(%rsp)
	movslq	%edi, %rax
	salq	$4, %r10
	movq	%rax, 40(%rsp)
	movslq	%esi, %rax
	movq	%rax, 80(%rsp)
	leaq	4(%rbp), %rax
	leaq	(%rax,%rdx,4), %rax
	movl	%edi, 64(%rsp)
	movl	%esi, 68(%rsp)
	movq	%rax, 88(%rsp)
	.p2align 4,,10
	.p2align 3
.L14:
	movslq	72(%rsp), %rdx
	leaq	4(%rbx), %rcx
	movq	32(%rsp), %r13
	xorl	%esi, %esi
	movq	%rcx, (%rsp)
	leaq	graph.1(%rip), %rax
	xorl	%r11d, %r11d
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rbx), %rdi
	leaq	(%rdx,%rdx,4), %rdx
	leaq	0(,%rdx,4), %rcx
	movq	%rcx, 56(%rsp)
	addq	%rcx, %r13
	addq	40(%rsp), %rcx
	movq	%rcx, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L25:
	movq	16(%rsp), %rcx
	leaq	(%rsi,%rbx), %rdx
	addq	%rsi, %rcx
	cmpq	%rdx, %rcx
	movq	(%rsp), %rdx
	setle	%cl
	addq	%rsi, %rdx
	cmpq	%rdx, %rsi
	setge	%dl
	orb	%cl, %dl
	je	.L23
	movq	8(%rsp), %rcx
	leaq	-4(%rsi,%rcx), %rdx
	cmpq	$8, %rdx
	seta	%cl
	cmpl	$2, 24(%rsp)
	seta	%dl
	testb	%dl, %cl
	je	.L23
	movd	(%rdi), %xmm3
	xorl	%edx, %edx
	pshufd	$0, %xmm3, %xmm2
	.p2align 4,,10
	.p2align 3
.L18:
	movdqa	(%r8,%rdx), %xmm1
	movdqa	(%rax,%rdx), %xmm0
	paddd	%xmm2, %xmm1
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	(%rax,%rdx), %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%r10, %rdx
	jne	.L18
	cmpl	%r12d, 28(%rsp)
	je	.L17
	movslq	%r11d, %rdx
	movq	32(%rsp), %rcx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	salq	$2, %rdx
	leaq	(%rdx,%rcx), %r9
	movl	0(%rbp,%r13,4), %ecx
	addl	(%rdi), %ecx
	movl	0(%rbp,%r9,4), %r15d
	cmpl	%r15d, %ecx
	cmovg	%r15d, %ecx
	movl	%ecx, 0(%rbp,%r9,4)
	cmpl	64(%rsp), %r12d
	jle	.L17
	movq	40(%rsp), %rcx
	leaq	(%rdx,%rcx), %r9
	movq	48(%rsp), %rcx
	movl	0(%rbp,%r9,4), %r15d
	movl	0(%rbp,%rcx,4), %ecx
	addl	(%rdi), %ecx
	cmpl	%r15d, %ecx
	cmovg	%r15d, %ecx
	movl	%ecx, 0(%rbp,%r9,4)
	cmpl	68(%rsp), %r12d
	jle	.L17
	movq	80(%rsp), %r15
	movq	56(%rsp), %rcx
	addq	%r15, %rdx
	addq	%r15, %rcx
	movl	0(%rbp,%rdx,4), %r9d
	movl	0(%rbp,%rcx,4), %ecx
	addl	(%rdi), %ecx
	cmpl	%r9d, %ecx
	cmovg	%r9d, %ecx
	movl	%ecx, 0(%rbp,%rdx,4)
.L17:
	addl	$1, %r11d
	addq	$400, %rsi
	addq	$400, %rax
	addq	$400, %rdi
	cmpl	%r12d, %r11d
	jne	.L25
	addq	$1, 72(%rsp)
	addq	$400, %r14
	movq	72(%rsp), %rax
	addq	$400, %r8
	subq	$400, 8(%rsp)
	cmpq	96(%rsp), %rax
	je	.L24
	movq	(%rsp), %rbx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L23:
	movq	88(%rsp), %rcx
	leaq	(%rcx,%rsi), %r15
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rcx, %r9
	movl	(%rdi), %edx
	subq	%rsi, %r9
	addl	(%r9,%r14), %edx
	movl	(%rcx), %r9d
	cmpl	%r9d, %edx
	cmovg	%r9d, %edx
	addq	$4, %rcx
	movl	%edx, -4(%rcx)
	cmpq	%r15, %rcx
	jne	.L16
	jmp	.L17
.L24:
	cmpl	$1, %r12d
	je	.L31
	leal	-2(%r12), %edi
	movq	104(%rsp), %r9
	movl	$1, %esi
	xorl	%r8d, %r8d
	leaq	origin.0(%rip), %rcx
	addq	$2, %rdi
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L28:
	movl	(%rcx,%rax,4), %edx
	cmpl	$16843009, %edx
	je	.L27
	cmpl	(%r9,%rax,4), %edx
	je	.L27
	addl	$1, %r8d
.L27:
	addq	$1, %rax
	cmpl	%eax, %r12d
	jg	.L28
	addq	$1, %rsi
	addq	$400, %rcx
	addq	$400, %r9
	cmpq	%rdi, %rsi
	jne	.L29
.L13:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L46
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L31:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L13
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	main, .-main
	.local	origin.0
	.comm	origin.0,40000,32
	.local	graph.1
	.comm	graph.1,40000,32
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.text
	.p2align 4
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L5
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	get_int, .-get_int
	.section	.rodata.str1.1
.LC1:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB52:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rsi, %rdx
	xorl	%eax, %eax
	movq	%rdi, %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE52:
	.size	get_int2, .-get_int2
	.section	.rodata.str1.1
.LC2:
	.string	"%d %d %d"
	.text
	.p2align 4
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB53:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdx, %rcx
	xorl	%eax, %eax
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE53:
	.size	get_int3, .-get_int3
	.section	.rodata.str1.1
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	graph.1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	120(%rsp), %rdx
	leaq	116(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	$40000, %edx
	movl	$1, %esi
	movq	%rbp, %rdi
	call	memset@PLT
	movl	120(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	xorl	%r15d, %r15d
	leaq	132(%rsp), %r14
	leaq	128(%rsp), %r13
	leaq	124(%rsp), %r12
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movl	124(%rsp), %eax
	movl	132(%rsp), %ecx
	leal	-1(%rax), %edx
	movl	128(%rsp), %eax
	movslq	%edx, %rdx
	subl	$1, %eax
	cltq
	leaq	(%rax,%rax,4), %rsi
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%rdx,%rsi,4), %rsi
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	movl	%ecx, 0(%rbp,%rsi,4)
	leaq	(%rax,%rdx,4), %rax
	movl	%ecx, 0(%rbp,%rax,4)
	cmpl	%r15d, 120(%rsp)
	jg	.L12
.L11:
	movl	$40000, %edx
	movq	%rbp, %rsi
	leaq	origin.0(%rip), %rdi
	call	memcpy@PLT
	movl	116(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L31
	leaq	graph.1(%rip), %rax
	leal	-1(%r12), %edx
	xorl	%ebx, %ebx
	movq	$0, 8(%rsp)
	movq	%rax, 104(%rsp)
	movl	%r12d, %eax
	xorl	%r14d, %r14d
	leaq	graph.1(%rip), %rbp
	movq	%rax, 96(%rsp)
	movslq	%r12d, %rax
	movq	%rbp, %r8
	salq	$2, %rax
	movl	%edx, 24(%rsp)
	movq	%rax, 16(%rsp)
	movl	%r12d, %eax
	movq	$0, 72(%rsp)
	shrl	$2, %eax
	leal	-1(%rax), %r10d
	movl	%r12d, %eax
	andl	$-4, %eax
	addq	$1, %r10
	leal	1(%rax), %edi
	leal	2(%rax), %esi
	movl	%eax, 28(%rsp)
	cltq
	movq	%rax, 32(%rsp)
	movslq	%edi, %rax
	salq	$4, %r10
	movq	%rax, 40(%rsp)
	movslq	%esi, %rax
	movq	%rax, 80(%rsp)
	leaq	4(%rbp), %rax
	leaq	(%rax,%rdx,4), %rax
	movl	%edi, 64(%rsp)
	movl	%esi, 68(%rsp)
	movq	%rax, 88(%rsp)
	.p2align 4,,10
	.p2align 3
.L14:
	movslq	72(%rsp), %rdx
	leaq	4(%rbx), %rcx
	movq	32(%rsp), %r13
	xorl	%esi, %esi
	movq	%rcx, (%rsp)
	leaq	graph.1(%rip), %rax
	xorl	%r11d, %r11d
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rbx), %rdi
	leaq	(%rdx,%rdx,4), %rdx
	leaq	0(,%rdx,4), %rcx
	movq	%rcx, 56(%rsp)
	addq	%rcx, %r13
	addq	40(%rsp), %rcx
	movq	%rcx, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L25:
	movq	16(%rsp), %rcx
	leaq	(%rsi,%rbx), %rdx
	addq	%rsi, %rcx
	cmpq	%rdx, %rcx
	movq	(%rsp), %rdx
	setle	%cl
	addq	%rsi, %rdx
	cmpq	%rdx, %rsi
	setge	%dl
	orb	%cl, %dl
	je	.L23
	movq	8(%rsp), %rcx
	leaq	-4(%rsi,%rcx), %rdx
	cmpq	$8, %rdx
	seta	%cl
	cmpl	$2, 24(%rsp)
	seta	%dl
	testb	%dl, %cl
	je	.L23
	movd	(%rdi), %xmm3
	xorl	%edx, %edx
	pshufd	$0, %xmm3, %xmm2
	.p2align 4,,10
	.p2align 3
.L18:
	movdqa	(%r8,%rdx), %xmm1
	movdqa	(%rax,%rdx), %xmm0
	paddd	%xmm2, %xmm1
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	(%rax,%rdx), %xmm0
	por	%xmm1, %xmm0
	movaps	%xmm0, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%r10, %rdx
	jne	.L18
	cmpl	%r12d, 28(%rsp)
	je	.L17
	movslq	%r11d, %rdx
	movq	32(%rsp), %rcx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	salq	$2, %rdx
	leaq	(%rdx,%rcx), %r9
	movl	0(%rbp,%r13,4), %ecx
	addl	(%rdi), %ecx
	movl	0(%rbp,%r9,4), %r15d
	cmpl	%r15d, %ecx
	cmovg	%r15d, %ecx
	movl	%ecx, 0(%rbp,%r9,4)
	cmpl	64(%rsp), %r12d
	jle	.L17
	movq	40(%rsp), %rcx
	leaq	(%rdx,%rcx), %r9
	movq	48(%rsp), %rcx
	movl	0(%rbp,%r9,4), %r15d
	movl	0(%rbp,%rcx,4), %ecx
	addl	(%rdi), %ecx
	cmpl	%r15d, %ecx
	cmovg	%r15d, %ecx
	movl	%ecx, 0(%rbp,%r9,4)
	cmpl	68(%rsp), %r12d
	jle	.L17
	movq	80(%rsp), %r15
	movq	56(%rsp), %rcx
	addq	%r15, %rdx
	addq	%r15, %rcx
	movl	0(%rbp,%rdx,4), %r9d
	movl	0(%rbp,%rcx,4), %ecx
	addl	(%rdi), %ecx
	cmpl	%r9d, %ecx
	cmovg	%r9d, %ecx
	movl	%ecx, 0(%rbp,%rdx,4)
.L17:
	addl	$1, %r11d
	addq	$400, %rsi
	addq	$400, %rax
	addq	$400, %rdi
	cmpl	%r12d, %r11d
	jne	.L25
	addq	$1, 72(%rsp)
	addq	$400, %r14
	movq	72(%rsp), %rax
	addq	$400, %r8
	subq	$400, 8(%rsp)
	cmpq	96(%rsp), %rax
	je	.L24
	movq	(%rsp), %rbx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L23:
	movq	88(%rsp), %rcx
	leaq	(%rcx,%rsi), %r15
	movq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rcx, %r9
	movl	(%rdi), %edx
	subq	%rsi, %r9
	addl	(%r9,%r14), %edx
	movl	(%rcx), %r9d
	cmpl	%r9d, %edx
	cmovg	%r9d, %edx
	addq	$4, %rcx
	movl	%edx, -4(%rcx)
	cmpq	%r15, %rcx
	jne	.L16
	jmp	.L17
.L24:
	cmpl	$1, %r12d
	je	.L31
	leal	-2(%r12), %edi
	movq	104(%rsp), %r9
	movl	$1, %esi
	xorl	%r8d, %r8d
	leaq	origin.0(%rip), %rcx
	addq	$2, %rdi
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L28:
	movl	(%rcx,%rax,4), %edx
	cmpl	$16843009, %edx
	je	.L27
	cmpl	(%r9,%rax,4), %edx
	je	.L27
	addl	$1, %r8d
.L27:
	addq	$1, %rax
	cmpl	%eax, %r12d
	jg	.L28
	addq	$1, %rsi
	addq	$400, %rcx
	addq	$400, %r9
	cmpq	%rdi, %rsi
	jne	.L29
.L13:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L46
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L31:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L13
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.size	main, .-main
	.local	origin.0
	.comm	origin.0,40000,32
	.local	graph.1
	.comm	graph.1,40000,32
	.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 <stdint.h> // int64_t

#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))

int get_int(void) {
  int num;
  scanf("%d", &num);
  return num;
}

int get_int2(int *a1, int *a2) {
  scanf("%d %d", a1, a2);
  return 0;
}

int get_int3(int *a1, int *a2, int *a3) {
  scanf("%d %d %d", a1, a2, a3);
  return 0;
}

#define NUM_MAX 100
#define INF 0x01010101

int main(void) {
    int vs, es;
    get_int2(&vs, &es);
    static int graph[NUM_MAX][NUM_MAX];
    memset(graph, 0x01, sizeof(int)*NUM_MAX*NUM_MAX);
    int i;
    for(i = 0; i < es; i++) {
        int v1, v2, cost;
        get_int3(&v1, &v2, &cost);
        // 1-indexed -> 0-indexed
        v1--; v2--;
        graph[v1][v2] = graph[v2][v1] = cost;
    }
    static int origin[NUM_MAX][NUM_MAX];
    memcpy(origin, graph, sizeof(int)*NUM_MAX*NUM_MAX);

    int j, k;
    // Warshall floyd
    for(k = 0; k < vs; k++) {
        for(i = 0; i < vs; i++) {
            for(j = 0; j < vs; j++) {
                graph[i][j] = min(graph[i][j], graph[i][k]+graph[k][j]);
            }
        }
    }

    int cnt = 0;
    for(i = 0; i < vs; i++) {
        for(j = i+1; j < vs; j++) {
            if(origin[i][j] == INF) continue;
            if(origin[i][j] != graph[i][j]) cnt++;
        }
    }
    printf("%d\n", cnt);
    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

0
 1
 0
 0

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

```c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // int64_t

#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))

int get_int(void) {
  int num;
  scanf("%d", &num);
  return num;
}

int get_int2(int *a1, int *a2) {
  scanf("%d %d", a1, a2);
  return 0;
}

int get_int3(int *a1, int *a2, int *a3) {
  scanf("%d %d %d", a1, a2, a3);
  return 0;
}

#define NUM_MAX 100
#define INF 0x01010101

int main(void) {
    int vs, es;
    get_int2(&vs, &es);
    static int graph[NUM_MAX][NUM_MAX];
    memset(graph, 0x01, sizeof(int)*NUM_MAX*NUM_MAX);
    int i;
    for(i = 0; i < es; i++) {
        int v1, v2, cost;
        get_int3(&v1, &v2, &cost);
        // 1-indexed -> 0-indexed
        v1--; v2--;
        graph[v1][v2] = graph[v2][v1] = cost;
    }
    static int origin[NUM_MAX][NUM_MAX];
    memcpy(origin, graph, sizeof(int)*NUM_MAX*NUM_MAX);

    int j, k;
    // Warshall floyd
    for(k = 0; k < vs; k++) {
        for(i = 0; i < vs; i++) {
            for(j = 0; j < vs; j++) {
                graph[i][j] = min(graph[i][j], graph[i][k]+graph[k][j]);
            }
        }
    }

    int cnt = 0;
    for(i = 0; i < vs; i++) {
        for(j = i+1; j < vs; j++) {
            if(origin[i][j] == INF) continue;
            if(origin[i][j] != graph[i][j]) cnt++;
        }
    }
    printf("%d\n", cnt);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_int, .-get_int
	.section	.rodata
.LC1:
	.string	"%d %d"
	.text
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_int2, .-get_int2
	.section	.rodata
.LC2:
	.string	"%d %d %d"
	.text
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-24(%rbp), %rcx
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_int3, .-get_int3
	.section	.rodata
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	$40000, %edx
	movl	$1, %esi
	leaq	graph.1(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -24(%rbp)
	jmp	.L9
.L10:
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	get_int3
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %ecx
	movl	-28(%rbp), %esi
	movslq	%ecx, %r8
	movslq	%edx, %rdi
	movq	%rdi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdi
	leaq	graph.1(%rip), %rax
	movl	%esi, (%rdi,%rax)
	movl	-36(%rbp), %esi
	movl	-32(%rbp), %edi
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	graph.1(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edi, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	graph.1(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -24(%rbp)
.L9:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L10
	leaq	origin.0(%rip), %rax
	leaq	graph.1(%rip), %rcx
	movl	$40000, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	$0, -16(%rbp)
	jmp	.L11
.L16:
	movl	$0, -24(%rbp)
	jmp	.L12
.L15:
	movl	$0, -20(%rbp)
	jmp	.L13
.L14:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	graph.1(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	graph.1(%rip), %rax
	movl	(%rcx,%rax), %esi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdi
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	graph.1(%rip), %rax
	movl	(%rcx,%rax), %eax
	addl	%esi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	graph.1(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -20(%rbp)
.L13:
	movl	-44(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	addl	$1, -24(%rbp)
.L12:
	movl	-44(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L15
	addl	$1, -16(%rbp)
.L11:
	movl	-44(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L16
	movl	$0, -12(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L17
.L22:
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L18
.L21:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	origin.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$16843009, %eax
	je	.L25
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	origin.0(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	graph.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	je	.L20
	addl	$1, -12(%rbp)
	jmp	.L20
.L25:
	nop
.L20:
	addl	$1, -20(%rbp)
.L18:
	movl	-44(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L21
	addl	$1, -24(%rbp)
.L17:
	movl	-44(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L22
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.local	graph.1
	.comm	graph.1,40000,32
	.local	origin.0
	.comm	origin.0,40000,32
	.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"
	.text
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_int, .-get_int
	.section	.rodata
.LC1:
	.string	"%d %d"
	.text
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_int2, .-get_int2
	.section	.rodata
.LC2:
	.string	"%d %d %d"
	.text
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-24(%rbp), %rcx
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_int3, .-get_int3
	.section	.rodata
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	get_int2
	movl	$40000, %edx
	movl	$1, %esi
	leaq	graph.1(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -24(%rbp)
	jmp	.L9
.L10:
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	get_int3
	movl	-36(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -36(%rbp)
	movl	-32(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %ecx
	movl	-28(%rbp), %esi
	movslq	%ecx, %r8
	movslq	%edx, %rdi
	movq	%rdi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdi
	leaq	graph.1(%rip), %rax
	movl	%esi, (%rdi,%rax)
	movl	-36(%rbp), %esi
	movl	-32(%rbp), %edi
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	graph.1(%rip), %rax
	movl	(%rdx,%rax), %edx
	movslq	%edi, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	graph.1(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -24(%rbp)
.L9:
	movl	-40(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L10
	leaq	origin.0(%rip), %rax
	leaq	graph.1(%rip), %rcx
	movl	$40000, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	$0, -16(%rbp)
	jmp	.L11
.L16:
	movl	$0, -24(%rbp)
	jmp	.L12
.L15:
	movl	$0, -20(%rbp)
	jmp	.L13
.L14:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	graph.1(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	graph.1(%rip), %rax
	movl	(%rcx,%rax), %esi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdi
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	graph.1(%rip), %rax
	movl	(%rcx,%rax), %eax
	addl	%esi, %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	graph.1(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -20(%rbp)
.L13:
	movl	-44(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	addl	$1, -24(%rbp)
.L12:
	movl	-44(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L15
	addl	$1, -16(%rbp)
.L11:
	movl	-44(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L16
	movl	$0, -12(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L17
.L22:
	movl	-24(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -20(%rbp)
	jmp	.L18
.L21:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	origin.0(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$16843009, %eax
	je	.L25
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	origin.0(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	graph.1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, %ecx
	je	.L20
	addl	$1, -12(%rbp)
	jmp	.L20
.L25:
	nop
.L20:
	addl	$1, -20(%rbp)
.L18:
	movl	-44(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L21
	addl	$1, -24(%rbp)
.L17:
	movl	-44(%rbp), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L22
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.local	graph.1
	.comm	graph.1,40000,32
	.local	origin.0
	.comm	origin.0,40000,32
	.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:
