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>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define INF_P 1100000000
#define INF_M -1100000000
#define MAX(a,b) a<b?b:a
#define MIN(a,b) a>b?b:a

int n, m;
int coin[20], dp[50001];

int main(void) 
{
    int i, j;
    scanf("%d %d",&m, &n);
    for (i = 0; i < n; i++) {
        scanf("%d",&coin[i]);
    }
    
    for (i = 1; i <= m; i++) {
        dp[i] = INF_P;
    }

    for (i = 0; i < n; i++) {
        for (j = coin[i]; j <= m; j++) {
            dp[j] = MIN(dp[j],dp[j-coin[i]]+1);
        }
    }

    printf("%d\n",dp[m]);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	coin
	.align 32
	.type	coin, @object
	.size	coin, 80
coin:
	.zero	80
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 200004
dp:
	.zero	200004
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	n(%rip), %rax
	movq	%rax, %rdx
	leaq	m(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	coin(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -8(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L3
	movl	$1, -8(%rbp)
	jmp	.L4
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	$1100000000, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L4:
	movl	m(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L5
	movl	$0, -8(%rbp)
	jmp	.L6
.L9:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	coin(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	coin(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movl	-4(%rbp), %edx
	subl	%ecx, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L7:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L8
	addl	$1, -8(%rbp)
.L6:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L9
	movl	m(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	n(%rip), %rdx
	leaq	m(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	coin(%rip), %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	n(%rip), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	movslq	m(%rip), %r9
	leaq	dp(%rip), %rdx
	testl	%r9d, %r9d
	jle	.L4
.L16:
	testl	%r9d, %r9d
	movl	$1, %esi
	cmovg	%r9d, %esi
	cmpl	$3, %r9d
	jle	.L17
	movl	%esi, %ecx
	leaq	4+dp(%rip), %rdx
	movdqa	.LC2(%rip), %xmm0
	shrl	$2, %ecx
	leaq	16(%rdx), %rdi
	subl	$1, %ecx
	salq	$4, %rcx
	addq	%rdi, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	movups	%xmm0, (%rdx)
	addq	$16, %rdx
	cmpq	%rcx, %rdx
	jne	.L6
	movl	%esi, %edi
	leaq	dp(%rip), %rdx
	andl	$-4, %edi
	leal	1(%rdi), %ecx
	cmpl	%edi, %esi
	je	.L4
.L5:
	movslq	%ecx, %rsi
	leaq	dp(%rip), %rdx
	movl	$1100000000, (%rdx,%rsi,4)
	leal	1(%rcx), %esi
	cmpl	%esi, %r9d
	jl	.L4
	movslq	%esi, %rsi
	addl	$2, %ecx
	movl	$1100000000, (%rdx,%rsi,4)
	cmpl	%ecx, %r9d
	jl	.L4
	movslq	%ecx, %rcx
	movl	$1100000000, (%rdx,%rcx,4)
.L4:
	testl	%eax, %eax
	jle	.L8
	leaq	coin(%rip), %r8
	leal	-1(%rax), %ecx
	movdqa	.LC3(%rip), %xmm3
	leaq	4(%r8), %rax
	leaq	4+dp(%rip), %r11
	leaq	(%rax,%rcx,4), %r10
	.p2align 4,,10
	.p2align 3
.L15:
	movslq	(%r8), %rdi
	cmpl	%edi, %r9d
	jl	.L9
	movl	%r9d, %ebx
	leal	-1(%rdi), %eax
	subl	%edi, %ebx
	cmpl	$2, %eax
	jbe	.L10
	cmpl	$2, %ebx
	jbe	.L10
	addl	$1, %ebx
	movslq	%edi, %rax
	movl	%ebx, %esi
	leaq	(%rdx,%rax,4), %rcx
	xorl	%eax, %eax
	shrl	$2, %esi
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	(%rdx,%rax), %xmm2
	movdqu	(%rcx,%rax), %xmm4
	paddd	%xmm3, %xmm2
	movdqa	%xmm4, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm4, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L11
	movl	%ebx, %ecx
	andl	$-4, %ecx
	leal	(%rdi,%rcx), %eax
	cmpl	%ecx, %ebx
	je	.L9
	movslq	%ecx, %rcx
	movslq	%eax, %rsi
	movl	(%rdx,%rcx,4), %ecx
	movl	(%rdx,%rsi,4), %ebx
	addl	$1, %ecx
	cmpl	%ebx, %ecx
	cmovg	%ebx, %ecx
	movl	%ecx, (%rdx,%rsi,4)
	leal	1(%rax), %ecx
	cmpl	%r9d, %ecx
	jg	.L9
	movslq	%ecx, %rsi
	subl	%edi, %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rsi,4), %ebx
	movl	(%rdx,%rcx,4), %ecx
	addl	$1, %ecx
	cmpl	%ebx, %ecx
	cmovg	%ebx, %ecx
	addl	$2, %eax
	movl	%ecx, (%rdx,%rsi,4)
	cmpl	%eax, %r9d
	jl	.L9
	movslq	%eax, %rcx
	subl	%edi, %eax
	cltq
	movl	(%rdx,%rcx,4), %esi
	movl	(%rdx,%rax,4), %eax
	addl	$1, %eax
	cmpl	%esi, %eax
	cmovg	%esi, %eax
	movl	%eax, (%rdx,%rcx,4)
.L9:
	addq	$4, %r8
	cmpq	%r10, %r8
	jne	.L15
.L8:
	movl	(%rdx,%r9,4), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	leaq	0(,%rdi,4), %rcx
	addq	%rdi, %rbx
	movq	%rcx, %rdi
	leaq	(%rdx,%rcx), %rax
	leaq	(%r11,%rbx,4), %rbx
	negq	%rdi
	.p2align 4,,10
	.p2align 3
.L13:
	movl	(%rax,%rdi), %ecx
	movl	(%rax), %esi
	addl	$1, %ecx
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	addq	$4, %rax
	movl	%ecx, -4(%rax)
	cmpq	%rbx, %rax
	jne	.L13
	jmp	.L9
.L2:
	movslq	m(%rip), %r9
	testl	%r9d, %r9d
	jg	.L16
	leaq	dp(%rip), %rdx
	jmp	.L8
.L17:
	movl	$1, %ecx
	jmp	.L5
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 200004
dp:
	.zero	200004
	.globl	coin
	.align 32
	.type	coin, @object
	.size	coin, 80
coin:
	.zero	80
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1100000000
	.long	1100000000
	.long	1100000000
	.long	1100000000
	.align 16
.LC3:
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC4:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	n(%rip), %rdx
	leaq	m(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	coin(%rip), %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	n(%rip), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	movslq	m(%rip), %r9
	leaq	dp(%rip), %rdx
	testl	%r9d, %r9d
	jle	.L4
.L16:
	testl	%r9d, %r9d
	movl	$1, %esi
	cmovg	%r9d, %esi
	cmpl	$3, %r9d
	jle	.L17
	movl	%esi, %ecx
	leaq	4+dp(%rip), %rdx
	movdqa	.LC2(%rip), %xmm0
	shrl	$2, %ecx
	leaq	16(%rdx), %rdi
	subl	$1, %ecx
	salq	$4, %rcx
	addq	%rdi, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	movups	%xmm0, (%rdx)
	addq	$16, %rdx
	cmpq	%rcx, %rdx
	jne	.L6
	movl	%esi, %edi
	leaq	dp(%rip), %rdx
	andl	$-4, %edi
	leal	1(%rdi), %ecx
	cmpl	%edi, %esi
	je	.L4
.L5:
	movslq	%ecx, %rsi
	leaq	dp(%rip), %rdx
	movl	$1100000000, (%rdx,%rsi,4)
	leal	1(%rcx), %esi
	cmpl	%esi, %r9d
	jl	.L4
	movslq	%esi, %rsi
	addl	$2, %ecx
	movl	$1100000000, (%rdx,%rsi,4)
	cmpl	%ecx, %r9d
	jl	.L4
	movslq	%ecx, %rcx
	movl	$1100000000, (%rdx,%rcx,4)
.L4:
	testl	%eax, %eax
	jle	.L8
	leaq	coin(%rip), %r8
	leal	-1(%rax), %ecx
	movdqa	.LC3(%rip), %xmm3
	leaq	4(%r8), %rax
	leaq	4+dp(%rip), %r11
	leaq	(%rax,%rcx,4), %r10
	.p2align 4,,10
	.p2align 3
.L15:
	movslq	(%r8), %rdi
	cmpl	%edi, %r9d
	jl	.L9
	movl	%r9d, %ebx
	leal	-1(%rdi), %eax
	subl	%edi, %ebx
	cmpl	$2, %eax
	jbe	.L10
	cmpl	$2, %ebx
	jbe	.L10
	addl	$1, %ebx
	movslq	%edi, %rax
	movl	%ebx, %esi
	leaq	(%rdx,%rax,4), %rcx
	xorl	%eax, %eax
	shrl	$2, %esi
	salq	$4, %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	(%rdx,%rax), %xmm2
	movdqu	(%rcx,%rax), %xmm4
	paddd	%xmm3, %xmm2
	movdqa	%xmm4, %xmm1
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm4, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, (%rcx,%rax)
	addq	$16, %rax
	cmpq	%rsi, %rax
	jne	.L11
	movl	%ebx, %ecx
	andl	$-4, %ecx
	leal	(%rdi,%rcx), %eax
	cmpl	%ecx, %ebx
	je	.L9
	movslq	%ecx, %rcx
	movslq	%eax, %rsi
	movl	(%rdx,%rcx,4), %ecx
	movl	(%rdx,%rsi,4), %ebx
	addl	$1, %ecx
	cmpl	%ebx, %ecx
	cmovg	%ebx, %ecx
	movl	%ecx, (%rdx,%rsi,4)
	leal	1(%rax), %ecx
	cmpl	%r9d, %ecx
	jg	.L9
	movslq	%ecx, %rsi
	subl	%edi, %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rsi,4), %ebx
	movl	(%rdx,%rcx,4), %ecx
	addl	$1, %ecx
	cmpl	%ebx, %ecx
	cmovg	%ebx, %ecx
	addl	$2, %eax
	movl	%ecx, (%rdx,%rsi,4)
	cmpl	%eax, %r9d
	jl	.L9
	movslq	%eax, %rcx
	subl	%edi, %eax
	cltq
	movl	(%rdx,%rcx,4), %esi
	movl	(%rdx,%rax,4), %eax
	addl	$1, %eax
	cmpl	%esi, %eax
	cmovg	%esi, %eax
	movl	%eax, (%rdx,%rcx,4)
.L9:
	addq	$4, %r8
	cmpq	%r10, %r8
	jne	.L15
.L8:
	movl	(%rdx,%r9,4), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	leaq	0(,%rdi,4), %rcx
	addq	%rdi, %rbx
	movq	%rcx, %rdi
	leaq	(%rdx,%rcx), %rax
	leaq	(%r11,%rbx,4), %rbx
	negq	%rdi
	.p2align 4,,10
	.p2align 3
.L13:
	movl	(%rax,%rdi), %ecx
	movl	(%rax), %esi
	addl	$1, %ecx
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	addq	$4, %rax
	movl	%ecx, -4(%rax)
	cmpq	%rbx, %rax
	jne	.L13
	jmp	.L9
.L2:
	movslq	m(%rip), %r9
	testl	%r9d, %r9d
	jg	.L16
	leaq	dp(%rip), %rdx
	jmp	.L8
.L17:
	movl	$1, %ecx
	jmp	.L5
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 200004
dp:
	.zero	200004
	.globl	coin
	.align 32
	.type	coin, @object
	.size	coin, 80
coin:
	.zero	80
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1100000000
	.long	1100000000
	.long	1100000000
	.long	1100000000
	.align 16
.LC3:
	.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:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define INF_P 1100000000
#define INF_M -1100000000
#define MAX(a,b) a<b?b:a
#define MIN(a,b) a>b?b:a

int n, m;
int coin[20], dp[50001];

int main(void) 
{
    int i, j;
    scanf("%d %d",&m, &n);
    for (i = 0; i < n; i++) {
        scanf("%d",&coin[i]);
    }
    
    for (i = 1; i <= m; i++) {
        dp[i] = INF_P;
    }

    for (i = 0; i < n; i++) {
        for (j = coin[i]; j <= m; j++) {
            dp[j] = MIN(dp[j],dp[j-coin[i]]+1);
        }
    }

    printf("%d\n",dp[m]);

    return 0;
}
55 4
1 5 10 50

2

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>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define INF_P 1100000000
#define INF_M -1100000000
#define MAX(a,b) a<b?b:a
#define MIN(a,b) a>b?b:a

int n, m;
int coin[20], dp[50001];

int main(void) 
{
    int i, j;
    scanf("%d %d",&m, &n);
    for (i = 0; i < n; i++) {
        scanf("%d",&coin[i]);
    }
    
    for (i = 1; i <= m; i++) {
        dp[i] = INF_P;
    }

    for (i = 0; i < n; i++) {
        for (j = coin[i]; j <= m; j++) {
            dp[j] = MIN(dp[j],dp[j-coin[i]]+1);
        }
    }

    printf("%d\n",dp[m]);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	coin
	.align 32
	.type	coin, @object
	.size	coin, 80
coin:
	.zero	80
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 200004
dp:
	.zero	200004
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	n(%rip), %rax
	movq	%rax, %rdx
	leaq	m(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	coin(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -8(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L3
	movl	$1, -8(%rbp)
	jmp	.L4
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	$1100000000, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L4:
	movl	m(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L5
	movl	$0, -8(%rbp)
	jmp	.L6
.L9:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	coin(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	coin(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movl	-4(%rbp), %edx
	subl	%ecx, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L7:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L8
	addl	$1, -8(%rbp)
.L6:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L9
	movl	m(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	coin
	.align 32
	.type	coin, @object
	.size	coin, 80
coin:
	.zero	80
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 200004
dp:
	.zero	200004
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	n(%rip), %rax
	movq	%rax, %rdx
	leaq	m(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	coin(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -8(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L3
	movl	$1, -8(%rbp)
	jmp	.L4
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	$1100000000, (%rdx,%rax)
	addl	$1, -8(%rbp)
.L4:
	movl	m(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L5
	movl	$0, -8(%rbp)
	jmp	.L6
.L9:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	coin(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	coin(%rip), %rdx
	movl	(%rcx,%rdx), %ecx
	movl	-4(%rbp), %edx
	subl	%ecx, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	dp(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L7:
	movl	m(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L8
	addl	$1, -8(%rbp)
.L6:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L9
	movl	m(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
