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>          // printf(), scanf()

#define MAX_N 20
#define MAX_V 50000
#define min(a, b) ((a) < (b) ? (a) : (b))

static const int INF = 100000000;

int
main(int argc, char** argv)
{
	int c[MAX_N + 1];
	int t[MAX_V + 1];
	int v, n;
	int i, j;

	scanf("%d %d", &v, &n);
	for (i = 0; i < n; ++i)
		scanf("%d", &c[i]);

	for (i = 1; i <= MAX_V; ++i)
		t[i] = INF;

	t[0] = 0;
	for (i = 0; i < n; ++i)
	{
		for (j = c[i]; j <= v; ++j)
			t[j] = min(t[j], t[j - c[i]] + 1);
	}

	printf("%d\n", t[v]);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196640
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3520, %rsp
	.cfi_def_cfa_offset 200160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200120(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
.L2:
	movdqa	.LC2(%rip), %xmm0
	leaq	112(%rsp), %r8
	leaq	116(%rsp), %rax
	leaq	200116(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L4
	movl	$0, 112(%rsp)
	movslq	8(%rsp), %r10
	testl	%ecx, %ecx
	jle	.L8
	leal	-1(%rcx), %eax
	movdqa	.LC4(%rip), %xmm2
	leaq	16(%rsp), %r9
	leaq	20(%rsp,%rax,4), %r11
	leaq	4(%r8), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	(%r9), %rsi
	cmpl	%r10d, %esi
	jg	.L12
	movl	%r10d, %ecx
	leal	-1(%rsi), %eax
	subl	%esi, %ecx
	cmpl	$2, %eax
	jbe	.L9
	cmpl	$2, %ecx
	jbe	.L9
	addl	$1, %ecx
	movslq	%esi, %rax
	movl	%ecx, %edi
	leaq	(%r8,%rax,4), %rdx
	xorl	%eax, %eax
	shrl	$2, %edi
	salq	$4, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movdqu	(%rdx,%rax), %xmm0
	movdqa	(%r8,%rax), %xmm1
	movdqu	(%rdx,%rax), %xmm3
	pcmpgtd	(%r8,%rax), %xmm0
	paddd	%xmm2, %xmm1
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rdx,%rax)
	addq	$16, %rax
	cmpq	%rdi, %rax
	jne	.L10
	movl	%ecx, %edx
	andl	$-4, %edx
	leal	(%rsi,%rdx), %eax
	cmpl	%edx, %ecx
	je	.L12
	movslq	%edx, %rdx
	movslq	%eax, %rcx
	movl	112(%rsp,%rdx,4), %edi
	movl	112(%rsp,%rcx,4), %edx
	leal	1(%rdi), %ebp
	cmpl	%edi, %edx
	cmovg	%ebp, %edx
	movl	%edx, 112(%rsp,%rcx,4)
	leal	1(%rax), %edx
	cmpl	%r10d, %edx
	jg	.L12
	movl	%edx, %ecx
	movslq	%edx, %rdx
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	movl	112(%rsp,%rcx,4), %edi
	movl	112(%rsp,%rdx,4), %ecx
	leal	1(%rdi), %ebp
	cmpl	%edi, %ecx
	cmovg	%ebp, %ecx
	addl	$2, %eax
	movl	%ecx, 112(%rsp,%rdx,4)
	cmpl	%eax, %r10d
	jl	.L12
	movl	%eax, %edx
	cltq
	subl	%esi, %edx
	movslq	%edx, %rdx
	movl	112(%rsp,%rdx,4), %ecx
	movl	112(%rsp,%rax,4), %edx
	leal	1(%rcx), %esi
	cmpl	%edx, %ecx
	cmovl	%esi, %edx
	movl	%edx, 112(%rsp,%rax,4)
.L12:
	addq	$4, %r9
	cmpq	%r11, %r9
	jne	.L7
.L8:
	movl	112(%rsp,%r10,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	200120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$200128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	leaq	0(,%rsi,4), %rdx
	addq	%rsi, %rcx
	leaq	(%rbx,%rcx,4), %rsi
	movq	%rdx, %rcx
	leaq	(%r8,%rdx), %rax
	negq	%rcx
.L21:
	movl	(%rax,%rcx), %edx
	cmpl	%edx, (%rax)
	jle	.L18
.L38:
	addl	$1, %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rsi, %rax
	je	.L12
	movl	(%rax,%rcx), %edx
	cmpl	%edx, (%rax)
	jg	.L38
.L18:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L21
	jmp	.L12
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	100000000
	.long	100000000
	.long	100000000
	.long	100000000
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196640
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3520, %rsp
	.cfi_def_cfa_offset 200160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200120(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
.L2:
	movdqa	.LC2(%rip), %xmm0
	leaq	112(%rsp), %r8
	leaq	116(%rsp), %rax
	leaq	200116(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L4
	movl	$0, 112(%rsp)
	movslq	8(%rsp), %r10
	testl	%ecx, %ecx
	jle	.L8
	leal	-1(%rcx), %eax
	movdqa	.LC4(%rip), %xmm2
	leaq	16(%rsp), %r9
	leaq	20(%rsp,%rax,4), %r11
	leaq	4(%r8), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	(%r9), %rsi
	cmpl	%r10d, %esi
	jg	.L12
	movl	%r10d, %ecx
	leal	-1(%rsi), %eax
	subl	%esi, %ecx
	cmpl	$2, %eax
	jbe	.L9
	cmpl	$2, %ecx
	jbe	.L9
	addl	$1, %ecx
	movslq	%esi, %rax
	movl	%ecx, %edi
	leaq	(%r8,%rax,4), %rdx
	xorl	%eax, %eax
	shrl	$2, %edi
	salq	$4, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movdqu	(%rdx,%rax), %xmm0
	movdqa	(%r8,%rax), %xmm1
	movdqu	(%rdx,%rax), %xmm3
	pcmpgtd	(%r8,%rax), %xmm0
	paddd	%xmm2, %xmm1
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rdx,%rax)
	addq	$16, %rax
	cmpq	%rdi, %rax
	jne	.L10
	movl	%ecx, %edx
	andl	$-4, %edx
	leal	(%rsi,%rdx), %eax
	cmpl	%edx, %ecx
	je	.L12
	movslq	%edx, %rdx
	movslq	%eax, %rcx
	movl	112(%rsp,%rdx,4), %edi
	movl	112(%rsp,%rcx,4), %edx
	leal	1(%rdi), %ebp
	cmpl	%edi, %edx
	cmovg	%ebp, %edx
	movl	%edx, 112(%rsp,%rcx,4)
	leal	1(%rax), %edx
	cmpl	%r10d, %edx
	jg	.L12
	movl	%edx, %ecx
	movslq	%edx, %rdx
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	movl	112(%rsp,%rcx,4), %edi
	movl	112(%rsp,%rdx,4), %ecx
	leal	1(%rdi), %ebp
	cmpl	%edi, %ecx
	cmovg	%ebp, %ecx
	addl	$2, %eax
	movl	%ecx, 112(%rsp,%rdx,4)
	cmpl	%eax, %r10d
	jl	.L12
	movl	%eax, %edx
	cltq
	subl	%esi, %edx
	movslq	%edx, %rdx
	movl	112(%rsp,%rdx,4), %ecx
	movl	112(%rsp,%rax,4), %edx
	leal	1(%rcx), %esi
	cmpl	%edx, %ecx
	cmovl	%esi, %edx
	movl	%edx, 112(%rsp,%rax,4)
.L12:
	addq	$4, %r9
	cmpq	%r11, %r9
	jne	.L7
.L8:
	movl	112(%rsp,%r10,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	200120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$200128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	leaq	0(,%rsi,4), %rdx
	addq	%rsi, %rcx
	leaq	(%rbx,%rcx,4), %rsi
	movq	%rdx, %rcx
	leaq	(%r8,%rdx), %rax
	negq	%rcx
.L21:
	movl	(%rax,%rcx), %edx
	cmpl	%edx, (%rax)
	jle	.L18
.L38:
	addl	$1, %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rsi, %rax
	je	.L12
	movl	(%rax,%rcx), %edx
	cmpl	%edx, (%rax)
	jg	.L38
.L18:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L21
	jmp	.L12
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	100000000
	.long	100000000
	.long	100000000
	.long	100000000
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196640
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3520, %rsp
	.cfi_def_cfa_offset 200160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200120(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
.L2:
	movdqa	.LC2(%rip), %xmm0
	leaq	112(%rsp), %r8
	leaq	116(%rsp), %rax
	leaq	200116(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L4
	movl	$0, 112(%rsp)
	movslq	8(%rsp), %r10
	testl	%ecx, %ecx
	jle	.L8
	leal	-1(%rcx), %eax
	movdqa	.LC4(%rip), %xmm2
	leaq	16(%rsp), %r9
	leaq	20(%rsp,%rax,4), %r11
	leaq	4(%r8), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	(%r9), %rsi
	cmpl	%r10d, %esi
	jg	.L12
	movl	%r10d, %ecx
	leal	-1(%rsi), %eax
	subl	%esi, %ecx
	cmpl	$2, %eax
	jbe	.L9
	cmpl	$2, %ecx
	jbe	.L9
	addl	$1, %ecx
	movslq	%esi, %rax
	movl	%ecx, %edi
	leaq	(%r8,%rax,4), %rdx
	xorl	%eax, %eax
	shrl	$2, %edi
	salq	$4, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movdqu	(%rdx,%rax), %xmm0
	movdqa	(%r8,%rax), %xmm1
	movdqu	(%rdx,%rax), %xmm3
	pcmpgtd	(%r8,%rax), %xmm0
	paddd	%xmm2, %xmm1
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rdx,%rax)
	addq	$16, %rax
	cmpq	%rdi, %rax
	jne	.L10
	movl	%ecx, %edx
	andl	$-4, %edx
	leal	(%rsi,%rdx), %eax
	cmpl	%edx, %ecx
	je	.L12
	movslq	%edx, %rdx
	movslq	%eax, %rcx
	movl	112(%rsp,%rdx,4), %edi
	movl	112(%rsp,%rcx,4), %edx
	leal	1(%rdi), %ebp
	cmpl	%edi, %edx
	cmovg	%ebp, %edx
	movl	%edx, 112(%rsp,%rcx,4)
	leal	1(%rax), %edx
	cmpl	%r10d, %edx
	jg	.L12
	movl	%edx, %ecx
	movslq	%edx, %rdx
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	movl	112(%rsp,%rcx,4), %edi
	movl	112(%rsp,%rdx,4), %ecx
	leal	1(%rdi), %ebp
	cmpl	%edi, %ecx
	cmovg	%ebp, %ecx
	addl	$2, %eax
	movl	%ecx, 112(%rsp,%rdx,4)
	cmpl	%eax, %r10d
	jl	.L12
	movl	%eax, %edx
	cltq
	subl	%esi, %edx
	movslq	%edx, %rdx
	movl	112(%rsp,%rdx,4), %ecx
	movl	112(%rsp,%rax,4), %edx
	leal	1(%rcx), %esi
	cmpl	%edx, %ecx
	cmovl	%esi, %edx
	movl	%edx, 112(%rsp,%rax,4)
.L12:
	addq	$4, %r9
	cmpq	%r11, %r9
	jne	.L7
.L8:
	movl	112(%rsp,%r10,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	200120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$200128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	leaq	0(,%rsi,4), %rdx
	addq	%rsi, %rcx
	leaq	(%rbx,%rcx,4), %rsi
	movq	%rdx, %rcx
	leaq	(%r8,%rdx), %rax
	negq	%rcx
.L21:
	movl	(%rax,%rcx), %edx
	cmpl	%edx, (%rax)
	jle	.L18
.L38:
	addl	$1, %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rsi, %rax
	je	.L12
	movl	(%rax,%rcx), %edx
	cmpl	%edx, (%rax)
	jg	.L38
.L18:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L21
	jmp	.L12
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	100000000
	.long	100000000
	.long	100000000
	.long	100000000
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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>          // printf(), scanf()

#define MAX_N 20
#define MAX_V 50000
#define min(a, b) ((a) < (b) ? (a) : (b))

static const int INF = 100000000;

int
main(int argc, char** argv)
{
	int c[MAX_N + 1];
	int t[MAX_V + 1];
	int v, n;
	int i, j;

	scanf("%d %d", &v, &n);
	for (i = 0; i < n; ++i)
		scanf("%d", &c[i]);

	for (i = 1; i <= MAX_V; ++i)
		t[i] = INF;

	t[0] = 0;
	for (i = 0; i < n; ++i)
	{
		for (j = c[i]; j <= v; ++j)
			t[j] = min(t[j], t[j - c[i]] + 1);
	}

	printf("%d\n", t[v]);
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>          // printf(), scanf()

#define MAX_N 20
#define MAX_V 50000
#define min(a, b) ((a) < (b) ? (a) : (b))

static const int INF = 100000000;

int
main(int argc, char** argv)
{
	int c[MAX_N + 1];
	int t[MAX_V + 1];
	int v, n;
	int i, j;

	scanf("%d %d", &v, &n);
	for (i = 0; i < n; ++i)
		scanf("%d", &c[i]);

	for (i = 1; i <= MAX_V; ++i)
		t[i] = INF;

	t[0] = 0;
	for (i = 0; i < n; ++i)
	{
		for (j = c[i]; j <= v; ++j)
			t[j] = min(t[j], t[j - c[i]] + 1);
	}

	printf("%d\n", t[v]);
	return 0;
}```

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:

55 4
1 5 10 50

2

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>          // printf(), scanf()

#define MAX_N 20
#define MAX_V 50000
#define min(a, b) ((a) < (b) ? (a) : (b))

static const int INF = 100000000;

int
main(int argc, char** argv)
{
	int c[MAX_N + 1];
	int t[MAX_V + 1];
	int v, n;
	int i, j;

	scanf("%d %d", &v, &n);
	for (i = 0; i < n; ++i)
		scanf("%d", &c[i]);

	for (i = 1; i <= MAX_V; ++i)
		t[i] = INF;

	t[0] = 0;
	for (i = 0; i < n; ++i)
	{
		for (j = c[i]; j <= v; ++j)
			t[j] = min(t[j], t[j - c[i]] + 1);
	}

	printf("%d\n", t[v]);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196640
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3520, %rsp
	.cfi_def_cfa_offset 200160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200120(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
.L2:
	movdqa	.LC2(%rip), %xmm0
	leaq	112(%rsp), %r8
	leaq	116(%rsp), %rax
	leaq	200116(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L4
	movl	$0, 112(%rsp)
	movslq	8(%rsp), %r10
	testl	%ecx, %ecx
	jle	.L8
	leal	-1(%rcx), %eax
	movdqa	.LC4(%rip), %xmm2
	leaq	16(%rsp), %r9
	leaq	20(%rsp,%rax,4), %r11
	leaq	4(%r8), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	(%r9), %rsi
	cmpl	%r10d, %esi
	jg	.L12
	movl	%r10d, %ecx
	leal	-1(%rsi), %eax
	subl	%esi, %ecx
	cmpl	$2, %eax
	jbe	.L9
	cmpl	$2, %ecx
	jbe	.L9
	addl	$1, %ecx
	movslq	%esi, %rax
	movl	%ecx, %edi
	leaq	(%r8,%rax,4), %rdx
	xorl	%eax, %eax
	shrl	$2, %edi
	salq	$4, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movdqu	(%rdx,%rax), %xmm0
	movdqa	(%r8,%rax), %xmm1
	movdqu	(%rdx,%rax), %xmm3
	pcmpgtd	(%r8,%rax), %xmm0
	paddd	%xmm2, %xmm1
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rdx,%rax)
	addq	$16, %rax
	cmpq	%rdi, %rax
	jne	.L10
	movl	%ecx, %edx
	andl	$-4, %edx
	leal	(%rsi,%rdx), %eax
	cmpl	%edx, %ecx
	je	.L12
	movslq	%edx, %rdx
	movslq	%eax, %rcx
	movl	112(%rsp,%rdx,4), %edi
	movl	112(%rsp,%rcx,4), %edx
	leal	1(%rdi), %ebp
	cmpl	%edi, %edx
	cmovg	%ebp, %edx
	movl	%edx, 112(%rsp,%rcx,4)
	leal	1(%rax), %edx
	cmpl	%r10d, %edx
	jg	.L12
	movl	%edx, %ecx
	movslq	%edx, %rdx
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	movl	112(%rsp,%rcx,4), %edi
	movl	112(%rsp,%rdx,4), %ecx
	leal	1(%rdi), %ebp
	cmpl	%edi, %ecx
	cmovg	%ebp, %ecx
	addl	$2, %eax
	movl	%ecx, 112(%rsp,%rdx,4)
	cmpl	%eax, %r10d
	jl	.L12
	movl	%eax, %edx
	cltq
	subl	%esi, %edx
	movslq	%edx, %rdx
	movl	112(%rsp,%rdx,4), %ecx
	movl	112(%rsp,%rax,4), %edx
	leal	1(%rcx), %esi
	cmpl	%edx, %ecx
	cmovl	%esi, %edx
	movl	%edx, 112(%rsp,%rax,4)
.L12:
	addq	$4, %r9
	cmpq	%r11, %r9
	jne	.L7
.L8:
	movl	112(%rsp,%r10,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	200120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$200128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	leaq	0(,%rsi,4), %rdx
	addq	%rsi, %rcx
	leaq	(%rbx,%rcx,4), %rsi
	movq	%rdx, %rcx
	leaq	(%r8,%rdx), %rax
	negq	%rcx
.L21:
	movl	(%rax,%rcx), %edx
	cmpl	%edx, (%rax)
	jle	.L18
.L38:
	addl	$1, %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rsi, %rax
	je	.L12
	movl	(%rax,%rcx), %edx
	cmpl	%edx, (%rax)
	jg	.L38
.L18:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L21
	jmp	.L12
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	100000000
	.long	100000000
	.long	100000000
	.long	100000000
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196640
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3520, %rsp
	.cfi_def_cfa_offset 200160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200120(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L2
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
.L2:
	movdqa	.LC2(%rip), %xmm0
	leaq	112(%rsp), %r8
	leaq	116(%rsp), %rax
	leaq	200116(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L4
	movl	$0, 112(%rsp)
	movslq	8(%rsp), %r10
	testl	%ecx, %ecx
	jle	.L8
	leal	-1(%rcx), %eax
	movdqa	.LC4(%rip), %xmm2
	leaq	16(%rsp), %r9
	leaq	20(%rsp,%rax,4), %r11
	leaq	4(%r8), %rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movslq	(%r9), %rsi
	cmpl	%r10d, %esi
	jg	.L12
	movl	%r10d, %ecx
	leal	-1(%rsi), %eax
	subl	%esi, %ecx
	cmpl	$2, %eax
	jbe	.L9
	cmpl	$2, %ecx
	jbe	.L9
	addl	$1, %ecx
	movslq	%esi, %rax
	movl	%ecx, %edi
	leaq	(%r8,%rax,4), %rdx
	xorl	%eax, %eax
	shrl	$2, %edi
	salq	$4, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movdqu	(%rdx,%rax), %xmm0
	movdqa	(%r8,%rax), %xmm1
	movdqu	(%rdx,%rax), %xmm3
	pcmpgtd	(%r8,%rax), %xmm0
	paddd	%xmm2, %xmm1
	pand	%xmm0, %xmm1
	pandn	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rdx,%rax)
	addq	$16, %rax
	cmpq	%rdi, %rax
	jne	.L10
	movl	%ecx, %edx
	andl	$-4, %edx
	leal	(%rsi,%rdx), %eax
	cmpl	%edx, %ecx
	je	.L12
	movslq	%edx, %rdx
	movslq	%eax, %rcx
	movl	112(%rsp,%rdx,4), %edi
	movl	112(%rsp,%rcx,4), %edx
	leal	1(%rdi), %ebp
	cmpl	%edi, %edx
	cmovg	%ebp, %edx
	movl	%edx, 112(%rsp,%rcx,4)
	leal	1(%rax), %edx
	cmpl	%r10d, %edx
	jg	.L12
	movl	%edx, %ecx
	movslq	%edx, %rdx
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	movl	112(%rsp,%rcx,4), %edi
	movl	112(%rsp,%rdx,4), %ecx
	leal	1(%rdi), %ebp
	cmpl	%edi, %ecx
	cmovg	%ebp, %ecx
	addl	$2, %eax
	movl	%ecx, 112(%rsp,%rdx,4)
	cmpl	%eax, %r10d
	jl	.L12
	movl	%eax, %edx
	cltq
	subl	%esi, %edx
	movslq	%edx, %rdx
	movl	112(%rsp,%rdx,4), %ecx
	movl	112(%rsp,%rax,4), %edx
	leal	1(%rcx), %esi
	cmpl	%edx, %ecx
	cmovl	%esi, %edx
	movl	%edx, 112(%rsp,%rax,4)
.L12:
	addq	$4, %r9
	cmpq	%r11, %r9
	jne	.L7
.L8:
	movl	112(%rsp,%r10,4), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	200120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$200128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	leaq	0(,%rsi,4), %rdx
	addq	%rsi, %rcx
	leaq	(%rbx,%rcx,4), %rsi
	movq	%rdx, %rcx
	leaq	(%r8,%rdx), %rax
	negq	%rcx
.L21:
	movl	(%rax,%rcx), %edx
	cmpl	%edx, (%rax)
	jle	.L18
.L38:
	addl	$1, %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rsi, %rax
	je	.L12
	movl	(%rax,%rcx), %edx
	cmpl	%edx, (%rax)
	jg	.L38
.L18:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L21
	jmp	.L12
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	100000000
	.long	100000000
	.long	100000000
	.long	100000000
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:
```