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>

int min(int a, int b){
  if(a<b)return a;
  else return b;
}

int dp[2000000];
int DP[2000000];

int main(){
  int i,j,x;

  for(i=1;i<=1000000;i++){
   
    dp[i]=i;
    DP[i]=i;
    for(j=1;;j++){
      x=j*(j+1)*(j+2)/6;
      if(i-x<0)break;
      dp[i]=min(dp[i],dp[i-x]+1);
      if(x%2==1){
	DP[i]=min(DP[i],DP[i-x]+1);
      }
    }
  }


  while(1){
    scanf("%d",&x);
    if(x==0)break;
    printf("%d %d\n",dp[x],DP[x]);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	4+dp(%rip), %r9
	leaq	4+DP(%rip), %r10
	movl	$1, %r8d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	$2863311531, %r11d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	-4(%r10), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-4(%r9), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r8d, (%r9)
	leal	-1(%r8), %esi
	movl	%r8d, %edi
	movl	$1, %eax
	movl	%r8d, (%r10)
	movl	$2, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%ecx, %edx
.L4:
	movslq	%esi, %rsi
	movl	(%rbx,%rsi,4), %ecx
	addl	$1, %ecx
	cmpl	%ecx, %edi
	cmovg	%ecx, %edi
	movl	%edi, (%r9)
	testb	$1, %al
	je	.L6
	movl	0(%rbp,%rsi,4), %eax
	movl	(%r10), %ecx
	addl	$1, %eax
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	movl	%eax, (%r10)
.L6:
	leal	1(%rdx), %ecx
	movl	%r8d, %esi
	movl	%ecx, %eax
	imull	%edx, %eax
	addl	$2, %edx
	imull	%edx, %eax
	imulq	%r11, %rax
	shrq	$34, %rax
	subl	%eax, %esi
	jns	.L16
	addl	$1, %r8d
	addq	$4, %r9
	addq	$4, %r10
	cmpl	$1000001, %r8d
	jne	.L7
	movl	%eax, 4(%rsp)
	leaq	4(%rsp), %r12
	leaq	.LC0(%rip), %rbp
	leaq	DP(%rip), %r14
	leaq	.LC1(%rip), %r13
	jmp	.L9
.L17:
	movl	(%r14,%rax,4), %ecx
	movl	(%rbx,%rax,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	testl	%eax, %eax
	jne	.L17
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	DP
	.bss
	.align 32
	.type	DP, @object
	.size	DP, 8000000
DP:
	.zero	8000000
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 8000000
dp:
	.zero	8000000
	.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	min
	.type	min, @function
min:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	4+dp(%rip), %r9
	leaq	4+DP(%rip), %r10
	movl	$1, %r8d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	$2863311531, %r11d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	-4(%r10), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-4(%r9), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r8d, (%r9)
	leal	-1(%r8), %esi
	movl	%r8d, %edi
	movl	$1, %eax
	movl	%r8d, (%r10)
	movl	$2, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%ecx, %edx
.L4:
	movslq	%esi, %rsi
	movl	(%rbx,%rsi,4), %ecx
	addl	$1, %ecx
	cmpl	%ecx, %edi
	cmovg	%ecx, %edi
	movl	%edi, (%r9)
	testb	$1, %al
	je	.L6
	movl	0(%rbp,%rsi,4), %eax
	movl	(%r10), %ecx
	addl	$1, %eax
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	movl	%eax, (%r10)
.L6:
	leal	1(%rdx), %ecx
	movl	%r8d, %esi
	movl	%ecx, %eax
	imull	%edx, %eax
	addl	$2, %edx
	imull	%edx, %eax
	imulq	%r11, %rax
	shrq	$34, %rax
	subl	%eax, %esi
	jns	.L16
	addl	$1, %r8d
	addq	$4, %r9
	addq	$4, %r10
	cmpl	$1000001, %r8d
	jne	.L7
	movl	%eax, 4(%rsp)
	leaq	4(%rsp), %r12
	leaq	.LC0(%rip), %rbp
	leaq	DP(%rip), %r14
	leaq	.LC1(%rip), %r13
	jmp	.L9
.L17:
	movl	(%r14,%rax,4), %ecx
	movl	(%rbx,%rax,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	testl	%eax, %eax
	jne	.L17
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	DP
	.bss
	.align 32
	.type	DP, @object
	.size	DP, 8000000
DP:
	.zero	8000000
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 8000000
dp:
	.zero	8000000
	.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	min
	.type	min, @function
min:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	4+dp(%rip), %r9
	leaq	4+DP(%rip), %r10
	movl	$1, %r8d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	$2863311531, %r11d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	-4(%r10), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-4(%r9), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r8d, (%r9)
	leal	-1(%r8), %esi
	movl	%r8d, %edi
	movl	$1, %eax
	movl	%r8d, (%r10)
	movl	$2, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%ecx, %edx
.L4:
	movslq	%esi, %rsi
	movl	(%rbx,%rsi,4), %ecx
	addl	$1, %ecx
	cmpl	%ecx, %edi
	cmovg	%ecx, %edi
	movl	%edi, (%r9)
	testb	$1, %al
	je	.L6
	movl	0(%rbp,%rsi,4), %eax
	movl	(%r10), %ecx
	addl	$1, %eax
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	movl	%eax, (%r10)
.L6:
	leal	1(%rdx), %ecx
	movl	%r8d, %esi
	movl	%ecx, %eax
	imull	%edx, %eax
	addl	$2, %edx
	imull	%edx, %eax
	imulq	%r11, %rax
	shrq	$34, %rax
	subl	%eax, %esi
	jns	.L16
	addl	$1, %r8d
	addq	$4, %r9
	addq	$4, %r10
	cmpl	$1000001, %r8d
	jne	.L7
	movl	%eax, 4(%rsp)
	leaq	4(%rsp), %r12
	leaq	.LC0(%rip), %rbp
	leaq	DP(%rip), %r14
	leaq	.LC1(%rip), %r13
	jmp	.L9
.L17:
	movl	(%r14,%rax,4), %ecx
	movl	(%rbx,%rax,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	testl	%eax, %eax
	jne	.L17
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	DP
	.bss
	.align 32
	.type	DP, @object
	.size	DP, 8000000
DP:
	.zero	8000000
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 8000000
dp:
	.zero	8000000
	.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>

int min(int a, int b){
  if(a<b)return a;
  else return b;
}

int dp[2000000];
int DP[2000000];

int main(){
  int i,j,x;

  for(i=1;i<=1000000;i++){
   
    dp[i]=i;
    DP[i]=i;
    for(j=1;;j++){
      x=j*(j+1)*(j+2)/6;
      if(i-x<0)break;
      dp[i]=min(dp[i],dp[i-x]+1);
      if(x%2==1){
	DP[i]=min(DP[i],DP[i-x]+1);
      }
    }
  }


  while(1){
    scanf("%d",&x);
    if(x==0)break;
    printf("%d %d\n",dp[x],DP[x]);
  }
  return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int min(int a, int b){
  if(a<b)return a;
  else return b;
}

int dp[2000000];
int DP[2000000];

int main(){
  int i,j,x;

  for(i=1;i<=1000000;i++){
   
    dp[i]=i;
    DP[i]=i;
    for(j=1;;j++){
      x=j*(j+1)*(j+2)/6;
      if(i-x<0)break;
      dp[i]=min(dp[i],dp[i-x]+1);
      if(x%2==1){
	DP[i]=min(DP[i],DP[i-x]+1);
      }
    }
  }


  while(1){
    scanf("%d",&x);
    if(x==0)break;
    printf("%d %d\n",dp[x],DP[x]);
  }
  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:

40
14
5
165
120
133
106
139
0
 40
14
5
98
120
133
106
139
0
 40
14
5
98
120
133
106
150
0
 40
14
5
70
120
133
106
150
0
 40
14
9
70
120
133
106
150
0
 40
14
9
70
72
133
106
150
0
 40
14
9
29
72
133
106
150
0
 40
14
9
29
79
133
106
150
0
 40
14
9
29
79
133
106
241
0
 40
14
9
20
79
133
106
241
0

2 6
2 14
2 5
1 1
1 18
4 31
4 4
3 37
 2 6
2 14
2 5
3 30
1 18
4 31
4 4
3 37
 2 6
2 14
2 5
3 30
1 18
4 31
4 4
3 14
 2 6
2 14
2 5
2 2
1 18
4 31
4 4
3 14
 2 6
2 14
3 9
2 2
1 18
4 31
4 4
3 14
 2 6
2 14
3 9
2 2
4 4
4 31
4 4
3 14
 2 6
2 14
3 9
4 29
4 4
4 31
4 4
3 14
 2 6
2 14
3 9
4 29
4 11
4 31
4 4
3 14
 2 6
2 14
3 9
4 29
4 11
4 31
4 4
3 9
 2 6
2 14
3 9
1 20
4 11
4 31
4 4
3 9

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>

int min(int a, int b){
  if(a<b)return a;
  else return b;
}

int dp[2000000];
int DP[2000000];

int main(){
  int i,j,x;

  for(i=1;i<=1000000;i++){
   
    dp[i]=i;
    DP[i]=i;
    for(j=1;;j++){
      x=j*(j+1)*(j+2)/6;
      if(i-x<0)break;
      dp[i]=min(dp[i],dp[i-x]+1);
      if(x%2==1){
	DP[i]=min(DP[i],DP[i-x]+1);
      }
    }
  }


  while(1){
    scanf("%d",&x);
    if(x==0)break;
    printf("%d %d\n",dp[x],DP[x]);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	4+dp(%rip), %r9
	leaq	4+DP(%rip), %r10
	movl	$1, %r8d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	$2863311531, %r11d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	-4(%r10), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-4(%r9), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r8d, (%r9)
	leal	-1(%r8), %esi
	movl	%r8d, %edi
	movl	$1, %eax
	movl	%r8d, (%r10)
	movl	$2, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%ecx, %edx
.L4:
	movslq	%esi, %rsi
	movl	(%rbx,%rsi,4), %ecx
	addl	$1, %ecx
	cmpl	%ecx, %edi
	cmovg	%ecx, %edi
	movl	%edi, (%r9)
	testb	$1, %al
	je	.L6
	movl	0(%rbp,%rsi,4), %eax
	movl	(%r10), %ecx
	addl	$1, %eax
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	movl	%eax, (%r10)
.L6:
	leal	1(%rdx), %ecx
	movl	%r8d, %esi
	movl	%ecx, %eax
	imull	%edx, %eax
	addl	$2, %edx
	imull	%edx, %eax
	imulq	%r11, %rax
	shrq	$34, %rax
	subl	%eax, %esi
	jns	.L16
	addl	$1, %r8d
	addq	$4, %r9
	addq	$4, %r10
	cmpl	$1000001, %r8d
	jne	.L7
	movl	%eax, 4(%rsp)
	leaq	4(%rsp), %r12
	leaq	.LC0(%rip), %rbp
	leaq	DP(%rip), %r14
	leaq	.LC1(%rip), %r13
	jmp	.L9
.L17:
	movl	(%r14,%rax,4), %ecx
	movl	(%rbx,%rax,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	testl	%eax, %eax
	jne	.L17
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	DP
	.bss
	.align 32
	.type	DP, @object
	.size	DP, 8000000
DP:
	.zero	8000000
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 8000000
dp:
	.zero	8000000
	.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	min
	.type	min, @function
min:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	4+dp(%rip), %r9
	leaq	4+DP(%rip), %r10
	movl	$1, %r8d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	$2863311531, %r11d
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	-4(%r10), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-4(%r9), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%r8d, (%r9)
	leal	-1(%r8), %esi
	movl	%r8d, %edi
	movl	$1, %eax
	movl	%r8d, (%r10)
	movl	$2, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%ecx, %edx
.L4:
	movslq	%esi, %rsi
	movl	(%rbx,%rsi,4), %ecx
	addl	$1, %ecx
	cmpl	%ecx, %edi
	cmovg	%ecx, %edi
	movl	%edi, (%r9)
	testb	$1, %al
	je	.L6
	movl	0(%rbp,%rsi,4), %eax
	movl	(%r10), %ecx
	addl	$1, %eax
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	movl	%eax, (%r10)
.L6:
	leal	1(%rdx), %ecx
	movl	%r8d, %esi
	movl	%ecx, %eax
	imull	%edx, %eax
	addl	$2, %edx
	imull	%edx, %eax
	imulq	%r11, %rax
	shrq	$34, %rax
	subl	%eax, %esi
	jns	.L16
	addl	$1, %r8d
	addq	$4, %r9
	addq	$4, %r10
	cmpl	$1000001, %r8d
	jne	.L7
	movl	%eax, 4(%rsp)
	leaq	4(%rsp), %r12
	leaq	.LC0(%rip), %rbp
	leaq	DP(%rip), %r14
	leaq	.LC1(%rip), %r13
	jmp	.L9
.L17:
	movl	(%r14,%rax,4), %ecx
	movl	(%rbx,%rax,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rax
	testl	%eax, %eax
	jne	.L17
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	DP
	.bss
	.align 32
	.type	DP, @object
	.size	DP, 8000000
DP:
	.zero	8000000
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 8000000
dp:
	.zero	8000000
	.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:
```