// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/synthesis.cpp
// Function: Synthesis(double*, int, double**, double**, int, double, int, int, double*)
void Synthesis(double *f0, int f0_length, double **spectrogram,
    double **aperiodicity, int fft_size, double frame_period, int fs,
    int y_length, double *y) {
  double *impulse_response = new double[fft_size];

  for (int i = 0; i < y_length; ++i) y[i] = 0.0;

  MinimumPhaseAnalysis minimum_phase = {0};
  InitializeMinimumPhaseAnalysis(fft_size, &minimum_phase);
  InverseRealFFT inverse_real_fft = {0};
  InitializeInverseRealFFT(fft_size, &inverse_real_fft);
  ForwardRealFFT forward_real_fft = {0};
  InitializeForwardRealFFT(fft_size, &forward_real_fft);

  double *pulse_locations = new double[y_length];
  int *pulse_locations_index = new int[y_length];
  double *interpolated_vuv = new double[y_length];
  int number_of_pulses = GetTimeBase(f0, f0_length, fs, frame_period / 1000.0,
      y_length, pulse_locations, pulse_locations_index,
      interpolated_vuv);

  frame_period /= 1000.0;
  int noise_size;

  for (int i = 0; i < number_of_pulses; ++i) {
    noise_size = pulse_locations_index[MyMin(number_of_pulses - 1, i + 1)] -
      pulse_locations_index[i];

    GetOneFrameSegment(interpolated_vuv[pulse_locations_index[i]], noise_size,
        spectrogram, fft_size, aperiodicity, f0_length, frame_period,
        pulse_locations[i], fs, &forward_real_fft, &inverse_real_fft,
        &minimum_phase, impulse_response);

    int index = 0;
    for (int j = 0; j < fft_size; ++j) {
      index = MyMin(y_length - 1,
        MyMax(0, j + pulse_locations_index[i] - fft_size / 2 + 1));
        y[index] += impulse_response[j];
    }
  }

  delete[] pulse_locations;
  delete[] pulse_locations_index;
  delete[] interpolated_vuv;

  DestroyMinimumPhaseAnalysis(&minimum_phase);
  DestroyInverseRealFFT(&inverse_real_fft);
  DestroyForwardRealFFT(&forward_real_fft);

  delete[] impulse_response;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movl %r9d, 0x50(%rsp)
movsd %xmm0, 0x80(%rsp)
movq %rcx, 0xb8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdi, %rbp
movq 0x2c8(%rsp), %r14
movl 0x2c0(%rsp), %r15d
movl %r8d, 0x4c(%rsp)
movslq %r8d, %rax
leaq (,%rax,8), %rdi
testl %eax, %eax
movq $-0x1, %rax
cmovsq %rax, %rdi
movq %rdi, 0x108(%rsp)
callq 0x1030
movq %rax, 0xe0(%rsp)
movl %r15d, %ebx
testl %r15d, %r15d
jle 0x34c3
leaq (,%rbx,8), %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x1080
leaq 0x170(%rsp), %r14
movl $0xb0, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x1080
movl 0x4c(%rsp), %r12d
movl %r12d, %edi
movq %r14, %rsi
callq 0x199d
xorpd %xmm0, %xmm0
leaq 0x110(%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 %r12d, %edi
callq 0x18da
leaq 0x220(%rsp), %rsi
xorpd %xmm0, %xmm0
movapd %xmm0, 0x50(%rsi)
movapd %xmm0, 0x40(%rsi)
movapd %xmm0, 0x30(%rsi)
movapd %xmm0, 0x20(%rsi)
movapd %xmm0, 0x10(%rsi)
movapd %xmm0, (%rsi)
movl %r12d, %edi
callq 0x1817
movslq %r15d, %r14
movq %r15, %rax
leaq (,%r14,8), %r15
shlq $0x2, %r14
testl %eax, %eax
movq $-0x1, %r13
cmovsq %r13, %r15
cmovsq %r13, %r14
movq %r15, %rdi
callq 0x1030
movq %rax, 0xa0(%rsp)
movq %r14, %rdi
callq 0x1030
movq %rax, 0x98(%rsp)
movq %r15, %rdi
callq 0x1030
movq %rax, %r12
movq %r15, 0x88(%rsp)
movq %r15, %rdi
callq 0x1030
movq %rax, %r15
movq 0x58(%rsp), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x70(%rsp)
movslq %edx, %r14
shlq $0x3, %r14
cmpl $-0x1, %ecx
cmovlq %r13, %r14
movq %r14, %rdi
callq 0x1030
movq %rax, 0x90(%rsp)
movq %r14, %rdi
callq 0x1030
movq %rax, 0x68(%rsp)
movq %r14, %rdi
callq 0x1030
cvtsi2sdl 0x50(%rsp), %xmm1
movl 0x2c0(%rsp), %ecx
testl %ecx, %ecx
jle 0x3618
xorl %ecx, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, (%r15,%rcx,8)
incq %rcx
cmpq %rcx, %rbx
jne 0x35ff
movsd 0x80(%rsp), %xmm0
divsd 0xba57(%rip), %xmm0     # 0xf080
movsd %xmm0, 0x80(%rsp)
movl 0x70(%rsp), %r14d
cmpl $0x0, 0x58(%rsp)
movq 0x90(%rsp), %r13
movsd %xmm1, 0x50(%rsp)
movq %rax, 0x60(%rsp)
js 0x3690
xorl %eax, %eax
movsd 0x80(%rsp), %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, (%r13,%rax,8)
incq %rax
cmpq %rax, %r14
jne 0x365c
leaq (,%r14,8), %rdx
movq 0x68(%rsp), %rdi
movq %rbp, %rsi
callq 0x10b0
movq 0x60(%rsp), %rax
movq 0x58(%rsp), %rdi
movslq %edi, %rsi
leaq -0x1(%rsi), %rcx
movq %rcx, 0xd0(%rsp)
leaq -0x2(%rsi), %rcx
movq 0x68(%rsp), %rdx
movsd -0x8(%rdx,%rsi,8), %xmm0
addsd %xmm0, %xmm0
subsd -0x10(%rdx,%rsi,8), %xmm0
movsd %xmm0, (%rdx,%rsi,8)
testl %edi, %edi
js 0x36f0
xorl %edx, %edx
xorpd %xmm0, %xmm0
movsd 0xb93c(%rip), %xmm1     # 0xf010
movsd (%rbp,%rdx,8), %xmm2
cmpeqsd %xmm0, %xmm2
andnpd %xmm1, %xmm2
movlpd %xmm2, (%rax,%rdx,8)
incq %rdx
cmpq %rdx, %r14
jne 0x36d4
movq 0xd0(%rsp), %rdx
movsd (%rax,%rdx,8), %xmm0
addsd %xmm0, %xmm0
subsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rsi,8)
movq 0x88(%rsp), %rdi
callq 0x1030
movq %r13, %rdi
movq 0x68(%rsp), %rsi
movl 0x70(%rsp), %ebp
movl %ebp, %edx
movq %r15, %rcx
movl 0x2c0(%rsp), %r14d
movq %r14, %r8
movq %rax, %r9
movq %rax, %r14
callq 0x41a9
movq %r13, %rdi
movq 0x60(%rsp), %rsi
movl %ebp, %edx
movl 0x2c0(%rsp), %r13d
movq %r15, %rcx
movl %r13d, %r8d
movq %r12, %r9
callq 0x41a9
testl %r13d, %r13d
jle 0x37d2
xorl %eax, %eax
movsd 0xb91a(%rip), %xmm0     # 0xf088
movsd 0xb89a(%rip), %xmm1     # 0xf010
movapd %xmm0, %xmm2
cmpltsd (%r12,%rax,8), %xmm2
andpd %xmm1, %xmm2
movlpd %xmm2, (%r12,%rax,8)
incq %rax
cmpq %rax, %rbx
jne 0x3776
movl 0x2c0(%rsp), %eax
testl %eax, %eax
jle 0x37d2
xorl %eax, %eax
movsd 0xb928(%rip), %xmm0     # 0xf0d0
xorpd %xmm1, %xmm1
movsd (%r12,%rax,8), %xmm2
ucomisd %xmm1, %xmm2
movapd %xmm0, %xmm2
jne 0x37be
jnp 0x37c4
movsd (%r14,%rax,8), %xmm2
movsd %xmm2, (%r14,%rax,8)
incq %rax
cmpq %rax, %rbx
jne 0x37ac
movq %r15, 0x58(%rsp)
movq 0x88(%rsp), %rbp
movq %rbp, %rdi
callq 0x1030
movsd (%r14), %xmm0
mulsd 0xb834(%rip), %xmm0     # 0xf028
movq %rax, %r13
movsd 0x50(%rsp), %xmm3
divsd %xmm3, %xmm0
movsd %xmm0, (%rax)
movl 0x2c0(%rsp), %eax
cmpl $0x2, %eax
jl 0x3845
movsd (%r13), %xmm0
movl $0x1, %eax
movsd 0xb804(%rip), %xmm1     # 0xf028
movsd (%r14,%rax,8), %xmm2
mulsd %xmm1, %xmm2
divsd %xmm3, %xmm2
addsd %xmm2, %xmm0
movsd %xmm0, (%r13,%rax,8)
incq %rax
cmpq %rax, %rbx
jne 0x3824
movq %r14, 0x70(%rsp)
movq %r12, 0xd8(%rsp)
movq %rbp, %rdi
callq 0x1030
movq %rax, %r15
movl 0x2c0(%rsp), %eax
testl %eax, %eax
jle 0x388d
xorl %r14d, %r14d
movsd (%r13,%r14,8), %xmm0
movsd 0xb7ae(%rip), %xmm1     # 0xf028
callq 0x1120
movsd %xmm0, (%r15,%r14,8)
incq %r14
cmpq %r14, %rbx
jne 0x386b
movq %r13, %r12
movq %rbp, %rdi
callq 0x1030
movq %rax, %r14
movl 0x2c0(%rsp), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x7c(%rsp)
xorl %ebp, %ebp
cmpl $0x2, %eax
movsd 0x50(%rsp), %xmm2
jl 0x394b
movl 0x7c(%rsp), %ebx
xorl %eax, %eax
movapd 0xb7f8(%rip), %xmm0     # 0xf0c0
movsd 0x8(%r15,%rax,8), %xmm1
subsd (%r15,%rax,8), %xmm1
andpd %xmm0, %xmm1
movlpd %xmm1, (%r14,%rax,8)
leaq 0x1(%rax), %rcx
movq %rcx, %rax
cmpq %rcx, %rbx
jne 0x38c8
xorl %r13d, %r13d
movsd 0xb7a2(%rip), %xmm1     # 0xf098
xorl %ebp, %ebp
movsd (%r14,%r13,8), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x3943
movq 0x58(%rsp), %rax
movsd (%rax,%r13,8), %xmm0
movslq %ebp, %rbp
movq 0xa0(%rsp), %rax
movsd %xmm0, (%rax,%rbp,8)
mulsd %xmm2, %xmm0
callq 0x45c3
movsd 0xb768(%rip), %xmm1     # 0xf098
movsd 0x50(%rsp), %xmm2
movq 0x98(%rsp), %rcx
movl %eax, (%rcx,%rbp,4)
incl %ebp
incq %r13
cmpq %r13, %rbx
jne 0x38f8
movq %r14, %rdi
callq 0x1110
movq %r15, %rdi
callq 0x1110
movq %r12, %rdi
callq 0x1110
movq 0x60(%rsp), %rdi
callq 0x1110
movq 0x68(%rsp), %rdi
callq 0x1110
movq 0x90(%rsp), %rdi
callq 0x1110
movq 0x58(%rsp), %rdi
callq 0x1110
movq 0x70(%rsp), %rdi
callq 0x1110
testl %ebp, %ebp
movq 0xe0(%rsp), %rbx
jle 0x4081
leal -0x1(%rbp), %eax
movl %eax, 0xac(%rsp)
movl 0x4c(%rsp), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leal 0x1(%rcx), %edx
movl %eax, %r15d
leaq (,%r15,8), %rsi
movq %rsi, 0xf0(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0xc0(%rsp)
negl %ecx
movq %rcx, 0xf8(%rsp)
movl %ebp, %eax
movq %rax, 0x100(%rsp)
movq %rdx, 0xc8(%rsp)
shlq $0x4, %rdx
movq %rdx, 0xe8(%rsp)
xorl %eax, %eax
movq %rax, %rdx
incq %rax
movl 0xac(%rsp), %ecx
cmpl %eax, %ecx
movq %rax, 0x90(%rsp)
cmovll %ecx, %eax
cltq
movq 0x98(%rsp), %rcx
movl (%rcx,%rax,4), %eax
movq %rax, 0x88(%rsp)
movslq (%rcx,%rdx,4), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, %r12
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x68(%rsp)
movq 0xa0(%rsp), %rax
movq %rdx, 0x70(%rsp)
movsd (%rax,%rdx,8), %xmm0
movsd %xmm0, 0x50(%rsp)
movq 0x108(%rsp), %rbx
movq %rbx, %rdi
callq 0x1030
movq %rax, 0x58(%rsp)
movq %rbx, %rdi
callq 0x1030
movq %rax, 0x60(%rsp)
movq %rbx, %rdi
callq 0x1030
movq %rax, %r13
movq %rbx, %rdi
callq 0x1030
movq %rax, %rbp
movsd 0x50(%rsp), %xmm0
divsd 0x80(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
callq 0x1180
cvttsd2si %xmm0, %r14d
movq 0xd0(%rsp), %rbx
cmpl %r14d, %ebx
cmovll %ebx, %r14d
movsd 0x50(%rsp), %xmm0
callq 0x1050
movsd 0x50(%rsp), %xmm4
cvttsd2si %xmm0, %eax
cmpl %eax, %ebx
cmovll %ebx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
subsd %xmm0, %xmm4
cmpl %eax, %r14d
jne 0x3b43
cmpl $-0x1, 0x4c(%rsp)
movq 0xc8(%rsp), %rdi
movsd 0xb4fa(%rip), %xmm3     # 0xf010
jl 0x3b9f
movslq %r14d, %rcx
movq 0xb0(%rsp), %rdx
movq (%rdx,%rcx,8), %rcx
xorl %edx, %edx
movsd (%rcx,%rdx,8), %xmm0
movsd %xmm0, (%r13,%rdx,8)
incq %rdx
cmpq %rdx, %rdi
jne 0x3b2d
jmp 0x3b9f
cmpl $-0x1, 0x4c(%rsp)
movq 0xc8(%rsp), %rdi
movsd 0xb4b8(%rip), %xmm3     # 0xf010
jl 0x3b9f
movapd %xmm3, %xmm0
subsd %xmm4, %xmm0
movslq %r14d, %rcx
movq 0xb0(%rsp), %rsi
movq (%rsi,%rcx,8), %rcx
movslq %eax, %rdx
movq (%rsi,%rdx,8), %rdx
xorl %esi, %esi
movsd (%rdx,%rsi,8), %xmm1
mulsd %xmm4, %xmm1
movsd (%rcx,%rsi,8), %xmm2
mulsd %xmm0, %xmm2
addsd %xmm1, %xmm2
movsd %xmm2, (%r13,%rsi,8)
incq %rsi
cmpq %rsi, %rdi
jne 0x3b7a
cmpl %eax, %r14d
jne 0x3bd5
cmpl $-0x1, 0x4c(%rsp)
jl 0x3c23
movslq %r14d, %rax
movq 0xb8(%rsp), %rcx
movq (%rcx,%rax,8), %rax
xorl %ecx, %ecx
movsd (%rax,%rcx,8), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, (%rbp,%rcx,8)
incq %rcx
cmpq %rcx, %rdi
jne 0x3bbc
jmp 0x3c23
cmpl $-0x1, 0x4c(%rsp)
jl 0x3c23
movapd %xmm3, %xmm0
subsd %xmm4, %xmm0
movslq %r14d, %rcx
movq 0xb8(%rsp), %rdx
movq (%rdx,%rcx,8), %rcx
cltq
movq (%rdx,%rax,8), %rax
xorl %edx, %edx
movsd (%rax,%rdx,8), %xmm1
mulsd %xmm4, %xmm1
movsd (%rcx,%rdx,8), %xmm2
mulsd %xmm0, %xmm2
addsd %xmm1, %xmm2
mulsd %xmm2, %xmm2
movsd %xmm2, (%rbp,%rdx,8)
incq %rdx
cmpq %rdx, %rdi
jne 0x3bfb
movsd 0xb45d(%rip), %xmm0     # 0xf088
ucomisd 0x68(%rsp), %xmm0
jae 0x3d2e
cmpl $-0x1, 0x170(%rsp)
movsd 0xb469(%rip), %xmm1     # 0xf0b0
jl 0x3cb1
movq $-0x1, %r14
movapd %xmm3, %xmm0
subsd 0x8(%rbp,%r14,8), %xmm0
mulsd 0x8(%r13,%r14,8), %xmm0
addsd %xmm1, %xmm0
callq 0x10a0
movsd 0xb39d(%rip), %xmm3     # 0xf010
movsd 0xb40d(%rip), %xmm1     # 0xf088
mulsd %xmm1, %xmm0
movsd 0xb429(%rip), %xmm1     # 0xf0b0
movq 0x178(%rsp), %rax
movsd %xmm0, 0x8(%rax,%r14,8)
movl 0x170(%rsp), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movslq %ecx, %rax
incq %r14
cmpq %rax, %r14
jl 0x3c50
leaq 0x170(%rsp), %rdi
callq 0x1a5e
cmpl $-0x1, 0x4c(%rsp)
movq 0xe8(%rsp), %rsi
jl 0x3cfe
movq 0x180(%rsp), %rax
movq 0x120(%rsp), %rcx
xorl %edx, %edx
movsd (%rax,%rdx), %xmm0
movsd %xmm0, (%rcx,%rdx)
movsd 0x8(%rax,%rdx), %xmm0
movsd %xmm0, 0x8(%rcx,%rdx)
addq $0x10, %rdx
cmpq %rdx, %rsi
jne 0x3cdf
movl $0x9, %ecx
movq %rsp, %rdi
leaq 0x128(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7f1a
movq 0x118(%rsp), %rdi
movl 0x4c(%rsp), %esi
movq 0x60(%rsp), %rdx
callq 0x40ec
jmp 0x3d49
cmpl $0x0, 0x4c(%rsp)
jle 0x3d49
movq 0x60(%rsp), %rdi
xorl %esi, %esi
movq 0xf0(%rsp), %rdx
callq 0x1080
movq 0x88(%rsp), %rax
subl %r12d, %eax
movl %eax, %r14d
movq %rax, %r12
xorpd %xmm2, %xmm2
testl %eax, %eax
jle 0x3d8e
xorl %ebx, %ebx
movsd %xmm2, 0x50(%rsp)
callq 0x476c
movsd 0x50(%rsp), %xmm2
movq 0x228(%rsp), %rax
movsd %xmm0, (%rax,%rbx,8)
addsd %xmm0, %xmm2
incq %rbx
cmpq %rbx, %r14
jne 0x3d64
movq %r12, %rdx
xorps %xmm1, %xmm1
cvtsi2sd %edx, %xmm1
testl %edx, %edx
movq 0xe0(%rsp), %rbx
jle 0x3dc8
divsd %xmm1, %xmm2
movq 0x228(%rsp), %rax
xorl %ecx, %ecx
movsd (%rax,%rcx,8), %xmm0
subsd %xmm2, %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %r14
jne 0x3db2
movsd %xmm1, 0x50(%rsp)
cmpl 0x4c(%rsp), %edx
jge 0x3df8
movslq %edx, %rdi
shlq $0x3, %rdi
addq 0x228(%rsp), %rdi
notl %edx
addl 0x4c(%rsp), %edx
leaq 0x8(,%rdx,8), %rdx
xorl %esi, %esi
callq 0x1080
movl $0x9, %ecx
movq %rsp, %rdi
leaq 0x238(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7f1a
movsd 0x68(%rsp), %xmm0
ucomisd 0xb29a(%rip), %xmm0     # 0xf0b8
movl 0x170(%rsp), %eax
jne 0x3e29
jnp 0x3e84
cmpl $-0x1, %eax
jl 0x3ed2
movq $-0x1, %r14
movsd 0x8(%r13,%r14,8), %xmm0
mulsd 0x8(%rbp,%r14,8), %xmm0
callq 0x10a0
movsd 0xb234(%rip), %xmm1     # 0xf088
mulsd %xmm1, %xmm0
movq 0x178(%rsp), %rax
movsd %xmm0, 0x8(%rax,%r14,8)
movl 0x170(%rsp), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movslq %ecx, %rax
incq %r14
cmpq %rax, %r14
jl 0x3e39
jmp 0x3ed2
cmpl $-0x1, %eax
jl 0x3ed2
movq $-0x1, %r14
movsd 0x8(%r13,%r14,8), %xmm0
callq 0x10a0
movsd 0xb1e4(%rip), %xmm1     # 0xf088
mulsd %xmm1, %xmm0
movq 0x178(%rsp), %rax
movsd %xmm0, 0x8(%rax,%r14,8)
movl 0x170(%rsp), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movslq %ecx, %rax
incq %r14
cmpq %rax, %r14
jl 0x3e90
leaq 0x170(%rsp), %rdi
callq 0x1a5e
cmpl $-0x1, 0x4c(%rsp)
movq 0xe8(%rsp), %rdi
jl 0x3f66
movq 0x180(%rsp), %rax
movq 0x120(%rsp), %rcx
movq 0x230(%rsp), %rdx
xorl %esi, %esi
movsd (%rax,%rsi), %xmm0
movsd %xmm0, (%rcx,%rsi)
movsd 0x8(%rax,%rsi), %xmm0
movsd %xmm0, 0x8(%rcx,%rsi)
movsd (%rax,%rsi), %xmm0
movsd 0x8(%rdx,%rsi), %xmm1
mulsd 0x8(%rax,%rsi), %xmm1
mulsd (%rdx,%rsi), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, (%rcx,%rsi)
movsd (%rax,%rsi), %xmm0
movsd 0x8(%rax,%rsi), %xmm1
mulsd (%rdx,%rsi), %xmm1
mulsd 0x8(%rdx,%rsi), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rcx,%rsi)
addq $0x10, %rsi
cmpq %rsi, %rdi
jne 0x3f08
movl $0x9, %ecx
movq %rsp, %rdi
leaq 0x128(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7f1a
movq 0x118(%rsp), %rdi
movl 0x4c(%rsp), %esi
movq 0x58(%rsp), %rdx
callq 0x40ec
movsd 0x50(%rsp), %xmm0
ucomisd 0xb116(%rip), %xmm0     # 0xf0b8
movq 0x2c8(%rsp), %r14
jb 0x3fb2
sqrtsd %xmm0, %xmm0
jmp 0x3fb7
callq 0x1090
movsd 0xc0(%rsp), %xmm2
movq 0x60(%rsp), %rcx
cmpl $0x0, 0x4c(%rsp)
movq 0x58(%rsp), %r12
jle 0x3ff3
xorl %eax, %eax
movsd (%rcx,%rax,8), %xmm1
mulsd %xmm0, %xmm1
addsd (%r12,%rax,8), %xmm1
divsd %xmm2, %xmm1
movsd %xmm1, (%rbx,%rax,8)
incq %rax
cmpq %rax, %r15
jne 0x3fd3
movq %rcx, %r12
movq %r13, %rdi
callq 0x1110
movq %rbp, %rdi
callq 0x1110
movq %r12, %rdi
callq 0x1110
movq 0x58(%rsp), %rdi
callq 0x1110
cmpl $0x0, 0x4c(%rsp)
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl 0x7c(%rsp), %edi
jle 0x406b
movq 0x98(%rsp), %rax
movq 0x70(%rsp), %rcx
movl (%rax,%rcx,4), %eax
addl 0xf8(%rsp), %eax
xorl %ecx, %ecx
movl %eax, %edx
addl %ecx, %edx
cmovsl %esi, %edx
incl %edx
cmpl %edx, %edi
cmovll %edi, %edx
movsd (%rbx,%rcx,8), %xmm0
movslq %edx, %rdx
addsd (%r14,%rdx,8), %xmm0
movsd %xmm0, (%r14,%rdx,8)
incq %rcx
cmpq %rcx, %r15
jne 0x4041
movq 0x90(%rsp), %rax
cmpq 0x100(%rsp), %rax
jne 0x3a0f
movq 0xa0(%rsp), %rdi
callq 0x1110
movq 0x98(%rsp), %rdi
callq 0x1110
movq 0xd8(%rsp), %rdi
callq 0x1110
leaq 0x170(%rsp), %rdi
callq 0x1c21
leaq 0x110(%rsp), %rdi
callq 0x195e
leaq 0x220(%rsp), %rdi
callq 0x189b
movq %rbx, %rdi
callq 0x1110
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)