// File: /workspace/github_c_makefile_star2_O1/PoulinV[P]AxiCLASS/build/../source/output.c
// Function: output_open_cl_file
int output_open_cl_file(
                        struct harmonic * phr,
                        struct output * pop,
                        FILE * * clfile,
                        FileName filename,
                        char * first_line,
                        int lmax
                        ) {
  /** Summary */

  int index_d1,index_d2;
  int colnum = 1;
  char tmp[60]; //A fixed number here is ok, since it should just correspond to the largest string which is printed to tmp.

  class_open(*clfile,filename,"w",pop->error_message);

  if (pop->write_header == _TRUE_) {

    /** - First we deal with the entries that are dependent of format type */

    if (pop->output_format == class_format) {
      fprintf(*clfile,"# dimensionless %s\n",first_line);
    }
    if (pop->output_format == camb_format) {
      fprintf(*clfile,"# %s (units: [microK]^2)\n",first_line);
    }

    fprintf(*clfile,"# for l=2 to %d, i.e. number of multipoles equal to %d\n",lmax,lmax-1);
    fprintf(*clfile,"#\n");

    if (pop->output_format == class_format) {
      fprintf(*clfile,"# -> if you prefer output in CAMB/HealPix/LensPix units/order, set 'format' to 'camb' in input file\n");
    }

    fprintf(*clfile,"# -> if you don't want to see such a header, set 'headers' to 'no' in input file\n");

    if (phr->has_pp == _TRUE_) {
      if (pop->output_format == class_format) {
        fprintf(*clfile,"# -> for CMB lensing (phi), these are C_l^phi-phi for the lensing potential.\n");
      }
      if (pop->output_format == camb_format) {
        fprintf(*clfile,"# -> for CMB lensing (d), these are C_l^dd for the deflection field.\n");
      }
    }

    if (phr->has_ll == _TRUE_) {
      fprintf(*clfile,"# -> for galaxy lensing (lens[i]), these are C_l^phi-phi for the lensing potential.\n");
    }

    if (phr->has_pp == _TRUE_ || phr->has_ll == _TRUE_) {
      fprintf(*clfile,"#    Remember the conversion factors:\n");
      fprintf(*clfile,"#    C_l^dd (deflection) = l(l+1) C_l^phi-phi\n");
      fprintf(*clfile,"#    C_l^gg (shear/convergence) = 1/4 (l(l+1))^2 C_l^phi-phi\n");
    }

    fprintf(*clfile,"#\n");

    if (0==1){
      fprintf(*clfile,"#");
      class_fprintf_columntitle(*clfile,"l",_TRUE_,colnum);
    }
    else{
      fprintf(*clfile,"# 1:l ");
      colnum++;
    }
    if (pop->output_format == class_format) {
      class_fprintf_columntitle(*clfile,"TT",phr->has_tt,colnum);
      class_fprintf_columntitle(*clfile,"EE",phr->has_ee,colnum);
      class_fprintf_columntitle(*clfile,"TE",phr->has_te,colnum);
      class_fprintf_columntitle(*clfile,"BB",phr->has_bb,colnum);
      class_fprintf_columntitle(*clfile,"phiphi",phr->has_pp,colnum);
      class_fprintf_columntitle(*clfile,"TPhi",phr->has_tp,colnum);
      class_fprintf_columntitle(*clfile,"Ephi",phr->has_ep,colnum);
    }
    else if (pop->output_format == camb_format) {
      class_fprintf_columntitle(*clfile,"TT",phr->has_tt,colnum);
      class_fprintf_columntitle(*clfile,"EE",phr->has_ee,colnum);
      class_fprintf_columntitle(*clfile,"BB",phr->has_bb,colnum);
      class_fprintf_columntitle(*clfile,"TE",phr->has_te,colnum);
      class_fprintf_columntitle(*clfile,"dd",phr->has_pp,colnum);
      class_fprintf_columntitle(*clfile,"dT",phr->has_tp,colnum);
      class_fprintf_columntitle(*clfile,"dE",phr->has_ep,colnum);
    }

    /** - Next deal with entries that are independent of format type */

    if (phr->has_dd == _TRUE_){
      for (index_d1=0; index_d1<phr->d_size; index_d1++){
        for (index_d2=index_d1; index_d2<=MIN(index_d1+phr->non_diag,phr->d_size-1); index_d2++){
          class_sprintf(tmp,"dens[%d]-dens[%d]",index_d1+1,index_d2+1);
          class_fprintf_columntitle(*clfile,tmp,_TRUE_,colnum);
        }
      }
    }
    if (phr->has_td == _TRUE_){
      for (index_d1=0; index_d1<phr->d_size; index_d1++){
        class_sprintf(tmp,"T-dens[%d]",index_d1+1);
        class_fprintf_columntitle(*clfile,tmp,_TRUE_,colnum);
      }
    }
    if (phr->has_pd == _TRUE_){
      for (index_d1=0; index_d1<phr->d_size; index_d1++){
        class_sprintf(tmp,"phi-dens[%d]",index_d1+1);
        class_fprintf_columntitle(*clfile,tmp,_TRUE_,colnum);
      }
    }
    if (phr->has_ll == _TRUE_){
      for (index_d1=0; index_d1<phr->d_size; index_d1++){
        for (index_d2=index_d1; index_d2<=MIN(index_d1+phr->non_diag,phr->d_size-1); index_d2++){
          class_sprintf(tmp,"lens[%d]-lens[%d]",index_d1+1,index_d2+1);
          class_fprintf_columntitle(*clfile,tmp,_TRUE_,colnum);
        }
      }
    }
    if (phr->has_tl == _TRUE_){
      for (index_d1=0; index_d1<phr->d_size; index_d1++){
        class_sprintf(tmp,"T-lens[%d]",index_d1+1);
        class_fprintf_columntitle(*clfile,tmp,_TRUE_,colnum);
      }
    }
    if (phr->has_dl == _TRUE_){
      for (index_d1=0; index_d1<phr->d_size; index_d1++){
        for (index_d2=MAX(index_d1-phr->non_diag,0); index_d2<=MIN(index_d1+phr->non_diag,phr->d_size-1); index_d2++) {
          class_sprintf(tmp,"dens[%d]-lens[%d]",index_d1+1,index_d2+1);
          class_fprintf_columntitle(*clfile,tmp,_TRUE_,colnum);
        }
      }
    }
    fprintf(*clfile,"\n");
  }

  return _SUCCESS_;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x838, %rsp            # imm = 0x838
movl %r9d, %ebx
movq %r8, %r12
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, 0x18(%rsp)
leaq 0x5019(%rip), %rsi      # 0xf4411
movq %rcx, %rdi
callq 0x8400
movq %rax, (%r13)
testq %rax, %rax
je 0xef785
xorl %ecx, %ecx
cmpw $0x1, 0x408(%r15)
jne 0xeff53
cmpl $0x0, 0x40c(%r15)
jne 0xef43c
leaq 0x444be(%rip), %rsi     # 0x1338ed
movq %rax, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x84e0
cmpl $0x1, 0x40c(%r15)
movq 0x18(%rsp), %r14
jne 0xef460
movq (%r13), %rdi
leaq 0x444ab(%rip), %rsi     # 0x133901
movq %r12, %rdx
xorl %eax, %eax
callq 0x84e0
movq (%r13), %rdi
leal -0x1(%rbx), %ecx
leaq 0x444ad(%rip), %rsi     # 0x13391b
movl %ebx, %edx
xorl %eax, %eax
callq 0x84e0
movq (%r13), %rcx
leaq 0x1e02b(%rip), %rdi     # 0x10d4ad
movl $0x2, %esi
movl $0x1, %edx
callq 0x86d0
cmpl $0x0, 0x40c(%r15)
jne 0xef4b5
movq (%r13), %rcx
leaq 0x444ad(%rip), %rdi     # 0x133953
movl $0x64, %esi
movl $0x1, %edx
callq 0x86d0
movq (%r13), %rcx
leaq 0x444f8(%rip), %rdi     # 0x1339b8
movl $0x51, %esi
movl $0x1, %edx
callq 0x86d0
cmpl $0x1, 0x40(%r14)
jne 0xef51e
cmpl $0x0, 0x40c(%r15)
jne 0xef4fa
movq (%r13), %rcx
leaq 0x4451f(%rip), %rdi     # 0x133a0a
movl $0x4d, %esi
movl $0x1, %edx
callq 0x86d0
cmpl $0x1, 0x40c(%r15)
jne 0xef51e
movq (%r13), %rcx
leaq 0x44549(%rip), %rdi     # 0x133a58
movl $0x45, %esi
movl $0x1, %edx
callq 0x86d0
cmpl $0x1, 0x58(%r14)
jne 0xef53f
movq (%r13), %rcx
leaq 0x4456e(%rip), %rdi     # 0x133a9e
movl $0x54, %esi
movl $0x1, %edx
callq 0x86d0
cmpl $0x1, 0x40(%r14)
je 0xef54d
cmpl $0x1, 0x58(%r14)
jne 0xef59b
movq (%r13), %rcx
leaq 0x4459b(%rip), %rdi     # 0x133af3
movl $0x26, %esi
movl $0x1, %edx
callq 0x86d0
movq (%r13), %rcx
leaq 0x445a8(%rip), %rdi     # 0x133b1a
movl $0x2e, %esi
movl $0x1, %edx
callq 0x86d0
movq (%r13), %rcx
leaq 0x445bd(%rip), %rdi     # 0x133b49
movl $0x3d, %esi
movl $0x1, %edx
callq 0x86d0
movq (%r13), %rcx
leaq 0x1df07(%rip), %rdi     # 0x10d4ad
movl $0x2, %esi
movl $0x1, %edx
callq 0x86d0
movq (%r13), %rcx
leaq 0x445c7(%rip), %rdi     # 0x133b87
movl $0x6, %esi
movl $0x1, %edx
callq 0x86d0
movl 0x40c(%r15), %eax
movl $0x2, %r8d
cmpl $0x1, %eax
je 0xef7dd
testl %eax, %eax
jne 0xef98d
movl $0x2, %r8d
cmpl $0x1, 0x30(%r14)
jne 0xef635
movq (%r13), %rdi
leaq 0x44589(%rip), %rax     # 0x133b8e
movq %rax, (%rsp)
leaq 0x442ad(%rip), %rsi     # 0x1338bd
leaq 0x442a5(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x2, %r8d
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl $0x3, %r8d
cmpl $0x1, 0x34(%r14)
jne 0xef672
movq (%r13), %rdi
leal 0x1(%r8), %ebx
leaq 0x1b799(%rip), %rax     # 0x10ade4
movq %rax, (%rsp)
leaq 0x44267(%rip), %rsi     # 0x1338bd
leaq 0x4425f(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebx, %r8d
cmpl $0x1, 0x38(%r14)
jne 0xef6af
movq (%r13), %rdi
leal 0x1(%r8), %ebx
leaq 0x44509(%rip), %rax     # 0x133b91
movq %rax, (%rsp)
leaq 0x4422a(%rip), %rsi     # 0x1338bd
leaq 0x44222(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebx, %r8d
cmpl $0x1, 0x3c(%r14)
jne 0xef6ec
movq (%r13), %rdi
leal 0x1(%r8), %ebx
leaq 0x444cf(%rip), %rax     # 0x133b94
movq %rax, (%rsp)
leaq 0x441ed(%rip), %rsi     # 0x1338bd
leaq 0x441e5(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebx, %r8d
cmpl $0x1, 0x40(%r14)
jne 0xef729
movq (%r13), %rdi
leal 0x1(%r8), %ebx
leaq 0x44495(%rip), %rax     # 0x133b97
movq %rax, (%rsp)
leaq 0x441b0(%rip), %rsi     # 0x1338bd
leaq 0x441a8(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebx, %r8d
cmpl $0x1, 0x44(%r14)
jne 0xef766
movq (%r13), %rdi
leal 0x1(%r8), %ebx
leaq 0x4445f(%rip), %rax     # 0x133b9e
movq %rax, (%rsp)
leaq 0x44173(%rip), %rsi     # 0x1338bd
leaq 0x4416b(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebx, %r8d
cmpl $0x1, 0x48(%r14)
jne 0xef98d
movq (%r13), %rdi
leal 0x1(%r8), %ebx
leaq 0x44423(%rip), %rax     # 0x133ba3
jmp 0xef966
leaq 0x424c(%rip), %rsi      # 0xf39d8
leaq 0x4413e(%rip), %rdx     # 0x1338d1
leaq 0x1dc6a(%rip), %r8      # 0x10d404
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x30c2c
addq $0x420, %r15            # imm = 0x420
leaq 0x187a(%rip), %rsi      # 0xf1034
leaq 0x44118(%rip), %rdx     # 0x1338d9
movq %r15, %rdi
movl $0x673, %ecx            # imm = 0x673
movq %rbx, %r8
xorl %eax, %eax
callq 0x30c2c
movl $0x1, %ecx
jmp 0xeff53
cmpl $0x1, 0x30(%r14)
jne 0xef81f
movq (%r13), %rdi
leaq 0x4439f(%rip), %rax     # 0x133b8e
movq %rax, (%rsp)
leaq 0x440c3(%rip), %rsi     # 0x1338bd
leaq 0x440bb(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x2, %r8d
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl $0x3, %r8d
cmpl $0x1, 0x34(%r14)
jne 0xef85c
movq (%r13), %rdi
leal 0x1(%r8), %ebx
leaq 0x1b5af(%rip), %rax     # 0x10ade4
movq %rax, (%rsp)
leaq 0x4407d(%rip), %rsi     # 0x1338bd
leaq 0x44075(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebx, %r8d
cmpl $0x1, 0x3c(%r14)
jne 0xef899
movq (%r13), %rdi
leal 0x1(%r8), %ebx
leaq 0x44322(%rip), %rax     # 0x133b94
movq %rax, (%rsp)
leaq 0x44040(%rip), %rsi     # 0x1338bd
leaq 0x44038(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebx, %r8d
cmpl $0x1, 0x38(%r14)
jne 0xef8d6
movq (%r13), %rdi
leal 0x1(%r8), %ebx
leaq 0x442e2(%rip), %rax     # 0x133b91
movq %rax, (%rsp)
leaq 0x44003(%rip), %rsi     # 0x1338bd
leaq 0x43ffb(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebx, %r8d
cmpl $0x1, 0x40(%r14)
jne 0xef913
movq (%r13), %rdi
leal 0x1(%r8), %ebx
leaq 0x3c7ec(%rip), %rax     # 0x12c0d8
movq %rax, (%rsp)
leaq 0x43fc6(%rip), %rsi     # 0x1338bd
leaq 0x43fbe(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebx, %r8d
cmpl $0x1, 0x44(%r14)
jne 0xef950
movq (%r13), %rdi
leal 0x1(%r8), %ebx
leaq 0x4427f(%rip), %rax     # 0x133ba8
movq %rax, (%rsp)
leaq 0x43f89(%rip), %rsi     # 0x1338bd
leaq 0x43f81(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebx, %r8d
cmpl $0x1, 0x48(%r14)
jne 0xef98d
movq (%r13), %rdi
leal 0x1(%r8), %ebx
leaq 0x44245(%rip), %rax     # 0x133bab
movq %rax, (%rsp)
leaq 0x43f4c(%rip), %rsi     # 0x1338bd
leaq 0x43f44(%rip), %rcx     # 0x1338bc
movl $0x3, %edx
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebx, %r8d
cmpl $0x1, 0x4c(%r14)
movq %r13, 0x10(%rsp)
jne 0xefabd
cmpl $0x0, 0x98(%r14)
jle 0xefabd
xorl %r15d, %r15d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl (%r14), %eax
addl %r15d, %eax
movl 0x98(%r14), %ecx
decl %ecx
cmpl %ecx, %eax
cmovll %eax, %ecx
cmpl %ecx, %r15d
movl %edx, 0x24(%rsp)
jle 0xef9d8
movl %r8d, %r12d
jmp 0xefaa2
leal 0x1(%r15), %eax
movl %eax, 0xc(%rsp)
movl %edx, %ebx
leaq 0x30(%rsp), %r13
movq %r8, 0x28(%rsp)
leal 0x2(%rbx), %r14d
xorl %edi, %edi
xorl %esi, %esi
leaq 0x441b3(%rip), %r12     # 0x133bae
movq %r12, %rdx
movl 0xc(%rsp), %ebp
movl %ebp, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq %r13, %rdi
movq %r12, %rdx
movl %ebp, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x8550
movq 0x10(%rsp), %rax
movq (%rax), %r14
movq %r13, %rdi
callq 0x8180
movl $0x15, %edx
subl %eax, %edx
cmpl $0x3, %edx
jl 0xefa46
movl $0x3, %edx
testl %edx, %edx
movq 0x28(%rsp), %r8
jg 0xefa51
xorl %edx, %edx
leal 0x1(%r8), %r12d
leaq 0x30(%rsp), %r13
movq %r13, (%rsp)
movq %r14, %rdi
leaq 0x43e55(%rip), %rsi     # 0x1338bd
leaq 0x43e4d(%rip), %rcx     # 0x1338bc
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movq 0x18(%rsp), %r14
movl (%r14), %eax
addl %r15d, %eax
movl 0x98(%r14), %ecx
decl %ecx
cmpl %ecx, %eax
cmovll %eax, %ecx
incl %ebx
movl %r12d, %r8d
cmpl %ecx, %ebx
jl 0xef9e7
incl %r15d
movl 0x24(%rsp), %edx
incl %edx
movl %r12d, %r8d
cmpl 0x98(%r14), %r15d
jl 0xef9b3
jmp 0xefac0
movl %r8d, %r12d
cmpl $0x1, 0x50(%r14)
jne 0xefb77
cmpl $0x0, 0x98(%r14)
jle 0xefb77
xorl %r13d, %r13d
leaq 0x440dd(%rip), %rbx     # 0x133bc0
leaq 0x30(%rsp), %r15
leal 0x1(%r13), %ebp
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq %r15, %rdi
movq %rbx, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x8550
movq 0x10(%rsp), %rax
movq (%rax), %r14
movq %r15, %rdi
callq 0x8180
movl $0x15, %edx
subl %eax, %edx
cmpl $0x3, %edx
jl 0xefb31
movl $0x3, %edx
testl %edx, %edx
jg 0xefb37
xorl %edx, %edx
addl %r12d, %r13d
movq %r15, (%rsp)
movq %r14, %rdi
leaq 0x43d75(%rip), %rsi     # 0x1338bd
leaq 0x43d6d(%rip), %rcx     # 0x1338bc
movl %r13d, %r8d
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebp, %r13d
movq 0x18(%rsp), %r14
cmpl 0x98(%r14), %ebp
jl 0xefae8
addl %ebp, %r12d
cmpl $0x1, 0x54(%r14)
jne 0xefc2e
cmpl $0x0, 0x98(%r14)
jle 0xefc2e
xorl %r13d, %r13d
leaq 0x44031(%rip), %rbx     # 0x133bcb
leaq 0x30(%rsp), %r15
leal 0x1(%r13), %ebp
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq %r15, %rdi
movq %rbx, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x8550
movq 0x10(%rsp), %rax
movq (%rax), %r14
movq %r15, %rdi
callq 0x8180
movl $0x15, %edx
subl %eax, %edx
cmpl $0x3, %edx
jl 0xefbe8
movl $0x3, %edx
testl %edx, %edx
jg 0xefbee
xorl %edx, %edx
addl %r12d, %r13d
movq %r15, (%rsp)
movq %r14, %rdi
leaq 0x43cbe(%rip), %rsi     # 0x1338bd
leaq 0x43cb6(%rip), %rcx     # 0x1338bc
movl %r13d, %r8d
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebp, %r13d
movq 0x18(%rsp), %r14
cmpl 0x98(%r14), %ebp
jl 0xefb9f
addl %ebp, %r12d
cmpl $0x1, 0x58(%r14)
jne 0xefd56
cmpl $0x0, 0x98(%r14)
jle 0xefd56
xorl %ebp, %ebp
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl (%r14), %eax
addl %ebp, %eax
movl 0x98(%r14), %ecx
decl %ecx
cmpl %ecx, %eax
cmovll %eax, %ecx
cmpl %ecx, %ebp
movl %edx, 0x24(%rsp)
jle 0xefc71
movl %r12d, %r15d
jmp 0xefd3c
leal 0x1(%rbp), %eax
movl %eax, 0xc(%rsp)
movl %edx, %ebx
leaq 0x30(%rsp), %r13
movq %r12, 0x28(%rsp)
leal 0x2(%rbx), %r14d
xorl %edi, %edi
xorl %esi, %esi
leaq 0x43f45(%rip), %r15     # 0x133bd8
movq %r15, %rdx
movl 0xc(%rsp), %r12d
movl %r12d, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq %r13, %rdi
movq %r15, %rdx
movl %r12d, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x8550
movq 0x10(%rsp), %rax
movq (%rax), %r14
movq %r13, %rdi
callq 0x8180
movl $0x15, %edx
subl %eax, %edx
cmpl $0x3, %edx
jl 0xefce1
movl $0x3, %edx
testl %edx, %edx
movq 0x28(%rsp), %r8
jg 0xefcec
xorl %edx, %edx
leal 0x1(%r8), %r15d
leaq 0x30(%rsp), %r13
movq %r13, (%rsp)
movq %r14, %rdi
leaq 0x43bba(%rip), %rsi     # 0x1338bd
leaq 0x43bb2(%rip), %rcx     # 0x1338bc
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movq 0x18(%rsp), %r14
movl (%r14), %eax
addl %ebp, %eax
movl 0x98(%r14), %ecx
decl %ecx
cmpl %ecx, %eax
cmovll %eax, %ecx
incl %ebx
movl %r15d, %r12d
cmpl %ecx, %ebx
jl 0xefc7f
incl %ebp
movl 0x24(%rsp), %edx
incl %edx
movl %r15d, %r12d
cmpl 0x98(%r14), %ebp
jl 0xefc4e
jmp 0xefd59
movl %r12d, %r15d
cmpl $0x1, 0x5c(%r14)
jne 0xefe10
cmpl $0x0, 0x98(%r14)
jle 0xefe10
xorl %r13d, %r13d
leaq 0x43e6e(%rip), %rbx     # 0x133bea
leaq 0x30(%rsp), %r12
leal 0x1(%r13), %ebp
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq %r12, %rdi
movq %rbx, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x8550
movq 0x10(%rsp), %rax
movq (%rax), %r14
movq %r12, %rdi
callq 0x8180
movl $0x15, %edx
subl %eax, %edx
cmpl $0x3, %edx
jl 0xefdca
movl $0x3, %edx
testl %edx, %edx
jg 0xefdd0
xorl %edx, %edx
addl %r15d, %r13d
movq %r12, (%rsp)
movq %r14, %rdi
leaq 0x43adc(%rip), %rsi     # 0x1338bd
leaq 0x43ad4(%rip), %rcx     # 0x1338bc
movl %r13d, %r8d
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movl %ebp, %r13d
movq 0x18(%rsp), %r14
cmpl 0x98(%r14), %ebp
jl 0xefd81
addl %ebp, %r15d
cmpl $0x1, 0x60(%r14)
jne 0xeff3f
cmpl $0x0, 0x98(%r14)
jle 0xeff3f
xorl %ebp, %ebp
movl (%r14), %eax
movl 0x98(%r14), %ecx
movl %ebp, %ebx
subl %eax, %ebx
testl %ebx, %ebx
movl $0x0, %edx
cmovgl %ebx, %edx
addl %ebp, %eax
decl %ecx
cmpl %ecx, %eax
cmovll %eax, %ecx
cmpl %ecx, %edx
jle 0xefe58
movl %r15d, %r13d
jmp 0xeff2d
leal 0x1(%rbp), %eax
movl %eax, 0xc(%rsp)
testl %ebx, %ebx
movl $0x0, %eax
cmovlel %eax, %ebx
decl %ebx
leaq 0x30(%rsp), %r12
movq %r15, 0x28(%rsp)
leal 0x2(%rbx), %r14d
xorl %edi, %edi
xorl %esi, %esi
leaq 0x43d71(%rip), %r13     # 0x133bf5
movq %r13, %rdx
movl 0xc(%rsp), %r15d
movl %r15d, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x8550
incl %eax
movslq %eax, %rsi
movq %r12, %rdi
movq %r13, %rdx
movl %r15d, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x8550
movq 0x10(%rsp), %rax
movq (%rax), %r14
movq %r12, %rdi
callq 0x8180
movl $0x15, %edx
subl %eax, %edx
cmpl $0x3, %edx
jl 0xefed2
movl $0x3, %edx
testl %edx, %edx
movq 0x28(%rsp), %r8
jg 0xefedd
xorl %edx, %edx
leal 0x1(%r8), %r13d
leaq 0x30(%rsp), %r12
movq %r12, (%rsp)
movq %r14, %rdi
leaq 0x439c9(%rip), %rsi     # 0x1338bd
leaq 0x439c1(%rip), %rcx     # 0x1338bc
movl $0x12, %r9d
xorl %eax, %eax
callq 0x84e0
movq 0x18(%rsp), %r14
movl (%r14), %eax
addl %ebp, %eax
movl 0x98(%r14), %ecx
decl %ecx
cmpl %ecx, %eax
cmovll %eax, %ecx
incl %ebx
movl %r13d, %r15d
cmpl %ecx, %ebx
jl 0xefe70
incl %ebp
movl %r13d, %r15d
cmpl 0x98(%r14), %ebp
jl 0xefe2b
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movl $0xa, %edi
callq 0x8440
xorl %ecx, %ecx
movl %ecx, %eax
addq $0x838, %rsp            # imm = 0x838
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq