// File: /workspace/github_c_makefile_star2_O0/PoulinV[P]AxiCLASS/build/../source/primordial.c
// Function: primordial_spectrum_at_k
int primordial_spectrum_at_k(
                             struct primordial * ppm,
                             int index_md,
                             enum linear_or_logarithmic mode,
                             double input,
                             double * output /* array with argument output[index_ic1_ic2] (must be already allocated) */
                             ) {

  /** Summary: */

  /** - define local variables */

  int index_ic1,index_ic2,index_ic1_ic2;
  double lnk;
  int last_index;

  /** - infer ln(k) from input. In linear mode, reject negative value of input k value. */

  if (mode == linear) {
    class_test(input<=0.,
               ppm->error_message,
               "k = %e",input);
    lnk=log(input);
  }
  else {
    lnk = input;
  }

  /** - if ln(k) is not in the interpolation range, return an error, unless
      we are in the case of a analytic spectrum, for which a direct computation is possible */

  if ((lnk > ppm->lnk[ppm->lnk_size-1]) || (lnk < ppm->lnk[0])) {

    class_test(ppm->primordial_spec_type != analytic_Pk,
               ppm->error_message,
               "k=%e out of range [%e : %e]",exp(lnk),exp(ppm->lnk[0]),exp(ppm->lnk[ppm->lnk_size-1]));

    /* direct computation */

    for (index_ic1 = 0; index_ic1 < ppm->ic_size[index_md]; index_ic1++) {
      for (index_ic2 = index_ic1; index_ic2 < ppm->ic_size[index_md]; index_ic2++) {

        index_ic1_ic2 = index_symmetric_matrix(index_ic1,index_ic2,ppm->ic_size[index_md]);

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

          class_call(primordial_analytic_spectrum(ppm,
                                                  index_md,
                                                  index_ic1_ic2,
                                                  exp(lnk),
                                                  &(output[index_ic1_ic2])),
                     ppm->error_message,
                     ppm->error_message);
        }
        else {
          output[index_ic1_ic2] = 0.;
        }
      }
    }

    /* if mode==linear, output is already in the correct format. Otherwise, apply necessary transformation. */

    if (mode == logarithmic) {

      for (index_ic1 = 0; index_ic1 < ppm->ic_size[index_md]; index_ic1++) {
        index_ic1_ic2 = index_symmetric_matrix(index_ic1,index_ic1,ppm->ic_size[index_md]);
        output[index_ic1_ic2] = log(output[index_ic1_ic2]);
      }
      for (index_ic1 = 0; index_ic1 < ppm->ic_size[index_md]; index_ic1++) {
        for (index_ic2 = index_ic1+1; index_ic2 < ppm->ic_size[index_md]; index_ic2++) {
          index_ic1_ic2 = index_symmetric_matrix(index_ic1,index_ic2,ppm->ic_size[index_md]);
          if (ppm->is_non_zero[index_md][index_ic1_ic2] == _TRUE_) {
            output[index_ic1_ic2] /= sqrt(output[index_symmetric_matrix(index_ic1,index_ic1,ppm->ic_size[index_md])]*
                                          output[index_symmetric_matrix(index_ic2,index_ic2,ppm->ic_size[index_md])]);
          }
        }
      }
    }
  }

  /** - otherwise, interpolate in the pre-computed table */

  else {
    // printf("interpolate! need to bypass\n");

    if(ppm->is_primordial_Pk_different ==_TRUE_){
      if (ppm->is_non_zero[index_md][index_ic1_ic2] == _TRUE_) {

        class_call(primordial_analytic_spectrum(ppm,
                                                index_md,
                                                index_ic1_ic2,
                                                exp(lnk),
                                                &(output[index_ic1_ic2])),
                   ppm->error_message,
                   ppm->error_message);
      }
      else {
        output[index_ic1_ic2] = 0.;
      }

      /* if mode==linear, output is already in the correct format. Otherwise, apply necessary transformation. */

      if (mode == logarithmic) {

        for (index_ic1 = 0; index_ic1 < ppm->ic_size[index_md]; index_ic1++) {
          index_ic1_ic2 = index_symmetric_matrix(index_ic1,index_ic1,ppm->ic_size[index_md]);
          output[index_ic1_ic2] = log(output[index_ic1_ic2]);
        }
        for (index_ic1 = 0; index_ic1 < ppm->ic_size[index_md]; index_ic1++) {
          for (index_ic2 = index_ic1+1; index_ic2 < ppm->ic_size[index_md]; index_ic2++) {
            index_ic1_ic2 = index_symmetric_matrix(index_ic1,index_ic2,ppm->ic_size[index_md]);
            if (ppm->is_non_zero[index_md][index_ic1_ic2] == _TRUE_) {
              output[index_ic1_ic2] /= sqrt(output[index_symmetric_matrix(index_ic1,index_ic1,ppm->ic_size[index_md])]*
                                            output[index_symmetric_matrix(index_ic2,index_ic2,ppm->ic_size[index_md])]);
            }
          }
        }
      }


    }else{
    class_call(array_interpolate_spline(
                                        ppm->lnk,
                                        ppm->lnk_size,
                                        ppm->lnpk[index_md],
                                        ppm->ddlnpk[index_md],
                                        ppm->ic_ic_size[index_md],
                                        lnk,
                                        &last_index,
                                        output,
                                        ppm->ic_ic_size[index_md],
                                        ppm->error_message),
               ppm->error_message,
               ppm->error_message);

    /* if mode==logarithmic, output is already in the correct format. Otherwise, apply necessary transformation. */

    if (mode == linear) {

      for (index_ic1 = 0; index_ic1 < ppm->ic_size[index_md]; index_ic1++) {
        index_ic1_ic2 = index_symmetric_matrix(index_ic1,index_ic1,ppm->ic_size[index_md]);
        output[index_ic1_ic2]=exp(output[index_ic1_ic2]);
      }
      for (index_ic1 = 0; index_ic1 < ppm->ic_size[index_md]; index_ic1++) {
        for (index_ic2 = index_ic1+1; index_ic2 < ppm->ic_size[index_md]; index_ic2++) {
          index_ic1_ic2 = index_symmetric_matrix(index_ic1,index_ic2,ppm->ic_size[index_md]);
          if (ppm->is_non_zero[index_md][index_ic1_ic2] == _TRUE_) {
            output[index_ic1_ic2] *= sqrt(output[index_symmetric_matrix(index_ic1,index_ic1,ppm->ic_size[index_md])]*
                                          output[index_symmetric_matrix(index_ic2,index_ic2,ppm->ic_size[index_md])]);
          }
          else {
            output[index_ic1_ic2] = 0.;
          }
        }
      }
    }
    }
  }

  return _SUCCESS_;

}

// Assembly:
subq $0x3998, %rsp           # imm = 0x3998
movq %rdi, 0x3988(%rsp)
movl %esi, 0x3984(%rsp)
movl %edx, 0x3980(%rsp)
movsd %xmm0, 0x3978(%rsp)
movq %rcx, 0x3970(%rsp)
cmpl $0x0, 0x3980(%rsp)
jne 0x1104ac
xorps %xmm0, %xmm0
ucomisd 0x3978(%rsp), %xmm0
jb 0x110493
leaq 0x3150(%rsp), %rdi
movsd 0x3978(%rsp), %xmm0
leaq 0xec349(%rip), %rsi     # 0x1fc76f
movb $0x1, %al
callq 0x5b9c0
leaq 0x2950(%rsp), %rdi
leaq 0x3150(%rsp), %rcx
leaq 0xc1c3e(%rip), %rsi     # 0x1d2082
leaq 0xec32b(%rip), %rdx     # 0x1fc776
movb $0x0, %al
callq 0x5b9c0
movq 0x3988(%rsp), %rdi
addq $0x32a, %rdi            # imm = 0x32A
leaq 0x2950(%rsp), %r8
leaq 0xc1bc4(%rip), %rsi     # 0x1d2034
leaq 0xec309(%rip), %rdx     # 0x1fc780
movl $0x4a, %ecx
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x3994(%rsp)
jmp 0x111a9f
movsd 0x3978(%rsp), %xmm0
callq 0x82f0
movsd %xmm0, 0x3958(%rsp)
jmp 0x1104be
movsd 0x3978(%rsp), %xmm0
movsd %xmm0, 0x3958(%rsp)
movsd 0x3958(%rsp), %xmm0
movq 0x3988(%rsp), %rax
movq 0x298(%rax), %rax
movq 0x3988(%rsp), %rcx
movl 0x290(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
ucomisd (%rax,%rcx,8), %xmm0
ja 0x110517
movsd 0x3958(%rsp), %xmm1
movq 0x3988(%rsp), %rax
movq 0x298(%rax), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x110e0e
movq 0x3988(%rsp), %rax
cmpl $0x0, 0x18(%rax)
je 0x11062f
leaq 0x2150(%rsp), %rax
movq %rax, 0x138(%rsp)
movsd 0x3958(%rsp), %xmm0
callq 0x8670
movsd %xmm0, 0x148(%rsp)
movq 0x3988(%rsp), %rax
movq 0x298(%rax), %rax
movsd (%rax), %xmm0
callq 0x8670
movsd %xmm0, 0x140(%rsp)
movq 0x3988(%rsp), %rax
movq 0x298(%rax), %rax
movq 0x3988(%rsp), %rcx
movl 0x290(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x8670
movq 0x138(%rsp), %rdi
movsd 0x140(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x148(%rsp), %xmm0
leaq 0xec1d7(%rip), %rsi     # 0x1fc799
movb $0x3, %al
callq 0x5b9c0
leaq 0x1950(%rsp), %rdi
leaq 0x2150(%rsp), %rcx
leaq 0xc1aa2(%rip), %rsi     # 0x1d2082
leaq 0xf1a15(%rip), %rdx     # 0x201ffc
movb $0x0, %al
callq 0x5b9c0
movq 0x3988(%rsp), %rdi
addq $0x32a, %rdi            # imm = 0x32A
leaq 0x1950(%rsp), %r8
leaq 0xc1a28(%rip), %rsi     # 0x1d2034
leaq 0xec16d(%rip), %rdx     # 0x1fc780
movl $0x58, %ecx
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x3994(%rsp)
jmp 0x111a9f
movl $0x0, 0x396c(%rsp)
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x1108ce
movl 0x396c(%rsp), %eax
movl %eax, 0x3968(%rsp)
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x1108b6
movl 0x396c(%rsp), %eax
cmpl 0x3968(%rsp), %eax
jg 0x110708
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x130(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x130(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x134(%rsp)
jmp 0x110768
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x3968(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x12c(%rsp)
movl 0x3968(%rsp), %eax
movl 0x3968(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x12c(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x134(%rsp)
movl 0x134(%rsp), %eax
movl %eax, 0x3964(%rsp)
movq 0x3988(%rsp), %rax
movq 0x2b0(%rax), %rax
movslq 0x3984(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq 0x3964(%rsp), %rcx
movswl (%rax,%rcx,2), %eax
cmpl $0x1, %eax
jne 0x110886
movq 0x3988(%rsp), %rax
movq %rax, 0x118(%rsp)
movl 0x3984(%rsp), %eax
movl %eax, 0x124(%rsp)
movl 0x3964(%rsp), %eax
movl %eax, 0x128(%rsp)
movsd 0x3958(%rsp), %xmm0
callq 0x8670
movq 0x118(%rsp), %rdi
movl 0x124(%rsp), %esi
movl 0x128(%rsp), %edx
movq 0x3970(%rsp), %rcx
movslq 0x3964(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rcx
callq 0x111ab0
cmpl $0x1, %eax
jne 0x110884
leaq 0x1150(%rsp), %rdi
movq 0x3988(%rsp), %rcx
addq $0x32a, %rcx            # imm = 0x32A
leaq 0xc1ba3(%rip), %rsi     # 0x1d23d8
leaq 0xebf79(%rip), %rdx     # 0x1fc7b5
movb $0x0, %al
callq 0x5b9c0
movq 0x3988(%rsp), %rdi
addq $0x32a, %rdi            # imm = 0x32A
leaq 0x1150(%rsp), %r8
leaq 0xc17d3(%rip), %rsi     # 0x1d2034
leaq 0xebf18(%rip), %rdx     # 0x1fc780
movl $0x69, %ecx
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x3994(%rsp)
jmp 0x111a9f
jmp 0x11089e
movq 0x3970(%rsp), %rax
movslq 0x3964(%rsp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x1108a0
movl 0x3968(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3968(%rsp)
jmp 0x11066f
jmp 0x1108b8
movl 0x396c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x396c(%rsp)
jmp 0x11063a
cmpl $0x1, 0x3980(%rsp)
jne 0x110e09
movl $0x0, 0x396c(%rsp)
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x110a33
movl 0x396c(%rsp), %eax
cmpl 0x396c(%rsp), %eax
jg 0x110980
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x110(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x110(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x114(%rsp)
jmp 0x1109e0
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x10c(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x10c(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x114(%rsp)
movl 0x114(%rsp), %eax
movl %eax, 0x3964(%rsp)
movq 0x3970(%rsp), %rax
movslq 0x3964(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movq 0x3970(%rsp), %rax
movslq 0x3964(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x396c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x396c(%rsp)
jmp 0x1108e7
movl $0x0, 0x396c(%rsp)
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x110e07
movl 0x396c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3968(%rsp)
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x110def
movl 0x396c(%rsp), %eax
cmpl 0x3968(%rsp), %eax
jg 0x110b0f
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x104(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x104(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x108(%rsp)
jmp 0x110b6f
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x3968(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x100(%rsp)
movl 0x3968(%rsp), %eax
movl 0x3968(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x100(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x108(%rsp)
movl 0x108(%rsp), %eax
movl %eax, 0x3964(%rsp)
movq 0x3988(%rsp), %rax
movq 0x2b0(%rax), %rax
movslq 0x3984(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq 0x3964(%rsp), %rcx
movswl (%rax,%rcx,2), %eax
cmpl $0x1, %eax
jne 0x110dd7
movq 0x3970(%rsp), %rax
movq %rax, 0xf8(%rsp)
movl 0x396c(%rsp), %eax
cmpl 0x396c(%rsp), %eax
jg 0x110c2f
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0xf0(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0xf0(%rsp), %eax
subl %ecx, %eax
movl %eax, 0xf4(%rsp)
jmp 0x110c8f
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0xec(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0xec(%rsp), %eax
subl %ecx, %eax
movl %eax, 0xf4(%rsp)
movq 0xf8(%rsp), %rax
movl 0xf4(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0xd8(%rsp)
movq 0x3970(%rsp), %rax
movq %rax, 0xe0(%rsp)
movl 0x3968(%rsp), %eax
cmpl 0x3968(%rsp), %eax
jg 0x110d31
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x3968(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0xd0(%rsp)
movl 0x3968(%rsp), %eax
movl 0x3968(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0xd0(%rsp), %eax
subl %ecx, %eax
movl %eax, 0xd4(%rsp)
jmp 0x110d91
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x3968(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0xcc(%rsp)
movl 0x3968(%rsp), %eax
movl 0x3968(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0xcc(%rsp), %eax
subl %ecx, %eax
movl %eax, 0xd4(%rsp)
movq 0xe0(%rsp), %rax
movsd 0xd8(%rsp), %xmm0
movl 0xd4(%rsp), %ecx
movslq %ecx, %rcx
mulsd (%rax,%rcx,8), %xmm0
callq 0x82e0
movaps %xmm0, %xmm1
movq 0x3970(%rsp), %rax
movslq 0x3964(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x110dd9
movl 0x3968(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3968(%rsp)
jmp 0x110a76
jmp 0x110df1
movl 0x396c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x396c(%rsp)
jmp 0x110a3e
jmp 0x110e09
jmp 0x111a94
movq 0x3988(%rsp), %rax
movswl 0xb2a(%rax), %eax
cmpl $0x1, %eax
jne 0x111473
movq 0x3988(%rsp), %rax
movq 0x2b0(%rax), %rax
movslq 0x3984(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq 0x3964(%rsp), %rcx
movswl (%rax,%rcx,2), %eax
cmpl $0x1, %eax
jne 0x110f36
movq 0x3988(%rsp), %rax
movq %rax, 0xb8(%rsp)
movl 0x3984(%rsp), %eax
movl %eax, 0xc4(%rsp)
movl 0x3964(%rsp), %eax
movl %eax, 0xc8(%rsp)
movsd 0x3958(%rsp), %xmm0
callq 0x8670
movq 0xb8(%rsp), %rdi
movl 0xc4(%rsp), %esi
movl 0xc8(%rsp), %edx
movq 0x3970(%rsp), %rcx
movslq 0x3964(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rcx
callq 0x111ab0
cmpl $0x1, %eax
jne 0x110f34
leaq 0x950(%rsp), %rdi
movq 0x3988(%rsp), %rcx
addq $0x32a, %rcx            # imm = 0x32A
leaq 0xc14f3(%rip), %rsi     # 0x1d23d8
leaq 0xeb8c9(%rip), %rdx     # 0x1fc7b5
movb $0x0, %al
callq 0x5b9c0
movq 0x3988(%rsp), %rdi
addq $0x32a, %rdi            # imm = 0x32A
leaq 0x950(%rsp), %r8
leaq 0xc1123(%rip), %rsi     # 0x1d2034
leaq 0xeb868(%rip), %rdx     # 0x1fc780
movl $0x93, %ecx
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x3994(%rsp)
jmp 0x111a9f
jmp 0x110f4e
movq 0x3970(%rsp), %rax
movslq 0x3964(%rsp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
cmpl $0x1, 0x3980(%rsp)
jne 0x11146e
movl $0x0, 0x396c(%rsp)
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x1110b3
movl 0x396c(%rsp), %eax
cmpl 0x396c(%rsp), %eax
jg 0x111000
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0xb0(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0xb0(%rsp), %eax
subl %ecx, %eax
movl %eax, 0xb4(%rsp)
jmp 0x111060
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0xac(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0xac(%rsp), %eax
subl %ecx, %eax
movl %eax, 0xb4(%rsp)
movl 0xb4(%rsp), %eax
movl %eax, 0x3964(%rsp)
movq 0x3970(%rsp), %rax
movslq 0x3964(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x82f0
movq 0x3970(%rsp), %rax
movslq 0x3964(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x396c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x396c(%rsp)
jmp 0x110f67
movl $0x0, 0x396c(%rsp)
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x11146c
movl 0x396c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3968(%rsp)
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x111454
movl 0x396c(%rsp), %eax
cmpl 0x3968(%rsp), %eax
jg 0x11118f
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0xa4(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0xa4(%rsp), %eax
subl %ecx, %eax
movl %eax, 0xa8(%rsp)
jmp 0x1111ef
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x3968(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0xa0(%rsp)
movl 0x3968(%rsp), %eax
movl 0x3968(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0xa0(%rsp), %eax
subl %ecx, %eax
movl %eax, 0xa8(%rsp)
movl 0xa8(%rsp), %eax
movl %eax, 0x3964(%rsp)
movq 0x3988(%rsp), %rax
movq 0x2b0(%rax), %rax
movslq 0x3984(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq 0x3964(%rsp), %rcx
movswl (%rax,%rcx,2), %eax
cmpl $0x1, %eax
jne 0x11143c
movq 0x3970(%rsp), %rax
movq %rax, 0x98(%rsp)
movl 0x396c(%rsp), %eax
cmpl 0x396c(%rsp), %eax
jg 0x1112af
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x90(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x90(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x94(%rsp)
jmp 0x11130f
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x8c(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x8c(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x94(%rsp)
movq 0x98(%rsp), %rax
movl 0x94(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x78(%rsp)
movq 0x3970(%rsp), %rax
movq %rax, 0x80(%rsp)
movl 0x3968(%rsp), %eax
cmpl 0x3968(%rsp), %eax
jg 0x1113a5
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x3968(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x70(%rsp)
movl 0x3968(%rsp), %eax
movl 0x3968(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x70(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x74(%rsp)
jmp 0x1113fc
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x3968(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x6c(%rsp)
movl 0x3968(%rsp), %eax
movl 0x3968(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x6c(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x74(%rsp)
movq 0x80(%rsp), %rax
movsd 0x78(%rsp), %xmm0
movl 0x74(%rsp), %ecx
movslq %ecx, %rcx
mulsd (%rax,%rcx,8), %xmm0
callq 0x82e0
movaps %xmm0, %xmm1
movq 0x3970(%rsp), %rax
movslq 0x3964(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x11143e
movl 0x3968(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3968(%rsp)
jmp 0x1110f6
jmp 0x111456
movl 0x396c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x396c(%rsp)
jmp 0x1110be
jmp 0x11146e
jmp 0x111a92
movq 0x3988(%rsp), %rax
movq 0x298(%rax), %rdi
movq 0x3988(%rsp), %rax
movl 0x290(%rax), %esi
movq 0x3988(%rsp), %rax
movq 0x2a0(%rax), %rax
movslq 0x3984(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x3988(%rsp), %rax
movq 0x2a8(%rax), %rax
movslq 0x3984(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x3988(%rsp), %rax
movq 0x288(%rax), %rax
movslq 0x3984(%rsp), %r8
movl (%rax,%r8,4), %r8d
movsd 0x3958(%rsp), %xmm0
movq 0x3970(%rsp), %r11
movq 0x3988(%rsp), %rax
movq 0x288(%rax), %rax
movslq 0x3984(%rsp), %r9
movl (%rax,%r9,4), %r10d
movq 0x3988(%rsp), %rax
addq $0x32a, %rax            # imm = 0x32A
leaq 0x3954(%rsp), %r9
movq %r11, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x24220
cmpl $0x1, %eax
jne 0x1115a8
leaq 0x150(%rsp), %rdi
movq 0x3988(%rsp), %rcx
addq $0x32a, %rcx            # imm = 0x32A
leaq 0xc0e7f(%rip), %rsi     # 0x1d23d8
leaq 0xeb2b4(%rip), %rdx     # 0x1fc814
movb $0x0, %al
callq 0x5b9c0
movq 0x3988(%rsp), %rdi
addq $0x32a, %rdi            # imm = 0x32A
leaq 0x150(%rsp), %r8
leaq 0xc0aaf(%rip), %rsi     # 0x1d2034
leaq 0xeb1f4(%rip), %rdx     # 0x1fc780
movl $0xba, %ecx
movb $0x0, %al
callq 0x5b9c0
movl $0x1, 0x3994(%rsp)
jmp 0x111a9f
cmpl $0x0, 0x3980(%rsp)
jne 0x111a90
movl $0x0, 0x396c(%rsp)
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x1116f8
movl 0x396c(%rsp), %eax
cmpl 0x396c(%rsp), %eax
jg 0x111651
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x64(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x64(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x68(%rsp)
jmp 0x1116a8
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x60(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x60(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x68(%rsp)
movl 0x68(%rsp), %eax
movl %eax, 0x3964(%rsp)
movq 0x3970(%rsp), %rax
movslq 0x3964(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x8670
movq 0x3970(%rsp), %rax
movslq 0x3964(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl 0x396c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x396c(%rsp)
jmp 0x1115c1
movl $0x0, 0x396c(%rsp)
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x111a8e
movl 0x396c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3968(%rsp)
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x111a76
movl 0x396c(%rsp), %eax
cmpl 0x3968(%rsp), %eax
jg 0x1117cb
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x58(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%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 0x111822
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x3968(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x54(%rsp)
movl 0x3968(%rsp), %eax
movl 0x3968(%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, 0x3964(%rsp)
movq 0x3988(%rsp), %rax
movq 0x2b0(%rax), %rax
movslq 0x3984(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq 0x3964(%rsp), %rcx
movswl (%rax,%rcx,2), %eax
cmpl $0x1, %eax
jne 0x111a46
movq 0x3970(%rsp), %rax
movq %rax, 0x48(%rsp)
movl 0x396c(%rsp), %eax
cmpl 0x396c(%rsp), %eax
jg 0x1118d3
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x40(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%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 0x11192a
movl 0x396c(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x396c(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x3c(%rsp)
movl 0x396c(%rsp), %eax
movl 0x396c(%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)
movq 0x48(%rsp), %rax
movl 0x44(%rsp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x3970(%rsp), %rax
movq %rax, 0x30(%rsp)
movl 0x3968(%rsp), %eax
cmpl 0x3968(%rsp), %eax
jg 0x1119b7
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x3968(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x20(%rsp)
movl 0x3968(%rsp), %eax
movl 0x3968(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x20(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x24(%rsp)
jmp 0x111a0e
movl 0x3968(%rsp), %eax
movq 0x3988(%rsp), %rcx
movq 0x280(%rcx), %rcx
movslq 0x3984(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
imull 0x3968(%rsp), %ecx
addl %ecx, %eax
movl %eax, 0x1c(%rsp)
movl 0x3968(%rsp), %eax
movl 0x3968(%rsp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0x1c(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x24(%rsp)
movq 0x30(%rsp), %rax
movsd 0x28(%rsp), %xmm0
movl 0x24(%rsp), %ecx
movslq %ecx, %rcx
mulsd (%rax,%rcx,8), %xmm0
callq 0x82e0
movq 0x3970(%rsp), %rax
movslq 0x3964(%rsp), %rcx
mulsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x111a5e
movq 0x3970(%rsp), %rax
movslq 0x3964(%rsp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x111a60
movl 0x3968(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3968(%rsp)
jmp 0x11173b
jmp 0x111a78
movl 0x396c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x396c(%rsp)
jmp 0x111703
jmp 0x111a90
jmp 0x111a92
jmp 0x111a94
movl $0x0, 0x3994(%rsp)
movl 0x3994(%rsp), %eax
addq $0x3998, %rsp           # imm = 0x3998
retq
nop