// File: /workspace/github_c_makefile_star2_O0/PoulinV[P]AxiCLASS/build/../source/fourier.c
// Function: fourier_pk_linear
int fourier_pk_linear(
                      struct background *pba,
                      struct perturbations *ppt,
                      struct primordial *ppm,
                      struct fourier *pfo,
                      int index_pk,
                      int index_tau,
                      int k_size,
                      double * lnpk,    //lnpk[index_k]
                      double * lnpk_ic  //lnpk[index_k * pfo->ic_ic_size + index_ic1_ic2]
                      ) {

  int index_k;
  int index_tp;
  int index_ic1,index_ic2,index_ic1_ic1,index_ic1_ic2,index_ic2_ic2;
  double * primordial_pk;
  double pk;
  double * pk_ic;
  double source_ic1;
  double source_ic2;
  double cosine_correlation;

  /** - allocate temporary vector where the primordial spectrum will be stored */

  class_alloc(primordial_pk,pfo->ic_ic_size*sizeof(double),pfo->error_message);

  class_alloc(pk_ic,pfo->ic_ic_size*sizeof(double),pfo->error_message);

  if ((pfo->has_pk_m == _TRUE_) && (index_pk == pfo->index_pk_m)) {
    index_tp = ppt->index_tp_delta_m;
  }
  else if ((pfo->has_pk_cb == _TRUE_) && (index_pk == pfo->index_pk_cb)) {
    index_tp = ppt->index_tp_delta_cb;
  }
  else {
    class_stop(pfo->error_message,"P(k) is set neither to total matter nor to cold dark matter + baryons");
  }

  /** - loop over k values */
  for (index_k=0; index_k<k_size; index_k++) {

    /** --> get primordial spectrum */
    ppm->calling_from_pk = _TRUE_;
    class_call(primordial_spectrum_at_k(ppm,pfo->index_md_scalars,logarithmic,pfo->ln_k[index_k],primordial_pk),
               ppm->error_message,
               pfo->error_message);
    ppm->calling_from_pk = _FALSE_;

    /** --> initialize a local variable for P_m(k) and P_cb(k) to zero */
    pk = 0.;

    /** --> here we recall the relations relevant for the nomalization fo the power spectrum:
        For adiabatic modes, the curvature primordial spectrum thnat we just read was:
        P_R(k) = 1/(2pi^2) k^3 < R R >
        Thus the primordial curvature correlator is given by:
        < R R > = (2pi^2) k^-3 P_R(k)
        So the delta_m correlator reads:
        P(k) = < delta_m delta_m > = (source_m)^2 < R R > = (2pi^2) k^-3 (source_m)^2 P_R(k)

        For isocurvature or cross adiabatic-isocurvature parts,
        one would just replace one or two 'R' by 'S_i's */

    /** --> get contributions to P(k) diagonal in the initial conditions */
    for (index_ic1 = 0; index_ic1 < pfo->ic_size; index_ic1++) {

      index_ic1_ic1 = index_symmetric_matrix(index_ic1,index_ic1,pfo->ic_size);

      class_call(fourier_get_source(pba,
                                    ppt,
                                    pfo,
                                    index_k,
                                    index_ic1,
                                    index_tp,
                                    index_tau,
                                    ppt->sources[pfo->index_md_scalars],
                                    &source_ic1),
                 pfo->error_message,
                 pfo->error_message);

      pk_ic[index_ic1_ic1] = 2.*_PI_*_PI_/exp(3.*pfo->ln_k[index_k])
        *source_ic1*source_ic1
        *exp(primordial_pk[index_ic1_ic1]);

      pk += pk_ic[index_ic1_ic1];

      if (lnpk_ic != NULL) {
        lnpk_ic[index_k * pfo->ic_ic_size + index_ic1_ic1] = log(pk_ic[index_ic1_ic1]);
      }
    }

    /** --> get contributions to P(k) non-diagonal in the initial conditions */
    for (index_ic1 = 0; index_ic1 < pfo->ic_size; index_ic1++) {
      for (index_ic2 = index_ic1+1; index_ic2 < pfo->ic_size; index_ic2++) {

        index_ic1_ic2 = index_symmetric_matrix(index_ic1,index_ic2,pfo->ic_size);
        index_ic1_ic1 = index_symmetric_matrix(index_ic1,index_ic1,pfo->ic_size);
        index_ic2_ic2 = index_symmetric_matrix(index_ic2,index_ic2,pfo->ic_size);

        if (pfo->is_non_zero[index_ic1_ic2] == _TRUE_) {

          class_call(fourier_get_source(pba,
                                        ppt,
                                        pfo,
                                        index_k,
                                        index_ic1,
                                        index_tp,
                                        index_tau,
                                        ppt->sources[pfo->index_md_scalars],
                                        &source_ic1),
                     pfo->error_message,
                     pfo->error_message);

          class_call(fourier_get_source(pba,
                                        ppt,
                                        pfo,
                                        index_k,
                                        index_ic2,
                                        index_tp,
                                        index_tau,
                                        ppt->sources[pfo->index_md_scalars],
                                        &source_ic2),
                     pfo->error_message,
                     pfo->error_message);

          cosine_correlation = primordial_pk[index_ic1_ic2]*SIGN(source_ic1)*SIGN(source_ic2);

          pk_ic[index_ic1_ic2] = cosine_correlation * sqrt(pk_ic[index_ic1_ic1]*pk_ic[index_ic2_ic2]);

          pk += 2.*pk_ic[index_ic1_ic2];

          if (lnpk_ic != NULL) {
            lnpk_ic[index_k * pfo->ic_ic_size + index_ic1_ic2] = cosine_correlation;
          }
        }
        else {
          if (lnpk_ic != NULL) {
            lnpk_ic[index_k * pfo->ic_ic_size + index_ic1_ic2] = 0.;
          }
        }
      }
    }

    lnpk[index_k] = log(pk);
  }

  free(primordial_pk);
  free(pk_ic);

  return _SUCCESS_;

}

// Assembly:
subq $0x40f8, %rsp           # imm = 0x40F8
movq 0x4110(%rsp), %rax
movq 0x4108(%rsp), %rax
movl 0x4100(%rsp), %eax
movq %rdi, 0x40e8(%rsp)
movq %rsi, 0x40e0(%rsp)
movq %rdx, 0x40d8(%rsp)
movq %rcx, 0x40d0(%rsp)
movl %r8d, 0x40cc(%rsp)
movl %r9d, 0x40c8(%rsp)
movq 0x40d0(%rsp), %rax
movslq 0x44(%rax), %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, 0x40a0(%rsp)
cmpq $0x0, 0x40a0(%rsp)
jne 0x12d542
movq 0x40d0(%rsp), %rax
movslq 0x44(%rax), %rax
shlq $0x3, %rax
movl %eax, 0x4074(%rsp)
leaq 0x3870(%rsp), %rdi
movl 0x4074(%rsp), %ecx
leaq 0xa4b11(%rip), %rsi     # 0x1d2004
leaq 0xd4bab(%rip), %rdx     # 0x2020a5
movb $0x0, %al
callq 0x5b9c0
movq 0x40d0(%rsp), %rdi
addq $0x192, %rdi            # imm = 0x192
leaq 0x3870(%rsp), %r8
leaq 0xa4b15(%rip), %rsi     # 0x1d2034
leaq 0xd4b8d(%rip), %rdx     # 0x2020b3
movl $0x983, %ecx            # imm = 0x983
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x40f4(%rsp)
jmp 0x12e0f6
movq 0x40d0(%rsp), %rax
movslq 0x44(%rax), %rdi
shlq $0x3, %rdi
callq 0x8460
movq %rax, 0x4090(%rsp)
cmpq $0x0, 0x4090(%rsp)
jne 0x12d5e6
movq 0x40d0(%rsp), %rax
movslq 0x44(%rax), %rax
shlq $0x3, %rax
movl %eax, 0x386c(%rsp)
leaq 0x3060(%rsp), %rdi
movl 0x386c(%rsp), %ecx
leaq 0xa4a6d(%rip), %rsi     # 0x1d2004
leaq 0xe621d(%rip), %rdx     # 0x2137bb
movb $0x0, %al
callq 0x5b9c0
movq 0x40d0(%rsp), %rdi
addq $0x192, %rdi            # imm = 0x192
leaq 0x3060(%rsp), %r8
leaq 0xa4a71(%rip), %rsi     # 0x1d2034
leaq 0xd4ae9(%rip), %rdx     # 0x2020b3
movl $0x985, %ecx            # imm = 0x985
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x40f4(%rsp)
jmp 0x12e0f6
movq 0x40d0(%rsp), %rax
movswl 0x50(%rax), %eax
cmpl $0x1, %eax
jne 0x12d625
movl 0x40cc(%rsp), %eax
movq 0x40d0(%rsp), %rcx
cmpl 0x54(%rcx), %eax
jne 0x12d625
movq 0x40e0(%rsp), %rax
movl 0x8d8(%rax), %eax
movl %eax, 0x40c0(%rsp)
jmp 0x12d6d8
movq 0x40d0(%rsp), %rax
movswl 0x52(%rax), %eax
cmpl $0x1, %eax
jne 0x12d661
movl 0x40cc(%rsp), %eax
movq 0x40d0(%rsp), %rcx
cmpl 0x58(%rcx), %eax
jne 0x12d661
movq 0x40e0(%rsp), %rax
movl 0x8dc(%rax), %eax
movl %eax, 0x40c0(%rsp)
jmp 0x12d6d6
leaq 0x2860(%rsp), %rdi
leaq 0xd4a55(%rip), %rsi     # 0x2020c5
movb $0x0, %al
callq 0x5b9c0
leaq 0x2060(%rsp), %rdi
leaq 0x2860(%rsp), %rdx
leaq 0xa4edf(%rip), %rsi     # 0x1d256d
movb $0x0, %al
callq 0x5b9c0
movq 0x40d0(%rsp), %rdi
addq $0x192, %rdi            # imm = 0x192
leaq 0x2060(%rsp), %r8
leaq 0xa4981(%rip), %rsi     # 0x1d2034
leaq 0xd49f9(%rip), %rdx     # 0x2020b3
movl $0x98e, %ecx            # imm = 0x98E
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x40f4(%rsp)
jmp 0x12e0f6
jmp 0x12d6d8
movl $0x0, 0x40c4(%rsp)
movl 0x40c4(%rsp), %eax
cmpl 0x4100(%rsp), %eax
jge 0x12e0d1
movq 0x40d8(%rsp), %rax
movw $0x1, 0xb2c(%rax)
movq 0x40d8(%rsp), %rdi
movq 0x40d0(%rsp), %rax
movl 0x3c(%rax), %esi
movq 0x40d0(%rsp), %rax
movq 0x80(%rax), %rax
movslq 0x40c4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x40a0(%rsp), %rcx
movl $0x1, %edx
callq 0x1103c0
cmpl $0x1, %eax
jne 0x12d7bb
leaq 0x1860(%rsp), %rdi
movq 0x40d8(%rsp), %rcx
addq $0x32a, %rcx            # imm = 0x32A
leaq 0xa4c6c(%rip), %rsi     # 0x1d23d8
leaq 0xd4998(%rip), %rdx     # 0x20210b
movb $0x0, %al
callq 0x5b9c0
movq 0x40d0(%rsp), %rdi
addq $0x192, %rdi            # imm = 0x192
leaq 0x1860(%rsp), %r8
leaq 0xa489c(%rip), %rsi     # 0x1d2034
leaq 0xd4914(%rip), %rdx     # 0x2020b3
movl $0x998, %ecx            # imm = 0x998
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x40f4(%rsp)
jmp 0x12e0f6
movq 0x40d8(%rsp), %rax
movw $0x0, 0xb2c(%rax)
xorps %xmm0, %xmm0
movsd %xmm0, 0x4098(%rsp)
movl $0x0, 0x40bc(%rsp)
movl 0x40bc(%rsp), %eax
movq 0x40d0(%rsp), %rcx
cmpl 0x40(%rcx), %eax
jge 0x12daa5
movl 0x40bc(%rsp), %eax
cmpl 0x40bc(%rsp), %eax
jg 0x12d855
movl 0x40bc(%rsp), %eax
movq 0x40d0(%rsp), %rcx
movl 0x40(%rcx), %ecx
imull 0x40bc(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x58(%rsp)
movl 0x40bc(%rsp), %eax
movl 0x40bc(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x58(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x5c(%rsp)
jmp 0x12d89d
movl 0x40bc(%rsp), %eax
movq 0x40d0(%rsp), %rcx
movl 0x40(%rcx), %ecx
imull 0x40bc(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x54(%rsp)
movl 0x40bc(%rsp), %eax
movl 0x40bc(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x54(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x5c(%rsp)
movl 0x5c(%rsp), %eax
movl %eax, 0x40b4(%rsp)
movq 0x40e8(%rsp), %rdi
movq 0x40e0(%rsp), %rsi
movq 0x40d0(%rsp), %rdx
movl 0x40c4(%rsp), %ecx
movl 0x40bc(%rsp), %r8d
movl 0x40c0(%rsp), %r9d
movl 0x40c8(%rsp), %r11d
movq 0x40e0(%rsp), %rax
movq 0xa38(%rax), %rax
movq 0x40d0(%rsp), %r10
movslq 0x3c(%r10), %r10
movq (%rax,%r10,8), %r10
leaq 0x4088(%rsp), %rax
movl %r11d, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x12f260
cmpl $0x1, %eax
jne 0x12d98b
leaq 0x1060(%rsp), %rdi
movq 0x40d0(%rsp), %rcx
addq $0x192, %rcx            # imm = 0x192
leaq 0xa4a9c(%rip), %rsi     # 0x1d23d8
leaq 0xd4829(%rip), %rdx     # 0x20216c
movb $0x0, %al
callq 0x5b9c0
movq 0x40d0(%rsp), %rdi
addq $0x192, %rdi            # imm = 0x192
leaq 0x1060(%rsp), %r8
leaq 0xa46cc(%rip), %rsi     # 0x1d2034
leaq 0xd4744(%rip), %rdx     # 0x2020b3
movl $0x9b8, %ecx            # imm = 0x9B8
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x40f4(%rsp)
jmp 0x12e0f6
movq 0x40d0(%rsp), %rax
movq 0x80(%rax), %rax
movslq 0x40c4(%rsp), %rcx
movsd 0xa5cee(%rip), %xmm0    # 0x1d3698
mulsd (%rax,%rcx,8), %xmm0
callq 0x8670
movaps %xmm0, %xmm1
movsd 0xd1c41(%rip), %xmm0    # 0x1ff600
divsd %xmm1, %xmm0
mulsd 0x4088(%rsp), %xmm0
mulsd 0x4088(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
movq 0x40a0(%rsp), %rax
movslq 0x40b4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x8670
movaps %xmm0, %xmm1
movsd 0x48(%rsp), %xmm0
mulsd %xmm1, %xmm0
movq 0x4090(%rsp), %rax
movslq 0x40b4(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x4090(%rsp), %rax
movslq 0x40b4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
addsd 0x4098(%rsp), %xmm0
movsd %xmm0, 0x4098(%rsp)
cmpq $0x0, 0x4110(%rsp)
je 0x12da8d
movq 0x4090(%rsp), %rax
movslq 0x40b4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movq 0x4110(%rsp), %rax
movl 0x40c4(%rsp), %ecx
movq 0x40d0(%rsp), %rdx
imull 0x44(%rdx), %ecx
addl 0x40b4(%rsp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x12da8f
movl 0x40bc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x40bc(%rsp)
jmp 0x12d7e3
movl $0x0, 0x40bc(%rsp)
movl 0x40bc(%rsp), %eax
movq 0x40d0(%rsp), %rcx
cmpl 0x40(%rcx), %eax
jge 0x12e098
movl 0x40bc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x40b8(%rsp)
movl 0x40b8(%rsp), %eax
movq 0x40d0(%rsp), %rcx
cmpl 0x40(%rcx), %eax
jge 0x12e080
movl 0x40bc(%rsp), %eax
cmpl 0x40b8(%rsp), %eax
jg 0x12db4b
movl 0x40b8(%rsp), %eax
movq 0x40d0(%rsp), %rcx
movl 0x40(%rcx), %ecx
imull 0x40bc(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x40(%rsp)
movl 0x40bc(%rsp), %eax
movl 0x40bc(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x40(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x44(%rsp)
jmp 0x12db93
movl 0x40bc(%rsp), %eax
movq 0x40d0(%rsp), %rcx
movl 0x40(%rcx), %ecx
imull 0x40b8(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x3c(%rsp)
movl 0x40b8(%rsp), %eax
movl 0x40b8(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x3c(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x44(%rsp)
movl 0x44(%rsp), %eax
movl %eax, 0x40b0(%rsp)
movl 0x40bc(%rsp), %eax
cmpl 0x40bc(%rsp), %eax
jg 0x12dbf8
movl 0x40bc(%rsp), %eax
movq 0x40d0(%rsp), %rcx
movl 0x40(%rcx), %ecx
imull 0x40bc(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x34(%rsp)
movl 0x40bc(%rsp), %eax
movl 0x40bc(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x34(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x38(%rsp)
jmp 0x12dc40
movl 0x40bc(%rsp), %eax
movq 0x40d0(%rsp), %rcx
movl 0x40(%rcx), %ecx
imull 0x40bc(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x30(%rsp)
movl 0x40bc(%rsp), %eax
movl 0x40bc(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x30(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x38(%rsp)
movl 0x38(%rsp), %eax
movl %eax, 0x40b4(%rsp)
movl 0x40b8(%rsp), %eax
cmpl 0x40b8(%rsp), %eax
jg 0x12dca5
movl 0x40b8(%rsp), %eax
movq 0x40d0(%rsp), %rcx
movl 0x40(%rcx), %ecx
imull 0x40b8(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x28(%rsp)
movl 0x40b8(%rsp), %eax
movl 0x40b8(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x28(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x2c(%rsp)
jmp 0x12dced
movl 0x40b8(%rsp), %eax
movq 0x40d0(%rsp), %rcx
movl 0x40(%rcx), %ecx
imull 0x40b8(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x24(%rsp)
movl 0x40b8(%rsp), %eax
movl 0x40b8(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x24(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
movl %eax, 0x40ac(%rsp)
movq 0x40d0(%rsp), %rax
movq 0x48(%rax), %rax
movslq 0x40b0(%rsp), %rcx
movswl (%rax,%rcx,2), %eax
cmpl $0x1, %eax
jne 0x12e02e
movq 0x40e8(%rsp), %rdi
movq 0x40e0(%rsp), %rsi
movq 0x40d0(%rsp), %rdx
movl 0x40c4(%rsp), %ecx
movl 0x40bc(%rsp), %r8d
movl 0x40c0(%rsp), %r9d
movl 0x40c8(%rsp), %r11d
movq 0x40e0(%rsp), %rax
movq 0xa38(%rax), %rax
movq 0x40d0(%rsp), %r10
movslq 0x3c(%r10), %r10
movq (%rax,%r10,8), %r10
leaq 0x4088(%rsp), %rax
movl %r11d, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x12f260
cmpl $0x1, %eax
jne 0x12ddfc
leaq 0x860(%rsp), %rdi
movq 0x40d0(%rsp), %rcx
addq $0x192, %rcx            # imm = 0x192
leaq 0xa462b(%rip), %rsi     # 0x1d23d8
leaq 0xd43b8(%rip), %rdx     # 0x20216c
movb $0x0, %al
callq 0x5b9c0
movq 0x40d0(%rsp), %rdi
addq $0x192, %rdi            # imm = 0x192
leaq 0x860(%rsp), %r8
leaq 0xa425b(%rip), %rsi     # 0x1d2034
leaq 0xd42d3(%rip), %rdx     # 0x2020b3
movl $0x9d9, %ecx            # imm = 0x9D9
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x40f4(%rsp)
jmp 0x12e0f6
movq 0x40e8(%rsp), %rdi
movq 0x40e0(%rsp), %rsi
movq 0x40d0(%rsp), %rdx
movl 0x40c4(%rsp), %ecx
movl 0x40b8(%rsp), %r8d
movl 0x40c0(%rsp), %r9d
movl 0x40c8(%rsp), %r11d
movq 0x40e0(%rsp), %rax
movq 0xa38(%rax), %rax
movq 0x40d0(%rsp), %r10
movslq 0x3c(%r10), %r10
movq (%rax,%r10,8), %r10
leaq 0x4080(%rsp), %rax
movl %r11d, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x12f260
cmpl $0x1, %eax
jne 0x12ded9
leaq 0x60(%rsp), %rdi
movq 0x40d0(%rsp), %rcx
addq $0x192, %rcx            # imm = 0x192
leaq 0xa454b(%rip), %rsi     # 0x1d23d8
leaq 0xd4355(%rip), %rdx     # 0x2021e9
movb $0x0, %al
callq 0x5b9c0
movq 0x40d0(%rsp), %rdi
addq $0x192, %rdi            # imm = 0x192
leaq 0x60(%rsp), %r8
leaq 0xa417e(%rip), %rsi     # 0x1d2034
leaq 0xd41f6(%rip), %rdx     # 0x2020b3
movl $0x9e5, %ecx            # imm = 0x9E5
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x40f4(%rsp)
jmp 0x12e0f6
movq 0x40a0(%rsp), %rax
movslq 0x40b0(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0x4088(%rsp), %xmm2
movsd 0xa4349(%rip), %xmm4    # 0x1d2248
movsd 0xa48c9(%rip), %xmm3    # 0x1d27d0
xorps %xmm1, %xmm1
cmpltsd %xmm2, %xmm1
movaps %xmm1, %xmm2
andpd %xmm4, %xmm2
andnpd %xmm3, %xmm1
orpd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd 0x4080(%rsp), %xmm2
movsd 0xa4315(%rip), %xmm4    # 0x1d2248
movsd 0xa4895(%rip), %xmm3    # 0x1d27d0
xorps %xmm1, %xmm1
cmpltsd %xmm2, %xmm1
movaps %xmm1, %xmm2
andpd %xmm4, %xmm2
andnpd %xmm3, %xmm1
orpd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, 0x4078(%rsp)
movsd 0x4078(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x4090(%rsp), %rax
movslq 0x40b4(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x4090(%rsp), %rax
movslq 0x40ac(%rsp), %rcx
mulsd (%rax,%rcx,8), %xmm0
callq 0x82e0
movaps %xmm0, %xmm1
movsd 0x18(%rsp), %xmm0
mulsd %xmm1, %xmm0
movq 0x4090(%rsp), %rax
movslq 0x40b0(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0x4090(%rsp), %rax
movslq 0x40b0(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0x4098(%rsp), %xmm1
addsd %xmm0, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x4098(%rsp)
cmpq $0x0, 0x4110(%rsp)
je 0x12e02c
movsd 0x4078(%rsp), %xmm0
movq 0x4110(%rsp), %rax
movl 0x40c4(%rsp), %ecx
movq 0x40d0(%rsp), %rdx
imull 0x44(%rdx), %ecx
addl 0x40b0(%rsp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x12e068
cmpq $0x0, 0x4110(%rsp)
je 0x12e066
movq 0x4110(%rsp), %rax
movl 0x40c4(%rsp), %ecx
movq 0x40d0(%rsp), %rdx
imull 0x44(%rdx), %ecx
addl 0x40b0(%rsp), %ecx
movslq %ecx, %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x12e068
jmp 0x12e06a
movl 0x40b8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x40b8(%rsp)
jmp 0x12dad9
jmp 0x12e082
movl 0x40bc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x40bc(%rsp)
jmp 0x12dab0
movsd 0x4098(%rsp), %xmm0
callq 0x82f0
movq 0x4108(%rsp), %rax
movslq 0x40c4(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x40c4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x40c4(%rsp)
jmp 0x12d6e3
movq 0x40a0(%rsp), %rdi
callq 0x8420
movq 0x4090(%rsp), %rdi
callq 0x8420
movl $0x0, 0x40f4(%rsp)
movl 0x40f4(%rsp), %eax
addq $0x40f8, %rsp           # imm = 0x40F8
retq
nopw %cs:(%rax,%rax)