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];N,T,l,b,t,n,k;main(x){for(;scanf("%d%d%d%d",&N,&T,&l,&b),N;printf("%f\n",P[T][N])){
for(n=0;n<=N;n++)for(L[n]=B[n]=t=0;t<=T;t++)P[t][n]=0;
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;x=B[x]?0:x,P[t+1+L[x]][x]+=P[t][n]/6,k++)if(x=n+k,x>N)x=2*N-x;
}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
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	T
	.align 4
	.type	T, @object
	.size	T, 4
T:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.section	.rodata
.LC1:
	.string	"%d"
.LC4:
	.string	"%f\n"
.LC5:
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	jmp	.L2
.L20:
	movl	$0, n(%rip)
	jmp	.L3
.L6:
	movl	$0, t(%rip)
	movl	n(%rip), %eax
	movslq	%eax, %rdx
	leaq	B(%rip), %rcx
	movb	$0, (%rdx,%rcx)
	movl	n(%rip), %ecx
	cltq
	leaq	B(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movslq	%ecx, %rax
	leaq	L(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	jmp	.L4
.L5:
	movl	t(%rip), %eax
	movl	n(%rip), %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
	pxor	%xmm0, %xmm0
	movsd	%xmm0, (%rdx,%rax)
	movl	t(%rip), %eax
	addl	$1, %eax
	movl	%eax, t(%rip)
.L4:
	movl	t(%rip), %edx
	movl	T(%rip), %eax
	cmpl	%eax, %edx
	jle	.L5
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L3:
	movl	n(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jle	.L6
	jmp	.L7
.L8:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L7:
	movl	l(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, l(%rip)
	testl	%eax, %eax
	jne	.L8
	jmp	.L9
.L10:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	leaq	B(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L9:
	movl	b(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, b(%rip)
	testl	%eax, %eax
	jne	.L10
	movl	$0, t(%rip)
	movl	t(%rip), %eax
	cltq
	imulq	$808, %rax, %rax
	leaq	P(%rip), %rdx
	movsd	.LC2(%rip), %xmm0
	movsd	%xmm0, (%rax,%rdx)
	jmp	.L11
.L19:
	movl	$0, n(%rip)
	jmp	.L12
.L18:
	movl	$1, k(%rip)
	jmp	.L13
.L17:
	movl	n(%rip), %edx
	movl	k(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jle	.L14
	movl	N(%rip), %eax
	addl	%eax, %eax
	movl	-4(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
.L14:
	movl	-4(%rbp), %eax
	cltq
	leaq	B(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L15
	movl	-4(%rbp), %eax
	jmp	.L16
.L15:
	movl	$0, %eax
.L16:
	movl	%eax, -4(%rbp)
	movl	t(%rip), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	(%rcx,%rax), %edx
	movl	-4(%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	t(%rip), %eax
	movl	n(%rip), %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
	movsd	(%rdx,%rax), %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	movl	t(%rip), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	(%rcx,%rax), %edx
	movl	-4(%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)
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L13:
	movl	k(%rip), %eax
	cmpl	$6, %eax
	jle	.L17
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L12:
	movl	n(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	t(%rip), %eax
	leal	1(%rax), %edx
	movl	N(%rip), %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	t(%rip), %eax
	movl	N(%rip), %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
	movsd	(%rdx,%rax), %xmm0
	movl	t(%rip), %eax
	leal	1(%rax), %edx
	movl	N(%rip), %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)
	movl	t(%rip), %eax
	addl	$1, %eax
	movl	%eax, t(%rip)
.L11:
	movl	t(%rip), %edx
	movl	T(%rip), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	T(%rip), %eax
	movl	N(%rip), %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	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L2:
	leaq	b(%rip), %r8
	leaq	l(%rip), %rax
	movq	%rax, %rcx
	leaq	T(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L20
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.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
.LC1:
	.string	"%d"
.LC4:
	.string	"%f\n"
.LC5:
	.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	$88, %rsp
	.cfi_def_cfa_offset 144
	movl	%edi, 76(%rsp)
.L2:
	leaq	b(%rip), %r8
	leaq	l(%rip), %rcx
	xorl	%eax, %eax
	leaq	T(%rip), %rdx
	leaq	N(%rip), %rsi
	leaq	.LC5(%rip), %rdi
	call	scanf@PLT
	movl	N(%rip), %r9d
	testl	%r9d, %r9d
	je	.L55
	movl	$0, n(%rip)
	js	.L3
	movl	T(%rip), %edx
	leaq	P(%rip), %rsi
	movslq	%r9d, %r8
	leaq	B(%rip), %r14
	leaq	808(%rsi), %rax
	leaq	L(%rip), %r15
	movq	%rdx, %rdi
	imulq	$808, %rdx, %rdx
	leal	1(%rdi), %r10d
	addq	%rax, %rdx
	xorl	%eax, %eax
	testl	%edi, %edi
	cmovs	%eax, %r10d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L6:
	movb	$0, (%r14,%rcx)
	movb	$0, (%r15,%rcx)
	testl	%edi, %edi
	js	.L4
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movq	$0x000000000, (%rax)
	addq	$808, %rax
	cmpq	%rdx, %rax
	jne	.L5
.L4:
	leaq	1(%rcx), %rax
	addq	$8, %rsi
	addq	$8, %rdx
	cmpq	%r8, %rcx
	je	.L56
	movq	%rax, %rcx
	jmp	.L6
.L56:
	addl	$1, %r9d
	movl	%r10d, t(%rip)
	movl	%r9d, n(%rip)
.L3:
	movl	l(%rip), %eax
	leaq	L(%rip), %r15
	leaq	76(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leal	-1(%rax), %edx
	movl	%edx, l(%rip)
	testl	%eax, %eax
	je	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	76(%rsp), %rax
	movb	$1, (%r15,%rax)
	movl	l(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, l(%rip)
	testl	%eax, %eax
	jne	.L7
.L10:
	movl	b(%rip), %eax
	leaq	B(%rip), %r14
	leaq	76(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leal	-1(%rax), %edx
	movl	%edx, b(%rip)
	testl	%eax, %eax
	je	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	76(%rsp), %rax
	movb	$1, (%r14,%rax)
	movl	b(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, b(%rip)
	testl	%eax, %eax
	jne	.L8
.L9:
	movq	.LC2(%rip), %rax
	movl	N(%rip), %r11d
	movl	$0, t(%rip)
	movq	%rax, (%r12)
	movl	T(%rip), %eax
	movl	%eax, 72(%rsp)
	testl	%eax, %eax
	jle	.L57
	movslq	%r11d, %rax
	leal	-1(%r11), %edx
	leal	(%r11,%r11), %ebx
	movl	76(%rsp), %ecx
	movq	%rax, 64(%rsp)
	salq	$3, %rax
	leaq	2(%rdx), %rsi
	leaq	B(%rip), %r10
	movq	%rax, 56(%rsp)
	addq	%r12, %rax
	movl	%ebx, 12(%rsp)
	movq	%rax, 40(%rsp)
	movl	72(%rsp), %eax
	movq	%rsi, 16(%rsp)
	leal	-1(%rbx), %esi
	subl	$2, %ebx
	movq	$1, 32(%rsp)
	addl	$1, %eax
	movl	%esi, 24(%rsp)
	movl	%ebx, 28(%rsp)
	movq	%rax, 48(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L28:
	movl	32(%rsp), %edi
	testl	%r11d, %r11d
	jle	.L31
	movq	40(%rsp), %rdx
	movl	$3, %ebp
	subq	56(%rsp), %rdx
	movl	$6, 8(%rsp)
	movl	$4, %esi
	movsd	.LC3(%rip), %xmm0
	movl	$5, %ebx
	movl	$1, %r9d
	leaq	L(%rip), %r8
	.p2align 4,,10
	.p2align 3
.L27:
	movsd	(%rdx), %xmm1
	movl	12(%rsp), %eax
	divsd	%xmm0, %xmm1
	subl	%r9d, %eax
	cmpl	%r9d, %r11d
	cmovge	%r9d, %eax
	cltq
	cmpb	$0, (%r10,%rax)
	cmovne	%r13, %rax
	movsbl	(%r8,%rax), %ecx
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%rcx,%r15,4), %rcx
	addq	%rax, %rcx
	leal	1(%r9), %eax
	addsd	(%r12,%rcx,8), %xmm1
	movsd	%xmm1, (%r12,%rcx,8)
	movsd	(%rdx), %xmm1
	movl	24(%rsp), %ecx
	divsd	%xmm0, %xmm1
	subl	%r9d, %ecx
	cmpl	%eax, %r11d
	cmovl	%ecx, %eax
	cltq
	cmpb	$0, (%r10,%rax)
	cmovne	%r13, %rax
	movsbl	(%r8,%rax), %ecx
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%rcx,%r15,4), %rcx
	movl	28(%rsp), %r15d
	addq	%rax, %rcx
	addsd	(%r12,%rcx,8), %xmm1
	movsd	%xmm1, (%r12,%rcx,8)
	movsd	(%rdx), %xmm1
	movl	%r15d, %ecx
	subl	%r9d, %ecx
	cmpl	%r11d, %ebp
	divsd	%xmm0, %xmm1
	movl	%ecx, %eax
	cmovle	%ebp, %eax
	cltq
	cmpb	$0, (%r10,%rax)
	cmovne	%r13, %rax
	movsbl	(%r8,%rax), %ecx
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,4), %r14
	leaq	(%r14,%r14,4), %r14
	leaq	(%rcx,%r14,4), %rcx
	addq	%rax, %rcx
	movl	12(%rsp), %eax
	subl	%esi, %eax
	cmpl	%r11d, %esi
	cmovle	%esi, %eax
	cltq
	cmpb	$0, (%r10,%rax)
	cmovne	%r13, %rax
	addsd	(%r12,%rcx,8), %xmm1
	movsd	%xmm1, (%r12,%rcx,8)
	movsd	(%rdx), %xmm1
	movsbl	(%r8,%rax), %ecx
	divsd	%xmm0, %xmm1
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,4), %r14
	leaq	(%r14,%r14,4), %r14
	leaq	(%rcx,%r14,4), %rcx
	addq	%rax, %rcx
	movl	24(%rsp), %eax
	subl	%esi, %eax
	cmpl	%r11d, %ebx
	cmovle	%ebx, %eax
	cltq
	cmpb	$0, (%r10,%rax)
	cmovne	%r13, %rax
	addsd	(%r12,%rcx,8), %xmm1
	movsd	%xmm1, (%r12,%rcx,8)
	movsd	(%rdx), %xmm1
	movsbl	(%r8,%rax), %ecx
	divsd	%xmm0, %xmm1
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,4), %r14
	leaq	(%r14,%r14,4), %r14
	leaq	(%rcx,%r14,4), %rcx
	addq	%rax, %rcx
	movl	8(%rsp), %eax
	addsd	(%r12,%rcx,8), %xmm1
	movsd	%xmm1, (%r12,%rcx,8)
	movl	%r15d, %ecx
	subl	%esi, %ecx
	cmpl	%r11d, %eax
	cmovle	%eax, %ecx
	movslq	%ecx, %r14
	cmpb	$0, (%r10,%r14)
	je	.L26
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
.L26:
	movsd	(%rdx), %xmm1
	movsbl	(%r8,%r14), %eax
	addq	$1, %r9
	addl	$1, %ebx
	addl	$1, 8(%rsp)
	addq	$8, %rdx
	addl	$1, %esi
	addl	$1, %ebp
	divsd	%xmm0, %xmm1
	addl	%edi, %eax
	cltq
	leaq	(%rax,%rax,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%rax,%r15,4), %rax
	addq	%r14, %rax
	addsd	(%r12,%rax,8), %xmm1
	movsd	%xmm1, (%r12,%rax,8)
	cmpq	%r9, 16(%rsp)
	jne	.L27
	movl	%r11d, %edx
	movl	$1, %eax
.L14:
	movq	40(%rsp), %rbx
	addq	$1, 32(%rsp)
	movq	32(%rsp), %rdi
	movsd	808(%rbx), %xmm0
	addsd	(%rbx), %xmm0
	addq	$808, %rbx
	movsd	%xmm0, (%rbx)
	movq	%rbx, 40(%rsp)
	cmpq	48(%rsp), %rdi
	jne	.L28
	movl	72(%rsp), %ebx
	movl	%edx, n(%rip)
	movl	%ebx, t(%rip)
	testb	%al, %al
	je	.L13
	movl	$7, k(%rip)
	movl	%ecx, 76(%rsp)
.L13:
	movslq	72(%rsp), %rax
	leaq	.LC4(%rip), %rdi
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	addq	64(%rsp), %rax
	movsd	(%r12,%rax,8), %xmm0
	movl	$1, %eax
	call	printf@PLT
	jmp	.L2
.L31:
	xorl	%edx, %edx
	jmp	.L14
.L57:
	movslq	%r11d, %rax
	movq	%rax, 64(%rsp)
	jmp	.L13
.L55:
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	k
	.bss
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	T
	.align 4
	.type	T, @object
	.size	T, 4
T:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	B
	.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
.LC2:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.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
.LC1:
	.string	"%d"
.LC4:
	.string	"%f\n"
.LC5:
	.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	$88, %rsp
	.cfi_def_cfa_offset 144
	movl	%edi, 76(%rsp)
.L2:
	leaq	b(%rip), %r8
	leaq	l(%rip), %rcx
	xorl	%eax, %eax
	leaq	T(%rip), %rdx
	leaq	N(%rip), %rsi
	leaq	.LC5(%rip), %rdi
	call	scanf@PLT
	movl	N(%rip), %r9d
	testl	%r9d, %r9d
	je	.L55
	movl	$0, n(%rip)
	js	.L3
	movl	T(%rip), %edx
	leaq	P(%rip), %rsi
	movslq	%r9d, %r8
	leaq	B(%rip), %r14
	leaq	808(%rsi), %rax
	leaq	L(%rip), %r15
	movq	%rdx, %rdi
	imulq	$808, %rdx, %rdx
	leal	1(%rdi), %r10d
	addq	%rax, %rdx
	xorl	%eax, %eax
	testl	%edi, %edi
	cmovs	%eax, %r10d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L6:
	movb	$0, (%r14,%rcx)
	movb	$0, (%r15,%rcx)
	testl	%edi, %edi
	js	.L4
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movq	$0x000000000, (%rax)
	addq	$808, %rax
	cmpq	%rdx, %rax
	jne	.L5
.L4:
	leaq	1(%rcx), %rax
	addq	$8, %rsi
	addq	$8, %rdx
	cmpq	%r8, %rcx
	je	.L56
	movq	%rax, %rcx
	jmp	.L6
.L56:
	addl	$1, %r9d
	movl	%r10d, t(%rip)
	movl	%r9d, n(%rip)
.L3:
	movl	l(%rip), %eax
	leaq	L(%rip), %r15
	leaq	76(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leal	-1(%rax), %edx
	movl	%edx, l(%rip)
	testl	%eax, %eax
	je	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	76(%rsp), %rax
	movb	$1, (%r15,%rax)
	movl	l(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, l(%rip)
	testl	%eax, %eax
	jne	.L7
.L10:
	movl	b(%rip), %eax
	leaq	B(%rip), %r14
	leaq	76(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	leal	-1(%rax), %edx
	movl	%edx, b(%rip)
	testl	%eax, %eax
	je	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	76(%rsp), %rax
	movb	$1, (%r14,%rax)
	movl	b(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, b(%rip)
	testl	%eax, %eax
	jne	.L8
.L9:
	movq	.LC2(%rip), %rax
	movl	N(%rip), %r11d
	movl	$0, t(%rip)
	movq	%rax, (%r12)
	movl	T(%rip), %eax
	movl	%eax, 72(%rsp)
	testl	%eax, %eax
	jle	.L57
	movslq	%r11d, %rax
	leal	-1(%r11), %edx
	leal	(%r11,%r11), %ebx
	movl	76(%rsp), %ecx
	movq	%rax, 64(%rsp)
	salq	$3, %rax
	leaq	2(%rdx), %rsi
	leaq	B(%rip), %r10
	movq	%rax, 56(%rsp)
	addq	%r12, %rax
	movl	%ebx, 12(%rsp)
	movq	%rax, 40(%rsp)
	movl	72(%rsp), %eax
	movq	%rsi, 16(%rsp)
	leal	-1(%rbx), %esi
	subl	$2, %ebx
	movq	$1, 32(%rsp)
	addl	$1, %eax
	movl	%esi, 24(%rsp)
	movl	%ebx, 28(%rsp)
	movq	%rax, 48(%rsp)
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L28:
	movl	32(%rsp), %edi
	testl	%r11d, %r11d
	jle	.L31
	movq	40(%rsp), %rdx
	movl	$3, %ebp
	subq	56(%rsp), %rdx
	movl	$6, 8(%rsp)
	movl	$4, %esi
	movsd	.LC3(%rip), %xmm0
	movl	$5, %ebx
	movl	$1, %r9d
	leaq	L(%rip), %r8
	.p2align 4,,10
	.p2align 3
.L27:
	movsd	(%rdx), %xmm1
	movl	12(%rsp), %eax
	divsd	%xmm0, %xmm1
	subl	%r9d, %eax
	cmpl	%r9d, %r11d
	cmovge	%r9d, %eax
	cltq
	cmpb	$0, (%r10,%rax)
	cmovne	%r13, %rax
	movsbl	(%r8,%rax), %ecx
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%rcx,%r15,4), %rcx
	addq	%rax, %rcx
	leal	1(%r9), %eax
	addsd	(%r12,%rcx,8), %xmm1
	movsd	%xmm1, (%r12,%rcx,8)
	movsd	(%rdx), %xmm1
	movl	24(%rsp), %ecx
	divsd	%xmm0, %xmm1
	subl	%r9d, %ecx
	cmpl	%eax, %r11d
	cmovl	%ecx, %eax
	cltq
	cmpb	$0, (%r10,%rax)
	cmovne	%r13, %rax
	movsbl	(%r8,%rax), %ecx
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%rcx,%r15,4), %rcx
	movl	28(%rsp), %r15d
	addq	%rax, %rcx
	addsd	(%r12,%rcx,8), %xmm1
	movsd	%xmm1, (%r12,%rcx,8)
	movsd	(%rdx), %xmm1
	movl	%r15d, %ecx
	subl	%r9d, %ecx
	cmpl	%r11d, %ebp
	divsd	%xmm0, %xmm1
	movl	%ecx, %eax
	cmovle	%ebp, %eax
	cltq
	cmpb	$0, (%r10,%rax)
	cmovne	%r13, %rax
	movsbl	(%r8,%rax), %ecx
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,4), %r14
	leaq	(%r14,%r14,4), %r14
	leaq	(%rcx,%r14,4), %rcx
	addq	%rax, %rcx
	movl	12(%rsp), %eax
	subl	%esi, %eax
	cmpl	%r11d, %esi
	cmovle	%esi, %eax
	cltq
	cmpb	$0, (%r10,%rax)
	cmovne	%r13, %rax
	addsd	(%r12,%rcx,8), %xmm1
	movsd	%xmm1, (%r12,%rcx,8)
	movsd	(%rdx), %xmm1
	movsbl	(%r8,%rax), %ecx
	divsd	%xmm0, %xmm1
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,4), %r14
	leaq	(%r14,%r14,4), %r14
	leaq	(%rcx,%r14,4), %rcx
	addq	%rax, %rcx
	movl	24(%rsp), %eax
	subl	%esi, %eax
	cmpl	%r11d, %ebx
	cmovle	%ebx, %eax
	cltq
	cmpb	$0, (%r10,%rax)
	cmovne	%r13, %rax
	addsd	(%r12,%rcx,8), %xmm1
	movsd	%xmm1, (%r12,%rcx,8)
	movsd	(%rdx), %xmm1
	movsbl	(%r8,%rax), %ecx
	divsd	%xmm0, %xmm1
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,4), %r14
	leaq	(%r14,%r14,4), %r14
	leaq	(%rcx,%r14,4), %rcx
	addq	%rax, %rcx
	movl	8(%rsp), %eax
	addsd	(%r12,%rcx,8), %xmm1
	movsd	%xmm1, (%r12,%rcx,8)
	movl	%r15d, %ecx
	subl	%esi, %ecx
	cmpl	%r11d, %eax
	cmovle	%eax, %ecx
	movslq	%ecx, %r14
	cmpb	$0, (%r10,%r14)
	je	.L26
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
.L26:
	movsd	(%rdx), %xmm1
	movsbl	(%r8,%r14), %eax
	addq	$1, %r9
	addl	$1, %ebx
	addl	$1, 8(%rsp)
	addq	$8, %rdx
	addl	$1, %esi
	addl	$1, %ebp
	divsd	%xmm0, %xmm1
	addl	%edi, %eax
	cltq
	leaq	(%rax,%rax,4), %r15
	leaq	(%r15,%r15,4), %r15
	leaq	(%rax,%r15,4), %rax
	addq	%r14, %rax
	addsd	(%r12,%rax,8), %xmm1
	movsd	%xmm1, (%r12,%rax,8)
	cmpq	%r9, 16(%rsp)
	jne	.L27
	movl	%r11d, %edx
	movl	$1, %eax
.L14:
	movq	40(%rsp), %rbx
	addq	$1, 32(%rsp)
	movq	32(%rsp), %rdi
	movsd	808(%rbx), %xmm0
	addsd	(%rbx), %xmm0
	addq	$808, %rbx
	movsd	%xmm0, (%rbx)
	movq	%rbx, 40(%rsp)
	cmpq	48(%rsp), %rdi
	jne	.L28
	movl	72(%rsp), %ebx
	movl	%edx, n(%rip)
	movl	%ebx, t(%rip)
	testb	%al, %al
	je	.L13
	movl	$7, k(%rip)
	movl	%ecx, 76(%rsp)
.L13:
	movslq	72(%rsp), %rax
	leaq	.LC4(%rip), %rdi
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	addq	64(%rsp), %rax
	movsd	(%r12,%rax,8), %xmm0
	movl	$1, %eax
	call	printf@PLT
	jmp	.L2
.L31:
	xorl	%edx, %edx
	jmp	.L14
.L57:
	movslq	%r11d, %rax
	movq	%rax, 64(%rsp)
	jmp	.L13
.L55:
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	k
	.bss
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	T
	.align 4
	.type	T, @object
	.size	T, 4
T:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	B
	.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
.LC2:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.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];N,T,l,b,t,n,k;main(x){for(;scanf("%d%d%d%d",&N,&T,&l,&b),N;printf("%f\n",P[T][N])){
for(n=0;n<=N;n++)for(L[n]=B[n]=t=0;t<=T;t++)P[t][n]=0;
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;x=B[x]?0:x,P[t+1+L[x]][x]+=P[t][n]/6,k++)if(x=n+k,x>N)x=2*N-x;
}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];N,T,l,b,t,n,k;main(x){for(;scanf("%d%d%d%d",&N,&T,&l,&b),N;printf("%f\n",P[T][N])){
for(n=0;n<=N;n++)for(L[n]=B[n]=t=0;t<=T;t++)P[t][n]=0;
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;x=B[x]?0:x,P[t+1+L[x]][x]+=P[t][n]/6,k++)if(x=n+k,x>N)x=2*N-x;
}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
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	T
	.align 4
	.type	T, @object
	.size	T, 4
T:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.section	.rodata
.LC1:
	.string	"%d"
.LC4:
	.string	"%f\n"
.LC5:
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	jmp	.L2
.L20:
	movl	$0, n(%rip)
	jmp	.L3
.L6:
	movl	$0, t(%rip)
	movl	n(%rip), %eax
	movslq	%eax, %rdx
	leaq	B(%rip), %rcx
	movb	$0, (%rdx,%rcx)
	movl	n(%rip), %ecx
	cltq
	leaq	B(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movslq	%ecx, %rax
	leaq	L(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	jmp	.L4
.L5:
	movl	t(%rip), %eax
	movl	n(%rip), %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
	pxor	%xmm0, %xmm0
	movsd	%xmm0, (%rdx,%rax)
	movl	t(%rip), %eax
	addl	$1, %eax
	movl	%eax, t(%rip)
.L4:
	movl	t(%rip), %edx
	movl	T(%rip), %eax
	cmpl	%eax, %edx
	jle	.L5
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L3:
	movl	n(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jle	.L6
	jmp	.L7
.L8:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L7:
	movl	l(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, l(%rip)
	testl	%eax, %eax
	jne	.L8
	jmp	.L9
.L10:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	leaq	B(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L9:
	movl	b(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, b(%rip)
	testl	%eax, %eax
	jne	.L10
	movl	$0, t(%rip)
	movl	t(%rip), %eax
	cltq
	imulq	$808, %rax, %rax
	leaq	P(%rip), %rdx
	movsd	.LC2(%rip), %xmm0
	movsd	%xmm0, (%rax,%rdx)
	jmp	.L11
.L19:
	movl	$0, n(%rip)
	jmp	.L12
.L18:
	movl	$1, k(%rip)
	jmp	.L13
.L17:
	movl	n(%rip), %edx
	movl	k(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jle	.L14
	movl	N(%rip), %eax
	addl	%eax, %eax
	movl	-4(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
.L14:
	movl	-4(%rbp), %eax
	cltq
	leaq	B(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L15
	movl	-4(%rbp), %eax
	jmp	.L16
.L15:
	movl	$0, %eax
.L16:
	movl	%eax, -4(%rbp)
	movl	t(%rip), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	(%rcx,%rax), %edx
	movl	-4(%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	t(%rip), %eax
	movl	n(%rip), %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
	movsd	(%rdx,%rax), %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	movl	t(%rip), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	(%rcx,%rax), %edx
	movl	-4(%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)
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L13:
	movl	k(%rip), %eax
	cmpl	$6, %eax
	jle	.L17
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L12:
	movl	n(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	t(%rip), %eax
	leal	1(%rax), %edx
	movl	N(%rip), %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	t(%rip), %eax
	movl	N(%rip), %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
	movsd	(%rdx,%rax), %xmm0
	movl	t(%rip), %eax
	leal	1(%rax), %edx
	movl	N(%rip), %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)
	movl	t(%rip), %eax
	addl	$1, %eax
	movl	%eax, t(%rip)
.L11:
	movl	t(%rip), %edx
	movl	T(%rip), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	T(%rip), %eax
	movl	N(%rip), %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	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L2:
	leaq	b(%rip), %r8
	leaq	l(%rip), %rax
	movq	%rax, %rcx
	leaq	T(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L20
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.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
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	T
	.align 4
	.type	T, @object
	.size	T, 4
T:
	.zero	4
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.section	.rodata
.LC1:
	.string	"%d"
.LC4:
	.string	"%f\n"
.LC5:
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	jmp	.L2
.L20:
	movl	$0, n(%rip)
	jmp	.L3
.L6:
	movl	$0, t(%rip)
	movl	n(%rip), %eax
	movslq	%eax, %rdx
	leaq	B(%rip), %rcx
	movb	$0, (%rdx,%rcx)
	movl	n(%rip), %ecx
	cltq
	leaq	B(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movslq	%ecx, %rax
	leaq	L(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	jmp	.L4
.L5:
	movl	t(%rip), %eax
	movl	n(%rip), %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
	pxor	%xmm0, %xmm0
	movsd	%xmm0, (%rdx,%rax)
	movl	t(%rip), %eax
	addl	$1, %eax
	movl	%eax, t(%rip)
.L4:
	movl	t(%rip), %edx
	movl	T(%rip), %eax
	cmpl	%eax, %edx
	jle	.L5
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L3:
	movl	n(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jle	.L6
	jmp	.L7
.L8:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L7:
	movl	l(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, l(%rip)
	testl	%eax, %eax
	jne	.L8
	jmp	.L9
.L10:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	leaq	B(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L9:
	movl	b(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, b(%rip)
	testl	%eax, %eax
	jne	.L10
	movl	$0, t(%rip)
	movl	t(%rip), %eax
	cltq
	imulq	$808, %rax, %rax
	leaq	P(%rip), %rdx
	movsd	.LC2(%rip), %xmm0
	movsd	%xmm0, (%rax,%rdx)
	jmp	.L11
.L19:
	movl	$0, n(%rip)
	jmp	.L12
.L18:
	movl	$1, k(%rip)
	jmp	.L13
.L17:
	movl	n(%rip), %edx
	movl	k(%rip), %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jle	.L14
	movl	N(%rip), %eax
	addl	%eax, %eax
	movl	-4(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
.L14:
	movl	-4(%rbp), %eax
	cltq
	leaq	B(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L15
	movl	-4(%rbp), %eax
	jmp	.L16
.L15:
	movl	$0, %eax
.L16:
	movl	%eax, -4(%rbp)
	movl	t(%rip), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	(%rcx,%rax), %edx
	movl	-4(%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	t(%rip), %eax
	movl	n(%rip), %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
	movsd	(%rdx,%rax), %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	movl	t(%rip), %eax
	leal	1(%rax), %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	leal	(%rcx,%rax), %edx
	movl	-4(%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)
	movl	k(%rip), %eax
	addl	$1, %eax
	movl	%eax, k(%rip)
.L13:
	movl	k(%rip), %eax
	cmpl	$6, %eax
	jle	.L17
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L12:
	movl	n(%rip), %edx
	movl	N(%rip), %eax
	cmpl	%eax, %edx
	jl	.L18
	movl	t(%rip), %eax
	leal	1(%rax), %edx
	movl	N(%rip), %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	t(%rip), %eax
	movl	N(%rip), %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
	movsd	(%rdx,%rax), %xmm0
	movl	t(%rip), %eax
	leal	1(%rax), %edx
	movl	N(%rip), %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)
	movl	t(%rip), %eax
	addl	$1, %eax
	movl	%eax, t(%rip)
.L11:
	movl	t(%rip), %edx
	movl	T(%rip), %eax
	cmpl	%eax, %edx
	jl	.L19
	movl	T(%rip), %eax
	movl	N(%rip), %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	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L2:
	leaq	b(%rip), %r8
	leaq	l(%rip), %rax
	movq	%rax, %rcx
	leaq	T(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jne	.L20
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.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:
