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<math.h>
int min(int a, int b)
{
    if (a < b)
        return a;
    else
        return b;
}
int main()
{
    int n, k;
    scanf("%d %d", &n, &k);
    int x[100005];
    int i;
    for (i = 0; i < n; i++)
        scanf("%d", &x[i]);
    if (k == 1)
    {
        printf("%d\n", abs(x[0]));
        return 0;
    }
    int ans = 999999999;
    int t;
    for (i = 0; i <= n - k; i++)
    {
        t = min(abs(x[i]), abs(x[i + k - 1]));
        t += x[i + k - 1] - x[i];
        ans = min(ans, t);
    }
    printf("%d\n", ans);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400048(%rbp), %rdx
	leaq	-400052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400044(%rbp)
	jmp	.L5
.L6:
	leaq	-400032(%rbp), %rdx
	movl	-400044(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400044(%rbp)
.L5:
	movl	-400052(%rbp), %eax
	cmpl	%eax, -400044(%rbp)
	jl	.L6
	movl	-400048(%rbp), %eax
	cmpl	$1, %eax
	jne	.L7
	movl	-400032(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L11
.L7:
	movl	$999999999, -400040(%rbp)
	movl	$0, -400044(%rbp)
	jmp	.L9
.L10:
	movl	-400048(%rbp), %edx
	movl	-400044(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	movl	-400032(%rbp,%rax,4), %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-400044(%rbp), %eax
	cltq
	movl	-400032(%rbp,%rax,4), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, -400036(%rbp)
	movl	-400048(%rbp), %edx
	movl	-400044(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	movl	-400032(%rbp,%rax,4), %edx
	movl	-400044(%rbp), %eax
	cltq
	movl	-400032(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, -400036(%rbp)
	movl	-400036(%rbp), %edx
	movl	-400040(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, -400040(%rbp)
	addl	$1, -400044(%rbp)
.L9:
	movl	-400052(%rbp), %eax
	movl	-400048(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -400044(%rbp)
	jle	.L10
	movl	-400040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L11:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	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
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2736, %rsp
	.cfi_def_cfa_offset 400080
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 400040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L5
.L4:
	movl	12(%rsp), %esi
	cmpl	$1, %esi
	je	.L6
	subl	%esi, %eax
	movl	$999999999, %r8d
	movl	%eax, %edx
	js	.L8
	leal	1(%rax), %r9d
	cmpl	$2, %eax
	jle	.L15
	movl	%r9d, %ecx
	movslq	%esi, %rax
	leaq	16(%rsp), %r8
	movdqa	.LC0(%rip), %xmm3
	shrl	$2, %ecx
	leaq	12(%rsp,%rax,4), %rdi
	xorl	%eax, %eax
	salq	$4, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	(%r8,%rax), %xmm5
	movdqu	(%rdi,%rax), %xmm2
	addq	$16, %rax
	movdqa	%xmm5, %xmm0
	psrad	$31, %xmm0
	movdqa	%xmm0, %xmm4
	pxor	%xmm5, %xmm4
	psubd	%xmm0, %xmm4
	movdqa	%xmm2, %xmm0
	psrad	$31, %xmm0
	movdqa	%xmm0, %xmm1
	pxor	%xmm2, %xmm1
	psubd	%xmm5, %xmm2
	psubd	%xmm0, %xmm1
	movdqa	%xmm4, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm4, %xmm0
	por	%xmm1, %xmm0
	paddd	%xmm2, %xmm0
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm3, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	por	%xmm1, %xmm3
	cmpq	%rax, %rcx
	jne	.L11
	movdqa	%xmm3, %xmm1
	movl	%r9d, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	andl	$3, %r9d
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %r8d
	je	.L8
.L10:
	leal	-1(%rsi,%rax), %ecx
	movslq	%ecx, %rcx
	movl	16(%rsp,%rcx,4), %edi
	movslq	%eax, %rcx
	movl	16(%rsp,%rcx,4), %r9d
	movl	%edi, %ecx
	negl	%ecx
	movl	%r9d, %r10d
	cmovs	%edi, %ecx
	negl	%r10d
	cmovs	%r9d, %r10d
	cmpl	%r10d, %ecx
	cmovg	%r10d, %ecx
	subl	%r9d, %edi
	addl	%edi, %ecx
	cmpl	%ecx, %r8d
	cmovg	%ecx, %r8d
	leal	1(%rax), %ecx
	cmpl	%edx, %ecx
	jg	.L8
	leal	-1(%rsi,%rcx), %edi
	movslq	%ecx, %rcx
	movslq	%edi, %rdi
	movl	16(%rsp,%rcx,4), %r9d
	movl	16(%rsp,%rdi,4), %edi
	movl	%r9d, %r10d
	movl	%edi, %ecx
	negl	%ecx
	cmovs	%edi, %ecx
	negl	%r10d
	cmovs	%r9d, %r10d
	cmpl	%r10d, %ecx
	cmovg	%r10d, %ecx
	subl	%r9d, %edi
	addl	%edi, %ecx
	cmpl	%ecx, %r8d
	cmovg	%ecx, %r8d
	addl	$2, %eax
	cmpl	%eax, %edx
	jl	.L8
	leal	-1(%rsi,%rax), %edx
	cltq
	movl	16(%rsp,%rax,4), %ecx
	movslq	%edx, %rdx
	movl	16(%rsp,%rdx,4), %edx
	movl	%ecx, %eax
	negl	%eax
	movl	%edx, %esi
	cmovs	%ecx, %eax
	negl	%esi
	cmovs	%edx, %esi
	cmpl	%esi, %eax
	cmovg	%esi, %eax
	subl	%ecx, %edx
	addl	%edx, %eax
	cmpl	%eax, %r8d
	cmovg	%eax, %r8d
.L8:
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$400048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	movl	16(%rsp), %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L15:
	movl	$999999999, %r8d
	xorl	%eax, %eax
	jmp	.L10
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	999999999
	.long	999999999
	.long	999999999
	.long	999999999
	.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	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
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2736, %rsp
	.cfi_def_cfa_offset 400080
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 400040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L5
.L4:
	movl	12(%rsp), %esi
	cmpl	$1, %esi
	je	.L6
	subl	%esi, %eax
	movl	$999999999, %r8d
	movl	%eax, %edx
	js	.L8
	leal	1(%rax), %r9d
	cmpl	$2, %eax
	jle	.L15
	movl	%r9d, %ecx
	movslq	%esi, %rax
	leaq	16(%rsp), %r8
	movdqa	.LC0(%rip), %xmm3
	shrl	$2, %ecx
	leaq	12(%rsp,%rax,4), %rdi
	xorl	%eax, %eax
	salq	$4, %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	(%r8,%rax), %xmm5
	movdqu	(%rdi,%rax), %xmm2
	addq	$16, %rax
	movdqa	%xmm5, %xmm0
	psrad	$31, %xmm0
	movdqa	%xmm0, %xmm4
	pxor	%xmm5, %xmm4
	psubd	%xmm0, %xmm4
	movdqa	%xmm2, %xmm0
	psrad	$31, %xmm0
	movdqa	%xmm0, %xmm1
	pxor	%xmm2, %xmm1
	psubd	%xmm5, %xmm2
	psubd	%xmm0, %xmm1
	movdqa	%xmm4, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm4, %xmm0
	por	%xmm1, %xmm0
	paddd	%xmm2, %xmm0
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm3, %xmm1
	pand	%xmm1, %xmm3
	pandn	%xmm0, %xmm1
	por	%xmm1, %xmm3
	cmpq	%rax, %rcx
	jne	.L11
	movdqa	%xmm3, %xmm1
	movl	%r9d, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	andl	$3, %r9d
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm3, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %r8d
	je	.L8
.L10:
	leal	-1(%rsi,%rax), %ecx
	movslq	%ecx, %rcx
	movl	16(%rsp,%rcx,4), %edi
	movslq	%eax, %rcx
	movl	16(%rsp,%rcx,4), %r9d
	movl	%edi, %ecx
	negl	%ecx
	movl	%r9d, %r10d
	cmovs	%edi, %ecx
	negl	%r10d
	cmovs	%r9d, %r10d
	cmpl	%r10d, %ecx
	cmovg	%r10d, %ecx
	subl	%r9d, %edi
	addl	%edi, %ecx
	cmpl	%ecx, %r8d
	cmovg	%ecx, %r8d
	leal	1(%rax), %ecx
	cmpl	%edx, %ecx
	jg	.L8
	leal	-1(%rsi,%rcx), %edi
	movslq	%ecx, %rcx
	movslq	%edi, %rdi
	movl	16(%rsp,%rcx,4), %r9d
	movl	16(%rsp,%rdi,4), %edi
	movl	%r9d, %r10d
	movl	%edi, %ecx
	negl	%ecx
	cmovs	%edi, %ecx
	negl	%r10d
	cmovs	%r9d, %r10d
	cmpl	%r10d, %ecx
	cmovg	%r10d, %ecx
	subl	%r9d, %edi
	addl	%edi, %ecx
	cmpl	%ecx, %r8d
	cmovg	%ecx, %r8d
	addl	$2, %eax
	cmpl	%eax, %edx
	jl	.L8
	leal	-1(%rsi,%rax), %edx
	cltq
	movl	16(%rsp,%rax,4), %ecx
	movslq	%edx, %rdx
	movl	16(%rsp,%rdx,4), %edx
	movl	%ecx, %eax
	negl	%eax
	movl	%edx, %esi
	cmovs	%ecx, %eax
	negl	%esi
	cmovs	%edx, %esi
	cmpl	%esi, %eax
	cmovg	%esi, %eax
	subl	%ecx, %edx
	addl	%edx, %eax
	cmpl	%eax, %r8d
	cmovg	%eax, %r8d
.L8:
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L9:
	movq	400040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$400048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	movl	16(%rsp), %eax
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
.L15:
	movl	$999999999, %r8d
	xorl	%eax, %eax
	jmp	.L10
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	999999999
	.long	999999999
	.long	999999999
	.long	999999999
	.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<math.h>
int min(int a, int b)
{
    if (a < b)
        return a;
    else
        return b;
}
int main()
{
    int n, k;
    scanf("%d %d", &n, &k);
    int x[100005];
    int i;
    for (i = 0; i < n; i++)
        scanf("%d", &x[i]);
    if (k == 1)
    {
        printf("%d\n", abs(x[0]));
        return 0;
    }
    int ans = 999999999;
    int t;
    for (i = 0; i <= n - k; i++)
    {
        t = min(abs(x[i]), abs(x[i + k - 1]));
        t += x[i + k - 1] - x[i];
        ans = min(ans, t);
    }
    printf("%d\n", ans);
    return 0;
}
5 3
-30 -10 10 20 50

40

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<math.h>
int min(int a, int b)
{
    if (a < b)
        return a;
    else
        return b;
}
int main()
{
    int n, k;
    scanf("%d %d", &n, &k);
    int x[100005];
    int i;
    for (i = 0; i < n; i++)
        scanf("%d", &x[i]);
    if (k == 1)
    {
        printf("%d\n", abs(x[0]));
        return 0;
    }
    int ans = 999999999;
    int t;
    for (i = 0; i <= n - k; i++)
    {
        t = min(abs(x[i]), abs(x[i + k - 1]));
        t += x[i + k - 1] - x[i];
        ans = min(ans, t);
    }
    printf("%d\n", ans);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400048(%rbp), %rdx
	leaq	-400052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400044(%rbp)
	jmp	.L5
.L6:
	leaq	-400032(%rbp), %rdx
	movl	-400044(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400044(%rbp)
.L5:
	movl	-400052(%rbp), %eax
	cmpl	%eax, -400044(%rbp)
	jl	.L6
	movl	-400048(%rbp), %eax
	cmpl	$1, %eax
	jne	.L7
	movl	-400032(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L11
.L7:
	movl	$999999999, -400040(%rbp)
	movl	$0, -400044(%rbp)
	jmp	.L9
.L10:
	movl	-400048(%rbp), %edx
	movl	-400044(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	movl	-400032(%rbp,%rax,4), %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-400044(%rbp), %eax
	cltq
	movl	-400032(%rbp,%rax,4), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, -400036(%rbp)
	movl	-400048(%rbp), %edx
	movl	-400044(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	movl	-400032(%rbp,%rax,4), %edx
	movl	-400044(%rbp), %eax
	cltq
	movl	-400032(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, -400036(%rbp)
	movl	-400036(%rbp), %edx
	movl	-400040(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, -400040(%rbp)
	addl	$1, -400044(%rbp)
.L9:
	movl	-400052(%rbp), %eax
	movl	-400048(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -400044(%rbp)
	jle	.L10
	movl	-400040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L11:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400048(%rbp), %rdx
	leaq	-400052(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400044(%rbp)
	jmp	.L5
.L6:
	leaq	-400032(%rbp), %rdx
	movl	-400044(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400044(%rbp)
.L5:
	movl	-400052(%rbp), %eax
	cmpl	%eax, -400044(%rbp)
	jl	.L6
	movl	-400048(%rbp), %eax
	cmpl	$1, %eax
	jne	.L7
	movl	-400032(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L11
.L7:
	movl	$999999999, -400040(%rbp)
	movl	$0, -400044(%rbp)
	jmp	.L9
.L10:
	movl	-400048(%rbp), %edx
	movl	-400044(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	movl	-400032(%rbp,%rax,4), %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-400044(%rbp), %eax
	cltq
	movl	-400032(%rbp,%rax,4), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, -400036(%rbp)
	movl	-400048(%rbp), %edx
	movl	-400044(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	movl	-400032(%rbp,%rax,4), %edx
	movl	-400044(%rbp), %eax
	cltq
	movl	-400032(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, -400036(%rbp)
	movl	-400036(%rbp), %edx
	movl	-400040(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, -400040(%rbp)
	addl	$1, -400044(%rbp)
.L9:
	movl	-400052(%rbp), %eax
	movl	-400048(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -400044(%rbp)
	jle	.L10
	movl	-400040(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L11:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
