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

```c
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif
//#pragma GCC target("avx2")
//#pragma GCC optimize("O3,unroll-loops")

#define getchar getchar_unlocked
#define putchar putchar_unlocked
int32_t nextint(void){ char c=getchar(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar(); bool s=false; if(c=='-'){s=true;c=getchar();} uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return s?-x:x; }
int64_t nextlong(void){ char c=getchar(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar(); int s=0; if(c=='-'){s=1;c=getchar();} uint64_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return s?-x:x; }
uint32_t nextstr(char *s){ char c=getchar(); while(c==' '||c=='\n') c=getchar(); uint32_t len=0; while(c!=' '&&c!='\n'){ *s++=c; len++; c=getchar(); } *s='\0'; return len; }

int T[101];
int v[40001];
int main(void){
	int n=nextint();
	for(int i=1; i<=n; i++){
		T[i]=T[i-1]+nextint()*2;
	}
	for(int i=1; i<=n; i++){
		int V=nextint()*2;
		for(int t=T[i-1]; t<T[i]; t++){
			v[t]=V;
		}
	}
	v[0]=1;
	for(int t=0; t<T[n]; t++){
		if(v[t+1]>v[t]+1) v[t+1]=v[t]+1;
	}
	for(int t=T[n]; t>0; t--){
		if(v[t-1]>v[t]+1) v[t-1]=v[t]+1;
	}
	int ans=0;
	for(int t=0; t<T[n]; t++){
		ans += (v[t]<v[t+1]?v[t]:v[t+1]);
	}
	printf("%.2lf\n", (double)ans/4);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	nextint
	.type	nextint, @function
nextint:
.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
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
	jmp	.L2
.L4:
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L2:
	cmpb	$45, -6(%rbp)
	je	.L3
	cmpb	$47, -6(%rbp)
	jle	.L4
	cmpb	$57, -6(%rbp)
	jg	.L4
.L3:
	movb	$0, -5(%rbp)
	cmpb	$45, -6(%rbp)
	jne	.L5
	movb	$1, -5(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L5:
	movl	$0, -4(%rbp)
	jmp	.L6
.L8:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-6(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L6:
	cmpb	$47, -6(%rbp)
	jle	.L7
	cmpb	$57, -6(%rbp)
	jle	.L8
.L7:
	cmpb	$0, -5(%rbp)
	je	.L9
	movl	-4(%rbp), %eax
	negl	%eax
	jmp	.L11
.L9:
	movl	-4(%rbp), %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextint, .-nextint
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB7:
	.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
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
	jmp	.L13
.L15:
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L13:
	cmpb	$45, -13(%rbp)
	je	.L14
	cmpb	$47, -13(%rbp)
	jle	.L15
	cmpb	$57, -13(%rbp)
	jg	.L15
.L14:
	movl	$0, -12(%rbp)
	cmpb	$45, -13(%rbp)
	jne	.L16
	movl	$1, -12(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L16:
	movq	$0, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-13(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L17:
	cmpb	$47, -13(%rbp)
	jle	.L18
	cmpb	$57, -13(%rbp)
	jle	.L19
.L18:
	cmpl	$0, -12(%rbp)
	je	.L20
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L22
.L20:
	movq	-8(%rbp), %rax
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nextlong, .-nextlong
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB8:
	.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
	movq	%rdi, -24(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
	jmp	.L24
.L25:
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L24:
	cmpb	$32, -5(%rbp)
	je	.L25
	cmpb	$10, -5(%rbp)
	je	.L25
	movl	$0, -4(%rbp)
	jmp	.L26
.L28:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L26:
	cmpb	$32, -5(%rbp)
	je	.L27
	cmpb	$10, -5(%rbp)
	jne	.L28
.L27:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	nextstr, .-nextstr
	.globl	T
	.bss
	.align 32
	.type	T, @object
	.size	T, 404
T:
	.zero	404
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 160004
v:
	.zero	160004
	.section	.rodata
.LC1:
	.string	"%.2lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	call	nextint
	movl	%eax, -24(%rbp)
	movl	$1, -52(%rbp)
	jmp	.L31
.L32:
	movl	-52(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %ebx
	call	nextint
	addl	%eax, %eax
	leal	(%rbx,%rax), %ecx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -52(%rbp)
.L31:
	movl	-52(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L32
	movl	$1, -48(%rbp)
	jmp	.L33
.L36:
	call	nextint
	addl	%eax, %eax
	movl	%eax, -20(%rbp)
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -44(%rbp)
	jmp	.L34
.L35:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	v(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -44(%rbp)
.L34:
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L35
	addl	$1, -48(%rbp)
.L33:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L36
	movl	$1, v(%rip)
	movl	$0, -40(%rbp)
	jmp	.L37
.L39:
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	v(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L38
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-40(%rbp), %edx
	addl	$1, %edx
	leal	1(%rax), %ecx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L38:
	addl	$1, -40(%rbp)
.L37:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L39
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -36(%rbp)
	jmp	.L40
.L42:
	movl	-36(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	v(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L41
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-36(%rbp), %edx
	subl	$1, %edx
	leal	1(%rax), %ecx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L41:
	subl	$1, -36(%rbp)
.L40:
	cmpl	$0, -36(%rbp)
	jg	.L42
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L43
.L44:
	movl	-28(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	v(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	addl	%eax, -32(%rbp)
	addl	$1, -28(%rbp)
.L43:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L44
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-32(%rbp), %xmm0
	movsd	.LC0(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1074790400
	.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
	.p2align 4
	.globl	nextint
	.type	nextint, @function
nextint:
.LFB63:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	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
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L44
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	movl	%eax, %ecx
.L3:
	movl	%eax, %edx
	subl	$48, %ecx
	cmpb	$45, %al
	je	.L9
	cmpb	$9, %cl
	jbe	.L4
.L41:
	movq	stdin(%rip), %rdi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %ecx
	cmpb	$45, %dl
	je	.L9
	cmpb	$9, %cl
	jbe	.L4
.L8:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L5
	call	__uflow@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L4
	cmpb	$45, %al
	jne	.L41
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$45, %dl
	je	.L9
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	.L22
.L10:
	xorl	%ebx, %ebx
.L42:
	movq	stdin(%rip), %rdi
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L17
.L18:
	leal	(%rbx,%rbx,4), %eax
	movsbl	%dl, %edx
	leal	(%rdx,%rax,2), %ebp
	movq	8(%rdi), %rax
	leal	-48(%rbp), %ebx
	cmpq	16(%rdi), %rax
	jb	.L15
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L42
.L17:
	movl	$48, %eax
	subl	%ebp, %eax
	testb	%r12b, %r12b
	cmove	%ebx, %eax
	popq	%rbx
	.cfi_remember_state
	.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
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L45
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L13:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L22
	movl	$1, %r12d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	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
.L44:
	.cfi_restore_state
	call	__uflow@PLT
	movl	%eax, %ecx
	jmp	.L3
.L45:
	call	__uflow@PLT
	movl	%eax, %edx
	jmp	.L13
	.cfi_endproc
.LFE63:
	.size	nextint, .-nextint
	.p2align 4
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB64:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	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
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L88
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	movl	%eax, %ecx
.L48:
	movl	%eax, %edx
	subl	$48, %ecx
	cmpb	$45, %al
	je	.L54
	cmpb	$9, %cl
	jbe	.L49
.L86:
	movq	stdin(%rip), %rdi
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L50:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %ecx
	cmpb	$45, %dl
	je	.L54
	cmpb	$9, %cl
	jbe	.L49
.L53:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L50
	call	__uflow@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L49
	cmpb	$45, %al
	jne	.L86
	.p2align 4,,10
	.p2align 3
.L49:
	cmpb	$45, %dl
	je	.L54
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	.L67
.L55:
	xorl	%ebx, %ebx
.L87:
	movq	stdin(%rip), %rdi
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L60:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L62
.L63:
	leaq	(%rbx,%rbx,4), %rax
	movsbq	%dl, %rdx
	leaq	(%rdx,%rax,2), %rbp
	movq	8(%rdi), %rax
	leaq	-48(%rbp), %rbx
	cmpq	16(%rdi), %rax
	jb	.L60
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L87
.L62:
	movl	$48, %eax
	subq	%rbp, %rax
	testl	%r12d, %r12d
	cmove	%rbx, %rax
	popq	%rbx
	.cfi_remember_state
	.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
.L54:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L89
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L58:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L67
	movl	$1, %r12d
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L67:
	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
.L88:
	.cfi_restore_state
	call	__uflow@PLT
	movl	%eax, %ecx
	jmp	.L48
.L89:
	call	__uflow@PLT
	movl	%eax, %edx
	jmp	.L58
	.cfi_endproc
.LFE64:
	.size	nextlong, .-nextlong
	.p2align 4
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB65:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L122:
	movl	%eax, %edx
	cmpb	$10, %al
	je	.L94
	cmpb	$32, %al
	jne	.L93
.L94:
	movq	stdin(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L98:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	je	.L98
	cmpb	$10, %dl
	je	.L98
.L93:
	xorl	%r12d, %r12d
	jmp	.L104
	.p2align 4,,10
	.p2align 3
.L99:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	je	.L102
	cmpb	$10, %dl
	je	.L102
.L104:
	movb	%dl, (%rbx)
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	addl	$1, %r12d
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L99
	call	__uflow@PLT
	movl	%eax, %edx
	cmpb	$10, %al
	je	.L102
	cmpb	$32, %al
	jne	.L104
.L102:
	movb	$0, (%rbx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L123:
	.cfi_restore_state
	call	__uflow@PLT
	jmp	.L122
	.cfi_endproc
.LFE65:
	.size	nextstr, .-nextstr
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%.2lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB66:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	T(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-4(%rbp), %r14
	call	nextint
	movslq	%eax, %rbx
	testl	%ebx, %ebx
	jle	.L165
	.p2align 4,,10
	.p2align 3
.L125:
	movl	(%r14,%r12,4), %r13d
	call	nextint
	leal	0(%r13,%rax,2), %eax
	movl	%eax, 0(%rbp,%r12,4)
	addq	$1, %r12
	cmpl	%r12d, %ebx
	jge	.L125
	leaq	T(%rip), %r14
	leal	-1(%rbx), %eax
	leaq	4(%r14), %rdx
	leaq	v(%rip), %r13
	leaq	(%rdx,%rax,4), %r12
	.p2align 4,,10
	.p2align 3
.L129:
	call	nextint
	movl	(%r14), %ecx
	movl	4(%r14), %r8d
	leal	(%rax,%rax), %edi
	cmpl	%r8d, %ecx
	jge	.L134
	movl	%r8d, %r9d
	subl	%ecx, %r9d
	leal	-1(%r9), %eax
	cmpl	$2, %eax
	jbe	.L131
	movslq	%ecx, %rax
	movd	%edi, %xmm3
	leaq	0(%r13,%rax,4), %rdx
	movl	%r9d, %eax
	pshufd	$0, %xmm3, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %esi
	leaq	16(%rdx), %rax
	salq	$4, %rsi
	addq	%rax, %rsi
	jmp	.L132
	.p2align 4,,10
	.p2align 3
.L166:
	addq	$16, %rax
.L132:
	movups	%xmm0, (%rdx)
	movq	%rax, %rdx
	cmpq	%rsi, %rax
	jne	.L166
	movl	%r9d, %eax
	andl	$-4, %eax
	addl	%eax, %ecx
	cmpl	%r9d, %eax
	je	.L134
.L131:
	movslq	%ecx, %rax
	movl	%edi, 0(%r13,%rax,4)
	leal	1(%rcx), %eax
	cmpl	%eax, %r8d
	jle	.L134
	cltq
	addl	$2, %ecx
	movl	%edi, 0(%r13,%rax,4)
	cmpl	%ecx, %r8d
	jle	.L134
	movslq	%ecx, %rcx
	movl	%edi, 0(%r13,%rcx,4)
.L134:
	addq	$4, %r14
	cmpq	%r12, %r14
	jne	.L129
.L130:
	movl	$1, v(%rip)
	movl	0(%rbp,%rbx,4), %edi
	xorl	%eax, %eax
	testl	%edi, %edi
	jle	.L127
	leaq	4+v(%rip), %rax
	leal	-1(%rdi), %r9d
	leaq	4(%rax), %rdx
	movq	%r9, %r8
	leaq	-4(%rax), %rcx
	leaq	(%rdx,%r9,4), %rsi
	.p2align 4,,10
	.p2align 3
.L137:
	movl	-4(%rax), %ebx
	leal	1(%rbx), %edx
	cmpl	%edx, (%rax)
	jle	.L136
	movl	%edx, (%rax)
.L136:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L137
	movslq	%edi, %rdx
	leaq	0(%r13,%rdx,4), %rax
	subq	%r9, %rdx
	leaq	-4+v(%rip), %r9
	leaq	(%r9,%rdx,4), %rsi
	.p2align 4,,10
	.p2align 3
.L139:
	movl	(%rax), %ebx
	leal	1(%rbx), %edx
	cmpl	%edx, -4(%rax)
	jle	.L138
	movl	%edx, -4(%rax)
.L138:
	subq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L139
	cmpl	$2, %r8d
	jbe	.L147
	movl	%edi, %eax
	leaq	16+v(%rip), %rdx
	pxor	%xmm2, %xmm2
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	addq	%rdx, %rax
	.p2align 4,,10
	.p2align 3
.L141:
	movdqu	4(%rcx), %xmm0
	movdqa	(%rcx), %xmm1
	addq	$16, %rcx
	movdqu	-12(%rcx), %xmm4
	pcmpgtd	-16(%rcx), %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm4, %xmm0
	por	%xmm1, %xmm0
	paddd	%xmm0, %xmm2
	cmpq	%rax, %rcx
	jne	.L141
	movdqa	%xmm2, %xmm0
	movl	%edi, %edx
	psrldq	$8, %xmm0
	andl	$-4, %edx
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	testb	$3, %dil
	je	.L127
.L140:
	movslq	%edx, %r10
	leal	1(%rdx), %ecx
	leaq	0(%r13,%r10,4), %rsi
	cmpl	%ecx, %r8d
	jle	.L144
	cmpl	%edx, %edi
	jle	.L144
	leal	2(%rdx), %ecx
	movl	(%rsi), %esi
	movslq	%ecx, %rcx
.L145:
	movl	(%r9,%rcx,4), %r10d
	movl	%ecx, %edx
	cmpl	%esi, %r10d
	cmovle	%r10d, %esi
	addl	%esi, %eax
	movl	0(%r13,%rcx,4), %esi
	cmpl	%esi, %r10d
	cmovg	%esi, %r10d
	addq	$2, %rcx
	addl	%r10d, %eax
	leal	-1(%rcx), %r10d
	cmpl	%r10d, %r8d
	jg	.L145
	movslq	%edx, %r10
	leal	1(%rdx), %ecx
.L144:
	movslq	%ecx, %rsi
	movl	0(%r13,%r10,4), %r8d
	movl	0(%r13,%rsi,4), %esi
	cmpl	%r8d, %esi
	cmovle	%esi, %r8d
	addl	%r8d, %eax
	cmpl	%ecx, %edi
	jle	.L127
	leal	2(%rdx), %r8d
	movslq	%r8d, %rcx
	movl	0(%r13,%rcx,4), %ecx
	cmpl	%ecx, %esi
	cmovg	%ecx, %esi
	addl	%esi, %eax
	cmpl	%r8d, %edi
	jle	.L127
	addl	$3, %edx
	movslq	%edx, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	%edx, %ecx
	cmovg	%edx, %ecx
	addl	%ecx, %eax
.L127:
	pxor	%xmm0, %xmm0
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	cvtsi2sdl	%eax, %xmm0
	mulsd	.LC0(%rip), %xmm0
	movl	$1, %eax
	call	__printf_chk@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
.L165:
	.cfi_restore_state
	leaq	v(%rip), %r13
	jmp	.L130
.L147:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L140
	.cfi_endproc
.LFE66:
	.size	main, .-main
	.globl	v
	.bss
	.align 32
	.type	v, @object
	.size	v, 160004
v:
	.zero	160004
	.globl	T
	.align 32
	.type	T, @object
	.size	T, 404
T:
	.zero	404
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.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
	.p2align 4
	.globl	nextint
	.type	nextint, @function
nextint:
.LFB63:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	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
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L44
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	movl	%eax, %ecx
.L3:
	movl	%eax, %edx
	subl	$48, %ecx
	cmpb	$45, %al
	je	.L9
	cmpb	$9, %cl
	jbe	.L4
.L41:
	movq	stdin(%rip), %rdi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %ecx
	cmpb	$45, %dl
	je	.L9
	cmpb	$9, %cl
	jbe	.L4
.L8:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L5
	call	__uflow@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L4
	cmpb	$45, %al
	jne	.L41
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$45, %dl
	je	.L9
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	.L22
.L10:
	xorl	%ebx, %ebx
.L42:
	movq	stdin(%rip), %rdi
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L17
.L18:
	leal	(%rbx,%rbx,4), %eax
	movsbl	%dl, %edx
	leal	(%rdx,%rax,2), %ebp
	movq	8(%rdi), %rax
	leal	-48(%rbp), %ebx
	cmpq	16(%rdi), %rax
	jb	.L15
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L42
.L17:
	movl	$48, %eax
	subl	%ebp, %eax
	testb	%r12b, %r12b
	cmove	%ebx, %eax
	popq	%rbx
	.cfi_remember_state
	.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
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L45
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L13:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L22
	movl	$1, %r12d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	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
.L44:
	.cfi_restore_state
	call	__uflow@PLT
	movl	%eax, %ecx
	jmp	.L3
.L45:
	call	__uflow@PLT
	movl	%eax, %edx
	jmp	.L13
	.cfi_endproc
.LFE63:
	.size	nextint, .-nextint
	.p2align 4
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB64:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	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
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L88
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
	movl	%eax, %ecx
.L48:
	movl	%eax, %edx
	subl	$48, %ecx
	cmpb	$45, %al
	je	.L54
	cmpb	$9, %cl
	jbe	.L49
.L86:
	movq	stdin(%rip), %rdi
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L50:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %ecx
	cmpb	$45, %dl
	je	.L54
	cmpb	$9, %cl
	jbe	.L49
.L53:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L50
	call	__uflow@PLT
	leal	-48(%rax), %ecx
	movl	%eax, %edx
	cmpb	$9, %cl
	jbe	.L49
	cmpb	$45, %al
	jne	.L86
	.p2align 4,,10
	.p2align 3
.L49:
	cmpb	$45, %dl
	je	.L54
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	.L67
.L55:
	xorl	%ebx, %ebx
.L87:
	movq	stdin(%rip), %rdi
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L60:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	leal	-48(%rdx), %eax
	cmpb	$9, %al
	ja	.L62
.L63:
	leaq	(%rbx,%rbx,4), %rax
	movsbq	%dl, %rdx
	leaq	(%rdx,%rax,2), %rbp
	movq	8(%rdi), %rax
	leaq	-48(%rbp), %rbx
	cmpq	16(%rdi), %rax
	jb	.L60
	call	__uflow@PLT
	movl	%eax, %edx
	subl	$48, %eax
	cmpb	$9, %al
	jbe	.L87
.L62:
	movl	$48, %eax
	subq	%rbp, %rax
	testl	%r12d, %r12d
	cmove	%rbx, %rax
	popq	%rbx
	.cfi_remember_state
	.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
.L54:
	.cfi_restore_state
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L89
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	movl	%edx, %eax
.L58:
	subl	$48, %eax
	cmpb	$9, %al
	ja	.L67
	movl	$1, %r12d
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L67:
	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
.L88:
	.cfi_restore_state
	call	__uflow@PLT
	movl	%eax, %ecx
	jmp	.L48
.L89:
	call	__uflow@PLT
	movl	%eax, %edx
	jmp	.L58
	.cfi_endproc
.LFE64:
	.size	nextlong, .-nextlong
	.p2align 4
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB65:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L122:
	movl	%eax, %edx
	cmpb	$10, %al
	je	.L94
	cmpb	$32, %al
	jne	.L93
.L94:
	movq	stdin(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L98:
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	je	.L98
	cmpb	$10, %dl
	je	.L98
.L93:
	xorl	%r12d, %r12d
	jmp	.L104
	.p2align 4,,10
	.p2align 3
.L99:
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %edx
	cmpb	$32, %dl
	je	.L102
	cmpb	$10, %dl
	je	.L102
.L104:
	movb	%dl, (%rbx)
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	addl	$1, %r12d
	movq	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jb	.L99
	call	__uflow@PLT
	movl	%eax, %edx
	cmpb	$10, %al
	je	.L102
	cmpb	$32, %al
	jne	.L104
.L102:
	movb	$0, (%rbx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L123:
	.cfi_restore_state
	call	__uflow@PLT
	jmp	.L122
	.cfi_endproc
.LFE65:
	.size	nextstr, .-nextstr
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%.2lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB66:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	T(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-4(%rbp), %r14
	call	nextint
	movslq	%eax, %rbx
	testl	%ebx, %ebx
	jle	.L165
	.p2align 4,,10
	.p2align 3
.L125:
	movl	(%r14,%r12,4), %r13d
	call	nextint
	leal	0(%r13,%rax,2), %eax
	movl	%eax, 0(%rbp,%r12,4)
	addq	$1, %r12
	cmpl	%r12d, %ebx
	jge	.L125
	leaq	T(%rip), %r14
	leal	-1(%rbx), %eax
	leaq	4(%r14), %rdx
	leaq	v(%rip), %r13
	leaq	(%rdx,%rax,4), %r12
	.p2align 4,,10
	.p2align 3
.L129:
	call	nextint
	movl	(%r14), %ecx
	movl	4(%r14), %r8d
	leal	(%rax,%rax), %edi
	cmpl	%r8d, %ecx
	jge	.L134
	movl	%r8d, %r9d
	subl	%ecx, %r9d
	leal	-1(%r9), %eax
	cmpl	$2, %eax
	jbe	.L131
	movslq	%ecx, %rax
	movd	%edi, %xmm3
	leaq	0(%r13,%rax,4), %rdx
	movl	%r9d, %eax
	pshufd	$0, %xmm3, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %esi
	leaq	16(%rdx), %rax
	salq	$4, %rsi
	addq	%rax, %rsi
	jmp	.L132
	.p2align 4,,10
	.p2align 3
.L166:
	addq	$16, %rax
.L132:
	movups	%xmm0, (%rdx)
	movq	%rax, %rdx
	cmpq	%rsi, %rax
	jne	.L166
	movl	%r9d, %eax
	andl	$-4, %eax
	addl	%eax, %ecx
	cmpl	%r9d, %eax
	je	.L134
.L131:
	movslq	%ecx, %rax
	movl	%edi, 0(%r13,%rax,4)
	leal	1(%rcx), %eax
	cmpl	%eax, %r8d
	jle	.L134
	cltq
	addl	$2, %ecx
	movl	%edi, 0(%r13,%rax,4)
	cmpl	%ecx, %r8d
	jle	.L134
	movslq	%ecx, %rcx
	movl	%edi, 0(%r13,%rcx,4)
.L134:
	addq	$4, %r14
	cmpq	%r12, %r14
	jne	.L129
.L130:
	movl	$1, v(%rip)
	movl	0(%rbp,%rbx,4), %edi
	xorl	%eax, %eax
	testl	%edi, %edi
	jle	.L127
	leaq	4+v(%rip), %rax
	leal	-1(%rdi), %r9d
	leaq	4(%rax), %rdx
	movq	%r9, %r8
	leaq	-4(%rax), %rcx
	leaq	(%rdx,%r9,4), %rsi
	.p2align 4,,10
	.p2align 3
.L137:
	movl	-4(%rax), %ebx
	leal	1(%rbx), %edx
	cmpl	%edx, (%rax)
	jle	.L136
	movl	%edx, (%rax)
.L136:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L137
	movslq	%edi, %rdx
	leaq	0(%r13,%rdx,4), %rax
	subq	%r9, %rdx
	leaq	-4+v(%rip), %r9
	leaq	(%r9,%rdx,4), %rsi
	.p2align 4,,10
	.p2align 3
.L139:
	movl	(%rax), %ebx
	leal	1(%rbx), %edx
	cmpl	%edx, -4(%rax)
	jle	.L138
	movl	%edx, -4(%rax)
.L138:
	subq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L139
	cmpl	$2, %r8d
	jbe	.L147
	movl	%edi, %eax
	leaq	16+v(%rip), %rdx
	pxor	%xmm2, %xmm2
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	addq	%rdx, %rax
	.p2align 4,,10
	.p2align 3
.L141:
	movdqu	4(%rcx), %xmm0
	movdqa	(%rcx), %xmm1
	addq	$16, %rcx
	movdqu	-12(%rcx), %xmm4
	pcmpgtd	-16(%rcx), %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm4, %xmm0
	por	%xmm1, %xmm0
	paddd	%xmm0, %xmm2
	cmpq	%rax, %rcx
	jne	.L141
	movdqa	%xmm2, %xmm0
	movl	%edi, %edx
	psrldq	$8, %xmm0
	andl	$-4, %edx
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	testb	$3, %dil
	je	.L127
.L140:
	movslq	%edx, %r10
	leal	1(%rdx), %ecx
	leaq	0(%r13,%r10,4), %rsi
	cmpl	%ecx, %r8d
	jle	.L144
	cmpl	%edx, %edi
	jle	.L144
	leal	2(%rdx), %ecx
	movl	(%rsi), %esi
	movslq	%ecx, %rcx
.L145:
	movl	(%r9,%rcx,4), %r10d
	movl	%ecx, %edx
	cmpl	%esi, %r10d
	cmovle	%r10d, %esi
	addl	%esi, %eax
	movl	0(%r13,%rcx,4), %esi
	cmpl	%esi, %r10d
	cmovg	%esi, %r10d
	addq	$2, %rcx
	addl	%r10d, %eax
	leal	-1(%rcx), %r10d
	cmpl	%r10d, %r8d
	jg	.L145
	movslq	%edx, %r10
	leal	1(%rdx), %ecx
.L144:
	movslq	%ecx, %rsi
	movl	0(%r13,%r10,4), %r8d
	movl	0(%r13,%rsi,4), %esi
	cmpl	%r8d, %esi
	cmovle	%esi, %r8d
	addl	%r8d, %eax
	cmpl	%ecx, %edi
	jle	.L127
	leal	2(%rdx), %r8d
	movslq	%r8d, %rcx
	movl	0(%r13,%rcx,4), %ecx
	cmpl	%ecx, %esi
	cmovg	%ecx, %esi
	addl	%esi, %eax
	cmpl	%r8d, %edi
	jle	.L127
	addl	$3, %edx
	movslq	%edx, %rdx
	movl	0(%r13,%rdx,4), %edx
	cmpl	%edx, %ecx
	cmovg	%edx, %ecx
	addl	%ecx, %eax
.L127:
	pxor	%xmm0, %xmm0
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	cvtsi2sdl	%eax, %xmm0
	mulsd	.LC0(%rip), %xmm0
	movl	$1, %eax
	call	__printf_chk@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
.L165:
	.cfi_restore_state
	leaq	v(%rip), %r13
	jmp	.L130
.L147:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L140
	.cfi_endproc
.LFE66:
	.size	main, .-main
	.globl	v
	.bss
	.align 32
	.type	v, @object
	.size	v, 160004
v:
	.zero	160004
	.globl	T
	.align 32
	.type	T, @object
	.size	T, 404
T:
	.zero	404
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.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 <float.h>
#include <inttypes.h>
#include <limits.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif
//#pragma GCC target("avx2")
//#pragma GCC optimize("O3,unroll-loops")

#define getchar getchar_unlocked
#define putchar putchar_unlocked
int32_t nextint(void){ char c=getchar(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar(); bool s=false; if(c=='-'){s=true;c=getchar();} uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return s?-x:x; }
int64_t nextlong(void){ char c=getchar(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar(); int s=0; if(c=='-'){s=1;c=getchar();} uint64_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return s?-x:x; }
uint32_t nextstr(char *s){ char c=getchar(); while(c==' '||c=='\n') c=getchar(); uint32_t len=0; while(c!=' '&&c!='\n'){ *s++=c; len++; c=getchar(); } *s='\0'; return len; }

int T[101];
int v[40001];
int main(void){
	int n=nextint();
	for(int i=1; i<=n; i++){
		T[i]=T[i-1]+nextint()*2;
	}
	for(int i=1; i<=n; i++){
		int V=nextint()*2;
		for(int t=T[i-1]; t<T[i]; t++){
			v[t]=V;
		}
	}
	v[0]=1;
	for(int t=0; t<T[n]; t++){
		if(v[t+1]>v[t]+1) v[t+1]=v[t]+1;
	}
	for(int t=T[n]; t>0; t--){
		if(v[t-1]>v[t]+1) v[t-1]=v[t]+1;
	}
	int ans=0;
	for(int t=0; t<T[n]; t++){
		ans += (v[t]<v[t+1]?v[t]:v[t+1]);
	}
	printf("%.2lf\n", (double)ans/4);
}

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 <float.h>
#include <inttypes.h>
#include <limits.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif
//#pragma GCC target("avx2")
//#pragma GCC optimize("O3,unroll-loops")

#define getchar getchar_unlocked
#define putchar putchar_unlocked
int32_t nextint(void){ char c=getchar(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar(); bool s=false; if(c=='-'){s=true;c=getchar();} uint32_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return s?-x:x; }
int64_t nextlong(void){ char c=getchar(); while(c!='-'&&(c<'0'||'9'<c)) c=getchar(); int s=0; if(c=='-'){s=1;c=getchar();} uint64_t x=0; while('0'<=c && c<='9'){ x=x*10+c-'0'; c=getchar(); } return s?-x:x; }
uint32_t nextstr(char *s){ char c=getchar(); while(c==' '||c=='\n') c=getchar(); uint32_t len=0; while(c!=' '&&c!='\n'){ *s++=c; len++; c=getchar(); } *s='\0'; return len; }

int T[101];
int v[40001];
int main(void){
	int n=nextint();
	for(int i=1; i<=n; i++){
		T[i]=T[i-1]+nextint()*2;
	}
	for(int i=1; i<=n; i++){
		int V=nextint()*2;
		for(int t=T[i-1]; t<T[i]; t++){
			v[t]=V;
		}
	}
	v[0]=1;
	for(int t=0; t<T[n]; t++){
		if(v[t+1]>v[t]+1) v[t+1]=v[t]+1;
	}
	for(int t=T[n]; t>0; t--){
		if(v[t-1]>v[t]+1) v[t-1]=v[t]+1;
	}
	int ans=0;
	for(int t=0; t<T[n]; t++){
		ans += (v[t]<v[t+1]?v[t]:v[t+1]);
	}
	printf("%.2lf\n", (double)ans/4);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	nextint
	.type	nextint, @function
nextint:
.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
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
	jmp	.L2
.L4:
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L2:
	cmpb	$45, -6(%rbp)
	je	.L3
	cmpb	$47, -6(%rbp)
	jle	.L4
	cmpb	$57, -6(%rbp)
	jg	.L4
.L3:
	movb	$0, -5(%rbp)
	cmpb	$45, -6(%rbp)
	jne	.L5
	movb	$1, -5(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L5:
	movl	$0, -4(%rbp)
	jmp	.L6
.L8:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-6(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L6:
	cmpb	$47, -6(%rbp)
	jle	.L7
	cmpb	$57, -6(%rbp)
	jle	.L8
.L7:
	cmpb	$0, -5(%rbp)
	je	.L9
	movl	-4(%rbp), %eax
	negl	%eax
	jmp	.L11
.L9:
	movl	-4(%rbp), %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextint, .-nextint
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB7:
	.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
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
	jmp	.L13
.L15:
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L13:
	cmpb	$45, -13(%rbp)
	je	.L14
	cmpb	$47, -13(%rbp)
	jle	.L15
	cmpb	$57, -13(%rbp)
	jg	.L15
.L14:
	movl	$0, -12(%rbp)
	cmpb	$45, -13(%rbp)
	jne	.L16
	movl	$1, -12(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L16:
	movq	$0, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-13(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L17:
	cmpb	$47, -13(%rbp)
	jle	.L18
	cmpb	$57, -13(%rbp)
	jle	.L19
.L18:
	cmpl	$0, -12(%rbp)
	je	.L20
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L22
.L20:
	movq	-8(%rbp), %rax
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nextlong, .-nextlong
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB8:
	.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
	movq	%rdi, -24(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
	jmp	.L24
.L25:
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L24:
	cmpb	$32, -5(%rbp)
	je	.L25
	cmpb	$10, -5(%rbp)
	je	.L25
	movl	$0, -4(%rbp)
	jmp	.L26
.L28:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L26:
	cmpb	$32, -5(%rbp)
	je	.L27
	cmpb	$10, -5(%rbp)
	jne	.L28
.L27:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	nextstr, .-nextstr
	.globl	T
	.bss
	.align 32
	.type	T, @object
	.size	T, 404
T:
	.zero	404
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 160004
v:
	.zero	160004
	.section	.rodata
.LC1:
	.string	"%.2lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	call	nextint
	movl	%eax, -24(%rbp)
	movl	$1, -52(%rbp)
	jmp	.L31
.L32:
	movl	-52(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %ebx
	call	nextint
	addl	%eax, %eax
	leal	(%rbx,%rax), %ecx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -52(%rbp)
.L31:
	movl	-52(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L32
	movl	$1, -48(%rbp)
	jmp	.L33
.L36:
	call	nextint
	addl	%eax, %eax
	movl	%eax, -20(%rbp)
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -44(%rbp)
	jmp	.L34
.L35:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	v(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -44(%rbp)
.L34:
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L35
	addl	$1, -48(%rbp)
.L33:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L36
	movl	$1, v(%rip)
	movl	$0, -40(%rbp)
	jmp	.L37
.L39:
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	v(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L38
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-40(%rbp), %edx
	addl	$1, %edx
	leal	1(%rax), %ecx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L38:
	addl	$1, -40(%rbp)
.L37:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L39
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -36(%rbp)
	jmp	.L40
.L42:
	movl	-36(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	v(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L41
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-36(%rbp), %edx
	subl	$1, %edx
	leal	1(%rax), %ecx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L41:
	subl	$1, -36(%rbp)
.L40:
	cmpl	$0, -36(%rbp)
	jg	.L42
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L43
.L44:
	movl	-28(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	v(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	addl	%eax, -32(%rbp)
	addl	$1, -28(%rbp)
.L43:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L44
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-32(%rbp), %xmm0
	movsd	.LC0(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1074790400
	.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	nextint
	.type	nextint, @function
nextint:
.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
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
	jmp	.L2
.L4:
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L2:
	cmpb	$45, -6(%rbp)
	je	.L3
	cmpb	$47, -6(%rbp)
	jle	.L4
	cmpb	$57, -6(%rbp)
	jg	.L4
.L3:
	movb	$0, -5(%rbp)
	cmpb	$45, -6(%rbp)
	jne	.L5
	movb	$1, -5(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L5:
	movl	$0, -4(%rbp)
	jmp	.L6
.L8:
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movsbl	-6(%rbp), %eax
	addl	%edx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -6(%rbp)
.L6:
	cmpb	$47, -6(%rbp)
	jle	.L7
	cmpb	$57, -6(%rbp)
	jle	.L8
.L7:
	cmpb	$0, -5(%rbp)
	je	.L9
	movl	-4(%rbp), %eax
	negl	%eax
	jmp	.L11
.L9:
	movl	-4(%rbp), %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextint, .-nextint
	.globl	nextlong
	.type	nextlong, @function
nextlong:
.LFB7:
	.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
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
	jmp	.L13
.L15:
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L13:
	cmpb	$45, -13(%rbp)
	je	.L14
	cmpb	$47, -13(%rbp)
	jle	.L15
	cmpb	$57, -13(%rbp)
	jg	.L15
.L14:
	movl	$0, -12(%rbp)
	cmpb	$45, -13(%rbp)
	jne	.L16
	movl	$1, -12(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L16:
	movq	$0, -8(%rbp)
	jmp	.L17
.L19:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, %rdx
	movsbq	-13(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	%rax, -8(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -13(%rbp)
.L17:
	cmpb	$47, -13(%rbp)
	jle	.L18
	cmpb	$57, -13(%rbp)
	jle	.L19
.L18:
	cmpl	$0, -12(%rbp)
	je	.L20
	movq	-8(%rbp), %rax
	negq	%rax
	jmp	.L22
.L20:
	movq	-8(%rbp), %rax
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nextlong, .-nextlong
	.globl	nextstr
	.type	nextstr, @function
nextstr:
.LFB8:
	.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
	movq	%rdi, -24(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
	jmp	.L24
.L25:
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L24:
	cmpb	$32, -5(%rbp)
	je	.L25
	cmpb	$10, -5(%rbp)
	je	.L25
	movl	$0, -4(%rbp)
	jmp	.L26
.L28:
	movq	-24(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movzbl	-5(%rbp), %edx
	movb	%dl, (%rax)
	addl	$1, -4(%rbp)
	call	getchar_unlocked@PLT
	movb	%al, -5(%rbp)
.L26:
	cmpb	$32, -5(%rbp)
	je	.L27
	cmpb	$10, -5(%rbp)
	jne	.L28
.L27:
	movq	-24(%rbp), %rax
	movb	$0, (%rax)
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	nextstr, .-nextstr
	.globl	T
	.bss
	.align 32
	.type	T, @object
	.size	T, 404
T:
	.zero	404
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 160004
v:
	.zero	160004
	.section	.rodata
.LC1:
	.string	"%.2lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	call	nextint
	movl	%eax, -24(%rbp)
	movl	$1, -52(%rbp)
	jmp	.L31
.L32:
	movl	-52(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %ebx
	call	nextint
	addl	%eax, %eax
	leal	(%rbx,%rax), %ecx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -52(%rbp)
.L31:
	movl	-52(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L32
	movl	$1, -48(%rbp)
	jmp	.L33
.L36:
	call	nextint
	addl	%eax, %eax
	movl	%eax, -20(%rbp)
	movl	-48(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -44(%rbp)
	jmp	.L34
.L35:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	v(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -44(%rbp)
.L34:
	movl	-48(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L35
	addl	$1, -48(%rbp)
.L33:
	movl	-48(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L36
	movl	$1, v(%rip)
	movl	$0, -40(%rbp)
	jmp	.L37
.L39:
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	v(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L38
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-40(%rbp), %edx
	addl	$1, %edx
	leal	1(%rax), %ecx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L38:
	addl	$1, -40(%rbp)
.L37:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L39
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -36(%rbp)
	jmp	.L40
.L42:
	movl	-36(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	v(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	jle	.L41
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-36(%rbp), %edx
	subl	$1, %edx
	leal	1(%rax), %ecx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L41:
	subl	$1, -36(%rbp)
.L40:
	cmpl	$0, -36(%rbp)
	jg	.L42
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	jmp	.L43
.L44:
	movl	-28(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	v(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	addl	%eax, -32(%rbp)
	addl	$1, -28(%rbp)
.L43:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	T(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L44
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-32(%rbp), %xmm0
	movsd	.LC0(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1074790400
	.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:
