// File: /workspace/github_c_makefile_star2_O2/PoulinV[P]AxiCLASS/build/../source/harmonic.c
// Function: harmonic_indices
int harmonic_indices(
                     struct background * pba,
                     struct perturbations * ppt,
                     struct transfer * ptr,
                     struct primordial * ppm,
                     struct harmonic * phr
                     ){

  int index_ct;
  int index_md;
  int index_ic1_ic2;

  phr->md_size = ppt->md_size;
  if (ppt->has_scalars == _TRUE_)
    phr->index_md_scalars = ppt->index_md_scalars;

  class_alloc(phr->ic_size,
              sizeof(int)*phr->md_size,
              phr->error_message);

  class_alloc(phr->ic_ic_size,
              sizeof(int)*phr->md_size,
              phr->error_message);

  class_alloc(phr->is_non_zero,
              sizeof(short *)*phr->md_size,
              phr->error_message);

  for (index_md=0; index_md < phr->md_size; index_md++) {
    phr->ic_size[index_md] = ppm->ic_size[index_md];
    phr->ic_ic_size[index_md] = ppm->ic_ic_size[index_md];
    class_alloc(phr->is_non_zero[index_md],
                sizeof(short)*phr->ic_ic_size[index_md],
                phr->error_message);
    for (index_ic1_ic2=0; index_ic1_ic2 < phr->ic_ic_size[index_md]; index_ic1_ic2++)
      phr->is_non_zero[index_md][index_ic1_ic2] = ppm->is_non_zero[index_md][index_ic1_ic2];
  }

  if (ppt->has_cls == _TRUE_) {

    /* types of C_l's relevant for both scalars and tensors: TT, EE, TE */

    index_ct=0;

    if (ppt->has_cl_cmb_temperature == _TRUE_) {
      phr->has_tt = _TRUE_;
      phr->index_ct_tt=index_ct;
      index_ct++;
    }
    else {
      phr->has_tt = _FALSE_;
    }

    if (ppt->has_cl_cmb_polarization == _TRUE_) {
      phr->has_ee = _TRUE_;
      phr->index_ct_ee=index_ct;
      index_ct++;
    }
    else {
      phr->has_ee = _FALSE_;
    }

    if ((ppt->has_cl_cmb_temperature == _TRUE_) &&
        (ppt->has_cl_cmb_polarization == _TRUE_)) {
      phr->has_te = _TRUE_;
      phr->index_ct_te=index_ct;
      index_ct++;
    }
    else {
      phr->has_te = _FALSE_;
    }

    if (ppt->has_cl_cmb_polarization == _TRUE_) {
      phr->has_bb = _TRUE_;
      phr->index_ct_bb=index_ct;
      index_ct++;
    }
    else {
      phr->has_bb = _FALSE_;
    }

    /* types of C_l's relevant only for scalars: phi-phi, T-phi, E-phi, d-d, T-d */

    if ((ppt->has_cl_cmb_lensing_potential == _TRUE_) && (ppt->has_scalars == _TRUE_)) {
      phr->has_pp = _TRUE_;
      phr->index_ct_pp=index_ct;
      index_ct++;
    }
    else {
      phr->has_pp = _FALSE_;
    }

    if ((ppt->has_cl_cmb_temperature == _TRUE_) && (ppt->has_cl_cmb_lensing_potential == _TRUE_) && (ppt->has_scalars == _TRUE_)) {
      phr->has_tp = _TRUE_;
      phr->index_ct_tp=index_ct;
      index_ct++;
    }
    else {
      phr->has_tp = _FALSE_;
    }

    phr->ct_size = index_ct;

    if ((ppt->has_cl_cmb_polarization == _TRUE_) && (ppt->has_cl_cmb_lensing_potential == _TRUE_) && (ppt->has_scalars == _TRUE_)) {
      phr->has_ep = _TRUE_;
      phr->index_ct_ep=index_ct;
      index_ct++;
    }
    else {
      phr->has_ep = _FALSE_;
    }

    if ((ppt->has_scalars == _TRUE_) &&
        ((ppt->has_cl_number_count == _TRUE_) || (ppt->has_cl_lensing_potential == _TRUE_)))
      phr->d_size=ppt->selection_num;
    else
      phr->d_size=0;

    if ((ppt->has_cl_number_count == _TRUE_) && (ppt->has_scalars == _TRUE_)) {
      phr->has_dd = _TRUE_;
      phr->index_ct_dd=index_ct;
      index_ct+=(phr->d_size*(phr->d_size+1)-(phr->d_size-phr->non_diag)*(phr->d_size-1-phr->non_diag))/2;
    }
    else {
      phr->has_dd = _FALSE_;
    }

    /* the computation of C_l^Td would require a very good sampling of
       transfer functions over a wide range, and a huge computation
       time. In the current version, we prefer to switch it off, rather
       than either slowing down the code considerably, or producing
       very inaccurate spectra.

       if ((ppt->has_cl_cmb_temperature == _TRUE_) && (ppt->has_cl_number_count == _TRUE_) && (ppt->has_scalars == _TRUE_)) {
       phr->has_td = _TRUE_;
       phr->index_ct_td=index_ct;
       index_ct+=phr->d_size;
       }
       else {
       phr->has_td = _FALSE_;
       }
    */
    phr->has_td = _FALSE_;

    if ((ppt->has_cl_cmb_lensing_potential == _TRUE_) && (ppt->has_cl_number_count == _TRUE_) && (ppt->has_scalars == _TRUE_)) {
      phr->has_pd = _TRUE_;
      phr->index_ct_pd=index_ct;
      index_ct+=phr->d_size;
    }
    else {
      phr->has_pd = _FALSE_;
    }

    if ((ppt->has_cl_lensing_potential == _TRUE_) && (ppt->has_scalars == _TRUE_)) {
      phr->has_ll = _TRUE_;
      phr->index_ct_ll=index_ct;
      index_ct+=(phr->d_size*(phr->d_size+1)-(phr->d_size-phr->non_diag)*(phr->d_size-1-phr->non_diag))/2;
    }
    else {
      phr->has_ll = _FALSE_;
    }

    /* the computation of C_l^Tl would require a very good sampling of
       transfer functions over a wide range, and a huge computation
       time. In the current version, we prefer to switch it off, rather
       than either slowing down the code considerably, or producing
       very inaccurate spectra.

       if ((ppt->has_cl_cmb_temperature == _TRUE_) && (ppt->has_cl_lensing_potential == _TRUE_) && (ppt->has_scalars == _TRUE_)) {
       phr->has_tl = _TRUE_;
       phr->index_ct_tl=index_ct;
       index_ct+=phr->d_size;
       }
       else {
       phr->has_tl = _FALSE_;
       }
    */
    phr->has_tl = _FALSE_;

    if ((ppt->has_cl_number_count == _TRUE_) && (ppt->has_cl_lensing_potential == _TRUE_) && (ppt->has_scalars == _TRUE_)) {
      phr->has_dl = _TRUE_;
      phr->index_ct_dl=index_ct;
      index_ct += phr->d_size*phr->d_size - (phr->d_size-phr->non_diag)*(phr->d_size-1-phr->non_diag);
    }
    else {
      phr->has_dl = _FALSE_;
    }

    phr->ct_size = index_ct;

    /* infer from input quantities the l_max for each mode and type,
       l_max_ct[index_md][index_type].  Maximize it over index_ct, and
       then over index_md. */

    class_alloc(phr->l_max,sizeof(int*)*phr->md_size,phr->error_message);
    class_alloc(phr->l_max_ct,sizeof(int*)*phr->md_size,phr->error_message);
    for (index_md=0; index_md<phr->md_size; index_md++) {
      class_calloc(phr->l_max_ct[index_md],phr->ct_size,sizeof(int),phr->error_message);
    }

    if (ppt->has_scalars == _TRUE_) {

      /* spectra computed up to l_scalar_max */

      if (phr->has_tt == _TRUE_) phr->l_max_ct[ppt->index_md_scalars][phr->index_ct_tt] = ppt->l_scalar_max;
      if (phr->has_ee == _TRUE_) phr->l_max_ct[ppt->index_md_scalars][phr->index_ct_ee] = ppt->l_scalar_max;
      if (phr->has_te == _TRUE_) phr->l_max_ct[ppt->index_md_scalars][phr->index_ct_te] = ppt->l_scalar_max;
      if (phr->has_pp == _TRUE_) phr->l_max_ct[ppt->index_md_scalars][phr->index_ct_pp] = ppt->l_scalar_max;
      if (phr->has_tp == _TRUE_) phr->l_max_ct[ppt->index_md_scalars][phr->index_ct_tp] = ppt->l_scalar_max;
      if (phr->has_ep == _TRUE_) phr->l_max_ct[ppt->index_md_scalars][phr->index_ct_ep] = ppt->l_scalar_max;

      /* spectra computed up to l_lss_max */

      if (phr->has_dd == _TRUE_)
        for (index_ct=phr->index_ct_dd;
             index_ct<phr->index_ct_dd+(phr->d_size*(phr->d_size+1)-(phr->d_size-phr->non_diag)*(phr->d_size-1-phr->non_diag))/2;
             index_ct++)
          phr->l_max_ct[ppt->index_md_scalars][index_ct] = ppt->l_lss_max;

      if (phr->has_td == _TRUE_)
        for (index_ct=phr->index_ct_td;
             index_ct<phr->index_ct_td+phr->d_size;
             index_ct++)
          phr->l_max_ct[ppt->index_md_scalars][index_ct] = MIN(ppt->l_scalar_max,ppt->l_lss_max);

      if (phr->has_pd == _TRUE_)
        for (index_ct=phr->index_ct_pd;
             index_ct<phr->index_ct_pd+phr->d_size;
             index_ct++)
          phr->l_max_ct[ppt->index_md_scalars][index_ct] = MIN(ppt->l_scalar_max,ppt->l_lss_max);

      if (phr->has_ll == _TRUE_)
        for (index_ct=phr->index_ct_ll;
             index_ct<phr->index_ct_ll+(phr->d_size*(phr->d_size+1)-(phr->d_size-phr->non_diag)*(phr->d_size-1-phr->non_diag))/2;
             index_ct++)
          phr->l_max_ct[ppt->index_md_scalars][index_ct] = ppt->l_lss_max;

      if (phr->has_tl == _TRUE_)
        for (index_ct=phr->index_ct_tl;
             index_ct<phr->index_ct_tl+phr->d_size;
             index_ct++)
          phr->l_max_ct[ppt->index_md_scalars][index_ct] = MIN(ppt->l_scalar_max,ppt->l_lss_max);

      if (phr->has_dl == _TRUE_)
        for (index_ct=phr->index_ct_dl;
             index_ct < phr->index_ct_dl+(phr->d_size*phr->d_size - (phr->d_size-phr->non_diag)*(phr->d_size-1-phr->non_diag));
             index_ct++)
          phr->l_max_ct[ppt->index_md_scalars][index_ct] = ppt->l_lss_max;

    }
    if (ppt->has_tensors == _TRUE_) {

      /* spectra computed up to l_tensor_max */

      if (phr->has_tt == _TRUE_) phr->l_max_ct[ppt->index_md_tensors][phr->index_ct_tt] = ppt->l_tensor_max;
      if (phr->has_ee == _TRUE_) phr->l_max_ct[ppt->index_md_tensors][phr->index_ct_ee] = ppt->l_tensor_max;
      if (phr->has_te == _TRUE_) phr->l_max_ct[ppt->index_md_tensors][phr->index_ct_te] = ppt->l_tensor_max;
      if (phr->has_bb == _TRUE_) phr->l_max_ct[ppt->index_md_tensors][phr->index_ct_bb] = ppt->l_tensor_max;
    }

    /* maximizations */
    phr->l_max_tot = 0.;
    for (index_md=0; index_md < phr->md_size; index_md++) {
      phr->l_max[index_md] = 0.;
      for (index_ct=0.; index_ct<phr->ct_size; index_ct++)
        phr->l_max[index_md] = MAX(phr->l_max[index_md],phr->l_max_ct[index_md][index_ct]);
      phr->l_max_tot = MAX(phr->l_max_tot,phr->l_max[index_md]);
    }
  }

  return _SUCCESS_;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x828, %rsp            # imm = 0x828
movq %r8, %rbx
movq %rcx, %r13
movq %rsi, %r15
movl 0x854(%rsi), %eax
movq %rax, (%rsp)
movslq %eax, %r14
movl %r14d, 0x10(%r8)
cmpw $0x1, 0xe(%rsi)
jne 0xad18c
movl 0x848(%r15), %eax
movl %eax, 0x14(%rbx)
leaq (,%r14,4), %r12
movq %r12, %rdi
callq 0x8490
movq %rax, 0x18(%rbx)
testq %rax, %rax
je 0xad283
movq %r12, %rdi
callq 0x8490
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0xad2c9
movq %rax, %rbp
shlq $0x3, %r14
movq %r14, %rdi
callq 0x8490
movq %rax, 0x28(%rbx)
testq %rax, %rax
movq %rbx, %r10
je 0xad30f
movq %rax, %r14
movq %r15, 0x18(%rsp)
pushq $0x1
popq %rax
movl %eax, 0xc(%rsp)
xorl %r15d, %r15d
movq (%rsp), %rbx
movslq %ebx, %r12
cmpq %r12, %r15
jge 0xad358
movq 0x280(%r13), %rax
movl (%rax,%r15,4), %eax
movq 0x18(%r10), %rcx
movl %eax, (%rcx,%r15,4)
movq 0x288(%r13), %rax
movslq (%rax,%r15,4), %rdi
movl %edi, (%rbp,%r15,4)
addq %rdi, %rdi
movq %r10, %rbx
callq 0x8490
movq %rbx, %r10
movq %rax, (%r14,%r15,8)
movq 0x20(%rbx), %rbp
movq 0x28(%rbx), %r14
movq (%r14,%r15,8), %rax
movl (%rbp,%r15,4), %ecx
testq %rax, %rax
je 0xad3c0
testl %ecx, %ecx
movl $0x0, %edx
cmovlel %edx, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0xad277
movq 0x2b0(%r13), %rsi
movq (%rsi,%r15,8), %rsi
movzwl (%rsi,%rdx,2), %esi
movw %si, (%rax,%rdx,2)
incq %rdx
jmp 0xad25a
incq %r15
movl 0x10(%r10), %ebx
jmp 0xad1f3
movq (%rsp), %rcx
shll $0x2, %ecx
leaq 0x37d73(%rip), %rsi     # 0xe5004
leaq 0x6b59a(%rip), %rdx     # 0x118832
leaq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x2e014
addq $0xea, %rbx
leaq 0x37d7f(%rip), %rsi     # 0xe5034
leaq 0x6b583(%rip), %rdx     # 0x11883f
movq %rbx, %rdi
movl $0x18c, %ecx            # imm = 0x18C
jmp 0xad3ff
movq (%rsp), %rcx
shll $0x2, %ecx
leaq 0x37d2d(%rip), %rsi     # 0xe5004
leaq 0x6b572(%rip), %rdx     # 0x118850
leaq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x2e014
addq $0xea, %rbx
leaq 0x37d39(%rip), %rsi     # 0xe5034
leaq 0x6b53d(%rip), %rdx     # 0x11883f
movq %rbx, %rdi
movl $0x190, %ecx            # imm = 0x190
jmp 0xad3ff
movq (%rsp), %rcx
shll $0x3, %ecx
leaq 0x37ce7(%rip), %rsi     # 0xe5004
leaq 0x6b53c(%rip), %rdx     # 0x118860
leaq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
movq %r10, %rbx
callq 0x2e014
addq $0xea, %rbx
leaq 0x37cf0(%rip), %rsi     # 0xe5034
leaq 0x6b4f4(%rip), %rdx     # 0x11883f
movq %rbx, %rdi
movl $0x194, %ecx            # imm = 0x194
jmp 0xad3ff
xorl %eax, %eax
movq 0x18(%rsp), %r8
cmpw $0x1, 0xc(%r8)
jne 0xad40c
movzwl 0x28(%r8), %eax
cmpw $0x1, %ax
movq %rbx, (%rsp)
jne 0xad41e
movl $0x1, 0x30(%r10)
andl $0x0, 0x64(%r10)
cmpw $0x1, 0x2a(%r8)
jne 0xad457
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x34(%r10)
movabsq $0x200000001, %rcx      # imm = 0x200000001
movq %rcx, 0x68(%r10)
pushq $0x3
popq %r14
pushq $0x1
popq %r15
jmp 0xad444
addl %ecx, %ecx
leaq 0x37c3b(%rip), %rsi     # 0xe5004
leaq 0x6b4a1(%rip), %rdx     # 0x118871
leaq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
movq %r10, %rbx
callq 0x2e014
addq $0xea, %rbx
leaq 0x37c44(%rip), %rsi     # 0xe5034
leaq 0x6b448(%rip), %rdx     # 0x11883f
movq %rbx, %rdi
movl $0x19b, %ecx            # imm = 0x19B
movq %r14, %r8
xorl %eax, %eax
callq 0x2e014
pushq $0x1
popq %rax
addq $0x828, %rsp            # imm = 0x828
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
andl $0x0, 0x30(%r10)
xorl %r15d, %r15d
cmpw $0x1, 0x2a(%r8)
jne 0xad45b
movq $0x1, 0x34(%r10)
andl $0x0, 0x68(%r10)
xorl %r15d, %r15d
pushq $0x1
popq %rcx
movl %ecx, %r14d
movl $0x1, 0x3c(%r10)
movl %r14d, 0x70(%r10)
incl %r14d
movb $0x1, %dl
jmp 0xad472
pushq $0x1
popq %r15
andq $0x0, 0x34(%r10)
andl $0x0, 0x3c(%r10)
movl $0x0, 0xc(%rsp)
xorl %edx, %edx
movl %r15d, %r14d
movzwl 0x2c(%r8), %ecx
pushq $0x2
popq %r9
cmpw $0x1, %cx
je 0xad492
andl $0x0, 0x40(%r10)
cmpw $0x1, 0xe(%r8)
sete %sil
jmp 0xad4e8
cmpw $0x1, 0xe(%r8)
jne 0xad4dc
leal 0x1(%r14), %edi
movl $0x1, 0x40(%r10)
movl %r14d, 0x74(%r10)
movb $0x1, %sil
cmpw $0x1, %ax
jne 0xad4e5
movl $0x1, 0x44(%r10)
movl %edi, 0x78(%r10)
addl $0x2, %r14d
leaq 0x9c(%r10), %rbp
movl %r14d, 0x9c(%r10)
testb %dl, %dl
jne 0xad51a
andl $0x0, 0x48(%r10)
jmp 0xad529
andl $0x0, 0x40(%r10)
xorl %esi, %esi
jmp 0xad4e8
movl %edi, %r14d
cmpw $0x1, %cx
setne %al
andl $0x0, 0x44(%r10)
leaq 0x9c(%r10), %rbp
movl %r14d, 0x9c(%r10)
xorb $0x1, %dl
orb %al, %dl
je 0xad515
andl $0x0, 0x48(%r10)
testb %sil, %sil
jne 0xad529
jmp 0xad592
testb %sil, %sil
je 0xad58d
movl $0x1, 0x48(%r10)
movl %r14d, 0x7c(%r10)
incl %r14d
cmpw $0x1, 0x30(%r8)
jne 0xad572
movl 0x64(%r8), %esi
movl %esi, 0x98(%r10)
movl $0x1, 0x4c(%r10)
movl %r14d, 0x80(%r10)
leal 0x1(%rsi), %edx
imull %esi, %edx
movl (%r10), %eax
movl %eax, %edi
subl %esi, %edi
notl %eax
addl %esi, %eax
imull %edi, %eax
addl %edx, %eax
cltd
idivl %r9d
addl %r14d, %eax
xorl %r13d, %r13d
xorl %edi, %edi
movl %eax, %r14d
jmp 0xad5c0
cmpw $0x1, 0x2e(%r8)
jne 0xad5ab
movl 0x64(%r8), %esi
movl %esi, 0x98(%r10)
movb $0x1, %dil
xorl %r13d, %r13d
jmp 0xad5bb
andl $0x0, 0x48(%r10)
andl $0x0, 0x98(%r10)
cmpw $0x1, 0x30(%r8)
setne %dil
xorl %esi, %esi
movb $0x1, %r13b
jmp 0xad5bb
andl $0x0, 0x98(%r10)
movb $0x1, %dil
xorl %r13d, %r13d
xorl %esi, %esi
andl $0x0, 0x4c(%r10)
cmpw $0x1, %cx
setne %al
andl $0x0, 0x50(%r10)
orb %dil, %al
testb $0x1, %al
je 0xad5ea
andl $0x0, 0x54(%r10)
cmpw $0x1, 0x2e(%r8)
setne %cl
movl %r13d, %eax
orb %cl, %al
je 0xad61b
jmp 0xad64e
testb %r13b, %r13b
je 0xad5ff
andl $0x0, 0x54(%r10)
cmpw $0x1, 0x2e(%r8)
setne %cl
jmp 0xad64e
movl $0x1, 0x54(%r10)
movl %r14d, 0x88(%r10)
addl %esi, %r14d
movb $0x1, %cl
cmpw $0x1, 0x2e(%r8)
jne 0xad64e
movl $0x1, 0x58(%r10)
movl %r14d, 0x8c(%r10)
leal 0x1(%rsi), %ecx
imull %esi, %ecx
movl (%r10), %eax
movl %eax, %edx
subl %esi, %edx
notl %eax
addl %esi, %eax
imull %edx, %eax
addl %ecx, %eax
cltd
idivl %r9d
addl %r14d, %eax
xorl %ecx, %ecx
movl %eax, %r14d
jmp 0xad653
andl $0x0, 0x58(%r10)
andl $0x0, 0x5c(%r10)
orb %cl, %dil
orb %r13b, %dil
xorl %eax, %eax
testb $0x1, %dil
jne 0xad68b
movl %r14d, 0x94(%r10)
movl %esi, %eax
imull %esi, %eax
movl (%r10), %ecx
movl %ecx, %edx
subl %esi, %edx
notl %ecx
addl %esi, %ecx
imull %edx, %ecx
addl %eax, %ecx
addl %r14d, %ecx
pushq $0x1
popq %rax
movl %ecx, %r14d
movl %eax, 0x60(%r10)
movl %r14d, 0x9c(%r10)
shlq $0x3, %r12
movq %r12, %rdi
movq %r10, %rbx
callq 0x8490
movq %rax, 0xc0(%rbx)
testq %rax, %rax
je 0xad75f
movq %r12, %rdi
callq 0x8490
movq %rax, 0xb8(%rbx)
testq %rax, %rax
je 0xad7a5
movq %rax, %r12
movl %r13d, 0x14(%rsp)
movl %r15d, 0x10(%rsp)
movq %rbx, %r13
movslq %r14d, %r14
xorl %r15d, %r15d
movq (%rsp), %rcx
testl %ecx, %ecx
cmovlel %r15d, %ecx
cmpq %r15, %rcx
je 0xad7eb
movq %r14, %rdi
pushq $0x4
popq %rsi
movq %rcx, %rbx
callq 0x8270
movq %rbx, %rcx
movq %rax, (%r12,%r15,8)
movq 0xb8(%r13), %r12
cmpq $0x0, (%r12,%r15,8)
leaq 0x1(%r15), %r15
jne 0xad6ed
leaq 0x378e0(%rip), %rsi     # 0xe5004
leaq 0x6b17a(%rip), %rdx     # 0x1188a5
leaq 0x20(%rsp), %r14
pushq $0x4
popq %rcx
movq %r14, %rdi
xorl %eax, %eax
callq 0x2e014
addq $0xea, %r13
leaq 0x378e9(%rip), %rsi     # 0xe5034
leaq 0x6b0ed(%rip), %rdx     # 0x11883f
movq %r13, %rdi
movl $0x23f, %ecx            # imm = 0x23F
jmp 0xad3ff
movq (%rsp), %rcx
shll $0x3, %ecx
leaq 0x37897(%rip), %rsi     # 0xe5004
leaq 0x6b118(%rip), %rdx     # 0x11888c
leaq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x2e014
addq $0xea, %rbx
leaq 0x378a3(%rip), %rsi     # 0xe5034
leaq 0x6b0a7(%rip), %rdx     # 0x11883f
movq %rbx, %rdi
movl $0x23c, %ecx            # imm = 0x23C
jmp 0xad3ff
movq (%rsp), %rcx
shll $0x3, %ecx
leaq 0x37851(%rip), %rsi     # 0xe5004
leaq 0x6b0dd(%rip), %rdx     # 0x118897
leaq 0x20(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x2e014
addq $0xea, %rbx
leaq 0x3785d(%rip), %rsi     # 0xe5034
leaq 0x6b061(%rip), %rdx     # 0x11883f
movq %rbx, %rdi
movl $0x23d, %ecx            # imm = 0x23D
jmp 0xad3ff
cmpb $0x0, 0x14(%rsp)
movq 0x18(%rsp), %r9
jne 0xadaa1
cmpl $0x0, 0x10(%rsp)
je 0xad820
movl 0x48(%r9), %eax
movslq 0x848(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movslq 0x64(%r13), %rdx
movl %eax, (%rcx,%rdx,4)
movl 0x34(%r13), %eax
movl %eax, 0xc(%rsp)
cmpl $0x1, 0xc(%rsp)
pushq $0x2
popq %r10
jne 0xad841
movl 0x48(%r9), %eax
movslq 0x848(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movslq 0x68(%r13), %rdx
movl %eax, (%rcx,%rdx,4)
cmpl $0x1, 0x38(%r13)
jne 0xad85e
movl 0x48(%r9), %eax
movslq 0x848(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movslq 0x6c(%r13), %rdx
movl %eax, (%rcx,%rdx,4)
cmpl $0x1, 0x40(%r13)
jne 0xad87b
movl 0x48(%r9), %eax
movslq 0x848(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movslq 0x74(%r13), %rdx
movl %eax, (%rcx,%rdx,4)
cmpl $0x1, 0x44(%r13)
jne 0xad898
movl 0x48(%r9), %eax
movslq 0x848(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movslq 0x78(%r13), %rdx
movl %eax, (%rcx,%rdx,4)
cmpl $0x1, 0x48(%r13)
jne 0xad8b5
movl 0x48(%r9), %eax
movslq 0x848(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movslq 0x7c(%r13), %rdx
movl %eax, (%rcx,%rdx,4)
cmpl $0x1, 0x4c(%r13)
jne 0xad912
movl 0x80(%r13), %esi
movslq %esi, %rcx
movl (%r13), %eax
movl 0x98(%r13), %edx
leal 0x1(%rdx), %edi
imull %edx, %edi
movl %eax, %r8d
subl %edx, %r8d
notl %eax
addl %edx, %eax
imull %r8d, %eax
addl %edi, %eax
cltd
idivl %r10d
addl %esi, %eax
cltq
cmpq %rax, %rcx
jge 0xad912
movl 0x54(%r9), %eax
movslq 0x848(%r9), %rdx
movq (%r12,%rdx,8), %rdx
movl %eax, (%rdx,%rcx,4)
incq %rcx
movl 0x80(%r13), %esi
jmp 0xad8c6
cmpl $0x1, 0x50(%r13)
jne 0xad95c
movl 0x84(%r13), %ecx
movslq %ecx, %rax
movslq 0x98(%r13), %rdx
movslq %ecx, %rcx
addq %rdx, %rcx
cmpq %rcx, %rax
jge 0xad95c
movl 0x48(%r9), %ecx
movl 0x54(%r9), %edx
cmpl %edx, %ecx
cmovll %ecx, %edx
movslq 0x848(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movl %edx, (%rcx,%rax,4)
incq %rax
movl 0x84(%r13), %ecx
jmp 0xad923
cmpl $0x1, 0x54(%r13)
jne 0xad9a6
movl 0x88(%r13), %ecx
movslq %ecx, %rax
movslq 0x98(%r13), %rdx
movslq %ecx, %rcx
addq %rdx, %rcx
cmpq %rcx, %rax
jge 0xad9a6
movl 0x48(%r9), %ecx
movl 0x54(%r9), %edx
cmpl %edx, %ecx
cmovll %ecx, %edx
movslq 0x848(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movl %edx, (%rcx,%rax,4)
incq %rax
movl 0x88(%r13), %ecx
jmp 0xad96d
cmpl $0x1, 0x58(%r13)
jne 0xada03
movl 0x8c(%r13), %esi
movslq %esi, %rcx
movl (%r13), %eax
movl 0x98(%r13), %edx
leal 0x1(%rdx), %edi
imull %edx, %edi
movl %eax, %r8d
subl %edx, %r8d
notl %eax
addl %edx, %eax
imull %r8d, %eax
addl %edi, %eax
cltd
idivl %r10d
addl %esi, %eax
cltq
cmpq %rax, %rcx
jge 0xada03
movl 0x54(%r9), %eax
movslq 0x848(%r9), %rdx
movq (%r12,%rdx,8), %rdx
movl %eax, (%rdx,%rcx,4)
incq %rcx
movl 0x8c(%r13), %esi
jmp 0xad9b7
cmpl $0x1, 0x5c(%r13)
jne 0xada4d
movl 0x90(%r13), %ecx
movslq %ecx, %rax
movslq 0x98(%r13), %rdx
movslq %ecx, %rcx
addq %rdx, %rcx
cmpq %rcx, %rax
jge 0xada4d
movl 0x48(%r9), %ecx
movl 0x54(%r9), %edx
cmpl %edx, %ecx
cmovll %ecx, %edx
movslq 0x848(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movl %edx, (%rcx,%rax,4)
incq %rax
movl 0x90(%r13), %ecx
jmp 0xada14
cmpl $0x1, 0x60(%r13)
jne 0xadaa1
movl 0x94(%r13), %ecx
movslq %ecx, %rax
movl (%r13), %edx
movl 0x98(%r13), %esi
movl %edx, %edi
subl %esi, %edi
notl %edx
addl %esi, %edx
imull %esi, %esi
addl %ecx, %esi
imull %edi, %edx
addl %esi, %edx
movslq %edx, %rcx
cmpq %rcx, %rax
jge 0xadaa1
movl 0x54(%r9), %ecx
movslq 0x848(%r9), %rdx
movq (%r12,%rdx,8), %rdx
movl %ecx, (%rdx,%rax,4)
incq %rax
movl 0x94(%r13), %ecx
jmp 0xada5e
cmpw $0x1, 0x12(%r9)
jne 0xadb1d
cmpl $0x1, 0x30(%r13)
jne 0xadac6
movl 0x50(%r9), %eax
movslq 0x84c(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movslq 0x64(%r13), %rdx
movl %eax, (%rcx,%rdx,4)
cmpl $0x1, 0x34(%r13)
jne 0xadae3
movl 0x50(%r9), %eax
movslq 0x84c(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movslq 0x68(%r13), %rdx
movl %eax, (%rcx,%rdx,4)
cmpl $0x1, 0x38(%r13)
jne 0xadb00
movl 0x50(%r9), %eax
movslq 0x84c(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movslq 0x6c(%r13), %rdx
movl %eax, (%rcx,%rdx,4)
cmpl $0x1, 0x3c(%r13)
jne 0xadb1d
movl 0x50(%r9), %eax
movslq 0x84c(%r9), %rcx
movq (%r12,%rcx,8), %rcx
movslq 0x70(%r13), %rdx
movl %eax, (%rcx,%rdx,4)
andl $0x0, 0xc8(%r13)
xorl %eax, %eax
xorl %ecx, %ecx
movslq 0x10(%r13), %rdx
cmpq %rdx, %rcx
jge 0xad40c
movq 0xc0(%r13), %rsi
andl $0x0, (%rsi,%rcx,4)
xorl %edx, %edx
xorl %edi, %edi
movslq (%rbp), %r8
cmpq %r8, %rdi
jge 0xadb65
movq (%r12,%rcx,8), %r8
movl (%r8,%rdi,4), %r8d
cmpl %r8d, %edx
cmovlel %r8d, %edx
movl %edx, (%rsi,%rcx,4)
incq %rdi
jmp 0xadb45
movl 0xc8(%r13), %esi
cmpl %edx, %esi
cmovgl %esi, %edx
movl %edx, 0xc8(%r13)
incq %rcx
jmp 0xadb29