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

```c
#include <malloc.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

//ABC112D
int compare_int(const void *a, const void *b) { //sort
  return *(int*) a-*(int*) b;
}

int main(void) {
  int n, m, k=0, i, cou=0, tho=1000;
  int memo[tho];
  scanf(" %d %d", &n, &m);
  int sqm=sqrt(m);
  //printf("sqm=%d\n", sqm);

  for(i=0; i<tho; i++){
    memo[i]=1;
  }
  for(i=sqm; i>=1; i--){
    if(m%i==0) memo[k++ ]=i, memo[k++ ]=m/i;
  }
  qsort(memo, k, sizeof(int), compare_int); //sort

  for(i=0; i<k; i++){
    if(memo[i]>=n){
      printf("%d", m/memo[i]);
      return 0;
    }
  }
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %d %d"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	movq	%rsp, %rax
	cmpq	%rax, %rsp
	je	.L5
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rax, %rsp
	jne	.L29
.L5:
	subq	$4000, %rsp
	orq	$0, 3992(%rsp)
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	movq	%rsp, %r14
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %r12d
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r12d, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L26
	sqrtsd	%xmm0, %xmm0
.L9:
	cvttsd2sil	%xmm0, %ecx
	movq	%r14, %rbx
	leaq	4000(%r14), %rdx
	movq	%r14, %rax
	movdqa	.LC2(%rip), %xmm0
	.p2align 4,,10
	.p2align 3
.L10:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L10
	testl	%ecx, %ecx
	jle	.L11
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L12
	movd	%eax, %xmm2
	movd	%ecx, %xmm0
	movslq	%r13d, %rax
	addl	$2, %r13d
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, (%r14,%rax,4)
.L12:
	subl	$1, %ecx
	jne	.L13
	movslq	%r13d, %rsi
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	movq	%r14, %rdi
	call	qsort@PLT
	testl	%r13d, %r13d
	je	.L15
	leal	-1(%r13), %edx
	movl	-48(%rbp), %eax
	leaq	4(%r14,%rdx,4), %rdx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$4, %rbx
	cmpq	%rdx, %rbx
	je	.L15
.L17:
	movl	(%rbx), %ecx
	cmpl	%eax, %ecx
	jl	.L16
	movl	-44(%rbp), %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	cltd
	idivl	%ecx
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L15:
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L11:
	.cfi_restore_state
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	qsort@PLT
	jmp	.L15
.L26:
	call	sqrt@PLT
	jmp	.L9
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %d %d"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	movq	%rsp, %rax
	cmpq	%rax, %rsp
	je	.L5
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rax, %rsp
	jne	.L29
.L5:
	subq	$4000, %rsp
	orq	$0, 3992(%rsp)
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	movq	%rsp, %r14
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %r12d
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r12d, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L26
	sqrtsd	%xmm0, %xmm0
.L9:
	cvttsd2sil	%xmm0, %ecx
	movq	%r14, %rbx
	leaq	4000(%r14), %rdx
	movq	%r14, %rax
	movdqa	.LC2(%rip), %xmm0
	.p2align 4,,10
	.p2align 3
.L10:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L10
	testl	%ecx, %ecx
	jle	.L11
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L12
	movd	%eax, %xmm2
	movd	%ecx, %xmm0
	movslq	%r13d, %rax
	addl	$2, %r13d
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, (%r14,%rax,4)
.L12:
	subl	$1, %ecx
	jne	.L13
	movslq	%r13d, %rsi
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	movq	%r14, %rdi
	call	qsort@PLT
	testl	%r13d, %r13d
	je	.L15
	leal	-1(%r13), %edx
	movl	-48(%rbp), %eax
	leaq	4(%r14,%rdx,4), %rdx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$4, %rbx
	cmpq	%rdx, %rbx
	je	.L15
.L17:
	movl	(%rbx), %ecx
	cmpl	%eax, %ecx
	jl	.L16
	movl	-44(%rbp), %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	cltd
	idivl	%ecx
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L15:
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L11:
	.cfi_restore_state
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	qsort@PLT
	jmp	.L15
.L26:
	call	sqrt@PLT
	jmp	.L9
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %d %d"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	movq	%rsp, %rax
	cmpq	%rax, %rsp
	je	.L5
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rax, %rsp
	jne	.L29
.L5:
	subq	$4000, %rsp
	orq	$0, 3992(%rsp)
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	movq	%rsp, %r14
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %r12d
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r12d, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L26
	sqrtsd	%xmm0, %xmm0
.L9:
	cvttsd2sil	%xmm0, %ecx
	movq	%r14, %rbx
	leaq	4000(%r14), %rdx
	movq	%r14, %rax
	movdqa	.LC2(%rip), %xmm0
	.p2align 4,,10
	.p2align 3
.L10:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L10
	testl	%ecx, %ecx
	jle	.L11
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L12
	movd	%eax, %xmm2
	movd	%ecx, %xmm0
	movslq	%r13d, %rax
	addl	$2, %r13d
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, (%r14,%rax,4)
.L12:
	subl	$1, %ecx
	jne	.L13
	movslq	%r13d, %rsi
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	movq	%r14, %rdi
	call	qsort@PLT
	testl	%r13d, %r13d
	je	.L15
	leal	-1(%r13), %edx
	movl	-48(%rbp), %eax
	leaq	4(%r14,%rdx,4), %rdx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$4, %rbx
	cmpq	%rdx, %rbx
	je	.L15
.L17:
	movl	(%rbx), %ecx
	cmpl	%eax, %ecx
	jl	.L16
	movl	-44(%rbp), %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	cltd
	idivl	%ecx
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L15:
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L11:
	.cfi_restore_state
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	qsort@PLT
	jmp	.L15
.L26:
	call	sqrt@PLT
	jmp	.L9
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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 <malloc.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

//ABC112D
int compare_int(const void *a, const void *b) { //sort
  return *(int*) a-*(int*) b;
}

int main(void) {
  int n, m, k=0, i, cou=0, tho=1000;
  int memo[tho];
  scanf(" %d %d", &n, &m);
  int sqm=sqrt(m);
  //printf("sqm=%d\n", sqm);

  for(i=0; i<tho; i++){
    memo[i]=1;
  }
  for(i=sqm; i>=1; i--){
    if(m%i==0) memo[k++ ]=i, memo[k++ ]=m/i;
  }
  qsort(memo, k, sizeof(int), compare_int); //sort

  for(i=0; i<k; i++){
    if(memo[i]>=n){
      printf("%d", m/memo[i]);
      return 0;
    }
  }
  return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <malloc.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

//ABC112D
int compare_int(const void *a, const void *b) { //sort
  return *(int*) a-*(int*) b;
}

int main(void) {
  int n, m, k=0, i, cou=0, tho=1000;
  int memo[tho];
  scanf(" %d %d", &n, &m);
  int sqm=sqrt(m);
  //printf("sqm=%d\n", sqm);

  for(i=0; i<tho; i++){
    memo[i]=1;
  }
  for(i=sqm; i>=1; i--){
    if(m%i==0) memo[k++ ]=i, memo[k++ ]=m/i;
  }
  qsort(memo, k, sizeof(int), compare_int); //sort

  for(i=0; i<k; i++){
    if(memo[i]>=n){
      printf("%d", m/memo[i]);
      return 0;
    }
  }
  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:

5 123
 100000 1010000000
 110000 1010000000
 100100 1010000000
 5 16
 100100 1010010001
 101100 1010110000
 101100 1000110000
 101000 1000110010
 101000 1100110010

3 10100 8080 10000 2 9163 9736 9805 7757 9655
Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <malloc.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

//ABC112D
int compare_int(const void *a, const void *b) { //sort
  return *(int*) a-*(int*) b;
}

int main(void) {
  int n, m, k=0, i, cou=0, tho=1000;
  int memo[tho];
  scanf(" %d %d", &n, &m);
  int sqm=sqrt(m);
  //printf("sqm=%d\n", sqm);

  for(i=0; i<tho; i++){
    memo[i]=1;
  }
  for(i=sqm; i>=1; i--){
    if(m%i==0) memo[k++ ]=i, memo[k++ ]=m/i;
  }
  qsort(memo, k, sizeof(int), compare_int); //sort

  for(i=0; i<k; i++){
    if(memo[i]>=n){
      printf("%d", m/memo[i]);
      return 0;
    }
  }
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %d %d"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	movq	%rsp, %rax
	cmpq	%rax, %rsp
	je	.L5
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rax, %rsp
	jne	.L29
.L5:
	subq	$4000, %rsp
	orq	$0, 3992(%rsp)
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	movq	%rsp, %r14
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %r12d
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r12d, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L26
	sqrtsd	%xmm0, %xmm0
.L9:
	cvttsd2sil	%xmm0, %ecx
	movq	%r14, %rbx
	leaq	4000(%r14), %rdx
	movq	%r14, %rax
	movdqa	.LC2(%rip), %xmm0
	.p2align 4,,10
	.p2align 3
.L10:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L10
	testl	%ecx, %ecx
	jle	.L11
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L12
	movd	%eax, %xmm2
	movd	%ecx, %xmm0
	movslq	%r13d, %rax
	addl	$2, %r13d
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, (%r14,%rax,4)
.L12:
	subl	$1, %ecx
	jne	.L13
	movslq	%r13d, %rsi
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	movq	%r14, %rdi
	call	qsort@PLT
	testl	%r13d, %r13d
	je	.L15
	leal	-1(%r13), %edx
	movl	-48(%rbp), %eax
	leaq	4(%r14,%rdx,4), %rdx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$4, %rbx
	cmpq	%rdx, %rbx
	je	.L15
.L17:
	movl	(%rbx), %ecx
	cmpl	%eax, %ecx
	jl	.L16
	movl	-44(%rbp), %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	cltd
	idivl	%ecx
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L15:
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L11:
	.cfi_restore_state
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	qsort@PLT
	jmp	.L15
.L26:
	call	sqrt@PLT
	jmp	.L9
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %d %d"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	movq	%rsp, %rax
	cmpq	%rax, %rsp
	je	.L5
.L29:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rax, %rsp
	jne	.L29
.L5:
	subq	$4000, %rsp
	orq	$0, 3992(%rsp)
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	movq	%rsp, %r14
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %r12d
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%r12d, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L26
	sqrtsd	%xmm0, %xmm0
.L9:
	cvttsd2sil	%xmm0, %ecx
	movq	%r14, %rbx
	leaq	4000(%r14), %rdx
	movq	%r14, %rax
	movdqa	.LC2(%rip), %xmm0
	.p2align 4,,10
	.p2align 3
.L10:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L10
	testl	%ecx, %ecx
	jle	.L11
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L12
	movd	%eax, %xmm2
	movd	%ecx, %xmm0
	movslq	%r13d, %rax
	addl	$2, %r13d
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, (%r14,%rax,4)
.L12:
	subl	$1, %ecx
	jne	.L13
	movslq	%r13d, %rsi
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	movq	%r14, %rdi
	call	qsort@PLT
	testl	%r13d, %r13d
	je	.L15
	leal	-1(%r13), %edx
	movl	-48(%rbp), %eax
	leaq	4(%r14,%rdx,4), %rdx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$4, %rbx
	cmpq	%rdx, %rbx
	je	.L15
.L17:
	movl	(%rbx), %ecx
	cmpl	%eax, %ecx
	jl	.L16
	movl	-44(%rbp), %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	cltd
	idivl	%ecx
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L15:
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L30
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L11:
	.cfi_restore_state
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	qsort@PLT
	jmp	.L15
.L26:
	call	sqrt@PLT
	jmp	.L9
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:
```