// File: /workspace/github_cpp_makefile_star2_O2/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 $0x278, %rsp            # imm = 0x278
movl %r9d, 0x48(%rsp)
movsd %xmm0, 0x80(%rsp)
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, 0x50(%rsp)
movq %rdi, %rbp
movq 0x2b8(%rsp), %r15
movl 0x2b0(%rsp), %r13d
movl %r8d, 0x5c(%rsp)
movslq %r8d, %rax
leaq (,%rax,8), %rdi
movq %rax, 0xf0(%rsp)
testl %eax, %eax
pushq $-0x1
popq %rax
cmovsq %rax, %rdi
movq %rdi, 0xe8(%rsp)
callq 0x1030
xorl %ecx, %ecx
testl %r13d, %r13d
movl $0x0, %r12d
cmovgl %r13d, %r12d
cmpq %rcx, %r12
je 0x31b9
andq $0x0, (%r15,%rcx,8)
incq %rcx
jmp 0x31aa
movq %r14, 0xc0(%rsp)
movq %rbx, 0xc8(%rsp)
movq %rax, 0xd8(%rsp)
leaq 0x1c8(%rsp), %rbx
xorl %r14d, %r14d
movl $0xb0, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1080
movl 0x5c(%rsp), %r15d
movl %r15d, %edi
movq %rbx, %rsi
callq 0x1938
xorpd %xmm0, %xmm0
leaq 0x100(%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 %r15d, %edi
callq 0x187f
leaq 0x160(%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 %r15d, %edi
callq 0x17c6
movl 0x2b0(%rsp), %eax
movslq %eax, %r13
leaq (,%r13,8), %r15
testl %eax, %eax
pushq $-0x1
popq %rax
cmovsq %rax, %r15
leaq (,%r13,4), %rbx
cmovsq %rax, %rbx
movq %r15, %rdi
callq 0x1030
movq %rax, 0x98(%rsp)
movq %rbx, %rdi
callq 0x1030
movq %rax, 0x90(%rsp)
movq %r15, %rdi
callq 0x1030
movq %rax, 0x88(%rsp)
movq %r15, 0x68(%rsp)
movq %r15, %rdi
callq 0x1030
movq %rax, %rbx
movq 0x50(%rsp), %rax
leal 0x1(%rax), %ecx
movq %rcx, 0x78(%rsp)
leaq (,%rcx,8), %r15
cmpl $-0x1, %eax
pushq $-0x1
popq %rax
cmovlq %rax, %r15
movq %r15, %rdi
callq 0x1030
movq %rax, 0x60(%rsp)
movq %r15, %rdi
callq 0x1030
movq %rax, 0x70(%rsp)
movq %r15, %rdi
callq 0x1030
cvtsi2sdl 0x48(%rsp), %xmm2
cmpq %r14, %r12
je 0x3324
cvtsi2sd %r14d, %xmm0
divsd %xmm2, %xmm0
movsd %xmm0, (%rbx,%r14,8)
incq %r14
jmp 0x330b
movq %rbx, 0x48(%rsp)
movsd 0x80(%rsp), %xmm0
divsd 0x9d9e(%rip), %xmm0     # 0xd0d8
movsd %xmm0, 0x80(%rsp)
movslq 0x50(%rsp), %r8
testq %r8, %r8
pushq $-0x1
popq %rcx
cmovnsq %r8, %rcx
incq %rcx
xorl %edx, %edx
movq 0x88(%rsp), %r14
movq 0x60(%rsp), %r15
movq 0x70(%rsp), %rdi
cmpq %rdx, %rcx
je 0x3386
cvtsi2sd %edx, %xmm0
mulsd 0x80(%rsp), %xmm0
movsd %xmm0, (%r15,%rdx,8)
incq %rdx
jmp 0x3369
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x339d
movsd (%rbp,%rdx,8), %xmm0
movsd %xmm0, (%rdi,%rdx,8)
incq %rdx
jmp 0x3388
leaq -0x1(%r8), %rdx
movq %rdx, 0xd0(%rsp)
movsd -0x8(%rdi,%r8,8), %xmm0
leaq -0x2(%r8), %rdx
addsd %xmm0, %xmm0
subsd -0x10(%rdi,%r8,8), %xmm0
movsd %xmm0, (%rdi,%r8,8)
xorl %esi, %esi
xorpd %xmm0, %xmm0
movsd 0x9c3d(%rip), %xmm3     # 0xd010
cmpq %rsi, %rcx
je 0x33f1
movsd (%rbp,%rsi,8), %xmm1
cmpeqsd %xmm0, %xmm1
andnpd %xmm3, %xmm1
movlpd %xmm1, (%rax,%rsi,8)
incq %rsi
jmp 0x33d3
movsd %xmm2, 0x50(%rsp)
movq 0xd0(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
addsd %xmm0, %xmm0
subsd (%rax,%rdx,8), %xmm0
movsd %xmm0, (%rax,%r8,8)
movq %rdi, %rbp
movq 0x68(%rsp), %rdi
movq %rax, %rbx
callq 0x1030
movq %r15, %rdi
movq %rbp, %rsi
movq 0x78(%rsp), %rbp
movl %ebp, %edx
movq 0x48(%rsp), %r15
movq %r15, %rcx
movl 0x2b0(%rsp), %r8d
movq %rax, 0x68(%rsp)
movq %rax, %r9
callq 0x3dbc
movq 0x60(%rsp), %rdi
movq %rbx, 0xa0(%rsp)
movq %rbx, %rsi
movl %ebp, %edx
movq %r15, %rcx
movl 0x2b0(%rsp), %r8d
movq %r14, %r9
callq 0x3dbc
movsd 0x9b96(%rip), %xmm1     # 0xd010
xorl %eax, %eax
cmpq %rax, %r12
je 0x349f
movsd 0x9c37(%rip), %xmm0     # 0xd0c0
cmpltsd (%r14,%rax,8), %xmm0
andpd %xmm1, %xmm0
movlpd %xmm0, (%r14,%rax,8)
incq %rax
jmp 0x347c
xorl %eax, %eax
movsd 0x9c57(%rip), %xmm0     # 0xd100
xorpd %xmm1, %xmm1
movq 0x68(%rsp), %rbx
cmpq %rax, %r12
je 0x34d8
movsd (%r14,%rax,8), %xmm2
ucomisd %xmm1, %xmm2
movapd %xmm0, %xmm2
jne 0x34c9
jnp 0x34ce
movsd (%rbx,%rax,8), %xmm2
movsd %xmm2, (%rbx,%rax,8)
incq %rax
jmp 0x34b2
movl 0x2b0(%rsp), %eax
movl %eax, %ebp
shlq $0x3, %rbp
testl %eax, %eax
pushq $-0x1
popq %rax
cmovsq %rax, %rbp
movq %rbp, %rdi
callq 0x1030
movq %rax, %r14
movsd (%rbx), %xmm0
mulsd 0x9b23(%rip), %xmm0     # 0xd028
movsd 0x50(%rsp), %xmm2
divsd %xmm2, %xmm0
movsd %xmm0, (%rax)
pushq $0x1
popq %rax
movsd 0x9b0a(%rip), %xmm0     # 0xd028
cmpq %r13, %rax
jge 0x3542
movsd (%rbx,%rax,8), %xmm1
mulsd %xmm0, %xmm1
divsd %xmm2, %xmm1
addsd -0x8(%r14,%rax,8), %xmm1
movsd %xmm1, (%r14,%rax,8)
incq %rax
jmp 0x351e
movq %rbp, %rdi
callq 0x1030
movq %rax, %r15
xorl %ebx, %ebx
cmpq %rbx, %r12
je 0x3572
movsd (%r14,%rbx,8), %xmm0
movsd 0x9ac6(%rip), %xmm1     # 0xd028
callq 0x1120
movsd %xmm0, (%r15,%rbx,8)
incq %rbx
jmp 0x354f
movq %rbp, %rdi
callq 0x1030
movl 0x2b0(%rsp), %ecx
cmpl $0x2, %ecx
pushq $0x1
popq %r12
cmovgel %ecx, %r12d
movq %rax, %r13
decl %r12d
xorl %eax, %eax
movapd 0x9af4(%rip), %xmm0     # 0xd090
movsd 0x50(%rsp), %xmm2
cmpq %rax, %r12
je 0x35c4
movsd 0x8(%r15,%rax,8), %xmm1
subsd (%r15,%rax,8), %xmm1
andpd %xmm0, %xmm1
movlpd %xmm1, (%r13,%rax,8)
incq %rax
jmp 0x35a2
xorl %ebx, %ebx
movsd 0x9b02(%rip), %xmm1     # 0xd0d0
xorl %ebp, %ebp
cmpq %rbx, %r12
je 0x3625
movsd (%r13,%rbx,8), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x3620
movq 0x48(%rsp), %rax
movsd (%rax,%rbx,8), %xmm0
movslq %ebp, %rbp
movq 0x98(%rsp), %rax
movsd %xmm0, (%rax,%rbp,8)
mulsd %xmm2, %xmm0
callq 0x419e
movsd 0x9ac3(%rip), %xmm1     # 0xd0d0
movsd 0x50(%rsp), %xmm2
movq 0x90(%rsp), %rcx
movl %eax, (%rcx,%rbp,4)
incl %ebp
incq %rbx
jmp 0x35d0
movq %r13, %rdi
callq 0x1110
movq %r15, %rdi
callq 0x1110
movq %r14, %rdi
callq 0x1110
movq 0xa0(%rsp), %rdi
callq 0x1110
movq 0x70(%rsp), %rdi
callq 0x1110
movq 0x60(%rsp), %rdi
callq 0x1110
movq 0x48(%rsp), %rdi
callq 0x1110
movq 0x68(%rsp), %rdi
callq 0x1110
leal -0x1(%rbp), %eax
movl %eax, 0xa8(%rsp)
pushq $0x2
popq %rcx
movl 0x5c(%rsp), %edi
movl %edi, %eax
cltd
idivl %ecx
movl %eax, %r9d
testl %eax, %eax
pushq $-0x1
popq %rax
cmovsl %eax, %r9d
incl %r9d
xorl %ecx, %ecx
testl %edi, %edi
movl $0x0, %r12d
cmovgl %edi, %r12d
cvtsi2sd %edi, %xmm0
movl 0x2b0(%rsp), %r8d
decl %r8d
pushq $-0x2
popq %rsi
movl %edi, %eax
cltd
idivl %esi
movq %rax, 0xe0(%rsp)
testl %ebp, %ebp
cmovlel %ecx, %ebp
movq %rbp, 0xf8(%rsp)
movq %r9, 0xb8(%rsp)
shlq $0x4, %r9
movq %r9, 0x78(%rsp)
movq 0xd8(%rsp), %r13
movq 0x88(%rsp), %rbx
movl %r8d, 0xac(%rsp)
movsd %xmm0, 0xb0(%rsp)
cmpq 0xf8(%rsp), %rcx
je 0x3c9a
leaq 0x1(%rcx), %rax
movl 0xa8(%rsp), %edx
cmpl %eax, %edx
movq %rax, 0x68(%rsp)
cmovll %edx, %eax
cltq
movq 0x90(%rsp), %rdx
movslq (%rdx,%rax,4), %rbp
movslq (%rdx,%rcx,4), %rax
movq %rax, 0x50(%rsp)
movsd (%rbx,%rax,8), %xmm0
movsd %xmm0, 0x70(%rsp)
movq 0x98(%rsp), %rax
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x48(%rsp)
movq 0xe8(%rsp), %rbx
movq %rbx, %rdi
callq 0x1030
movq %rax, 0xa0(%rsp)
movq %rbx, %rdi
callq 0x1030
movq %rax, 0x60(%rsp)
movq %rbx, %rdi
callq 0x1030
movq %rax, %r15
movq %rbx, %rdi
callq 0x1030
movq %rax, %rbx
movsd 0x48(%rsp), %xmm0
divsd 0x80(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
callq 0x1180
cvttsd2si %xmm0, %r13d
movq 0xd0(%rsp), %r14
cmpl %r13d, %r14d
cmovll %r14d, %r13d
movsd 0x48(%rsp), %xmm0
callq 0x1050
movsd 0x48(%rsp), %xmm3
cvttsd2si %xmm0, %edx
cmpl %edx, %r14d
cmovll %r14d, %edx
cvtsi2sd %r13d, %xmm0
subsd %xmm0, %xmm3
movslq %r13d, %rax
movslq %edx, %rcx
cmpl %edx, %r13d
jne 0x3827
xorl %esi, %esi
movq 0xc8(%rsp), %r9
movq 0xc0(%rsp), %r8
movq 0xb8(%rsp), %r11
cmpq %rsi, %r11
je 0x387c
movq (%r8,%rax,8), %rdi
movsd (%rdi,%rsi,8), %xmm0
movsd %xmm0, (%r15,%rsi,8)
incq %rsi
jmp 0x380e
movsd 0x97e1(%rip), %xmm0     # 0xd010
subsd %xmm3, %xmm0
xorl %esi, %esi
movq 0xc8(%rsp), %r9
movq 0xc0(%rsp), %r10
movq 0xb8(%rsp), %r11
cmpq %rsi, %r11
je 0x387c
movq (%r10,%rax,8), %rdi
movq (%r10,%rcx,8), %r8
movsd (%r8,%rsi,8), %xmm1
mulsd %xmm3, %xmm1
movsd (%rdi,%rsi,8), %xmm2
mulsd %xmm0, %xmm2
addsd %xmm1, %xmm2
movsd %xmm2, (%r15,%rsi,8)
incq %rsi
jmp 0x384d
cmpl %edx, %r13d
jne 0x389f
xorl %ecx, %ecx
cmpq %rcx, %r11
je 0x38de
movq (%r9,%rax,8), %rdx
movsd (%rdx,%rcx,8), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, (%rbx,%rcx,8)
incq %rcx
jmp 0x3883
movsd 0x9769(%rip), %xmm0     # 0xd010
subsd %xmm3, %xmm0
xorl %edx, %edx
cmpq %rdx, %r11
je 0x38de
movq (%r9,%rax,8), %rsi
movq (%r9,%rcx,8), %rdi
movsd (%rdi,%rdx,8), %xmm1
mulsd %xmm3, %xmm1
movsd (%rsi,%rdx,8), %xmm2
mulsd %xmm0, %xmm2
addsd %xmm1, %xmm2
mulsd %xmm2, %xmm2
movsd %xmm2, (%rbx,%rdx,8)
incq %rdx
jmp 0x38ad
movsd 0x97da(%rip), %xmm0     # 0xd0c0
ucomisd 0x70(%rsp), %xmm0
jae 0x3941
xorl %r14d, %r14d
movl 0x1c8(%rsp), %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
cltq
cmpq %rax, %r14
jg 0x3957
movsd 0x9703(%rip), %xmm0     # 0xd010
subsd (%rbx,%r14,8), %xmm0
mulsd (%r15,%r14,8), %xmm0
addsd 0x97cf(%rip), %xmm0     # 0xd0f0
callq 0x10a0
mulsd 0x9792(%rip), %xmm0     # 0xd0c0
movq 0x1d0(%rsp), %rax
movsd %xmm0, (%rax,%r14,8)
incq %r14
jmp 0x38f1
xorl %eax, %eax
movq 0x60(%rsp), %rcx
cmpq %rax, %r12
je 0x39c8
andq $0x0, (%rcx,%rax,8)
incq %rax
jmp 0x3948
leaq 0x1c8(%rsp), %rdi
callq 0x19f6
movq 0x1d8(%rsp), %rax
movq 0x110(%rsp), %rcx
xorl %edx, %edx
movq 0x78(%rsp), %rsi
cmpq %rdx, %rsi
je 0x399c
movsd (%rax,%rdx), %xmm0
movsd %xmm0, (%rcx,%rdx)
movsd 0x8(%rax,%rdx), %xmm0
movsd %xmm0, 0x8(%rcx,%rdx)
addq $0x10, %rdx
jmp 0x397b
pushq $0x9
popq %rcx
movq %rsp, %rdi
leaq 0x118(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x752b
movq 0x108(%rsp), %rdi
movl 0x5c(%rsp), %esi
movq 0x60(%rsp), %rdx
callq 0x3d00
subq 0x50(%rsp), %rbp
testl %ebp, %ebp
movl $0x0, %r14d
cmovgl %ebp, %r14d
xorpd %xmm2, %xmm2
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x3a0d
movsd %xmm2, 0x48(%rsp)
callq 0x431e
movsd 0x48(%rsp), %xmm2
movq 0x168(%rsp), %rax
movsd %xmm0, (%rax,%r13,8)
addsd %xmm0, %xmm2
incq %r13
jmp 0x39e0
cvtsi2sd %ebp, %xmm1
divsd %xmm1, %xmm2
movq 0x168(%rsp), %rax
xorl %ecx, %ecx
movq 0xd8(%rsp), %r13
cmpq %rcx, %r14
je 0x3a3f
movsd (%rax,%rcx,8), %xmm0
subsd %xmm2, %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
jmp 0x3a27
movq 0x168(%rsp), %rax
movq 0xf0(%rsp), %rcx
cmpq %rcx, %rbp
jge 0x3a5e
andq $0x0, (%rax,%rbp,8)
incq %rbp
jmp 0x3a4f
movsd %xmm1, 0x48(%rsp)
pushq $0x9
popq %rcx
movq %rsp, %rdi
leaq 0x178(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x752b
movsd 0x70(%rsp), %xmm0
ucomisd 0x9670(%rip), %xmm0     # 0xd0f8
jne 0x3a8c
jnp 0x3acf
xorl %r14d, %r14d
pushq $0x2
popq %rbp
movl 0x1c8(%rsp), %eax
cltd
idivl %ebp
cltq
cmpq %rax, %r14
jg 0x3b0c
movsd (%r15,%r14,8), %xmm0
mulsd (%rbx,%r14,8), %xmm0
callq 0x10a0
mulsd 0x9604(%rip), %xmm0     # 0xd0c0
movq 0x1d0(%rsp), %rax
movsd %xmm0, (%rax,%r14,8)
incq %r14
jmp 0x3a92
xorl %r14d, %r14d
pushq $0x2
popq %rbp
movl 0x1c8(%rsp), %eax
cltd
idivl %ebp
cltq
cmpq %rax, %r14
jg 0x3b0c
movsd (%r15,%r14,8), %xmm0
callq 0x10a0
mulsd 0x95c7(%rip), %xmm0     # 0xd0c0
movq 0x1d0(%rsp), %rax
movsd %xmm0, (%rax,%r14,8)
incq %r14
jmp 0x3ad5
leaq 0x1c8(%rsp), %rdi
callq 0x19f6
movq 0x1d8(%rsp), %rax
movq 0x110(%rsp), %rcx
movq 0x170(%rsp), %rdx
xorl %esi, %esi
movq 0x78(%rsp), %rdi
movq 0xa0(%rsp), %r14
cmpq %rsi, %rdi
je 0x3b9a
movsd (%rax,%rsi), %xmm0
movsd %xmm0, (%rcx,%rsi)
movsd 0x8(%rax,%rsi), %xmm0
movsd %xmm0, 0x8(%rcx,%rsi)
movsd (%rax,%rsi), %xmm1
mulsd 0x8(%rdx,%rsi), %xmm0
mulsd (%rdx,%rsi), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%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
jmp 0x3b40
pushq $0x9
popq %rcx
movq %rsp, %rdi
leaq 0x118(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x752b
movq 0x108(%rsp), %rdi
movl 0x5c(%rsp), %esi
movq %r14, %rdx
callq 0x3d00
movsd 0x48(%rsp), %xmm0
ucomisd 0x9526(%rip), %xmm0     # 0xd0f8
jb 0x3bda
sqrtsd %xmm0, %xmm0
jmp 0x3bdf
callq 0x1090
movsd 0xb0(%rsp), %xmm2
movq 0x60(%rsp), %rcx
xorl %eax, %eax
cmpq %rax, %r12
je 0x3c13
movsd (%rcx,%rax,8), %xmm1
mulsd %xmm0, %xmm1
addsd (%r14,%rax,8), %xmm1
divsd %xmm2, %xmm1
movsd %xmm1, (%r13,%rax,8)
incq %rax
jmp 0x3bef
movq %r15, %rdi
movq %rcx, %r15
callq 0x1110
movq %rbx, %rdi
callq 0x1110
movq %r15, %rdi
callq 0x1110
movq %r14, %rdi
callq 0x1110
movq 0xe0(%rsp), %rax
movq 0x50(%rsp), %rcx
addl %ecx, %eax
xorl %ecx, %ecx
movq 0x2b8(%rsp), %rsi
movl 0xac(%rsp), %r8d
movq 0x88(%rsp), %rbx
pushq $-0x1
popq %rdi
cmpq %rcx, %r12
je 0x3c90
movl %eax, %edx
addl %ecx, %edx
cmovsl %edi, %edx
incl %edx
cmpl %edx, %r8d
cmovll %r8d, %edx
movsd (%r13,%rcx,8), %xmm0
movslq %edx, %rdx
addsd (%rsi,%rdx,8), %xmm0
movsd %xmm0, (%rsi,%rdx,8)
incq %rcx
jmp 0x3c62
movq 0x68(%rsp), %rcx
jmp 0x3703
movq 0x98(%rsp), %rdi
callq 0x1110
movq 0x90(%rsp), %rdi
callq 0x1110
movq %rbx, %rdi
callq 0x1110
leaq 0x1c8(%rsp), %rdi
callq 0x1b6e
leaq 0x100(%rsp), %rdi
callq 0x18fb
leaq 0x160(%rsp), %rdi
callq 0x1842
movq %r13, %rdi
callq 0x1110
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)