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>

void prarr(long long int*A,int N){
  int i;
  for(i=0;i<N;i++){
    printf("%lld ",A[i]);
  }
}

long long int max(long long int A,long long int B,long long int C){
  if(B>A){A=B;}
  if(C>A){A=C;}
  return A;
}

void mkmax(long long int*A,long long int *Am,int N){
  int i;
  Am[0]=0;
  for(i=1;i<N+1;i++){
    if(A[i]>Am[i-1]){
      Am[i]=A[i];
    }else{
      Am[i]=Am[i-1];
    }
  }
}

int main(){
  int N,i;
  long long int C;
  scanf("%d%lld",&N,&C);

  long long int x[N+1];
  long long int y[N+1];
  long long int v[N+1];

  for(i=1;i<=N;i++){
    scanf("%lld%lld",&x[i],&v[i]);
  }
  for(i=1;i<=N;i++){
    y[i]=C-x[N+1-i];
  }
  
  long long int A[N+1];
  long long int B[N+1];
  long long int Am[N+1];
  long long int Bm[N+1];

  A[0]=0;
  B[0]=0;
  x[0]=0;
  y[0]=0;
  v[0]=0;
  for(i=1;i<=N;i++){
    A[i]=A[i-1]+v[i]-(x[i]-x[i-1]);
    B[i]=B[i-1]+v[N+1-i]-(y[i]-y[i-1]);
  }

  mkmax(A,Am,N);
  mkmax(B,Bm,N);
  
  long long int cal=0;
  for(i=0;i<N;i++){
    cal=max(cal,B[i]-y[i]+Am[N-i],A[i]-x[i]+Bm[N-i]);
  }
  printf("%lld",cal);
  return 0;
}
  
    
  
  
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld "
	.text
	.globl	prarr
	.type	prarr, @function
prarr:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	prarr, .-prarr
	.globl	max
	.type	max, @function
max:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jle	.L5
	movq	-16(%rbp), %rax
	movq	%rax, -8(%rbp)
.L5:
	movq	-24(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jle	.L6
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
.L6:
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	max, .-max
	.globl	mkmax
	.type	mkmax, @function
mkmax:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movq	-32(%rbp), %rax
	movq	$0, (%rax)
	movl	$1, -4(%rbp)
	jmp	.L9
.L12:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	jmp	.L11
.L10:
	movl	-4(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
.L11:
	addl	$1, -4(%rbp)
.L9:
	movl	-36(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L12
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	mkmax, .-mkmax
	.section	.rodata
.LC1:
	.string	"%d%lld"
.LC2:
	.string	"%lld%lld"
.LC3:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$344, %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	-184(%rbp), %rdx
	leaq	-192(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -168(%rbp)
	movslq	%edx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movslq	%edx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edx, %rax
	leaq	0(,%rax,8), %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
.L14:
	cmpq	%rcx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L16
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L16:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -160(%rbp)
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -152(%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,8), %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
.L17:
	cmpq	%rcx, %rsp
	je	.L18
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L17
.L18:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L19
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L19:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -144(%rbp)
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -136(%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,8), %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
.L20:
	cmpq	%rcx, %rsp
	je	.L21
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L20
.L21:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L22
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L22:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -128(%rbp)
	movl	$1, -188(%rbp)
	jmp	.L23
.L24:
	movl	-188(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-128(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-188(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-160(%rbp), %rax
	addq	%rdx, %rax
	movq	%rcx, %rdx
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -188(%rbp)
.L23:
	movl	-192(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jle	.L24
	movl	$1, -188(%rbp)
	jmp	.L25
.L26:
	movq	-184(%rbp), %rcx
	movl	-192(%rbp), %eax
	addl	$1, %eax
	subl	-188(%rbp), %eax
	movq	-160(%rbp), %rdx
	cltq
	movq	(%rdx,%rax,8), %rax
	subq	%rax, %rcx
	movq	-144(%rbp), %rdx
	movl	-188(%rbp), %eax
	cltq
	movq	%rcx, (%rdx,%rax,8)
	addl	$1, -188(%rbp)
.L25:
	movl	-192(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jle	.L26
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%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,8), %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
.L27:
	cmpq	%rcx, %rsp
	je	.L28
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L27
.L28:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L29
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L29:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -112(%rbp)
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%edx, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movl	-192(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%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,8), %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
.L33:
	cmpq	%rdx, %rsp
	je	.L34
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L33
.L34:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L35
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L35:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movl	-192(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -368(%rbp)
	movq	$0, -360(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -384(%rbp)
	movq	$0, -376(%rbp)
	cltq
	leaq	0(,%rax,8), %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
.L36:
	cmpq	%rdx, %rsp
	je	.L37
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L36
.L37:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L38
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L38:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	movq	$0, (%rax)
	movq	-96(%rbp), %rax
	movq	$0, (%rax)
	movq	-160(%rbp), %rax
	movq	$0, (%rax)
	movq	-144(%rbp), %rax
	movq	$0, (%rax)
	movq	-128(%rbp), %rax
	movq	$0, (%rax)
	movl	$1, -188(%rbp)
	jmp	.L39
.L40:
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-128(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leaq	(%rcx,%rax), %rsi
	movq	-160(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-160(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, %rcx
	movq	-112(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-96(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-192(%rbp), %eax
	addl	$1, %eax
	subl	-188(%rbp), %eax
	movl	%eax, %edx
	movq	-128(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leaq	(%rcx,%rax), %rsi
	movq	-144(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-144(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, %rcx
	movq	-96(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -188(%rbp)
.L39:
	movl	-192(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jle	.L40
	movl	-192(%rbp), %edx
	movq	-80(%rbp), %rcx
	movq	-112(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mkmax
	movl	-192(%rbp), %edx
	movq	-64(%rbp), %rcx
	movq	-96(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mkmax
	movq	$0, -176(%rbp)
	movl	$0, -188(%rbp)
	jmp	.L41
.L42:
	movq	-112(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-160(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movl	-192(%rbp), %eax
	subl	-188(%rbp), %eax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leaq	(%rcx,%rax), %rdx
	movq	-96(%rbp), %rax
	movl	-188(%rbp), %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	-144(%rbp), %rax
	movl	-188(%rbp), %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	subq	%rax, %rsi
	movl	-192(%rbp), %eax
	subl	-188(%rbp), %eax
	movl	%eax, %ecx
	movq	-80(%rbp), %rax
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	leaq	(%rsi,%rax), %rcx
	movq	-176(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, -176(%rbp)
	addl	$1, -188(%rbp)
.L41:
	movl	-192(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jl	.L42
	movq	-176(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%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	.L44
	call	__stack_chk_fail@PLT
.L44:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld "
	.text
	.p2align 4
	.globl	prarr
	.type	prarr, @function
prarr:
.LFB39:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L6
	leal	-1(%rsi), %eax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	8(%rdi,%rax,8), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdi, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	(%rbx), %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$8, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L3
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE39:
	.size	prarr, .-prarr
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB40:
	.cfi_startproc
	endbr64
	cmpq	%rdx, %rdi
	movq	%rsi, %rax
	cmovl	%rdx, %rdi
	cmpq	%rsi, %rdi
	cmovge	%rdi, %rax
	ret
	.cfi_endproc
.LFE40:
	.size	max, .-max
	.p2align 4
	.globl	mkmax
	.type	mkmax, @function
mkmax:
.LFB41:
	.cfi_startproc
	endbr64
	movq	$0, (%rsi)
	testl	%edx, %edx
	jle	.L11
	leal	1(%rdx), %r8d
	movl	$1, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	movq	(%rdi,%rax,8), %rcx
	cmpq	%rcx, %rdx
	cmovl	%rcx, %rdx
	movq	%rdx, (%rsi,%rax,8)
	addq	$1, %rax
	cmpq	%r8, %rax
	jne	.L13
.L11:
	ret
	.cfi_endproc
.LFE41:
	.size	mkmax, .-mkmax
	.section	.rodata.str1.1
.LC1:
	.string	"%d%lld"
.LC2:
	.string	"%lld%lld"
.LC3:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %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
	movl	-68(%rbp), %ecx
	movq	%rsp, %rsi
	leal	1(%rcx), %eax
	cltq
	leaq	15(,%rax,8), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L18
.L87:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L87
.L18:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L88
.L19:
	leaq	7(%rsp), %rbx
	movq	%rax, %rdx
	movq	%rsp, %rsi
	movq	%rbx, %rdi
	andq	$-16, %rdx
	andq	$-8, %rbx
	shrq	$3, %rdi
	movq	%rdi, -96(%rbp)
	movq	%rax, %rdi
	andq	$-4096, %rdi
	subq	%rdi, %rsi
.L20:
	cmpq	%rsi, %rsp
	je	.L21
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L20
.L88:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L19
.L21:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L89
.L22:
	leaq	7(%rsp), %r12
	movq	%rax, %rdx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%r12, %rdi
	andq	$-16, %rdx
	andq	$-8, %r12
	subq	%rax, %rsi
	shrq	$3, %rdi
	movq	%rdi, -112(%rbp)
.L23:
	cmpq	%rsi, %rsp
	je	.L24
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L23
.L89:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L22
.L24:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L25
	orq	$0, -8(%rsp,%rdx)
.L25:
	leaq	7(%rsp), %r13
	movq	%r13, %rax
	andq	$-8, %r13
	shrq	$3, %rax
	movq	%rax, -104(%rbp)
	testl	%ecx, %ecx
	jle	.L26
	leaq	8(%rbx), %rsi
	leaq	8(%r13), %r14
	movq	%rbx, -88(%rbp)
	movl	$1, %r15d
	movq	%r14, %rbx
	movq	%rsi, %r14
	.p2align 4,,10
	.p2align 3
.L27:
	movq	%rbx, %rdx
	movq	%r14, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-68(%rbp), %eax
	addl	$1, %r15d
	addq	$8, %r14
	addq	$8, %rbx
	cmpl	%r15d, %eax
	jge	.L27
	movq	-88(%rbp), %rbx
	testl	%eax, %eax
	jle	.L26
	movq	-64(%rbp), %rcx
	leal	1(%rax), %r11d
	cmpl	$1, %eax
	je	.L54
	movl	%eax, %edi
	movq	%rcx, %xmm2
	leaq	8(%r12), %rdx
	movslq	%eax, %rsi
	shrl	%edi
	punpcklqdq	%xmm2, %xmm2
	leaq	-8(%rbx,%rsi,8), %rsi
	subl	$1, %edi
	salq	$4, %rdi
	leaq	24(%r12,%rdi), %rdi
	.p2align 4,,10
	.p2align 3
.L29:
	movdqu	(%rsi), %xmm0
	movdqa	%xmm2, %xmm1
	addq	$16, %rdx
	subq	$16, %rsi
	shufpd	$1, %xmm0, %xmm0
	psubq	%xmm0, %xmm1
	movups	%xmm1, -16(%rdx)
	cmpq	%rdi, %rdx
	jne	.L29
	movl	%eax, %esi
	orl	$1, %esi
	testb	$1, %al
	je	.L30
.L28:
	movl	%r11d, %edx
	movslq	%esi, %rdi
	subl	%esi, %edx
	movslq	%edx, %rdx
	subq	(%rbx,%rdx,8), %rcx
	movq	%rcx, (%r12,%rdi,8)
.L30:
	movslq	%r11d, %r8
	movq	%rsp, %rcx
	salq	$3, %r8
	leaq	15(%r8), %rdi
	movq	%rdi, %rsi
	movq	%rdi, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L39:
	cmpq	%rcx, %rsp
	je	.L40
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L39
.L40:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L41
	orq	$0, -8(%rsp,%rdx)
.L41:
	leaq	7(%rsp), %rdx
	movq	%rdi, %r10
	movq	%rdi, %rcx
	movq	%rsp, %rsi
	movq	%rdx, %r9
	andq	$-4096, %r10
	andq	$-8, %rdx
	andq	$-16, %rcx
	shrq	$3, %r9
	subq	%r10, %rsi
.L42:
	cmpq	%rsi, %rsp
	je	.L43
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L42
.L26:
	movq	-96(%rbp), %rax
	xorl	%r11d, %r11d
	movq	$0, 0(,%rax,8)
	movq	-104(%rbp), %rax
	movq	$0, 0(,%rax,8)
	.p2align 4,,10
	.p2align 3
.L52:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L90
	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
.L54:
	.cfi_restore_state
	movl	$1, %esi
	jmp	.L28
.L43:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L44
	orq	$0, -8(%rsp,%rcx)
.L44:
	leaq	7(%rsp), %rcx
	movq	%rdi, %r14
	movq	%rdi, %rsi
	movq	%rsp, %r10
	movq	%rcx, %r15
	andq	$-4096, %r14
	andq	$-8, %rcx
	andq	$-16, %rsi
	shrq	$3, %r15
	subq	%r14, %r10
.L45:
	cmpq	%r10, %rsp
	je	.L46
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L45
.L46:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	je	.L47
	orq	$0, -8(%rsp,%rsi)
.L47:
	leaq	7(%rsp), %rsi
	movq	%rsp, %r10
	movq	%rsi, %r14
	andq	$-8, %rsi
	shrq	$3, %r14
	movq	%r14, -120(%rbp)
	movq	%rdi, %r14
	andq	$-4096, %rdi
	andq	$-16, %r14
	subq	%rdi, %r10
.L48:
	cmpq	%r10, %rsp
	je	.L49
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L48
.L49:
	movq	%r14, %rdi
	andl	$4095, %edi
	subq	%rdi, %rsp
	testq	%rdi, %rdi
	je	.L50
	orq	$0, -8(%rsp,%rdi)
.L50:
	leaq	7(%rsp), %rdi
	movq	$0, 0(,%r9,8)
	movq	$0, 0(,%r15,8)
	movq	%rdi, %r14
	andq	$-8, %rdi
	shrq	$3, %r14
	movq	%r14, -128(%rbp)
	movq	-96(%rbp), %r14
	movq	$0, 0(,%r14,8)
	movq	-112(%rbp), %r14
	movq	$0, 0(,%r14,8)
	movq	-104(%rbp), %r14
	movq	$0, 0(,%r14,8)
	cmpl	$2, %eax
	jle	.L91
	leaq	-8(%r8), %r14
	leal	-3(%rax), %r8d
	xorl	%r9d, %r9d
	movl	%eax, -104(%rbp)
	shrl	%r8d
	movq	%r14, -88(%rbp)
	xorl	%r10d, %r10d
	addq	%r13, %r14
	leaq	5(%r8,%r8), %r15
	movq	%rsi, -112(%rbp)
	xorl	%eax, %eax
	movq	%r9, %rsi
	movq	%r15, -96(%rbp)
	movl	$3, %r8d
	xorl	%r15d, %r15d
.L33:
	movq	-16(%rbx,%r8,8), %r9
	addq	-16(%r13,%r8,8), %r10
	subq	$16, %r14
	addq	16(%r14), %r15
	subq	%rax, %r9
	movq	-8(%rbx,%r8,8), %rax
	subq	%r9, %r10
	movq	-16(%r12,%r8,8), %r9
	movq	%r10, -16(%rdx,%r8,8)
	addq	-8(%r13,%r8,8), %r10
	subq	%rsi, %r9
	movq	-8(%r12,%r8,8), %rsi
	subq	%r9, %r15
	movq	%rax, %r9
	subq	-16(%rbx,%r8,8), %r9
	movq	%r15, -16(%rcx,%r8,8)
	subq	%r9, %r10
	addq	8(%r14), %r15
	movq	%rsi, %r9
	subq	-16(%r12,%r8,8), %r9
	movq	%r10, -8(%rdx,%r8,8)
	subq	%r9, %r15
	movl	%r8d, %r9d
	movq	%r15, -8(%rcx,%r8,8)
	addq	$2, %r8
	cmpq	-96(%rbp), %r8
	jne	.L33
	movl	-104(%rbp), %eax
	movq	-112(%rbp), %rsi
.L34:
	movl	%r11d, %r10d
	movslq	%r9d, %r8
	subl	%r9d, %r10d
	movslq	%r10d, %r9
	leaq	0(%r13,%r9,8), %r10
	.p2align 4,,10
	.p2align 3
.L31:
	movq	0(%r13,%r8,8), %r9
	addq	-8(%rdx,%r8,8), %r9
	subq	$8, %r10
	subq	(%rbx,%r8,8), %r9
	addq	-8(%rbx,%r8,8), %r9
	movq	%r9, (%rdx,%r8,8)
	movq	-8(%rcx,%r8,8), %r9
	addq	8(%r10), %r9
	subq	(%r12,%r8,8), %r9
	addq	-8(%r12,%r8,8), %r9
	movq	%r9, (%rcx,%r8,8)
	addq	$1, %r8
	cmpl	%r8d, %eax
	jge	.L31
	movq	-120(%rbp), %r15
	leal	-1(%rax), %r10d
	movl	$1, %r8d
	xorl	%r9d, %r9d
	addq	$2, %r10
	movq	$0, 0(,%r15,8)
	.p2align 4,,10
	.p2align 3
.L35:
	movq	(%rdx,%r8,8), %r11
	cmpq	%r11, %r9
	cmovl	%r11, %r9
	movq	%r9, (%rsi,%r8,8)
	addq	$1, %r8
	cmpq	%r8, %r10
	jne	.L35
	movq	-128(%rbp), %r14
	movl	$1, %r8d
	xorl	%r9d, %r9d
	movq	$0, 0(,%r14,8)
	.p2align 4,,10
	.p2align 3
.L37:
	movq	(%rcx,%r8,8), %r11
	cmpq	%r11, %r9
	cmovl	%r11, %r9
	movq	%r9, (%rdi,%r8,8)
	addq	$1, %r8
	cmpq	%r8, %r10
	jne	.L37
	movq	-88(%rbp), %r10
	movl	%eax, %eax
	xorl	%r9d, %r9d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L38:
	movq	(%rdx,%r9,8), %r8
	movq	(%rcx,%r9,8), %r13
	subq	(%rbx,%r9,8), %r8
	subq	(%r12,%r9,8), %r13
	addq	(%rdi,%r10), %r8
	addq	(%rsi,%r10), %r13
	cmpq	%r13, %r8
	cmovl	%r13, %r8
	cmpq	%r8, %r11
	cmovl	%r8, %r11
	addq	$1, %r9
	subq	$8, %r10
	cmpq	%rax, %r9
	jne	.L38
	jmp	.L52
.L91:
	leaq	-8(%r8), %r14
	movl	$1, %r9d
	movq	%r14, -88(%rbp)
	jmp	.L34
.L90:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE42:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld "
	.text
	.p2align 4
	.globl	prarr
	.type	prarr, @function
prarr:
.LFB39:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L6
	leal	-1(%rsi), %eax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	8(%rdi,%rax,8), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdi, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	(%rbx), %rdx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$8, %rbx
	call	__printf_chk@PLT
	cmpq	%r12, %rbx
	jne	.L3
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE39:
	.size	prarr, .-prarr
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB40:
	.cfi_startproc
	endbr64
	cmpq	%rdx, %rdi
	movq	%rsi, %rax
	cmovl	%rdx, %rdi
	cmpq	%rsi, %rdi
	cmovge	%rdi, %rax
	ret
	.cfi_endproc
.LFE40:
	.size	max, .-max
	.p2align 4
	.globl	mkmax
	.type	mkmax, @function
mkmax:
.LFB41:
	.cfi_startproc
	endbr64
	movq	$0, (%rsi)
	testl	%edx, %edx
	jle	.L11
	leal	1(%rdx), %r8d
	movl	$1, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	movq	(%rdi,%rax,8), %rcx
	cmpq	%rcx, %rdx
	cmovl	%rcx, %rdx
	movq	%rdx, (%rsi,%rax,8)
	addq	$1, %rax
	cmpq	%r8, %rax
	jne	.L13
.L11:
	ret
	.cfi_endproc
.LFE41:
	.size	mkmax, .-mkmax
	.section	.rodata.str1.1
.LC1:
	.string	"%d%lld"
.LC2:
	.string	"%lld%lld"
.LC3:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %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
	movl	-68(%rbp), %ecx
	movq	%rsp, %rsi
	leal	1(%rcx), %eax
	cltq
	leaq	15(,%rax,8), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L18
.L87:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L87
.L18:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L88
.L19:
	leaq	7(%rsp), %rbx
	movq	%rax, %rdx
	movq	%rsp, %rsi
	movq	%rbx, %rdi
	andq	$-16, %rdx
	andq	$-8, %rbx
	shrq	$3, %rdi
	movq	%rdi, -96(%rbp)
	movq	%rax, %rdi
	andq	$-4096, %rdi
	subq	%rdi, %rsi
.L20:
	cmpq	%rsi, %rsp
	je	.L21
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L20
.L88:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L19
.L21:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L89
.L22:
	leaq	7(%rsp), %r12
	movq	%rax, %rdx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%r12, %rdi
	andq	$-16, %rdx
	andq	$-8, %r12
	subq	%rax, %rsi
	shrq	$3, %rdi
	movq	%rdi, -112(%rbp)
.L23:
	cmpq	%rsi, %rsp
	je	.L24
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L23
.L89:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L22
.L24:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L25
	orq	$0, -8(%rsp,%rdx)
.L25:
	leaq	7(%rsp), %r13
	movq	%r13, %rax
	andq	$-8, %r13
	shrq	$3, %rax
	movq	%rax, -104(%rbp)
	testl	%ecx, %ecx
	jle	.L26
	leaq	8(%rbx), %rsi
	leaq	8(%r13), %r14
	movq	%rbx, -88(%rbp)
	movl	$1, %r15d
	movq	%r14, %rbx
	movq	%rsi, %r14
	.p2align 4,,10
	.p2align 3
.L27:
	movq	%rbx, %rdx
	movq	%r14, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-68(%rbp), %eax
	addl	$1, %r15d
	addq	$8, %r14
	addq	$8, %rbx
	cmpl	%r15d, %eax
	jge	.L27
	movq	-88(%rbp), %rbx
	testl	%eax, %eax
	jle	.L26
	movq	-64(%rbp), %rcx
	leal	1(%rax), %r11d
	cmpl	$1, %eax
	je	.L54
	movl	%eax, %edi
	movq	%rcx, %xmm2
	leaq	8(%r12), %rdx
	movslq	%eax, %rsi
	shrl	%edi
	punpcklqdq	%xmm2, %xmm2
	leaq	-8(%rbx,%rsi,8), %rsi
	subl	$1, %edi
	salq	$4, %rdi
	leaq	24(%r12,%rdi), %rdi
	.p2align 4,,10
	.p2align 3
.L29:
	movdqu	(%rsi), %xmm0
	movdqa	%xmm2, %xmm1
	addq	$16, %rdx
	subq	$16, %rsi
	shufpd	$1, %xmm0, %xmm0
	psubq	%xmm0, %xmm1
	movups	%xmm1, -16(%rdx)
	cmpq	%rdi, %rdx
	jne	.L29
	movl	%eax, %esi
	orl	$1, %esi
	testb	$1, %al
	je	.L30
.L28:
	movl	%r11d, %edx
	movslq	%esi, %rdi
	subl	%esi, %edx
	movslq	%edx, %rdx
	subq	(%rbx,%rdx,8), %rcx
	movq	%rcx, (%r12,%rdi,8)
.L30:
	movslq	%r11d, %r8
	movq	%rsp, %rcx
	salq	$3, %r8
	leaq	15(%r8), %rdi
	movq	%rdi, %rsi
	movq	%rdi, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L39:
	cmpq	%rcx, %rsp
	je	.L40
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L39
.L40:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L41
	orq	$0, -8(%rsp,%rdx)
.L41:
	leaq	7(%rsp), %rdx
	movq	%rdi, %r10
	movq	%rdi, %rcx
	movq	%rsp, %rsi
	movq	%rdx, %r9
	andq	$-4096, %r10
	andq	$-8, %rdx
	andq	$-16, %rcx
	shrq	$3, %r9
	subq	%r10, %rsi
.L42:
	cmpq	%rsi, %rsp
	je	.L43
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L42
.L26:
	movq	-96(%rbp), %rax
	xorl	%r11d, %r11d
	movq	$0, 0(,%rax,8)
	movq	-104(%rbp), %rax
	movq	$0, 0(,%rax,8)
	.p2align 4,,10
	.p2align 3
.L52:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L90
	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
.L54:
	.cfi_restore_state
	movl	$1, %esi
	jmp	.L28
.L43:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L44
	orq	$0, -8(%rsp,%rcx)
.L44:
	leaq	7(%rsp), %rcx
	movq	%rdi, %r14
	movq	%rdi, %rsi
	movq	%rsp, %r10
	movq	%rcx, %r15
	andq	$-4096, %r14
	andq	$-8, %rcx
	andq	$-16, %rsi
	shrq	$3, %r15
	subq	%r14, %r10
.L45:
	cmpq	%r10, %rsp
	je	.L46
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L45
.L46:
	andl	$4095, %esi
	subq	%rsi, %rsp
	testq	%rsi, %rsi
	je	.L47
	orq	$0, -8(%rsp,%rsi)
.L47:
	leaq	7(%rsp), %rsi
	movq	%rsp, %r10
	movq	%rsi, %r14
	andq	$-8, %rsi
	shrq	$3, %r14
	movq	%r14, -120(%rbp)
	movq	%rdi, %r14
	andq	$-4096, %rdi
	andq	$-16, %r14
	subq	%rdi, %r10
.L48:
	cmpq	%r10, %rsp
	je	.L49
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L48
.L49:
	movq	%r14, %rdi
	andl	$4095, %edi
	subq	%rdi, %rsp
	testq	%rdi, %rdi
	je	.L50
	orq	$0, -8(%rsp,%rdi)
.L50:
	leaq	7(%rsp), %rdi
	movq	$0, 0(,%r9,8)
	movq	$0, 0(,%r15,8)
	movq	%rdi, %r14
	andq	$-8, %rdi
	shrq	$3, %r14
	movq	%r14, -128(%rbp)
	movq	-96(%rbp), %r14
	movq	$0, 0(,%r14,8)
	movq	-112(%rbp), %r14
	movq	$0, 0(,%r14,8)
	movq	-104(%rbp), %r14
	movq	$0, 0(,%r14,8)
	cmpl	$2, %eax
	jle	.L91
	leaq	-8(%r8), %r14
	leal	-3(%rax), %r8d
	xorl	%r9d, %r9d
	movl	%eax, -104(%rbp)
	shrl	%r8d
	movq	%r14, -88(%rbp)
	xorl	%r10d, %r10d
	addq	%r13, %r14
	leaq	5(%r8,%r8), %r15
	movq	%rsi, -112(%rbp)
	xorl	%eax, %eax
	movq	%r9, %rsi
	movq	%r15, -96(%rbp)
	movl	$3, %r8d
	xorl	%r15d, %r15d
.L33:
	movq	-16(%rbx,%r8,8), %r9
	addq	-16(%r13,%r8,8), %r10
	subq	$16, %r14
	addq	16(%r14), %r15
	subq	%rax, %r9
	movq	-8(%rbx,%r8,8), %rax
	subq	%r9, %r10
	movq	-16(%r12,%r8,8), %r9
	movq	%r10, -16(%rdx,%r8,8)
	addq	-8(%r13,%r8,8), %r10
	subq	%rsi, %r9
	movq	-8(%r12,%r8,8), %rsi
	subq	%r9, %r15
	movq	%rax, %r9
	subq	-16(%rbx,%r8,8), %r9
	movq	%r15, -16(%rcx,%r8,8)
	subq	%r9, %r10
	addq	8(%r14), %r15
	movq	%rsi, %r9
	subq	-16(%r12,%r8,8), %r9
	movq	%r10, -8(%rdx,%r8,8)
	subq	%r9, %r15
	movl	%r8d, %r9d
	movq	%r15, -8(%rcx,%r8,8)
	addq	$2, %r8
	cmpq	-96(%rbp), %r8
	jne	.L33
	movl	-104(%rbp), %eax
	movq	-112(%rbp), %rsi
.L34:
	movl	%r11d, %r10d
	movslq	%r9d, %r8
	subl	%r9d, %r10d
	movslq	%r10d, %r9
	leaq	0(%r13,%r9,8), %r10
	.p2align 4,,10
	.p2align 3
.L31:
	movq	0(%r13,%r8,8), %r9
	addq	-8(%rdx,%r8,8), %r9
	subq	$8, %r10
	subq	(%rbx,%r8,8), %r9
	addq	-8(%rbx,%r8,8), %r9
	movq	%r9, (%rdx,%r8,8)
	movq	-8(%rcx,%r8,8), %r9
	addq	8(%r10), %r9
	subq	(%r12,%r8,8), %r9
	addq	-8(%r12,%r8,8), %r9
	movq	%r9, (%rcx,%r8,8)
	addq	$1, %r8
	cmpl	%r8d, %eax
	jge	.L31
	movq	-120(%rbp), %r15
	leal	-1(%rax), %r10d
	movl	$1, %r8d
	xorl	%r9d, %r9d
	addq	$2, %r10
	movq	$0, 0(,%r15,8)
	.p2align 4,,10
	.p2align 3
.L35:
	movq	(%rdx,%r8,8), %r11
	cmpq	%r11, %r9
	cmovl	%r11, %r9
	movq	%r9, (%rsi,%r8,8)
	addq	$1, %r8
	cmpq	%r8, %r10
	jne	.L35
	movq	-128(%rbp), %r14
	movl	$1, %r8d
	xorl	%r9d, %r9d
	movq	$0, 0(,%r14,8)
	.p2align 4,,10
	.p2align 3
.L37:
	movq	(%rcx,%r8,8), %r11
	cmpq	%r11, %r9
	cmovl	%r11, %r9
	movq	%r9, (%rdi,%r8,8)
	addq	$1, %r8
	cmpq	%r8, %r10
	jne	.L37
	movq	-88(%rbp), %r10
	movl	%eax, %eax
	xorl	%r9d, %r9d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L38:
	movq	(%rdx,%r9,8), %r8
	movq	(%rcx,%r9,8), %r13
	subq	(%rbx,%r9,8), %r8
	subq	(%r12,%r9,8), %r13
	addq	(%rdi,%r10), %r8
	addq	(%rsi,%r10), %r13
	cmpq	%r13, %r8
	cmovl	%r13, %r8
	cmpq	%r8, %r11
	cmovl	%r8, %r11
	addq	$1, %r9
	subq	$8, %r10
	cmpq	%rax, %r9
	jne	.L38
	jmp	.L52
.L91:
	leaq	-8(%r8), %r14
	movl	$1, %r9d
	movq	%r14, -88(%rbp)
	jmp	.L34
.L90:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE42:
	.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>

void prarr(long long int*A,int N){
  int i;
  for(i=0;i<N;i++){
    printf("%lld ",A[i]);
  }
}

long long int max(long long int A,long long int B,long long int C){
  if(B>A){A=B;}
  if(C>A){A=C;}
  return A;
}

void mkmax(long long int*A,long long int *Am,int N){
  int i;
  Am[0]=0;
  for(i=1;i<N+1;i++){
    if(A[i]>Am[i-1]){
      Am[i]=A[i];
    }else{
      Am[i]=Am[i-1];
    }
  }
}

int main(){
  int N,i;
  long long int C;
  scanf("%d%lld",&N,&C);

  long long int x[N+1];
  long long int y[N+1];
  long long int v[N+1];

  for(i=1;i<=N;i++){
    scanf("%lld%lld",&x[i],&v[i]);
  }
  for(i=1;i<=N;i++){
    y[i]=C-x[N+1-i];
  }
  
  long long int A[N+1];
  long long int B[N+1];
  long long int Am[N+1];
  long long int Bm[N+1];

  A[0]=0;
  B[0]=0;
  x[0]=0;
  y[0]=0;
  v[0]=0;
  for(i=1;i<=N;i++){
    A[i]=A[i-1]+v[i]-(x[i]-x[i-1]);
    B[i]=B[i-1]+v[N+1-i]-(y[i]-y[i-1]);
  }

  mkmax(A,Am,N);
  mkmax(B,Bm,N);
  
  long long int cal=0;
  for(i=0;i<N;i++){
    cal=max(cal,B[i]-y[i]+Am[N-i],A[i]-x[i]+Bm[N-i]);
  }
  printf("%lld",cal);
  return 0;
}
  
    
  
  

3 20
2 80
9 120
16 1

191
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>

void prarr(long long int*A,int N){
  int i;
  for(i=0;i<N;i++){
    printf("%lld ",A[i]);
  }
}

long long int max(long long int A,long long int B,long long int C){
  if(B>A){A=B;}
  if(C>A){A=C;}
  return A;
}

void mkmax(long long int*A,long long int *Am,int N){
  int i;
  Am[0]=0;
  for(i=1;i<N+1;i++){
    if(A[i]>Am[i-1]){
      Am[i]=A[i];
    }else{
      Am[i]=Am[i-1];
    }
  }
}

int main(){
  int N,i;
  long long int C;
  scanf("%d%lld",&N,&C);

  long long int x[N+1];
  long long int y[N+1];
  long long int v[N+1];

  for(i=1;i<=N;i++){
    scanf("%lld%lld",&x[i],&v[i]);
  }
  for(i=1;i<=N;i++){
    y[i]=C-x[N+1-i];
  }
  
  long long int A[N+1];
  long long int B[N+1];
  long long int Am[N+1];
  long long int Bm[N+1];

  A[0]=0;
  B[0]=0;
  x[0]=0;
  y[0]=0;
  v[0]=0;
  for(i=1;i<=N;i++){
    A[i]=A[i-1]+v[i]-(x[i]-x[i-1]);
    B[i]=B[i-1]+v[N+1-i]-(y[i]-y[i-1]);
  }

  mkmax(A,Am,N);
  mkmax(B,Bm,N);
  
  long long int cal=0;
  for(i=0;i<N;i++){
    cal=max(cal,B[i]-y[i]+Am[N-i],A[i]-x[i]+Bm[N-i]);
  }
  printf("%lld",cal);
  return 0;
}
  
    
  
  
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld "
	.text
	.globl	prarr
	.type	prarr, @function
prarr:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	prarr, .-prarr
	.globl	max
	.type	max, @function
max:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jle	.L5
	movq	-16(%rbp), %rax
	movq	%rax, -8(%rbp)
.L5:
	movq	-24(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jle	.L6
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
.L6:
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	max, .-max
	.globl	mkmax
	.type	mkmax, @function
mkmax:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movq	-32(%rbp), %rax
	movq	$0, (%rax)
	movl	$1, -4(%rbp)
	jmp	.L9
.L12:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	jmp	.L11
.L10:
	movl	-4(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
.L11:
	addl	$1, -4(%rbp)
.L9:
	movl	-36(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L12
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	mkmax, .-mkmax
	.section	.rodata
.LC1:
	.string	"%d%lld"
.LC2:
	.string	"%lld%lld"
.LC3:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$344, %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	-184(%rbp), %rdx
	leaq	-192(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -168(%rbp)
	movslq	%edx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movslq	%edx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edx, %rax
	leaq	0(,%rax,8), %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
.L14:
	cmpq	%rcx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L16
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L16:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -160(%rbp)
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -152(%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,8), %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
.L17:
	cmpq	%rcx, %rsp
	je	.L18
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L17
.L18:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L19
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L19:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -144(%rbp)
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -136(%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,8), %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
.L20:
	cmpq	%rcx, %rsp
	je	.L21
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L20
.L21:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L22
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L22:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -128(%rbp)
	movl	$1, -188(%rbp)
	jmp	.L23
.L24:
	movl	-188(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-128(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-188(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-160(%rbp), %rax
	addq	%rdx, %rax
	movq	%rcx, %rdx
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -188(%rbp)
.L23:
	movl	-192(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jle	.L24
	movl	$1, -188(%rbp)
	jmp	.L25
.L26:
	movq	-184(%rbp), %rcx
	movl	-192(%rbp), %eax
	addl	$1, %eax
	subl	-188(%rbp), %eax
	movq	-160(%rbp), %rdx
	cltq
	movq	(%rdx,%rax,8), %rax
	subq	%rax, %rcx
	movq	-144(%rbp), %rdx
	movl	-188(%rbp), %eax
	cltq
	movq	%rcx, (%rdx,%rax,8)
	addl	$1, -188(%rbp)
.L25:
	movl	-192(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jle	.L26
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%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,8), %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
.L27:
	cmpq	%rcx, %rsp
	je	.L28
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L27
.L28:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L29
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L29:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -112(%rbp)
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%edx, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movl	-192(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%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,8), %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
.L33:
	cmpq	%rdx, %rsp
	je	.L34
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L33
.L34:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L35
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L35:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movl	-192(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -368(%rbp)
	movq	$0, -360(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -384(%rbp)
	movq	$0, -376(%rbp)
	cltq
	leaq	0(,%rax,8), %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
.L36:
	cmpq	%rdx, %rsp
	je	.L37
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L36
.L37:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L38
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L38:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	movq	$0, (%rax)
	movq	-96(%rbp), %rax
	movq	$0, (%rax)
	movq	-160(%rbp), %rax
	movq	$0, (%rax)
	movq	-144(%rbp), %rax
	movq	$0, (%rax)
	movq	-128(%rbp), %rax
	movq	$0, (%rax)
	movl	$1, -188(%rbp)
	jmp	.L39
.L40:
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-128(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leaq	(%rcx,%rax), %rsi
	movq	-160(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-160(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, %rcx
	movq	-112(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-96(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-192(%rbp), %eax
	addl	$1, %eax
	subl	-188(%rbp), %eax
	movl	%eax, %edx
	movq	-128(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leaq	(%rcx,%rax), %rsi
	movq	-144(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-144(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, %rcx
	movq	-96(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -188(%rbp)
.L39:
	movl	-192(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jle	.L40
	movl	-192(%rbp), %edx
	movq	-80(%rbp), %rcx
	movq	-112(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mkmax
	movl	-192(%rbp), %edx
	movq	-64(%rbp), %rcx
	movq	-96(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mkmax
	movq	$0, -176(%rbp)
	movl	$0, -188(%rbp)
	jmp	.L41
.L42:
	movq	-112(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-160(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movl	-192(%rbp), %eax
	subl	-188(%rbp), %eax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leaq	(%rcx,%rax), %rdx
	movq	-96(%rbp), %rax
	movl	-188(%rbp), %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	-144(%rbp), %rax
	movl	-188(%rbp), %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	subq	%rax, %rsi
	movl	-192(%rbp), %eax
	subl	-188(%rbp), %eax
	movl	%eax, %ecx
	movq	-80(%rbp), %rax
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	leaq	(%rsi,%rax), %rcx
	movq	-176(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, -176(%rbp)
	addl	$1, -188(%rbp)
.L41:
	movl	-192(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jl	.L42
	movq	-176(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%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	.L44
	call	__stack_chk_fail@PLT
.L44:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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
	.section	.rodata
.LC0:
	.string	"%lld "
	.text
	.globl	prarr
	.type	prarr, @function
prarr:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	prarr, .-prarr
	.globl	max
	.type	max, @function
max:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-16(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jle	.L5
	movq	-16(%rbp), %rax
	movq	%rax, -8(%rbp)
.L5:
	movq	-24(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jle	.L6
	movq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
.L6:
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	max, .-max
	.globl	mkmax
	.type	mkmax, @function
mkmax:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movq	-32(%rbp), %rax
	movq	$0, (%rax)
	movl	$1, -4(%rbp)
	jmp	.L9
.L12:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-4(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	jmp	.L11
.L10:
	movl	-4(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
.L11:
	addl	$1, -4(%rbp)
.L9:
	movl	-36(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L12
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	mkmax, .-mkmax
	.section	.rodata
.LC1:
	.string	"%d%lld"
.LC2:
	.string	"%lld%lld"
.LC3:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$344, %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	-184(%rbp), %rdx
	leaq	-192(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -168(%rbp)
	movslq	%edx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movslq	%edx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edx, %rax
	leaq	0(,%rax,8), %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
.L14:
	cmpq	%rcx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L16
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L16:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -160(%rbp)
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -152(%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,8), %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
.L17:
	cmpq	%rcx, %rsp
	je	.L18
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L17
.L18:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L19
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L19:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -144(%rbp)
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -136(%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,8), %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
.L20:
	cmpq	%rcx, %rsp
	je	.L21
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L20
.L21:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L22
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L22:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -128(%rbp)
	movl	$1, -188(%rbp)
	jmp	.L23
.L24:
	movl	-188(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-128(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-188(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-160(%rbp), %rax
	addq	%rdx, %rax
	movq	%rcx, %rdx
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -188(%rbp)
.L23:
	movl	-192(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jle	.L24
	movl	$1, -188(%rbp)
	jmp	.L25
.L26:
	movq	-184(%rbp), %rcx
	movl	-192(%rbp), %eax
	addl	$1, %eax
	subl	-188(%rbp), %eax
	movq	-160(%rbp), %rdx
	cltq
	movq	(%rdx,%rax,8), %rax
	subq	%rax, %rcx
	movq	-144(%rbp), %rdx
	movl	-188(%rbp), %eax
	cltq
	movq	%rcx, (%rdx,%rax,8)
	addl	$1, -188(%rbp)
.L25:
	movl	-192(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jle	.L26
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%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,8), %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
.L27:
	cmpq	%rcx, %rsp
	je	.L28
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L27
.L28:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L29
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L29:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -112(%rbp)
	movl	-192(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -304(%rbp)
	movq	$0, -296(%rbp)
	movslq	%edx, %rax
	movq	%rax, -320(%rbp)
	movq	$0, -312(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movl	-192(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%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,8), %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
.L33:
	cmpq	%rdx, %rsp
	je	.L34
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L33
.L34:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L35
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L35:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movl	-192(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -368(%rbp)
	movq	$0, -360(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -384(%rbp)
	movq	$0, -376(%rbp)
	cltq
	leaq	0(,%rax,8), %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
.L36:
	cmpq	%rdx, %rsp
	je	.L37
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L36
.L37:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L38
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L38:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	-112(%rbp), %rax
	movq	$0, (%rax)
	movq	-96(%rbp), %rax
	movq	$0, (%rax)
	movq	-160(%rbp), %rax
	movq	$0, (%rax)
	movq	-144(%rbp), %rax
	movq	$0, (%rax)
	movq	-128(%rbp), %rax
	movq	$0, (%rax)
	movl	$1, -188(%rbp)
	jmp	.L39
.L40:
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-128(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leaq	(%rcx,%rax), %rsi
	movq	-160(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-160(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, %rcx
	movq	-112(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-96(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-192(%rbp), %eax
	addl	$1, %eax
	subl	-188(%rbp), %eax
	movl	%eax, %edx
	movq	-128(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leaq	(%rcx,%rax), %rsi
	movq	-144(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-188(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-144(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, %rcx
	movq	-96(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -188(%rbp)
.L39:
	movl	-192(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jle	.L40
	movl	-192(%rbp), %edx
	movq	-80(%rbp), %rcx
	movq	-112(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mkmax
	movl	-192(%rbp), %edx
	movq	-64(%rbp), %rcx
	movq	-96(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	mkmax
	movq	$0, -176(%rbp)
	movl	$0, -188(%rbp)
	jmp	.L41
.L42:
	movq	-112(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-160(%rbp), %rax
	movl	-188(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movl	-192(%rbp), %eax
	subl	-188(%rbp), %eax
	movl	%eax, %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	leaq	(%rcx,%rax), %rdx
	movq	-96(%rbp), %rax
	movl	-188(%rbp), %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	-144(%rbp), %rax
	movl	-188(%rbp), %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	subq	%rax, %rsi
	movl	-192(%rbp), %eax
	subl	-188(%rbp), %eax
	movl	%eax, %ecx
	movq	-80(%rbp), %rax
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	leaq	(%rsi,%rax), %rcx
	movq	-176(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	max
	movq	%rax, -176(%rbp)
	addl	$1, -188(%rbp)
.L41:
	movl	-192(%rbp), %eax
	cmpl	%eax, -188(%rbp)
	jl	.L42
	movq	-176(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%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	.L44
	call	__stack_chk_fail@PLT
.L44:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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:
