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 N;
int t[128], v[128];

int zikoku[128];

int seigen[200000];
int limit[200000];

int main(void) {
	int i;
	int mofu;
	double mareitaso = 0;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &t[i]) != 1) return 1;
	}
	for (i = 0; i < N; i++) {
		if (scanf("%d", &v[i]) != 1) return 1;
	}
	zikoku[0] = 0;
	for (i = 1; i <= N; i++) {
		zikoku[i] = zikoku[i - 1] + t[i - 1];
	}
	mofu = 0;
	for (i = 0; i < N; i++) {
		int j;
		for (j = 0; j < t[i]; j++) {
			seigen[mofu++] = v[i];
		}
	}
	for (i = 0; i < mofu; i++) {
		int sumipe = seigen[i];
		int j;
		if (i < sumipe) sumipe = i;
		if (mofu - i < sumipe) sumipe = mofu - i;
		for (j = 0; j < N; j++) {
			int tomatu;
			if (zikoku[j] + t[j] < i) tomatu = v[j] + (i - (zikoku[j] + t[j]));
			else if (i < zikoku[j]) tomatu = v[j] + (zikoku[j] - i);
			else tomatu = v[j];
			if (tomatu < sumipe) sumipe = tomatu;
		}
		limit[i] = sumipe;
	}
	limit[mofu] = 0;
	for (i = 0; i < mofu; i++) {
		if (limit[i] != limit[i + 1]) {
			mareitaso += (limit[i] + limit[i + 1]) * 1.0 / 2.0;
		} else if (limit[i] < seigen[i]) {
			mareitaso += limit[i] * 1.0 + 0.5 * 1.0 / 2.0;
		} else {
			mareitaso += limit[i] * 1.0;
		}
	}
	printf("%.2f\n", mareitaso);
	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	t
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 512
v:
	.zero	512
	.globl	zikoku
	.align 32
	.type	zikoku, @object
	.size	zikoku, 512
zikoku:
	.zero	512
	.globl	seigen
	.align 32
	.type	seigen, @object
	.size	seigen, 800000
seigen:
	.zero	800000
	.globl	limit
	.align 32
	.type	limit, @object
	.size	limit, 800000
limit:
	.zero	800000
	.section	.rodata
.LC1:
	.string	"%d"
.LC4:
	.string	"%.2f\n"
	.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	$32, %rsp
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8(%rbp)
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	$0, -32(%rbp)
	jmp	.L4
.L6:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L5
	movl	$1, %eax
	jmp	.L3
.L5:
	addl	$1, -32(%rbp)
.L4:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L6
	movl	$0, -32(%rbp)
	jmp	.L7
.L9:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L8
	movl	$1, %eax
	jmp	.L3
.L8:
	addl	$1, -32(%rbp)
.L7:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L9
	movl	$0, zikoku(%rip)
	movl	$1, -32(%rbp)
	jmp	.L10
.L11:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L10:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L11
	movl	$0, -28(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L12
.L15:
	movl	$0, -24(%rbp)
	jmp	.L13
.L14:
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -28(%rbp)
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	v(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	seigen(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -24(%rbp)
.L13:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L14
	addl	$1, -32(%rbp)
.L12:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L15
	movl	$0, -32(%rbp)
	jmp	.L16
.L25:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	seigen(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jge	.L17
	movl	-32(%rbp), %eax
	movl	%eax, -20(%rbp)
.L17:
	movl	-28(%rbp), %eax
	subl	-32(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L18
	movl	-28(%rbp), %eax
	subl	-32(%rbp), %eax
	movl	%eax, -20(%rbp)
.L18:
	movl	$0, -16(%rbp)
	jmp	.L19
.L24:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	cmpl	%eax, -32(%rbp)
	jle	.L20
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rsi,%rax), %edx
	movl	-32(%rbp), %eax
	subl	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L21
.L20:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jge	.L22
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	-32(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L21
.L22:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
.L21:
	movl	-12(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jge	.L23
	movl	-12(%rbp), %eax
	movl	%eax, -20(%rbp)
.L23:
	addl	$1, -16(%rbp)
.L19:
	movl	N(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L24
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	limit(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L16:
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L25
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	$0, -32(%rbp)
	jmp	.L26
.L30:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	limit(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	je	.L27
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	jmp	.L28
.L27:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	seigen(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L29
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC3(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	jmp	.L28
.L29:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
.L28:
	addl	$1, -32(%rbp)
.L26:
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L30
	movq	-8(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 8
.LC3:
	.long	0
	.long	1070596096
	.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
.LC2:
	.string	"%d"
.LC6:
	.string	"%.2f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	leaq	N(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L5
	cmpl	$0, N(%rip)
	jle	.L4
	leaq	t(%rip), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %rbp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L54:
	movl	N(%rip), %eax
	addl	$1, %r12d
	addq	$4, %rbp
	cmpl	%r12d, %eax
	jle	.L53
.L6:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L54
.L5:
	movl	$1, %eax
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L53:
	.cfi_restore_state
	testl	%eax, %eax
	jle	.L4
	leaq	v(%rip), %rbp
	xorl	%r14d, %r14d
	movq	%rbp, %r12
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L56:
	movslq	N(%rip), %rdi
	addl	$1, %r14d
	addq	$4, %r12
	cmpl	%r14d, %edi
	jle	.L55
.L7:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L56
	jmp	.L5
.L55:
	movl	$0, zikoku(%rip)
	testl	%edi, %edi
	jle	.L17
	xorl	%eax, %eax
	xorl	%edx, %edx
	leaq	4+zikoku(%rip), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	addl	(%rbx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L9
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	leaq	seigen(%rip), %r11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rbx,%r8,4), %esi
	testl	%esi, %esi
	jle	.L16
	leal	-1(%rsi), %eax
	movl	0(%rbp,%r8,4), %r9d
	cmpl	$2, %eax
	jbe	.L34
	movslq	%r10d, %rax
	movd	%r9d, %xmm6
	leaq	(%r11,%rax,4), %rdx
	movl	%esi, %eax
	pshufd	$0, %xmm6, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L57:
	addq	$16, %rax
.L12:
	movups	%xmm0, (%rdx)
	movq	%rax, %rdx
	cmpq	%rcx, %rax
	jne	.L57
	movl	%esi, %edx
	andl	$-4, %edx
	leal	(%r10,%rdx), %eax
	cmpl	%edx, %esi
	je	.L13
.L11:
	movslq	%eax, %r12
	leal	1(%rax), %ecx
	movl	%r9d, (%r11,%r12,4)
	leal	1(%rdx), %r12d
	cmpl	%esi, %r12d
	jge	.L13
	movslq	%ecx, %rcx
	addl	$2, %edx
	addl	$2, %eax
	movl	%r9d, (%r11,%rcx,4)
	cmpl	%esi, %edx
	jge	.L13
	cltq
	movl	%r9d, (%r11,%rax,4)
.L13:
	addl	%esi, %r10d
.L16:
	addq	$1, %r8
	cmpq	%r8, %rdi
	jne	.L10
	testl	%r10d, %r10d
	je	.L17
	leal	-1(%r10), %eax
	cmpl	$2, %eax
	jbe	.L35
	movl	%r10d, %r8d
	movd	%r10d, %xmm7
	pxor	%xmm4, %xmm4
	xorl	%ecx, %ecx
	shrl	$2, %r8d
	movdqa	.LC0(%rip), %xmm5
	movdqa	.LC3(%rip), %xmm6
	pshufd	$0, %xmm7, %xmm7
	leaq	seigen(%rip), %r12
	leaq	zikoku(%rip), %r9
	leaq	limit(%rip), %r11
.L20:
	movdqa	%xmm5, %xmm2
	movdqa	%xmm7, %xmm1
	movq	%rcx, %rsi
	xorl	%eax, %eax
	psubd	%xmm2, %xmm1
	movdqa	%xmm2, %xmm3
	salq	$4, %rsi
	paddd	%xmm6, %xmm5
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	movdqa	(%r12,%rsi), %xmm1
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm3
	pcmpgtd	(%r12,%rsi), %xmm3
	pand	%xmm3, %xmm1
	pandn	%xmm0, %xmm3
	por	%xmm1, %xmm3
	.p2align 4,,10
	.p2align 3
.L19:
	movl	(%r9,%rax,4), %edx
	movd	%edx, %xmm1
	addl	(%rbx,%rax,4), %edx
	pshufd	$0, %xmm1, %xmm0
	movd	%edx, %xmm1
	pshufd	$0, %xmm1, %xmm12
	movd	0(%rbp,%rax,4), %xmm1
	movdqa	%xmm0, %xmm10
	addq	$1, %rax
	pcmpgtd	%xmm2, %xmm0
	psubd	%xmm2, %xmm10
	pshufd	$0, %xmm1, %xmm9
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm12, %xmm1
	paddd	%xmm9, %xmm10
	movdqa	%xmm0, %xmm8
	pcmpeqd	%xmm4, %xmm0
	movdqa	%xmm1, %xmm11
	pcmpeqd	%xmm4, %xmm11
	pand	%xmm11, %xmm8
	pand	%xmm11, %xmm0
	movdqa	%xmm2, %xmm11
	psubd	%xmm12, %xmm11
	paddd	%xmm9, %xmm11
	pand	%xmm0, %xmm9
	pand	%xmm1, %xmm11
	pandn	%xmm10, %xmm1
	pand	%xmm8, %xmm10
	por	%xmm11, %xmm1
	pandn	%xmm1, %xmm8
	movdqa	%xmm3, %xmm1
	por	%xmm10, %xmm8
	pandn	%xmm8, %xmm0
	por	%xmm9, %xmm0
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm3, %xmm1
	movdqa	%xmm1, %xmm3
	por	%xmm0, %xmm3
	cmpq	%rax, %rdi
	jne	.L19
	addq	$1, %rcx
	movaps	%xmm3, (%r11,%rsi)
	cmpl	%ecx, %r8d
	ja	.L20
	movl	%r10d, %r13d
	andl	$-4, %r13d
	testb	$3, %r10b
	je	.L21
.L18:
	movslq	%r13d, %r13
	.p2align 4,,10
	.p2align 3
.L23:
	movl	(%r12,%r13,4), %ecx
	movl	%r10d, %eax
	movl	%r13d, %r14d
	cmpl	%ecx, %r13d
	cmovle	%r13d, %ecx
	subl	%r13d, %eax
	cmpl	%eax, %ecx
	cmovg	%eax, %ecx
	xorl	%eax, %eax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%r14d, %esi
	subl	%r8d, %esi
	addl	%esi, %edx
	cmpl	%edx, %ecx
	cmovg	%edx, %ecx
	addq	$1, %rax
	cmpq	%rax, %rdi
	je	.L58
.L22:
	movl	(%r9,%rax,4), %esi
	movl	(%rbx,%rax,4), %r8d
	movl	0(%rbp,%rax,4), %edx
	addl	%esi, %r8d
	cmpl	%r8d, %r13d
	jg	.L27
	movl	%esi, %r8d
	subl	%r14d, %r8d
	addl	%edx, %r8d
	cmpl	%r13d, %esi
	cmovg	%r8d, %edx
	cmpl	%edx, %ecx
	cmovg	%edx, %ecx
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L22
.L58:
	movl	%ecx, (%r11,%r13,4)
	addq	$1, %r13
	cmpl	%r13d, %r10d
	jg	.L23
.L21:
	movslq	%r10d, %rax
	movsd	.LC5(%rip), %xmm3
	leal	1(%r10), %esi
	pxor	%xmm1, %xmm1
	movl	$0, (%r11,%rax,4)
	movsd	.LC4(%rip), %xmm2
	movl	$1, %eax
	leaq	-4+seigen(%rip), %rdi
	movl	limit(%rip), %edx
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L59:
	addl	%edx, %ecx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%ecx, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
.L30:
	addq	$1, %rax
	cmpq	%rax, %rsi
	je	.L33
.L32:
	movl	%edx, %ecx
	movl	(%r11,%rax,4), %edx
	cmpl	%ecx, %edx
	jne	.L59
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	cmpl	%edx, (%rdi,%rax,4)
	jle	.L31
	addsd	%xmm3, %xmm0
	addsd	%xmm0, %xmm1
	jmp	.L30
.L31:
	addsd	%xmm0, %xmm1
	jmp	.L30
.L4:
	movl	$0, zikoku(%rip)
.L17:
	movl	$0, limit(%rip)
	pxor	%xmm1, %xmm1
.L33:
	movapd	%xmm1, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC6(%rip), %rsi
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L34:
	movl	%r10d, %eax
	xorl	%edx, %edx
	jmp	.L11
.L35:
	xorl	%r13d, %r13d
	leaq	seigen(%rip), %r12
	leaq	zikoku(%rip), %r9
	leaq	limit(%rip), %r11
	jmp	.L18
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	limit
	.bss
	.align 32
	.type	limit, @object
	.size	limit, 800000
limit:
	.zero	800000
	.globl	seigen
	.align 32
	.type	seigen, @object
	.size	seigen, 800000
seigen:
	.zero	800000
	.globl	zikoku
	.align 32
	.type	zikoku, @object
	.size	zikoku, 512
zikoku:
	.zero	512
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 512
v:
	.zero	512
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	0
	.long	1071644672
	.align 8
.LC5:
	.long	0
	.long	1070596096
	.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
.LC2:
	.string	"%d"
.LC6:
	.string	"%.2f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	leaq	N(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L5
	cmpl	$0, N(%rip)
	jle	.L4
	leaq	t(%rip), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %rbp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L54:
	movl	N(%rip), %eax
	addl	$1, %r12d
	addq	$4, %rbp
	cmpl	%r12d, %eax
	jle	.L53
.L6:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L54
.L5:
	movl	$1, %eax
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L53:
	.cfi_restore_state
	testl	%eax, %eax
	jle	.L4
	leaq	v(%rip), %rbp
	xorl	%r14d, %r14d
	movq	%rbp, %r12
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L56:
	movslq	N(%rip), %rdi
	addl	$1, %r14d
	addq	$4, %r12
	cmpl	%r14d, %edi
	jle	.L55
.L7:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L56
	jmp	.L5
.L55:
	movl	$0, zikoku(%rip)
	testl	%edi, %edi
	jle	.L17
	xorl	%eax, %eax
	xorl	%edx, %edx
	leaq	4+zikoku(%rip), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	addl	(%rbx,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L9
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	leaq	seigen(%rip), %r11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rbx,%r8,4), %esi
	testl	%esi, %esi
	jle	.L16
	leal	-1(%rsi), %eax
	movl	0(%rbp,%r8,4), %r9d
	cmpl	$2, %eax
	jbe	.L34
	movslq	%r10d, %rax
	movd	%r9d, %xmm6
	leaq	(%r11,%rax,4), %rdx
	movl	%esi, %eax
	pshufd	$0, %xmm6, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L57:
	addq	$16, %rax
.L12:
	movups	%xmm0, (%rdx)
	movq	%rax, %rdx
	cmpq	%rcx, %rax
	jne	.L57
	movl	%esi, %edx
	andl	$-4, %edx
	leal	(%r10,%rdx), %eax
	cmpl	%edx, %esi
	je	.L13
.L11:
	movslq	%eax, %r12
	leal	1(%rax), %ecx
	movl	%r9d, (%r11,%r12,4)
	leal	1(%rdx), %r12d
	cmpl	%esi, %r12d
	jge	.L13
	movslq	%ecx, %rcx
	addl	$2, %edx
	addl	$2, %eax
	movl	%r9d, (%r11,%rcx,4)
	cmpl	%esi, %edx
	jge	.L13
	cltq
	movl	%r9d, (%r11,%rax,4)
.L13:
	addl	%esi, %r10d
.L16:
	addq	$1, %r8
	cmpq	%r8, %rdi
	jne	.L10
	testl	%r10d, %r10d
	je	.L17
	leal	-1(%r10), %eax
	cmpl	$2, %eax
	jbe	.L35
	movl	%r10d, %r8d
	movd	%r10d, %xmm7
	pxor	%xmm4, %xmm4
	xorl	%ecx, %ecx
	shrl	$2, %r8d
	movdqa	.LC0(%rip), %xmm5
	movdqa	.LC3(%rip), %xmm6
	pshufd	$0, %xmm7, %xmm7
	leaq	seigen(%rip), %r12
	leaq	zikoku(%rip), %r9
	leaq	limit(%rip), %r11
.L20:
	movdqa	%xmm5, %xmm2
	movdqa	%xmm7, %xmm1
	movq	%rcx, %rsi
	xorl	%eax, %eax
	psubd	%xmm2, %xmm1
	movdqa	%xmm2, %xmm3
	salq	$4, %rsi
	paddd	%xmm6, %xmm5
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pand	%xmm0, %xmm3
	pandn	%xmm1, %xmm0
	movdqa	(%r12,%rsi), %xmm1
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm3
	pcmpgtd	(%r12,%rsi), %xmm3
	pand	%xmm3, %xmm1
	pandn	%xmm0, %xmm3
	por	%xmm1, %xmm3
	.p2align 4,,10
	.p2align 3
.L19:
	movl	(%r9,%rax,4), %edx
	movd	%edx, %xmm1
	addl	(%rbx,%rax,4), %edx
	pshufd	$0, %xmm1, %xmm0
	movd	%edx, %xmm1
	pshufd	$0, %xmm1, %xmm12
	movd	0(%rbp,%rax,4), %xmm1
	movdqa	%xmm0, %xmm10
	addq	$1, %rax
	pcmpgtd	%xmm2, %xmm0
	psubd	%xmm2, %xmm10
	pshufd	$0, %xmm1, %xmm9
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm12, %xmm1
	paddd	%xmm9, %xmm10
	movdqa	%xmm0, %xmm8
	pcmpeqd	%xmm4, %xmm0
	movdqa	%xmm1, %xmm11
	pcmpeqd	%xmm4, %xmm11
	pand	%xmm11, %xmm8
	pand	%xmm11, %xmm0
	movdqa	%xmm2, %xmm11
	psubd	%xmm12, %xmm11
	paddd	%xmm9, %xmm11
	pand	%xmm0, %xmm9
	pand	%xmm1, %xmm11
	pandn	%xmm10, %xmm1
	pand	%xmm8, %xmm10
	por	%xmm11, %xmm1
	pandn	%xmm1, %xmm8
	movdqa	%xmm3, %xmm1
	por	%xmm10, %xmm8
	pandn	%xmm8, %xmm0
	por	%xmm9, %xmm0
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm3, %xmm1
	movdqa	%xmm1, %xmm3
	por	%xmm0, %xmm3
	cmpq	%rax, %rdi
	jne	.L19
	addq	$1, %rcx
	movaps	%xmm3, (%r11,%rsi)
	cmpl	%ecx, %r8d
	ja	.L20
	movl	%r10d, %r13d
	andl	$-4, %r13d
	testb	$3, %r10b
	je	.L21
.L18:
	movslq	%r13d, %r13
	.p2align 4,,10
	.p2align 3
.L23:
	movl	(%r12,%r13,4), %ecx
	movl	%r10d, %eax
	movl	%r13d, %r14d
	cmpl	%ecx, %r13d
	cmovle	%r13d, %ecx
	subl	%r13d, %eax
	cmpl	%eax, %ecx
	cmovg	%eax, %ecx
	xorl	%eax, %eax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%r14d, %esi
	subl	%r8d, %esi
	addl	%esi, %edx
	cmpl	%edx, %ecx
	cmovg	%edx, %ecx
	addq	$1, %rax
	cmpq	%rax, %rdi
	je	.L58
.L22:
	movl	(%r9,%rax,4), %esi
	movl	(%rbx,%rax,4), %r8d
	movl	0(%rbp,%rax,4), %edx
	addl	%esi, %r8d
	cmpl	%r8d, %r13d
	jg	.L27
	movl	%esi, %r8d
	subl	%r14d, %r8d
	addl	%edx, %r8d
	cmpl	%r13d, %esi
	cmovg	%r8d, %edx
	cmpl	%edx, %ecx
	cmovg	%edx, %ecx
	addq	$1, %rax
	cmpq	%rax, %rdi
	jne	.L22
.L58:
	movl	%ecx, (%r11,%r13,4)
	addq	$1, %r13
	cmpl	%r13d, %r10d
	jg	.L23
.L21:
	movslq	%r10d, %rax
	movsd	.LC5(%rip), %xmm3
	leal	1(%r10), %esi
	pxor	%xmm1, %xmm1
	movl	$0, (%r11,%rax,4)
	movsd	.LC4(%rip), %xmm2
	movl	$1, %eax
	leaq	-4+seigen(%rip), %rdi
	movl	limit(%rip), %edx
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L59:
	addl	%edx, %ecx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%ecx, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm1
.L30:
	addq	$1, %rax
	cmpq	%rax, %rsi
	je	.L33
.L32:
	movl	%edx, %ecx
	movl	(%r11,%rax,4), %edx
	cmpl	%ecx, %edx
	jne	.L59
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%edx, %xmm0
	cmpl	%edx, (%rdi,%rax,4)
	jle	.L31
	addsd	%xmm3, %xmm0
	addsd	%xmm0, %xmm1
	jmp	.L30
.L31:
	addsd	%xmm0, %xmm1
	jmp	.L30
.L4:
	movl	$0, zikoku(%rip)
.L17:
	movl	$0, limit(%rip)
	pxor	%xmm1, %xmm1
.L33:
	movapd	%xmm1, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC6(%rip), %rsi
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L34:
	movl	%r10d, %eax
	xorl	%edx, %edx
	jmp	.L11
.L35:
	xorl	%r13d, %r13d
	leaq	seigen(%rip), %r12
	leaq	zikoku(%rip), %r9
	leaq	limit(%rip), %r11
	jmp	.L18
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	limit
	.bss
	.align 32
	.type	limit, @object
	.size	limit, 800000
limit:
	.zero	800000
	.globl	seigen
	.align 32
	.type	seigen, @object
	.size	seigen, 800000
seigen:
	.zero	800000
	.globl	zikoku
	.align 32
	.type	zikoku, @object
	.size	zikoku, 512
zikoku:
	.zero	512
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 512
v:
	.zero	512
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC3:
	.long	4
	.long	4
	.long	4
	.long	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	0
	.long	1071644672
	.align 8
.LC5:
	.long	0
	.long	1070596096
	.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 N;
int t[128], v[128];

int zikoku[128];

int seigen[200000];
int limit[200000];

int main(void) {
	int i;
	int mofu;
	double mareitaso = 0;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &t[i]) != 1) return 1;
	}
	for (i = 0; i < N; i++) {
		if (scanf("%d", &v[i]) != 1) return 1;
	}
	zikoku[0] = 0;
	for (i = 1; i <= N; i++) {
		zikoku[i] = zikoku[i - 1] + t[i - 1];
	}
	mofu = 0;
	for (i = 0; i < N; i++) {
		int j;
		for (j = 0; j < t[i]; j++) {
			seigen[mofu++] = v[i];
		}
	}
	for (i = 0; i < mofu; i++) {
		int sumipe = seigen[i];
		int j;
		if (i < sumipe) sumipe = i;
		if (mofu - i < sumipe) sumipe = mofu - i;
		for (j = 0; j < N; j++) {
			int tomatu;
			if (zikoku[j] + t[j] < i) tomatu = v[j] + (i - (zikoku[j] + t[j]));
			else if (i < zikoku[j]) tomatu = v[j] + (zikoku[j] - i);
			else tomatu = v[j];
			if (tomatu < sumipe) sumipe = tomatu;
		}
		limit[i] = sumipe;
	}
	limit[mofu] = 0;
	for (i = 0; i < mofu; i++) {
		if (limit[i] != limit[i + 1]) {
			mareitaso += (limit[i] + limit[i + 1]) * 1.0 / 2.0;
		} else if (limit[i] < seigen[i]) {
			mareitaso += limit[i] * 1.0 + 0.5 * 1.0 / 2.0;
		} else {
			mareitaso += limit[i] * 1.0;
		}
	}
	printf("%.2f\n", mareitaso);
	return 0;
}

1
3
10
 3
12 14 2
6 2 8
 2
60 50
34 52
 1
100
6
 10
64 55 27 35 76 119 7 18 49 100
3 19 31 39 27 48 41 87 55 70
 3
12 14 1
6 2 8
 2
52 50
34 52
 1
110
6
 10
64 55 27 35 76 119 7 18 49 100
3 19 31 44 27 48 41 87 55 70
 1
4
4

2.25
 76.00
 2648.00
 564.00
 18965.00
 74.00
 2376.00
 624.00
 19015.00
 4.00

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 N;
int t[128], v[128];

int zikoku[128];

int seigen[200000];
int limit[200000];

int main(void) {
	int i;
	int mofu;
	double mareitaso = 0;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &t[i]) != 1) return 1;
	}
	for (i = 0; i < N; i++) {
		if (scanf("%d", &v[i]) != 1) return 1;
	}
	zikoku[0] = 0;
	for (i = 1; i <= N; i++) {
		zikoku[i] = zikoku[i - 1] + t[i - 1];
	}
	mofu = 0;
	for (i = 0; i < N; i++) {
		int j;
		for (j = 0; j < t[i]; j++) {
			seigen[mofu++] = v[i];
		}
	}
	for (i = 0; i < mofu; i++) {
		int sumipe = seigen[i];
		int j;
		if (i < sumipe) sumipe = i;
		if (mofu - i < sumipe) sumipe = mofu - i;
		for (j = 0; j < N; j++) {
			int tomatu;
			if (zikoku[j] + t[j] < i) tomatu = v[j] + (i - (zikoku[j] + t[j]));
			else if (i < zikoku[j]) tomatu = v[j] + (zikoku[j] - i);
			else tomatu = v[j];
			if (tomatu < sumipe) sumipe = tomatu;
		}
		limit[i] = sumipe;
	}
	limit[mofu] = 0;
	for (i = 0; i < mofu; i++) {
		if (limit[i] != limit[i + 1]) {
			mareitaso += (limit[i] + limit[i + 1]) * 1.0 / 2.0;
		} else if (limit[i] < seigen[i]) {
			mareitaso += limit[i] * 1.0 + 0.5 * 1.0 / 2.0;
		} else {
			mareitaso += limit[i] * 1.0;
		}
	}
	printf("%.2f\n", mareitaso);
	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	t
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 512
v:
	.zero	512
	.globl	zikoku
	.align 32
	.type	zikoku, @object
	.size	zikoku, 512
zikoku:
	.zero	512
	.globl	seigen
	.align 32
	.type	seigen, @object
	.size	seigen, 800000
seigen:
	.zero	800000
	.globl	limit
	.align 32
	.type	limit, @object
	.size	limit, 800000
limit:
	.zero	800000
	.section	.rodata
.LC1:
	.string	"%d"
.LC4:
	.string	"%.2f\n"
	.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	$32, %rsp
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8(%rbp)
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	$0, -32(%rbp)
	jmp	.L4
.L6:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L5
	movl	$1, %eax
	jmp	.L3
.L5:
	addl	$1, -32(%rbp)
.L4:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L6
	movl	$0, -32(%rbp)
	jmp	.L7
.L9:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L8
	movl	$1, %eax
	jmp	.L3
.L8:
	addl	$1, -32(%rbp)
.L7:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L9
	movl	$0, zikoku(%rip)
	movl	$1, -32(%rbp)
	jmp	.L10
.L11:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L10:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L11
	movl	$0, -28(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L12
.L15:
	movl	$0, -24(%rbp)
	jmp	.L13
.L14:
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -28(%rbp)
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	v(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	seigen(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -24(%rbp)
.L13:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L14
	addl	$1, -32(%rbp)
.L12:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L15
	movl	$0, -32(%rbp)
	jmp	.L16
.L25:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	seigen(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jge	.L17
	movl	-32(%rbp), %eax
	movl	%eax, -20(%rbp)
.L17:
	movl	-28(%rbp), %eax
	subl	-32(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L18
	movl	-28(%rbp), %eax
	subl	-32(%rbp), %eax
	movl	%eax, -20(%rbp)
.L18:
	movl	$0, -16(%rbp)
	jmp	.L19
.L24:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	cmpl	%eax, -32(%rbp)
	jle	.L20
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rsi,%rax), %edx
	movl	-32(%rbp), %eax
	subl	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L21
.L20:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jge	.L22
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	-32(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L21
.L22:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
.L21:
	movl	-12(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jge	.L23
	movl	-12(%rbp), %eax
	movl	%eax, -20(%rbp)
.L23:
	addl	$1, -16(%rbp)
.L19:
	movl	N(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L24
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	limit(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L16:
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L25
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	$0, -32(%rbp)
	jmp	.L26
.L30:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	limit(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	je	.L27
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	jmp	.L28
.L27:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	seigen(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L29
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC3(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	jmp	.L28
.L29:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
.L28:
	addl	$1, -32(%rbp)
.L26:
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L30
	movq	-8(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 8
.LC3:
	.long	0
	.long	1070596096
	.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	t
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 512
v:
	.zero	512
	.globl	zikoku
	.align 32
	.type	zikoku, @object
	.size	zikoku, 512
zikoku:
	.zero	512
	.globl	seigen
	.align 32
	.type	seigen, @object
	.size	seigen, 800000
seigen:
	.zero	800000
	.globl	limit
	.align 32
	.type	limit, @object
	.size	limit, 800000
limit:
	.zero	800000
	.section	.rodata
.LC1:
	.string	"%d"
.LC4:
	.string	"%.2f\n"
	.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	$32, %rsp
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -8(%rbp)
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	$0, -32(%rbp)
	jmp	.L4
.L6:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L5
	movl	$1, %eax
	jmp	.L3
.L5:
	addl	$1, -32(%rbp)
.L4:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L6
	movl	$0, -32(%rbp)
	jmp	.L7
.L9:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L8
	movl	$1, %eax
	jmp	.L3
.L8:
	addl	$1, -32(%rbp)
.L7:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L9
	movl	$0, zikoku(%rip)
	movl	$1, -32(%rbp)
	jmp	.L10
.L11:
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -32(%rbp)
.L10:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jle	.L11
	movl	$0, -28(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L12
.L15:
	movl	$0, -24(%rbp)
	jmp	.L13
.L14:
	movl	-28(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -28(%rbp)
	movl	-32(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	v(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	seigen(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -24(%rbp)
.L13:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L14
	addl	$1, -32(%rbp)
.L12:
	movl	N(%rip), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L15
	movl	$0, -32(%rbp)
	jmp	.L16
.L25:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	seigen(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jge	.L17
	movl	-32(%rbp), %eax
	movl	%eax, -20(%rbp)
.L17:
	movl	-28(%rbp), %eax
	subl	-32(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L18
	movl	-28(%rbp), %eax
	subl	-32(%rbp), %eax
	movl	%eax, -20(%rbp)
.L18:
	movl	$0, -16(%rbp)
	jmp	.L19
.L24:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	cmpl	%eax, -32(%rbp)
	jle	.L20
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rsi,%rax), %edx
	movl	-32(%rbp), %eax
	subl	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L21
.L20:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -32(%rbp)
	jge	.L22
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	zikoku(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	-32(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -12(%rbp)
	jmp	.L21
.L22:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
.L21:
	movl	-12(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jge	.L23
	movl	-12(%rbp), %eax
	movl	%eax, -20(%rbp)
.L23:
	addl	$1, -16(%rbp)
.L19:
	movl	N(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L24
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	limit(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -32(%rbp)
.L16:
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L25
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	$0, -32(%rbp)
	jmp	.L26
.L30:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	limit(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	je	.L27
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-32(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC2(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	jmp	.L28
.L27:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	seigen(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jge	.L29
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC3(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	jmp	.L28
.L29:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	limit(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
.L28:
	addl	$1, -32(%rbp)
.L26:
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L30
	movq	-8(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 8
.LC3:
	.long	0
	.long	1070596096
	.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:
