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>

int main() {
	long long n, d, x,a[100];
	scanf("%lld\n", &n);
	scanf("%lld%lld", &d, &x);
	for (int i = 0; i < n; i++) {
		scanf("%lld", &a[i]);
	}
	long long sum = x;
	for (int i = 0; i < n; i++) {
		sum += (d-1)/a[i]+1;
	}
	printf("%d", sum);

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld"
.LC3:
	.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	$864, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-848(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-832(%rbp), %rdx
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -856(%rbp)
	jmp	.L2
.L3:
	leaq	-816(%rbp), %rdx
	movl	-856(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -856(%rbp)
.L2:
	movl	-856(%rbp), %eax
	movslq	%eax, %rdx
	movq	-848(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L3
	movq	-832(%rbp), %rax
	movq	%rax, -824(%rbp)
	movl	$0, -852(%rbp)
	jmp	.L4
.L5:
	movq	-840(%rbp), %rax
	leaq	-1(%rax), %rcx
	movl	-852(%rbp), %eax
	cltq
	movq	-816(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	addq	$1, %rax
	addq	%rax, -824(%rbp)
	addl	$1, -852(%rbp)
.L4:
	movl	-852(%rbp), %eax
	movslq	%eax, %rdx
	movq	-848(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L5
	movq	-824(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"%lld\n"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$856, %rsp
	.cfi_def_cfa_offset 896
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	16(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpq	$0, 8(%rsp)
	jle	.L2
	leaq	32(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	addq	$8, %r12
	cmpq	%rbp, %rax
	jg	.L3
	movq	24(%rsp), %r8
	testq	%rax, %rax
	jle	.L4
	movq	16(%rsp), %rcx
	leaq	(%rbx,%rax,8), %rsi
	subq	$1, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rcx, %rax
	cqto
	idivq	(%rbx)
	addq	$8, %rbx
	leaq	1(%r8,%rax), %r8
	cmpq	%rbx, %rsi
	jne	.L5
.L4:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movq	24(%rsp), %r8
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$856, %rsp
	.cfi_def_cfa_offset 896
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	leaq	24(%rsp), %rdx
	leaq	16(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpq	$0, 8(%rsp)
	jle	.L2
	leaq	32(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	addq	$8, %r12
	cmpq	%rbp, %rax
	jg	.L3
	movq	24(%rsp), %r8
	testq	%rax, %rax
	jle	.L4
	movq	16(%rsp), %rcx
	leaq	(%rbx,%rax,8), %rsi
	subq	$1, %rcx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rcx, %rax
	cqto
	idivq	(%rbx)
	addq	$8, %rbx
	leaq	1(%r8,%rax), %r8
	cmpq	%rbx, %rsi
	jne	.L5
.L4:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movq	24(%rsp), %r8
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main() {
	long long n, d, x,a[100];
	scanf("%lld\n", &n);
	scanf("%lld%lld", &d, &x);
	for (int i = 0; i < n; i++) {
		scanf("%lld", &a[i]);
	}
	long long sum = x;
	for (int i = 0; i < n; i++) {
		sum += (d-1)/a[i]+1;
	}
	printf("%d", sum);

	return 0;
}
5
30 44
26
18
81
27
6
 3
7 1
1
5
10
 2
8 20
1
19
 3
7 1
2
5
19
 2
8 23
1
19
 5
1 44
26
18
76
27
6
 3
1 1
2
5
19
 3
1 2
2
5
15
 5
1 52
26
21
11
27
6
 3
1 0
2
5
15

56 11 29 8 32 49 4 5 57 3
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>

int main() {
	long long n, d, x,a[100];
	scanf("%lld\n", &n);
	scanf("%lld%lld", &d, &x);
	for (int i = 0; i < n; i++) {
		scanf("%lld", &a[i]);
	}
	long long sum = x;
	for (int i = 0; i < n; i++) {
		sum += (d-1)/a[i]+1;
	}
	printf("%d", sum);

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld"
.LC3:
	.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	$864, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-848(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-832(%rbp), %rdx
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -856(%rbp)
	jmp	.L2
.L3:
	leaq	-816(%rbp), %rdx
	movl	-856(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -856(%rbp)
.L2:
	movl	-856(%rbp), %eax
	movslq	%eax, %rdx
	movq	-848(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L3
	movq	-832(%rbp), %rax
	movq	%rax, -824(%rbp)
	movl	$0, -852(%rbp)
	jmp	.L4
.L5:
	movq	-840(%rbp), %rax
	leaq	-1(%rax), %rcx
	movl	-852(%rbp), %eax
	cltq
	movq	-816(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	addq	$1, %rax
	addq	%rax, -824(%rbp)
	addl	$1, -852(%rbp)
.L4:
	movl	-852(%rbp), %eax
	movslq	%eax, %rdx
	movq	-848(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L5
	movq	-824(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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
	.section	.rodata
.LC0:
	.string	"%lld\n"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld"
.LC3:
	.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	$864, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-848(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-832(%rbp), %rdx
	leaq	-840(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -856(%rbp)
	jmp	.L2
.L3:
	leaq	-816(%rbp), %rdx
	movl	-856(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -856(%rbp)
.L2:
	movl	-856(%rbp), %eax
	movslq	%eax, %rdx
	movq	-848(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L3
	movq	-832(%rbp), %rax
	movq	%rax, -824(%rbp)
	movl	$0, -852(%rbp)
	jmp	.L4
.L5:
	movq	-840(%rbp), %rax
	leaq	-1(%rax), %rcx
	movl	-852(%rbp), %eax
	cltq
	movq	-816(%rbp,%rax,8), %rsi
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	addq	$1, %rax
	addq	%rax, -824(%rbp)
	addl	$1, -852(%rbp)
.L4:
	movl	-852(%rbp), %eax
	movslq	%eax, %rdx
	movq	-848(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L5
	movq	-824(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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:
