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 <limits.h>

#define N 20
#define UL ( INT_MAX >> 1 )
#define MIN(A,B) \
  ( (A) < (B) ? (A) : (B) )

static int d[ N ][ N ];
static int n;

static int jintan[ N ] = { 0 };

static int
FSA (
  int p,
  int t
  )
{
  int res = UL;
  int i;

  if ( p == t )       return ( 0 );
  if ( jintan[ p ] )  return ( UL );

  jintan[ p ] = 1;

  for ( i = 0; i < n; ++i )
  {
    int tmp;

    if ( d[ p ][ i ] == -1 ) continue ;

    tmp = FSA ( i, t ) + d[ p ][ i ];
    res = MIN( res, tmp );
  }

  jintan[ p ] = 0;

  return ( res );
}

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  int m, x1, x2, y1, y2;
  int res;

  scanf ( "%d %d", &n, &m );

  memset ( d, -1, sizeof ( d ) );
  while ( m-- )
  {
    int a, b, c1, c2;

    scanf ( " %d,%d,%d,%d", &a, &b, &c1, &c2 );
    d[ a - 1 ][ b - 1 ] = c1;
    d[ b - 1 ][ a - 1 ] = c2;
  }
  scanf ( " %d,%d,%d,%d", &x1, &x2, &y1, &y2 );

  res  = FSA ( x1 - 1, x2 - 1 );
  res += FSA ( x2 - 1, x1 - 1 );

  printf ( "%d\n", y1 - y2 - res );

  return ( 0 );
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	d
	.comm	d,1600,32
	.local	n
	.comm	n,4,4
	.local	jintan
	.comm	jintan,80,32
	.type	FSA, @function
FSA:
.LFB0:
	.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
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$1073741823, -12(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jne	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	jintan(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L4
	movl	$1073741823, %eax
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	jintan(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	$0, -8(%rbp)
	jmp	.L5
.L8:
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L9
	movl	-24(%rbp), %edx
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	FSA
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L7
.L9:
	nop
.L7:
	addl	$1, -8(%rbp)
.L5:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L8
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	jintan(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-12(%rbp), %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	FSA, .-FSA
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	" %d,%d,%d,%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1600, %edx
	movl	$-1, %esi
	leaq	d(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L11
.L12:
	leaq	-16(%rbp), %rsi
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movl	-20(%rbp), %edx
	movslq	%eax, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-24(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	-16(%rbp), %edx
	movslq	%eax, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L11:
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	testl	%eax, %eax
	jne	.L12
	leaq	-16(%rbp), %rsi
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	FSA
	movl	%eax, -12(%rbp)
	movl	-28(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	FSA
	addl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	subl	%edx, %eax
	subl	-12(%rbp), %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	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.type	FSA.part.0, @function
FSA.part.0:
.LFB37:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%esi, %r11d
	movslq	%edi, %rax
	leaq	jintan(%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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movl	n(%rip), %esi
	movl	$1, (%rdi,%rax,4)
	movq	%rax, 88(%rsp)
	movl	$1073741823, 76(%rsp)
	testl	%esi, %esi
	jle	.L2
	leaq	(%rax,%rax,4), %rax
	leaq	d(%rip), %rdi
	movl	$0, 40(%rsp)
	salq	$4, %rax
	movq	%rdi, 80(%rsp)
	addq	%rdi, %rax
	movq	%rax, 56(%rsp)
	leaq	jintan(%rip), %rax
	movq	%rax, 48(%rsp)
.L26:
	movq	56(%rsp), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	je	.L3
	cmpl	40(%rsp), %r11d
	je	.L4
	movq	48(%rsp), %rdi
	movl	(%rdi), %r10d
	testl	%r10d, %r10d
	jne	.L54
	movl	$1, (%rdi)
	movl	$1073741823, 44(%rsp)
	testl	%esi, %esi
	jle	.L6
	leaq	d(%rip), %rax
	movl	%r10d, 12(%rsp)
	movq	%rax, 64(%rsp)
	leaq	jintan(%rip), %rax
	movq	%rax, 16(%rsp)
	movq	80(%rsp), %rax
	movq	%rax, 24(%rsp)
.L25:
	movq	24(%rsp), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	je	.L7
	cmpl	12(%rsp), %r11d
	je	.L8
	movq	16(%rsp), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jne	.L55
	movl	$1, (%rcx)
	movl	$1073741823, %r10d
	testl	%esi, %esi
	jle	.L10
	leaq	d(%rip), %rax
	movq	64(%rsp), %r9
	leaq	jintan(%rip), %r8
	movq	%rax, 32(%rsp)
.L24:
	movl	(%r9), %eax
	cmpl	$-1, %eax
	je	.L11
	cmpl	%edx, %r11d
	je	.L12
	movl	(%r8), %ebp
	testl	%ebp, %ebp
	jne	.L56
	movl	$1, (%r8)
	movl	$1073741823, %ecx
	testl	%esi, %esi
	jle	.L14
	movq	32(%rsp), %r15
	leaq	d(%rip), %r12
	leaq	jintan(%rip), %r14
.L23:
	movl	(%r15), %eax
	cmpl	$-1, %eax
	je	.L15
	cmpl	%ebp, %r11d
	je	.L16
	movl	(%r14), %r13d
	testl	%r13d, %r13d
	jne	.L57
	movl	$1, (%r14)
	movl	$1073741823, %r13d
	testl	%esi, %esi
	jle	.L18
	movl	%ebp, 72(%rsp)
	xorl	%ebx, %ebx
.L22:
	movl	(%r12,%rbx,4), %eax
	movl	%ebx, %edi
	cmpl	$-1, %eax
	je	.L19
	cmpl	%ebx, %r11d
	je	.L20
	leaq	jintan(%rip), %rbp
	addl	$1073741823, %eax
	movl	0(%rbp,%rbx,4), %ebp
	testl	%ebp, %ebp
	jne	.L20
	movl	%r11d, %esi
	movq	%r9, 120(%rsp)
	movq	%r8, 112(%rsp)
	movl	%ecx, 108(%rsp)
	movl	%r10d, 104(%rsp)
	movl	%edx, 100(%rsp)
	movl	%r11d, 96(%rsp)
	call	FSA.part.0
	movl	n(%rip), %esi
	movq	120(%rsp), %r9
	movq	112(%rsp), %r8
	movl	108(%rsp), %ecx
	movl	104(%rsp), %r10d
	movl	100(%rsp), %edx
	movl	96(%rsp), %r11d
	addl	(%r12,%rbx,4), %eax
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	%eax, %r13d
	cmovg	%eax, %r13d
.L19:
	addq	$1, %rbx
	cmpl	%ebx, %esi
	jg	.L22
	movl	72(%rsp), %ebp
	movl	(%r15), %eax
.L18:
	movl	$0, (%r14)
	addl	%r13d, %eax
.L16:
	cmpl	%eax, %ecx
	cmovg	%eax, %ecx
.L15:
	addl	$1, %ebp
	addq	$4, %r15
	addq	$4, %r14
	addq	$80, %r12
	cmpl	%esi, %ebp
	jl	.L23
	movl	(%r9), %eax
.L14:
	movl	$0, (%r8)
	addl	%ecx, %eax
.L12:
	cmpl	%eax, %r10d
	cmovg	%eax, %r10d
.L11:
	addl	$1, %edx
	addq	$80, 32(%rsp)
	addq	$4, %r9
	addq	$4, %r8
	cmpl	%esi, %edx
	jl	.L24
	movq	24(%rsp), %rax
	movl	(%rax), %eax
.L10:
	movq	16(%rsp), %rdx
	addl	%r10d, %eax
	movl	$0, (%rdx)
.L8:
	movl	44(%rsp), %edi
	cmpl	%eax, %edi
	cmovle	%edi, %eax
	movl	%eax, 44(%rsp)
.L7:
	addl	$1, 12(%rsp)
	movl	12(%rsp), %eax
	addq	$4, 24(%rsp)
	addq	$4, 16(%rsp)
	addq	$80, 64(%rsp)
	cmpl	%esi, %eax
	jl	.L25
	movq	56(%rsp), %rax
	movl	(%rax), %eax
.L6:
	movq	48(%rsp), %rdx
	addl	44(%rsp), %eax
	movl	$0, (%rdx)
.L4:
	movl	76(%rsp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, 76(%rsp)
.L3:
	addl	$1, 40(%rsp)
	movl	40(%rsp), %eax
	addq	$4, 56(%rsp)
	addq	$4, 48(%rsp)
	addq	$80, 80(%rsp)
	cmpl	%esi, %eax
	jl	.L26
.L2:
	movq	88(%rsp), %rcx
	leaq	jintan(%rip), %rax
	movl	$0, (%rax,%rcx,4)
	movl	76(%rsp), %eax
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L57:
	.cfi_restore_state
	addl	$1073741823, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L56:
	addl	$1073741823, %eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L55:
	addl	$1073741823, %eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L54:
	addl	$1073741823, %eax
	jmp	.L4
	.cfi_endproc
.LFE37:
	.size	FSA.part.0, .-FSA.part.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	" %d,%d,%d,%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	leaq	n(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	d(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	leaq	20(%rsp), %rbp
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %r15
	leaq	8(%rsp), %r14
	call	__isoc99_scanf@PLT
	movq	$-1, %rax
	movl	$200, %ecx
	movq	%rbx, %rdi
	rep stosq
	movl	4(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 4(%rsp)
	testl	%eax, %eax
	je	.L62
	.p2align 4,,10
	.p2align 3
.L59:
	movq	%r12, %rcx
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r13, %rdi
	movq	%rbp, %r8
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	movl	12(%rsp), %edi
	movl	16(%rsp), %esi
	subl	$1, %eax
	leal	-1(%rdi), %edx
	cltq
	movslq	%edx, %rdx
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	movl	20(%rsp), %edx
	movl	%esi, (%rbx,%rcx,4)
	movl	%edx, (%rbx,%rax,4)
	movl	4(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 4(%rsp)
	testl	%eax, %eax
	jne	.L59
.L62:
	movq	%rbp, %r8
	movq	%r15, %rdx
	movq	%r13, %rdi
	movq	%r12, %rcx
	movq	%r14, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	8(%rsp), %eax
	leal	-1(%rdx), %edi
	leal	-1(%rax), %r8d
	cmpl	%eax, %edx
	je	.L72
	leaq	jintan(%rip), %r12
	movslq	%r8d, %rax
	movl	(%r12,%rax,4), %ebx
	testl	%ebx, %ebx
	jne	.L66
	movl	%edi, %esi
	movl	%r8d, %edi
	call	FSA.part.0
	movl	8(%rsp), %edx
	movl	%eax, %ebp
	movl	12(%rsp), %eax
	leal	-1(%rdx), %r8d
	leal	-1(%rax), %edi
	cmpl	%eax, %edx
	je	.L60
.L63:
	movslq	%edi, %rax
	movl	$1073741823, %ebx
	movl	(%r12,%rax,4), %eax
	testl	%eax, %eax
	jne	.L60
	movl	%r8d, %esi
	call	FSA.part.0
	movl	%eax, %ebx
.L60:
	addl	%ebp, %ebx
	movl	16(%rsp), %edx
	subl	20(%rsp), %edx
	xorl	%eax, %eax
	subl	%ebx, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L73
	addq	$40, %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
.L72:
	.cfi_restore_state
	xorl	%ebp, %ebp
	xorl	%ebx, %ebx
	jmp	.L60
.L66:
	movl	$1073741823, %ebp
	jmp	.L63
.L73:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.local	jintan
	.comm	jintan,80,32
	.local	n
	.comm	n,4,4
	.local	d
	.comm	d,1600,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
	.p2align 4
	.type	FSA.part.0, @function
FSA.part.0:
.LFB37:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%esi, %r11d
	movslq	%edi, %rax
	leaq	jintan(%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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movl	n(%rip), %esi
	movl	$1, (%rdi,%rax,4)
	movq	%rax, 88(%rsp)
	movl	$1073741823, 76(%rsp)
	testl	%esi, %esi
	jle	.L2
	leaq	(%rax,%rax,4), %rax
	leaq	d(%rip), %rdi
	movl	$0, 40(%rsp)
	salq	$4, %rax
	movq	%rdi, 80(%rsp)
	addq	%rdi, %rax
	movq	%rax, 56(%rsp)
	leaq	jintan(%rip), %rax
	movq	%rax, 48(%rsp)
.L26:
	movq	56(%rsp), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	je	.L3
	cmpl	40(%rsp), %r11d
	je	.L4
	movq	48(%rsp), %rdi
	movl	(%rdi), %r10d
	testl	%r10d, %r10d
	jne	.L54
	movl	$1, (%rdi)
	movl	$1073741823, 44(%rsp)
	testl	%esi, %esi
	jle	.L6
	leaq	d(%rip), %rax
	movl	%r10d, 12(%rsp)
	movq	%rax, 64(%rsp)
	leaq	jintan(%rip), %rax
	movq	%rax, 16(%rsp)
	movq	80(%rsp), %rax
	movq	%rax, 24(%rsp)
.L25:
	movq	24(%rsp), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	je	.L7
	cmpl	12(%rsp), %r11d
	je	.L8
	movq	16(%rsp), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jne	.L55
	movl	$1, (%rcx)
	movl	$1073741823, %r10d
	testl	%esi, %esi
	jle	.L10
	leaq	d(%rip), %rax
	movq	64(%rsp), %r9
	leaq	jintan(%rip), %r8
	movq	%rax, 32(%rsp)
.L24:
	movl	(%r9), %eax
	cmpl	$-1, %eax
	je	.L11
	cmpl	%edx, %r11d
	je	.L12
	movl	(%r8), %ebp
	testl	%ebp, %ebp
	jne	.L56
	movl	$1, (%r8)
	movl	$1073741823, %ecx
	testl	%esi, %esi
	jle	.L14
	movq	32(%rsp), %r15
	leaq	d(%rip), %r12
	leaq	jintan(%rip), %r14
.L23:
	movl	(%r15), %eax
	cmpl	$-1, %eax
	je	.L15
	cmpl	%ebp, %r11d
	je	.L16
	movl	(%r14), %r13d
	testl	%r13d, %r13d
	jne	.L57
	movl	$1, (%r14)
	movl	$1073741823, %r13d
	testl	%esi, %esi
	jle	.L18
	movl	%ebp, 72(%rsp)
	xorl	%ebx, %ebx
.L22:
	movl	(%r12,%rbx,4), %eax
	movl	%ebx, %edi
	cmpl	$-1, %eax
	je	.L19
	cmpl	%ebx, %r11d
	je	.L20
	leaq	jintan(%rip), %rbp
	addl	$1073741823, %eax
	movl	0(%rbp,%rbx,4), %ebp
	testl	%ebp, %ebp
	jne	.L20
	movl	%r11d, %esi
	movq	%r9, 120(%rsp)
	movq	%r8, 112(%rsp)
	movl	%ecx, 108(%rsp)
	movl	%r10d, 104(%rsp)
	movl	%edx, 100(%rsp)
	movl	%r11d, 96(%rsp)
	call	FSA.part.0
	movl	n(%rip), %esi
	movq	120(%rsp), %r9
	movq	112(%rsp), %r8
	movl	108(%rsp), %ecx
	movl	104(%rsp), %r10d
	movl	100(%rsp), %edx
	movl	96(%rsp), %r11d
	addl	(%r12,%rbx,4), %eax
	.p2align 4,,10
	.p2align 3
.L20:
	cmpl	%eax, %r13d
	cmovg	%eax, %r13d
.L19:
	addq	$1, %rbx
	cmpl	%ebx, %esi
	jg	.L22
	movl	72(%rsp), %ebp
	movl	(%r15), %eax
.L18:
	movl	$0, (%r14)
	addl	%r13d, %eax
.L16:
	cmpl	%eax, %ecx
	cmovg	%eax, %ecx
.L15:
	addl	$1, %ebp
	addq	$4, %r15
	addq	$4, %r14
	addq	$80, %r12
	cmpl	%esi, %ebp
	jl	.L23
	movl	(%r9), %eax
.L14:
	movl	$0, (%r8)
	addl	%ecx, %eax
.L12:
	cmpl	%eax, %r10d
	cmovg	%eax, %r10d
.L11:
	addl	$1, %edx
	addq	$80, 32(%rsp)
	addq	$4, %r9
	addq	$4, %r8
	cmpl	%esi, %edx
	jl	.L24
	movq	24(%rsp), %rax
	movl	(%rax), %eax
.L10:
	movq	16(%rsp), %rdx
	addl	%r10d, %eax
	movl	$0, (%rdx)
.L8:
	movl	44(%rsp), %edi
	cmpl	%eax, %edi
	cmovle	%edi, %eax
	movl	%eax, 44(%rsp)
.L7:
	addl	$1, 12(%rsp)
	movl	12(%rsp), %eax
	addq	$4, 24(%rsp)
	addq	$4, 16(%rsp)
	addq	$80, 64(%rsp)
	cmpl	%esi, %eax
	jl	.L25
	movq	56(%rsp), %rax
	movl	(%rax), %eax
.L6:
	movq	48(%rsp), %rdx
	addl	44(%rsp), %eax
	movl	$0, (%rdx)
.L4:
	movl	76(%rsp), %edx
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, 76(%rsp)
.L3:
	addl	$1, 40(%rsp)
	movl	40(%rsp), %eax
	addq	$4, 56(%rsp)
	addq	$4, 48(%rsp)
	addq	$80, 80(%rsp)
	cmpl	%esi, %eax
	jl	.L26
.L2:
	movq	88(%rsp), %rcx
	leaq	jintan(%rip), %rax
	movl	$0, (%rax,%rcx,4)
	movl	76(%rsp), %eax
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L57:
	.cfi_restore_state
	addl	$1073741823, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L56:
	addl	$1073741823, %eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L55:
	addl	$1073741823, %eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L54:
	addl	$1073741823, %eax
	jmp	.L4
	.cfi_endproc
.LFE37:
	.size	FSA.part.0, .-FSA.part.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	" %d,%d,%d,%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	leaq	n(%rip), %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	d(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	leaq	20(%rsp), %rbp
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %r15
	leaq	8(%rsp), %r14
	call	__isoc99_scanf@PLT
	movq	$-1, %rax
	movl	$200, %ecx
	movq	%rbx, %rdi
	rep stosq
	movl	4(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 4(%rsp)
	testl	%eax, %eax
	je	.L62
	.p2align 4,,10
	.p2align 3
.L59:
	movq	%r12, %rcx
	movq	%r15, %rdx
	movq	%r14, %rsi
	movq	%r13, %rdi
	movq	%rbp, %r8
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	movl	12(%rsp), %edi
	movl	16(%rsp), %esi
	subl	$1, %eax
	leal	-1(%rdi), %edx
	cltq
	movslq	%edx, %rdx
	leaq	(%rax,%rax,4), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	movl	20(%rsp), %edx
	movl	%esi, (%rbx,%rcx,4)
	movl	%edx, (%rbx,%rax,4)
	movl	4(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 4(%rsp)
	testl	%eax, %eax
	jne	.L59
.L62:
	movq	%rbp, %r8
	movq	%r15, %rdx
	movq	%r13, %rdi
	movq	%r12, %rcx
	movq	%r14, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	8(%rsp), %eax
	leal	-1(%rdx), %edi
	leal	-1(%rax), %r8d
	cmpl	%eax, %edx
	je	.L72
	leaq	jintan(%rip), %r12
	movslq	%r8d, %rax
	movl	(%r12,%rax,4), %ebx
	testl	%ebx, %ebx
	jne	.L66
	movl	%edi, %esi
	movl	%r8d, %edi
	call	FSA.part.0
	movl	8(%rsp), %edx
	movl	%eax, %ebp
	movl	12(%rsp), %eax
	leal	-1(%rdx), %r8d
	leal	-1(%rax), %edi
	cmpl	%eax, %edx
	je	.L60
.L63:
	movslq	%edi, %rax
	movl	$1073741823, %ebx
	movl	(%r12,%rax,4), %eax
	testl	%eax, %eax
	jne	.L60
	movl	%r8d, %esi
	call	FSA.part.0
	movl	%eax, %ebx
.L60:
	addl	%ebp, %ebx
	movl	16(%rsp), %edx
	subl	20(%rsp), %edx
	xorl	%eax, %eax
	subl	%ebx, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L73
	addq	$40, %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
.L72:
	.cfi_restore_state
	xorl	%ebp, %ebp
	xorl	%ebx, %ebx
	jmp	.L60
.L66:
	movl	$1073741823, %ebp
	jmp	.L63
.L73:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.local	jintan
	.comm	jintan,80,32
	.local	n
	.comm	n,4,4
	.local	d
	.comm	d,1600,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 <limits.h>

#define N 20
#define UL ( INT_MAX >> 1 )
#define MIN(A,B) \
  ( (A) < (B) ? (A) : (B) )

static int d[ N ][ N ];
static int n;

static int jintan[ N ] = { 0 };

static int
FSA (
  int p,
  int t
  )
{
  int res = UL;
  int i;

  if ( p == t )       return ( 0 );
  if ( jintan[ p ] )  return ( UL );

  jintan[ p ] = 1;

  for ( i = 0; i < n; ++i )
  {
    int tmp;

    if ( d[ p ][ i ] == -1 ) continue ;

    tmp = FSA ( i, t ) + d[ p ][ i ];
    res = MIN( res, tmp );
  }

  jintan[ p ] = 0;

  return ( res );
}

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  int m, x1, x2, y1, y2;
  int res;

  scanf ( "%d %d", &n, &m );

  memset ( d, -1, sizeof ( d ) );
  while ( m-- )
  {
    int a, b, c1, c2;

    scanf ( " %d,%d,%d,%d", &a, &b, &c1, &c2 );
    d[ a - 1 ][ b - 1 ] = c1;
    d[ b - 1 ][ a - 1 ] = c2;
  }
  scanf ( " %d,%d,%d,%d", &x1, &x2, &y1, &y2 );

  res  = FSA ( x1 - 1, x2 - 1 );
  res += FSA ( x2 - 1, x1 - 1 );

  printf ( "%d\n", y1 - y2 - res );

  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

10
 3

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 <limits.h>

#define N 20
#define UL ( INT_MAX >> 1 )
#define MIN(A,B) \
  ( (A) < (B) ? (A) : (B) )

static int d[ N ][ N ];
static int n;

static int jintan[ N ] = { 0 };

static int
FSA (
  int p,
  int t
  )
{
  int res = UL;
  int i;

  if ( p == t )       return ( 0 );
  if ( jintan[ p ] )  return ( UL );

  jintan[ p ] = 1;

  for ( i = 0; i < n; ++i )
  {
    int tmp;

    if ( d[ p ][ i ] == -1 ) continue ;

    tmp = FSA ( i, t ) + d[ p ][ i ];
    res = MIN( res, tmp );
  }

  jintan[ p ] = 0;

  return ( res );
}

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  int m, x1, x2, y1, y2;
  int res;

  scanf ( "%d %d", &n, &m );

  memset ( d, -1, sizeof ( d ) );
  while ( m-- )
  {
    int a, b, c1, c2;

    scanf ( " %d,%d,%d,%d", &a, &b, &c1, &c2 );
    d[ a - 1 ][ b - 1 ] = c1;
    d[ b - 1 ][ a - 1 ] = c2;
  }
  scanf ( " %d,%d,%d,%d", &x1, &x2, &y1, &y2 );

  res  = FSA ( x1 - 1, x2 - 1 );
  res += FSA ( x2 - 1, x1 - 1 );

  printf ( "%d\n", y1 - y2 - res );

  return ( 0 );
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	d
	.comm	d,1600,32
	.local	n
	.comm	n,4,4
	.local	jintan
	.comm	jintan,80,32
	.type	FSA, @function
FSA:
.LFB0:
	.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
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$1073741823, -12(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jne	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	jintan(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L4
	movl	$1073741823, %eax
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	jintan(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	$0, -8(%rbp)
	jmp	.L5
.L8:
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L9
	movl	-24(%rbp), %edx
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	FSA
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L7
.L9:
	nop
.L7:
	addl	$1, -8(%rbp)
.L5:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L8
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	jintan(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-12(%rbp), %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	FSA, .-FSA
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	" %d,%d,%d,%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1600, %edx
	movl	$-1, %esi
	leaq	d(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L11
.L12:
	leaq	-16(%rbp), %rsi
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movl	-20(%rbp), %edx
	movslq	%eax, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-24(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	-16(%rbp), %edx
	movslq	%eax, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L11:
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	testl	%eax, %eax
	jne	.L12
	leaq	-16(%rbp), %rsi
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	FSA
	movl	%eax, -12(%rbp)
	movl	-28(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	FSA
	addl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	subl	%edx, %eax
	subl	-12(%rbp), %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	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.local	d
	.comm	d,1600,32
	.local	n
	.comm	n,4,4
	.local	jintan
	.comm	jintan,80,32
	.type	FSA, @function
FSA:
.LFB0:
	.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
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$1073741823, -12(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jne	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	jintan(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L4
	movl	$1073741823, %eax
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	jintan(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	$0, -8(%rbp)
	jmp	.L5
.L8:
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	je	.L9
	movl	-24(%rbp), %edx
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	FSA
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L7
.L9:
	nop
.L7:
	addl	$1, -8(%rbp)
.L5:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L8
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	jintan(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-12(%rbp), %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	FSA, .-FSA
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	" %d,%d,%d,%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1600, %edx
	movl	$-1, %esi
	leaq	d(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L11
.L12:
	leaq	-16(%rbp), %rsi
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movl	-20(%rbp), %edx
	movslq	%eax, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	%edx, (%rcx,%rax)
	movl	-24(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	-16(%rbp), %edx
	movslq	%eax, %rsi
	movslq	%ecx, %rcx
	movq	%rcx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	d(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L11:
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	testl	%eax, %eax
	jne	.L12
	leaq	-16(%rbp), %rsi
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-28(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	FSA
	movl	%eax, -12(%rbp)
	movl	-28(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	FSA
	addl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	subl	%edx, %eax
	subl	-12(%rbp), %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	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
