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>
#define LIMIT 100010

int min(int a,int b){
  if(a < b){
    return a;
  }
  return b;
}

int main(void) {
  int N, W;
  scanf("%d %d", &N, &W);

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

  int dp[LIMIT + 1];
  for (int i = 0; i < LIMIT; i++) {
    dp[i] = W + 1;
  }
  
  dp[0] = 0;

  for (int i = 0; i < N; i++) {
    for (int j = LIMIT; j >= v[i]; j--) {
      dp[j] = min(dp[j], dp[j - v[i]] + w[i]);
    }
  }

  for (int i = LIMIT - 1; i >= 0; i--) {
    if(dp[i] <= W){
      printf("%d\n", i);

      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\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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2856, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-400168(%rbp), %rdx
	leaq	-400172(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400172(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400144(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400192(%rbp)
	movq	$0, -400184(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400208(%rbp)
	movq	$0, -400200(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400136(%rbp)
	movl	-400172(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400128(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400120(%rbp)
	movl	$0, -400164(%rbp)
	jmp	.L11
.L12:
	movl	-400164(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rax, %rdx
	movl	-400164(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-400136(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400164(%rbp)
.L11:
	movl	-400172(%rbp), %eax
	cmpl	%eax, -400164(%rbp)
	jl	.L12
	movl	$0, -400160(%rbp)
	jmp	.L13
.L14:
	movl	-400168(%rbp), %eax
	leal	1(%rax), %edx
	movl	-400160(%rbp), %eax
	cltq
	movl	%edx, -400112(%rbp,%rax,4)
	addl	$1, -400160(%rbp)
.L13:
	cmpl	$100009, -400160(%rbp)
	jle	.L14
	movl	$0, -400112(%rbp)
	movl	$0, -400156(%rbp)
	jmp	.L15
.L18:
	movl	$100010, -400152(%rbp)
	jmp	.L16
.L17:
	movq	-400120(%rbp), %rax
	movl	-400156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-400152(%rbp), %eax
	subl	%edx, %eax
	cltq
	movl	-400112(%rbp,%rax,4), %ecx
	movq	-400136(%rbp), %rax
	movl	-400156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-400152(%rbp), %eax
	cltq
	movl	-400112(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400152(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -400112(%rbp,%rdx,4)
	subl	$1, -400152(%rbp)
.L16:
	movq	-400120(%rbp), %rax
	movl	-400156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -400152(%rbp)
	jge	.L17
	addl	$1, -400156(%rbp)
.L15:
	movl	-400172(%rbp), %eax
	cmpl	%eax, -400156(%rbp)
	jl	.L18
	movl	$100009, -400148(%rbp)
	jmp	.L19
.L22:
	movl	-400148(%rbp), %eax
	cltq
	movl	-400112(%rbp,%rax,4), %edx
	movl	-400168(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L20
	movl	-400148(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	jmp	.L21
.L20:
	subl	$1, -400148(%rbp)
.L19:
	cmpl	$0, -400148(%rbp)
	jns	.L22
	movq	%rbx, %rsp
	movl	$0, %eax
.L21:
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2808, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-400116(%rbp), %rdx
	leaq	-400120(%rbp), %rsi
	movq	%rsp, -400144(%rbp)
	call	__isoc99_scanf@PLT
	movslq	-400120(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
	cmpq	%rcx, %rsp
	je	.L5
.L46:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L46
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L47
.L6:
	movq	%rsp, -400152(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L7:
	cmpq	%rcx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L47:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L8:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L48
.L9:
	movq	%rsp, %rbx
	testl	%esi, %esi
	jle	.L10
	movq	-400152(%rbp), %r12
	movq	%rbx, %r15
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r13d
	addq	$4, %r12
	addq	$4, %r15
	movl	-400120(%rbp), %esi
	cmpl	%r13d, %esi
	jg	.L11
.L10:
	movl	-400116(%rbp), %r14d
	leaq	-400112(%rbp), %r10
	leaq	-80(%rbp), %rdx
	leal	1(%r14), %eax
	movd	%eax, %xmm1
	movq	%r10, %rax
	pshufd	$0, %xmm1, %xmm0
	.p2align 4,,10
	.p2align 3
.L12:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L12
	movl	$0, -400112(%rbp)
	pshufd	$0xe0, %xmm1, %xmm1
	movq	%xmm1, -80(%rbp)
	testl	%esi, %esi
	jle	.L13
	leaq	400036(%r10), %rax
	movl	%r14d, -400156(%rbp)
	movslq	%esi, %r13
	xorl	%r9d, %r9d
	movq	%rax, -400136(%rbp)
	movq	-400152(%rbp), %r14
	movl	$100010, %r15d
	.p2align 4,,10
	.p2align 3
.L14:
	movl	(%rbx,%r9,4), %esi
	cmpl	$100010, %esi
	jg	.L21
	movl	%r15d, %edx
	movl	(%r14,%r9,4), %edi
	subl	%esi, %edx
	cmpl	$-3, %esi
	jnb	.L15
	cmpl	$2, %edx
	jbe	.L15
	movl	$100011, %r11d
	movslq	%esi, %rax
	movd	%edi, %xmm5
	subl	%esi, %r11d
	negq	%rax
	pshufd	$0, %xmm5, %xmm3
	movl	%r11d, %r8d
	leaq	400028(%r10,%rax,4), %rcx
	leaq	-84(%rbp), %rax
	shrl	$2, %r8d
	leaq	-16(%rcx), %rdx
	leal	-1(%r8), %r12d
	movq	%rdx, %r8
	salq	$4, %r12
	subq	%r12, %r8
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L49:
	subq	$16, %rdx
.L16:
	movdqu	(%rcx), %xmm2
	movdqu	(%rax), %xmm4
	movq	%rdx, %rcx
	subq	$16, %rax
	pshufd	$27, %xmm2, %xmm2
	pshufd	$27, %xmm4, %xmm1
	paddd	%xmm3, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	pshufd	$27, %xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	cmpq	%r8, %rdx
	jne	.L49
	movl	%r11d, %edx
	movl	%r15d, %eax
	andl	$-4, %edx
	subl	%edx, %eax
	cmpl	%edx, %r11d
	je	.L21
	movslq	%eax, %rcx
	subl	%esi, %eax
	cltq
	movl	-400112(%rbp,%rcx,4), %r8d
	movl	-400112(%rbp,%rax,4), %r11d
	addl	%edi, %r11d
	cmpl	%r8d, %r11d
	movl	%r11d, %eax
	cmovg	%r8d, %eax
	movl	%eax, -400112(%rbp,%rcx,4)
	movl	$100009, %eax
	subl	%edx, %eax
	cmpl	%eax, %esi
	jg	.L21
	movslq	%eax, %rcx
	subl	%esi, %eax
	cltq
	movl	-400112(%rbp,%rcx,4), %r8d
	movl	-400112(%rbp,%rax,4), %r11d
	addl	%edi, %r11d
	cmpl	%r8d, %r11d
	movl	%r11d, %eax
	cmovg	%r8d, %eax
	movl	%eax, -400112(%rbp,%rcx,4)
	movl	$100008, %eax
	subl	%edx, %eax
	cmpl	%eax, %esi
	jg	.L21
	movslq	%eax, %rdx
	subl	%esi, %eax
	cltq
	addl	-400112(%rbp,%rax,4), %edi
	movl	-400112(%rbp,%rdx,4), %eax
	cmpl	%eax, %edi
	cmovg	%eax, %edi
	movl	%edi, -400112(%rbp,%rdx,4)
.L21:
	addq	$1, %r9
	cmpq	%r13, %r9
	jne	.L14
	movl	-400156(%rbp), %r14d
.L13:
	movl	$100009, %eax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L22:
	subq	$1, %rax
	jb	.L50
.L24:
	movl	%eax, %edx
	cmpl	(%r10,%rax,4), %r14d
	jl	.L22
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-400144(%rbp), %rsp
.L23:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L51
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movq	-400136(%rbp), %rcx
	salq	$2, %rdx
	leaq	-72(%rbp), %rax
	subq	%rdx, %rcx
	movl	%r15d, %edx
	subl	%esi, %edx
	movslq	%edx, %rsi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	-400040(%rax,%rsi,4), %edx
	movl	(%rax), %r8d
	addl	%edi, %edx
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	subq	$4, %rax
	movl	%edx, 4(%rax)
	cmpq	%rcx, %rax
	jne	.L18
	jmp	.L21
.L50:
	movq	-400144(%rbp), %rsp
	jmp	.L23
.L48:
	orq	$0, -8(%rsp,%rax)
	jmp	.L9
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:

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
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2808, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-400116(%rbp), %rdx
	leaq	-400120(%rbp), %rsi
	movq	%rsp, -400144(%rbp)
	call	__isoc99_scanf@PLT
	movslq	-400120(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
	cmpq	%rcx, %rsp
	je	.L5
.L46:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L46
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L47
.L6:
	movq	%rsp, -400152(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L7:
	cmpq	%rcx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L47:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L8:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L48
.L9:
	movq	%rsp, %rbx
	testl	%esi, %esi
	jle	.L10
	movq	-400152(%rbp), %r12
	movq	%rbx, %r15
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r13d
	addq	$4, %r12
	addq	$4, %r15
	movl	-400120(%rbp), %esi
	cmpl	%r13d, %esi
	jg	.L11
.L10:
	movl	-400116(%rbp), %r14d
	leaq	-400112(%rbp), %r10
	leaq	-80(%rbp), %rdx
	leal	1(%r14), %eax
	movd	%eax, %xmm1
	movq	%r10, %rax
	pshufd	$0, %xmm1, %xmm0
	.p2align 4,,10
	.p2align 3
.L12:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L12
	movl	$0, -400112(%rbp)
	pshufd	$0xe0, %xmm1, %xmm1
	movq	%xmm1, -80(%rbp)
	testl	%esi, %esi
	jle	.L13
	leaq	400036(%r10), %rax
	movl	%r14d, -400156(%rbp)
	movslq	%esi, %r13
	xorl	%r9d, %r9d
	movq	%rax, -400136(%rbp)
	movq	-400152(%rbp), %r14
	movl	$100010, %r15d
	.p2align 4,,10
	.p2align 3
.L14:
	movl	(%rbx,%r9,4), %esi
	cmpl	$100010, %esi
	jg	.L21
	movl	%r15d, %edx
	movl	(%r14,%r9,4), %edi
	subl	%esi, %edx
	cmpl	$-3, %esi
	jnb	.L15
	cmpl	$2, %edx
	jbe	.L15
	movl	$100011, %r11d
	movslq	%esi, %rax
	movd	%edi, %xmm5
	subl	%esi, %r11d
	negq	%rax
	pshufd	$0, %xmm5, %xmm3
	movl	%r11d, %r8d
	leaq	400028(%r10,%rax,4), %rcx
	leaq	-84(%rbp), %rax
	shrl	$2, %r8d
	leaq	-16(%rcx), %rdx
	leal	-1(%r8), %r12d
	movq	%rdx, %r8
	salq	$4, %r12
	subq	%r12, %r8
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L49:
	subq	$16, %rdx
.L16:
	movdqu	(%rcx), %xmm2
	movdqu	(%rax), %xmm4
	movq	%rdx, %rcx
	subq	$16, %rax
	pshufd	$27, %xmm2, %xmm2
	pshufd	$27, %xmm4, %xmm1
	paddd	%xmm3, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	pshufd	$27, %xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	cmpq	%r8, %rdx
	jne	.L49
	movl	%r11d, %edx
	movl	%r15d, %eax
	andl	$-4, %edx
	subl	%edx, %eax
	cmpl	%edx, %r11d
	je	.L21
	movslq	%eax, %rcx
	subl	%esi, %eax
	cltq
	movl	-400112(%rbp,%rcx,4), %r8d
	movl	-400112(%rbp,%rax,4), %r11d
	addl	%edi, %r11d
	cmpl	%r8d, %r11d
	movl	%r11d, %eax
	cmovg	%r8d, %eax
	movl	%eax, -400112(%rbp,%rcx,4)
	movl	$100009, %eax
	subl	%edx, %eax
	cmpl	%eax, %esi
	jg	.L21
	movslq	%eax, %rcx
	subl	%esi, %eax
	cltq
	movl	-400112(%rbp,%rcx,4), %r8d
	movl	-400112(%rbp,%rax,4), %r11d
	addl	%edi, %r11d
	cmpl	%r8d, %r11d
	movl	%r11d, %eax
	cmovg	%r8d, %eax
	movl	%eax, -400112(%rbp,%rcx,4)
	movl	$100008, %eax
	subl	%edx, %eax
	cmpl	%eax, %esi
	jg	.L21
	movslq	%eax, %rdx
	subl	%esi, %eax
	cltq
	addl	-400112(%rbp,%rax,4), %edi
	movl	-400112(%rbp,%rdx,4), %eax
	cmpl	%eax, %edi
	cmovg	%eax, %edi
	movl	%edi, -400112(%rbp,%rdx,4)
.L21:
	addq	$1, %r9
	cmpq	%r13, %r9
	jne	.L14
	movl	-400156(%rbp), %r14d
.L13:
	movl	$100009, %eax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L22:
	subq	$1, %rax
	jb	.L50
.L24:
	movl	%eax, %edx
	cmpl	(%r10,%rax,4), %r14d
	jl	.L22
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-400144(%rbp), %rsp
.L23:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L51
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movq	-400136(%rbp), %rcx
	salq	$2, %rdx
	leaq	-72(%rbp), %rax
	subq	%rdx, %rcx
	movl	%r15d, %edx
	subl	%esi, %edx
	movslq	%edx, %rsi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	-400040(%rax,%rsi,4), %edx
	movl	(%rax), %r8d
	addl	%edi, %edx
	cmpl	%r8d, %edx
	cmovg	%r8d, %edx
	subq	$4, %rax
	movl	%edx, 4(%rax)
	cmpq	%rcx, %rax
	jne	.L18
	jmp	.L21
.L50:
	movq	-400144(%rbp), %rsp
	jmp	.L23
.L48:
	orq	$0, -8(%rsp,%rax)
	jmp	.L9
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:

#include <stdio.h>
#define LIMIT 100010

int min(int a,int b){
  if(a < b){
    return a;
  }
  return b;
}

int main(void) {
  int N, W;
  scanf("%d %d", &N, &W);

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

  int dp[LIMIT + 1];
  for (int i = 0; i < LIMIT; i++) {
    dp[i] = W + 1;
  }
  
  dp[0] = 0;

  for (int i = 0; i < N; i++) {
    for (int j = LIMIT; j >= v[i]; j--) {
      dp[j] = min(dp[j], dp[j - v[i]] + w[i]);
    }
  }

  for (int i = LIMIT - 1; i >= 0; i--) {
    if(dp[i] <= W){
      printf("%d\n", i);

      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>
#define LIMIT 100010

int min(int a,int b){
  if(a < b){
    return a;
  }
  return b;
}

int main(void) {
  int N, W;
  scanf("%d %d", &N, &W);

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

  int dp[LIMIT + 1];
  for (int i = 0; i < LIMIT; i++) {
    dp[i] = W + 1;
  }
  
  dp[0] = 0;

  for (int i = 0; i < N; i++) {
    for (int j = LIMIT; j >= v[i]; j--) {
      dp[j] = min(dp[j], dp[j - v[i]] + w[i]);
    }
  }

  for (int i = LIMIT - 1; i >= 0; i--) {
    if(dp[i] <= W){
      printf("%d\n", i);

      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\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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2856, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-400168(%rbp), %rdx
	leaq	-400172(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400172(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400144(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400192(%rbp)
	movq	$0, -400184(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400208(%rbp)
	movq	$0, -400200(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400136(%rbp)
	movl	-400172(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400128(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400120(%rbp)
	movl	$0, -400164(%rbp)
	jmp	.L11
.L12:
	movl	-400164(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rax, %rdx
	movl	-400164(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-400136(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400164(%rbp)
.L11:
	movl	-400172(%rbp), %eax
	cmpl	%eax, -400164(%rbp)
	jl	.L12
	movl	$0, -400160(%rbp)
	jmp	.L13
.L14:
	movl	-400168(%rbp), %eax
	leal	1(%rax), %edx
	movl	-400160(%rbp), %eax
	cltq
	movl	%edx, -400112(%rbp,%rax,4)
	addl	$1, -400160(%rbp)
.L13:
	cmpl	$100009, -400160(%rbp)
	jle	.L14
	movl	$0, -400112(%rbp)
	movl	$0, -400156(%rbp)
	jmp	.L15
.L18:
	movl	$100010, -400152(%rbp)
	jmp	.L16
.L17:
	movq	-400120(%rbp), %rax
	movl	-400156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-400152(%rbp), %eax
	subl	%edx, %eax
	cltq
	movl	-400112(%rbp,%rax,4), %ecx
	movq	-400136(%rbp), %rax
	movl	-400156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-400152(%rbp), %eax
	cltq
	movl	-400112(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400152(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -400112(%rbp,%rdx,4)
	subl	$1, -400152(%rbp)
.L16:
	movq	-400120(%rbp), %rax
	movl	-400156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -400152(%rbp)
	jge	.L17
	addl	$1, -400156(%rbp)
.L15:
	movl	-400172(%rbp), %eax
	cmpl	%eax, -400156(%rbp)
	jl	.L18
	movl	$100009, -400148(%rbp)
	jmp	.L19
.L22:
	movl	-400148(%rbp), %eax
	cltq
	movl	-400112(%rbp,%rax,4), %edx
	movl	-400168(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L20
	movl	-400148(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	jmp	.L21
.L20:
	subl	$1, -400148(%rbp)
.L19:
	cmpl	$0, -400148(%rbp)
	jns	.L22
	movq	%rbx, %rsp
	movl	$0, %eax
.L21:
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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\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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2856, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-400168(%rbp), %rdx
	leaq	-400172(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400172(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400144(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400192(%rbp)
	movq	$0, -400184(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400208(%rbp)
	movq	$0, -400200(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400136(%rbp)
	movl	-400172(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400128(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400120(%rbp)
	movl	$0, -400164(%rbp)
	jmp	.L11
.L12:
	movl	-400164(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rax, %rdx
	movl	-400164(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-400136(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400164(%rbp)
.L11:
	movl	-400172(%rbp), %eax
	cmpl	%eax, -400164(%rbp)
	jl	.L12
	movl	$0, -400160(%rbp)
	jmp	.L13
.L14:
	movl	-400168(%rbp), %eax
	leal	1(%rax), %edx
	movl	-400160(%rbp), %eax
	cltq
	movl	%edx, -400112(%rbp,%rax,4)
	addl	$1, -400160(%rbp)
.L13:
	cmpl	$100009, -400160(%rbp)
	jle	.L14
	movl	$0, -400112(%rbp)
	movl	$0, -400156(%rbp)
	jmp	.L15
.L18:
	movl	$100010, -400152(%rbp)
	jmp	.L16
.L17:
	movq	-400120(%rbp), %rax
	movl	-400156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-400152(%rbp), %eax
	subl	%edx, %eax
	cltq
	movl	-400112(%rbp,%rax,4), %ecx
	movq	-400136(%rbp), %rax
	movl	-400156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	(%rcx,%rax), %edx
	movl	-400152(%rbp), %eax
	cltq
	movl	-400112(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400152(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -400112(%rbp,%rdx,4)
	subl	$1, -400152(%rbp)
.L16:
	movq	-400120(%rbp), %rax
	movl	-400156(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -400152(%rbp)
	jge	.L17
	addl	$1, -400156(%rbp)
.L15:
	movl	-400172(%rbp), %eax
	cmpl	%eax, -400156(%rbp)
	jl	.L18
	movl	$100009, -400148(%rbp)
	jmp	.L19
.L22:
	movl	-400148(%rbp), %eax
	cltq
	movl	-400112(%rbp,%rax,4), %edx
	movl	-400168(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L20
	movl	-400148(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	jmp	.L21
.L20:
	subl	$1, -400148(%rbp)
.L19:
	cmpl	$0, -400148(%rbp)
	jns	.L22
	movq	%rbx, %rsp
	movl	$0, %eax
.L21:
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
