// File: /workspace/github_cpp_makefile_star2_O3/Sleepwalking[P]world-octave/d4c.cpp
// Function: D4C(double*, int, int, double*, double*, int, int, double**)
void D4C(double *x, int x_length, int fs, double *time_axis, double *f0,
    int f0_length, int fft_size, double **aperiodicity) {
  int fft_size_d4c = static_cast<int>(pow(2.0, 1.0 +
      static_cast<int>(log(4.0 * fs / world::kFloorF0 + 1) / world::kLog2)));

  ForwardRealFFT forward_real_fft = {0};
  InitializeForwardRealFFT(fft_size_d4c, &forward_real_fft);

  int number_of_aperiodicities =
    static_cast<int>(MyMin(world::kUpperLimit, fs / 2.0 -
      world::kFrequencyInterval) / world::kFrequencyInterval);
  // Since the window function is common in D4CGeneralBody(),
  // it is designed here to speed up.
  int window_length =
    static_cast<int>(world::kFrequencyInterval * fft_size_d4c / fs) * 2 + 1;
  double *window =  new double[window_length];
  NuttallWindow(window_length, window);

  double *coarse_aperiodicity = new double[number_of_aperiodicities + 2];
  coarse_aperiodicity[0] = -60.0;
  coarse_aperiodicity[number_of_aperiodicities + 1] = 0.0;
  double *coarse_frequency_axis = new double[number_of_aperiodicities + 2];
  for (int i = 0; i <= number_of_aperiodicities; ++i)
    coarse_frequency_axis[i] =
      static_cast<double>(i) * world::kFrequencyInterval;
  coarse_frequency_axis[number_of_aperiodicities + 1] = fs / 2.0;

  double *frequency_axis = new double[fft_size / 2 + 1];
  for (int i = 0; i <= fft_size / 2; ++i)
    frequency_axis[i] = static_cast<double>(i) * fs / fft_size;
  for (int i = 0; i < f0_length; ++i) {
    if (f0[i] == 0) {
      for (int j = 0; j <= fft_size / 2; ++j) aperiodicity[i][j] = 0.0;
      continue;
    }
//    D4CGeneralBody(x, x_length, fs, f0[i], fft_size_d4c, time_axis[i],
    D4CGeneralBody(x, x_length, fs, MyMax(f0[i], world::kFloorF0),
        fft_size_d4c, time_axis[i], number_of_aperiodicities, window,
        window_length, &forward_real_fft, &coarse_aperiodicity[1]);
    // Linear interpolation to convert the coarse aperiodicity into its
    // spectral representation.
    interp1(coarse_frequency_axis, coarse_aperiodicity,
        number_of_aperiodicities + 2, frequency_axis, fft_size / 2 + 1,
        aperiodicity[i]);
    for (int j = 0; j <= fft_size / 2; ++j)
      aperiodicity[i][j] = pow(10.0, aperiodicity[i][j] / 20.0);
  }

  DestroyForwardRealFFT(&forward_real_fft);
  delete[] coarse_frequency_axis;
  delete[] coarse_aperiodicity;
  delete[] window;
  delete[] frequency_axis;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movl %r9d, 0x58(%rsp)
movq %r8, 0xe0(%rsp)
movq %rcx, 0x130(%rsp)
movl %esi, 0x60(%rsp)
movq %rdi, 0x90(%rsp)
movl %edx, 0x48(%rsp)
cvtsi2sd %edx, %xmm1
movapd %xmm1, 0x100(%rsp)
movsd 0x8831(%rip), %xmm0     # 0xf490
mulsd %xmm1, %xmm0
divsd 0x87a5(%rip), %xmm0     # 0xf410
addsd 0x839d(%rip), %xmm0     # 0xf010
callq 0x10a0
divsd 0x8388(%rip), %xmm0     # 0xf008
cvttpd2dq %xmm0, %xmm0
cvtdq2pd %xmm0, %xmm0
addsd 0x8380(%rip), %xmm0     # 0xf010
callq 0x10c0
movapd %xmm0, 0x70(%rsp)
cvttsd2si %xmm0, %edi
xorpd %xmm0, %xmm0
leaq 0x160(%rsp), %rsi
movapd %xmm0, 0x50(%rsi)
movapd %xmm0, 0x40(%rsi)
movapd %xmm0, 0x30(%rsi)
movapd %xmm0, 0x20(%rsi)
movapd %xmm0, 0x10(%rsi)
movapd %xmm0, (%rsi)
movl %edi, 0x4c(%rsp)
callq 0x19c0
movsd 0x8437(%rip), %xmm1     # 0xf110
movapd 0x100(%rsp), %xmm3
mulsd %xmm3, %xmm1
movsd 0x87aa(%rip), %xmm0     # 0xf498
movsd %xmm1, 0x68(%rsp)
addsd %xmm1, %xmm0
movsd 0x87a0(%rip), %xmm1     # 0xf4a0
minsd %xmm0, %xmm1
cvttpd2dq 0x70(%rsp), %xmm0
cvtdq2pd %xmm0, %xmm2
movsd 0x8792(%rip), %xmm0     # 0xf4a8
movapd %xmm2, 0x150(%rsp)
mulsd %xmm2, %xmm0
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
movapd 0x87a1(%rip), %xmm0     # 0xf4d0
unpcklpd %xmm3, %xmm0            # xmm0 = xmm0[0],xmm3[0]
divpd %xmm0, %xmm1
cvttpd2dq %xmm1, %xmm1
movapd %xmm1, 0x70(%rsp)
pshufd $0x55, %xmm1, %xmm0     # xmm0 = xmm1[1,1,1,1]
movd %xmm0, %eax
leal 0x1(%rax,%rax), %eax
movl %eax, 0x64(%rsp)
movslq %eax, %rbx
leaq (,%rbx,8), %rdi
pshufd $0x50, %xmm1, %xmm0     # xmm0 = xmm1[0,0,1,1]
pcmpgtd 0x8776(%rip), %xmm0     # 0xf4e0
movmskpd %xmm0, %ebp
xorl $0x3, %ebp
testb $0x2, %bpl
movq $-0x1, %r13
cmovneq %r13, %rdi
callq 0x1030
movq %rax, %r14
movl %ebx, %edi
movq %rax, %rsi
callq 0x18fe
movdqa 0x70(%rsp), %xmm0
movd %xmm0, %r15d
movslq %r15d, %rax
leaq 0x10(,%rax,8), %rbx
testb $0x1, %bpl
cmovneq %r13, %rbx
movq %rbx, %rdi
callq 0x1030
movabsq $-0x3fb2000000000000, %rcx # imm = 0xC04E000000000000
movq %rcx, (%rax)
leal 0x1(%r15), %r12d
movslq %r12d, %rbp
movq %rax, 0x70(%rsp)
movq $0x0, (%rax,%rbp,8)
movq %rbx, %rdi
callq 0x1030
movq %r15, 0xc8(%rsp)
testl %r15d, %r15d
js 0x6eb0
movl %r12d, %ecx
leaq 0x1(%rcx), %rsi
movabsq $0x1fffffffe, %rdx      # imm = 0x1FFFFFFFE
andq %rdx, %rsi
decq %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa 0x8245(%rip), %xmm1     # 0xf060
xorl %ecx, %ecx
movdqa 0x824b(%rip), %xmm2     # 0xf070
pxor %xmm2, %xmm0
movsd 0x8677(%rip), %xmm3     # 0xf4a8
pcmpeqd %xmm4, %xmm4
movdqa 0x8243(%rip), %xmm5     # 0xf080
movdqa %xmm1, %xmm6
pxor %xmm2, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %edx
notl %edx
testb $0x1, %dl
je 0x6e81
xorps %xmm7, %xmm7
cvtsi2sd %ecx, %xmm7
mulsd %xmm3, %xmm7
movsd %xmm7, (%rax,%rcx,8)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x6ea3
leal 0x1(%rcx), %edx
xorps %xmm6, %xmm6
cvtsi2sd %edx, %xmm6
mulsd %xmm3, %xmm6
movsd %xmm6, 0x8(%rax,%rcx,8)
addq $0x2, %rcx
paddq %xmm5, %xmm1
cmpq %rcx, %rsi
jne 0x6e3d
movq %rax, 0xd8(%rsp)
movsd 0x68(%rsp), %xmm0
movsd %xmm0, (%rax,%rbp,8)
movl 0x200(%rsp), %ebx
movl %ebx, %ebp
shrl $0x1f, %ebp
addl %ebx, %ebp
sarl %ebp
movslq %ebp, %rax
incl %ebp
cmpl $-0x3, %ebx
leaq 0x8(,%rax,8), %rdi
cmovlq %r13, %rdi
callq 0x1030
movl %ebp, 0xc0(%rsp)
movl %ebp, %r15d
cmpl $-0x1, %ebx
movq 0xe0(%rsp), %r13
movl 0x58(%rsp), %r9d
jl 0x6fe2
xorps %xmm0, %xmm0
cvtsi2sdl 0x200(%rsp), %xmm0
leaq 0x1(%r15), %rsi
movabsq $0x1fffffffe, %rcx      # imm = 0x1FFFFFFFE
andq %rcx, %rsi
leaq -0x1(%r15), %rcx
movq %rcx, %xmm1
pshufd $0x44, %xmm1, %xmm1     # xmm1 = xmm1[0,1,0,1]
movdqa 0x8121(%rip), %xmm2     # 0xf060
xorl %ecx, %ecx
movdqa 0x8127(%rip), %xmm3     # 0xf070
pxor %xmm3, %xmm1
pcmpeqd %xmm4, %xmm4
movdqa 0x8127(%rip), %xmm5     # 0xf080
movdqa %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm1, %xmm7
pcmpeqd %xmm1, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %edx
notl %edx
testb $0x1, %dl
je 0x6fa6
xorps %xmm7, %xmm7
cvtsi2sd %ecx, %xmm7
mulsd 0x100(%rsp), %xmm7
divsd %xmm0, %xmm7
movsd %xmm7, (%rax,%rcx,8)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x6fd1
leal 0x1(%rcx), %edx
xorps %xmm6, %xmm6
cvtsi2sd %edx, %xmm6
mulsd 0x100(%rsp), %xmm6
divsd %xmm0, %xmm6
movsd %xmm6, 0x8(%rax,%rcx,8)
addq $0x2, %rcx
paddq %xmm5, %xmm2
cmpq %rcx, %rsi
jne 0x6f59
movq %rax, 0xd0(%rsp)
testl %r9d, %r9d
jle 0x775f
movq 0x208(%rsp), %rsi
movq 0xc8(%rsp), %rdx
leal 0x2(%rdx), %eax
movl %eax, 0xbc(%rsp)
movl 0x4c(%rsp), %ecx
movl %ecx, %eax
shrl $0x1f, %eax
addl %ecx, %eax
sarl %eax
cmpl $-0x3, %ecx
movslq %eax, %rdi
movq %rdi, 0x118(%rsp)
leaq 0x8(,%rdi,8), %rdi
movq $-0x1, %r8
movq %rdi, 0x110(%rsp)
cmovgeq %rdi, %r8
movq %r8, 0x88(%rsp)
leal 0x1(%rax), %r12d
movl %ecx, %eax
shlq $0x3, %rax
movq %rax, 0xe8(%rsp)
movsd 0x844b(%rip), %xmm1     # 0xf4b0
mulsd 0x150(%rsp), %xmm1
movl 0x64(%rsp), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x128(%rsp)
movl %eax, %ebp
shrl $0x1f, %ebp
addl %eax, %ebp
movl %ebp, %eax
sarl %eax
movl %eax, 0xc4(%rsp)
xorl %ecx, %ecx
andl $-0x2, %ebp
cmovlel %ecx, %ebp
movl %edx, %eax
movq %rax, 0x68(%rsp)
leaq (,%r15,8), %rax
movq %rax, 0x120(%rsp)
movl %r9d, %eax
movq %rax, 0x138(%rsp)
incq %rbp
movq %r15, 0xf0(%rsp)
movsd (%r13,%rcx,8), %xmm0
ucomisd 0x806c(%rip), %xmm0     # 0xf148
movq %rcx, 0xa8(%rsp)
jne 0x711e
jp 0x711e
cmpl $-0x1, 0x200(%rsp)
jl 0x774e
movq (%rsi,%rcx,8), %rdi
xorl %esi, %esi
movq 0x120(%rsp), %rdx
callq 0x1080
movq 0xa8(%rsp), %rcx
movq 0x208(%rsp), %rsi
jmp 0x774e
maxsd 0x82ea(%rip), %xmm0     # 0xf410
movsd %xmm0, 0x50(%rsp)
movq 0x130(%rsp), %rax
movsd (%rax,%rcx,8), %xmm1
movsd %xmm1, 0x58(%rsp)
movq 0x88(%rsp), %r15
movq %r15, %rdi
callq 0x1030
movq %rax, 0x98(%rsp)
movq %r15, %rdi
callq 0x1030
movq %rax, 0xf8(%rsp)
movq %r15, %rdi
callq 0x1030
movq %rax, 0xa0(%rsp)
movq %r15, %rdi
callq 0x1030
movq %rax, %rbx
movq %r15, %rdi
callq 0x1030
movq %rax, %r13
movsd 0x7f9b(%rip), %xmm2     # 0xf130
movsd 0x50(%rsp), %xmm0
divsd %xmm0, %xmm2
movsd %xmm2, 0xb0(%rsp)
movsd 0x58(%rsp), %xmm1
subsd %xmm2, %xmm1
movq 0x90(%rsp), %rdi
movl 0x60(%rsp), %esi
movl 0x48(%rsp), %r15d
movl %r15d, %edx
movl 0x4c(%rsp), %ecx
leaq 0x160(%rsp), %r8
movq %rbx, %r9
callq 0x77aa
movsd 0xb0(%rsp), %xmm1
addsd 0x58(%rsp), %xmm1
movq 0x90(%rsp), %rdi
movl 0x60(%rsp), %esi
movl %r15d, %edx
movsd 0x50(%rsp), %xmm0
movl 0x4c(%rsp), %r15d
movl %r15d, %ecx
leaq 0x160(%rsp), %r8
movq %r13, %r9
callq 0x77aa
movq 0x98(%rsp), %rdi
cmpl $-0x1, %r15d
jl 0x723f
xorl %eax, %eax
movsd (%rbx,%rax,8), %xmm0
addsd (%r13,%rax,8), %xmm0
movsd %xmm0, (%rdi,%rax,8)
incq %rax
cmpq %rax, %r12
jne 0x7226
movsd 0x50(%rsp), %xmm0
movl 0x48(%rsp), %esi
movl %r15d, %edx
movq %rdi, %rcx
callq 0x12f9
movq %rbx, %rdi
callq 0x1110
movq %r13, %rdi
callq 0x1110
movq 0x168(%rsp), %rbx
testl %r15d, %r15d
jle 0x7283
movq %rbx, %rdi
xorl %esi, %esi
movq 0xe8(%rsp), %rdx
callq 0x1080
movq 0x90(%rsp), %rdi
movl 0x60(%rsp), %esi
movl 0x48(%rsp), %edx
movsd 0x50(%rsp), %xmm0
movsd 0x58(%rsp), %xmm1
movl $0x1, %ecx
movq %rbx, %r8
callq 0x7a3d
movl $0x9, %ecx
movq %rsp, %rdi
leaq 0x178(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x8792
movl 0x4c(%rsp), %ebx
cmpl $-0x1, %ebx
movq 0xf8(%rsp), %r15
movq 0xa0(%rsp), %r13
jge 0x7310
movq %r15, %rdi
movsd 0x50(%rsp), %xmm0
movl 0x48(%rsp), %esi
movl %ebx, %edx
movq %r15, %rcx
callq 0x12f9
movq %r15, %rdi
movsd 0x50(%rsp), %xmm0
movl 0x48(%rsp), %esi
movl %ebx, %edx
movq %r15, %rcx
callq 0x14d5
jmp 0x7397
movq 0x170(%rsp), %rax
addq $0x8, %rax
xorl %ecx, %ecx
movsd -0x8(%rax), %xmm0
movsd (%rax), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%r15,%rcx,8)
incq %rcx
addq $0x10, %rax
cmpq %rcx, %r12
jne 0x731e
movq %r15, %rdi
movsd 0x50(%rsp), %xmm0
movl 0x48(%rsp), %esi
movl %ebx, %edx
movq %r15, %rcx
callq 0x12f9
movq %r15, %rdi
movsd 0x50(%rsp), %xmm0
movl 0x48(%rsp), %esi
movl %ebx, %edx
movq %r15, %rcx
callq 0x14d5
xorl %eax, %eax
movq 0x98(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
divsd (%r15,%rax,8), %xmm0
movsd %xmm0, (%r13,%rax,8)
incq %rax
cmpq %rax, %r12
jne 0x737d
movsd 0x50(%rsp), %xmm0
mulsd 0x7d6b(%rip), %xmm0     # 0xf110
movq %r13, %rdi
movl 0x48(%rsp), %esi
movl 0x4c(%rsp), %r15d
movl %r15d, %edx
movq %r13, %rcx
callq 0x14d5
movq 0x88(%rsp), %rdi
callq 0x1030
movq %rax, %rbx
movq %r13, %rdi
movsd 0x50(%rsp), %xmm0
movl 0x48(%rsp), %esi
movl %r15d, %edx
movq %rax, %rcx
callq 0x14d5
cmpl $-0x1, %r15d
jl 0x7407
xorl %eax, %eax
movsd (%r13,%rax,8), %xmm0
subsd (%rbx,%rax,8), %xmm0
movsd %xmm0, (%r13,%rax,8)
incq %rax
cmpq %rax, %r12
jne 0x73ec
movq %rbx, %rdi
callq 0x1110
movsd 0x128(%rsp), %xmm0
callq 0x4b8c
movl %eax, %ebx
movq 0x88(%rsp), %rdi
callq 0x1030
movq %rax, %r13
cmpl $0x0, 0x4c(%rsp)
movq 0xf0(%rsp), %r15
jle 0x7455
movq 0x168(%rsp), %rdi
xorl %esi, %esi
movq 0xe8(%rsp), %rdx
callq 0x1080
cmpl $0x0, 0xc8(%rsp)
jle 0x7669
movq 0x118(%rsp), %rcx
leaq (,%rcx,8), %rax
addq %r13, %rax
movq %rax, 0xb0(%rsp)
leaq 0x8(,%rcx,8), %rax
addq %r13, %rax
movq %rax, 0x58(%rsp)
movq 0x110(%rsp), %rax
sarq $0x3, %rax
bsrq %rax, %rax
xorl $0x3f, %eax
addl %eax, %eax
xorq $0x7e, %rax
movq %rax, 0x140(%rsp)
notl %ebx
addl %ecx, %ebx
movslq %ebx, %rax
movq %rax, 0x148(%rsp)
xorl %r15d, %r15d
leaq 0x1(%r15), %rbx
cmpl $-0x1, 0x64(%rsp)
jl 0x7529
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
mulsd 0x7fcd(%rip), %xmm0     # 0xf4a8
mulsd 0x150(%rsp), %xmm0
divsd 0x100(%rsp), %xmm0
cvttsd2si %xmm0, %ecx
subl 0xc4(%rsp), %ecx
movq 0x168(%rsp), %rax
movslq %ecx, %rcx
movq 0xa0(%rsp), %rdx
leaq (%rdx,%rcx,8), %rcx
xorl %edx, %edx
movsd (%rcx,%rdx,8), %xmm0
mulsd (%r14,%rdx,8), %xmm0
movsd %xmm0, (%rax,%rdx,8)
incq %rdx
cmpq %rdx, %rbp
jne 0x7511
movl $0x9, %ecx
movq %rsp, %rdi
leaq 0x178(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x8792
movl 0x4c(%rsp), %edx
cmpl $-0x1, %edx
jl 0x7580
movq 0x170(%rsp), %rax
addq $0x8, %rax
xorl %ecx, %ecx
movsd -0x8(%rax), %xmm0
movsd (%rax), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%r13,%rcx,8)
incq %rcx
addq $0x10, %rax
cmpq %rcx, %r12
jne 0x7558
cmpq 0x58(%rsp), %r13
je 0x75ad
movq %r13, %rdi
movq 0x58(%rsp), %rsi
movq 0x140(%rsp), %rdx
callq 0x7e73
movq %r13, %rdi
movq 0x58(%rsp), %rsi
callq 0x7f6a
movl 0x4c(%rsp), %edx
cmpl $0x2, %edx
jl 0x75d3
movsd (%r13), %xmm0
movl $0x1, %eax
addsd (%r13,%rax,8), %xmm0
movsd %xmm0, (%r13,%rax,8)
incq %rax
cmpq %rax, %r12
jne 0x75bd
movq 0x148(%rsp), %rax
movsd (%r13,%rax,8), %xmm0
movq 0xb0(%rsp), %rax
divsd (%rax), %xmm0
callq 0x1070
mulsd 0x7ebd(%rip), %xmm0     # 0xf4b8
movq 0x70(%rsp), %rax
movsd %xmm0, 0x8(%rax,%r15,8)
movq %rbx, %r15
cmpq 0x68(%rsp), %rbx
jne 0x74c1
movq %r13, %rdi
callq 0x1110
movsd 0x50(%rsp), %xmm2
addsd 0x7e95(%rip), %xmm2     # 0xf4c0
divsd 0x7ae5(%rip), %xmm2     # 0xf118
xorl %eax, %eax
movq 0x70(%rsp), %rbx
movq 0xf0(%rsp), %r15
movq 0x68(%rsp), %rcx
movsd 0x8(%rbx,%rax,8), %xmm0
addsd %xmm2, %xmm0
xorpd %xmm1, %xmm1
minsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rbx,%rax,8)
incq %rax
cmpq %rax, %rcx
jne 0x7647
jmp 0x7676
movq %r13, %rdi
callq 0x1110
movq 0x70(%rsp), %rbx
movq 0x98(%rsp), %rdi
callq 0x1110
movq 0xf8(%rsp), %rdi
callq 0x1110
movq 0xa0(%rsp), %rdi
callq 0x1110
movq 0x208(%rsp), %rax
movq 0xa8(%rsp), %r13
movq (%rax,%r13,8), %r9
movq 0xd8(%rsp), %rdi
movq %rbx, %rsi
movl 0xbc(%rsp), %edx
movq 0xd0(%rsp), %rcx
movl 0xc0(%rsp), %r8d
callq 0x4733
movq %r13, %rcx
movq 0x208(%rsp), %rsi
cmpl $-0x1, 0x200(%rsp)
movq 0xe0(%rsp), %r13
movsd 0x7dbd(%rip), %xmm2     # 0xf4b8
movsd 0x7dc5(%rip), %xmm0     # 0xf4c8
jl 0x774e
movq (%rsi,%rcx,8), %rax
xorl %ebx, %ebx
movsd (%rax,%rbx,8), %xmm1
divsd %xmm0, %xmm1
movapd %xmm2, %xmm0
callq 0x1190
movsd 0x7d93(%rip), %xmm2     # 0xf4b8
movq 0xa8(%rsp), %rcx
movq 0x208(%rsp), %rsi
movq (%rsi,%rcx,8), %rax
movsd %xmm0, (%rax,%rbx,8)
movsd 0x7d82(%rip), %xmm0     # 0xf4c8
incq %rbx
cmpq %rbx, %r15
jne 0x770b
incq %rcx
cmpq 0x138(%rsp), %rcx
jne 0x70cd
leaq 0x160(%rsp), %rdi
callq 0x1a44
movq 0xd8(%rsp), %rdi
callq 0x1110
movq 0x70(%rsp), %rdi
callq 0x1110
movq %r14, %rdi
callq 0x1110
movq 0xd0(%rsp), %rdi
callq 0x1110
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq