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>
#include <string.h>
#include <unistd.h>


#define MAX(a,b) (((a)>(b))?(a):(b))

typedef struct s_path
{
	int start;
	int end;
	int len;
} t_path;

typedef struct s_vert
{
	int name;
	int *list;
	int num;
} t_vert;

int len_of_vert(int i, t_vert *vs, int *flag, int *dp)
{
	if (vs[i].num == 0)
		return (0);
	if(flag[i] != 0)
	{
		return (dp[i]);
	}
	flag[i] = 1;
	int max = 0;
	int tmp = 0;
	int index = 0;
	while (index < vs[i].num)
	{
		tmp = len_of_vert(vs[i].list[index], vs, flag, dp);
		if (max < tmp)
			max = tmp;
		index++;
	}
	dp[i] = max + 1;
	return (max + 1);
}

int main(void)
{
	int n, m;

	scanf ("%d %d",&n, &m);
	t_vert vs[n+1];
	int x[m],y[m];
	int index = 0;
	int flag[n+1];
	int dp[n+1];
	while (index < n + 1)
	{
		vs[index].num = 0;
		flag[index] = 0;
		dp[index] = 0;
		index++;
	}
	index = 0;
	while (index < m)
	{
		scanf("%d %d",&(x[index]),&(y[index]));
		vs[x[index]].num = vs[x[index]].num + 1;
		index++;
	}
	index = 0;
	while (index < n+1)
	{
		vs[index].list = (int *)malloc(sizeof(int)*(vs[index].num));
		index++;
	}
	int i = 0;
	int j = 0;
	int k[n+1];
	while (j < n+1)
	{
		k[j] = 0;
		j++;
	}
	//printf("AAA\n");
	i = 0;
	while (i < m)
	{
		//printf("i:%d\n",i);
		//printf("x[i];%d\n",x[i]);
		//printf("k[x[i]];%d\n",k[x[i]]);
		//printf("vs[x[i]].num;%d\n",vs[x[i]].num);
		if (vs[x[i]].num > k[x[i]])
		{
			vs[x[i]].list[k[x[i]]] = y[i];
			k[x[i]] = k[x[i]] + 1;
		}
		i++;
	}
	//printf("BBB\n");
	i = 1;
	j = 0;
	int max = 0;
	int p_len = 0;
	i = 0;
	while (i < n+1)
	{
		p_len = len_of_vert(i, vs, flag, dp);
		max = MAX(p_len,max);
		//printf("i;%d\n",i);
		i++;
	}
	printf("%d\n",max);
	return (0);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	len_of_vert
	.type	len_of_vert, @function
len_of_vert:
.LFB6:
	.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, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	16(%rax), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L4
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	movl	$0, -12(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L5
.L7:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rsi
	movl	%eax, %edi
	call	len_of_vert
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L6
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
.L6:
	addl	$1, -8(%rbp)
.L5:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	16(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L7
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	movl	-12(%rbp), %eax
	addl	$1, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	len_of_vert, .-len_of_vert
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$312, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-176(%rbp), %rdx
	leaq	-180(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-180(%rbp), %eax
	leal	1(%rax), %esi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -152(%rbp)
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$192, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rcx
	movl	$192, %eax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$192, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rcx
	movl	$192, %eax
	mulq	%r14
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L9:
	cmpq	%rcx, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L10:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L11
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L11:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -144(%rbp)
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L12:
	cmpq	%rcx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L13:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L14
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L14:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -128(%rbp)
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L15:
	cmpq	%rcx, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L17
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L17:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -112(%rbp)
	movl	$0, -172(%rbp)
	movl	-180(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%edx, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L18:
	cmpq	%rdx, %rsp
	je	.L19
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L18
.L19:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L20
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L20:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -96(%rbp)
	movl	-180(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -320(%rbp)
	movq	$0, -312(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L21:
	cmpq	%rdx, %rsp
	je	.L22
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L21
.L22:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L23
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L23:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	jmp	.L24
.L25:
	movq	-144(%rbp), %rcx
	movl	-172(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	$0, (%rax)
	movq	-96(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	movq	-80(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -172(%rbp)
.L24:
	movl	-180(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jle	.L25
	movl	$0, -172(%rbp)
	jmp	.L26
.L27:
	movl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-112(%rbp), %rax
	addq	%rax, %rdx
	movl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-128(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-128(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-144(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	(%rax), %ecx
	movq	-128(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	$1, %ecx
	movq	-144(%rbp), %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$16, %rax
	movl	%ecx, (%rax)
	addl	$1, -172(%rbp)
.L26:
	movl	-176(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jl	.L27
	movl	$0, -172(%rbp)
	jmp	.L28
.L29:
	movq	-144(%rbp), %rcx
	movl	-172(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	(%rax), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movq	-144(%rbp), %rsi
	movl	-172(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movq	%rcx, (%rax)
	addl	$1, -172(%rbp)
.L28:
	movl	-180(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jle	.L29
	movl	$0, -168(%rbp)
	movl	$0, -164(%rbp)
	movl	-180(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -336(%rbp)
	movq	$0, -328(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -352(%rbp)
	movq	$0, -344(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L30:
	cmpq	%rdx, %rsp
	je	.L31
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L30
.L31:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L32
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L32:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	jmp	.L33
.L34:
	movq	-64(%rbp), %rax
	movl	-164(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -164(%rbp)
.L33:
	movl	-180(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jle	.L34
	movl	$0, -168(%rbp)
	jmp	.L35
.L37:
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-144(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	(%rax), %ecx
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jle	.L36
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-144(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rcx
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rcx
	movq	-112(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rcx)
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	addl	$1, %ecx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L36:
	addl	$1, -168(%rbp)
.L35:
	movl	-176(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L37
	movl	$1, -168(%rbp)
	movl	$0, -164(%rbp)
	movl	$0, -160(%rbp)
	movl	$0, -156(%rbp)
	movl	$0, -168(%rbp)
	jmp	.L38
.L39:
	movq	-80(%rbp), %rcx
	movq	-96(%rbp), %rdx
	movq	-144(%rbp), %rsi
	movl	-168(%rbp), %eax
	movl	%eax, %edi
	call	len_of_vert
	movl	%eax, -156(%rbp)
	movl	-160(%rbp), %edx
	movl	-156(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -160(%rbp)
	addl	$1, -168(%rbp)
.L38:
	movl	-180(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jle	.L39
	movl	-160(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.globl	len_of_vert
	.type	len_of_vert, @function
len_of_vert:
.LFB63:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	leaq	(%rax,%rax,2), %rdx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rcx, %r13
	leaq	(%rsi,%rdx,8), %rcx
	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	$312, %rsp
	.cfi_def_cfa_offset 368
	movl	16(%rcx), %r8d
	movq	%rcx, 272(%rsp)
	testl	%r8d, %r8d
	je	.L1
	salq	$2, %rax
	leaq	(%r14,%rax), %rdx
	addq	%r13, %rax
	movl	(%rdx), %ecx
	movq	%rax, 296(%rsp)
	movl	%ecx, 244(%rsp)
	testl	%ecx, %ecx
	jne	.L85
	movq	272(%rsp), %rax
	movl	$1, (%rdx)
	movl	$1, %r8d
	movl	16(%rax), %edi
	testl	%edi, %edi
	jle	.L4
	movq	8(%rax), %rax
	movq	%rsi, %r15
	movq	$0, 208(%rsp)
	movq	%rax, 288(%rsp)
	movq	%r13, %rax
	movq	%r14, %r13
	movq	%rax, %r14
.L37:
	movq	208(%rsp), %rcx
	movq	288(%rsp), %rax
	movslq	(%rax,%rcx,4), %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%r15,%rdx,8), %rcx
	movl	16(%rcx), %edx
	movq	%rcx, 248(%rsp)
	testl	%edx, %edx
	je	.L5
	salq	$2, %rax
	leaq	0(%r13,%rax), %rdx
	addq	%r14, %rax
	movl	(%rdx), %ecx
	movq	%rax, 280(%rsp)
	movl	%ecx, 240(%rsp)
	testl	%ecx, %ecx
	jne	.L86
	movq	248(%rsp), %rax
	movl	$1, (%rdx)
	movl	$1, %edx
	movl	16(%rax), %edi
	testl	%edi, %edi
	jle	.L7
	movq	$0, 168(%rsp)
	movq	8(%rax), %rax
	movq	%rax, 264(%rsp)
	movq	%r14, %rax
	movq	%r13, %r14
	movq	%rax, %r13
.L36:
	movq	168(%rsp), %rcx
	movq	264(%rsp), %rax
	movslq	(%rax,%rcx,4), %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%r15,%rdx,8), %rcx
	movl	16(%rcx), %edx
	movq	%rcx, 216(%rsp)
	testl	%edx, %edx
	je	.L8
	salq	$2, %rax
	leaq	(%r14,%rax), %rdx
	addq	%r13, %rax
	movl	(%rdx), %ecx
	movq	%rax, 256(%rsp)
	movl	%ecx, 180(%rsp)
	testl	%ecx, %ecx
	jne	.L87
	movq	216(%rsp), %rax
	movl	$1, (%rdx)
	movl	$1, %edx
	movl	16(%rax), %edi
	testl	%edi, %edi
	jle	.L10
	movq	$0, 136(%rsp)
	movq	8(%rax), %rax
	movq	%rax, 232(%rsp)
	movq	%r13, %rax
	movq	%r14, %r13
	movq	%rax, %r14
.L35:
	movq	136(%rsp), %rcx
	movq	232(%rsp), %rax
	movslq	(%rax,%rcx,4), %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%r15,%rdx,8), %rcx
	movl	16(%rcx), %edx
	movq	%rcx, 184(%rsp)
	testl	%edx, %edx
	je	.L11
	salq	$2, %rax
	leaq	0(%r13,%rax), %rdx
	addq	%r14, %rax
	movl	(%rdx), %ecx
	movq	%rax, 224(%rsp)
	movl	%ecx, 176(%rsp)
	testl	%ecx, %ecx
	jne	.L88
	movq	184(%rsp), %rax
	movl	$1, (%rdx)
	movl	$1, %edx
	movl	16(%rax), %edi
	testl	%edi, %edi
	jle	.L13
	movq	$0, 88(%rsp)
	movq	8(%rax), %rax
	movq	%rax, 200(%rsp)
	movq	%r14, %rax
	movq	%r13, %r14
	movq	%rax, %r13
.L34:
	movq	88(%rsp), %rcx
	movq	200(%rsp), %rax
	movslq	(%rax,%rcx,4), %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%r15,%rdx,8), %rcx
	movl	16(%rcx), %edx
	movq	%rcx, 144(%rsp)
	testl	%edx, %edx
	je	.L14
	salq	$2, %rax
	leaq	(%r14,%rax), %rdx
	addq	%r13, %rax
	movl	(%rdx), %ecx
	movq	%rax, 192(%rsp)
	movl	%ecx, 96(%rsp)
	testl	%ecx, %ecx
	jne	.L89
	movq	144(%rsp), %rax
	movl	$1, (%rdx)
	movl	$1, %edx
	movl	16(%rax), %edi
	testl	%edi, %edi
	jle	.L16
	movq	$0, 48(%rsp)
	movq	8(%rax), %rax
	movq	%rax, 160(%rsp)
	movq	%r13, %rax
	movq	%r14, %r13
	movq	%rax, %r14
.L33:
	movq	48(%rsp), %rcx
	movq	160(%rsp), %rax
	movslq	(%rax,%rcx,4), %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%r15,%rdx,8), %rcx
	movl	16(%rcx), %edx
	movq	%rcx, 112(%rsp)
	testl	%edx, %edx
	je	.L17
	salq	$2, %rax
	leaq	0(%r13,%rax), %rdx
	addq	%r14, %rax
	movl	(%rdx), %ecx
	movq	%rax, 152(%rsp)
	movl	%ecx, 60(%rsp)
	testl	%ecx, %ecx
	jne	.L90
	movq	112(%rsp), %rax
	movl	$1, (%rdx)
	movl	$1, %edx
	movl	16(%rax), %edi
	testl	%edi, %edi
	jle	.L19
	movq	$0, 16(%rsp)
	movq	8(%rax), %rax
	movq	%r14, %rcx
	movq	%r13, %r14
	movq	%rax, 128(%rsp)
.L32:
	movq	16(%rsp), %rdx
	movq	128(%rsp), %rax
	movslq	(%rax,%rdx,4), %rax
	leaq	(%rax,%rax,2), %r8
	leaq	(%r15,%r8,8), %rdx
	movl	16(%rdx), %r8d
	movq	%rdx, 64(%rsp)
	testl	%r8d, %r8d
	je	.L20
	salq	$2, %rax
	leaq	(%r14,%rax), %r8
	addq	%rcx, %rax
	movl	(%r8), %esi
	movq	%rax, 120(%rsp)
	movl	%esi, 56(%rsp)
	testl	%esi, %esi
	jne	.L91
	movl	$1, (%r8)
	movl	16(%rdx), %eax
	movl	$1, %r8d
	testl	%eax, %eax
	jle	.L22
	movq	8(%rdx), %rdx
	movq	$0, (%rsp)
	movq	%rdx, 80(%rsp)
	movq	%r14, %rdx
.L31:
	movq	80(%rsp), %rsi
	movq	(%rsp), %rbx
	movslq	(%rsi,%rbx,4), %rdi
	leaq	(%rdi,%rdi,2), %r8
	leaq	(%r15,%r8,8), %rsi
	movl	16(%rsi), %r9d
	movq	%rsi, 24(%rsp)
	testl	%r9d, %r9d
	je	.L23
	salq	$2, %rdi
	leaq	(%rdx,%rdi), %r9
	leaq	(%rcx,%rdi), %rsi
	movl	(%r9), %r8d
	movq	%rsi, 72(%rsp)
	testl	%r8d, %r8d
	jne	.L92
	movq	24(%rsp), %rsi
	movl	$1, (%r9)
	movl	$1, %r9d
	movl	16(%rsi), %eax
	testl	%eax, %eax
	jle	.L25
	movq	8(%rsi), %rbx
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	movl	%r8d, %r15d
	movq	%rbx, 40(%rsp)
.L30:
	movq	40(%rsp), %rbx
	movslq	(%rbx,%r14,4), %rbx
	leaq	(%rbx,%rbx,2), %rdi
	leaq	(%rsi,%rdi,8), %r13
	movl	16(%r13), %edi
	testl	%edi, %edi
	je	.L26
	salq	$2, %rbx
	leaq	(%rdx,%rbx), %rdi
	addq	%rcx, %rbx
	movl	(%rdi), %r12d
	movq	%rbx, 32(%rsp)
	testl	%r12d, %r12d
	jne	.L93
	movl	$1, (%rdi)
	movl	16(%r13), %eax
	movl	$1, %edi
	testl	%eax, %eax
	jle	.L28
	movl	%r15d, 100(%rsp)
	movq	8(%r13), %rbx
	xorl	%ebp, %ebp
	movq	%rdx, %r15
	movq	%r13, 8(%rsp)
	movq	%rcx, %r13
	movq	%r14, 104(%rsp)
	movq	%rsi, %r14
.L29:
	movl	(%rbx,%rbp,4), %edi
	movq	%r13, %rcx
	movq	%r15, %rdx
	movq	%r14, %rsi
	call	len_of_vert
	cmpl	%eax, %r12d
	cmovl	%eax, %r12d
	movq	8(%rsp), %rax
	addq	$1, %rbp
	cmpl	%ebp, 16(%rax)
	jg	.L29
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	104(%rsp), %r14
	movl	100(%rsp), %r15d
	movq	%r13, %rcx
	leal	1(%r12), %edi
.L28:
	movq	32(%rsp), %rax
	movl	%edi, (%rax)
	movq	24(%rsp), %rax
	movl	16(%rax), %eax
.L26:
	cmpl	%edi, %r15d
	cmovl	%edi, %r15d
	addq	$1, %r14
	cmpl	%r14d, %eax
	jg	.L30
	movl	%r15d, %r8d
	movq	%rsi, %r15
	leal	1(%r8), %r9d
.L25:
	movq	72(%rsp), %rax
	movl	%r9d, (%rax)
	movq	64(%rsp), %rax
	movl	16(%rax), %eax
.L23:
	movl	56(%rsp), %ebx
	cmpl	%r9d, %ebx
	cmovge	%ebx, %r9d
	addq	$1, (%rsp)
	movq	(%rsp), %rsi
	movl	%r9d, 56(%rsp)
	cmpl	%esi, %eax
	jg	.L31
	movl	%r9d, %r8d
	movq	%rdx, %r14
	addl	$1, %r8d
.L22:
	movq	120(%rsp), %rax
	movl	%r8d, (%rax)
	movq	112(%rsp), %rax
	movl	16(%rax), %edi
.L20:
	movl	60(%rsp), %eax
	cmpl	%r8d, %eax
	cmovge	%eax, %r8d
	addq	$1, 16(%rsp)
	movq	16(%rsp), %rax
	movl	%r8d, 60(%rsp)
	cmpl	%eax, %edi
	jg	.L32
	movl	%r8d, %edx
	movq	%r14, %r13
	movq	%rcx, %r14
	addl	$1, %edx
.L19:
	movq	152(%rsp), %rax
	movl	%edx, (%rax)
	movq	144(%rsp), %rax
	movl	16(%rax), %edi
.L17:
	movl	96(%rsp), %eax
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	addq	$1, 48(%rsp)
	movq	48(%rsp), %rax
	movl	%edx, 96(%rsp)
	cmpl	%eax, %edi
	jg	.L33
	movq	%r14, %rax
	addl	$1, %edx
	movq	%r13, %r14
	movq	%rax, %r13
.L16:
	movq	192(%rsp), %rax
	movl	%edx, (%rax)
	movq	184(%rsp), %rax
	movl	16(%rax), %edi
.L14:
	movl	176(%rsp), %eax
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	addq	$1, 88(%rsp)
	movq	88(%rsp), %rax
	movl	%edx, 176(%rsp)
	cmpl	%eax, %edi
	jg	.L34
	movq	%r13, %rax
	addl	$1, %edx
	movq	%r14, %r13
	movq	%rax, %r14
.L13:
	movq	224(%rsp), %rax
	movl	%edx, (%rax)
	movq	216(%rsp), %rax
	movl	16(%rax), %edi
.L11:
	movl	180(%rsp), %eax
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	addq	$1, 136(%rsp)
	movq	136(%rsp), %rax
	movl	%edx, 180(%rsp)
	cmpl	%eax, %edi
	jg	.L35
	movq	%r14, %rax
	addl	$1, %edx
	movq	%r13, %r14
	movq	%rax, %r13
.L10:
	movq	256(%rsp), %rax
	movl	%edx, (%rax)
	movq	248(%rsp), %rax
	movl	16(%rax), %edi
.L8:
	movl	240(%rsp), %eax
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	addq	$1, 168(%rsp)
	movq	168(%rsp), %rax
	movl	%edx, 240(%rsp)
	cmpl	%eax, %edi
	jg	.L36
	movq	%r13, %rax
	addl	$1, %edx
	movq	%r14, %r13
	movq	%rax, %r14
.L7:
	movq	280(%rsp), %rax
	movl	%edx, (%rax)
	movq	272(%rsp), %rax
	movl	16(%rax), %edi
.L5:
	movl	244(%rsp), %eax
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	addq	$1, 208(%rsp)
	movq	208(%rsp), %rax
	movl	%edx, 244(%rsp)
	cmpl	%eax, %edi
	jg	.L37
	movl	%edx, %r8d
	addl	$1, %r8d
.L4:
	movq	296(%rsp), %rax
	movl	%r8d, (%rax)
.L1:
	addq	$312, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r8d, %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
.L85:
	.cfi_restore_state
	movl	(%rax), %r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L93:
	movl	(%rbx), %edi
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L92:
	movl	(%rsi), %r9d
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L91:
	movl	(%rax), %r8d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L90:
	movl	(%rax), %edx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L89:
	movl	(%rax), %edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L88:
	movl	(%rax), %edx
	jmp	.L11
.L87:
	movl	(%rax), %edx
	jmp	.L8
.L86:
	movl	(%rax), %edx
	jmp	.L5
	.cfi_endproc
.LFE63:
	.size	len_of_vert, .-len_of_vert
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-64(%rbp), %rcx
	movq	%rsp, %rdi
	leal	1(%rcx), %eax
	cltq
	leaq	(%rax,%rax,2), %rdx
	leaq	15(,%rdx,8), %rdx
	movq	%rdx, %rsi
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rsi
	cmpq	%rdi, %rsp
	je	.L96
.L175:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L175
.L96:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	jne	.L176
.L97:
	movslq	-60(%rbp), %rdx
	movq	%rsp, %rdi
	movq	%rsp, %rbx
	movq	%rdx, %r14
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %r9
	movq	%rdx, %rsi
	andq	$-4096, %r9
	andq	$-16, %rsi
	subq	%r9, %rdi
.L98:
	cmpq	%rdi, %rsp
	je	.L99
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L98
.L176:
	orq	$0, -8(%rsp,%rsi)
	jmp	.L97
.L99:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	jne	.L177
.L100:
	movq	%rsp, -88(%rbp)
	movq	%rdx, %rsi
	movq	%rsp, %rdi
	andq	$-4096, %rdx
	andq	$-16, %rsi
	subq	%rdx, %rdi
.L101:
	cmpq	%rdi, %rsp
	je	.L102
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L101
.L177:
	orq	$0, -8(%rsp,%rsi)
	jmp	.L100
.L102:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	je	.L103
	orq	$0, -8(%rsp,%rsi)
.L103:
	leaq	15(,%rax,4), %rax
	movq	%rsp, -96(%rbp)
	movq	%rsp, %rsi
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rsi
.L104:
	cmpq	%rsi, %rsp
	je	.L105
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L104
.L105:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L106
	orq	$0, -8(%rsp,%rdx)
.L106:
	movq	%rax, %rdx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rsi
.L107:
	cmpq	%rsi, %rsp
	je	.L108
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L107
.L108:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L109
	orq	$0, -8(%rsp,%rax)
.L109:
	movq	%rsp, %r13
	testl	%ecx, %ecx
	js	.L114
	leaq	(%rcx,%rcx,2), %rdx
	leaq	16(%rbx), %rax
	leaq	40(%rbx,%rdx,8), %rdx
	.p2align 4,,10
	.p2align 3
.L113:
	movl	$0, (%rax)
	addq	$24, %rax
	cmpq	%rax, %rdx
	jne	.L113
	leaq	4(,%rcx,4), %rdx
	xorl	%esi, %esi
	movq	%r12, %rdi
	movq	%rdx, -72(%rbp)
	call	memset@PLT
	movq	-72(%rbp), %rdx
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	memset@PLT
.L114:
	movq	-88(%rbp), %rcx
	movq	-96(%rbp), %rdx
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	jle	.L178
	.p2align 4,,10
	.p2align 3
.L115:
	movq	%rcx, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rdx, -80(%rbp)
	movq	%rcx, -72(%rbp)
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rcx
	movq	-80(%rbp), %rdx
	movl	-60(%rbp), %r14d
	movslq	(%rcx), %rax
	addq	$4, %rdx
	addq	$4, %rcx
	leaq	(%rax,%rax,2), %rax
	addl	$1, 16(%rbx,%rax,8)
	cmpl	%r15d, %r14d
	jg	.L115
	movslq	-64(%rbp), %rax
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	%rcx, -80(%rbp)
	testl	%eax, %eax
	js	.L116
.L138:
	movq	%rax, -104(%rbp)
	leaq	(%rax,%rax,2), %rax
	leaq	8(%rbx), %r15
	leaq	32(%rbx,%rax,8), %rax
	movq	%rax, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L117:
	movslq	8(%r15), %rdi
	addq	$24, %r15
	salq	$2, %rdi
	call	malloc@PLT
	movq	%rax, -24(%r15)
	cmpq	%r15, -72(%rbp)
	jne	.L117
	movq	-80(%rbp), %rax
	movq	%rsp, %rcx
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L130:
	cmpq	%rcx, %rsp
	je	.L131
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L130
.L131:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L132
	orq	$0, -8(%rsp,%rdx)
.L132:
	movq	-104(%rbp), %rax
	movq	%rsp, %rdi
	xorl	%esi, %esi
	leaq	4(,%rax,4), %rdx
	call	memset@PLT
	movq	%rax, %rdi
	testl	%r14d, %r14d
	jle	.L123
.L133:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L122:
	movq	-88(%rbp), %r8
	movslq	(%r8,%rax,4), %rdx
	movslq	(%rdi,%rdx,4), %rcx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,8), %rdx
	cmpl	%ecx, 16(%rdx)
	jle	.L119
	movq	-96(%rbp), %rsi
	movq	8(%rdx), %rdx
	movl	(%rsi,%rax,4), %esi
	movl	%esi, (%rdx,%rcx,4)
	movslq	(%r8,%rax,4), %rdx
	addq	$1, %rax
	movl	-60(%rbp), %r14d
	addl	$1, (%rdi,%rdx,4)
	cmpl	%eax, %r14d
	jg	.L122
.L121:
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	js	.L137
.L123:
	movl	$0, -80(%rbp)
	leaq	16(%rbx), %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L129:
	movl	(%r15), %eax
	testl	%eax, %eax
	je	.L125
	movl	(%r12,%r14,4), %r11d
	testl	%r11d, %r11d
	jne	.L179
	movl	$1, (%r12,%r14,4)
	testl	%eax, %eax
	jle	.L140
	movq	-8(%r15), %r9
	xorl	%r10d, %r10d
.L128:
	movl	(%r9,%r10,4), %edi
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%r9, -72(%rbp)
	call	len_of_vert
	movq	-72(%rbp), %r9
	cmpl	%eax, %r11d
	cmovl	%eax, %r11d
	addq	$1, %r10
	cmpl	%r10d, (%r15)
	jg	.L128
	leal	1(%r11), %eax
.L127:
	movl	%eax, 0(%r13,%r14,4)
.L125:
	movl	-80(%rbp), %esi
	cmpl	%eax, %esi
	cmovge	%esi, %eax
	addq	$1, %r14
	addq	$24, %r15
	movl	%eax, -80(%rbp)
	cmpl	%r14d, -64(%rbp)
	jge	.L129
.L124:
	movl	-80(%rbp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L180
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L119:
	.cfi_restore_state
	addq	$1, %rax
	cmpl	%eax, %r14d
	jg	.L122
	jmp	.L121
	.p2align 4,,10
	.p2align 3
.L179:
	movl	0(%r13,%r14,4), %eax
	jmp	.L125
	.p2align 4,,10
	.p2align 3
.L140:
	movl	$1, %eax
	jmp	.L127
.L178:
	movslq	-64(%rbp), %rax
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	%rcx, -80(%rbp)
	testl	%eax, %eax
	jns	.L138
.L137:
	movl	$0, -80(%rbp)
	jmp	.L124
.L116:
	movq	-80(%rbp), %rax
	movq	%rsp, %rdx
	addq	$15, %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	andq	$-16, %rcx
	subq	%rax, %rdx
.L134:
	cmpq	%rdx, %rsp
	je	.L135
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L134
.L135:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L136
	orq	$0, -8(%rsp,%rcx)
.L136:
	movq	%rsp, %rdi
	testl	%r14d, %r14d
	jg	.L133
	jmp	.L137
.L180:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.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:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	len_of_vert
	.type	len_of_vert, @function
len_of_vert:
.LFB63:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdx, %r14
	leaq	(%rax,%rax,2), %rdx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rcx, %r13
	leaq	(%rsi,%rdx,8), %rcx
	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	$312, %rsp
	.cfi_def_cfa_offset 368
	movl	16(%rcx), %r8d
	movq	%rcx, 272(%rsp)
	testl	%r8d, %r8d
	je	.L1
	salq	$2, %rax
	leaq	(%r14,%rax), %rdx
	addq	%r13, %rax
	movl	(%rdx), %ecx
	movq	%rax, 296(%rsp)
	movl	%ecx, 244(%rsp)
	testl	%ecx, %ecx
	jne	.L85
	movq	272(%rsp), %rax
	movl	$1, (%rdx)
	movl	$1, %r8d
	movl	16(%rax), %edi
	testl	%edi, %edi
	jle	.L4
	movq	8(%rax), %rax
	movq	%rsi, %r15
	movq	$0, 208(%rsp)
	movq	%rax, 288(%rsp)
	movq	%r13, %rax
	movq	%r14, %r13
	movq	%rax, %r14
.L37:
	movq	208(%rsp), %rcx
	movq	288(%rsp), %rax
	movslq	(%rax,%rcx,4), %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%r15,%rdx,8), %rcx
	movl	16(%rcx), %edx
	movq	%rcx, 248(%rsp)
	testl	%edx, %edx
	je	.L5
	salq	$2, %rax
	leaq	0(%r13,%rax), %rdx
	addq	%r14, %rax
	movl	(%rdx), %ecx
	movq	%rax, 280(%rsp)
	movl	%ecx, 240(%rsp)
	testl	%ecx, %ecx
	jne	.L86
	movq	248(%rsp), %rax
	movl	$1, (%rdx)
	movl	$1, %edx
	movl	16(%rax), %edi
	testl	%edi, %edi
	jle	.L7
	movq	$0, 168(%rsp)
	movq	8(%rax), %rax
	movq	%rax, 264(%rsp)
	movq	%r14, %rax
	movq	%r13, %r14
	movq	%rax, %r13
.L36:
	movq	168(%rsp), %rcx
	movq	264(%rsp), %rax
	movslq	(%rax,%rcx,4), %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%r15,%rdx,8), %rcx
	movl	16(%rcx), %edx
	movq	%rcx, 216(%rsp)
	testl	%edx, %edx
	je	.L8
	salq	$2, %rax
	leaq	(%r14,%rax), %rdx
	addq	%r13, %rax
	movl	(%rdx), %ecx
	movq	%rax, 256(%rsp)
	movl	%ecx, 180(%rsp)
	testl	%ecx, %ecx
	jne	.L87
	movq	216(%rsp), %rax
	movl	$1, (%rdx)
	movl	$1, %edx
	movl	16(%rax), %edi
	testl	%edi, %edi
	jle	.L10
	movq	$0, 136(%rsp)
	movq	8(%rax), %rax
	movq	%rax, 232(%rsp)
	movq	%r13, %rax
	movq	%r14, %r13
	movq	%rax, %r14
.L35:
	movq	136(%rsp), %rcx
	movq	232(%rsp), %rax
	movslq	(%rax,%rcx,4), %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%r15,%rdx,8), %rcx
	movl	16(%rcx), %edx
	movq	%rcx, 184(%rsp)
	testl	%edx, %edx
	je	.L11
	salq	$2, %rax
	leaq	0(%r13,%rax), %rdx
	addq	%r14, %rax
	movl	(%rdx), %ecx
	movq	%rax, 224(%rsp)
	movl	%ecx, 176(%rsp)
	testl	%ecx, %ecx
	jne	.L88
	movq	184(%rsp), %rax
	movl	$1, (%rdx)
	movl	$1, %edx
	movl	16(%rax), %edi
	testl	%edi, %edi
	jle	.L13
	movq	$0, 88(%rsp)
	movq	8(%rax), %rax
	movq	%rax, 200(%rsp)
	movq	%r14, %rax
	movq	%r13, %r14
	movq	%rax, %r13
.L34:
	movq	88(%rsp), %rcx
	movq	200(%rsp), %rax
	movslq	(%rax,%rcx,4), %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%r15,%rdx,8), %rcx
	movl	16(%rcx), %edx
	movq	%rcx, 144(%rsp)
	testl	%edx, %edx
	je	.L14
	salq	$2, %rax
	leaq	(%r14,%rax), %rdx
	addq	%r13, %rax
	movl	(%rdx), %ecx
	movq	%rax, 192(%rsp)
	movl	%ecx, 96(%rsp)
	testl	%ecx, %ecx
	jne	.L89
	movq	144(%rsp), %rax
	movl	$1, (%rdx)
	movl	$1, %edx
	movl	16(%rax), %edi
	testl	%edi, %edi
	jle	.L16
	movq	$0, 48(%rsp)
	movq	8(%rax), %rax
	movq	%rax, 160(%rsp)
	movq	%r13, %rax
	movq	%r14, %r13
	movq	%rax, %r14
.L33:
	movq	48(%rsp), %rcx
	movq	160(%rsp), %rax
	movslq	(%rax,%rcx,4), %rax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%r15,%rdx,8), %rcx
	movl	16(%rcx), %edx
	movq	%rcx, 112(%rsp)
	testl	%edx, %edx
	je	.L17
	salq	$2, %rax
	leaq	0(%r13,%rax), %rdx
	addq	%r14, %rax
	movl	(%rdx), %ecx
	movq	%rax, 152(%rsp)
	movl	%ecx, 60(%rsp)
	testl	%ecx, %ecx
	jne	.L90
	movq	112(%rsp), %rax
	movl	$1, (%rdx)
	movl	$1, %edx
	movl	16(%rax), %edi
	testl	%edi, %edi
	jle	.L19
	movq	$0, 16(%rsp)
	movq	8(%rax), %rax
	movq	%r14, %rcx
	movq	%r13, %r14
	movq	%rax, 128(%rsp)
.L32:
	movq	16(%rsp), %rdx
	movq	128(%rsp), %rax
	movslq	(%rax,%rdx,4), %rax
	leaq	(%rax,%rax,2), %r8
	leaq	(%r15,%r8,8), %rdx
	movl	16(%rdx), %r8d
	movq	%rdx, 64(%rsp)
	testl	%r8d, %r8d
	je	.L20
	salq	$2, %rax
	leaq	(%r14,%rax), %r8
	addq	%rcx, %rax
	movl	(%r8), %esi
	movq	%rax, 120(%rsp)
	movl	%esi, 56(%rsp)
	testl	%esi, %esi
	jne	.L91
	movl	$1, (%r8)
	movl	16(%rdx), %eax
	movl	$1, %r8d
	testl	%eax, %eax
	jle	.L22
	movq	8(%rdx), %rdx
	movq	$0, (%rsp)
	movq	%rdx, 80(%rsp)
	movq	%r14, %rdx
.L31:
	movq	80(%rsp), %rsi
	movq	(%rsp), %rbx
	movslq	(%rsi,%rbx,4), %rdi
	leaq	(%rdi,%rdi,2), %r8
	leaq	(%r15,%r8,8), %rsi
	movl	16(%rsi), %r9d
	movq	%rsi, 24(%rsp)
	testl	%r9d, %r9d
	je	.L23
	salq	$2, %rdi
	leaq	(%rdx,%rdi), %r9
	leaq	(%rcx,%rdi), %rsi
	movl	(%r9), %r8d
	movq	%rsi, 72(%rsp)
	testl	%r8d, %r8d
	jne	.L92
	movq	24(%rsp), %rsi
	movl	$1, (%r9)
	movl	$1, %r9d
	movl	16(%rsi), %eax
	testl	%eax, %eax
	jle	.L25
	movq	8(%rsi), %rbx
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	movl	%r8d, %r15d
	movq	%rbx, 40(%rsp)
.L30:
	movq	40(%rsp), %rbx
	movslq	(%rbx,%r14,4), %rbx
	leaq	(%rbx,%rbx,2), %rdi
	leaq	(%rsi,%rdi,8), %r13
	movl	16(%r13), %edi
	testl	%edi, %edi
	je	.L26
	salq	$2, %rbx
	leaq	(%rdx,%rbx), %rdi
	addq	%rcx, %rbx
	movl	(%rdi), %r12d
	movq	%rbx, 32(%rsp)
	testl	%r12d, %r12d
	jne	.L93
	movl	$1, (%rdi)
	movl	16(%r13), %eax
	movl	$1, %edi
	testl	%eax, %eax
	jle	.L28
	movl	%r15d, 100(%rsp)
	movq	8(%r13), %rbx
	xorl	%ebp, %ebp
	movq	%rdx, %r15
	movq	%r13, 8(%rsp)
	movq	%rcx, %r13
	movq	%r14, 104(%rsp)
	movq	%rsi, %r14
.L29:
	movl	(%rbx,%rbp,4), %edi
	movq	%r13, %rcx
	movq	%r15, %rdx
	movq	%r14, %rsi
	call	len_of_vert
	cmpl	%eax, %r12d
	cmovl	%eax, %r12d
	movq	8(%rsp), %rax
	addq	$1, %rbp
	cmpl	%ebp, 16(%rax)
	jg	.L29
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	104(%rsp), %r14
	movl	100(%rsp), %r15d
	movq	%r13, %rcx
	leal	1(%r12), %edi
.L28:
	movq	32(%rsp), %rax
	movl	%edi, (%rax)
	movq	24(%rsp), %rax
	movl	16(%rax), %eax
.L26:
	cmpl	%edi, %r15d
	cmovl	%edi, %r15d
	addq	$1, %r14
	cmpl	%r14d, %eax
	jg	.L30
	movl	%r15d, %r8d
	movq	%rsi, %r15
	leal	1(%r8), %r9d
.L25:
	movq	72(%rsp), %rax
	movl	%r9d, (%rax)
	movq	64(%rsp), %rax
	movl	16(%rax), %eax
.L23:
	movl	56(%rsp), %ebx
	cmpl	%r9d, %ebx
	cmovge	%ebx, %r9d
	addq	$1, (%rsp)
	movq	(%rsp), %rsi
	movl	%r9d, 56(%rsp)
	cmpl	%esi, %eax
	jg	.L31
	movl	%r9d, %r8d
	movq	%rdx, %r14
	addl	$1, %r8d
.L22:
	movq	120(%rsp), %rax
	movl	%r8d, (%rax)
	movq	112(%rsp), %rax
	movl	16(%rax), %edi
.L20:
	movl	60(%rsp), %eax
	cmpl	%r8d, %eax
	cmovge	%eax, %r8d
	addq	$1, 16(%rsp)
	movq	16(%rsp), %rax
	movl	%r8d, 60(%rsp)
	cmpl	%eax, %edi
	jg	.L32
	movl	%r8d, %edx
	movq	%r14, %r13
	movq	%rcx, %r14
	addl	$1, %edx
.L19:
	movq	152(%rsp), %rax
	movl	%edx, (%rax)
	movq	144(%rsp), %rax
	movl	16(%rax), %edi
.L17:
	movl	96(%rsp), %eax
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	addq	$1, 48(%rsp)
	movq	48(%rsp), %rax
	movl	%edx, 96(%rsp)
	cmpl	%eax, %edi
	jg	.L33
	movq	%r14, %rax
	addl	$1, %edx
	movq	%r13, %r14
	movq	%rax, %r13
.L16:
	movq	192(%rsp), %rax
	movl	%edx, (%rax)
	movq	184(%rsp), %rax
	movl	16(%rax), %edi
.L14:
	movl	176(%rsp), %eax
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	addq	$1, 88(%rsp)
	movq	88(%rsp), %rax
	movl	%edx, 176(%rsp)
	cmpl	%eax, %edi
	jg	.L34
	movq	%r13, %rax
	addl	$1, %edx
	movq	%r14, %r13
	movq	%rax, %r14
.L13:
	movq	224(%rsp), %rax
	movl	%edx, (%rax)
	movq	216(%rsp), %rax
	movl	16(%rax), %edi
.L11:
	movl	180(%rsp), %eax
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	addq	$1, 136(%rsp)
	movq	136(%rsp), %rax
	movl	%edx, 180(%rsp)
	cmpl	%eax, %edi
	jg	.L35
	movq	%r14, %rax
	addl	$1, %edx
	movq	%r13, %r14
	movq	%rax, %r13
.L10:
	movq	256(%rsp), %rax
	movl	%edx, (%rax)
	movq	248(%rsp), %rax
	movl	16(%rax), %edi
.L8:
	movl	240(%rsp), %eax
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	addq	$1, 168(%rsp)
	movq	168(%rsp), %rax
	movl	%edx, 240(%rsp)
	cmpl	%eax, %edi
	jg	.L36
	movq	%r13, %rax
	addl	$1, %edx
	movq	%r14, %r13
	movq	%rax, %r14
.L7:
	movq	280(%rsp), %rax
	movl	%edx, (%rax)
	movq	272(%rsp), %rax
	movl	16(%rax), %edi
.L5:
	movl	244(%rsp), %eax
	cmpl	%edx, %eax
	cmovge	%eax, %edx
	addq	$1, 208(%rsp)
	movq	208(%rsp), %rax
	movl	%edx, 244(%rsp)
	cmpl	%eax, %edi
	jg	.L37
	movl	%edx, %r8d
	addl	$1, %r8d
.L4:
	movq	296(%rsp), %rax
	movl	%r8d, (%rax)
.L1:
	addq	$312, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r8d, %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
.L85:
	.cfi_restore_state
	movl	(%rax), %r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L93:
	movl	(%rbx), %edi
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L92:
	movl	(%rsi), %r9d
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L91:
	movl	(%rax), %r8d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L90:
	movl	(%rax), %edx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L89:
	movl	(%rax), %edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L88:
	movl	(%rax), %edx
	jmp	.L11
.L87:
	movl	(%rax), %edx
	jmp	.L8
.L86:
	movl	(%rax), %edx
	jmp	.L5
	.cfi_endproc
.LFE63:
	.size	len_of_vert, .-len_of_vert
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB64:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-64(%rbp), %rcx
	movq	%rsp, %rdi
	leal	1(%rcx), %eax
	cltq
	leaq	(%rax,%rax,2), %rdx
	leaq	15(,%rdx,8), %rdx
	movq	%rdx, %rsi
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rsi
	cmpq	%rdi, %rsp
	je	.L96
.L175:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L175
.L96:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	jne	.L176
.L97:
	movslq	-60(%rbp), %rdx
	movq	%rsp, %rdi
	movq	%rsp, %rbx
	movq	%rdx, %r14
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %r9
	movq	%rdx, %rsi
	andq	$-4096, %r9
	andq	$-16, %rsi
	subq	%r9, %rdi
.L98:
	cmpq	%rdi, %rsp
	je	.L99
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L98
.L176:
	orq	$0, -8(%rsp,%rsi)
	jmp	.L97
.L99:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	jne	.L177
.L100:
	movq	%rsp, -88(%rbp)
	movq	%rdx, %rsi
	movq	%rsp, %rdi
	andq	$-4096, %rdx
	andq	$-16, %rsi
	subq	%rdx, %rdi
.L101:
	cmpq	%rdi, %rsp
	je	.L102
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L101
.L177:
	orq	$0, -8(%rsp,%rsi)
	jmp	.L100
.L102:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	je	.L103
	orq	$0, -8(%rsp,%rsi)
.L103:
	leaq	15(,%rax,4), %rax
	movq	%rsp, -96(%rbp)
	movq	%rsp, %rsi
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rsi
.L104:
	cmpq	%rsi, %rsp
	je	.L105
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L104
.L105:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L106
	orq	$0, -8(%rsp,%rdx)
.L106:
	movq	%rax, %rdx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rsi
.L107:
	cmpq	%rsi, %rsp
	je	.L108
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L107
.L108:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L109
	orq	$0, -8(%rsp,%rax)
.L109:
	movq	%rsp, %r13
	testl	%ecx, %ecx
	js	.L114
	leaq	(%rcx,%rcx,2), %rdx
	leaq	16(%rbx), %rax
	leaq	40(%rbx,%rdx,8), %rdx
	.p2align 4,,10
	.p2align 3
.L113:
	movl	$0, (%rax)
	addq	$24, %rax
	cmpq	%rax, %rdx
	jne	.L113
	leaq	4(,%rcx,4), %rdx
	xorl	%esi, %esi
	movq	%r12, %rdi
	movq	%rdx, -72(%rbp)
	call	memset@PLT
	movq	-72(%rbp), %rdx
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	memset@PLT
.L114:
	movq	-88(%rbp), %rcx
	movq	-96(%rbp), %rdx
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	jle	.L178
	.p2align 4,,10
	.p2align 3
.L115:
	movq	%rcx, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rdx, -80(%rbp)
	movq	%rcx, -72(%rbp)
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rcx
	movq	-80(%rbp), %rdx
	movl	-60(%rbp), %r14d
	movslq	(%rcx), %rax
	addq	$4, %rdx
	addq	$4, %rcx
	leaq	(%rax,%rax,2), %rax
	addl	$1, 16(%rbx,%rax,8)
	cmpl	%r15d, %r14d
	jg	.L115
	movslq	-64(%rbp), %rax
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	%rcx, -80(%rbp)
	testl	%eax, %eax
	js	.L116
.L138:
	movq	%rax, -104(%rbp)
	leaq	(%rax,%rax,2), %rax
	leaq	8(%rbx), %r15
	leaq	32(%rbx,%rax,8), %rax
	movq	%rax, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L117:
	movslq	8(%r15), %rdi
	addq	$24, %r15
	salq	$2, %rdi
	call	malloc@PLT
	movq	%rax, -24(%r15)
	cmpq	%r15, -72(%rbp)
	jne	.L117
	movq	-80(%rbp), %rax
	movq	%rsp, %rcx
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L130:
	cmpq	%rcx, %rsp
	je	.L131
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L130
.L131:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L132
	orq	$0, -8(%rsp,%rdx)
.L132:
	movq	-104(%rbp), %rax
	movq	%rsp, %rdi
	xorl	%esi, %esi
	leaq	4(,%rax,4), %rdx
	call	memset@PLT
	movq	%rax, %rdi
	testl	%r14d, %r14d
	jle	.L123
.L133:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L122:
	movq	-88(%rbp), %r8
	movslq	(%r8,%rax,4), %rdx
	movslq	(%rdi,%rdx,4), %rcx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,8), %rdx
	cmpl	%ecx, 16(%rdx)
	jle	.L119
	movq	-96(%rbp), %rsi
	movq	8(%rdx), %rdx
	movl	(%rsi,%rax,4), %esi
	movl	%esi, (%rdx,%rcx,4)
	movslq	(%r8,%rax,4), %rdx
	addq	$1, %rax
	movl	-60(%rbp), %r14d
	addl	$1, (%rdi,%rdx,4)
	cmpl	%eax, %r14d
	jg	.L122
.L121:
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	js	.L137
.L123:
	movl	$0, -80(%rbp)
	leaq	16(%rbx), %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L129:
	movl	(%r15), %eax
	testl	%eax, %eax
	je	.L125
	movl	(%r12,%r14,4), %r11d
	testl	%r11d, %r11d
	jne	.L179
	movl	$1, (%r12,%r14,4)
	testl	%eax, %eax
	jle	.L140
	movq	-8(%r15), %r9
	xorl	%r10d, %r10d
.L128:
	movl	(%r9,%r10,4), %edi
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	movq	%r9, -72(%rbp)
	call	len_of_vert
	movq	-72(%rbp), %r9
	cmpl	%eax, %r11d
	cmovl	%eax, %r11d
	addq	$1, %r10
	cmpl	%r10d, (%r15)
	jg	.L128
	leal	1(%r11), %eax
.L127:
	movl	%eax, 0(%r13,%r14,4)
.L125:
	movl	-80(%rbp), %esi
	cmpl	%eax, %esi
	cmovge	%esi, %eax
	addq	$1, %r14
	addq	$24, %r15
	movl	%eax, -80(%rbp)
	cmpl	%r14d, -64(%rbp)
	jge	.L129
.L124:
	movl	-80(%rbp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L180
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L119:
	.cfi_restore_state
	addq	$1, %rax
	cmpl	%eax, %r14d
	jg	.L122
	jmp	.L121
	.p2align 4,,10
	.p2align 3
.L179:
	movl	0(%r13,%r14,4), %eax
	jmp	.L125
	.p2align 4,,10
	.p2align 3
.L140:
	movl	$1, %eax
	jmp	.L127
.L178:
	movslq	-64(%rbp), %rax
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	%rcx, -80(%rbp)
	testl	%eax, %eax
	jns	.L138
.L137:
	movl	$0, -80(%rbp)
	jmp	.L124
.L116:
	movq	-80(%rbp), %rax
	movq	%rsp, %rdx
	addq	$15, %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	andq	$-16, %rcx
	subq	%rax, %rdx
.L134:
	cmpq	%rdx, %rsp
	je	.L135
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L134
.L135:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L136
	orq	$0, -8(%rsp,%rcx)
.L136:
	movq	%rsp, %rdi
	testl	%r14d, %r14d
	jg	.L133
	jmp	.L137
.L180:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE64:
	.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:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>


#define MAX(a,b) (((a)>(b))?(a):(b))

typedef struct s_path
{
	int start;
	int end;
	int len;
} t_path;

typedef struct s_vert
{
	int name;
	int *list;
	int num;
} t_vert;

int len_of_vert(int i, t_vert *vs, int *flag, int *dp)
{
	if (vs[i].num == 0)
		return (0);
	if(flag[i] != 0)
	{
		return (dp[i]);
	}
	flag[i] = 1;
	int max = 0;
	int tmp = 0;
	int index = 0;
	while (index < vs[i].num)
	{
		tmp = len_of_vert(vs[i].list[index], vs, flag, dp);
		if (max < tmp)
			max = tmp;
		index++;
	}
	dp[i] = max + 1;
	return (max + 1);
}

int main(void)
{
	int n, m;

	scanf ("%d %d",&n, &m);
	t_vert vs[n+1];
	int x[m],y[m];
	int index = 0;
	int flag[n+1];
	int dp[n+1];
	while (index < n + 1)
	{
		vs[index].num = 0;
		flag[index] = 0;
		dp[index] = 0;
		index++;
	}
	index = 0;
	while (index < m)
	{
		scanf("%d %d",&(x[index]),&(y[index]));
		vs[x[index]].num = vs[x[index]].num + 1;
		index++;
	}
	index = 0;
	while (index < n+1)
	{
		vs[index].list = (int *)malloc(sizeof(int)*(vs[index].num));
		index++;
	}
	int i = 0;
	int j = 0;
	int k[n+1];
	while (j < n+1)
	{
		k[j] = 0;
		j++;
	}
	//printf("AAA\n");
	i = 0;
	while (i < m)
	{
		//printf("i:%d\n",i);
		//printf("x[i];%d\n",x[i]);
		//printf("k[x[i]];%d\n",k[x[i]]);
		//printf("vs[x[i]].num;%d\n",vs[x[i]].num);
		if (vs[x[i]].num > k[x[i]])
		{
			vs[x[i]].list[k[x[i]]] = y[i];
			k[x[i]] = k[x[i]] + 1;
		}
		i++;
	}
	//printf("BBB\n");
	i = 1;
	j = 0;
	int max = 0;
	int p_len = 0;
	i = 0;
	while (i < n+1)
	{
		p_len = len_of_vert(i, vs, flag, dp);
		max = MAX(p_len,max);
		//printf("i;%d\n",i);
		i++;
	}
	printf("%d\n",max);
	return (0);
}

6 3
2 6
4 5
5 6
 6 3
2 6
4 6
5 6
 6 3
4 3
3 5
5 6
 4 0
1 2
1 3
3 2
2 4
3 4
 7 3
2 3
4 5
5 6
 7 3
2 3
1 5
5 6
 11 3
2 3
4 5
5 6
 4 5
1 2
1 4
3 2
2 4
3 4
 6 3
2 6
4 5
4 6
 7 1
2 3
4 5
5 6

2
 1
 3
 0
 2
 2
 2
 2
 1
 1

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>
#include <string.h>
#include <unistd.h>


#define MAX(a,b) (((a)>(b))?(a):(b))

typedef struct s_path
{
	int start;
	int end;
	int len;
} t_path;

typedef struct s_vert
{
	int name;
	int *list;
	int num;
} t_vert;

int len_of_vert(int i, t_vert *vs, int *flag, int *dp)
{
	if (vs[i].num == 0)
		return (0);
	if(flag[i] != 0)
	{
		return (dp[i]);
	}
	flag[i] = 1;
	int max = 0;
	int tmp = 0;
	int index = 0;
	while (index < vs[i].num)
	{
		tmp = len_of_vert(vs[i].list[index], vs, flag, dp);
		if (max < tmp)
			max = tmp;
		index++;
	}
	dp[i] = max + 1;
	return (max + 1);
}

int main(void)
{
	int n, m;

	scanf ("%d %d",&n, &m);
	t_vert vs[n+1];
	int x[m],y[m];
	int index = 0;
	int flag[n+1];
	int dp[n+1];
	while (index < n + 1)
	{
		vs[index].num = 0;
		flag[index] = 0;
		dp[index] = 0;
		index++;
	}
	index = 0;
	while (index < m)
	{
		scanf("%d %d",&(x[index]),&(y[index]));
		vs[x[index]].num = vs[x[index]].num + 1;
		index++;
	}
	index = 0;
	while (index < n+1)
	{
		vs[index].list = (int *)malloc(sizeof(int)*(vs[index].num));
		index++;
	}
	int i = 0;
	int j = 0;
	int k[n+1];
	while (j < n+1)
	{
		k[j] = 0;
		j++;
	}
	//printf("AAA\n");
	i = 0;
	while (i < m)
	{
		//printf("i:%d\n",i);
		//printf("x[i];%d\n",x[i]);
		//printf("k[x[i]];%d\n",k[x[i]]);
		//printf("vs[x[i]].num;%d\n",vs[x[i]].num);
		if (vs[x[i]].num > k[x[i]])
		{
			vs[x[i]].list[k[x[i]]] = y[i];
			k[x[i]] = k[x[i]] + 1;
		}
		i++;
	}
	//printf("BBB\n");
	i = 1;
	j = 0;
	int max = 0;
	int p_len = 0;
	i = 0;
	while (i < n+1)
	{
		p_len = len_of_vert(i, vs, flag, dp);
		max = MAX(p_len,max);
		//printf("i;%d\n",i);
		i++;
	}
	printf("%d\n",max);
	return (0);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	len_of_vert
	.type	len_of_vert, @function
len_of_vert:
.LFB6:
	.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, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	16(%rax), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L4
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	movl	$0, -12(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L5
.L7:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rsi
	movl	%eax, %edi
	call	len_of_vert
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L6
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
.L6:
	addl	$1, -8(%rbp)
.L5:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	16(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L7
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	movl	-12(%rbp), %eax
	addl	$1, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	len_of_vert, .-len_of_vert
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$312, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-176(%rbp), %rdx
	leaq	-180(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-180(%rbp), %eax
	leal	1(%rax), %esi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -152(%rbp)
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$192, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rcx
	movl	$192, %eax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$192, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rcx
	movl	$192, %eax
	mulq	%r14
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L9:
	cmpq	%rcx, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L10:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L11
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L11:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -144(%rbp)
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L12:
	cmpq	%rcx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L13:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L14
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L14:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -128(%rbp)
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L15:
	cmpq	%rcx, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L17
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L17:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -112(%rbp)
	movl	$0, -172(%rbp)
	movl	-180(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%edx, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L18:
	cmpq	%rdx, %rsp
	je	.L19
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L18
.L19:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L20
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L20:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -96(%rbp)
	movl	-180(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -320(%rbp)
	movq	$0, -312(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L21:
	cmpq	%rdx, %rsp
	je	.L22
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L21
.L22:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L23
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L23:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	jmp	.L24
.L25:
	movq	-144(%rbp), %rcx
	movl	-172(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	$0, (%rax)
	movq	-96(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	movq	-80(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -172(%rbp)
.L24:
	movl	-180(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jle	.L25
	movl	$0, -172(%rbp)
	jmp	.L26
.L27:
	movl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-112(%rbp), %rax
	addq	%rax, %rdx
	movl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-128(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-128(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-144(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	(%rax), %ecx
	movq	-128(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	$1, %ecx
	movq	-144(%rbp), %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$16, %rax
	movl	%ecx, (%rax)
	addl	$1, -172(%rbp)
.L26:
	movl	-176(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jl	.L27
	movl	$0, -172(%rbp)
	jmp	.L28
.L29:
	movq	-144(%rbp), %rcx
	movl	-172(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	(%rax), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movq	-144(%rbp), %rsi
	movl	-172(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movq	%rcx, (%rax)
	addl	$1, -172(%rbp)
.L28:
	movl	-180(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jle	.L29
	movl	$0, -168(%rbp)
	movl	$0, -164(%rbp)
	movl	-180(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -336(%rbp)
	movq	$0, -328(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -352(%rbp)
	movq	$0, -344(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L30:
	cmpq	%rdx, %rsp
	je	.L31
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L30
.L31:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L32
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L32:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	jmp	.L33
.L34:
	movq	-64(%rbp), %rax
	movl	-164(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -164(%rbp)
.L33:
	movl	-180(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jle	.L34
	movl	$0, -168(%rbp)
	jmp	.L35
.L37:
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-144(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	(%rax), %ecx
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jle	.L36
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-144(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rcx
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rcx
	movq	-112(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rcx)
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	addl	$1, %ecx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L36:
	addl	$1, -168(%rbp)
.L35:
	movl	-176(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L37
	movl	$1, -168(%rbp)
	movl	$0, -164(%rbp)
	movl	$0, -160(%rbp)
	movl	$0, -156(%rbp)
	movl	$0, -168(%rbp)
	jmp	.L38
.L39:
	movq	-80(%rbp), %rcx
	movq	-96(%rbp), %rdx
	movq	-144(%rbp), %rsi
	movl	-168(%rbp), %eax
	movl	%eax, %edi
	call	len_of_vert
	movl	%eax, -156(%rbp)
	movl	-160(%rbp), %edx
	movl	-156(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -160(%rbp)
	addl	$1, -168(%rbp)
.L38:
	movl	-180(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jle	.L39
	movl	-160(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	len_of_vert
	.type	len_of_vert, @function
len_of_vert:
.LFB6:
	.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, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	16(%rax), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L4
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	$1, (%rax)
	movl	$0, -12(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L5
.L7:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	8(%rax), %rdx
	movl	-8(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rsi
	movl	%eax, %edi
	call	len_of_vert
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L6
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
.L6:
	addl	$1, -8(%rbp)
.L5:
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	16(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L7
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	addl	$1, %edx
	movl	%edx, (%rax)
	movl	-12(%rbp), %eax
	addl	$1, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	len_of_vert, .-len_of_vert
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$312, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-176(%rbp), %rdx
	leaq	-180(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-180(%rbp), %eax
	leal	1(%rax), %esi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -152(%rbp)
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$192, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rcx
	movl	$192, %eax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$192, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rcx
	movl	$192, %eax
	mulq	%r14
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L9:
	cmpq	%rcx, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L10:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L11
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L11:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -144(%rbp)
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L12:
	cmpq	%rcx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L13:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L14
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L14:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -128(%rbp)
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L15:
	cmpq	%rcx, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L17
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L17:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -112(%rbp)
	movl	$0, -172(%rbp)
	movl	-180(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%edx, %rax
	movq	%rax, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L18:
	cmpq	%rdx, %rsp
	je	.L19
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L18
.L19:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L20
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L20:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -96(%rbp)
	movl	-180(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -320(%rbp)
	movq	$0, -312(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L21:
	cmpq	%rdx, %rsp
	je	.L22
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L21
.L22:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L23
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L23:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	jmp	.L24
.L25:
	movq	-144(%rbp), %rcx
	movl	-172(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	$0, (%rax)
	movq	-96(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	movq	-80(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -172(%rbp)
.L24:
	movl	-180(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jle	.L25
	movl	$0, -172(%rbp)
	jmp	.L26
.L27:
	movl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-112(%rbp), %rax
	addq	%rax, %rdx
	movl	-172(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-128(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-128(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-144(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	(%rax), %ecx
	movq	-128(%rbp), %rax
	movl	-172(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	addl	$1, %ecx
	movq	-144(%rbp), %rsi
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$16, %rax
	movl	%ecx, (%rax)
	addl	$1, -172(%rbp)
.L26:
	movl	-176(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jl	.L27
	movl	$0, -172(%rbp)
	jmp	.L28
.L29:
	movq	-144(%rbp), %rcx
	movl	-172(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	(%rax), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, %rcx
	movq	-144(%rbp), %rsi
	movl	-172(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movq	%rcx, (%rax)
	addl	$1, -172(%rbp)
.L28:
	movl	-180(%rbp), %eax
	cmpl	%eax, -172(%rbp)
	jle	.L29
	movl	$0, -168(%rbp)
	movl	$0, -164(%rbp)
	movl	-180(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -336(%rbp)
	movq	$0, -328(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -352(%rbp)
	movq	$0, -344(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L30:
	cmpq	%rdx, %rsp
	je	.L31
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L30
.L31:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L32
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L32:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	jmp	.L33
.L34:
	movq	-64(%rbp), %rax
	movl	-164(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -164(%rbp)
.L33:
	movl	-180(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jle	.L34
	movl	$0, -168(%rbp)
	jmp	.L35
.L37:
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-144(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	(%rax), %ecx
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jle	.L36
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movq	-144(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rcx
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rcx
	movq	-112(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rcx)
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-128(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	addl	$1, %ecx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L36:
	addl	$1, -168(%rbp)
.L35:
	movl	-176(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L37
	movl	$1, -168(%rbp)
	movl	$0, -164(%rbp)
	movl	$0, -160(%rbp)
	movl	$0, -156(%rbp)
	movl	$0, -168(%rbp)
	jmp	.L38
.L39:
	movq	-80(%rbp), %rcx
	movq	-96(%rbp), %rdx
	movq	-144(%rbp), %rsi
	movl	-168(%rbp), %eax
	movl	%eax, %edi
	call	len_of_vert
	movl	%eax, -156(%rbp)
	movl	-160(%rbp), %edx
	movl	-156(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -160(%rbp)
	addl	$1, -168(%rbp)
.L38:
	movl	-180(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jle	.L39
	movl	-160(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
