Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>

int cmpnum(const void * n1, const void * n2)
{
	if (*(long *)n1 > *(long *)n2)
	{
		return 1;
	}
	else if (*(long *)n1 < *(long *)n2)
	{
		return -1;
	}
	else
	{
		return 0;
	}
}

int main(void){

  long n;
  scanf("%ld", &n);
  long a[n], b[n], c[n];
  for (long i = 0; i < n; i++) {
    scanf("%ld", &a[i]);
  }
  for (long i = 0; i < n; i++) {
    scanf("%ld", &b[i]);
  }
  for (long i = 0; i < n; i++) {
    scanf("%ld", &c[i]);
  }
  qsort(a, n, sizeof(long), cmpnum);
  qsort(b, n, sizeof(long), cmpnum);
  qsort(c, n, sizeof(long), cmpnum);

  long a_b[n];
  long mark_a = 0;
  for (long i = 0; i < n; i++) {
    while (mark_a < n) {
      if (a[mark_a] >= b[i]) {
        a_b[i] = mark_a;
        break;
      } else {
        mark_a++;
      }
    }
    if (mark_a == n) {
      a_b[i] = n;
    }
  }

  long a_b_c[n];
  long mark_b = 0;
  long sum = 0;
  for (long i = 0; i < n; i++) {
    a_b_c[i] = sum;
    while (mark_b < n) {
      if (b[mark_b] >= c[i]) {
        break;
      } else {
        a_b_c[i] += a_b[mark_b];
        sum = a_b_c[i];
        mark_b++;
      }
    }
    if (mark_b == n) {
      a_b_c[i] = sum;
    }
  }
  sum = 0;
  for (long i = 0; i < n; i++) {
    sum += a_b_c[i];
  }
  printf("%ld\n", sum);

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmpnum
	.type	cmpnum, @function
cmpnum:
.LFB6:
	.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	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L4
	movl	$-1, %eax
	jmp	.L3
.L4:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpnum, .-cmpnum
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\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	-216(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-216(%rbp), %rdx
	leaq	-1(%rdx), %rax
	movq	%rax, -136(%rbp)
	movq	%rdx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%rdx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movq	%rdx, %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
.L6:
	cmpq	%rcx, %rsp
	je	.L7
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L6
.L7:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L8
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L8:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -128(%rbp)
	movq	-216(%rbp), %rdx
	leaq	-1(%rdx), %rax
	movq	%rax, -120(%rbp)
	movq	%rdx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	%rdx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movq	%rdx, %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
.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, -112(%rbp)
	movq	-216(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -104(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	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
.L12:
	cmpq	%rdx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L13:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L14
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L14:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movq	$0, -208(%rbp)
	jmp	.L15
.L16:
	movq	-208(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-128(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -208(%rbp)
.L15:
	movq	-216(%rbp), %rax
	cmpq	%rax, -208(%rbp)
	jl	.L16
	movq	$0, -200(%rbp)
	jmp	.L17
.L18:
	movq	-200(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -200(%rbp)
.L17:
	movq	-216(%rbp), %rax
	cmpq	%rax, -200(%rbp)
	jl	.L18
	movq	$0, -192(%rbp)
	jmp	.L19
.L20:
	movq	-192(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-96(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -192(%rbp)
.L19:
	movq	-216(%rbp), %rax
	cmpq	%rax, -192(%rbp)
	jl	.L20
	movq	-216(%rbp), %rax
	movq	%rax, %rsi
	movq	-128(%rbp), %rax
	leaq	cmpnum(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-216(%rbp), %rax
	movq	%rax, %rsi
	movq	-112(%rbp), %rax
	leaq	cmpnum(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-216(%rbp), %rax
	movq	%rax, %rsi
	movq	-96(%rbp), %rax
	leaq	cmpnum(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-216(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -88(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -320(%rbp)
	movq	$0, -312(%rbp)
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movq	$0, -184(%rbp)
	movq	$0, -176(%rbp)
	jmp	.L24
.L28:
	movq	-128(%rbp), %rax
	movq	-184(%rbp), %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-112(%rbp), %rax
	movq	-176(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, %rcx
	jl	.L26
	movq	-80(%rbp), %rax
	movq	-176(%rbp), %rdx
	movq	-184(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	jmp	.L27
.L26:
	addq	$1, -184(%rbp)
.L25:
	movq	-216(%rbp), %rax
	cmpq	%rax, -184(%rbp)
	jl	.L28
.L27:
	movq	-216(%rbp), %rax
	cmpq	%rax, -184(%rbp)
	jne	.L29
	movq	-216(%rbp), %rcx
	movq	-80(%rbp), %rax
	movq	-176(%rbp), %rdx
	movq	%rcx, (%rax,%rdx,8)
.L29:
	addq	$1, -176(%rbp)
.L24:
	movq	-216(%rbp), %rax
	cmpq	%rax, -176(%rbp)
	jl	.L25
	movq	-216(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -72(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -336(%rbp)
	movq	$0, -328(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -352(%rbp)
	movq	$0, -344(%rbp)
	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
.L31:
	cmpq	%rdx, %rsp
	je	.L32
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L31
.L32:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L33
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L33:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	$0, -168(%rbp)
	movq	$0, -160(%rbp)
	movq	$0, -152(%rbp)
	jmp	.L34
.L40:
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	-160(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	jmp	.L35
.L38:
	movq	-112(%rbp), %rax
	movq	-168(%rbp), %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-96(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, %rcx
	jge	.L45
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-80(%rbp), %rax
	movq	-168(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rax, %rcx
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -160(%rbp)
	addq	$1, -168(%rbp)
.L35:
	movq	-216(%rbp), %rax
	cmpq	%rax, -168(%rbp)
	jl	.L38
	jmp	.L37
.L45:
	nop
.L37:
	movq	-216(%rbp), %rax
	cmpq	%rax, -168(%rbp)
	jne	.L39
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	-160(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
.L39:
	addq	$1, -152(%rbp)
.L34:
	movq	-216(%rbp), %rax
	cmpq	%rax, -152(%rbp)
	jl	.L40
	movq	$0, -160(%rbp)
	movq	$0, -144(%rbp)
	jmp	.L41
.L42:
	movq	-64(%rbp), %rax
	movq	-144(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rax, -160(%rbp)
	addq	$1, -144(%rbp)
.L41:
	movq	-216(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jl	.L42
	movq	-160(%rbp), %rax
	movq	%rax, %rsi
	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	.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
.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	cmpnum
	.type	cmpnum, @function
cmpnum:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rdx
	movl	$1, %eax
	cmpq	%rdx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	cmpnum, .-cmpnum
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB2:
	.section	.text.startup,"ax",@progbits
.LHOTB2:
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC0(%rip), %r14
	leaq	-64(%rbp), %rsi
	pushq	%r13
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.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
	movq	-64(%rbp), %rsi
	movq	%rsp, %rcx
	leaq	15(,%rsi,8), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
	cmpq	%rcx, %rsp
	je	.L7
.L92:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L92
.L7:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L93
.L8:
	movq	%rax, %rdi
	movq	%rax, %rdx
	movq	%rsp, %rcx
	movq	%rsp, %r13
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
.L9:
	cmpq	%rcx, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L93:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L8
.L10:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L94
.L11:
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rcx
.L12:
	cmpq	%rcx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L94:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L11
.L13:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L14
	orq	$0, -8(%rsp,%rax)
.L14:
	movq	%rsp, -72(%rbp)
	testq	%rsi, %rsi
	jle	.L18
	movq	%r13, %rbx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %r15
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rsi
	addq	$8, %rbx
	cmpq	%r15, %rsi
	jg	.L16
	testq	%rsi, %rsi
	jle	.L18
	movq	%r12, %rbx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %r15
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rsi
	addq	$8, %rbx
	cmpq	%r15, %rsi
	jg	.L17
	testq	%rsi, %rsi
	jle	.L18
	movq	-72(%rbp), %rbx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %r15
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rsi
	addq	$8, %rbx
	cmpq	%r15, %rsi
	jg	.L19
.L18:
	leaq	cmpnum(%rip), %r14
	movl	$8, %edx
	movq	%r13, %rdi
	movq	%r14, %rcx
	call	qsort@PLT
	movq	-64(%rbp), %rsi
	movq	%r14, %rcx
	movq	%r12, %rdi
	movl	$8, %edx
	call	qsort@PLT
	movq	-64(%rbp), %rsi
	movq	-72(%rbp), %rdi
	movq	%r14, %rcx
	movl	$8, %edx
	call	qsort@PLT
	movq	-64(%rbp), %rcx
	movq	%rsp, %rdx
	leaq	15(,%rcx,8), %r9
	movq	%r9, %rsi
	movq	%r9, %rax
	andq	$-4096, %rsi
	andq	$-16, %rax
	subq	%rsi, %rdx
	cmpq	%rdx, %rsp
	je	.L21
.L95:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdx, %rsp
	jne	.L95
.L21:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L22
	orq	$0, -8(%rsp,%rax)
.L22:
	movq	%rsp, %r8
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	testq	%rcx, %rcx
	jle	.L24
	cmpq	%rdi, %rcx
	jle	.L96
	.p2align 4,,10
	.p2align 3
.L34:
	movq	(%r12,%rsi,8), %rdx
	movq	%rdi, %rax
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rax
	cmpq	%rax, %rcx
	je	.L29
.L28:
	cmpq	%rdx, 0(%r13,%rax,8)
	jl	.L25
	movq	%rax, (%r8,%rsi,8)
	addq	$1, %rsi
	cmpq	%rsi, %rcx
	je	.L27
.L26:
	movq	%rax, %rdi
	cmpq	%rdi, %rcx
	jg	.L34
.L96:
	je	.L97
	addq	$1, %rsi
	movq	%rdi, %rax
	cmpq	%rsi, %rcx
	jne	.L98
	.p2align 4,,10
	.p2align 3
.L27:
	movq	%r9, %rax
	movq	%rsp, %rdx
	andq	$-4096, %r9
	andq	$-16, %rax
	subq	%r9, %rdx
.L51:
	cmpq	%rdx, %rsp
	je	.L52
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L51
.L97:
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%rax, (%r8,%rsi,8)
	addq	$1, %rsi
	cmpq	%rsi, %rcx
	je	.L27
.L98:
	cmpq	%rdi, %rcx
	jg	.L26
.L31:
	cmpq	%rax, %rcx
	jne	.L32
.L99:
	movq	%rcx, (%r8,%rsi,8)
	addq	$1, %rsi
	cmpq	%rsi, %rcx
	jle	.L27
	cmpq	%rax, %rcx
	je	.L99
.L32:
	addq	$1, %rsi
	cmpq	%rsi, %rcx
	jg	.L31
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L40:
	cmpq	$1, %rcx
	je	.L59
	movq	%rcx, %rsi
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	shrq	%rsi
	.p2align 4,,10
	.p2align 3
.L48:
	movq	%rax, %rdx
	addq	$1, %rax
	salq	$4, %rdx
	movdqu	(%r11,%rdx), %xmm1
	paddq	%xmm1, %xmm0
	cmpq	%rsi, %rax
	jne	.L48
	movdqa	%xmm0, %xmm1
	movq	%rcx, %rax
	psrldq	$8, %xmm1
	andq	$-2, %rax
	andl	$1, %ecx
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rdx
	je	.L24
.L47:
	addq	(%r11,%rax,8), %rdx
.L24:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L100
	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
.L52:
	.cfi_restore_state
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L53
	orq	$0, -8(%rsp,%rax)
.L53:
	movq	%rsp, %r11
	xorl	%edx, %edx
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	movq	%r11, %rsi
	movq	%rdx, (%rsi)
	cmpq	%r10, %rcx
	jle	.L58
	.p2align 4,,10
	.p2align 3
.L102:
	movq	-72(%rbp), %rax
	movq	(%rax,%r9,8), %rdi
	movq	%r10, %rax
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L101:
	addq	(%r8,%rax,8), %rdx
	addq	$1, %rax
	movq	%rdx, (%rsi)
	cmpq	%rax, %rcx
	je	.L44
.L43:
	cmpq	%rdi, (%r12,%rax,8)
	jl	.L101
.L42:
	cmpq	%rax, %rcx
	je	.L44
.L45:
	addq	$1, %r9
	cmpq	%r9, %rcx
	je	.L40
	addq	$8, %rsi
	cmpq	%r10, %rcx
	jle	.L87
	movq	%rax, %r10
	movq	%rdx, (%rsi)
	cmpq	%r10, %rcx
	jg	.L102
.L58:
	movq	%r10, %rax
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L44:
	movq	%rdx, (%rsi)
	jmp	.L45
.L59:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L47
.L100:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	main.cold, @function
main.cold:
.LFSB40:
.L87:
	.cfi_def_cfa 6, 16
	.cfi_offset 3, -56
	.cfi_offset 6, -16
	.cfi_offset 12, -48
	.cfi_offset 13, -40
	.cfi_offset 14, -32
	.cfi_offset 15, -24
	movq	%rcx, %rsi
	movl	$1, %eax
	subq	%r9, %rsi
	cmpq	%r9, %rcx
	cmovg	%rsi, %rax
	subq	$1, %rsi
	je	.L37
	movq	%rax, %r8
	movq	%rdx, %xmm0
	leaq	(%r11,%r9,8), %rdi
	xorl	%esi, %esi
	shrq	%r8
	punpcklqdq	%xmm0, %xmm0
.L38:
	movq	%rsi, %r10
	addq	$1, %rsi
	salq	$4, %r10
	movups	%xmm0, (%rdi,%r10)
	cmpq	%rsi, %r8
	jne	.L38
	movq	%rax, %rsi
	andq	$-2, %rsi
	addq	%rsi, %r9
	cmpq	%rsi, %rax
	je	.L40
.L37:
	movq	%rdx, (%r11,%r9,8)
	jmp	.L40
	.cfi_endproc
.LFE40:
	.section	.text.startup
	.size	main, .-main
	.section	.text.unlikely
	.size	main.cold, .-main.cold
.LCOLDE2:
	.section	.text.startup
.LHOTE2:
	.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	cmpnum
	.type	cmpnum, @function
cmpnum:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rdx
	movl	$1, %eax
	cmpq	%rdx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	cmpnum, .-cmpnum
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB2:
	.section	.text.startup,"ax",@progbits
.LHOTB2:
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC0(%rip), %r14
	leaq	-64(%rbp), %rsi
	pushq	%r13
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.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
	movq	-64(%rbp), %rsi
	movq	%rsp, %rcx
	leaq	15(,%rsi,8), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
	cmpq	%rcx, %rsp
	je	.L7
.L92:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L92
.L7:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L93
.L8:
	movq	%rax, %rdi
	movq	%rax, %rdx
	movq	%rsp, %rcx
	movq	%rsp, %r13
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
.L9:
	cmpq	%rcx, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L93:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L8
.L10:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L94
.L11:
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rcx
.L12:
	cmpq	%rcx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L94:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L11
.L13:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L14
	orq	$0, -8(%rsp,%rax)
.L14:
	movq	%rsp, -72(%rbp)
	testq	%rsi, %rsi
	jle	.L18
	movq	%r13, %rbx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %r15
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rsi
	addq	$8, %rbx
	cmpq	%r15, %rsi
	jg	.L16
	testq	%rsi, %rsi
	jle	.L18
	movq	%r12, %rbx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %r15
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rsi
	addq	$8, %rbx
	cmpq	%r15, %rsi
	jg	.L17
	testq	%rsi, %rsi
	jle	.L18
	movq	-72(%rbp), %rbx
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$1, %r15
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rsi
	addq	$8, %rbx
	cmpq	%r15, %rsi
	jg	.L19
.L18:
	leaq	cmpnum(%rip), %r14
	movl	$8, %edx
	movq	%r13, %rdi
	movq	%r14, %rcx
	call	qsort@PLT
	movq	-64(%rbp), %rsi
	movq	%r14, %rcx
	movq	%r12, %rdi
	movl	$8, %edx
	call	qsort@PLT
	movq	-64(%rbp), %rsi
	movq	-72(%rbp), %rdi
	movq	%r14, %rcx
	movl	$8, %edx
	call	qsort@PLT
	movq	-64(%rbp), %rcx
	movq	%rsp, %rdx
	leaq	15(,%rcx,8), %r9
	movq	%r9, %rsi
	movq	%r9, %rax
	andq	$-4096, %rsi
	andq	$-16, %rax
	subq	%rsi, %rdx
	cmpq	%rdx, %rsp
	je	.L21
.L95:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdx, %rsp
	jne	.L95
.L21:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L22
	orq	$0, -8(%rsp,%rax)
.L22:
	movq	%rsp, %r8
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	testq	%rcx, %rcx
	jle	.L24
	cmpq	%rdi, %rcx
	jle	.L96
	.p2align 4,,10
	.p2align 3
.L34:
	movq	(%r12,%rsi,8), %rdx
	movq	%rdi, %rax
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rax
	cmpq	%rax, %rcx
	je	.L29
.L28:
	cmpq	%rdx, 0(%r13,%rax,8)
	jl	.L25
	movq	%rax, (%r8,%rsi,8)
	addq	$1, %rsi
	cmpq	%rsi, %rcx
	je	.L27
.L26:
	movq	%rax, %rdi
	cmpq	%rdi, %rcx
	jg	.L34
.L96:
	je	.L97
	addq	$1, %rsi
	movq	%rdi, %rax
	cmpq	%rsi, %rcx
	jne	.L98
	.p2align 4,,10
	.p2align 3
.L27:
	movq	%r9, %rax
	movq	%rsp, %rdx
	andq	$-4096, %r9
	andq	$-16, %rax
	subq	%r9, %rdx
.L51:
	cmpq	%rdx, %rsp
	je	.L52
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L51
.L97:
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%rax, (%r8,%rsi,8)
	addq	$1, %rsi
	cmpq	%rsi, %rcx
	je	.L27
.L98:
	cmpq	%rdi, %rcx
	jg	.L26
.L31:
	cmpq	%rax, %rcx
	jne	.L32
.L99:
	movq	%rcx, (%r8,%rsi,8)
	addq	$1, %rsi
	cmpq	%rsi, %rcx
	jle	.L27
	cmpq	%rax, %rcx
	je	.L99
.L32:
	addq	$1, %rsi
	cmpq	%rsi, %rcx
	jg	.L31
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L40:
	cmpq	$1, %rcx
	je	.L59
	movq	%rcx, %rsi
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	shrq	%rsi
	.p2align 4,,10
	.p2align 3
.L48:
	movq	%rax, %rdx
	addq	$1, %rax
	salq	$4, %rdx
	movdqu	(%r11,%rdx), %xmm1
	paddq	%xmm1, %xmm0
	cmpq	%rsi, %rax
	jne	.L48
	movdqa	%xmm0, %xmm1
	movq	%rcx, %rax
	psrldq	$8, %xmm1
	andq	$-2, %rax
	andl	$1, %ecx
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rdx
	je	.L24
.L47:
	addq	(%r11,%rax,8), %rdx
.L24:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L100
	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
.L52:
	.cfi_restore_state
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L53
	orq	$0, -8(%rsp,%rax)
.L53:
	movq	%rsp, %r11
	xorl	%edx, %edx
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	movq	%r11, %rsi
	movq	%rdx, (%rsi)
	cmpq	%r10, %rcx
	jle	.L58
	.p2align 4,,10
	.p2align 3
.L102:
	movq	-72(%rbp), %rax
	movq	(%rax,%r9,8), %rdi
	movq	%r10, %rax
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L101:
	addq	(%r8,%rax,8), %rdx
	addq	$1, %rax
	movq	%rdx, (%rsi)
	cmpq	%rax, %rcx
	je	.L44
.L43:
	cmpq	%rdi, (%r12,%rax,8)
	jl	.L101
.L42:
	cmpq	%rax, %rcx
	je	.L44
.L45:
	addq	$1, %r9
	cmpq	%r9, %rcx
	je	.L40
	addq	$8, %rsi
	cmpq	%r10, %rcx
	jle	.L87
	movq	%rax, %r10
	movq	%rdx, (%rsi)
	cmpq	%r10, %rcx
	jg	.L102
.L58:
	movq	%r10, %rax
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L44:
	movq	%rdx, (%rsi)
	jmp	.L45
.L59:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L47
.L100:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	main.cold, @function
main.cold:
.LFSB40:
.L87:
	.cfi_def_cfa 6, 16
	.cfi_offset 3, -56
	.cfi_offset 6, -16
	.cfi_offset 12, -48
	.cfi_offset 13, -40
	.cfi_offset 14, -32
	.cfi_offset 15, -24
	movq	%rcx, %rsi
	movl	$1, %eax
	subq	%r9, %rsi
	cmpq	%r9, %rcx
	cmovg	%rsi, %rax
	subq	$1, %rsi
	je	.L37
	movq	%rax, %r8
	movq	%rdx, %xmm0
	leaq	(%r11,%r9,8), %rdi
	xorl	%esi, %esi
	shrq	%r8
	punpcklqdq	%xmm0, %xmm0
.L38:
	movq	%rsi, %r10
	addq	$1, %rsi
	salq	$4, %r10
	movups	%xmm0, (%rdi,%r10)
	cmpq	%rsi, %r8
	jne	.L38
	movq	%rax, %rsi
	andq	$-2, %rsi
	addq	%rsi, %r9
	cmpq	%rsi, %rax
	je	.L40
.L37:
	movq	%rdx, (%r11,%r9,8)
	jmp	.L40
	.cfi_endproc
.LFE40:
	.section	.text.startup
	.size	main, .-main
	.section	.text.unlikely
	.size	main.cold, .-main.cold
.LCOLDE2:
	.section	.text.startup
.LHOTE2:
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

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

int cmpnum(const void * n1, const void * n2)
{
	if (*(long *)n1 > *(long *)n2)
	{
		return 1;
	}
	else if (*(long *)n1 < *(long *)n2)
	{
		return -1;
	}
	else
	{
		return 0;
	}
}

int main(void){

  long n;
  scanf("%ld", &n);
  long a[n], b[n], c[n];
  for (long i = 0; i < n; i++) {
    scanf("%ld", &a[i]);
  }
  for (long i = 0; i < n; i++) {
    scanf("%ld", &b[i]);
  }
  for (long i = 0; i < n; i++) {
    scanf("%ld", &c[i]);
  }
  qsort(a, n, sizeof(long), cmpnum);
  qsort(b, n, sizeof(long), cmpnum);
  qsort(c, n, sizeof(long), cmpnum);

  long a_b[n];
  long mark_a = 0;
  for (long i = 0; i < n; i++) {
    while (mark_a < n) {
      if (a[mark_a] >= b[i]) {
        a_b[i] = mark_a;
        break;
      } else {
        mark_a++;
      }
    }
    if (mark_a == n) {
      a_b[i] = n;
    }
  }

  long a_b_c[n];
  long mark_b = 0;
  long sum = 0;
  for (long i = 0; i < n; i++) {
    a_b_c[i] = sum;
    while (mark_b < n) {
      if (b[mark_b] >= c[i]) {
        break;
      } else {
        a_b_c[i] += a_b[mark_b];
        sum = a_b_c[i];
        mark_b++;
      }
    }
    if (mark_b == n) {
      a_b_c[i] = sum;
    }
  }
  sum = 0;
  for (long i = 0; i < n; i++) {
    sum += a_b_c[i];
  }
  printf("%ld\n", sum);

  return 0;
}
2
1 5
2 4
3 6

3

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>

int cmpnum(const void * n1, const void * n2)
{
	if (*(long *)n1 > *(long *)n2)
	{
		return 1;
	}
	else if (*(long *)n1 < *(long *)n2)
	{
		return -1;
	}
	else
	{
		return 0;
	}
}

int main(void){

  long n;
  scanf("%ld", &n);
  long a[n], b[n], c[n];
  for (long i = 0; i < n; i++) {
    scanf("%ld", &a[i]);
  }
  for (long i = 0; i < n; i++) {
    scanf("%ld", &b[i]);
  }
  for (long i = 0; i < n; i++) {
    scanf("%ld", &c[i]);
  }
  qsort(a, n, sizeof(long), cmpnum);
  qsort(b, n, sizeof(long), cmpnum);
  qsort(c, n, sizeof(long), cmpnum);

  long a_b[n];
  long mark_a = 0;
  for (long i = 0; i < n; i++) {
    while (mark_a < n) {
      if (a[mark_a] >= b[i]) {
        a_b[i] = mark_a;
        break;
      } else {
        mark_a++;
      }
    }
    if (mark_a == n) {
      a_b[i] = n;
    }
  }

  long a_b_c[n];
  long mark_b = 0;
  long sum = 0;
  for (long i = 0; i < n; i++) {
    a_b_c[i] = sum;
    while (mark_b < n) {
      if (b[mark_b] >= c[i]) {
        break;
      } else {
        a_b_c[i] += a_b[mark_b];
        sum = a_b_c[i];
        mark_b++;
      }
    }
    if (mark_b == n) {
      a_b_c[i] = sum;
    }
  }
  sum = 0;
  for (long i = 0; i < n; i++) {
    sum += a_b_c[i];
  }
  printf("%ld\n", sum);

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmpnum
	.type	cmpnum, @function
cmpnum:
.LFB6:
	.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	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L4
	movl	$-1, %eax
	jmp	.L3
.L4:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpnum, .-cmpnum
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\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	-216(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-216(%rbp), %rdx
	leaq	-1(%rdx), %rax
	movq	%rax, -136(%rbp)
	movq	%rdx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%rdx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movq	%rdx, %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
.L6:
	cmpq	%rcx, %rsp
	je	.L7
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L6
.L7:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L8
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L8:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -128(%rbp)
	movq	-216(%rbp), %rdx
	leaq	-1(%rdx), %rax
	movq	%rax, -120(%rbp)
	movq	%rdx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	%rdx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movq	%rdx, %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
.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, -112(%rbp)
	movq	-216(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -104(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	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
.L12:
	cmpq	%rdx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L13:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L14
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L14:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movq	$0, -208(%rbp)
	jmp	.L15
.L16:
	movq	-208(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-128(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -208(%rbp)
.L15:
	movq	-216(%rbp), %rax
	cmpq	%rax, -208(%rbp)
	jl	.L16
	movq	$0, -200(%rbp)
	jmp	.L17
.L18:
	movq	-200(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -200(%rbp)
.L17:
	movq	-216(%rbp), %rax
	cmpq	%rax, -200(%rbp)
	jl	.L18
	movq	$0, -192(%rbp)
	jmp	.L19
.L20:
	movq	-192(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-96(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -192(%rbp)
.L19:
	movq	-216(%rbp), %rax
	cmpq	%rax, -192(%rbp)
	jl	.L20
	movq	-216(%rbp), %rax
	movq	%rax, %rsi
	movq	-128(%rbp), %rax
	leaq	cmpnum(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-216(%rbp), %rax
	movq	%rax, %rsi
	movq	-112(%rbp), %rax
	leaq	cmpnum(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-216(%rbp), %rax
	movq	%rax, %rsi
	movq	-96(%rbp), %rax
	leaq	cmpnum(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-216(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -88(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -320(%rbp)
	movq	$0, -312(%rbp)
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movq	$0, -184(%rbp)
	movq	$0, -176(%rbp)
	jmp	.L24
.L28:
	movq	-128(%rbp), %rax
	movq	-184(%rbp), %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-112(%rbp), %rax
	movq	-176(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, %rcx
	jl	.L26
	movq	-80(%rbp), %rax
	movq	-176(%rbp), %rdx
	movq	-184(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	jmp	.L27
.L26:
	addq	$1, -184(%rbp)
.L25:
	movq	-216(%rbp), %rax
	cmpq	%rax, -184(%rbp)
	jl	.L28
.L27:
	movq	-216(%rbp), %rax
	cmpq	%rax, -184(%rbp)
	jne	.L29
	movq	-216(%rbp), %rcx
	movq	-80(%rbp), %rax
	movq	-176(%rbp), %rdx
	movq	%rcx, (%rax,%rdx,8)
.L29:
	addq	$1, -176(%rbp)
.L24:
	movq	-216(%rbp), %rax
	cmpq	%rax, -176(%rbp)
	jl	.L25
	movq	-216(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -72(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -336(%rbp)
	movq	$0, -328(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -352(%rbp)
	movq	$0, -344(%rbp)
	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
.L31:
	cmpq	%rdx, %rsp
	je	.L32
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L31
.L32:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L33
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L33:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	$0, -168(%rbp)
	movq	$0, -160(%rbp)
	movq	$0, -152(%rbp)
	jmp	.L34
.L40:
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	-160(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	jmp	.L35
.L38:
	movq	-112(%rbp), %rax
	movq	-168(%rbp), %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-96(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, %rcx
	jge	.L45
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-80(%rbp), %rax
	movq	-168(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rax, %rcx
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -160(%rbp)
	addq	$1, -168(%rbp)
.L35:
	movq	-216(%rbp), %rax
	cmpq	%rax, -168(%rbp)
	jl	.L38
	jmp	.L37
.L45:
	nop
.L37:
	movq	-216(%rbp), %rax
	cmpq	%rax, -168(%rbp)
	jne	.L39
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	-160(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
.L39:
	addq	$1, -152(%rbp)
.L34:
	movq	-216(%rbp), %rax
	cmpq	%rax, -152(%rbp)
	jl	.L40
	movq	$0, -160(%rbp)
	movq	$0, -144(%rbp)
	jmp	.L41
.L42:
	movq	-64(%rbp), %rax
	movq	-144(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rax, -160(%rbp)
	addq	$1, -144(%rbp)
.L41:
	movq	-216(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jl	.L42
	movq	-160(%rbp), %rax
	movq	%rax, %rsi
	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	.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
.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	cmpnum
	.type	cmpnum, @function
cmpnum:
.LFB6:
	.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	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L4
	movl	$-1, %eax
	jmp	.L3
.L4:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpnum, .-cmpnum
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\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	-216(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-216(%rbp), %rdx
	leaq	-1(%rdx), %rax
	movq	%rax, -136(%rbp)
	movq	%rdx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%rdx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movq	%rdx, %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
.L6:
	cmpq	%rcx, %rsp
	je	.L7
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L6
.L7:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L8
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L8:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -128(%rbp)
	movq	-216(%rbp), %rdx
	leaq	-1(%rdx), %rax
	movq	%rax, -120(%rbp)
	movq	%rdx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	%rdx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movq	%rdx, %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
.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, -112(%rbp)
	movq	-216(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -104(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	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
.L12:
	cmpq	%rdx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L13:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L14
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L14:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movq	$0, -208(%rbp)
	jmp	.L15
.L16:
	movq	-208(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-128(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -208(%rbp)
.L15:
	movq	-216(%rbp), %rax
	cmpq	%rax, -208(%rbp)
	jl	.L16
	movq	$0, -200(%rbp)
	jmp	.L17
.L18:
	movq	-200(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -200(%rbp)
.L17:
	movq	-216(%rbp), %rax
	cmpq	%rax, -200(%rbp)
	jl	.L18
	movq	$0, -192(%rbp)
	jmp	.L19
.L20:
	movq	-192(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-96(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -192(%rbp)
.L19:
	movq	-216(%rbp), %rax
	cmpq	%rax, -192(%rbp)
	jl	.L20
	movq	-216(%rbp), %rax
	movq	%rax, %rsi
	movq	-128(%rbp), %rax
	leaq	cmpnum(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-216(%rbp), %rax
	movq	%rax, %rsi
	movq	-112(%rbp), %rax
	leaq	cmpnum(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-216(%rbp), %rax
	movq	%rax, %rsi
	movq	-96(%rbp), %rax
	leaq	cmpnum(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-216(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -88(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -320(%rbp)
	movq	$0, -312(%rbp)
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movq	$0, -184(%rbp)
	movq	$0, -176(%rbp)
	jmp	.L24
.L28:
	movq	-128(%rbp), %rax
	movq	-184(%rbp), %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-112(%rbp), %rax
	movq	-176(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, %rcx
	jl	.L26
	movq	-80(%rbp), %rax
	movq	-176(%rbp), %rdx
	movq	-184(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	jmp	.L27
.L26:
	addq	$1, -184(%rbp)
.L25:
	movq	-216(%rbp), %rax
	cmpq	%rax, -184(%rbp)
	jl	.L28
.L27:
	movq	-216(%rbp), %rax
	cmpq	%rax, -184(%rbp)
	jne	.L29
	movq	-216(%rbp), %rcx
	movq	-80(%rbp), %rax
	movq	-176(%rbp), %rdx
	movq	%rcx, (%rax,%rdx,8)
.L29:
	addq	$1, -176(%rbp)
.L24:
	movq	-216(%rbp), %rax
	cmpq	%rax, -176(%rbp)
	jl	.L25
	movq	-216(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -72(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -336(%rbp)
	movq	$0, -328(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -352(%rbp)
	movq	$0, -344(%rbp)
	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
.L31:
	cmpq	%rdx, %rsp
	je	.L32
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L31
.L32:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L33
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L33:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	$0, -168(%rbp)
	movq	$0, -160(%rbp)
	movq	$0, -152(%rbp)
	jmp	.L34
.L40:
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	-160(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	jmp	.L35
.L38:
	movq	-112(%rbp), %rax
	movq	-168(%rbp), %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-96(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, %rcx
	jge	.L45
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-80(%rbp), %rax
	movq	-168(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rax, %rcx
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -160(%rbp)
	addq	$1, -168(%rbp)
.L35:
	movq	-216(%rbp), %rax
	cmpq	%rax, -168(%rbp)
	jl	.L38
	jmp	.L37
.L45:
	nop
.L37:
	movq	-216(%rbp), %rax
	cmpq	%rax, -168(%rbp)
	jne	.L39
	movq	-64(%rbp), %rax
	movq	-152(%rbp), %rdx
	movq	-160(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
.L39:
	addq	$1, -152(%rbp)
.L34:
	movq	-216(%rbp), %rax
	cmpq	%rax, -152(%rbp)
	jl	.L40
	movq	$0, -160(%rbp)
	movq	$0, -144(%rbp)
	jmp	.L41
.L42:
	movq	-64(%rbp), %rax
	movq	-144(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	addq	%rax, -160(%rbp)
	addq	$1, -144(%rbp)
.L41:
	movq	-216(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jl	.L42
	movq	-160(%rbp), %rax
	movq	%rax, %rsi
	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	.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
.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:
