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

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

static int cmp_int(const void* v1, const void* v2)
{
  const long long _v1 = *((const long long*)v1);
  const long long _v2 = *((const long long*)v2);

  if ( _v1 > _v2 ) {
    return -1;
  } else if ( _v1 < _v2 ) {
    return 1;
  } else {
    return 0;
  }
}
int main(void)
{
  long long a[100002], m[2]={0};
  int n, i, j, c;
  c = 1; j = 0;
  scanf("%d", &n);

  for(i = 0; i < n; i++)
    scanf("%lld", &a[i]);

  qsort(a, n, sizeof(long long), cmp_int);
  
  i = 0;
  do{
    while(a[i] == a[i+1]){
      c++;
      i++;
    }
    if(2 <= c && c < 4){
      m[j] = a[i];
      j++;
      c = 1;
    }else if(4 <= c){
      if(j==0){
      m[0] = a[i];
      m[1] = a[i];
      j=2;
      }else{
	m[j] = a[i];
	j++;
      }
    }
    i++;
    if(i == n) break;
  }while(j != 2);

  printf("%llu\n", m[0]*m[1]);

  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.type	cmp_int, @function
cmp_int:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	movl	$-1, %edx
	setl	%al
	movzbl	%al, %eax
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp_int, .-cmp_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%llu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1352, %rsp
	.cfi_def_cfa_offset 800112
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	leaq	32(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	addq	$8, %r12
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	movl	$8, %edx
	movq	%rbx, %rdi
	leaq	cmp_int(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %r9d
	movq	32(%rsp), %rdx
	xorl	%edi, %edi
	movl	$1, %eax
	movl	$1, %esi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	leal	-2(%rsi), %r8d
	cmpl	$1, %r8d
	jbe	.L25
	cmpl	$3, %esi
	jle	.L11
	testl	%edi, %edi
	je	.L16
	movslq	%edi, %r8
	addl	$1, %edi
	movq	%rdx, 16(%rsp,%r8,8)
.L11:
	cmpl	%eax, %r9d
	je	.L17
.L27:
	cmpl	$2, %edi
	je	.L17
.L13:
	addq	$1, %rax
	movq	%rcx, %rdx
.L8:
	movq	(%rbx,%rax,8), %rcx
	cmpq	%rdx, %rcx
	jne	.L26
	addl	$1, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%edi, %rsi
	addl	$1, %edi
	movq	%rdx, 16(%rsp,%rsi,8)
	movl	$1, %esi
	cmpl	%eax, %r9d
	jne	.L27
.L17:
	movq	16(%rsp), %rdx
	movq	24(%rsp), %rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rdx, %rax
.L12:
	imulq	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$800072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.type	cmp_int, @function
cmp_int:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	movl	$-1, %edx
	setl	%al
	movzbl	%al, %eax
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp_int, .-cmp_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%llu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1352, %rsp
	.cfi_def_cfa_offset 800112
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	leaq	32(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	addq	$8, %r12
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	movl	$8, %edx
	movq	%rbx, %rdi
	leaq	cmp_int(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %r9d
	movq	32(%rsp), %rdx
	xorl	%edi, %edi
	movl	$1, %eax
	movl	$1, %esi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	leal	-2(%rsi), %r8d
	cmpl	$1, %r8d
	jbe	.L25
	cmpl	$3, %esi
	jle	.L11
	testl	%edi, %edi
	je	.L16
	movslq	%edi, %r8
	addl	$1, %edi
	movq	%rdx, 16(%rsp,%r8,8)
.L11:
	cmpl	%eax, %r9d
	je	.L17
.L27:
	cmpl	$2, %edi
	je	.L17
.L13:
	addq	$1, %rax
	movq	%rcx, %rdx
.L8:
	movq	(%rbx,%rax,8), %rcx
	cmpq	%rdx, %rcx
	jne	.L26
	addl	$1, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%edi, %rsi
	addl	$1, %edi
	movq	%rdx, 16(%rsp,%rsi,8)
	movl	$1, %esi
	cmpl	%eax, %r9d
	jne	.L27
.L17:
	movq	16(%rsp), %rdx
	movq	24(%rsp), %rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rdx, %rax
.L12:
	imulq	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$800072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.type	cmp_int, @function
cmp_int:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	movl	$-1, %edx
	setl	%al
	movzbl	%al, %eax
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp_int, .-cmp_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%llu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1352, %rsp
	.cfi_def_cfa_offset 800112
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	leaq	32(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	addq	$8, %r12
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	movl	$8, %edx
	movq	%rbx, %rdi
	leaq	cmp_int(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %r9d
	movq	32(%rsp), %rdx
	xorl	%edi, %edi
	movl	$1, %eax
	movl	$1, %esi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	leal	-2(%rsi), %r8d
	cmpl	$1, %r8d
	jbe	.L25
	cmpl	$3, %esi
	jle	.L11
	testl	%edi, %edi
	je	.L16
	movslq	%edi, %r8
	addl	$1, %edi
	movq	%rdx, 16(%rsp,%r8,8)
.L11:
	cmpl	%eax, %r9d
	je	.L17
.L27:
	cmpl	$2, %edi
	je	.L17
.L13:
	addq	$1, %rax
	movq	%rcx, %rdx
.L8:
	movq	(%rbx,%rax,8), %rcx
	cmpq	%rdx, %rcx
	jne	.L26
	addl	$1, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%edi, %rsi
	addl	$1, %edi
	movq	%rdx, 16(%rsp,%rsi,8)
	movl	$1, %esi
	cmpl	%eax, %r9d
	jne	.L27
.L17:
	movq	16(%rsp), %rdx
	movq	24(%rsp), %rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rdx, %rax
.L12:
	imulq	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$800072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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:
```
```c
#include <stdio.h>
#include <stdlib.h>

static int cmp_int(const void* v1, const void* v2)
{
  const long long _v1 = *((const long long*)v1);
  const long long _v2 = *((const long long*)v2);

  if ( _v1 > _v2 ) {
    return -1;
  } else if ( _v1 < _v2 ) {
    return 1;
  } else {
    return 0;
  }
}
int main(void)
{
  long long a[100002], m[2]={0};
  int n, i, j, c;
  c = 1; j = 0;
  scanf("%d", &n);

  for(i = 0; i < n; i++)
    scanf("%lld", &a[i]);

  qsort(a, n, sizeof(long long), cmp_int);
  
  i = 0;
  do{
    while(a[i] == a[i+1]){
      c++;
      i++;
    }
    if(2 <= c && c < 4){
      m[j] = a[i];
      j++;
      c = 1;
    }else if(4 <= c){
      if(j==0){
      m[0] = a[i];
      m[1] = a[i];
      j=2;
      }else{
	m[j] = a[i];
	j++;
      }
    }
    i++;
    if(i == n) break;
  }while(j != 2);

  printf("%llu\n", m[0]*m[1]);

  return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

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

static int cmp_int(const void* v1, const void* v2)
{
  const long long _v1 = *((const long long*)v1);
  const long long _v2 = *((const long long*)v2);

  if ( _v1 > _v2 ) {
    return -1;
  } else if ( _v1 < _v2 ) {
    return 1;
  } else {
    return 0;
  }
}
int main(void)
{
  long long a[100002], m[2]={0};
  int n, i, j, c;
  c = 1; j = 0;
  scanf("%d", &n);

  for(i = 0; i < n; i++)
    scanf("%lld", &a[i]);

  qsort(a, n, sizeof(long long), cmp_int);
  
  i = 0;
  do{
    while(a[i] == a[i+1]){
      c++;
      i++;
    }
    if(2 <= c && c < 4){
      m[j] = a[i];
      j++;
      c = 1;
    }else if(4 <= c){
      if(j==0){
      m[0] = a[i];
      m[1] = a[i];
      j=2;
      }else{
	m[j] = a[i];
	j++;
      }
    }
    i++;
    if(i == n) break;
  }while(j != 2);

  printf("%llu\n", m[0]*m[1]);

  return 0;
}
```

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.
Optimized Assembly Code:

10
3 3 3 3 4 4 2 5 5 5
 6
3 1 2 4 2 2
 6
3 2 2 4 2 2
 6
3 2 2 4 3 2
 10
3 3 6 3 4 4 1 6 5 5
 10
3 3 6 3 4 3 1 6 5 6
 6
3 4 2 3 4 3
 10
3 3 6 6 4 3 1 6 3 6
 10
3 2 8 6 4 0 1 8 3 10
 6
1 -1 1 7 8 7

20
 0
 4
 6
 30
 18
 12
 36
 24
 7

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

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

static int cmp_int(const void* v1, const void* v2)
{
  const long long _v1 = *((const long long*)v1);
  const long long _v2 = *((const long long*)v2);

  if ( _v1 > _v2 ) {
    return -1;
  } else if ( _v1 < _v2 ) {
    return 1;
  } else {
    return 0;
  }
}
int main(void)
{
  long long a[100002], m[2]={0};
  int n, i, j, c;
  c = 1; j = 0;
  scanf("%d", &n);

  for(i = 0; i < n; i++)
    scanf("%lld", &a[i]);

  qsort(a, n, sizeof(long long), cmp_int);
  
  i = 0;
  do{
    while(a[i] == a[i+1]){
      c++;
      i++;
    }
    if(2 <= c && c < 4){
      m[j] = a[i];
      j++;
      c = 1;
    }else if(4 <= c){
      if(j==0){
      m[0] = a[i];
      m[1] = a[i];
      j=2;
      }else{
	m[j] = a[i];
	j++;
      }
    }
    i++;
    if(i == n) break;
  }while(j != 2);

  printf("%llu\n", m[0]*m[1]);

  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.type	cmp_int, @function
cmp_int:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	movl	$-1, %edx
	setl	%al
	movzbl	%al, %eax
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp_int, .-cmp_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%llu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1352, %rsp
	.cfi_def_cfa_offset 800112
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	leaq	32(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	addq	$8, %r12
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	movl	$8, %edx
	movq	%rbx, %rdi
	leaq	cmp_int(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %r9d
	movq	32(%rsp), %rdx
	xorl	%edi, %edi
	movl	$1, %eax
	movl	$1, %esi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	leal	-2(%rsi), %r8d
	cmpl	$1, %r8d
	jbe	.L25
	cmpl	$3, %esi
	jle	.L11
	testl	%edi, %edi
	je	.L16
	movslq	%edi, %r8
	addl	$1, %edi
	movq	%rdx, 16(%rsp,%r8,8)
.L11:
	cmpl	%eax, %r9d
	je	.L17
.L27:
	cmpl	$2, %edi
	je	.L17
.L13:
	addq	$1, %rax
	movq	%rcx, %rdx
.L8:
	movq	(%rbx,%rax,8), %rcx
	cmpq	%rdx, %rcx
	jne	.L26
	addl	$1, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%edi, %rsi
	addl	$1, %edi
	movq	%rdx, 16(%rsp,%rsi,8)
	movl	$1, %esi
	cmpl	%eax, %r9d
	jne	.L27
.L17:
	movq	16(%rsp), %rdx
	movq	24(%rsp), %rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rdx, %rax
.L12:
	imulq	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$800072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.type	cmp_int, @function
cmp_int:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	movl	$-1, %edx
	setl	%al
	movzbl	%al, %eax
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp_int, .-cmp_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%llu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798760
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1352, %rsp
	.cfi_def_cfa_offset 800112
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 800056(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	movaps	%xmm0, 16(%rsp)
	leaq	32(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	addq	$8, %r12
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	movl	$8, %edx
	movq	%rbx, %rdi
	leaq	cmp_int(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %r9d
	movq	32(%rsp), %rdx
	xorl	%edi, %edi
	movl	$1, %eax
	movl	$1, %esi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	leal	-2(%rsi), %r8d
	cmpl	$1, %r8d
	jbe	.L25
	cmpl	$3, %esi
	jle	.L11
	testl	%edi, %edi
	je	.L16
	movslq	%edi, %r8
	addl	$1, %edi
	movq	%rdx, 16(%rsp,%r8,8)
.L11:
	cmpl	%eax, %r9d
	je	.L17
.L27:
	cmpl	$2, %edi
	je	.L17
.L13:
	addq	$1, %rax
	movq	%rcx, %rdx
.L8:
	movq	(%rbx,%rax,8), %rcx
	cmpq	%rdx, %rcx
	jne	.L26
	addl	$1, %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%edi, %rsi
	addl	$1, %edi
	movq	%rdx, 16(%rsp,%rsi,8)
	movl	$1, %esi
	cmpl	%eax, %r9d
	jne	.L27
.L17:
	movq	16(%rsp), %rdx
	movq	24(%rsp), %rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%rdx, %rax
.L12:
	imulq	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$800072, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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:
```