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>
long long  MIN(long long a,long long b){return a<b?a:b;}
int main(){
  long long n,m,a[2010],b[2010],min=1e18,s,i,j;
  scanf("%lld %lld",&n,&m);//printf("%lld\n",min);
  for(i=0;i<n;i++)scanf("%lld",&a[i]);
  for(i=0;i<n;i++)b[i]=1e9;
  for(i=0;i<n;i++){
    for(j=0;j<n;j++)b[j]=MIN(b[j],a[(j-i+n)%n]);
    for(j=s=0;j<n;j++)s+=b[j];
    min=MIN(min,s+m*i);
  }
  printf("%lld\n",min);
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB23:
	.cfi_startproc
	endbr64
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovle	%rsi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	MIN, .-MIN
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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	-28672(%rsp), %r11
	.cfi_def_cfa 11, 28712
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3528, %rsp
	.cfi_def_cfa_offset 32240
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 32184(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	jle	.L4
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	addq	$8, %rbp
	cmpq	%rbx, %rdi
	jg	.L5
	testq	%rdi, %rdi
	jle	.L4
	cmpq	$1, %rdi
	je	.L16
	movq	%rdi, %rdx
	leaq	16096(%rsp), %rbp
	movdqa	.LC2(%rip), %xmm0
	shrq	%rdx
	movq	%rbp, %rax
	salq	$4, %rdx
	addq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L7
	movq	%rdi, %rax
	andq	$-2, %rax
	testb	$1, %dil
	je	.L8
.L6:
	movq	$1000000000, 16096(%rsp,%rax,8)
.L8:
	movq	%rdi, %r9
	movq	%rdi, %r12
	movq	8(%rsp), %r13
	leaq	0(%rbp,%rdi,8), %r8
	shrq	%r9
	andq	$-2, %r12
	xorl	%ebx, %ebx
	xorl	%r10d, %r10d
	movabsq	$1000000000000000000, %r11
	salq	$4, %r9
	addq	%rbp, %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rdi, %rsi
	movq	%rbp, %rcx
	subq	%r10, %rsi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	movq	(%rcx), %rax
	movq	16(%rsp,%rdx,8), %rdx
	cmpq	%rdx, %rax
	cmovg	%rdx, %rax
	addq	$8, %rcx
	addq	$1, %rsi
	movq	%rax, -8(%rcx)
	cmpq	%r8, %rcx
	jne	.L10
	cmpq	$1, %rdi
	je	.L17
	movq	%rbp, %rax
	pxor	%xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L12:
	paddq	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rax, %r9
	jne	.L12
	movdqa	%xmm0, %xmm1
	movq	%r12, %rdx
	psrldq	$8, %xmm1
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rax
	cmpq	%r12, %rdi
	je	.L13
.L11:
	addq	16096(%rsp,%rdx,8), %rax
.L13:
	addq	%rbx, %rax
	cmpq	%rax, %r11
	cmovg	%rax, %r11
	addq	$1, %r10
	addq	%r13, %rbx
	cmpq	%r10, %rdi
	jne	.L9
.L14:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	32184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$32200, %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
.L17:
	.cfi_restore_state
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L11
.L4:
	movabsq	$1000000000000000000, %r11
	jmp	.L14
.L16:
	xorl	%eax, %eax
	leaq	16096(%rsp), %rbp
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1000000000
	.quad	1000000000
	.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
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovle	%rsi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	MIN, .-MIN
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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	-28672(%rsp), %r11
	.cfi_def_cfa 11, 28712
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3528, %rsp
	.cfi_def_cfa_offset 32240
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 32184(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	jle	.L4
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	addq	$8, %rbp
	cmpq	%rbx, %rdi
	jg	.L5
	testq	%rdi, %rdi
	jle	.L4
	cmpq	$1, %rdi
	je	.L16
	movq	%rdi, %rdx
	leaq	16096(%rsp), %rbp
	movdqa	.LC2(%rip), %xmm0
	shrq	%rdx
	movq	%rbp, %rax
	salq	$4, %rdx
	addq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L7
	movq	%rdi, %rax
	andq	$-2, %rax
	testb	$1, %dil
	je	.L8
.L6:
	movq	$1000000000, 16096(%rsp,%rax,8)
.L8:
	movq	%rdi, %r9
	movq	%rdi, %r12
	movq	8(%rsp), %r13
	leaq	0(%rbp,%rdi,8), %r8
	shrq	%r9
	andq	$-2, %r12
	xorl	%ebx, %ebx
	xorl	%r10d, %r10d
	movabsq	$1000000000000000000, %r11
	salq	$4, %r9
	addq	%rbp, %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rdi, %rsi
	movq	%rbp, %rcx
	subq	%r10, %rsi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	movq	(%rcx), %rax
	movq	16(%rsp,%rdx,8), %rdx
	cmpq	%rdx, %rax
	cmovg	%rdx, %rax
	addq	$8, %rcx
	addq	$1, %rsi
	movq	%rax, -8(%rcx)
	cmpq	%r8, %rcx
	jne	.L10
	cmpq	$1, %rdi
	je	.L17
	movq	%rbp, %rax
	pxor	%xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L12:
	paddq	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rax, %r9
	jne	.L12
	movdqa	%xmm0, %xmm1
	movq	%r12, %rdx
	psrldq	$8, %xmm1
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rax
	cmpq	%r12, %rdi
	je	.L13
.L11:
	addq	16096(%rsp,%rdx,8), %rax
.L13:
	addq	%rbx, %rax
	cmpq	%rax, %r11
	cmovg	%rax, %r11
	addq	$1, %r10
	addq	%r13, %rbx
	cmpq	%r10, %rdi
	jne	.L9
.L14:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	32184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$32200, %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
.L17:
	.cfi_restore_state
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L11
.L4:
	movabsq	$1000000000000000000, %r11
	jmp	.L14
.L16:
	xorl	%eax, %eax
	leaq	16096(%rsp), %rbp
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1000000000
	.quad	1000000000
	.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
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovle	%rsi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	MIN, .-MIN
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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	-28672(%rsp), %r11
	.cfi_def_cfa 11, 28712
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3528, %rsp
	.cfi_def_cfa_offset 32240
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 32184(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	jle	.L4
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	addq	$8, %rbp
	cmpq	%rbx, %rdi
	jg	.L5
	testq	%rdi, %rdi
	jle	.L4
	cmpq	$1, %rdi
	je	.L16
	movq	%rdi, %rdx
	leaq	16096(%rsp), %rbp
	movdqa	.LC2(%rip), %xmm0
	shrq	%rdx
	movq	%rbp, %rax
	salq	$4, %rdx
	addq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L7
	movq	%rdi, %rax
	andq	$-2, %rax
	testb	$1, %dil
	je	.L8
.L6:
	movq	$1000000000, 16096(%rsp,%rax,8)
.L8:
	movq	%rdi, %r9
	movq	%rdi, %r12
	movq	8(%rsp), %r13
	leaq	0(%rbp,%rdi,8), %r8
	shrq	%r9
	andq	$-2, %r12
	xorl	%ebx, %ebx
	xorl	%r10d, %r10d
	movabsq	$1000000000000000000, %r11
	salq	$4, %r9
	addq	%rbp, %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rdi, %rsi
	movq	%rbp, %rcx
	subq	%r10, %rsi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	movq	(%rcx), %rax
	movq	16(%rsp,%rdx,8), %rdx
	cmpq	%rdx, %rax
	cmovg	%rdx, %rax
	addq	$8, %rcx
	addq	$1, %rsi
	movq	%rax, -8(%rcx)
	cmpq	%r8, %rcx
	jne	.L10
	cmpq	$1, %rdi
	je	.L17
	movq	%rbp, %rax
	pxor	%xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L12:
	paddq	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rax, %r9
	jne	.L12
	movdqa	%xmm0, %xmm1
	movq	%r12, %rdx
	psrldq	$8, %xmm1
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rax
	cmpq	%r12, %rdi
	je	.L13
.L11:
	addq	16096(%rsp,%rdx,8), %rax
.L13:
	addq	%rbx, %rax
	cmpq	%rax, %r11
	cmovg	%rax, %r11
	addq	$1, %r10
	addq	%r13, %rbx
	cmpq	%r10, %rdi
	jne	.L9
.L14:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	32184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$32200, %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
.L17:
	.cfi_restore_state
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L11
.L4:
	movabsq	$1000000000000000000, %r11
	jmp	.L14
.L16:
	xorl	%eax, %eax
	leaq	16096(%rsp), %rbp
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1000000000
	.quad	1000000000
	.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>
long long  MIN(long long a,long long b){return a<b?a:b;}
int main(){
  long long n,m,a[2010],b[2010],min=1e18,s,i,j;
  scanf("%lld %lld",&n,&m);//printf("%lld\n",min);
  for(i=0;i<n;i++)scanf("%lld",&a[i]);
  for(i=0;i<n;i++)b[i]=1e9;
  for(i=0;i<n;i++){
    for(j=0;j<n;j++)b[j]=MIN(b[j],a[(j-i+n)%n]);
    for(j=s=0;j<n;j++)s+=b[j];
    min=MIN(min,s+m*i);
  }
  printf("%lld\n",min);
  return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
long long  MIN(long long a,long long b){return a<b?a:b;}
int main(){
  long long n,m,a[2010],b[2010],min=1e18,s,i,j;
  scanf("%lld %lld",&n,&m);//printf("%lld\n",min);
  for(i=0;i<n;i++)scanf("%lld",&a[i]);
  for(i=0;i<n;i++)b[i]=1e9;
  for(i=0;i<n;i++){
    for(j=0;j<n;j++)b[j]=MIN(b[j],a[(j-i+n)%n]);
    for(j=s=0;j<n;j++)s+=b[j];
    min=MIN(min,s+m*i);
  }
  printf("%lld\n",min);
  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:

4 10
1 1 3 4
 2 10
1 101
 3 12
100 1 100
 3 12
000 1 100
 3 12
010 1 100
 3 12
011 1 100
 3 18
011 1 100
 3 18
011 2 100
 3 35
011 2 100
 3 35
011 4 100

9
 12
 27
 13
 24
 25
 31
 33
 50
 54

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>
long long  MIN(long long a,long long b){return a<b?a:b;}
int main(){
  long long n,m,a[2010],b[2010],min=1e18,s,i,j;
  scanf("%lld %lld",&n,&m);//printf("%lld\n",min);
  for(i=0;i<n;i++)scanf("%lld",&a[i]);
  for(i=0;i<n;i++)b[i]=1e9;
  for(i=0;i<n;i++){
    for(j=0;j<n;j++)b[j]=MIN(b[j],a[(j-i+n)%n]);
    for(j=s=0;j<n;j++)s+=b[j];
    min=MIN(min,s+m*i);
  }
  printf("%lld\n",min);
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB23:
	.cfi_startproc
	endbr64
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovle	%rsi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	MIN, .-MIN
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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	-28672(%rsp), %r11
	.cfi_def_cfa 11, 28712
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3528, %rsp
	.cfi_def_cfa_offset 32240
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 32184(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	jle	.L4
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	addq	$8, %rbp
	cmpq	%rbx, %rdi
	jg	.L5
	testq	%rdi, %rdi
	jle	.L4
	cmpq	$1, %rdi
	je	.L16
	movq	%rdi, %rdx
	leaq	16096(%rsp), %rbp
	movdqa	.LC2(%rip), %xmm0
	shrq	%rdx
	movq	%rbp, %rax
	salq	$4, %rdx
	addq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L7
	movq	%rdi, %rax
	andq	$-2, %rax
	testb	$1, %dil
	je	.L8
.L6:
	movq	$1000000000, 16096(%rsp,%rax,8)
.L8:
	movq	%rdi, %r9
	movq	%rdi, %r12
	movq	8(%rsp), %r13
	leaq	0(%rbp,%rdi,8), %r8
	shrq	%r9
	andq	$-2, %r12
	xorl	%ebx, %ebx
	xorl	%r10d, %r10d
	movabsq	$1000000000000000000, %r11
	salq	$4, %r9
	addq	%rbp, %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rdi, %rsi
	movq	%rbp, %rcx
	subq	%r10, %rsi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	movq	(%rcx), %rax
	movq	16(%rsp,%rdx,8), %rdx
	cmpq	%rdx, %rax
	cmovg	%rdx, %rax
	addq	$8, %rcx
	addq	$1, %rsi
	movq	%rax, -8(%rcx)
	cmpq	%r8, %rcx
	jne	.L10
	cmpq	$1, %rdi
	je	.L17
	movq	%rbp, %rax
	pxor	%xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L12:
	paddq	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rax, %r9
	jne	.L12
	movdqa	%xmm0, %xmm1
	movq	%r12, %rdx
	psrldq	$8, %xmm1
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rax
	cmpq	%r12, %rdi
	je	.L13
.L11:
	addq	16096(%rsp,%rdx,8), %rax
.L13:
	addq	%rbx, %rax
	cmpq	%rax, %r11
	cmovg	%rax, %r11
	addq	$1, %r10
	addq	%r13, %rbx
	cmpq	%r10, %rdi
	jne	.L9
.L14:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	32184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$32200, %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
.L17:
	.cfi_restore_state
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L11
.L4:
	movabsq	$1000000000000000000, %r11
	jmp	.L14
.L16:
	xorl	%eax, %eax
	leaq	16096(%rsp), %rbp
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1000000000
	.quad	1000000000
	.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
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovle	%rsi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	MIN, .-MIN
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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	-28672(%rsp), %r11
	.cfi_def_cfa 11, 28712
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3528, %rsp
	.cfi_def_cfa_offset 32240
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 32184(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	jle	.L4
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	addq	$8, %rbp
	cmpq	%rbx, %rdi
	jg	.L5
	testq	%rdi, %rdi
	jle	.L4
	cmpq	$1, %rdi
	je	.L16
	movq	%rdi, %rdx
	leaq	16096(%rsp), %rbp
	movdqa	.LC2(%rip), %xmm0
	shrq	%rdx
	movq	%rbp, %rax
	salq	$4, %rdx
	addq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L7:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L7
	movq	%rdi, %rax
	andq	$-2, %rax
	testb	$1, %dil
	je	.L8
.L6:
	movq	$1000000000, 16096(%rsp,%rax,8)
.L8:
	movq	%rdi, %r9
	movq	%rdi, %r12
	movq	8(%rsp), %r13
	leaq	0(%rbp,%rdi,8), %r8
	shrq	%r9
	andq	$-2, %r12
	xorl	%ebx, %ebx
	xorl	%r10d, %r10d
	movabsq	$1000000000000000000, %r11
	salq	$4, %r9
	addq	%rbp, %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rdi, %rsi
	movq	%rbp, %rcx
	subq	%r10, %rsi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	movq	(%rcx), %rax
	movq	16(%rsp,%rdx,8), %rdx
	cmpq	%rdx, %rax
	cmovg	%rdx, %rax
	addq	$8, %rcx
	addq	$1, %rsi
	movq	%rax, -8(%rcx)
	cmpq	%r8, %rcx
	jne	.L10
	cmpq	$1, %rdi
	je	.L17
	movq	%rbp, %rax
	pxor	%xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L12:
	paddq	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rax, %r9
	jne	.L12
	movdqa	%xmm0, %xmm1
	movq	%r12, %rdx
	psrldq	$8, %xmm1
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rax
	cmpq	%r12, %rdi
	je	.L13
.L11:
	addq	16096(%rsp,%rdx,8), %rax
.L13:
	addq	%rbx, %rax
	cmpq	%rax, %r11
	cmovg	%rax, %r11
	addq	$1, %r10
	addq	%r13, %rbx
	cmpq	%r10, %rdi
	jne	.L9
.L14:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	32184(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$32200, %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
.L17:
	.cfi_restore_state
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L11
.L4:
	movabsq	$1000000000000000000, %r11
	jmp	.L14
.L16:
	xorl	%eax, %eax
	leaq	16096(%rsp), %rbp
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1000000000
	.quad	1000000000
	.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:
```