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

```c
#include<stdio.h>

int 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;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC2:
	.string	"%.12Lf"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -108(%rbp)
	movl	-116(%rbp), %eax
	movl	%eax, -104(%rbp)
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -96(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	fldz
	fstpt	-80(%rbp)
	jmp	.L5
.L8:
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L6
.L7:
	sall	-108(%rbp)
.L6:
	movl	-108(%rbp), %eax
	imull	-104(%rbp), %eax
	movl	%eax, %edx
	movl	-112(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movl	-116(%rbp), %eax
	imull	-108(%rbp), %eax
	movl	%eax, %ecx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	addl	%esi, %ecx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	subl	$1, -104(%rbp)
.L5:
	cmpl	$0, -104(%rbp)
	jg	.L8
	movl	$0, -100(%rbp)
	jmp	.L9
.L10:
	movq	-88(%rbp), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rdx
	movl	-100(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %edi
	cltd
	idivl	%edi
	movl	%eax, -132(%rbp)
	fildl	-132(%rbp)
	fldt	-80(%rbp)
	faddp	%st, %st(1)
	fstpt	-80(%rbp)
	addl	$1, -100(%rbp)
.L9:
	movl	-116(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L10
	movq	-88(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -132(%rbp)
	fildl	-132(%rbp)
	fldt	-80(%rbp)
	fdivp	%st, %st(1)
	leaq	-16(%rsp), %rsp
	fstpt	(%rsp)
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$16, %rsp
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
user
	.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
	.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:

#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;
}
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 unoptimized 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;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC2:
	.string	"%.12Lf"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -108(%rbp)
	movl	-116(%rbp), %eax
	movl	%eax, -104(%rbp)
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -96(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	fldz
	fstpt	-80(%rbp)
	jmp	.L5
.L8:
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L6
.L7:
	sall	-108(%rbp)
.L6:
	movl	-108(%rbp), %eax
	imull	-104(%rbp), %eax
	movl	%eax, %edx
	movl	-112(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movl	-116(%rbp), %eax
	imull	-108(%rbp), %eax
	movl	%eax, %ecx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	addl	%esi, %ecx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	subl	$1, -104(%rbp)
.L5:
	cmpl	$0, -104(%rbp)
	jg	.L8
	movl	$0, -100(%rbp)
	jmp	.L9
.L10:
	movq	-88(%rbp), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rdx
	movl	-100(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %edi
	cltd
	idivl	%edi
	movl	%eax, -132(%rbp)
	fildl	-132(%rbp)
	fldt	-80(%rbp)
	faddp	%st, %st(1)
	fstpt	-80(%rbp)
	addl	$1, -100(%rbp)
.L9:
	movl	-116(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L10
	movq	-88(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -132(%rbp)
	fildl	-132(%rbp)
	fldt	-80(%rbp)
	fdivp	%st, %st(1)
	leaq	-16(%rsp), %rsp
	fstpt	(%rsp)
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$16, %rsp
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC2:
	.string	"%.12Lf"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -108(%rbp)
	movl	-116(%rbp), %eax
	movl	%eax, -104(%rbp)
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -96(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	fldz
	fstpt	-80(%rbp)
	jmp	.L5
.L8:
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L6
.L7:
	sall	-108(%rbp)
.L6:
	movl	-108(%rbp), %eax
	imull	-104(%rbp), %eax
	movl	%eax, %edx
	movl	-112(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L7
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movl	-116(%rbp), %eax
	imull	-108(%rbp), %eax
	movl	%eax, %ecx
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	addl	%esi, %ecx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	subl	$1, -104(%rbp)
.L5:
	cmpl	$0, -104(%rbp)
	jg	.L8
	movl	$0, -100(%rbp)
	jmp	.L9
.L10:
	movq	-88(%rbp), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rdx
	movl	-100(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %edi
	cltd
	idivl	%edi
	movl	%eax, -132(%rbp)
	fildl	-132(%rbp)
	fldt	-80(%rbp)
	faddp	%st, %st(1)
	fstpt	-80(%rbp)
	addl	$1, -100(%rbp)
.L9:
	movl	-116(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L10
	movq	-88(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -132(%rbp)
	fildl	-132(%rbp)
	fldt	-80(%rbp)
	fdivp	%st, %st(1)
	leaq	-16(%rsp), %rsp
	fstpt	(%rsp)
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$16, %rsp
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
