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>

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);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	inf
	.section	.rodata
	.align 8
	.type	inf, @object
	.size	inf, 8
inf:
	.quad	1000000000000000000
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 440
w:
	.zero	440
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 440
v:
	.zero	440
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 800800
dp:
	.zero	800800
	.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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.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
	subq	$32, %rsp
	leaq	W(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -24(%rbp)
	jmp	.L4
.L5:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	w(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -24(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L5
	movl	$0, -20(%rbp)
	jmp	.L6
.L7:
	movabsq	$1000000000000000000, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L6:
	cmpl	$100000, -20(%rbp)
	jle	.L7
	movq	$0, dp(%rip)
	movl	$0, -16(%rbp)
	jmp	.L8
.L11:
	movl	$100000, -12(%rbp)
	jmp	.L9
.L10:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	subl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	(%rcx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	subl	$1, -12(%rbp)
.L9:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L10
	addl	$1, -16(%rbp)
.L8:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L11
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L12
.L14:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	W(%rip), %eax
	cltq
	cmpq	%rax, %rdx
	jg	.L13
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L13:
	addl	$1, -4(%rbp)
.L12:
	cmpl	$100000, -4(%rbp)
	jle	.L14
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	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
	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
	.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:

#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);
}
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 unoptimized 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);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	inf
	.section	.rodata
	.align 8
	.type	inf, @object
	.size	inf, 8
inf:
	.quad	1000000000000000000
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 440
w:
	.zero	440
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 440
v:
	.zero	440
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 800800
dp:
	.zero	800800
	.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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.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
	subq	$32, %rsp
	leaq	W(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -24(%rbp)
	jmp	.L4
.L5:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	w(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -24(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L5
	movl	$0, -20(%rbp)
	jmp	.L6
.L7:
	movabsq	$1000000000000000000, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L6:
	cmpl	$100000, -20(%rbp)
	jle	.L7
	movq	$0, dp(%rip)
	movl	$0, -16(%rbp)
	jmp	.L8
.L11:
	movl	$100000, -12(%rbp)
	jmp	.L9
.L10:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	subl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	(%rcx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	subl	$1, -12(%rbp)
.L9:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L10
	addl	$1, -16(%rbp)
.L8:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L11
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L12
.L14:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	W(%rip), %eax
	cltq
	cmpq	%rax, %rdx
	jg	.L13
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L13:
	addl	$1, -4(%rbp)
.L12:
	cmpl	$100000, -4(%rbp)
	jle	.L14
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	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	inf
	.section	.rodata
	.align 8
	.type	inf, @object
	.size	inf, 8
inf:
	.quad	1000000000000000000
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	W
	.align 4
	.type	W, @object
	.size	W, 4
W:
	.zero	4
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 440
w:
	.zero	440
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 440
v:
	.zero	440
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 800800
dp:
	.zero	800800
	.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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.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
	subq	$32, %rsp
	leaq	W(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -24(%rbp)
	jmp	.L4
.L5:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	w(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -24(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L5
	movl	$0, -20(%rbp)
	jmp	.L6
.L7:
	movabsq	$1000000000000000000, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L6:
	cmpl	$100000, -20(%rbp)
	jle	.L7
	movq	$0, dp(%rip)
	movl	$0, -16(%rbp)
	jmp	.L8
.L11:
	movl	$100000, -12(%rbp)
	jmp	.L9
.L10:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	subl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	w(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	(%rcx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	subl	$1, -12(%rbp)
.L9:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L10
	addl	$1, -16(%rbp)
.L8:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L11
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L12
.L14:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	W(%rip), %eax
	cltq
	cmpq	%rax, %rdx
	jg	.L13
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L13:
	addl	$1, -4(%rbp)
.L12:
	cmpl	$100000, -4(%rbp)
	jle	.L14
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	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:
