Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
a[6]={2,3,5,10,12,15},b[6]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;n<51;n++)for(m[n]=9999,d=5;~d;d--)if(a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d]))m[n]=T;for(;scanf("%d",&n),n;)printf("%d\n",m[n/100]);exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.data
	.align 16
	.type	a, @object
	.size	a, 24
a:
	.long	2
	.long	3
	.long	5
	.long	10
	.long	12
	.long	15
	.globl	b
	.align 16
	.type	b, @object
	.size	b, 24
b:
	.long	380
	.long	550
	.long	850
	.long	1520
	.long	1870
	.long	2244
	.globl	m
	.bss
	.align 32
	.type	m, @object
	.size	m, 204
m:
	.zero	204
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L2
.L6:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	m(%rip), %rax
	movl	$9999, (%rdx,%rax)
	movl	$5, -8(%rbp)
	jmp	.L3
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L4
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	m(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	a(%rip), %rcx
	movl	(%rsi,%rcx), %ecx
	subl	%ecx, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	m(%rip), %rdx
	movl	(%rcx,%rdx), %esi
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	b(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	%esi, %edx
	movl	%edx, -12(%rbp)
	cmpl	%eax, -12(%rbp)
	jge	.L4
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	m(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L4:
	subl	$1, -8(%rbp)
.L3:
	cmpl	$-1, -8(%rbp)
	jne	.L5
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cmpl	$50, %eax
	jle	.L6
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	m(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L8
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.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\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	20+b(%rip), %ebx
	movl	20+a(%rip), %eax
	movl	16+a(%rip), %edi
	movl	12+a(%rip), %r8d
	movl	%ebx, 24(%rsp)
	movl	16+b(%rip), %ebx
	movl	%eax, 20(%rsp)
	movl	8+a(%rip), %r9d
	movl	%ebx, 12(%rsp)
	movl	8+b(%rip), %ebp
	movl	12+b(%rip), %ebx
	movl	4+a(%rip), %r10d
	movl	4+b(%rip), %r12d
	movl	a(%rip), %r11d
	movl	b(%rip), %r13d
	cmpl	$1, %eax
	jle	.L20
	movl	$51, %r15d
	leaq	4+m(%rip), %rsi
	movl	%ebp, 16(%rsp)
	cmpl	%r15d, %eax
	leaq	-4(%rsi), %r14
	cmovle	%eax, %r15d
	movl	$1, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L29:
	movl	%ecx, (%rsi)
.L3:
	cmpl	%eax, %r8d
	jg	.L4
	movl	%eax, %edx
	subl	%r8d, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %ebp
	addl	%ebx, %ebp
	cmpl	%ecx, %ebp
	jge	.L4
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L4:
	cmpl	%r9d, %eax
	jl	.L5
	movl	%eax, %edx
	movl	16(%rsp), %ebp
	subl	%r9d, %edx
	movslq	%edx, %rdx
	addl	(%r14,%rdx,4), %ebp
	cmpl	%ebp, %ecx
	jle	.L5
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L5:
	cmpl	%r10d, %eax
	jl	.L6
	movl	%eax, %edx
	subl	%r10d, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %ebp
	addl	%r12d, %ebp
	cmpl	%ebp, %ecx
	jle	.L6
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L6:
	cmpl	%r11d, %eax
	jl	.L7
	movl	%eax, %edx
	subl	%r11d, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %ebp
	addl	%r13d, %ebp
	cmpl	%ebp, %ecx
	jle	.L7
	movl	%ebp, (%rsi)
.L7:
	addl	$1, %eax
	addq	$4, %rsi
	cmpl	%r15d, %eax
	jge	.L28
.L9:
	movl	$9999, (%rsi)
	movl	$9999, %ecx
	cmpl	%eax, %edi
	jg	.L3
	movl	%eax, %edx
	movl	12(%rsp), %ecx
	subl	%edi, %edx
	movslq	%edx, %rdx
	addl	(%r14,%rdx,4), %ecx
	cmpl	$9998, %ecx
	jle	.L29
	movl	$9999, %ecx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$1, %eax
.L2:
	movl	%eax, %r15d
	subl	20(%rsp), %r15d
	movslq	%eax, %rdx
	movl	%ebx, 16(%rsp)
	leaq	m(%rip), %r14
	movslq	%r15d, %r15
	movl	%ebp, 20(%rsp)
	movl	24(%rsp), %ebx
	leaq	(%r14,%rdx,4), %rsi
	subq	%rdx, %r15
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L30:
	movl	%ecx, (%rsi)
.L10:
	cmpl	%edi, %eax
	jl	.L11
	movl	%eax, %edx
	movl	12(%rsp), %ebp
	subl	%edi, %edx
	movslq	%edx, %rdx
	addl	(%r14,%rdx,4), %ebp
	cmpl	%ecx, %ebp
	jge	.L11
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L11:
	cmpl	%r8d, %eax
	jl	.L12
	movl	%eax, %edx
	movl	16(%rsp), %ebp
	subl	%r8d, %edx
	movslq	%edx, %rdx
	addl	(%r14,%rdx,4), %ebp
	cmpl	%ecx, %ebp
	jge	.L12
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L12:
	cmpl	%r9d, %eax
	jl	.L13
	movl	%eax, %edx
	movl	20(%rsp), %ebp
	subl	%r9d, %edx
	movslq	%edx, %rdx
	addl	(%r14,%rdx,4), %ebp
	cmpl	%ebp, %ecx
	jle	.L13
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L13:
	cmpl	%r10d, %eax
	jl	.L14
	movl	%eax, %edx
	subl	%r10d, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %ebp
	addl	%r12d, %ebp
	cmpl	%ebp, %ecx
	jle	.L14
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L14:
	cmpl	%r11d, %eax
	jl	.L15
	movl	%eax, %edx
	subl	%r11d, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %ebp
	addl	%r13d, %ebp
	cmpl	%ebp, %ecx
	jle	.L15
	movl	%ebp, (%rsi)
.L15:
	addl	$1, %eax
	addq	$4, %rsi
	cmpl	$51, %eax
	je	.L17
.L16:
	movl	$9999, (%rsi)
	movl	(%rsi,%r15,4), %ecx
	addl	%ebx, %ecx
	cmpl	$9998, %ecx
	jle	.L30
	movl	$9999, %ecx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L28:
	movl	16(%rsp), %ebp
	cmpl	$51, %eax
	jne	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	movl	$51, 28(%rsp)
	leaq	28(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leaq	m(%rip), %r13
	leaq	.LC0(%rip), %r12
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%edx, %rax
	sarl	$31, %edx
	movq	%r12, %rdi
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%edx, %eax
	cltq
	movl	0(%r13,%rax,4), %esi
	xorl	%eax, %eax
	call	printf@PLT
.L18:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	28(%rsp), %edx
	testl	%edx, %edx
	jne	.L19
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	m
	.bss
	.align 32
	.type	m, @object
	.size	m, 204
m:
	.zero	204
	.globl	b
	.data
	.align 16
	.type	b, @object
	.size	b, 24
b:
	.long	380
	.long	550
	.long	850
	.long	1520
	.long	1870
	.long	2244
	.globl	a
	.align 16
	.type	a, @object
	.size	a, 24
a:
	.long	2
	.long	3
	.long	5
	.long	10
	.long	12
	.long	15
	.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\n"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	20+b(%rip), %ebx
	movl	20+a(%rip), %eax
	movl	16+a(%rip), %edi
	movl	12+a(%rip), %r8d
	movl	%ebx, 24(%rsp)
	movl	16+b(%rip), %ebx
	movl	%eax, 20(%rsp)
	movl	8+a(%rip), %r9d
	movl	%ebx, 12(%rsp)
	movl	8+b(%rip), %ebp
	movl	12+b(%rip), %ebx
	movl	4+a(%rip), %r10d
	movl	4+b(%rip), %r12d
	movl	a(%rip), %r11d
	movl	b(%rip), %r13d
	cmpl	$1, %eax
	jle	.L20
	movl	$51, %r15d
	leaq	4+m(%rip), %rsi
	movl	%ebp, 16(%rsp)
	cmpl	%r15d, %eax
	leaq	-4(%rsi), %r14
	cmovle	%eax, %r15d
	movl	$1, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L29:
	movl	%ecx, (%rsi)
.L3:
	cmpl	%eax, %r8d
	jg	.L4
	movl	%eax, %edx
	subl	%r8d, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %ebp
	addl	%ebx, %ebp
	cmpl	%ecx, %ebp
	jge	.L4
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L4:
	cmpl	%r9d, %eax
	jl	.L5
	movl	%eax, %edx
	movl	16(%rsp), %ebp
	subl	%r9d, %edx
	movslq	%edx, %rdx
	addl	(%r14,%rdx,4), %ebp
	cmpl	%ebp, %ecx
	jle	.L5
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L5:
	cmpl	%r10d, %eax
	jl	.L6
	movl	%eax, %edx
	subl	%r10d, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %ebp
	addl	%r12d, %ebp
	cmpl	%ebp, %ecx
	jle	.L6
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L6:
	cmpl	%r11d, %eax
	jl	.L7
	movl	%eax, %edx
	subl	%r11d, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %ebp
	addl	%r13d, %ebp
	cmpl	%ebp, %ecx
	jle	.L7
	movl	%ebp, (%rsi)
.L7:
	addl	$1, %eax
	addq	$4, %rsi
	cmpl	%r15d, %eax
	jge	.L28
.L9:
	movl	$9999, (%rsi)
	movl	$9999, %ecx
	cmpl	%eax, %edi
	jg	.L3
	movl	%eax, %edx
	movl	12(%rsp), %ecx
	subl	%edi, %edx
	movslq	%edx, %rdx
	addl	(%r14,%rdx,4), %ecx
	cmpl	$9998, %ecx
	jle	.L29
	movl	$9999, %ecx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$1, %eax
.L2:
	movl	%eax, %r15d
	subl	20(%rsp), %r15d
	movslq	%eax, %rdx
	movl	%ebx, 16(%rsp)
	leaq	m(%rip), %r14
	movslq	%r15d, %r15
	movl	%ebp, 20(%rsp)
	movl	24(%rsp), %ebx
	leaq	(%r14,%rdx,4), %rsi
	subq	%rdx, %r15
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L30:
	movl	%ecx, (%rsi)
.L10:
	cmpl	%edi, %eax
	jl	.L11
	movl	%eax, %edx
	movl	12(%rsp), %ebp
	subl	%edi, %edx
	movslq	%edx, %rdx
	addl	(%r14,%rdx,4), %ebp
	cmpl	%ecx, %ebp
	jge	.L11
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L11:
	cmpl	%r8d, %eax
	jl	.L12
	movl	%eax, %edx
	movl	16(%rsp), %ebp
	subl	%r8d, %edx
	movslq	%edx, %rdx
	addl	(%r14,%rdx,4), %ebp
	cmpl	%ecx, %ebp
	jge	.L12
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L12:
	cmpl	%r9d, %eax
	jl	.L13
	movl	%eax, %edx
	movl	20(%rsp), %ebp
	subl	%r9d, %edx
	movslq	%edx, %rdx
	addl	(%r14,%rdx,4), %ebp
	cmpl	%ebp, %ecx
	jle	.L13
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L13:
	cmpl	%r10d, %eax
	jl	.L14
	movl	%eax, %edx
	subl	%r10d, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %ebp
	addl	%r12d, %ebp
	cmpl	%ebp, %ecx
	jle	.L14
	movl	%ebp, (%rsi)
	movl	%ebp, %ecx
.L14:
	cmpl	%r11d, %eax
	jl	.L15
	movl	%eax, %edx
	subl	%r11d, %edx
	movslq	%edx, %rdx
	movl	(%r14,%rdx,4), %ebp
	addl	%r13d, %ebp
	cmpl	%ebp, %ecx
	jle	.L15
	movl	%ebp, (%rsi)
.L15:
	addl	$1, %eax
	addq	$4, %rsi
	cmpl	$51, %eax
	je	.L17
.L16:
	movl	$9999, (%rsi)
	movl	(%rsi,%r15,4), %ecx
	addl	%ebx, %ecx
	cmpl	$9998, %ecx
	jle	.L30
	movl	$9999, %ecx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L28:
	movl	16(%rsp), %ebp
	cmpl	$51, %eax
	jne	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	movl	$51, 28(%rsp)
	leaq	28(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leaq	m(%rip), %r13
	leaq	.LC0(%rip), %r12
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%edx, %rax
	sarl	$31, %edx
	movq	%r12, %rdi
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%edx, %eax
	cltq
	movl	0(%r13,%rax,4), %esi
	xorl	%eax, %eax
	call	printf@PLT
.L18:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	28(%rsp), %edx
	testl	%edx, %edx
	jne	.L19
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	m
	.bss
	.align 32
	.type	m, @object
	.size	m, 204
m:
	.zero	204
	.globl	b
	.data
	.align 16
	.type	b, @object
	.size	b, 24
b:
	.long	380
	.long	550
	.long	850
	.long	1520
	.long	1870
	.long	2244
	.globl	a
	.align 16
	.type	a, @object
	.size	a, 24
a:
	.long	2
	.long	3
	.long	5
	.long	10
	.long	12
	.long	15
	.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:

a[6]={2,3,5,10,12,15},b[6]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;n<51;n++)for(m[n]=9999,d=5;~d;d--)if(a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d]))m[n]=T;for(;scanf("%d",&n),n;)printf("%d\n",m[n/100]);exit(0);}
500
1000
0
 500
0000
0
 500
1100
0
 500
0000
1
 500
0000
2
 500
0000
-1
 500
0000
4
 500
0000
8
 500
0000
-2
 500
0000
3

850
1520
 850
 850
1950
 850
 850
 850
 850
 850
 850
 850

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
a[6]={2,3,5,10,12,15},b[6]={380,550,850,1520,1870,2244},m[51];main(n,d,T){for(n=1;n<51;n++)for(m[n]=9999,d=5;~d;d--)if(a[d]<=n&&m[n]>(T=m[n-a[d]]+b[d]))m[n]=T;for(;scanf("%d",&n),n;)printf("%d\n",m[n/100]);exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.data
	.align 16
	.type	a, @object
	.size	a, 24
a:
	.long	2
	.long	3
	.long	5
	.long	10
	.long	12
	.long	15
	.globl	b
	.align 16
	.type	b, @object
	.size	b, 24
b:
	.long	380
	.long	550
	.long	850
	.long	1520
	.long	1870
	.long	2244
	.globl	m
	.bss
	.align 32
	.type	m, @object
	.size	m, 204
m:
	.zero	204
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L2
.L6:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	m(%rip), %rax
	movl	$9999, (%rdx,%rax)
	movl	$5, -8(%rbp)
	jmp	.L3
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L4
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	m(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	a(%rip), %rcx
	movl	(%rsi,%rcx), %ecx
	subl	%ecx, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	m(%rip), %rdx
	movl	(%rcx,%rdx), %esi
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	b(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	%esi, %edx
	movl	%edx, -12(%rbp)
	cmpl	%eax, -12(%rbp)
	jge	.L4
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	m(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L4:
	subl	$1, -8(%rbp)
.L3:
	cmpl	$-1, -8(%rbp)
	jne	.L5
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cmpl	$50, %eax
	jle	.L6
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	m(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L8
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.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	a
	.data
	.align 16
	.type	a, @object
	.size	a, 24
a:
	.long	2
	.long	3
	.long	5
	.long	10
	.long	12
	.long	15
	.globl	b
	.align 16
	.type	b, @object
	.size	b, 24
b:
	.long	380
	.long	550
	.long	850
	.long	1520
	.long	1870
	.long	2244
	.globl	m
	.bss
	.align 32
	.type	m, @object
	.size	m, 204
m:
	.zero	204
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L2
.L6:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	m(%rip), %rax
	movl	$9999, (%rdx,%rax)
	movl	$5, -8(%rbp)
	jmp	.L3
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	jg	.L4
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	m(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	a(%rip), %rcx
	movl	(%rsi,%rcx), %ecx
	subl	%ecx, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	m(%rip), %rdx
	movl	(%rcx,%rdx), %esi
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	b(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	%esi, %edx
	movl	%edx, -12(%rbp)
	cmpl	%eax, -12(%rbp)
	jge	.L4
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	m(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L4:
	subl	$1, -8(%rbp)
.L3:
	cmpl	$-1, -8(%rbp)
	jne	.L5
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	cmpl	$50, %eax
	jle	.L6
	jmp	.L7
.L8:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	m(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L8
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.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:
