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>

const long long inf = 1e18;

int n, W;
int w[110], v[110];
long long dp[100100];

long long min(long long a, long long b) {
    return (a < b ? a : b);
}

int main() {
    scanf("%d%d", &n, &W);
    for (int i = 0; i < n; i++) scanf("%d%d", &w[i], &v[i]);

    for (int i = 0; i <= 100000; i++) dp[i] = inf;
    dp[0] = 0;
    for (int i = 0; i < n; i++) {
        for (int j = 100000; j >= v[i]; j--) {
            dp[j] = min(dp[j], dp[j - v[i]] + 1ll * w[i]);
        }
    }

    int ans = 0;
    for (int i = 0; i <= 100000; i++) {
        if (dp[i] <= W) ans = i;
    } 
    printf("%d\n", ans);
}```

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	"%d%d"
.LC2:
	.string	"%d\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
	leaq	.LC0(%rip), %r13
	leaq	W(%rip), %rdx
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	n(%rip), %rsi
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	testl	%edx, %edx
	jle	.L4
	leaq	w(%rip), %r12
	xorl	%ebp, %ebp
	leaq	v(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%rbx,%rbp,4), %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	addq	$1, %rbp
	addq	$4, %r12
	cmpl	%ebp, %edx
	jg	.L5
.L4:
	leaq	dp(%rip), %rdi
	movdqa	.LC1(%rip), %xmm0
	leaq	800000(%rdi), %rcx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L6
	movabsq	$1000000000000000000, %rax
	movq	$0, dp(%rip)
	movq	%rax, 800000+dp(%rip)
	testl	%edx, %edx
	jle	.L7
	movslq	%edx, %rsi
	xorl	%r11d, %r11d
	leaq	v(%rip), %rbx
	movl	$100000, %ebp
	leaq	w(%rip), %r13
	leaq	799992(%rdi), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r11,4), %edx
	cmpl	$100000, %edx
	jg	.L11
	movl	%ebp, %r8d
	movq	%r12, %r9
	movslq	0(%r13,%r11,4), %r10
	leaq	800000+dp(%rip), %rax
	subl	%edx, %r8d
	movl	%r8d, %edx
	movslq	%r8d, %r8
	salq	$3, %rdx
	subq	%rdx, %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	-800000(%rax,%r8,8), %rdx
	movq	(%rax), %rcx
	addq	%r10, %rdx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	subq	$8, %rax
	movq	%rdx, 8(%rax)
	cmpq	%r9, %rax
	jne	.L9
.L11:
	addq	$1, %r11
	cmpq	%rsi, %r11
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	W(%rip), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpq	(%rdi,%rax,8), %rcx
	cmovge	%eax, %edx
	addq	$1, %rax
	cmpq	$100001, %rax
	jne	.L13
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 800800
dp:
	.zero	800800
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 440
v:
	.zero	440
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 440
w:
	.zero	440
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	inf
	.section	.rodata
	.align 8
	.type	inf, @object
	.size	inf, 8
inf:
	.quad	1000000000000000000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.quad	1000000000000000000
	.quad	1000000000000000000
	.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	"%d%d"
.LC2:
	.string	"%d\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
	leaq	.LC0(%rip), %r13
	leaq	W(%rip), %rdx
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	n(%rip), %rsi
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	testl	%edx, %edx
	jle	.L4
	leaq	w(%rip), %r12
	xorl	%ebp, %ebp
	leaq	v(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%rbx,%rbp,4), %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	addq	$1, %rbp
	addq	$4, %r12
	cmpl	%ebp, %edx
	jg	.L5
.L4:
	leaq	dp(%rip), %rdi
	movdqa	.LC1(%rip), %xmm0
	leaq	800000(%rdi), %rcx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L6
	movabsq	$1000000000000000000, %rax
	movq	$0, dp(%rip)
	movq	%rax, 800000+dp(%rip)
	testl	%edx, %edx
	jle	.L7
	movslq	%edx, %rsi
	xorl	%r11d, %r11d
	leaq	v(%rip), %rbx
	movl	$100000, %ebp
	leaq	w(%rip), %r13
	leaq	799992(%rdi), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r11,4), %edx
	cmpl	$100000, %edx
	jg	.L11
	movl	%ebp, %r8d
	movq	%r12, %r9
	movslq	0(%r13,%r11,4), %r10
	leaq	800000+dp(%rip), %rax
	subl	%edx, %r8d
	movl	%r8d, %edx
	movslq	%r8d, %r8
	salq	$3, %rdx
	subq	%rdx, %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	-800000(%rax,%r8,8), %rdx
	movq	(%rax), %rcx
	addq	%r10, %rdx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	subq	$8, %rax
	movq	%rdx, 8(%rax)
	cmpq	%r9, %rax
	jne	.L9
.L11:
	addq	$1, %r11
	cmpq	%rsi, %r11
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	W(%rip), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpq	(%rdi,%rax,8), %rcx
	cmovge	%eax, %edx
	addq	$1, %rax
	cmpq	$100001, %rax
	jne	.L13
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 800800
dp:
	.zero	800800
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 440
v:
	.zero	440
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 440
w:
	.zero	440
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	inf
	.section	.rodata
	.align 8
	.type	inf, @object
	.size	inf, 8
inf:
	.quad	1000000000000000000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.quad	1000000000000000000
	.quad	1000000000000000000
	.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	"%d%d"
.LC2:
	.string	"%d\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
	leaq	.LC0(%rip), %r13
	leaq	W(%rip), %rdx
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	n(%rip), %rsi
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	testl	%edx, %edx
	jle	.L4
	leaq	w(%rip), %r12
	xorl	%ebp, %ebp
	leaq	v(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%rbx,%rbp,4), %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	addq	$1, %rbp
	addq	$4, %r12
	cmpl	%ebp, %edx
	jg	.L5
.L4:
	leaq	dp(%rip), %rdi
	movdqa	.LC1(%rip), %xmm0
	leaq	800000(%rdi), %rcx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L6
	movabsq	$1000000000000000000, %rax
	movq	$0, dp(%rip)
	movq	%rax, 800000+dp(%rip)
	testl	%edx, %edx
	jle	.L7
	movslq	%edx, %rsi
	xorl	%r11d, %r11d
	leaq	v(%rip), %rbx
	movl	$100000, %ebp
	leaq	w(%rip), %r13
	leaq	799992(%rdi), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r11,4), %edx
	cmpl	$100000, %edx
	jg	.L11
	movl	%ebp, %r8d
	movq	%r12, %r9
	movslq	0(%r13,%r11,4), %r10
	leaq	800000+dp(%rip), %rax
	subl	%edx, %r8d
	movl	%r8d, %edx
	movslq	%r8d, %r8
	salq	$3, %rdx
	subq	%rdx, %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	-800000(%rax,%r8,8), %rdx
	movq	(%rax), %rcx
	addq	%r10, %rdx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	subq	$8, %rax
	movq	%rdx, 8(%rax)
	cmpq	%r9, %rax
	jne	.L9
.L11:
	addq	$1, %r11
	cmpq	%rsi, %r11
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	W(%rip), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpq	(%rdi,%rax,8), %rcx
	cmovge	%eax, %edx
	addq	$1, %rax
	cmpq	$100001, %rax
	jne	.L13
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 800800
dp:
	.zero	800800
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 440
v:
	.zero	440
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 440
w:
	.zero	440
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	inf
	.section	.rodata
	.align 8
	.type	inf, @object
	.size	inf, 8
inf:
	.quad	1000000000000000000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.quad	1000000000000000000
	.quad	1000000000000000000
	.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>

const long long inf = 1e18;

int n, W;
int w[110], v[110];
long long dp[100100];

long long min(long long a, long long b) {
    return (a < b ? a : b);
}

int main() {
    scanf("%d%d", &n, &W);
    for (int i = 0; i < n; i++) scanf("%d%d", &w[i], &v[i]);

    for (int i = 0; i <= 100000; i++) dp[i] = inf;
    dp[0] = 0;
    for (int i = 0; i < n; i++) {
        for (int j = 100000; j >= v[i]; j--) {
            dp[j] = min(dp[j], dp[j - v[i]] + 1ll * w[i]);
        }
    }

    int ans = 0;
    for (int i = 0; i <= 100000; i++) {
        if (dp[i] <= W) ans = i;
    } 
    printf("%d\n", ans);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

const long long inf = 1e18;

int n, W;
int w[110], v[110];
long long dp[100100];

long long min(long long a, long long b) {
    return (a < b ? a : b);
}

int main() {
    scanf("%d%d", &n, &W);
    for (int i = 0; i < n; i++) scanf("%d%d", &w[i], &v[i]);

    for (int i = 0; i <= 100000; i++) dp[i] = inf;
    dp[0] = 0;
    for (int i = 0; i < n; i++) {
        for (int j = 100000; j >= v[i]; j--) {
            dp[j] = min(dp[j], dp[j - v[i]] + 1ll * w[i]);
        }
    }

    int ans = 0;
    for (int i = 0; i <= 100000; i++) {
        if (dp[i] <= W) ans = i;
    } 
    printf("%d\n", ans);
}```

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:

1 1000000000
0000000000 10
 6 15
6 5
5 6
3 4
6 6
3 5
7 2
 3 8
3 30
4 35
5 60
 3 8
3 30
4 35
5 78
 6 15
6 5
0 6
3 4
6 6
3 5
7 3
 3 8
3 30
0 35
5 78
 2 8
3 30
4 50
5 60
 1 1000000000
0000000000 7
 6 15
6 5
5 5
3 4
6 6
3 5
7 3
 6 8
6 5
5 6
3 3
6 6
3 5
7 2

10
 17
 90
 108
 22
 143
 80
 7
 16
 11

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>

const long long inf = 1e18;

int n, W;
int w[110], v[110];
long long dp[100100];

long long min(long long a, long long b) {
    return (a < b ? a : b);
}

int main() {
    scanf("%d%d", &n, &W);
    for (int i = 0; i < n; i++) scanf("%d%d", &w[i], &v[i]);

    for (int i = 0; i <= 100000; i++) dp[i] = inf;
    dp[0] = 0;
    for (int i = 0; i < n; i++) {
        for (int j = 100000; j >= v[i]; j--) {
            dp[j] = min(dp[j], dp[j - v[i]] + 1ll * w[i]);
        }
    }

    int ans = 0;
    for (int i = 0; i <= 100000; i++) {
        if (dp[i] <= W) ans = i;
    } 
    printf("%d\n", ans);
}```

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	"%d%d"
.LC2:
	.string	"%d\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
	leaq	.LC0(%rip), %r13
	leaq	W(%rip), %rdx
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	n(%rip), %rsi
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	testl	%edx, %edx
	jle	.L4
	leaq	w(%rip), %r12
	xorl	%ebp, %ebp
	leaq	v(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%rbx,%rbp,4), %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	addq	$1, %rbp
	addq	$4, %r12
	cmpl	%ebp, %edx
	jg	.L5
.L4:
	leaq	dp(%rip), %rdi
	movdqa	.LC1(%rip), %xmm0
	leaq	800000(%rdi), %rcx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L6
	movabsq	$1000000000000000000, %rax
	movq	$0, dp(%rip)
	movq	%rax, 800000+dp(%rip)
	testl	%edx, %edx
	jle	.L7
	movslq	%edx, %rsi
	xorl	%r11d, %r11d
	leaq	v(%rip), %rbx
	movl	$100000, %ebp
	leaq	w(%rip), %r13
	leaq	799992(%rdi), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r11,4), %edx
	cmpl	$100000, %edx
	jg	.L11
	movl	%ebp, %r8d
	movq	%r12, %r9
	movslq	0(%r13,%r11,4), %r10
	leaq	800000+dp(%rip), %rax
	subl	%edx, %r8d
	movl	%r8d, %edx
	movslq	%r8d, %r8
	salq	$3, %rdx
	subq	%rdx, %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	-800000(%rax,%r8,8), %rdx
	movq	(%rax), %rcx
	addq	%r10, %rdx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	subq	$8, %rax
	movq	%rdx, 8(%rax)
	cmpq	%r9, %rax
	jne	.L9
.L11:
	addq	$1, %r11
	cmpq	%rsi, %r11
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	W(%rip), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpq	(%rdi,%rax,8), %rcx
	cmovge	%eax, %edx
	addq	$1, %rax
	cmpq	$100001, %rax
	jne	.L13
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 800800
dp:
	.zero	800800
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 440
v:
	.zero	440
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 440
w:
	.zero	440
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	inf
	.section	.rodata
	.align 8
	.type	inf, @object
	.size	inf, 8
inf:
	.quad	1000000000000000000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.quad	1000000000000000000
	.quad	1000000000000000000
	.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	"%d%d"
.LC2:
	.string	"%d\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
	leaq	.LC0(%rip), %r13
	leaq	W(%rip), %rdx
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	n(%rip), %rsi
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	testl	%edx, %edx
	jle	.L4
	leaq	w(%rip), %r12
	xorl	%ebp, %ebp
	leaq	v(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%rbx,%rbp,4), %rdx
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %edx
	addq	$1, %rbp
	addq	$4, %r12
	cmpl	%ebp, %edx
	jg	.L5
.L4:
	leaq	dp(%rip), %rdi
	movdqa	.LC1(%rip), %xmm0
	leaq	800000(%rdi), %rcx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L6
	movabsq	$1000000000000000000, %rax
	movq	$0, dp(%rip)
	movq	%rax, 800000+dp(%rip)
	testl	%edx, %edx
	jle	.L7
	movslq	%edx, %rsi
	xorl	%r11d, %r11d
	leaq	v(%rip), %rbx
	movl	$100000, %ebp
	leaq	w(%rip), %r13
	leaq	799992(%rdi), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r11,4), %edx
	cmpl	$100000, %edx
	jg	.L11
	movl	%ebp, %r8d
	movq	%r12, %r9
	movslq	0(%r13,%r11,4), %r10
	leaq	800000+dp(%rip), %rax
	subl	%edx, %r8d
	movl	%r8d, %edx
	movslq	%r8d, %r8
	salq	$3, %rdx
	subq	%rdx, %r9
	.p2align 4,,10
	.p2align 3
.L9:
	movq	-800000(%rax,%r8,8), %rdx
	movq	(%rax), %rcx
	addq	%r10, %rdx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	subq	$8, %rax
	movq	%rdx, 8(%rax)
	cmpq	%r9, %rax
	jne	.L9
.L11:
	addq	$1, %r11
	cmpq	%rsi, %r11
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	W(%rip), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L13:
	cmpq	(%rdi,%rax,8), %rcx
	cmovge	%eax, %edx
	addq	$1, %rax
	cmpq	$100001, %rax
	jne	.L13
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 800800
dp:
	.zero	800800
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 440
v:
	.zero	440
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 440
w:
	.zero	440
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	inf
	.section	.rodata
	.align 8
	.type	inf, @object
	.size	inf, 8
inf:
	.quad	1000000000000000000
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.quad	1000000000000000000
	.quad	1000000000000000000
	.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:
```