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>

const int INF = 1000000000;

int main(void)
{
	int edge[21][21];
	int n, m, a, b, c, d;
	int x1, x2, y1, y2;
	int i, j, k;
	
	scanf("%d", &n);
	scanf("%d", &m);
	
	for (i = 0; i <= n; i++){
		for (j = 0; j <= n; j++){
			edge[i][j] = INF;
		}
	}
	
	for (i = 0; i < m; i++){
		scanf("%d,%d,%d,%d", &a, &b, &c, &d);
		edge[a][b] = c;
		edge[b][a] = d;
	}
	 
	scanf("%d,%d,%d,%d", &x1, &x2, &y1, &y2);
	
	for (k = 1;  k <= n; k++){
		for (i = 1; i <= n; i++){
			for (j = 1; j <= n; j++){
				
				if (edge[i][j] > edge[i][k] + edge[k][j]){
					edge[i][j] = edge[i][k] + edge[k][j];
				}
			}
		}
	}
	
	printf("%d\n", y1 - y2 - edge[x1][x2] - edge[x2][x1]);
	
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	INF
	.section	.rodata
	.align 4
	.type	INF, @object
	.size	INF, 4
INF:
	.long	1000000000
.LC0:
	.string	"%d"
.LC1:
	.string	"%d,%d,%d,%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1840, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1828(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1824(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1788(%rbp)
	jmp	.L2
.L5:
	movl	$0, -1784(%rbp)
	jmp	.L3
.L4:
	movl	$1000000000, %ecx
	movl	-1784(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1776(%rbp,%rax,4)
	addl	$1, -1784(%rbp)
.L3:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1784(%rbp)
	jle	.L4
	addl	$1, -1788(%rbp)
.L2:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1788(%rbp)
	jle	.L5
	movl	$0, -1788(%rbp)
	jmp	.L6
.L7:
	leaq	-1808(%rbp), %rsi
	leaq	-1812(%rbp), %rcx
	leaq	-1816(%rbp), %rdx
	leaq	-1820(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1820(%rbp), %eax
	movl	-1816(%rbp), %edx
	movl	-1812(%rbp), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1776(%rbp,%rax,4)
	movl	-1816(%rbp), %eax
	movl	-1820(%rbp), %edx
	movl	-1808(%rbp), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1776(%rbp,%rax,4)
	addl	$1, -1788(%rbp)
.L6:
	movl	-1824(%rbp), %eax
	cmpl	%eax, -1788(%rbp)
	jl	.L7
	leaq	-1792(%rbp), %rsi
	leaq	-1796(%rbp), %rcx
	leaq	-1800(%rbp), %rdx
	leaq	-1804(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1780(%rbp)
	jmp	.L8
.L14:
	movl	$1, -1788(%rbp)
	jmp	.L9
.L13:
	movl	$1, -1784(%rbp)
	jmp	.L10
.L12:
	movl	-1784(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1776(%rbp,%rax,4), %ecx
	movl	-1780(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %esi
	movl	-1784(%rbp), %eax
	movslq	%eax, %rdi
	movl	-1780(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movl	-1776(%rbp,%rax,4), %eax
	addl	%esi, %eax
	cmpl	%eax, %ecx
	jle	.L11
	movl	-1780(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1776(%rbp,%rax,4), %ecx
	movl	-1784(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1780(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-1784(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1776(%rbp,%rax,4)
.L11:
	addl	$1, -1784(%rbp)
.L10:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1784(%rbp)
	jle	.L12
	addl	$1, -1788(%rbp)
.L9:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1788(%rbp)
	jle	.L13
	addl	$1, -1780(%rbp)
.L8:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1780(%rbp)
	jle	.L14
	movl	-1796(%rbp), %eax
	movl	-1792(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-1804(%rbp), %eax
	movl	-1800(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %eax
	subl	%eax, %ecx
	movl	-1800(%rbp), %eax
	movl	-1804(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
.LC0:
	.string	"%d"
.LC2:
	.string	"%d,%d,%d,%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$1960, %rsp
	.cfi_def_cfa_offset 2016
	movq	%fs:40, %rax
	movq	%rax, 1944(%rsp)
	xorl	%eax, %eax
	leaq	136(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	140(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	136(%rsp), %r9d
	testl	%r9d, %r9d
	js	.L9
	leal	1(%r9), %r10d
	movdqa	.LC1(%rip), %xmm0
	leaq	176(%rsp), %rdx
	xorl	%edi, %edi
	movl	%r10d, %r8d
	movl	%r10d, %r11d
	shrl	$2, %r8d
	andl	$-4, %r11d
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$2, %r9d
	jle	.L20
	movups	%xmm0, (%rdx)
	cmpl	$1, %r8d
	jbe	.L6
	movups	%xmm0, 16(%rdx)
	cmpl	$2, %r8d
	je	.L6
	movups	%xmm0, 32(%rdx)
	cmpl	$3, %r8d
	je	.L6
	movups	%xmm0, 48(%rdx)
	cmpl	$4, %r8d
	je	.L6
	movups	%xmm0, 64(%rdx)
.L6:
	movl	%r11d, %eax
	cmpl	%r10d, %r11d
	je	.L7
.L5:
	movslq	%edi, %rsi
	movslq	%eax, %rcx
	leaq	(%rsi,%rsi,4), %rbx
	leaq	(%rsi,%rbx,4), %rsi
	addq	%rsi, %rcx
	movl	$1000000000, 176(%rsp,%rcx,4)
	leal	1(%rax), %ecx
	cmpl	%ecx, %r9d
	jl	.L7
	movslq	%ecx, %rcx
	addl	$2, %eax
	addq	%rsi, %rcx
	movl	$1000000000, 176(%rsp,%rcx,4)
	cmpl	%eax, %r9d
	jl	.L7
	cltq
	addq	%rax, %rsi
	movl	$1000000000, 176(%rsp,%rsi,4)
.L7:
	addl	$1, %edi
	addq	$84, %rdx
	cmpl	%r10d, %edi
	jne	.L8
.L9:
	movl	140(%rsp), %eax
	leaq	.LC2(%rip), %r15
	testl	%eax, %eax
	jle	.L4
	xorl	%r14d, %r14d
	leaq	.LC2(%rip), %r15
	leaq	156(%rsp), %r13
	leaq	152(%rsp), %r12
	leaq	148(%rsp), %rbp
	leaq	144(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rcx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movq	%r13, %r8
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movslq	144(%rsp), %rax
	movslq	148(%rsp), %rdx
	movl	152(%rsp), %esi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rcx
	addq	%rdx, %rcx
	movl	%esi, 176(%rsp,%rcx,4)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %rdx
	addq	%rdx, %rax
	movl	156(%rsp), %edx
	movl	%edx, 176(%rsp,%rax,4)
	cmpl	%r14d, 140(%rsp)
	jg	.L3
.L4:
	leaq	168(%rsp), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	leaq	164(%rsp), %rdx
	leaq	160(%rsp), %rsi
	leaq	172(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	136(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L10
	leaq	176(%rsp), %rdi
	movq	$-84, %rax
	leal	1(%r13), %ecx
	movl	%r13d, %r11d
	subq	%rdi, %rax
	movq	%rdi, 104(%rsp)
	movl	%r13d, %edi
	leaq	264(%rsp), %r10
	movq	%rax, 8(%rsp)
	leal	-1(%r13), %eax
	andl	$-4, %edi
	shrl	$2, %r11d
	movl	%eax, 44(%rsp)
	addq	$2, %rax
	leal	2(%rdi), %esi
	movl	$4, %r14d
	movq	%rax, 120(%rsp)
	movslq	%r13d, %rax
	movl	$84, %r12d
	salq	$2, %rax
	movl	%edi, 20(%rsp)
	movq	%rax, 24(%rsp)
	leal	1(%rdi), %eax
	addl	$3, %edi
	cltq
	movq	%r10, 112(%rsp)
	movq	%rax, 48(%rsp)
	movslq	%esi, %rax
	movq	%rax, 64(%rsp)
	movl	%r13d, %eax
	salq	$2, %rax
	movl	%esi, 80(%rsp)
	movq	%rax, 32(%rsp)
	movslq	%edi, %rax
	movl	%edi, 84(%rsp)
	movq	$1, 96(%rsp)
	movl	%ecx, 40(%rsp)
	movq	%rax, 88(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	96(%rsp), %rdx
	leaq	-4(%r14), %rcx
	movq	48(%rsp), %rbx
	movl	$88, %esi
	movq	%rcx, (%rsp)
	movq	104(%rsp), %rax
	movl	$1, %r9d
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	leaq	(%r14,%rax), %rdi
	movq	112(%rsp), %rax
	addq	%rcx, %rbx
	movq	%rcx, 72(%rsp)
	addq	64(%rsp), %rcx
	movq	%rbx, 56(%rsp)
	movq	%rcx, %r15
	.p2align 4,,10
	.p2align 3
.L17:
	movq	24(%rsp), %rbx
	leaq	(%rsi,%rbx), %rcx
	movq	(%rsp), %rbx
	leaq	(%rbx,%rsi), %rdx
	cmpq	%rdx, %rcx
	leaq	(%rsi,%r14), %rdx
	setle	%cl
	cmpq	%rsi, %rdx
	setle	%dl
	orb	%cl, %dl
	je	.L12
	movq	8(%rsp), %rbx
	leaq	-8(%rax,%rbx), %rdx
	cmpq	$8, %rdx
	seta	%cl
	cmpl	$2, 44(%rsp)
	seta	%dl
	testb	%dl, %cl
	je	.L12
	movd	84(%rdi), %xmm4
	movdqu	(%r10), %xmm2
	movdqu	(%rax), %xmm5
	pshufd	$0, %xmm4, %xmm3
	paddd	%xmm3, %xmm2
	movdqa	%xmm5, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm5, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rax)
	cmpl	$1, %r11d
	jbe	.L13
	movdqu	16(%r10), %xmm2
	movdqu	16(%rax), %xmm6
	paddd	%xmm3, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 16(%rax)
	cmpl	$2, %r11d
	je	.L13
	movdqu	32(%r10), %xmm2
	movdqu	32(%rax), %xmm7
	paddd	%xmm3, %xmm2
	movdqa	%xmm7, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm7, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 32(%rax)
	cmpl	$3, %r11d
	je	.L13
	movdqu	48(%r10), %xmm2
	movdqu	48(%rax), %xmm7
	paddd	%xmm3, %xmm2
	movdqa	%xmm7, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm7, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 48(%rax)
	cmpl	$4, %r11d
	je	.L13
	movdqu	64(%r10), %xmm2
	movdqu	64(%rax), %xmm6
	paddd	%xmm3, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 64(%rax)
.L13:
	cmpl	%r13d, 20(%rsp)
	je	.L16
	movslq	%r9d, %rdx
	movq	48(%rsp), %rbx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movl	84(%rdi), %edx
	leaq	(%rcx,%rbx), %r8
	movq	56(%rsp), %rbx
	addl	176(%rsp,%rbx,4), %edx
	movl	176(%rsp,%r8,4), %ebx
	cmpl	%ebx, %edx
	cmovg	%ebx, %edx
	movl	%edx, 176(%rsp,%r8,4)
	cmpl	80(%rsp), %r13d
	jl	.L16
	movq	64(%rsp), %rbx
	movl	176(%rsp,%r15,4), %edx
	addl	84(%rdi), %edx
	leaq	(%rcx,%rbx), %r8
	movl	176(%rsp,%r8,4), %ebx
	cmpl	%ebx, %edx
	cmovg	%ebx, %edx
	movl	%edx, 176(%rsp,%r8,4)
	cmpl	84(%rsp), %r13d
	jl	.L16
	movq	88(%rsp), %rbx
	movq	72(%rsp), %rdx
	addq	%rbx, %rcx
	addq	%rbx, %rdx
	movl	176(%rsp,%rcx,4), %r8d
	movl	176(%rsp,%rdx,4), %edx
	addl	84(%rdi), %edx
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	movl	%edx, 176(%rsp,%rcx,4)
.L16:
	addl	$1, %r9d
	addq	$84, %rsi
	addq	$84, %rax
	addq	$84, %rdi
	cmpl	40(%rsp), %r9d
	jne	.L17
	addq	$1, 96(%rsp)
	addq	$84, %r12
	addq	$4, %r14
	addq	$84, %r10
	subq	$84, 8(%rsp)
	movq	96(%rsp), %rax
	cmpq	120(%rsp), %rax
	jne	.L11
.L10:
	movslq	160(%rsp), %rax
	movslq	164(%rsp), %rcx
	movl	$1, %edi
	movl	168(%rsp), %edx
	subl	172(%rsp), %edx
	leaq	(%rax,%rax,4), %rsi
	leaq	(%rax,%rsi,4), %rsi
	addq	%rcx, %rsi
	subl	176(%rsp,%rsi,4), %edx
	leaq	(%rcx,%rcx,4), %rsi
	leaq	(%rcx,%rsi,4), %rcx
	leaq	.LC3(%rip), %rsi
	addq	%rcx, %rax
	subl	176(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	1944(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	addq	$1960, %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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movq	32(%rsp), %rbx
	movq	%rax, %rcx
	leaq	(%rbx,%rax), %rbp
	movl	$4, %ebx
	subq	%rsi, %rbx
.L15:
	leaq	(%rbx,%rcx), %r8
	movl	84(%rdi), %edx
	addl	(%r8,%r12), %edx
	movl	(%rcx), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	addq	$4, %rcx
	movl	%edx, -4(%rcx)
	cmpq	%rbp, %rcx
	jne	.L15
	jmp	.L16
.L20:
	xorl	%eax, %eax
	jmp	.L5
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	INF
	.section	.rodata
	.align 4
	.type	INF, @object
	.size	INF, 4
INF:
	.long	1000000000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.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
.LC0:
	.string	"%d"
.LC2:
	.string	"%d,%d,%d,%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$1960, %rsp
	.cfi_def_cfa_offset 2016
	movq	%fs:40, %rax
	movq	%rax, 1944(%rsp)
	xorl	%eax, %eax
	leaq	136(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	140(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	136(%rsp), %r9d
	testl	%r9d, %r9d
	js	.L9
	leal	1(%r9), %r10d
	movdqa	.LC1(%rip), %xmm0
	leaq	176(%rsp), %rdx
	xorl	%edi, %edi
	movl	%r10d, %r8d
	movl	%r10d, %r11d
	shrl	$2, %r8d
	andl	$-4, %r11d
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	$2, %r9d
	jle	.L20
	movups	%xmm0, (%rdx)
	cmpl	$1, %r8d
	jbe	.L6
	movups	%xmm0, 16(%rdx)
	cmpl	$2, %r8d
	je	.L6
	movups	%xmm0, 32(%rdx)
	cmpl	$3, %r8d
	je	.L6
	movups	%xmm0, 48(%rdx)
	cmpl	$4, %r8d
	je	.L6
	movups	%xmm0, 64(%rdx)
.L6:
	movl	%r11d, %eax
	cmpl	%r10d, %r11d
	je	.L7
.L5:
	movslq	%edi, %rsi
	movslq	%eax, %rcx
	leaq	(%rsi,%rsi,4), %rbx
	leaq	(%rsi,%rbx,4), %rsi
	addq	%rsi, %rcx
	movl	$1000000000, 176(%rsp,%rcx,4)
	leal	1(%rax), %ecx
	cmpl	%ecx, %r9d
	jl	.L7
	movslq	%ecx, %rcx
	addl	$2, %eax
	addq	%rsi, %rcx
	movl	$1000000000, 176(%rsp,%rcx,4)
	cmpl	%eax, %r9d
	jl	.L7
	cltq
	addq	%rax, %rsi
	movl	$1000000000, 176(%rsp,%rsi,4)
.L7:
	addl	$1, %edi
	addq	$84, %rdx
	cmpl	%r10d, %edi
	jne	.L8
.L9:
	movl	140(%rsp), %eax
	leaq	.LC2(%rip), %r15
	testl	%eax, %eax
	jle	.L4
	xorl	%r14d, %r14d
	leaq	.LC2(%rip), %r15
	leaq	156(%rsp), %r13
	leaq	152(%rsp), %r12
	leaq	148(%rsp), %rbp
	leaq	144(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rcx
	movq	%rbp, %rdx
	movq	%rbx, %rsi
	movq	%r13, %r8
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movslq	144(%rsp), %rax
	movslq	148(%rsp), %rdx
	movl	152(%rsp), %esi
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rax,%rcx,4), %rcx
	addq	%rdx, %rcx
	movl	%esi, 176(%rsp,%rcx,4)
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %rdx
	addq	%rdx, %rax
	movl	156(%rsp), %edx
	movl	%edx, 176(%rsp,%rax,4)
	cmpl	%r14d, 140(%rsp)
	jg	.L3
.L4:
	leaq	168(%rsp), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	leaq	164(%rsp), %rdx
	leaq	160(%rsp), %rsi
	leaq	172(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	136(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L10
	leaq	176(%rsp), %rdi
	movq	$-84, %rax
	leal	1(%r13), %ecx
	movl	%r13d, %r11d
	subq	%rdi, %rax
	movq	%rdi, 104(%rsp)
	movl	%r13d, %edi
	leaq	264(%rsp), %r10
	movq	%rax, 8(%rsp)
	leal	-1(%r13), %eax
	andl	$-4, %edi
	shrl	$2, %r11d
	movl	%eax, 44(%rsp)
	addq	$2, %rax
	leal	2(%rdi), %esi
	movl	$4, %r14d
	movq	%rax, 120(%rsp)
	movslq	%r13d, %rax
	movl	$84, %r12d
	salq	$2, %rax
	movl	%edi, 20(%rsp)
	movq	%rax, 24(%rsp)
	leal	1(%rdi), %eax
	addl	$3, %edi
	cltq
	movq	%r10, 112(%rsp)
	movq	%rax, 48(%rsp)
	movslq	%esi, %rax
	movq	%rax, 64(%rsp)
	movl	%r13d, %eax
	salq	$2, %rax
	movl	%esi, 80(%rsp)
	movq	%rax, 32(%rsp)
	movslq	%edi, %rax
	movl	%edi, 84(%rsp)
	movq	$1, 96(%rsp)
	movl	%ecx, 40(%rsp)
	movq	%rax, 88(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	96(%rsp), %rdx
	leaq	-4(%r14), %rcx
	movq	48(%rsp), %rbx
	movl	$88, %esi
	movq	%rcx, (%rsp)
	movq	104(%rsp), %rax
	movl	$1, %r9d
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	leaq	(%r14,%rax), %rdi
	movq	112(%rsp), %rax
	addq	%rcx, %rbx
	movq	%rcx, 72(%rsp)
	addq	64(%rsp), %rcx
	movq	%rbx, 56(%rsp)
	movq	%rcx, %r15
	.p2align 4,,10
	.p2align 3
.L17:
	movq	24(%rsp), %rbx
	leaq	(%rsi,%rbx), %rcx
	movq	(%rsp), %rbx
	leaq	(%rbx,%rsi), %rdx
	cmpq	%rdx, %rcx
	leaq	(%rsi,%r14), %rdx
	setle	%cl
	cmpq	%rsi, %rdx
	setle	%dl
	orb	%cl, %dl
	je	.L12
	movq	8(%rsp), %rbx
	leaq	-8(%rax,%rbx), %rdx
	cmpq	$8, %rdx
	seta	%cl
	cmpl	$2, 44(%rsp)
	seta	%dl
	testb	%dl, %cl
	je	.L12
	movd	84(%rdi), %xmm4
	movdqu	(%r10), %xmm2
	movdqu	(%rax), %xmm5
	pshufd	$0, %xmm4, %xmm3
	paddd	%xmm3, %xmm2
	movdqa	%xmm5, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm5, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rax)
	cmpl	$1, %r11d
	jbe	.L13
	movdqu	16(%r10), %xmm2
	movdqu	16(%rax), %xmm6
	paddd	%xmm3, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 16(%rax)
	cmpl	$2, %r11d
	je	.L13
	movdqu	32(%r10), %xmm2
	movdqu	32(%rax), %xmm7
	paddd	%xmm3, %xmm2
	movdqa	%xmm7, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm7, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 32(%rax)
	cmpl	$3, %r11d
	je	.L13
	movdqu	48(%r10), %xmm2
	movdqu	48(%rax), %xmm7
	paddd	%xmm3, %xmm2
	movdqa	%xmm7, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm7, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 48(%rax)
	cmpl	$4, %r11d
	je	.L13
	movdqu	64(%r10), %xmm2
	movdqu	64(%rax), %xmm6
	paddd	%xmm3, %xmm2
	movdqa	%xmm6, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, 64(%rax)
.L13:
	cmpl	%r13d, 20(%rsp)
	je	.L16
	movslq	%r9d, %rdx
	movq	48(%rsp), %rbx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	movl	84(%rdi), %edx
	leaq	(%rcx,%rbx), %r8
	movq	56(%rsp), %rbx
	addl	176(%rsp,%rbx,4), %edx
	movl	176(%rsp,%r8,4), %ebx
	cmpl	%ebx, %edx
	cmovg	%ebx, %edx
	movl	%edx, 176(%rsp,%r8,4)
	cmpl	80(%rsp), %r13d
	jl	.L16
	movq	64(%rsp), %rbx
	movl	176(%rsp,%r15,4), %edx
	addl	84(%rdi), %edx
	leaq	(%rcx,%rbx), %r8
	movl	176(%rsp,%r8,4), %ebx
	cmpl	%ebx, %edx
	cmovg	%ebx, %edx
	movl	%edx, 176(%rsp,%r8,4)
	cmpl	84(%rsp), %r13d
	jl	.L16
	movq	88(%rsp), %rbx
	movq	72(%rsp), %rdx
	addq	%rbx, %rcx
	addq	%rbx, %rdx
	movl	176(%rsp,%rcx,4), %r8d
	movl	176(%rsp,%rdx,4), %edx
	addl	84(%rdi), %edx
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	movl	%edx, 176(%rsp,%rcx,4)
.L16:
	addl	$1, %r9d
	addq	$84, %rsi
	addq	$84, %rax
	addq	$84, %rdi
	cmpl	40(%rsp), %r9d
	jne	.L17
	addq	$1, 96(%rsp)
	addq	$84, %r12
	addq	$4, %r14
	addq	$84, %r10
	subq	$84, 8(%rsp)
	movq	96(%rsp), %rax
	cmpq	120(%rsp), %rax
	jne	.L11
.L10:
	movslq	160(%rsp), %rax
	movslq	164(%rsp), %rcx
	movl	$1, %edi
	movl	168(%rsp), %edx
	subl	172(%rsp), %edx
	leaq	(%rax,%rax,4), %rsi
	leaq	(%rax,%rsi,4), %rsi
	addq	%rcx, %rsi
	subl	176(%rsp,%rsi,4), %edx
	leaq	(%rcx,%rcx,4), %rsi
	leaq	(%rcx,%rsi,4), %rcx
	leaq	.LC3(%rip), %rsi
	addq	%rcx, %rax
	subl	176(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	1944(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	addq	$1960, %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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movq	32(%rsp), %rbx
	movq	%rax, %rcx
	leaq	(%rbx,%rax), %rbp
	movl	$4, %ebx
	subq	%rsi, %rbx
.L15:
	leaq	(%rbx,%rcx), %r8
	movl	84(%rdi), %edx
	addl	(%r8,%r12), %edx
	movl	(%rcx), %r8d
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	addq	$4, %rcx
	movl	%edx, -4(%rcx)
	cmpq	%rbp, %rcx
	jne	.L15
	jmp	.L16
.L20:
	xorl	%eax, %eax
	jmp	.L5
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	INF
	.section	.rodata
	.align 4
	.type	INF, @object
	.size	INF, 4
INF:
	.long	1000000000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.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>

const int INF = 1000000000;

int main(void)
{
	int edge[21][21];
	int n, m, a, b, c, d;
	int x1, x2, y1, y2;
	int i, j, k;
	
	scanf("%d", &n);
	scanf("%d", &m);
	
	for (i = 0; i <= n; i++){
		for (j = 0; j <= n; j++){
			edge[i][j] = INF;
		}
	}
	
	for (i = 0; i < m; i++){
		scanf("%d,%d,%d,%d", &a, &b, &c, &d);
		edge[a][b] = c;
		edge[b][a] = d;
	}
	 
	scanf("%d,%d,%d,%d", &x1, &x2, &y1, &y2);
	
	for (k = 1;  k <= n; k++){
		for (i = 1; i <= n; i++){
			for (j = 1; j <= n; j++){
				
				if (edge[i][j] > edge[i][k] + edge[k][j]){
					edge[i][j] = edge[i][k] + edge[k][j];
				}
			}
		}
	}
	
	printf("%d\n", y1 - y2 - edge[x1][x2] - edge[x2][x1]);
	
	return (0);
}
6
8
1,2,2,2
1,3,4,3
1,4,4,2
2,5,3,2
3,4,4,2
3,6,1,2
4,6,1,1
5,6,2,2
2,4,50,30
 6
8
1,2,2,2
1,3,4,3
1,4,4,2
2,5,3,2
3,4,4,2
3,6,1,2
4,6,1,1
2,1,6,5
2,4,50,30
 6
8
1,2,2,2
0,3,4,3
2,4,4,1
2,5,3,2
3,4,2,4
3,6,1,2
4,6,1,1
5,6,2,2
2,4,50,30
 6
8
1,1,2,2
3,4,3,0
1,4,4,2
2,3,5,2
3,4,4,2
3,6,1,2
4,6,1,1
5,6,2,2
2,4,50,30
 6
7
1,2,2,2
1,2,4,3
1,4,4,2
2,5,3,2
3,4,4,2
3,6,1,2
4,6,1,1
2,1,6,5
2,4,50,30
 6
8
1,2,2,2
3,4,3,0
2,4,4,1
2,3,5,2
3,4,4,2
3,6,1,2
4,6,1,2
5,6,2,2
2,4,50,31
 6
8
1,2,2,2
0,3,4,3
1,4,4,2
2,5,2,2
3,4,4,2
3,6,1,2
4,6,1,1
5,6,2,2
2,4,50,30
 6
8
1,2,2,2
0,3,4,3
1,4,4,2
1,5,3,2
3,4,2,4
2,1,6,3
4,6,1,1
5,6,2,2
2,4,50,30
 6
8
1,2,2,2
3,4,3,0
1,5,2,4
1,5,3,2
4,4,2,4
2,1,6,3
4,6,1,1
5,6,2,2
2,4,50,30
 6
8
1,2,2,2
0,3,4,3
1,5,2,4
1,6,3,2
4,4,2,4
2,1,6,3
4,6,1,1
5,6,2,2
2,4,50,30

10
 3
 15
 9
 -6
 14
 11
 5
 0
 4

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>

const int INF = 1000000000;

int main(void)
{
	int edge[21][21];
	int n, m, a, b, c, d;
	int x1, x2, y1, y2;
	int i, j, k;
	
	scanf("%d", &n);
	scanf("%d", &m);
	
	for (i = 0; i <= n; i++){
		for (j = 0; j <= n; j++){
			edge[i][j] = INF;
		}
	}
	
	for (i = 0; i < m; i++){
		scanf("%d,%d,%d,%d", &a, &b, &c, &d);
		edge[a][b] = c;
		edge[b][a] = d;
	}
	 
	scanf("%d,%d,%d,%d", &x1, &x2, &y1, &y2);
	
	for (k = 1;  k <= n; k++){
		for (i = 1; i <= n; i++){
			for (j = 1; j <= n; j++){
				
				if (edge[i][j] > edge[i][k] + edge[k][j]){
					edge[i][j] = edge[i][k] + edge[k][j];
				}
			}
		}
	}
	
	printf("%d\n", y1 - y2 - edge[x1][x2] - edge[x2][x1]);
	
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	INF
	.section	.rodata
	.align 4
	.type	INF, @object
	.size	INF, 4
INF:
	.long	1000000000
.LC0:
	.string	"%d"
.LC1:
	.string	"%d,%d,%d,%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1840, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1828(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1824(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1788(%rbp)
	jmp	.L2
.L5:
	movl	$0, -1784(%rbp)
	jmp	.L3
.L4:
	movl	$1000000000, %ecx
	movl	-1784(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1776(%rbp,%rax,4)
	addl	$1, -1784(%rbp)
.L3:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1784(%rbp)
	jle	.L4
	addl	$1, -1788(%rbp)
.L2:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1788(%rbp)
	jle	.L5
	movl	$0, -1788(%rbp)
	jmp	.L6
.L7:
	leaq	-1808(%rbp), %rsi
	leaq	-1812(%rbp), %rcx
	leaq	-1816(%rbp), %rdx
	leaq	-1820(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1820(%rbp), %eax
	movl	-1816(%rbp), %edx
	movl	-1812(%rbp), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1776(%rbp,%rax,4)
	movl	-1816(%rbp), %eax
	movl	-1820(%rbp), %edx
	movl	-1808(%rbp), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1776(%rbp,%rax,4)
	addl	$1, -1788(%rbp)
.L6:
	movl	-1824(%rbp), %eax
	cmpl	%eax, -1788(%rbp)
	jl	.L7
	leaq	-1792(%rbp), %rsi
	leaq	-1796(%rbp), %rcx
	leaq	-1800(%rbp), %rdx
	leaq	-1804(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1780(%rbp)
	jmp	.L8
.L14:
	movl	$1, -1788(%rbp)
	jmp	.L9
.L13:
	movl	$1, -1784(%rbp)
	jmp	.L10
.L12:
	movl	-1784(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1776(%rbp,%rax,4), %ecx
	movl	-1780(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %esi
	movl	-1784(%rbp), %eax
	movslq	%eax, %rdi
	movl	-1780(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movl	-1776(%rbp,%rax,4), %eax
	addl	%esi, %eax
	cmpl	%eax, %ecx
	jle	.L11
	movl	-1780(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1776(%rbp,%rax,4), %ecx
	movl	-1784(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1780(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-1784(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1776(%rbp,%rax,4)
.L11:
	addl	$1, -1784(%rbp)
.L10:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1784(%rbp)
	jle	.L12
	addl	$1, -1788(%rbp)
.L9:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1788(%rbp)
	jle	.L13
	addl	$1, -1780(%rbp)
.L8:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1780(%rbp)
	jle	.L14
	movl	-1796(%rbp), %eax
	movl	-1792(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-1804(%rbp), %eax
	movl	-1800(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %eax
	subl	%eax, %ecx
	movl	-1800(%rbp), %eax
	movl	-1804(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	INF
	.section	.rodata
	.align 4
	.type	INF, @object
	.size	INF, 4
INF:
	.long	1000000000
.LC0:
	.string	"%d"
.LC1:
	.string	"%d,%d,%d,%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1840, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1828(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1824(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1788(%rbp)
	jmp	.L2
.L5:
	movl	$0, -1784(%rbp)
	jmp	.L3
.L4:
	movl	$1000000000, %ecx
	movl	-1784(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1776(%rbp,%rax,4)
	addl	$1, -1784(%rbp)
.L3:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1784(%rbp)
	jle	.L4
	addl	$1, -1788(%rbp)
.L2:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1788(%rbp)
	jle	.L5
	movl	$0, -1788(%rbp)
	jmp	.L6
.L7:
	leaq	-1808(%rbp), %rsi
	leaq	-1812(%rbp), %rcx
	leaq	-1816(%rbp), %rdx
	leaq	-1820(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1820(%rbp), %eax
	movl	-1816(%rbp), %edx
	movl	-1812(%rbp), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1776(%rbp,%rax,4)
	movl	-1816(%rbp), %eax
	movl	-1820(%rbp), %edx
	movl	-1808(%rbp), %ecx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1776(%rbp,%rax,4)
	addl	$1, -1788(%rbp)
.L6:
	movl	-1824(%rbp), %eax
	cmpl	%eax, -1788(%rbp)
	jl	.L7
	leaq	-1792(%rbp), %rsi
	leaq	-1796(%rbp), %rcx
	leaq	-1800(%rbp), %rdx
	leaq	-1804(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1780(%rbp)
	jmp	.L8
.L14:
	movl	$1, -1788(%rbp)
	jmp	.L9
.L13:
	movl	$1, -1784(%rbp)
	jmp	.L10
.L12:
	movl	-1784(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1776(%rbp,%rax,4), %ecx
	movl	-1780(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %esi
	movl	-1784(%rbp), %eax
	movslq	%eax, %rdi
	movl	-1780(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rdi, %rax
	movl	-1776(%rbp,%rax,4), %eax
	addl	%esi, %eax
	cmpl	%eax, %ecx
	jle	.L11
	movl	-1780(%rbp), %eax
	movslq	%eax, %rcx
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-1776(%rbp,%rax,4), %ecx
	movl	-1784(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1780(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %eax
	addl	%eax, %ecx
	movl	-1784(%rbp), %eax
	movslq	%eax, %rsi
	movl	-1788(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	%ecx, -1776(%rbp,%rax,4)
.L11:
	addl	$1, -1784(%rbp)
.L10:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1784(%rbp)
	jle	.L12
	addl	$1, -1788(%rbp)
.L9:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1788(%rbp)
	jle	.L13
	addl	$1, -1780(%rbp)
.L8:
	movl	-1828(%rbp), %eax
	cmpl	%eax, -1780(%rbp)
	jle	.L14
	movl	-1796(%rbp), %eax
	movl	-1792(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-1804(%rbp), %eax
	movl	-1800(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %eax
	subl	%eax, %ecx
	movl	-1800(%rbp), %eax
	movl	-1804(%rbp), %edx
	movslq	%edx, %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	movl	-1776(%rbp,%rax,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
