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

```c
#include<stdio.h>

int main(){
  int N,K;
  scanf("%d%d",&N,&K);
  int multi=1,i=N;
  int denomi[N];
  long double nume=0;
  while (i>0){
    denomi[i-1]=0;
    while (K>multi*i){
      multi*=2;
    }
    denomi[i-1]+=multi*N;
    i--;
  }

  for (int j = 0; j < N; j++)
  {
    nume+=denomi[0]/denomi[j];
  }
  

  printf("%.12Lf",nume/denomi[0]);
  

  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%.12Lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-16(%rbp), %r8
	movq	%rsp, %rcx
	leaq	15(,%r8,4), %rax
	movq	%r8, %r9
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L20
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L4:
	leaq	3(%rsp), %rcx
	movq	%rcx, %r10
	movq	%rcx, %rdi
	shrq	$2, %r10
	andq	$-4, %rdi
	testl	%r9d, %r9d
	jle	.L5
	movl	-12(%rbp), %ecx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%eax, %edx
	movl	%r8d, %esi
	imull	%r8d, %edx
	cmpl	%ecx, %edx
	jge	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	addl	%eax, %eax
	movl	%eax, %edx
	imull	%esi, %edx
	cmpl	%ecx, %edx
	jl	.L7
.L6:
	movl	%r9d, %edx
	imull	%eax, %edx
	movl	%edx, -4(%rdi,%r8,4)
	subq	$1, %r8
	testl	%r8d, %r8d
	jg	.L8
	movl	%r9d, %r9d
	movl	0(,%r10,4), %esi
	fldz
	movq	%rdi, %rcx
	leaq	(%rdi,%r9,4), %rdi
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	addq	$4, %rcx
	movl	%eax, -20(%rbp)
	fildl	-20(%rbp)
	faddp	%st, %st(1)
	cmpq	%rcx, %rdi
	jne	.L9
.L10:
	movl	%esi, -20(%rbp)
	fildl	-20(%rbp)
	subq	$16, %rsp
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	fdivrp	%st, %st(1)
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	xorl	%eax, %eax
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	movl	0(,%r10,4), %esi
	fldz
	jmp	.L10
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%.12Lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-16(%rbp), %r8
	movq	%rsp, %rcx
	leaq	15(,%r8,4), %rax
	movq	%r8, %r9
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L20
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L4:
	leaq	3(%rsp), %rcx
	movq	%rcx, %r10
	movq	%rcx, %rdi
	shrq	$2, %r10
	andq	$-4, %rdi
	testl	%r9d, %r9d
	jle	.L5
	movl	-12(%rbp), %ecx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%eax, %edx
	movl	%r8d, %esi
	imull	%r8d, %edx
	cmpl	%ecx, %edx
	jge	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	addl	%eax, %eax
	movl	%eax, %edx
	imull	%esi, %edx
	cmpl	%ecx, %edx
	jl	.L7
.L6:
	movl	%r9d, %edx
	imull	%eax, %edx
	movl	%edx, -4(%rdi,%r8,4)
	subq	$1, %r8
	testl	%r8d, %r8d
	jg	.L8
	movl	%r9d, %r9d
	movl	0(,%r10,4), %esi
	fldz
	movq	%rdi, %rcx
	leaq	(%rdi,%r9,4), %rdi
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	addq	$4, %rcx
	movl	%eax, -20(%rbp)
	fildl	-20(%rbp)
	faddp	%st, %st(1)
	cmpq	%rcx, %rdi
	jne	.L9
.L10:
	movl	%esi, -20(%rbp)
	fildl	-20(%rbp)
	subq	$16, %rsp
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	fdivrp	%st, %st(1)
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	xorl	%eax, %eax
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	movl	0(,%r10,4), %esi
	fldz
	jmp	.L10
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%.12Lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-16(%rbp), %r8
	movq	%rsp, %rcx
	leaq	15(,%r8,4), %rax
	movq	%r8, %r9
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L20
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L4:
	leaq	3(%rsp), %rcx
	movq	%rcx, %r10
	movq	%rcx, %rdi
	shrq	$2, %r10
	andq	$-4, %rdi
	testl	%r9d, %r9d
	jle	.L5
	movl	-12(%rbp), %ecx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%eax, %edx
	movl	%r8d, %esi
	imull	%r8d, %edx
	cmpl	%ecx, %edx
	jge	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	addl	%eax, %eax
	movl	%eax, %edx
	imull	%esi, %edx
	cmpl	%ecx, %edx
	jl	.L7
.L6:
	movl	%r9d, %edx
	imull	%eax, %edx
	movl	%edx, -4(%rdi,%r8,4)
	subq	$1, %r8
	testl	%r8d, %r8d
	jg	.L8
	movl	%r9d, %r9d
	movl	0(,%r10,4), %esi
	fldz
	movq	%rdi, %rcx
	leaq	(%rdi,%r9,4), %rdi
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	addq	$4, %rcx
	movl	%eax, -20(%rbp)
	fildl	-20(%rbp)
	faddp	%st, %st(1)
	cmpq	%rcx, %rdi
	jne	.L9
.L10:
	movl	%esi, -20(%rbp)
	fildl	-20(%rbp)
	subq	$16, %rsp
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	fdivrp	%st, %st(1)
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	xorl	%eax, %eax
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	movl	0(,%r10,4), %esi
	fldz
	jmp	.L10
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
```c
#include<stdio.h>

int main(){
  int N,K;
  scanf("%d%d",&N,&K);
  int multi=1,i=N;
  int denomi[N];
  long double nume=0;
  while (i>0){
    denomi[i-1]=0;
    while (K>multi*i){
      multi*=2;
    }
    denomi[i-1]+=multi*N;
    i--;
  }

  for (int j = 0; j < N; j++)
  {
    nume+=denomi[0]/denomi[j];
  }
  

  printf("%.12Lf",nume/denomi[0]);
  

  return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int main(){
  int N,K;
  scanf("%d%d",&N,&K);
  int multi=1,i=N;
  int denomi[N];
  long double nume=0;
  while (i>0){
    denomi[i-1]=0;
    while (K>multi*i){
      multi*=2;
    }
    denomi[i-1]+=multi*N;
    i--;
  }

  for (int j = 0; j < N; j++)
  {
    nume+=denomi[0]/denomi[j];
  }
  

  printf("%.12Lf",nume/denomi[0]);
  

  return 0;
}```

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.
Optimized Assembly Code:

3 4
 100000 8
 3 7
 100000 7
 6 7
 100100 7
 4 7
 100100 6
 110100 7
 111100 7

0.416666666667 0.999956250000 0.208333333333 0.999961250000 0.354166666667 0.999961288711 0.281250000000 0.999968781219 0.999964804723 0.999965121512
Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int main(){
  int N,K;
  scanf("%d%d",&N,&K);
  int multi=1,i=N;
  int denomi[N];
  long double nume=0;
  while (i>0){
    denomi[i-1]=0;
    while (K>multi*i){
      multi*=2;
    }
    denomi[i-1]+=multi*N;
    i--;
  }

  for (int j = 0; j < N; j++)
  {
    nume+=denomi[0]/denomi[j];
  }
  

  printf("%.12Lf",nume/denomi[0]);
  

  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%.12Lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-16(%rbp), %r8
	movq	%rsp, %rcx
	leaq	15(,%r8,4), %rax
	movq	%r8, %r9
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L20
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L4:
	leaq	3(%rsp), %rcx
	movq	%rcx, %r10
	movq	%rcx, %rdi
	shrq	$2, %r10
	andq	$-4, %rdi
	testl	%r9d, %r9d
	jle	.L5
	movl	-12(%rbp), %ecx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%eax, %edx
	movl	%r8d, %esi
	imull	%r8d, %edx
	cmpl	%ecx, %edx
	jge	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	addl	%eax, %eax
	movl	%eax, %edx
	imull	%esi, %edx
	cmpl	%ecx, %edx
	jl	.L7
.L6:
	movl	%r9d, %edx
	imull	%eax, %edx
	movl	%edx, -4(%rdi,%r8,4)
	subq	$1, %r8
	testl	%r8d, %r8d
	jg	.L8
	movl	%r9d, %r9d
	movl	0(,%r10,4), %esi
	fldz
	movq	%rdi, %rcx
	leaq	(%rdi,%r9,4), %rdi
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	addq	$4, %rcx
	movl	%eax, -20(%rbp)
	fildl	-20(%rbp)
	faddp	%st, %st(1)
	cmpq	%rcx, %rdi
	jne	.L9
.L10:
	movl	%esi, -20(%rbp)
	fildl	-20(%rbp)
	subq	$16, %rsp
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	fdivrp	%st, %st(1)
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	xorl	%eax, %eax
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	movl	0(,%r10,4), %esi
	fldz
	jmp	.L10
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%.12Lf"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-16(%rbp), %r8
	movq	%rsp, %rcx
	leaq	15(,%r8,4), %rax
	movq	%r8, %r9
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L20
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L4:
	leaq	3(%rsp), %rcx
	movq	%rcx, %r10
	movq	%rcx, %rdi
	shrq	$2, %r10
	andq	$-4, %rdi
	testl	%r9d, %r9d
	jle	.L5
	movl	-12(%rbp), %ecx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%eax, %edx
	movl	%r8d, %esi
	imull	%r8d, %edx
	cmpl	%ecx, %edx
	jge	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	addl	%eax, %eax
	movl	%eax, %edx
	imull	%esi, %edx
	cmpl	%ecx, %edx
	jl	.L7
.L6:
	movl	%r9d, %edx
	imull	%eax, %edx
	movl	%edx, -4(%rdi,%r8,4)
	subq	$1, %r8
	testl	%r8d, %r8d
	jg	.L8
	movl	%r9d, %r9d
	movl	0(,%r10,4), %esi
	fldz
	movq	%rdi, %rcx
	leaq	(%rdi,%r9,4), %rdi
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	addq	$4, %rcx
	movl	%eax, -20(%rbp)
	fildl	-20(%rbp)
	faddp	%st, %st(1)
	cmpq	%rcx, %rdi
	jne	.L9
.L10:
	movl	%esi, -20(%rbp)
	fildl	-20(%rbp)
	subq	$16, %rsp
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	fdivrp	%st, %st(1)
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	xorl	%eax, %eax
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	movl	0(,%r10,4), %esi
	fldz
	jmp	.L10
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```