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

```c
double P[102][101];
char L[101],B[101];
main(){
	int N,T,l,b,x,t,n,k;
	for(;scanf("%d%d%d%d",&N,&T,&l,&b),N;){
		memset(P,0,sizeof(P));
		memset(L,0,sizeof(L));
		memset(B,0,sizeof(B));
		for(;l--;)scanf("%d",&x),L[x]=1;
		for(;b--;)scanf("%d",&x),B[x]=1;
		for(P[t=0][0]=1;t<T;P[t+1][N]+=P[t][N],t++)for(n=0;n<N;n++){
			for(k=1;k<=6;k++){
				x=n+k;
				if(x>N)x=2*N-x;
				if(B[x])x=0;
				P[t+1+L[x]][x]+=P[t][n]/6;
			}
		}
		printf("%f\n",P[T][N]);
	}
exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	P
	.bss
	.align 32
	.type	P, @object
	.size	P, 82416
P:
	.zero	82416
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 101
L:
	.zero	101
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 101
B:
	.zero	101
	.section	.rodata
.LC0:
	.string	"%d"
.LC3:
	.string	"%f\n"
.LC4:
	.string	"%d%d%d%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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L15:
	movl	$82416, %edx
	movl	$0, %esi
	leaq	P(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$101, %edx
	movl	$0, %esi
	leaq	L(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$101, %edx
	movl	$0, %esi
	leaq	B(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L3
.L4:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-24(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L3:
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	testl	%eax, %eax
	jne	.L4
	jmp	.L5
.L6:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-24(%rbp), %eax
	cltq
	leaq	B(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L5:
	movl	-28(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -28(%rbp)
	testl	%eax, %eax
	jne	.L6
	movl	$0, -20(%rbp)
	movl	-20(%rbp), %eax
	cltq
	imulq	$808, %rax, %rax
	leaq	P(%rip), %rdx
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, (%rax,%rdx)
	jmp	.L7
.L14:
	movl	$0, -16(%rbp)
	jmp	.L8
.L13:
	movl	$1, -12(%rbp)
	jmp	.L9
.L12:
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-24(%rbp), %edx
	movl	-40(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L10
	movl	-40(%rbp), %eax
	addl	%eax, %eax
	movl	-24(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -24(%rbp)
.L10:
	movl	-24(%rbp), %eax
	cltq
	leaq	B(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L11
	movl	$0, -24(%rbp)
.L11:
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	(%rcx,%rax), %edx
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	.LC2(%rip), %xmm2
	divsd	%xmm2, %xmm0
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	(%rcx,%rax), %edx
	movl	-24(%rbp), %eax
	addsd	%xmm1, %xmm0
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L9:
	cmpl	$6, -12(%rbp)
	jle	.L12
	addl	$1, -16(%rbp)
.L8:
	movl	-40(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	-40(%rbp), %eax
	addsd	%xmm1, %xmm0
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L7:
	movl	-36(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	movl	-36(%rbp), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L2:
	leaq	-28(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	0
	.long	1075314688
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC3:
	.string	"%f\n"
.LC4:
	.string	"%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	P(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	76(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 32(%rsp)
.L2:
	movq	56(%rsp), %r8
	movq	48(%rsp), %rcx
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rdi
	movq	40(%rsp), %rdx
	movq	32(%rsp), %rsi
	call	scanf@PLT
	movl	68(%rsp), %eax
	testl	%eax, %eax
	je	.L43
	movl	$82416, %edx
	movq	%r12, %rdi
	leaq	84(%rsp), %r15
	xorl	%esi, %esi
	leaq	L(%rip), %rbp
	leaq	B(%rip), %rbx
	call	memset@PLT
	movq	%r13, %rax
	movl	$12, %ecx
	movq	%rbp, %rdi
	rep stosq
	movl	$12, %ecx
	leaq	.LC0(%rip), %r14
	movl	$0, (%rdi)
	movq	%rbx, %rdi
	rep stosq
	movl	76(%rsp), %eax
	movb	$0, 100+L(%rip)
	leal	-1(%rax), %edx
	movl	%edx, 76(%rsp)
	movl	$0, (%rdi)
	movb	$0, 100+B(%rip)
	testl	%eax, %eax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	84(%rsp), %rax
	movb	$1, 0(%rbp,%rax)
	movl	76(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 76(%rsp)
	testl	%eax, %eax
	jne	.L3
.L6:
	movl	80(%rsp), %eax
	leaq	84(%rsp), %r15
	leaq	.LC0(%rip), %r14
	leal	-1(%rax), %edx
	movl	%edx, 80(%rsp)
	testl	%eax, %eax
	je	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	84(%rsp), %rax
	movb	$1, (%rbx,%rax)
	movl	80(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 80(%rsp)
	testl	%eax, %eax
	jne	.L4
.L5:
	movq	.LC1(%rip), %rax
	movl	68(%rsp), %edi
	movq	%rax, (%r12)
	movl	72(%rsp), %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jle	.L44
	movslq	%edi, %rsi
	movl	84(%rsp), %eax
	leal	(%rdi,%rdi), %r8d
	xorl	%edx, %edx
	movq	%rsi, 24(%rsp)
	salq	$3, %rsi
	movsd	.LC2(%rip), %xmm0
	leal	-1(%rdi), %r11d
	movq	%rsi, 16(%rsp)
	addq	%r12, %rsi
	movq	%rsi, (%rsp)
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %esi
	testl	%edi, %edi
	jle	.L25
	movq	(%rsp), %rcx
	xorl	%r10d, %r10d
	subq	16(%rsp), %rcx
	movl	$1, %edx
	movl	$1, %r9d
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$1, %r9d
	movl	%r8d, %edx
	subl	%r9d, %edx
	cmpl	%edi, %r9d
	cmovle	%r9d, %edx
	addq	$1, %r10
	addq	$8, %rcx
.L26:
	movsd	(%rcx), %xmm1
	movslq	%edx, %rdx
	movl	%r10d, %eax
	cmpb	$0, (%rbx,%rdx)
	divsd	%xmm0, %xmm1
	cmovne	%r13, %rdx
	movsbl	0(%rbp,%rdx), %r14d
	addl	%esi, %r14d
	movslq	%r14d, %r14
	leaq	(%r14,%r14,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%r14,%r15,4), %r14
	movl	%r8d, %r15d
	addq	%rdx, %r14
	leal	2(%r10), %edx
	subl	%edx, %r15d
	cmpl	%edi, %edx
	cmovg	%r15d, %edx
	movslq	%edx, %rdx
	cmpb	$0, (%rbx,%rdx)
	cmovne	%r13, %rdx
	addsd	(%r12,%r14,8), %xmm1
	movsd	%xmm1, (%r12,%r14,8)
	movsd	(%rcx), %xmm1
	movsbl	0(%rbp,%rdx), %r14d
	divsd	%xmm0, %xmm1
	addl	%esi, %r14d
	movslq	%r14d, %r14
	leaq	(%r14,%r14,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%r14,%r15,4), %r14
	movl	%r8d, %r15d
	addq	%rdx, %r14
	leal	3(%r10), %edx
	subl	%edx, %r15d
	cmpl	%edi, %edx
	cmovg	%r15d, %edx
	movslq	%edx, %rdx
	cmpb	$0, (%rbx,%rdx)
	cmovne	%r13, %rdx
	addsd	(%r12,%r14,8), %xmm1
	movsd	%xmm1, (%r12,%r14,8)
	movsd	(%rcx), %xmm1
	movsbl	0(%rbp,%rdx), %r14d
	divsd	%xmm0, %xmm1
	addl	%esi, %r14d
	movslq	%r14d, %r14
	leaq	(%r14,%r14,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%r14,%r15,4), %r14
	movl	%r8d, %r15d
	addq	%rdx, %r14
	leal	4(%r10), %edx
	subl	%edx, %r15d
	cmpl	%edi, %edx
	cmovg	%r15d, %edx
	movslq	%edx, %rdx
	cmpb	$0, (%rbx,%rdx)
	cmovne	%r13, %rdx
	addsd	(%r12,%r14,8), %xmm1
	movsd	%xmm1, (%r12,%r14,8)
	movsd	(%rcx), %xmm1
	movsbl	0(%rbp,%rdx), %r14d
	divsd	%xmm0, %xmm1
	addl	%esi, %r14d
	movslq	%r14d, %r14
	leaq	(%r14,%r14,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%r14,%r15,4), %r14
	movl	%r8d, %r15d
	addq	%rdx, %r14
	leal	5(%r10), %edx
	subl	%edx, %r15d
	cmpl	%edi, %edx
	cmovg	%r15d, %edx
	movslq	%edx, %rdx
	cmpb	$0, (%rbx,%rdx)
	cmovne	%r13, %rdx
	addl	$6, %eax
	addsd	(%r12,%r14,8), %xmm1
	movsd	%xmm1, (%r12,%r14,8)
	movsd	(%rcx), %xmm1
	movsbl	0(%rbp,%rdx), %r14d
	divsd	%xmm0, %xmm1
	addl	%esi, %r14d
	movslq	%r14d, %r14
	leaq	(%r14,%r14,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%r14,%r15,4), %r14
	addq	%r14, %rdx
	movl	%r8d, %r14d
	subl	%eax, %r14d
	cmpl	%edi, %eax
	cmovg	%r14d, %eax
	movslq	%eax, %r14
	cmpb	$0, (%rbx,%r14)
	addsd	(%r12,%rdx,8), %xmm1
	movsd	%xmm1, (%r12,%rdx,8)
	je	.L22
	xorl	%eax, %eax
	xorl	%r14d, %r14d
.L22:
	movsd	(%rcx), %xmm1
	movsbl	0(%rbp,%r14), %edx
	divsd	%xmm0, %xmm1
	addl	%esi, %edx
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%rdx,%r15,4), %rdx
	addq	%r14, %rdx
	addsd	(%r12,%rdx,8), %xmm1
	movsd	%xmm1, (%r12,%rdx,8)
	cmpq	%r11, %r10
	jne	.L23
	movl	$1, %edx
.L25:
	movq	(%rsp), %rcx
	movsd	808(%rcx), %xmm1
	addsd	(%rcx), %xmm1
	addq	$808, %rcx
	movsd	%xmm1, (%rcx)
	movq	%rcx, (%rsp)
	cmpl	%esi, 12(%rsp)
	jne	.L10
	testb	%dl, %dl
	je	.L9
	movl	%eax, 84(%rsp)
.L9:
	movslq	12(%rsp), %rax
	leaq	.LC3(%rip), %rdi
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	addq	24(%rsp), %rax
	movsd	(%r12,%rax,8), %xmm0
	movl	$1, %eax
	call	printf@PLT
	jmp	.L2
.L43:
	xorl	%edi, %edi
	call	exit@PLT
.L44:
	movslq	%edi, %rax
	movq	%rax, 24(%rsp)
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 101
B:
	.zero	101
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 101
L:
	.zero	101
	.globl	P
	.align 32
	.type	P, @object
	.size	P, 82416
P:
	.zero	82416
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	0
	.long	1075314688
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC3:
	.string	"%f\n"
.LC4:
	.string	"%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	P(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	76(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	68(%rsp), %rax
	movq	%rax, 32(%rsp)
.L2:
	movq	56(%rsp), %r8
	movq	48(%rsp), %rcx
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rdi
	movq	40(%rsp), %rdx
	movq	32(%rsp), %rsi
	call	scanf@PLT
	movl	68(%rsp), %eax
	testl	%eax, %eax
	je	.L43
	movl	$82416, %edx
	movq	%r12, %rdi
	leaq	84(%rsp), %r15
	xorl	%esi, %esi
	leaq	L(%rip), %rbp
	leaq	B(%rip), %rbx
	call	memset@PLT
	movq	%r13, %rax
	movl	$12, %ecx
	movq	%rbp, %rdi
	rep stosq
	movl	$12, %ecx
	leaq	.LC0(%rip), %r14
	movl	$0, (%rdi)
	movq	%rbx, %rdi
	rep stosq
	movl	76(%rsp), %eax
	movb	$0, 100+L(%rip)
	leal	-1(%rax), %edx
	movl	%edx, 76(%rsp)
	movl	$0, (%rdi)
	movb	$0, 100+B(%rip)
	testl	%eax, %eax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	84(%rsp), %rax
	movb	$1, 0(%rbp,%rax)
	movl	76(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 76(%rsp)
	testl	%eax, %eax
	jne	.L3
.L6:
	movl	80(%rsp), %eax
	leaq	84(%rsp), %r15
	leaq	.LC0(%rip), %r14
	leal	-1(%rax), %edx
	movl	%edx, 80(%rsp)
	testl	%eax, %eax
	je	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	84(%rsp), %rax
	movb	$1, (%rbx,%rax)
	movl	80(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 80(%rsp)
	testl	%eax, %eax
	jne	.L4
.L5:
	movq	.LC1(%rip), %rax
	movl	68(%rsp), %edi
	movq	%rax, (%r12)
	movl	72(%rsp), %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jle	.L44
	movslq	%edi, %rsi
	movl	84(%rsp), %eax
	leal	(%rdi,%rdi), %r8d
	xorl	%edx, %edx
	movq	%rsi, 24(%rsp)
	salq	$3, %rsi
	movsd	.LC2(%rip), %xmm0
	leal	-1(%rdi), %r11d
	movq	%rsi, 16(%rsp)
	addq	%r12, %rsi
	movq	%rsi, (%rsp)
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %esi
	testl	%edi, %edi
	jle	.L25
	movq	(%rsp), %rcx
	xorl	%r10d, %r10d
	subq	16(%rsp), %rcx
	movl	$1, %edx
	movl	$1, %r9d
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$1, %r9d
	movl	%r8d, %edx
	subl	%r9d, %edx
	cmpl	%edi, %r9d
	cmovle	%r9d, %edx
	addq	$1, %r10
	addq	$8, %rcx
.L26:
	movsd	(%rcx), %xmm1
	movslq	%edx, %rdx
	movl	%r10d, %eax
	cmpb	$0, (%rbx,%rdx)
	divsd	%xmm0, %xmm1
	cmovne	%r13, %rdx
	movsbl	0(%rbp,%rdx), %r14d
	addl	%esi, %r14d
	movslq	%r14d, %r14
	leaq	(%r14,%r14,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%r14,%r15,4), %r14
	movl	%r8d, %r15d
	addq	%rdx, %r14
	leal	2(%r10), %edx
	subl	%edx, %r15d
	cmpl	%edi, %edx
	cmovg	%r15d, %edx
	movslq	%edx, %rdx
	cmpb	$0, (%rbx,%rdx)
	cmovne	%r13, %rdx
	addsd	(%r12,%r14,8), %xmm1
	movsd	%xmm1, (%r12,%r14,8)
	movsd	(%rcx), %xmm1
	movsbl	0(%rbp,%rdx), %r14d
	divsd	%xmm0, %xmm1
	addl	%esi, %r14d
	movslq	%r14d, %r14
	leaq	(%r14,%r14,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%r14,%r15,4), %r14
	movl	%r8d, %r15d
	addq	%rdx, %r14
	leal	3(%r10), %edx
	subl	%edx, %r15d
	cmpl	%edi, %edx
	cmovg	%r15d, %edx
	movslq	%edx, %rdx
	cmpb	$0, (%rbx,%rdx)
	cmovne	%r13, %rdx
	addsd	(%r12,%r14,8), %xmm1
	movsd	%xmm1, (%r12,%r14,8)
	movsd	(%rcx), %xmm1
	movsbl	0(%rbp,%rdx), %r14d
	divsd	%xmm0, %xmm1
	addl	%esi, %r14d
	movslq	%r14d, %r14
	leaq	(%r14,%r14,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%r14,%r15,4), %r14
	movl	%r8d, %r15d
	addq	%rdx, %r14
	leal	4(%r10), %edx
	subl	%edx, %r15d
	cmpl	%edi, %edx
	cmovg	%r15d, %edx
	movslq	%edx, %rdx
	cmpb	$0, (%rbx,%rdx)
	cmovne	%r13, %rdx
	addsd	(%r12,%r14,8), %xmm1
	movsd	%xmm1, (%r12,%r14,8)
	movsd	(%rcx), %xmm1
	movsbl	0(%rbp,%rdx), %r14d
	divsd	%xmm0, %xmm1
	addl	%esi, %r14d
	movslq	%r14d, %r14
	leaq	(%r14,%r14,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%r14,%r15,4), %r14
	movl	%r8d, %r15d
	addq	%rdx, %r14
	leal	5(%r10), %edx
	subl	%edx, %r15d
	cmpl	%edi, %edx
	cmovg	%r15d, %edx
	movslq	%edx, %rdx
	cmpb	$0, (%rbx,%rdx)
	cmovne	%r13, %rdx
	addl	$6, %eax
	addsd	(%r12,%r14,8), %xmm1
	movsd	%xmm1, (%r12,%r14,8)
	movsd	(%rcx), %xmm1
	movsbl	0(%rbp,%rdx), %r14d
	divsd	%xmm0, %xmm1
	addl	%esi, %r14d
	movslq	%r14d, %r14
	leaq	(%r14,%r14,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%r14,%r15,4), %r14
	addq	%r14, %rdx
	movl	%r8d, %r14d
	subl	%eax, %r14d
	cmpl	%edi, %eax
	cmovg	%r14d, %eax
	movslq	%eax, %r14
	cmpb	$0, (%rbx,%r14)
	addsd	(%r12,%rdx,8), %xmm1
	movsd	%xmm1, (%r12,%rdx,8)
	je	.L22
	xorl	%eax, %eax
	xorl	%r14d, %r14d
.L22:
	movsd	(%rcx), %xmm1
	movsbl	0(%rbp,%r14), %edx
	divsd	%xmm0, %xmm1
	addl	%esi, %edx
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%rdx,%r15,4), %rdx
	addq	%r14, %rdx
	addsd	(%r12,%rdx,8), %xmm1
	movsd	%xmm1, (%r12,%rdx,8)
	cmpq	%r11, %r10
	jne	.L23
	movl	$1, %edx
.L25:
	movq	(%rsp), %rcx
	movsd	808(%rcx), %xmm1
	addsd	(%rcx), %xmm1
	addq	$808, %rcx
	movsd	%xmm1, (%rcx)
	movq	%rcx, (%rsp)
	cmpl	%esi, 12(%rsp)
	jne	.L10
	testb	%dl, %dl
	je	.L9
	movl	%eax, 84(%rsp)
.L9:
	movslq	12(%rsp), %rax
	leaq	.LC3(%rip), %rdi
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	addq	24(%rsp), %rax
	movsd	(%r12,%rax,8), %xmm0
	movl	$1, %eax
	call	printf@PLT
	jmp	.L2
.L43:
	xorl	%edi, %edi
	call	exit@PLT
.L44:
	movslq	%edi, %rax
	movq	%rax, 24(%rsp)
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 101
B:
	.zero	101
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 101
L:
	.zero	101
	.globl	P
	.align 32
	.type	P, @object
	.size	P, 82416
P:
	.zero	82416
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	0
	.long	1075314688
	.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:

double P[102][101];
char L[101],B[101];
main(){
	int N,T,l,b,x,t,n,k;
	for(;scanf("%d%d%d%d",&N,&T,&l,&b),N;){
		memset(P,0,sizeof(P));
		memset(L,0,sizeof(L));
		memset(B,0,sizeof(B));
		for(;l--;)scanf("%d",&x),L[x]=1;
		for(;b--;)scanf("%d",&x),B[x]=1;
		for(P[t=0][0]=1;t<T;P[t+1][N]+=P[t][N],t++)for(n=0;n<N;n++){
			for(k=1;k<=6;k++){
				x=n+k;
				if(x>N)x=2*N-x;
				if(B[x])x=0;
				P[t+1+L[x]][x]+=P[t][n]/6;
			}
		}
		printf("%f\n",P[T][N]);
	}
exit(0);}
6 1 0 0
7 1 0 0
7 2 0 0
6 6 1 1
2
5
7 10 0 6
2
2
3
4
5
6
0 0 0 0
 6 1 0 0
7 1 0 0
7 2 0 0
6 6 1 1
2
5
7 5 0 6
1
2
3
4
5
6
0 0 0 0
 6 2 0 0
7 1 0 0
7 2 0 0
6 6 1 1
2
5
7 10 0 6
2
2
3
4
5
6
0 0 0 0
 6 1 0 0
7 1 0 0
7 2 0 0
6 3 1 1
2
5
7 10 0 6
2
3
3
4
5
6
0 0 0 0
 6 1 0 0
7 1 0 0
7 2 0 0
6 6 1 1
2
5
7 10 0 6
2
2
3
4
4
6
0 0 0 0
 6 1 0 0
7 1 0 0
7 2 0 0
6 6 1 1
2
5
7 5 0 6
1
1
3
4
5
6
0 0 0 0
 6 1 0 0
7 1 0 0
7 2 0 0
6 6 1 1
2
5
7 4 0 6
1
2
3
4
2
6
0 0 0 0
 6 1 0 0
7 1 0 0
7 2 0 0
6 3 1 1
2
5
8 10 0 6
1
3
3
4
5
6
0 0 0 0
 6 1 0 0
7 1 0 0
7 2 0 0
6 6 1 1
2
3
7 5 0 6
1
1
3
4
5
6
0 0 0 0
 6 1 0 0
7 1 0 0
7 2 0 0
6 6 1 1
2
5
7 4 0 6
1
2
3
0
2
6
0 0 0 0

0.166667
0.000000
0.166667
0.619642
0.201206
 0.166667
0.000000
0.166667
0.619642
0.000000
 0.305556
0.000000
0.166667
0.619642
0.201206
 0.166667
0.000000
0.166667
0.384259
0.201206
 0.166667
0.000000
0.166667
0.619642
0.371638
 0.166667
0.000000
0.166667
0.619642
0.096579
 0.166667
0.000000
0.166667
0.619642
0.082562
 0.166667
0.000000
0.166667
0.384259
0.229136
 0.166667
0.000000
0.166667
0.611711
0.096579
 0.166667
0.000000
0.166667
0.619642
0.172840

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

```c
double P[102][101];
char L[101],B[101];
main(){
	int N,T,l,b,x,t,n,k;
	for(;scanf("%d%d%d%d",&N,&T,&l,&b),N;){
		memset(P,0,sizeof(P));
		memset(L,0,sizeof(L));
		memset(B,0,sizeof(B));
		for(;l--;)scanf("%d",&x),L[x]=1;
		for(;b--;)scanf("%d",&x),B[x]=1;
		for(P[t=0][0]=1;t<T;P[t+1][N]+=P[t][N],t++)for(n=0;n<N;n++){
			for(k=1;k<=6;k++){
				x=n+k;
				if(x>N)x=2*N-x;
				if(B[x])x=0;
				P[t+1+L[x]][x]+=P[t][n]/6;
			}
		}
		printf("%f\n",P[T][N]);
	}
exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	P
	.bss
	.align 32
	.type	P, @object
	.size	P, 82416
P:
	.zero	82416
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 101
L:
	.zero	101
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 101
B:
	.zero	101
	.section	.rodata
.LC0:
	.string	"%d"
.LC3:
	.string	"%f\n"
.LC4:
	.string	"%d%d%d%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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L15:
	movl	$82416, %edx
	movl	$0, %esi
	leaq	P(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$101, %edx
	movl	$0, %esi
	leaq	L(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$101, %edx
	movl	$0, %esi
	leaq	B(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L3
.L4:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-24(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L3:
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	testl	%eax, %eax
	jne	.L4
	jmp	.L5
.L6:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-24(%rbp), %eax
	cltq
	leaq	B(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L5:
	movl	-28(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -28(%rbp)
	testl	%eax, %eax
	jne	.L6
	movl	$0, -20(%rbp)
	movl	-20(%rbp), %eax
	cltq
	imulq	$808, %rax, %rax
	leaq	P(%rip), %rdx
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, (%rax,%rdx)
	jmp	.L7
.L14:
	movl	$0, -16(%rbp)
	jmp	.L8
.L13:
	movl	$1, -12(%rbp)
	jmp	.L9
.L12:
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-24(%rbp), %edx
	movl	-40(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L10
	movl	-40(%rbp), %eax
	addl	%eax, %eax
	movl	-24(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -24(%rbp)
.L10:
	movl	-24(%rbp), %eax
	cltq
	leaq	B(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L11
	movl	$0, -24(%rbp)
.L11:
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	(%rcx,%rax), %edx
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	.LC2(%rip), %xmm2
	divsd	%xmm2, %xmm0
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	(%rcx,%rax), %edx
	movl	-24(%rbp), %eax
	addsd	%xmm1, %xmm0
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L9:
	cmpl	$6, -12(%rbp)
	jle	.L12
	addl	$1, -16(%rbp)
.L8:
	movl	-40(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	-40(%rbp), %eax
	addsd	%xmm1, %xmm0
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L7:
	movl	-36(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	movl	-36(%rbp), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L2:
	leaq	-28(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	0
	.long	1075314688
	.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	P
	.bss
	.align 32
	.type	P, @object
	.size	P, 82416
P:
	.zero	82416
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 101
L:
	.zero	101
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 101
B:
	.zero	101
	.section	.rodata
.LC0:
	.string	"%d"
.LC3:
	.string	"%f\n"
.LC4:
	.string	"%d%d%d%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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L2
.L15:
	movl	$82416, %edx
	movl	$0, %esi
	leaq	P(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$101, %edx
	movl	$0, %esi
	leaq	L(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$101, %edx
	movl	$0, %esi
	leaq	B(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L3
.L4:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-24(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L3:
	movl	-32(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -32(%rbp)
	testl	%eax, %eax
	jne	.L4
	jmp	.L5
.L6:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-24(%rbp), %eax
	cltq
	leaq	B(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L5:
	movl	-28(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -28(%rbp)
	testl	%eax, %eax
	jne	.L6
	movl	$0, -20(%rbp)
	movl	-20(%rbp), %eax
	cltq
	imulq	$808, %rax, %rax
	leaq	P(%rip), %rdx
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, (%rax,%rdx)
	jmp	.L7
.L14:
	movl	$0, -16(%rbp)
	jmp	.L8
.L13:
	movl	$1, -12(%rbp)
	jmp	.L9
.L12:
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-24(%rbp), %edx
	movl	-40(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L10
	movl	-40(%rbp), %eax
	addl	%eax, %eax
	movl	-24(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -24(%rbp)
.L10:
	movl	-24(%rbp), %eax
	cltq
	leaq	B(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L11
	movl	$0, -24(%rbp)
.L11:
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	(%rcx,%rax), %edx
	movl	-24(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movsd	.LC2(%rip), %xmm2
	divsd	%xmm2, %xmm0
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	(%rcx,%rax), %edx
	movl	-24(%rbp), %eax
	addsd	%xmm1, %xmm0
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L9:
	cmpl	$6, -12(%rbp)
	jle	.L12
	addl	$1, -16(%rbp)
.L8:
	movl	-40(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	-40(%rbp), %eax
	addsd	%xmm1, %xmm0
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -20(%rbp)
.L7:
	movl	-36(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	movl	-36(%rbp), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	P(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %xmm0
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L2:
	leaq	-28(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	0
	.long	1075314688
	.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:
