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>

long long dp[110][100010];

long long min(long long a, long long b){
    if(a<b)
        return a;

    return b;    
}

int main(){
    int i,j,n;
    long long v[110],w[110];
    long W,v_sum = 0;

    scanf("%d %ld",&n,&W);

    for(i = 1; i<= n ; i++){
        scanf("%lld %lld",&w[i],&v[i]);
        v_sum += v[i];
    }

    for(i = 0; i <= n ;i++){
        for(j = 0 ; j <= v_sum  ;j++){
            dp[i][j] = 1000000001;
        }
    }

    
    dp[1][v[1]] = w[1];
    dp[1][0] = 0;
    for(i = 2; i<= n ; i++){
        dp[i][v[i]] = w[i];
        for(j = 0; j <= v_sum ; j++){
            if(j-v[i] >= 0){
                dp[i][j] = min(dp[i-1][j],dp[i-1][j-v[i]]+w[i]);
            }else{
                dp[i][j] = dp[i-1][j];
            }
            //printf("%lld",dp[i][j]);
        }
        //printf("\n");
    }
    for(i = n ; i >= 1 ; i--){
        for(j = v_sum ; j >= 1 ; j--){
            if(dp[i][j] <= W)
                break;
        }
        if(dp[i][j] <= W)
                break;
    }
    printf("%lld\n",j);
    return 0;


}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 88008800
dp:
	.zero	88008800
	.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	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jge	.L2
	movq	-8(%rbp), %rax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d %ld"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld\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	$1808, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -1784(%rbp)
	leaq	-1792(%rbp), %rdx
	leaq	-1804(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1800(%rbp)
	jmp	.L5
.L6:
	leaq	-1776(%rbp), %rdx
	movl	-1800(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-896(%rbp), %rcx
	movl	-1800(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1800(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rax
	addq	%rax, -1784(%rbp)
	addl	$1, -1800(%rbp)
.L5:
	movl	-1804(%rbp), %eax
	cmpl	%eax, -1800(%rbp)
	jle	.L6
	movl	$0, -1800(%rbp)
	jmp	.L7
.L10:
	movl	$0, -1796(%rbp)
	jmp	.L8
.L9:
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$1000000001, (%rdx,%rax)
	addl	$1, -1796(%rbp)
.L8:
	movl	-1796(%rbp), %eax
	cltq
	cmpq	%rax, -1784(%rbp)
	jge	.L9
	addl	$1, -1800(%rbp)
.L7:
	movl	-1804(%rbp), %eax
	cmpl	%eax, -1800(%rbp)
	jle	.L10
	movq	-1768(%rbp), %rdx
	movq	-888(%rbp), %rax
	addq	$100010, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	$0, 800080+dp(%rip)
	movl	$2, -1800(%rbp)
	jmp	.L11
.L16:
	movl	-1800(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movl	-1800(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	movl	-1800(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$100010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	$0, -1796(%rbp)
	jmp	.L12
.L15:
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	js	.L13
	movl	-1800(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movslq	%ecx, %rax
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-1800(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-1800(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-1796(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rax
	imulq	$100010, %rax, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movl	-1796(%rbp), %edx
	movslq	%edx, %rcx
	movl	-1800(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$100010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L14
.L13:
	movl	-1800(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-1796(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$100010, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-1796(%rbp), %edx
	movslq	%edx, %rcx
	movl	-1800(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$100010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
.L14:
	addl	$1, -1796(%rbp)
.L12:
	movl	-1796(%rbp), %eax
	cltq
	cmpq	%rax, -1784(%rbp)
	jge	.L15
	addl	$1, -1800(%rbp)
.L11:
	movl	-1804(%rbp), %eax
	cmpl	%eax, -1800(%rbp)
	jle	.L16
	movl	-1804(%rbp), %eax
	movl	%eax, -1800(%rbp)
	jmp	.L17
.L24:
	movq	-1784(%rbp), %rax
	movl	%eax, -1796(%rbp)
	jmp	.L18
.L21:
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-1792(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L27
	subl	$1, -1796(%rbp)
.L18:
	cmpl	$0, -1796(%rbp)
	jg	.L21
	jmp	.L20
.L27:
	nop
.L20:
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-1792(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L28
	subl	$1, -1800(%rbp)
.L17:
	cmpl	$0, -1800(%rbp)
	jg	.L24
	jmp	.L23
.L28:
	nop
.L23:
	movl	-1796(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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	%rsi, %rdi
	movq	%rsi, %rax
	cmovle	%rdi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %ld"
.LC1:
	.string	"%lld %lld"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1832, %rsp
	.cfi_def_cfa_offset 1888
	movq	%fs:40, %rax
	movq	%rax, 1816(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rdx
	leaq	36(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L27
	movl	$1, %r14d
	xorl	%ebx, %ebx
	leaq	48(%rsp), %rbp
	leaq	928(%rsp), %r15
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	0(,%r14,8), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	0(%rbp,%rsi), %rdx
	addq	%r15, %rsi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r11d
	addq	0(%rbp,%r14,8), %rbx
	addq	$1, %r14
	cmpl	%r14d, %r11d
	jge	.L5
.L4:
	leaq	dp(%rip), %rsi
	testl	%r11d, %r11d
	js	.L6
	leaq	1(%rbx), %rbp
	xorl	%eax, %eax
	leal	1(%rbx), %r12d
	movq	%rsi, %rcx
	movq	%rbp, %rdi
	movq	%rbp, %r9
	movq	%rbp, 16(%rsp)
	leal	1(%r11), %r8d
	shrq	%rdi
	andq	$-2, %r9
	movdqa	.LC2(%rip), %xmm0
	salq	$4, %rdi
	testq	%rbx, %rbx
	movl	%r9d, %r10d
	cmovs	%eax, %r12d
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	testq	%rbx, %rbx
	js	.L13
	je	.L28
	leaq	(%rdi,%rcx), %r13
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L9:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%r13, %rax
	jne	.L9
	movslq	%r10d, %r13
	cmpq	%rbp, %r9
	je	.L13
.L8:
	movslq	%edx, %rax
	imulq	$100010, %rax, %rax
	addq	%r13, %rax
	movq	$1000000001, (%rsi,%rax,8)
.L13:
	addl	$1, %edx
	addq	$800080, %rcx
	cmpl	%r8d, %edx
	jne	.L7
	movq	56(%rsp), %rax
	movq	936(%rsp), %rcx
	movq	%rcx, 800080(%rsi,%rax,8)
	movq	$0, 800080+dp(%rip)
	cmpl	$1, %r11d
	jle	.L14
	movl	%edx, %eax
	movl	%r11d, 28(%rsp)
	leaq	800080+dp(%rip), %r10
	movl	$100010, %r15d
	movq	%rax, 8(%rsp)
	movl	$200020, %r14d
	movl	$2, %r13d
	leaq	48(%rsp), %rbp
	leaq	928(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%r13d, %rax
	movq	0(%rbp,%r13,8), %rdx
	movq	(%r12,%r13,8), %r11
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	movq	%r11, (%rsi,%rax,8)
	testq	%rbx, %rbx
	js	.L20
	movq	16(%rsp), %r9
	movq	%rdx, %rax
	leaq	(%rdx,%r15), %rcx
	negq	%rax
	leaq	(%rsi,%rcx,8), %r8
	subq	%rdx, %r9
	addq	%r14, %rdx
	leaq	(%rsi,%rdx,8), %rdi
	.p2align 4,,10
	.p2align 3
.L21:
	movq	(%r8,%rax,8), %rcx
	testq	%rax, %rax
	js	.L18
	movq	(%r10,%rax,8), %rdx
	addq	%r11, %rdx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	movq	%rdx, (%rdi,%rax,8)
	addq	$1, %rax
	cmpq	%r9, %rax
	jne	.L21
.L20:
	addq	$1, %r13
	addq	$100010, %r14
	addq	$800080, %r10
	addq	$100010, %r15
	cmpq	8(%rsp), %r13
	jne	.L16
	movl	28(%rsp), %r11d
.L17:
	movslq	%r11d, %rax
	movl	%ebx, %r8d
	movslq	%ebx, %rbx
	movq	40(%rsp), %rdx
	imulq	$100010, %rax, %rax
	addq	%rbx, %rax
	leaq	(%rsi,%rax,8), %rdi
	.p2align 4,,10
	.p2align 3
.L22:
	testl	%r8d, %r8d
	jle	.L29
	movq	%rdi, %rax
	movl	%r8d, %r12d
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L42:
	subq	$8, %rax
	subl	$1, %r12d
	je	.L24
.L25:
	cmpq	%rdx, (%rax)
	jg	.L42
.L23:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	1816(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$1832, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	movq	%rcx, (%rdi,%rax,8)
	addq	$1, %rax
	cmpq	%r9, %rax
	jne	.L21
	jmp	.L20
.L29:
	movl	%r8d, %r12d
	.p2align 4,,10
	.p2align 3
.L24:
	movslq	%r11d, %rax
	movslq	%r12d, %rcx
	imulq	$100010, %rax, %rax
	addq	%rcx, %rax
	cmpq	(%rsi,%rax,8), %rdx
	jge	.L23
	subq	$800080, %rdi
	subl	$1, %r11d
	jne	.L22
	jmp	.L23
.L28:
	xorl	%r13d, %r13d
	jmp	.L8
.L6:
	movq	56(%rsp), %rax
	movq	936(%rsp), %rdx
	movq	%rdx, 800080(%rsi,%rax,8)
	movq	$0, 800080+dp(%rip)
.L14:
	cmpl	$1, %r11d
	je	.L17
	jmp	.L23
.L27:
	xorl	%ebx, %ebx
	jmp	.L4
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 88008800
dp:
	.zero	88008800
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1000000001
	.quad	1000000001
	.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	%rsi, %rdi
	movq	%rsi, %rax
	cmovle	%rdi, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %ld"
.LC1:
	.string	"%lld %lld"
.LC3:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$1832, %rsp
	.cfi_def_cfa_offset 1888
	movq	%fs:40, %rax
	movq	%rax, 1816(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rdx
	leaq	36(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L27
	movl	$1, %r14d
	xorl	%ebx, %ebx
	leaq	48(%rsp), %rbp
	leaq	928(%rsp), %r15
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	0(,%r14,8), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	leaq	0(%rbp,%rsi), %rdx
	addq	%r15, %rsi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r11d
	addq	0(%rbp,%r14,8), %rbx
	addq	$1, %r14
	cmpl	%r14d, %r11d
	jge	.L5
.L4:
	leaq	dp(%rip), %rsi
	testl	%r11d, %r11d
	js	.L6
	leaq	1(%rbx), %rbp
	xorl	%eax, %eax
	leal	1(%rbx), %r12d
	movq	%rsi, %rcx
	movq	%rbp, %rdi
	movq	%rbp, %r9
	movq	%rbp, 16(%rsp)
	leal	1(%r11), %r8d
	shrq	%rdi
	andq	$-2, %r9
	movdqa	.LC2(%rip), %xmm0
	salq	$4, %rdi
	testq	%rbx, %rbx
	movl	%r9d, %r10d
	cmovs	%eax, %r12d
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	testq	%rbx, %rbx
	js	.L13
	je	.L28
	leaq	(%rdi,%rcx), %r13
	movq	%rcx, %rax
	.p2align 4,,10
	.p2align 3
.L9:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%r13, %rax
	jne	.L9
	movslq	%r10d, %r13
	cmpq	%rbp, %r9
	je	.L13
.L8:
	movslq	%edx, %rax
	imulq	$100010, %rax, %rax
	addq	%r13, %rax
	movq	$1000000001, (%rsi,%rax,8)
.L13:
	addl	$1, %edx
	addq	$800080, %rcx
	cmpl	%r8d, %edx
	jne	.L7
	movq	56(%rsp), %rax
	movq	936(%rsp), %rcx
	movq	%rcx, 800080(%rsi,%rax,8)
	movq	$0, 800080+dp(%rip)
	cmpl	$1, %r11d
	jle	.L14
	movl	%edx, %eax
	movl	%r11d, 28(%rsp)
	leaq	800080+dp(%rip), %r10
	movl	$100010, %r15d
	movq	%rax, 8(%rsp)
	movl	$200020, %r14d
	movl	$2, %r13d
	leaq	48(%rsp), %rbp
	leaq	928(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L16:
	movslq	%r13d, %rax
	movq	0(%rbp,%r13,8), %rdx
	movq	(%r12,%r13,8), %r11
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	movq	%r11, (%rsi,%rax,8)
	testq	%rbx, %rbx
	js	.L20
	movq	16(%rsp), %r9
	movq	%rdx, %rax
	leaq	(%rdx,%r15), %rcx
	negq	%rax
	leaq	(%rsi,%rcx,8), %r8
	subq	%rdx, %r9
	addq	%r14, %rdx
	leaq	(%rsi,%rdx,8), %rdi
	.p2align 4,,10
	.p2align 3
.L21:
	movq	(%r8,%rax,8), %rcx
	testq	%rax, %rax
	js	.L18
	movq	(%r10,%rax,8), %rdx
	addq	%r11, %rdx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	movq	%rdx, (%rdi,%rax,8)
	addq	$1, %rax
	cmpq	%r9, %rax
	jne	.L21
.L20:
	addq	$1, %r13
	addq	$100010, %r14
	addq	$800080, %r10
	addq	$100010, %r15
	cmpq	8(%rsp), %r13
	jne	.L16
	movl	28(%rsp), %r11d
.L17:
	movslq	%r11d, %rax
	movl	%ebx, %r8d
	movslq	%ebx, %rbx
	movq	40(%rsp), %rdx
	imulq	$100010, %rax, %rax
	addq	%rbx, %rax
	leaq	(%rsi,%rax,8), %rdi
	.p2align 4,,10
	.p2align 3
.L22:
	testl	%r8d, %r8d
	jle	.L29
	movq	%rdi, %rax
	movl	%r8d, %r12d
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L42:
	subq	$8, %rax
	subl	$1, %r12d
	je	.L24
.L25:
	cmpq	%rdx, (%rax)
	jg	.L42
.L23:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	1816(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$1832, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	movq	%rcx, (%rdi,%rax,8)
	addq	$1, %rax
	cmpq	%r9, %rax
	jne	.L21
	jmp	.L20
.L29:
	movl	%r8d, %r12d
	.p2align 4,,10
	.p2align 3
.L24:
	movslq	%r11d, %rax
	movslq	%r12d, %rcx
	imulq	$100010, %rax, %rax
	addq	%rcx, %rax
	cmpq	(%rsi,%rax,8), %rdx
	jge	.L23
	subq	$800080, %rdi
	subl	$1, %r11d
	jne	.L22
	jmp	.L23
.L28:
	xorl	%r13d, %r13d
	jmp	.L8
.L6:
	movq	56(%rsp), %rax
	movq	936(%rsp), %rdx
	movq	%rdx, 800080(%rsi,%rax,8)
	movq	$0, 800080+dp(%rip)
.L14:
	cmpl	$1, %r11d
	je	.L17
	jmp	.L23
.L27:
	xorl	%ebx, %ebx
	jmp	.L4
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 88008800
dp:
	.zero	88008800
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1000000001
	.quad	1000000001
	.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>

long long dp[110][100010];

long long min(long long a, long long b){
    if(a<b)
        return a;

    return b;    
}

int main(){
    int i,j,n;
    long long v[110],w[110];
    long W,v_sum = 0;

    scanf("%d %ld",&n,&W);

    for(i = 1; i<= n ; i++){
        scanf("%lld %lld",&w[i],&v[i]);
        v_sum += v[i];
    }

    for(i = 0; i <= n ;i++){
        for(j = 0 ; j <= v_sum  ;j++){
            dp[i][j] = 1000000001;
        }
    }

    
    dp[1][v[1]] = w[1];
    dp[1][0] = 0;
    for(i = 2; i<= n ; i++){
        dp[i][v[i]] = w[i];
        for(j = 0; j <= v_sum ; j++){
            if(j-v[i] >= 0){
                dp[i][j] = min(dp[i-1][j],dp[i-1][j-v[i]]+w[i]);
            }else{
                dp[i][j] = dp[i-1][j];
            }
            //printf("%lld",dp[i][j]);
        }
        //printf("\n");
    }
    for(i = n ; i >= 1 ; i--){
        for(j = v_sum ; j >= 1 ; j--){
            if(dp[i][j] <= W)
                break;
        }
        if(dp[i][j] <= W)
                break;
    }
    printf("%lld\n",j);
    return 0;


}
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>

long long dp[110][100010];

long long min(long long a, long long b){
    if(a<b)
        return a;

    return b;    
}

int main(){
    int i,j,n;
    long long v[110],w[110];
    long W,v_sum = 0;

    scanf("%d %ld",&n,&W);

    for(i = 1; i<= n ; i++){
        scanf("%lld %lld",&w[i],&v[i]);
        v_sum += v[i];
    }

    for(i = 0; i <= n ;i++){
        for(j = 0 ; j <= v_sum  ;j++){
            dp[i][j] = 1000000001;
        }
    }

    
    dp[1][v[1]] = w[1];
    dp[1][0] = 0;
    for(i = 2; i<= n ; i++){
        dp[i][v[i]] = w[i];
        for(j = 0; j <= v_sum ; j++){
            if(j-v[i] >= 0){
                dp[i][j] = min(dp[i-1][j],dp[i-1][j-v[i]]+w[i]);
            }else{
                dp[i][j] = dp[i-1][j];
            }
            //printf("%lld",dp[i][j]);
        }
        //printf("\n");
    }
    for(i = n ; i >= 1 ; i--){
        for(j = v_sum ; j >= 1 ; j--){
            if(dp[i][j] <= W)
                break;
        }
        if(dp[i][j] <= W)
                break;
    }
    printf("%lld\n",j);
    return 0;


}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 88008800
dp:
	.zero	88008800
	.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	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jge	.L2
	movq	-8(%rbp), %rax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d %ld"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld\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	$1808, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -1784(%rbp)
	leaq	-1792(%rbp), %rdx
	leaq	-1804(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1800(%rbp)
	jmp	.L5
.L6:
	leaq	-1776(%rbp), %rdx
	movl	-1800(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-896(%rbp), %rcx
	movl	-1800(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1800(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rax
	addq	%rax, -1784(%rbp)
	addl	$1, -1800(%rbp)
.L5:
	movl	-1804(%rbp), %eax
	cmpl	%eax, -1800(%rbp)
	jle	.L6
	movl	$0, -1800(%rbp)
	jmp	.L7
.L10:
	movl	$0, -1796(%rbp)
	jmp	.L8
.L9:
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$1000000001, (%rdx,%rax)
	addl	$1, -1796(%rbp)
.L8:
	movl	-1796(%rbp), %eax
	cltq
	cmpq	%rax, -1784(%rbp)
	jge	.L9
	addl	$1, -1800(%rbp)
.L7:
	movl	-1804(%rbp), %eax
	cmpl	%eax, -1800(%rbp)
	jle	.L10
	movq	-1768(%rbp), %rdx
	movq	-888(%rbp), %rax
	addq	$100010, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	$0, 800080+dp(%rip)
	movl	$2, -1800(%rbp)
	jmp	.L11
.L16:
	movl	-1800(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movl	-1800(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	movl	-1800(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$100010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	$0, -1796(%rbp)
	jmp	.L12
.L15:
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	js	.L13
	movl	-1800(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movslq	%ecx, %rax
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-1800(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-1800(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-1796(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rax
	imulq	$100010, %rax, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movl	-1796(%rbp), %edx
	movslq	%edx, %rcx
	movl	-1800(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$100010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L14
.L13:
	movl	-1800(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-1796(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$100010, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-1796(%rbp), %edx
	movslq	%edx, %rcx
	movl	-1800(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$100010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
.L14:
	addl	$1, -1796(%rbp)
.L12:
	movl	-1796(%rbp), %eax
	cltq
	cmpq	%rax, -1784(%rbp)
	jge	.L15
	addl	$1, -1800(%rbp)
.L11:
	movl	-1804(%rbp), %eax
	cmpl	%eax, -1800(%rbp)
	jle	.L16
	movl	-1804(%rbp), %eax
	movl	%eax, -1800(%rbp)
	jmp	.L17
.L24:
	movq	-1784(%rbp), %rax
	movl	%eax, -1796(%rbp)
	jmp	.L18
.L21:
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-1792(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L27
	subl	$1, -1796(%rbp)
.L18:
	cmpl	$0, -1796(%rbp)
	jg	.L21
	jmp	.L20
.L27:
	nop
.L20:
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-1792(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L28
	subl	$1, -1800(%rbp)
.L17:
	cmpl	$0, -1800(%rbp)
	jg	.L24
	jmp	.L23
.L28:
	nop
.L23:
	movl	-1796(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 88008800
dp:
	.zero	88008800
	.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	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jge	.L2
	movq	-8(%rbp), %rax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d %ld"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld\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	$1808, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -1784(%rbp)
	leaq	-1792(%rbp), %rdx
	leaq	-1804(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1800(%rbp)
	jmp	.L5
.L6:
	leaq	-1776(%rbp), %rdx
	movl	-1800(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-896(%rbp), %rcx
	movl	-1800(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-1800(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rax
	addq	%rax, -1784(%rbp)
	addl	$1, -1800(%rbp)
.L5:
	movl	-1804(%rbp), %eax
	cmpl	%eax, -1800(%rbp)
	jle	.L6
	movl	$0, -1800(%rbp)
	jmp	.L7
.L10:
	movl	$0, -1796(%rbp)
	jmp	.L8
.L9:
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$1000000001, (%rdx,%rax)
	addl	$1, -1796(%rbp)
.L8:
	movl	-1796(%rbp), %eax
	cltq
	cmpq	%rax, -1784(%rbp)
	jge	.L9
	addl	$1, -1800(%rbp)
.L7:
	movl	-1804(%rbp), %eax
	cmpl	%eax, -1800(%rbp)
	jle	.L10
	movq	-1768(%rbp), %rdx
	movq	-888(%rbp), %rax
	addq	$100010, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	$0, 800080+dp(%rip)
	movl	$2, -1800(%rbp)
	jmp	.L11
.L16:
	movl	-1800(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movl	-1800(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	movl	-1800(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$100010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	$0, -1796(%rbp)
	jmp	.L12
.L15:
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	js	.L13
	movl	-1800(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	movq	-1776(%rbp,%rax,8), %rax
	subq	%rax, %rdx
	movslq	%ecx, %rax
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-1800(%rbp), %eax
	cltq
	movq	-896(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-1800(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-1796(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rax
	imulq	$100010, %rax, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rax
	movq	(%rcx,%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movl	-1796(%rbp), %edx
	movslq	%edx, %rcx
	movl	-1800(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$100010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L14
.L13:
	movl	-1800(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-1796(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$100010, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-1796(%rbp), %edx
	movslq	%edx, %rcx
	movl	-1800(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$100010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
.L14:
	addl	$1, -1796(%rbp)
.L12:
	movl	-1796(%rbp), %eax
	cltq
	cmpq	%rax, -1784(%rbp)
	jge	.L15
	addl	$1, -1800(%rbp)
.L11:
	movl	-1804(%rbp), %eax
	cmpl	%eax, -1800(%rbp)
	jle	.L16
	movl	-1804(%rbp), %eax
	movl	%eax, -1800(%rbp)
	jmp	.L17
.L24:
	movq	-1784(%rbp), %rax
	movl	%eax, -1796(%rbp)
	jmp	.L18
.L21:
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-1792(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L27
	subl	$1, -1796(%rbp)
.L18:
	cmpl	$0, -1796(%rbp)
	jg	.L21
	jmp	.L20
.L27:
	nop
.L20:
	movl	-1796(%rbp), %eax
	movslq	%eax, %rdx
	movl	-1800(%rbp), %eax
	cltq
	imulq	$100010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-1792(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L28
	subl	$1, -1800(%rbp)
.L17:
	cmpl	$0, -1800(%rbp)
	jg	.L24
	jmp	.L23
.L28:
	nop
.L23:
	movl	-1796(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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:
