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

int **matrix, *seq, *sea, eflag, counter;

void cycle_path(int, int);
int main(void) {
  int i, v, e, s, t;
  scanf("%d %d", &v, &e);
  matrix = (int**)malloc(sizeof(int*) * v);
  seq = (int*)calloc(v, sizeof(int));
  sea = (int*)calloc(v, sizeof(int));
  for (i = 0; i < v; i++) matrix[i] = (int*)calloc(v, sizeof(int));
  for (i = 0; i < e; i++) {
    scanf("%d %d", &s, &t);
    matrix[s][t] = 1;
  }
  for (i = 0; i < v; i++) {
    if (!seq[i]) cycle_path(i, v);
    if (eflag) break;
  }
  if (eflag) printf("1\n");
  else printf("0\n");
  for (i = 0; i < v; i++) free(matrix[i]);
  free(matrix);
  free(seq);
  free(sea);
}
void cycle_path(int point, int size)
{
  int i;
  if (!eflag) {
    seq[point] = ++counter;
    sea[point] = 1;
    for (i = 0; i < size; i++) {
      if (!matrix[point][i]) continue;
      if (!seq[i]) cycle_path(i, size);
      else {
        if (seq[i] < seq[point] && sea[i]) eflag = 1;
      }
    }
    sea[point] = 0;
  }
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	matrix
	.bss
	.align 8
	.type	matrix, @object
	.size	matrix, 8
matrix:
	.zero	8
	.globl	seq
	.align 8
	.type	seq, @object
	.size	seq, 8
seq:
	.zero	8
	.globl	sea
	.align 8
	.type	sea, @object
	.size	sea, 8
sea:
	.zero	8
	.globl	eflag
	.align 4
	.type	eflag, @object
	.size	eflag, 4
eflag:
	.zero	4
	.globl	counter
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"1"
.LC2:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, matrix(%rip)
	movl	-44(%rbp), %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, seq(%rip)
	movl	-44(%rbp), %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, sea(%rip)
	movl	$0, -28(%rbp)
	jmp	.L2
.L3:
	movl	-44(%rbp), %eax
	cltq
	movq	matrix(%rip), %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	salq	$3, %rdx
	leaq	(%rcx,%rdx), %rbx
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, (%rbx)
	addl	$1, -28(%rbp)
.L2:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L3
	movl	$0, -28(%rbp)
	jmp	.L4
.L5:
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	matrix(%rip), %rdx
	movl	-36(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-32(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	addl	$1, -28(%rbp)
.L4:
	movl	-40(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L5
	movl	$0, -28(%rbp)
	jmp	.L6
.L10:
	movq	seq(%rip), %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	cycle_path
.L7:
	movl	eflag(%rip), %eax
	testl	%eax, %eax
	jne	.L17
	addl	$1, -28(%rbp)
.L6:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L10
	jmp	.L9
.L17:
	nop
.L9:
	movl	eflag(%rip), %eax
	testl	%eax, %eax
	je	.L11
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L12
.L11:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L12:
	movl	$0, -28(%rbp)
	jmp	.L13
.L14:
	movq	matrix(%rip), %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	free@PLT
	addl	$1, -28(%rbp)
.L13:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L14
	movq	matrix(%rip), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	seq(%rip), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	sea(%rip), %rax
	movq	%rax, %rdi
	call	free@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	cycle_path
	.type	cycle_path, @function
cycle_path:
.LFB7:
	.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	eflag(%rip), %eax
	testl	%eax, %eax
	jne	.L25
	movl	counter(%rip), %eax
	addl	$1, %eax
	movl	%eax, counter(%rip)
	movq	seq(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	movl	counter(%rip), %eax
	movl	%eax, (%rdx)
	movq	sea(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	movl	$0, -4(%rbp)
	jmp	.L20
.L24:
	movq	matrix(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L26
	movq	seq(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L23
	movl	-24(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	cycle_path
	jmp	.L22
.L23:
	movq	seq(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	seq(%rip), %rcx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jge	.L22
	movq	sea(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L22
	movl	$1, eflag(%rip)
	jmp	.L22
.L26:
	nop
.L22:
	addl	$1, -4(%rbp)
.L20:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L24
	movq	sea(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
.L25:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cycle_path, .-cycle_path
	.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	cycle_path.part.0, @function
cycle_path.part.0:
.LFB41:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %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	0(,%rdi,4), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	counter(%rip), %eax
	movq	seq(%rip), %rdx
	movq	sea(%rip), %r15
	addl	$1, %eax
	leaq	(%rdx,%rbp), %rcx
	addq	%r15, %rbp
	movl	%eax, counter(%rip)
	movl	%eax, (%rcx)
	movl	$1, 0(%rbp)
	testl	%esi, %esi
	jle	.L6
	movq	matrix(%rip), %rax
	movl	%esi, %r12d
	movslq	%esi, %r13
	xorl	%ebx, %ebx
	movq	(%rax,%rdi,8), %r14
.L5:
	movl	(%r14,%rbx,4), %r8d
	movl	%ebx, %edi
	testl	%r8d, %r8d
	je	.L3
	movl	(%rdx,%rbx,4), %eax
	testl	%eax, %eax
	je	.L11
	cmpl	(%rcx), %eax
	jge	.L3
	movl	(%r15,%rbx,4), %eax
	testl	%eax, %eax
	je	.L3
	movl	$1, eflag(%rip)
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rbx
	cmpq	%rbx, %r13
	jne	.L5
.L6:
	movl	$0, 0(%rbp)
	addq	$24, %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
.L11:
	.cfi_restore_state
	movl	eflag(%rip), %esi
	testl	%esi, %esi
	jne	.L3
	movl	%r12d, %esi
	addq	$1, %rbx
	movq	%rcx, 8(%rsp)
	movq	%rdx, (%rsp)
	call	cycle_path.part.0
	movq	(%rsp), %rdx
	movq	8(%rsp), %rcx
	cmpq	%rbx, %r13
	jne	.L5
	jmp	.L6
	.cfi_endproc
.LFE41:
	.size	cycle_path.part.0, .-cycle_path.part.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"0"
.LC2:
	.string	"1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %r12
	leaq	0(,%r12,8), %rdi
	call	malloc@PLT
	movl	$4, %esi
	movq	%r12, %rdi
	movq	%rax, matrix(%rip)
	movq	%rax, %rbx
	call	calloc@PLT
	movl	$4, %esi
	movq	%r12, %rdi
	movq	%rax, seq(%rip)
	call	calloc@PLT
	movq	%rax, sea(%rip)
	testl	%r12d, %r12d
	jle	.L17
	movl	%r12d, %r13d
	leaq	(%rbx,%r13,8), %r13
	.p2align 4,,10
	.p2align 3
.L16:
	movl	$4, %esi
	movq	%r12, %rdi
	addq	$8, %rbx
	call	calloc@PLT
	movq	%rax, -8(%rbx)
	cmpq	%rbx, %r13
	jne	.L16
.L17:
	movl	12(%rsp), %ecx
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	testl	%ecx, %ecx
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rcx
	movslq	20(%rsp), %rdx
	addl	$1, %ebx
	movq	matrix(%rip), %rax
	movq	(%rax,%rcx,8), %rax
	movl	$1, (%rax,%rdx,4)
	cmpl	%ebx, 12(%rsp)
	jg	.L14
.L15:
	movl	8(%rsp), %esi
	movl	eflag(%rip), %eax
	xorl	%r9d, %r9d
	movq	seq(%rip), %r10
	testl	%esi, %esi
	jle	.L41
	.p2align 4,,10
	.p2align 3
.L22:
	movl	(%r10,%r9,4), %edx
	movl	%r9d, %edi
	testl	%edx, %edx
	jne	.L20
	testl	%eax, %eax
	je	.L42
.L24:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L26:
	movl	8(%rsp), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L25:
	movq	matrix(%rip), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	$1, %rbx
	call	free@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L25
.L27:
	movq	matrix(%rip), %rdi
	call	free@PLT
	movq	seq(%rip), %rdi
	call	free@PLT
	movq	sea(%rip), %rdi
	call	free@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	call	cycle_path.part.0
	movl	eflag(%rip), %eax
.L20:
	testl	%eax, %eax
	jne	.L24
	movl	8(%rsp), %esi
	addq	$1, %r9
	cmpl	%r9d, %esi
	jg	.L22
.L23:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L26
.L41:
	testl	%eax, %eax
	je	.L23
	jmp	.L24
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.text
	.p2align 4
	.globl	cycle_path
	.type	cycle_path, @function
cycle_path:
.LFB40:
	.cfi_startproc
	endbr64
	movl	eflag(%rip), %eax
	testl	%eax, %eax
	jne	.L44
	jmp	cycle_path.part.0
	.p2align 4,,10
	.p2align 3
.L44:
	ret
	.cfi_endproc
.LFE40:
	.size	cycle_path, .-cycle_path
	.globl	counter
	.bss
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.globl	eflag
	.align 4
	.type	eflag, @object
	.size	eflag, 4
eflag:
	.zero	4
	.globl	sea
	.align 8
	.type	sea, @object
	.size	sea, 8
sea:
	.zero	8
	.globl	seq
	.align 8
	.type	seq, @object
	.size	seq, 8
seq:
	.zero	8
	.globl	matrix
	.align 8
	.type	matrix, @object
	.size	matrix, 8
matrix:
	.zero	8
	.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	cycle_path.part.0, @function
cycle_path.part.0:
.LFB41:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %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	0(,%rdi,4), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	counter(%rip), %eax
	movq	seq(%rip), %rdx
	movq	sea(%rip), %r15
	addl	$1, %eax
	leaq	(%rdx,%rbp), %rcx
	addq	%r15, %rbp
	movl	%eax, counter(%rip)
	movl	%eax, (%rcx)
	movl	$1, 0(%rbp)
	testl	%esi, %esi
	jle	.L6
	movq	matrix(%rip), %rax
	movl	%esi, %r12d
	movslq	%esi, %r13
	xorl	%ebx, %ebx
	movq	(%rax,%rdi,8), %r14
.L5:
	movl	(%r14,%rbx,4), %r8d
	movl	%ebx, %edi
	testl	%r8d, %r8d
	je	.L3
	movl	(%rdx,%rbx,4), %eax
	testl	%eax, %eax
	je	.L11
	cmpl	(%rcx), %eax
	jge	.L3
	movl	(%r15,%rbx,4), %eax
	testl	%eax, %eax
	je	.L3
	movl	$1, eflag(%rip)
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rbx
	cmpq	%rbx, %r13
	jne	.L5
.L6:
	movl	$0, 0(%rbp)
	addq	$24, %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
.L11:
	.cfi_restore_state
	movl	eflag(%rip), %esi
	testl	%esi, %esi
	jne	.L3
	movl	%r12d, %esi
	addq	$1, %rbx
	movq	%rcx, 8(%rsp)
	movq	%rdx, (%rsp)
	call	cycle_path.part.0
	movq	(%rsp), %rdx
	movq	8(%rsp), %rcx
	cmpq	%rbx, %r13
	jne	.L5
	jmp	.L6
	.cfi_endproc
.LFE41:
	.size	cycle_path.part.0, .-cycle_path.part.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"0"
.LC2:
	.string	"1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %r12
	leaq	0(,%r12,8), %rdi
	call	malloc@PLT
	movl	$4, %esi
	movq	%r12, %rdi
	movq	%rax, matrix(%rip)
	movq	%rax, %rbx
	call	calloc@PLT
	movl	$4, %esi
	movq	%r12, %rdi
	movq	%rax, seq(%rip)
	call	calloc@PLT
	movq	%rax, sea(%rip)
	testl	%r12d, %r12d
	jle	.L17
	movl	%r12d, %r13d
	leaq	(%rbx,%r13,8), %r13
	.p2align 4,,10
	.p2align 3
.L16:
	movl	$4, %esi
	movq	%r12, %rdi
	addq	$8, %rbx
	call	calloc@PLT
	movq	%rax, -8(%rbx)
	cmpq	%rbx, %r13
	jne	.L16
.L17:
	movl	12(%rsp), %ecx
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r13
	leaq	16(%rsp), %r12
	testl	%ecx, %ecx
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	16(%rsp), %rcx
	movslq	20(%rsp), %rdx
	addl	$1, %ebx
	movq	matrix(%rip), %rax
	movq	(%rax,%rcx,8), %rax
	movl	$1, (%rax,%rdx,4)
	cmpl	%ebx, 12(%rsp)
	jg	.L14
.L15:
	movl	8(%rsp), %esi
	movl	eflag(%rip), %eax
	xorl	%r9d, %r9d
	movq	seq(%rip), %r10
	testl	%esi, %esi
	jle	.L41
	.p2align 4,,10
	.p2align 3
.L22:
	movl	(%r10,%r9,4), %edx
	movl	%r9d, %edi
	testl	%edx, %edx
	jne	.L20
	testl	%eax, %eax
	je	.L42
.L24:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L26:
	movl	8(%rsp), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L25:
	movq	matrix(%rip), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	$1, %rbx
	call	free@PLT
	cmpl	%ebx, 8(%rsp)
	jg	.L25
.L27:
	movq	matrix(%rip), %rdi
	call	free@PLT
	movq	seq(%rip), %rdi
	call	free@PLT
	movq	sea(%rip), %rdi
	call	free@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	call	cycle_path.part.0
	movl	eflag(%rip), %eax
.L20:
	testl	%eax, %eax
	jne	.L24
	movl	8(%rsp), %esi
	addq	$1, %r9
	cmpl	%r9d, %esi
	jg	.L22
.L23:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L26
.L41:
	testl	%eax, %eax
	je	.L23
	jmp	.L24
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.text
	.p2align 4
	.globl	cycle_path
	.type	cycle_path, @function
cycle_path:
.LFB40:
	.cfi_startproc
	endbr64
	movl	eflag(%rip), %eax
	testl	%eax, %eax
	jne	.L44
	jmp	cycle_path.part.0
	.p2align 4,,10
	.p2align 3
.L44:
	ret
	.cfi_endproc
.LFE40:
	.size	cycle_path, .-cycle_path
	.globl	counter
	.bss
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.globl	eflag
	.align 4
	.type	eflag, @object
	.size	eflag, 4
eflag:
	.zero	4
	.globl	sea
	.align 8
	.type	sea, @object
	.size	sea, 8
sea:
	.zero	8
	.globl	seq
	.align 8
	.type	seq, @object
	.size	seq, 8
seq:
	.zero	8
	.globl	matrix
	.align 8
	.type	matrix, @object
	.size	matrix, 8
matrix:
	.zero	8
	.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<stdlib.h>

int **matrix, *seq, *sea, eflag, counter;

void cycle_path(int, int);
int main(void) {
  int i, v, e, s, t;
  scanf("%d %d", &v, &e);
  matrix = (int**)malloc(sizeof(int*) * v);
  seq = (int*)calloc(v, sizeof(int));
  sea = (int*)calloc(v, sizeof(int));
  for (i = 0; i < v; i++) matrix[i] = (int*)calloc(v, sizeof(int));
  for (i = 0; i < e; i++) {
    scanf("%d %d", &s, &t);
    matrix[s][t] = 1;
  }
  for (i = 0; i < v; i++) {
    if (!seq[i]) cycle_path(i, v);
    if (eflag) break;
  }
  if (eflag) printf("1\n");
  else printf("0\n");
  for (i = 0; i < v; i++) free(matrix[i]);
  free(matrix);
  free(seq);
  free(sea);
}
void cycle_path(int point, int size)
{
  int i;
  if (!eflag) {
    seq[point] = ++counter;
    sea[point] = 1;
    for (i = 0; i < size; i++) {
      if (!matrix[point][i]) continue;
      if (!seq[i]) cycle_path(i, size);
      else {
        if (seq[i] < seq[point] && sea[i]) eflag = 1;
      }
    }
    sea[point] = 0;
  }
}

5 3
0 1
0 2
1 2
 8 3
0 1
0 2
1 2
 8 3
0 2
0 2
1 2
 5 3
0 2
0 2
1 2
 11 3
0 1
0 2
1 2
 8 2
0 1
0 2
1 2
 8 3
1 2
0 2
1 2
 8 2
0 1
0 2
1 4
 8 2
0 1
0 2
2 4
 8 2
0 2
0 2
2 4

0
 0
 0
 0
 0
 0
 0
 0
 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<stdlib.h>

int **matrix, *seq, *sea, eflag, counter;

void cycle_path(int, int);
int main(void) {
  int i, v, e, s, t;
  scanf("%d %d", &v, &e);
  matrix = (int**)malloc(sizeof(int*) * v);
  seq = (int*)calloc(v, sizeof(int));
  sea = (int*)calloc(v, sizeof(int));
  for (i = 0; i < v; i++) matrix[i] = (int*)calloc(v, sizeof(int));
  for (i = 0; i < e; i++) {
    scanf("%d %d", &s, &t);
    matrix[s][t] = 1;
  }
  for (i = 0; i < v; i++) {
    if (!seq[i]) cycle_path(i, v);
    if (eflag) break;
  }
  if (eflag) printf("1\n");
  else printf("0\n");
  for (i = 0; i < v; i++) free(matrix[i]);
  free(matrix);
  free(seq);
  free(sea);
}
void cycle_path(int point, int size)
{
  int i;
  if (!eflag) {
    seq[point] = ++counter;
    sea[point] = 1;
    for (i = 0; i < size; i++) {
      if (!matrix[point][i]) continue;
      if (!seq[i]) cycle_path(i, size);
      else {
        if (seq[i] < seq[point] && sea[i]) eflag = 1;
      }
    }
    sea[point] = 0;
  }
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	matrix
	.bss
	.align 8
	.type	matrix, @object
	.size	matrix, 8
matrix:
	.zero	8
	.globl	seq
	.align 8
	.type	seq, @object
	.size	seq, 8
seq:
	.zero	8
	.globl	sea
	.align 8
	.type	sea, @object
	.size	sea, 8
sea:
	.zero	8
	.globl	eflag
	.align 4
	.type	eflag, @object
	.size	eflag, 4
eflag:
	.zero	4
	.globl	counter
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"1"
.LC2:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, matrix(%rip)
	movl	-44(%rbp), %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, seq(%rip)
	movl	-44(%rbp), %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, sea(%rip)
	movl	$0, -28(%rbp)
	jmp	.L2
.L3:
	movl	-44(%rbp), %eax
	cltq
	movq	matrix(%rip), %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	salq	$3, %rdx
	leaq	(%rcx,%rdx), %rbx
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, (%rbx)
	addl	$1, -28(%rbp)
.L2:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L3
	movl	$0, -28(%rbp)
	jmp	.L4
.L5:
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	matrix(%rip), %rdx
	movl	-36(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-32(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	addl	$1, -28(%rbp)
.L4:
	movl	-40(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L5
	movl	$0, -28(%rbp)
	jmp	.L6
.L10:
	movq	seq(%rip), %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	cycle_path
.L7:
	movl	eflag(%rip), %eax
	testl	%eax, %eax
	jne	.L17
	addl	$1, -28(%rbp)
.L6:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L10
	jmp	.L9
.L17:
	nop
.L9:
	movl	eflag(%rip), %eax
	testl	%eax, %eax
	je	.L11
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L12
.L11:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L12:
	movl	$0, -28(%rbp)
	jmp	.L13
.L14:
	movq	matrix(%rip), %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	free@PLT
	addl	$1, -28(%rbp)
.L13:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L14
	movq	matrix(%rip), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	seq(%rip), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	sea(%rip), %rax
	movq	%rax, %rdi
	call	free@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	cycle_path
	.type	cycle_path, @function
cycle_path:
.LFB7:
	.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	eflag(%rip), %eax
	testl	%eax, %eax
	jne	.L25
	movl	counter(%rip), %eax
	addl	$1, %eax
	movl	%eax, counter(%rip)
	movq	seq(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	movl	counter(%rip), %eax
	movl	%eax, (%rdx)
	movq	sea(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	movl	$0, -4(%rbp)
	jmp	.L20
.L24:
	movq	matrix(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L26
	movq	seq(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L23
	movl	-24(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	cycle_path
	jmp	.L22
.L23:
	movq	seq(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	seq(%rip), %rcx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jge	.L22
	movq	sea(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L22
	movl	$1, eflag(%rip)
	jmp	.L22
.L26:
	nop
.L22:
	addl	$1, -4(%rbp)
.L20:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L24
	movq	sea(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
.L25:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cycle_path, .-cycle_path
	.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	matrix
	.bss
	.align 8
	.type	matrix, @object
	.size	matrix, 8
matrix:
	.zero	8
	.globl	seq
	.align 8
	.type	seq, @object
	.size	seq, 8
seq:
	.zero	8
	.globl	sea
	.align 8
	.type	sea, @object
	.size	sea, 8
sea:
	.zero	8
	.globl	eflag
	.align 4
	.type	eflag, @object
	.size	eflag, 4
eflag:
	.zero	4
	.globl	counter
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"1"
.LC2:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, matrix(%rip)
	movl	-44(%rbp), %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, seq(%rip)
	movl	-44(%rbp), %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, sea(%rip)
	movl	$0, -28(%rbp)
	jmp	.L2
.L3:
	movl	-44(%rbp), %eax
	cltq
	movq	matrix(%rip), %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	salq	$3, %rdx
	leaq	(%rcx,%rdx), %rbx
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, (%rbx)
	addl	$1, -28(%rbp)
.L2:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L3
	movl	$0, -28(%rbp)
	jmp	.L4
.L5:
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	matrix(%rip), %rdx
	movl	-36(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-32(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	addl	$1, -28(%rbp)
.L4:
	movl	-40(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L5
	movl	$0, -28(%rbp)
	jmp	.L6
.L10:
	movq	seq(%rip), %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-44(%rbp), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	cycle_path
.L7:
	movl	eflag(%rip), %eax
	testl	%eax, %eax
	jne	.L17
	addl	$1, -28(%rbp)
.L6:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L10
	jmp	.L9
.L17:
	nop
.L9:
	movl	eflag(%rip), %eax
	testl	%eax, %eax
	je	.L11
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L12
.L11:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L12:
	movl	$0, -28(%rbp)
	jmp	.L13
.L14:
	movq	matrix(%rip), %rdx
	movl	-28(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	free@PLT
	addl	$1, -28(%rbp)
.L13:
	movl	-44(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L14
	movq	matrix(%rip), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	seq(%rip), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	sea(%rip), %rax
	movq	%rax, %rdi
	call	free@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	cycle_path
	.type	cycle_path, @function
cycle_path:
.LFB7:
	.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	eflag(%rip), %eax
	testl	%eax, %eax
	jne	.L25
	movl	counter(%rip), %eax
	addl	$1, %eax
	movl	%eax, counter(%rip)
	movq	seq(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	movl	counter(%rip), %eax
	movl	%eax, (%rdx)
	movq	sea(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	movl	$0, -4(%rbp)
	jmp	.L20
.L24:
	movq	matrix(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L26
	movq	seq(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	.L23
	movl	-24(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	cycle_path
	jmp	.L22
.L23:
	movq	seq(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movq	seq(%rip), %rcx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jge	.L22
	movq	sea(%rip), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L22
	movl	$1, eflag(%rip)
	jmp	.L22
.L26:
	nop
.L22:
	addl	$1, -4(%rbp)
.L20:
	movl	-4(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jl	.L24
	movq	sea(%rip), %rdx
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	$0, (%rax)
.L25:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cycle_path, .-cycle_path
	.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:
