LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/btbujiangjun[P]abcdl/example/algebra/LibSvm.cpp
// Function: main
int main(int argc,char** argv){
    abcdl::utils::log::set_min_log_level(abcdl::utils::log::INFO);
    abcdl::utils::log::initialize_log(argc, argv);
    abcdl::algebra::Mat data_mat;
    abcdl::algebra::Mat label_mat;
    abcdl::utils::LibsvmHelper<real> helper;
    helper.read_data(251, 2, "./data/test.libsvm", &data_mat, &label_mat);
    printf("sample size:%zu\n", data_mat.rows());
    helper.write_data("./data/test.write.libsvm", data_mat, label_mat);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rsi, %rbx
movl %edi, %ebp
xorl %edi, %edi
callq 0x42984
movl %ebp, %edi
movq %rbx, %rsi
callq 0x42520
leaq 0x30(%rsp), %rdi
callq 0x2396c
leaq 0x58(%rsp), %rdi
callq 0x2396c
movq $0x2710, 0x20(%rsp)     # imm = 0x2710
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x38dac(%rip), %rsi     # 0x44190
leaq 0x38db7(%rip), %rdx     # 0x441a2
movq %rsp, %rdi
callq 0x18c74
leaq 0x20(%rsp), %rdi
movq %rsp, %rcx
leaq 0x30(%rsp), %r8
leaq 0x58(%rsp), %r9
movl $0xfb, %esi
movl $0x2, %edx
callq 0x118ca
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0xb422
callq 0xa3d0
movq 0x30(%rsp), %rsi
leaq 0x38d75(%rip), %rdi     # 0x441a3
xorl %eax, %eax
callq 0xa060
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0x38d72(%rip), %rsi     # 0x441b4
leaq 0x38d83(%rip), %rdx     # 0x441cc
callq 0x18c74
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
leaq 0x30(%rsp), %rdx
leaq 0x58(%rsp), %rcx
callq 0x11d96
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0xb473
callq 0xa3d0
leaq 0x58(%rsp), %rdi
callq 0x23bc2
leaq 0x30(%rsp), %rdi
callq 0x23bc2
xorl %eax, %eax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0xb499
jmp 0xb4ac
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0xb4af
callq 0xa3d0
jmp 0xb4af
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x23bc2
jmp 0xb4be
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x23bc2
movq %rbx, %rdi
callq 0xa6c0
// File: /workspace/github_cpp_makefile_star2_O3/nmmmnu[P]HM3/hm3/main/db_merge.cc
// Function: int merge<hm3::DiskTable>(hm3::DiskTable const&, char const*, bool)
int merge(const TABLE &table, const char *output_file, bool const keepTombstones){
	using DiskFileBuilder = hm3::diskfile::DiskFileBuilder;

	DiskFileBuilder df;

	df.createFromList(output_file, table, keepTombstones);

	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebp
movq %rdi, %rbx
testq %rsi, %rsi
je 0x29a7
movq %rsi, %r14
movq %rsi, %rdi
callq 0x20b0
jmp 0x29b0
leaq 0x5686(%rip), %r14      # 0x8034
xorl %eax, %eax
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, 0x8(%rsi)
movzbl %bpl, %ecx
leaq 0xf(%rsp), %rdi
movq %rbx, %rdx
callq 0x2b48
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/nmmmnu[P]HM3/hm3/multitableiterator/dualiterator_impl.h
// Function: hm3::multitableiterator::DualIterator<hm3::DiskTable, hm3::DiskTable>::operator*() const
const Pair &DualIterator<TABLE1, TABLE2>::operator*() const{
	const Pair &pair1 = *it1_;
	const Pair &pair2 = *it2_;

	int const cmp = pair1.cmp(pair2);

	if (cmp != 0){
		// return smaller
		return  cmp < 0 ? pair1 : pair2;
	}else{
		// return newer
		return pair1.cmpTime(pair2) > 0 ? pair1 : pair2;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r15
movq (%rdi), %rax
leaq 0x8940(%rip), %rbx      # 0xc1d8
cmpq 0x30(%rdi), %rax
jne 0x38ab
movq 0x38(%r15), %rax
movq %rbx, %r14
cmpq %rax, 0x8(%r15)
je 0x38b6
movq %r15, %rdi
callq 0x6ad4
movq %rax, %r14
movq 0x60(%r15), %rax
cmpq 0x90(%r15), %rax
jne 0x38d0
movq 0x98(%r15), %rax
cmpq %rax, 0x68(%r15)
je 0x38df
addq $0x60, %r15
movq %r15, %rdi
callq 0x6ad4
movq %rax, %rbx
movq %rbx, %rdi
callq 0x5574
movq %r14, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x55e8
testl %eax, %eax
je 0x38fe
shrl $0x1f, %eax
jmp 0x390e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x562c
testl %eax, %eax
setg %al
testb %al, %al
cmovneq %r14, %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/nmmmnu[P]HM3/hm3/multitableiterator/dualiterator_impl.h
// Function: hm3::multitableiterator::DualIterator<hm3::DiskTable, hm3::DiskTable>::operator++()
auto DualIterator<TABLE1, TABLE2>::operator++() -> DualIterator &{
	const Pair &pair1 = *it1_;
	const Pair &pair2 = *it2_;

	const auto cmp = pair1.cmp(pair2);

	if (cmp <= 0)
		++it1_;

	if (cmp >= 0)
		++it2_;

	return *this;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
leaq 0x88a8(%rip), %r15      # 0xc1d8
cmpq 0x30(%rdi), %rax
jne 0x3943
movq 0x38(%rbx), %rax
movq %r15, %r14
cmpq %rax, 0x8(%rbx)
je 0x394e
movq %rbx, %rdi
callq 0x6ad4
movq %rax, %r14
movq 0x60(%rbx), %rax
cmpq 0x90(%rbx), %rax
jne 0x3968
movq 0x98(%rbx), %rax
cmpq %rax, 0x68(%rbx)
je 0x3974
leaq 0x60(%rbx), %rdi
callq 0x6ad4
movq %rax, %r15
movq %r15, %rdi
callq 0x5574
movq %r14, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x55e8
testl %eax, %eax
jg 0x3996
incq 0x8(%rbx)
testl %eax, %eax
js 0x399a
incq 0x68(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/nmmmnu[P]HM3/hm3/tableloader/argtableloader.cc
// Function: hm3::tableloader::ArgTableLoader::refresh_()
bool ArgTableLoader::refresh_(){
	container_.clear();

	if (argc_ < 0)
		return true;

	container_.reserve((container_type::size_type) argc_);

	for(const char *filename : ArrayRef<const char *>{ argv_, argc_ } ){
		DiskTable dt;
		dt.open(filename);
		container_.push_back( std::move(dt) );
	}

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %r14
movq 0x10(%rdi), %r15
movq 0x18(%rdi), %r12
cmpq %r15, %r12
je 0x4eb0
movq %r15, %rbx
movq %rbx, %rdi
callq 0x29d8
addq $0xe0, %rbx
cmpq %r12, %rbx
jne 0x4e98
movq %r15, 0x18(%r14)
movslq (%r14), %rsi
testq %rsi, %rsi
js 0x4fba
leaq 0x10(%r14), %rdi
movq %rdi, 0x10(%rsp)
callq 0x4fe6
movl (%r14), %r13d
xorl %ebp, %ebp
testl %r13d, %r13d
cmovlel %ebp, %r13d
jle 0x4fba
movq 0x8(%r14), %rax
movq %rax, 0x8(%rsp)
leaq 0x30(%rsp), %rbx
shlq $0x3, %r13
leaq 0x28(%rsp), %r14
xorl %r15d, %r15d
movq 0x8(%rsp), %rax
movq (%rax,%r15), %r12
movb %bpl, 0x28(%rsp)
movb %bpl, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x28(%rbx)
movups %xmm0, 0x18(%rbx)
movq $0x0, 0x38(%rbx)
movl %ebp, 0x54(%rbx)
movups %xmm0, 0x44(%rbx)
movl $0x1, 0x8c(%rsp)
movups %xmm0, 0x60(%rbx)
movl %ebp, 0xbc(%rsp)
movl %ebp, 0x84(%rbx)
movups %xmm0, 0x74(%rbx)
movb $0x1, 0xc0(%rsp)
movups %xmm0, 0xc8(%rbx)
movups %xmm0, 0xb8(%rbx)
movups %xmm0, 0xa8(%rbx)
movups %xmm0, 0x98(%rbx)
testq %r12, %r12
je 0x4f78
movq %r12, %rdi
callq 0x20b0
jmp 0x4f81
leaq 0x30b5(%rip), %r12      # 0x8034
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r14, %rdi
leaq 0x18(%rsp), %rsi
callq 0x5cac
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x52b4
movq %r14, %rdi
callq 0x29d8
addq $0x8, %r15
cmpq %r15, %r13
jne 0x4ef6
movb $0x1, %al
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4fd0
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x29d8
movq %rbx, %rdi
callq 0x22f0
nop
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/Cinterface.cpp
// Function: filterMinMaf(bgl&, float)
void filterMinMaf(bgl &d,float minMaf){
  //  fprintf(stderr,"WARNING filtering minMaf=%f \n",minMaf);
  int posi =0;
  for(int s=0;s<d.nSites;s++){
    //    fprintf(stderr,"minmaf=%f mafs[%d]=%f lik=%f\n",minMaf,s,d.mafs[s],lik);
    if(d.mafs[s]>minMaf&&d.mafs[s]<1-minMaf){
      d.genos[posi] = d.genos[s];
      d.major[posi] = d.major[s];
      d.minor[posi] = d.minor[s];
      d.ids[posi] = d.ids[s];
      d.keeps[posi] = d.keeps[s];
      d.keepInd[posi] = d.keepInd[s];
      d.mafs[posi] = d.mafs[s];
      posi++;   
    }else{
      //      fprintf(stderr,"skippping\n");
    }
  }
  d.nSites=posi;
}

// Assembly:
movl 0x20(%rdi), %edx
testl %edx, %edx
jle 0x3461
movss 0x9cc1(%rip), %xmm1     # 0xd0a0
subss %xmm0, %xmm1
movq 0x38(%rdi), %rsi
xorl %ecx, %ecx
xorl %eax, %eax
movss (%rsi,%rcx,4), %xmm2
ucomiss %xmm0, %xmm2
jbe 0x3454
ucomiss %xmm2, %xmm1
jbe 0x3454
movq (%rdi), %rdx
movq (%rdx,%rcx,8), %rsi
cltq
movq %rsi, (%rdx,%rax,8)
movq 0x8(%rdi), %rdx
movb (%rdx,%rcx), %sil
movb %sil, (%rdx,%rax)
movq 0x10(%rdi), %rdx
movb (%rdx,%rcx), %sil
movb %sil, (%rdx,%rax)
movq 0x18(%rdi), %rdx
movq (%rdx,%rcx,8), %rsi
movq %rsi, (%rdx,%rax,8)
movq 0x28(%rdi), %rdx
movq (%rdx,%rcx,8), %rsi
movq %rsi, (%rdx,%rax,8)
movq 0x30(%rdi), %rdx
movl (%rdx,%rcx,4), %esi
movl %esi, (%rdx,%rax,4)
movq 0x38(%rdi), %rsi
movss (%rsi,%rcx,4), %xmm2
movss %xmm2, (%rsi,%rax,4)
incl %eax
movl 0x20(%rdi), %edx
incq %rcx
movslq %edx, %r8
cmpq %r8, %rcx
jl 0x33eb
jmp 0x3463
xorl %eax, %eax
movl %eax, 0x20(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/Cinterface.cpp
// Function: filterMiss(bgl&, int)
void filterMiss(bgl &d,int minInd){
  //  fprintf(stderr,"WARNING filtering mis=%d \n",minInd);
  int posi =0;
  for(int s=0;s<d.nSites;s++){
    if(d.keepInd[s]>minInd){
      d.genos[posi] = d.genos[s];
      d.major[posi] = d.major[s];
      d.minor[posi] = d.minor[s];
      d.ids[posi] = d.ids[s];
      d.keeps[posi] = d.keeps[s];
      d.keepInd[posi] = d.keepInd[s];
      d.mafs[posi] = d.mafs[s];
      posi++;   
    }else{
      // fprintf(stderr,"skippping\n");
    }
  }
  d.nSites=posi;
}

// Assembly:
movl 0x20(%rdi), %r8d
testl %r8d, %r8d
jle 0x34e9
movq 0x30(%rdi), %rdx
xorl %ecx, %ecx
xorl %eax, %eax
cmpl %esi, (%rdx,%rcx,4)
jle 0x34dc
movq (%rdi), %rdx
movq (%rdx,%rcx,8), %r8
cltq
movq %r8, (%rdx,%rax,8)
movq 0x8(%rdi), %rdx
movb (%rdx,%rcx), %r8b
movb %r8b, (%rdx,%rax)
movq 0x10(%rdi), %rdx
movb (%rdx,%rcx), %r8b
movb %r8b, (%rdx,%rax)
movq 0x18(%rdi), %rdx
movq (%rdx,%rcx,8), %r8
movq %r8, (%rdx,%rax,8)
movq 0x28(%rdi), %rdx
movq (%rdx,%rcx,8), %r8
movq %r8, (%rdx,%rax,8)
movq 0x30(%rdi), %rdx
movl (%rdx,%rcx,4), %r8d
movl %r8d, (%rdx,%rax,4)
movq 0x38(%rdi), %r8
movss (%r8,%rcx,4), %xmm0
movss %xmm0, (%r8,%rax,4)
incl %eax
movl 0x20(%rdi), %r8d
incq %rcx
movslq %r8d, %r9
cmpq %r9, %rcx
jl 0x3478
jmp 0x34eb
xorl %eax, %eax
movl %eax, 0x20(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/Cinterface.cpp
// Function: filterMinLrt(bgl&, float)
void filterMinLrt(bgl &d,float minLrt){
  //  fprintf(stderr,"WARNING filtering minlrt=%f \n",minLrt);
  int posi =0;
  for(int s=0;s<d.nSites;s++){
    float lik=likeFixedMinor(d.mafs[s],d.genos[s],d.nInd,d.keeps[s]);
    float lik0=likeFixedMinor(0.0,d.genos[s],d.nInd,d.keeps[s]);
    //    fprintf(stderr,"minlrt=%f mafs[%d]=%f lik=%f lik0=%f 2*(lik0-lik)=%f\n",minLrt,s,d.mafs[s],lik,lik0,2.0*(lik0-lik));
    if(2.0*(lik0-lik)>minLrt){
      d.genos[posi] = d.genos[s];
      d.major[posi] = d.major[s];
      d.minor[posi] = d.minor[s];
      d.ids[posi] = d.ids[s];
      d.keeps[posi] = d.keeps[s];
      d.keepInd[posi] = d.keepInd[s];
      d.mafs[posi] = d.mafs[s];
      posi++;   
    }else{
      //  fprintf(stderr,"skippping\n");
    }
  }
  d.nSites=posi;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpl $0x0, 0x20(%rdi)
jle 0x35e6
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
xorl %r15d, %r15d
xorl %r14d, %r14d
movq 0x38(%rbx), %rax
xorps %xmm0, %xmm0
cvtss2sd (%rax,%r15,4), %xmm0
movq (%rbx), %rax
movq (%rax,%r15,8), %rdi
movl 0x24(%rbx), %esi
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rdx
callq 0x2cdc
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x4(%rsp)
movq (%rbx), %rax
movq (%rax,%r15,8), %rdi
movl 0x24(%rbx), %esi
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rdx
xorps %xmm0, %xmm0
callq 0x2cdc
cvtsd2ss %xmm0, %xmm0
subss 0x4(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
addsd %xmm0, %xmm0
ucomisd 0x8(%rsp), %xmm0
jbe 0x35d4
movq (%rbx), %rax
movq (%rax,%r15,8), %rcx
movslq %r14d, %r14
movq %rcx, (%rax,%r14,8)
movq 0x8(%rbx), %rax
movb (%rax,%r15), %cl
movb %cl, (%rax,%r14)
movq 0x10(%rbx), %rax
movb (%rax,%r15), %cl
movb %cl, (%rax,%r14)
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rcx
movq %rcx, (%rax,%r14,8)
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rcx
movq %rcx, (%rax,%r14,8)
movq 0x30(%rbx), %rax
movl (%rax,%r15,4), %ecx
movl %ecx, (%rax,%r14,4)
movq 0x38(%rbx), %rax
movss (%rax,%r15,4), %xmm0
movss %xmm0, (%rax,%r14,4)
incl %r14d
incq %r15
movslq 0x20(%rbx), %rax
cmpq %rax, %r15
jl 0x3515
jmp 0x35e9
xorl %r14d, %r14d
movl %r14d, 0x20(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/Cinterface.cpp
// Function: dalloc(bgl&)
void dalloc(bgl &b){
  for(int i=0;i<b.nSites;i++){
    delete [] b.genos[i];
    free(b.ids[i]);
  }
  delete [] b.minor;
  delete [] b.major;
  delete [] b.genos;
  delete [] b.ids;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x20(%rdi)
jle 0x3631
xorl %r14d, %r14d
movq (%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x3618
callq 0x22e0
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x2280
incq %r14
movslq 0x20(%rbx), %rax
cmpq %rax, %r14
jl 0x3607
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x363f
callq 0x22e0
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x364d
callq 0x22e0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x365a
callq 0x22e0
movq 0x18(%rbx), %rdi
addq $0x8, %rsp
testq %rdi, %rdi
je 0x366f
popq %rbx
popq %r14
jmp 0x22e0
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/Cinterface.cpp
// Function: getK(char const*)
int getK(const char*fname){
  const char*delims=" \n";
  FILE *fp = NULL;
  if((fp=fopen(fname,"r"))==NULL){
    fprintf(stderr,"can't open:%s\n",fname);
    exit(0);
  }
  int lens=100000 ;
  char buf[lens];
  if(NULL==fgets(buf,lens,fp)){
    fprintf(stderr,"Increase buffer\n");
    exit(0);
  }
  strtok(buf,delims);
  int K=1;
  while(strtok(NULL,delims))
    K++;
  fclose(fp);

  return(K);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x9ab0(%rip), %rsi      # 0xd137
callq 0x2270
testq %rax, %rax
je 0x36f3
movq %rax, %rbx
movq %rsp, %r14
addq $-0x186a0, %r14         # imm = 0xFFFE7960
movq %r14, %rsp
movq %r14, %rdi
movl $0x186a0, %esi          # imm = 0x186A0
movq %rax, %rdx
callq 0x23b0
testq %rax, %rax
je 0x36fb
leaq 0x9a77(%rip), %r15      # 0xd134
movq %r14, %rdi
movq %r15, %rsi
callq 0x23a0
xorl %r14d, %r14d
xorl %edi, %edi
movq %r15, %rsi
callq 0x23a0
incl %r14d
testq %rax, %rax
jne 0x36cb
movq %rbx, %rdi
callq 0x2210
movl %r14d, %eax
leaq -0x18(%rbp), %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x29a6
callq 0x2982
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/Cinterface.cpp
// Function: allocDouble3D(unsigned long, unsigned long, unsigned long)
double ***allocDouble3D(size_t x,size_t y,size_t z){
  double ***ret= new double**[x];
  for(size_t i=0;i<x;i++){
    ret[i] = new double*[y];
    for(size_t j=0; j<y;j++)
      ret[i][j] = new double[z];
  }
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbp
movq %rsi, %rbx
movq %rdi, %r14
movq %rdi, %rax
shrq $0x3d, %rax
leaq (,%rdi,8), %rcx
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %rcx, %rdi
callq 0x2030
movq %rax, 0x8(%rsp)
movq %r14, 0x10(%rsp)
testq %r14, %r14
je 0x38a1
movabsq $0x1fffffffffffffff, %rax # imm = 0x1FFFFFFFFFFFFFFF
leaq (,%rbx,8), %r12
cmpq %rax, %rbx
movq $-0x1, %rcx
cmovaq %rcx, %r12
leaq (,%rbp,8), %r13
cmpq %rax, %rbp
cmovaq %rcx, %r13
xorl %r14d, %r14d
movq %r12, %rdi
callq 0x2030
movq %rax, %rbp
movq 0x8(%rsp), %rax
movq %rbp, (%rax,%r14,8)
testq %rbx, %rbx
je 0x3897
xorl %r15d, %r15d
movq %r13, %rdi
callq 0x2030
movq %rax, (%rbp,%r15,8)
incq %r15
cmpq %r15, %rbx
jne 0x3882
incq %r14
cmpq 0x10(%rsp), %r14
jne 0x3866
movq 0x8(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/Cinterface.cpp
// Function: functionC(void*)
void *functionC(void *a) //the a means nothing
{
  int running_job;

  pthread_mutex_lock(&mutex1); // Protect so only one thread can edit jobs done
  
  while (jobs > 0) {
    running_job = jobs--;
    pthread_mutex_unlock(&mutex1);

    ////////////////////////////////////////////// not protected
    int c = NumJobs-running_job;
    eachPars p=allPars[c];
    myPars *pars=p.pars;
    int i=p.ind1;
    evalAdmix(p.cor,p.ind1u, p.ind1,pars->r,pars->mean_r,pars->genos,pars->K,pars->Q,pars->F,pars->nInd,pars->nSites,pars->nIts, pars->isMissing, pars->nIndUse, pars->useInds);
    
    //////////////////////////////////////////////


  }

  return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0xf845(%rip), %rdi      # 0x132a8
callq 0x2320
movl 0xf865(%rip), %r14d     # 0x132d4
testl %r14d, %r14d
jle 0x3b0d
leaq 0xf829(%rip), %rbx      # 0x132a8
leal -0x1(%r14), %eax
movl %eax, 0xf84b(%rip)      # 0x132d4
movq %rbx, %rdi
callq 0x2170
movslq 0xf838(%rip), %rax      # 0x132d0
movslq %r14d, %rcx
subq %rcx, %rax
movq 0xf84b(%rip), %rcx      # 0x132f0
leaq (%rax,%rax,2), %rdi
movq (%rcx,%rdi,8), %rax
movl 0x8(%rcx,%rdi,8), %edx
movl 0xc(%rcx,%rdi,8), %esi
movq 0x10(%rcx,%rdi,8), %rdi
movq 0x30(%rax), %rcx
movq 0x38(%rax), %r8
movl 0x44(%rax), %r10d
movq 0x18(%rax), %r9
movl 0x48(%rax), %r11d
movl 0x50(%rax), %r14d
movl 0x40(%rax), %r15d
movl 0x4c(%rax), %r12d
subq $0x8, %rsp
pushq 0x68(%rax)
pushq %r12
pushq 0x60(%rax)
pushq %r15
pushq %r14
pushq %r11
pushq 0x20(%rax)
pushq 0x28(%rax)
pushq %r10
callq 0xbdff
addq $0x50, %rsp
movl 0xf7d0(%rip), %r14d     # 0x132d4
testl %r14d, %r14d
jg 0x3a7f
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/Cinterface.cpp
// Function: ngsfunctionC(void*)
void *ngsfunctionC(void *a) //the a means nothing
{
  int running_job;

  pthread_mutex_lock(&mutex1); // Protect so only one thread can edit jobs done
  
  while (jobs > 0) {
    running_job = jobs--;
    pthread_mutex_unlock(&mutex1);

    ////////////////////////////////////////////// not protected
    int c = NumJobs-running_job;
    eachNGSPars p=allNGSPars[c];
    myNGSPars *pars=p.pars;
    int i=p.ind1;

    ngsevalAdmix(p.cor,p.ind1u, p.ind1,pars->r,pars->mean_r,pars->genos,pars->K,pars->Q,pars->F,pars->nInd,pars->nSites,pars->nIts, pars->keeps, pars->nIndUse);
    
    //////////////////////////////////////////////


  }

  return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0xf77e(%rip), %rdi      # 0x132a8
callq 0x2320
movl 0xf79e(%rip), %r14d     # 0x132d4
testl %r14d, %r14d
jle 0x3bcc
leaq 0xf762(%rip), %rbx      # 0x132a8
leal -0x1(%r14), %eax
movl %eax, 0xf784(%rip)      # 0x132d4
movq %rbx, %rdi
callq 0x2170
movslq 0xf771(%rip), %rax      # 0x132d0
movslq %r14d, %rcx
subq %rcx, %rax
movq 0xf78c(%rip), %rcx      # 0x132f8
leaq (%rax,%rax,2), %rdi
movq (%rcx,%rdi,8), %rax
movl 0x8(%rcx,%rdi,8), %edx
movl 0xc(%rcx,%rdi,8), %esi
movq 0x10(%rcx,%rdi,8), %rdi
movq 0x18(%rax), %rcx
movq 0x20(%rax), %r8
movl 0x2c(%rax), %r10d
movq (%rax), %r9
movl 0x30(%rax), %r11d
movl 0x38(%rax), %r14d
movl 0x28(%rax), %r15d
movl 0x34(%rax), %r12d
pushq %r12
pushq 0x48(%rax)
pushq %r15
pushq %r14
pushq %r11
pushq 0x8(%rax)
pushq 0x10(%rax)
pushq %r10
callq 0xc655
addq $0x40, %rsp
movl 0xf711(%rip), %r14d     # 0x132d4
testl %r14d, %r14d
jg 0x3b46
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/Cinterface.cpp
// Function: fex(char const*)
void fex(const char* fileName){
  const char*delims=" \n";
  FILE *fp = NULL;
  if((fp=fopen(fileName,"r"))==NULL){
    fprintf(stderr,"can't open:%s\n",fileName);
    exit(0);
  }
  fclose(fp);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x9552(%rip), %rsi      # 0xd137
callq 0x2270
testq %rax, %rax
je 0x3bf8
movq %rax, %rdi
popq %rbx
jmp 0x2210
movq %rbx, %rdi
callq 0x29c9
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/filereader_and_conversions.cpp
// Function: to_string[abi:cxx11](int)
std::string to_string(int a){///@param a An integer to convert.
  std::string str;
  std::stringstream ss;
  ss<<a;
  if(!(ss>>str)){
    printf("Error converting :%d will exit\n",a);
    exit(0);
  }
  ss>>str;
  return str; ///@return Returns the string value.
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsp, %rdi
callq 0x2140
leaq 0x10(%rsp), %rdi
movl %ebp, %esi
callq 0x23f0
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x22d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x65d9
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x22d0
movq 0xca0d(%rip), %rsi      # 0x12fc0
movq %rsp, %rdi
callq 0x2160
leaq 0x80(%rsp), %rdi
callq 0x20a0
movq %rbx, %rax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x79d0(%rip), %rdi      # 0xdfb0
movl %ebp, %esi
xorl %eax, %eax
callq 0x2040
xorl %edi, %edi
callq 0x2290
movq %rax, %r14
jmp 0x6614
movq %rax, %r14
movq 0xc9c1(%rip), %rsi      # 0x12fc0
movq %rsp, %rdi
callq 0x2160
leaq 0x80(%rsp), %rdi
callq 0x20a0
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x6627
movq (%r15), %rsi
incq %rsi
callq 0x2230
movq %r14, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/filereader_and_conversions.cpp
// Function: to_int(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int to_int(std::string a){///@param a a String to convert.
  int str;
  float check;
  std::stringstream ss;
  std::stringstream ss2;
  if(!a.compare("NA")||!a.compare("Na")||!a.compare("na")){
    return 0;
  }
  ss<<a;
  if(!(ss>>str)){
    printf("Error converting :\"%s\" will exit\n",a.c_str());
    exit(0);
  }

  //now check if numberis really an int
  ss2<<a;
  if(!(ss2>>check)){
    printf("Error converting :\"%s\" will exit\n",a.c_str());
    exit(0);
  }

  if(check!=str){
    printf("String you want as in integer is not really an integer: \"%s\"\n",a.c_str());
    puts("Just a warning");
  }
  //check values
  /* this was commented in v. 0.983 since the chromosome file converter uses it.
  if(str<0||str>3){
    printf("Value in genotype is out of bounds, should be {0...3} value is:%d\n",str);
    exit(0);
  }
  */
  return str;///@return Function returns the integer value.
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x320, %rsp            # imm = 0x320
movq %rdi, %r15
leaq 0x198(%rsp), %rbx
movq %rbx, %rdi
callq 0x2140
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x2140
leaq 0x796b(%rip), %rsi      # 0xdfd0
movq %r15, %rdi
callq 0x2090
xorl %ebp, %ebp
testl %eax, %eax
je 0x6745
leaq 0x7955(%rip), %rsi      # 0xdfd3
movq %r15, %rdi
callq 0x2090
testl %eax, %eax
je 0x6745
leaq 0x7941(%rip), %rsi      # 0xdfd6
movq %r15, %rdi
callq 0x2090
testl %eax, %eax
je 0x6745
leaq 0x1a8(%rsp), %rdi
movq (%r15), %rsi
movq 0x8(%r15), %rdx
callq 0x2250
leaq 0x198(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2110
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x6790
leaq 0x20(%rsp), %rdi
movq (%r15), %rsi
movq 0x8(%r15), %rdx
callq 0x2250
leaq 0x10(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x2480
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x6790
movl 0x8(%rsp), %ebp
cvtsi2ss %ebp, %xmm0
movss 0xc(%rsp), %xmm1
ucomiss %xmm0, %xmm1
jne 0x6724
jnp 0x6745
movq (%r15), %rsi
leaq 0x78cd(%rip), %rdi      # 0xdffb
xorl %eax, %eax
callq 0x2040
leaq 0x78fd(%rip), %rdi      # 0xe039
callq 0x2370
movl 0x8(%rsp), %ebp
movq 0xc874(%rip), %r15      # 0x12fc0
movq %r14, %rdi
movq %r15, %rsi
callq 0x2160
movl $0x80, %r12d
addq %r12, %r14
movq %r14, %rdi
callq 0x20a0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2160
addq %r12, %rbx
movq %rbx, %rdi
callq 0x20a0
movl %ebp, %eax
addq $0x320, %rsp            # imm = 0x320
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq (%r15), %rsi
leaq 0x783f(%rip), %rdi      # 0xdfd9
xorl %eax, %eax
callq 0x2040
xorl %edi, %edi
callq 0x2290
movq %rax, %rbx
movq 0xc80e(%rip), %rsi      # 0x12fc0
leaq 0x10(%rsp), %rdi
callq 0x2160
leaq 0x90(%rsp), %rdi
callq 0x20a0
jmp 0x67ce
movq %rax, %rbx
movq 0xc7eb(%rip), %rsi      # 0x12fc0
leaq 0x198(%rsp), %rdi
callq 0x2160
leaq 0x218(%rsp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/filereader_and_conversions.cpp
// Function: to_float(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
float to_float(std::string a){///@param a is the string to convert.
  float str;
  std::stringstream ss;
  ss<<a;
  if(!(ss>>str)){
    printf("Error converting :\"%s\" will exit\n",a.c_str());
    exit(0);
  }
  ss>>str;
  return str;///@return The float value.
}

// Assembly:
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2140
leaq 0x18(%rsp), %rdi
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x2250
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x2480
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x687d
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x2480
movss (%rsp), %xmm0
movss %xmm0, 0x4(%rsp)
movq 0xc769(%rip), %rsi      # 0x12fc0
leaq 0x8(%rsp), %rdi
callq 0x2160
leaq 0x88(%rsp), %rdi
callq 0x20a0
movss 0x4(%rsp), %xmm0
addq $0x190, %rsp            # imm = 0x190
popq %rbx
retq
movq (%rbx), %rsi
leaq 0x7752(%rip), %rdi      # 0xdfd9
xorl %eax, %eax
callq 0x2040
xorl %edi, %edi
callq 0x2290
movq %rax, %rbx
movq 0xc721(%rip), %rsi      # 0x12fc0
leaq 0x8(%rsp), %rdi
callq 0x2160
leaq 0x88(%rsp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/filereader_and_conversions.cpp
// Function: to_double(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
double to_double(std::string a){///@param a is the string to convert.
  double str;
  std::stringstream ss;
  ss<<a;
  if(!(ss>>str)){
    printf("Error converting :\"%s\" will exit\n",a.c_str());
    exit(0);
  }
  ss>>str;
  return str;///@return The double value.
}

// Assembly:
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2140
leaq 0x28(%rsp), %rdi
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0x2250
leaq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2120
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x6949
leaq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2120
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0xc69d(%rip), %rsi      # 0x12fc0
leaq 0x18(%rsp), %rdi
callq 0x2160
leaq 0x98(%rsp), %rdi
callq 0x20a0
movsd 0x10(%rsp), %xmm0
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
retq
movq (%rbx), %rsi
leaq 0x7686(%rip), %rdi      # 0xdfd9
xorl %eax, %eax
callq 0x2040
xorl %edi, %edi
callq 0x2290
movq %rax, %rbx
movq 0xc655(%rip), %rsi      # 0x12fc0
leaq 0x18(%rsp), %rdi
callq 0x2160
leaq 0x98(%rsp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/filereader_and_conversions.cpp
// Function: get_lexemes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int get_lexemes(std::string str,std::vector<std::string> &lexems,const std::string delims){
  ///@param str The string to be splittet.
  ///@param lexems A reference to a list of strings in which the splittet string will be put as seperate elements. A queue.
  ///@param delims A string containing all the chars that the function will split by.
  char *token = strtok( const_cast<char*>( str.c_str() ),delims.c_str());
  int numToks = 0;
  while ( token != NULL ){
    numToks++;
    lexems.push_back( token);
    token = strtok( NULL,delims.c_str() );
  }
  return numToks;///@return The number of strings that has been splittet.
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq (%rdi), %rdi
movq (%rdx), %rsi
callq 0x23a0
testq %rax, %rax
je 0x6a13
movq %rax, %r13
xorl %r15d, %r15d
leaq 0x18(%rsp), %rbp
leaq 0x8(%rsp), %r12
movq %rbp, 0x8(%rsp)
movq %r13, %rdi
callq 0x20d0
leaq (%rax,%r13), %rdx
movq %r12, %rdi
movq %r13, %rsi
callq 0x61b8
movq %r14, %rdi
movq %r12, %rsi
callq 0x906a
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x69fc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movq (%rbx), %rsi
xorl %edi, %edi
callq 0x23a0
movq %rax, %r13
incl %r15d
testq %rax, %rax
jne 0x69be
jmp 0x6a16
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6a42
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/filereader_and_conversions.cpp
// Function: typecast_stringarray_to_int_matrix(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, iMatrix*)
void typecast_stringarray_to_int_matrix(const std::vector<std::string> &tokens,iMatrix *mat){
  int start=0;
  for (int i=0;i<mat->x;i++)
    for(int j=0;j<mat->y;j++){
      mat->matrix[i][j] = to_int( tokens.at(start++));

    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl (%rsi), %ecx
testl %ecx, %ecx
jle 0x6b35
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x28(%rsp), %r13
movl 0x4(%rsi), %eax
movq $0x0, (%rsp)
xorl %r9d, %r9d
testl %eax, %eax
jle 0x6b1e
movl %r9d, 0xc(%rsp)
movslq %r9d, %rbp
movq %rbp, 0x10(%rsp)
shlq $0x5, %rbp
xorl %r12d, %r12d
movq 0x10(%rsp), %rax
leaq (%rax,%r12), %rsi
movq (%r14), %rax
movq 0x8(%r14), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0x6b44
movq %r13, 0x18(%rsp)
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %r15
movq %r15, %rdi
callq 0x5fae
movq %r15, %rdi
callq 0x662f
movq 0x8(%rbx), %rcx
movq (%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movl %eax, (%rcx,%r12,4)
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0x6b04
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2230
incq %r12
movslq 0x4(%rbx), %rax
addq $0x20, %rbp
cmpq %rax, %r12
jl 0x6a97
movl 0xc(%rsp), %r9d
addl %r12d, %r9d
movl (%rbx), %ecx
movq (%rsp), %rdi
incq %rdi
movslq %ecx, %rdx
movq %rdi, (%rsp)
cmpq %rdx, %rdi
jl 0x6a7b
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x77cb(%rip), %rdi      # 0xe316
xorl %eax, %eax
callq 0x2350
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0x6b6c
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/filereader_and_conversions.cpp
// Function: typecast_stringarray_to_iArray(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
iArray *typecast_stringarray_to_iArray(const std::vector<std::string> &tokens){
  iArray *ary = allocIntArray(tokens.size());
  for (unsigned int i=0;i<tokens.size();i++)
    ary->array[i] = to_int( tokens.at(i));
  return ary;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
subq (%rbx), %rdi
sarq $0x5, %rdi
callq 0xadb7
movq %rax, %r14
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x6c12
movl $0x1, %ebp
leaq 0x18(%rsp), %r12
xorl %r13d, %r13d
leaq 0x8(%rsp), %r15
movq %r13, %rcx
shlq $0x5, %rcx
movq %r12, 0x8(%rsp)
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x5fae
movq %r15, %rdi
callq 0x662f
movq 0x8(%r14), %rcx
movl %eax, (%rcx,%r13,4)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6bfa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movl %ebp, %r13d
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
incl %ebp
cmpq %r13, %rcx
ja 0x6bb3
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6c3e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/filereader_and_conversions.cpp
// Function: typecast_stringarray_to_dArray(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
dArray *typecast_stringarray_to_dArray(const std::vector<std::string> &tokens){
  dArray *ary = allocDoubleArray(tokens.size());
  for (unsigned int i=0;i<tokens.size();i++)
    ary->array[i] = to_double( tokens.at(i));
  return ary;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
subq (%rbx), %rdi
shrq $0x5, %rdi
callq 0xaf20
movq %rax, %r14
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x6ce6
movl $0x1, %ebp
leaq 0x18(%rsp), %r12
xorl %r13d, %r13d
leaq 0x8(%rsp), %r15
movq %r13, %rcx
shlq $0x5, %rcx
movq %r12, 0x8(%rsp)
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x5fae
movq %r15, %rdi
callq 0x68be
movq 0x8(%r14), %rax
movsd %xmm0, (%rax,%r13,8)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6cce
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movl %ebp, %r13d
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
incl %ebp
cmpq %r13, %rcx
ja 0x6c85
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6d12
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/filereader_and_conversions.cpp
// Function: getNext(iArray*, int)
int getNext(iArray *list,int i){
  if(i>=list->x)
    return -1;
  for(int j=i;j<list->x;j++){
    // printf("i:%d\tj:%d\tiar:%d\n",i,j,list->array[i]);
    if(list->array[j]==1)
      return j;
  }
  return -1;
}

// Assembly:
movl (%rdi), %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %esi, %ecx
jle 0x7f6d
movslq %esi, %rdx
shlq $0x2, %rdx
addq 0x8(%rdi), %rdx
cmpl $0x1, (%rdx)
je 0x7f6e
incl %esi
addq $0x4, %rdx
cmpl %esi, %ecx
jne 0x7f5e
retq
movl %esi, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/filereader_and_conversions.cpp
// Function: numberOfLines(char const*)
int numberOfLines(const char *filename){
  const int SIZE=500000;
  char buffer[SIZE];
  int numLines=0;
  std::ifstream pFile (filename,std::ios::in);
  
  if(!pFile){
fileError(filename);
    return 0;
  }
  while(!pFile.eof()){
    pFile.getline(buffer,SIZE);
    numLines++;
  }
  return numLines;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x7a350, %rsp          # imm = 0x7A350
movq %rdi, %rbx
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x2440
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x48(%rsp,%rax), %ecx
testb $0x5, %cl
je 0x8650
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rbx, %rsi
callq 0x5f1a
leaq 0x18(%rsp), %r14
movq -0x10(%r14), %rsi
leaq 0x5939(%rip), %rdi      # 0xdf68
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2040
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x86a4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x86a4
xorl %ebx, %ebx
testb $0x2, %cl
jne 0x86a4
leaq (%rsp,%rax), %rdi
addq $0x28, %rdi
xorl %ebx, %ebx
leaq 0x28(%rsp), %r14
leaq 0x230(%rsp), %r15
movl $0xa, %esi
callq 0x2200
movsbl %al, %ecx
movl $0x7a120, %edx          # imm = 0x7A120
movq %r14, %rdi
movq %r15, %rsi
callq 0x2460
incl %ebx
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %rdi
addq $0x28, %rdi
testb $0x2, 0x20(%rdi)
je 0x866e
leaq 0x28(%rsp), %rdi
callq 0x2070
movl %ebx, %eax
addq $0x7a350, %rsp          # imm = 0x7A350
popq %rbx
popq %r14
popq %r15
retq
jmp 0x86bf
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/extractors.cpp
// Function: extractOK(iArray*, iMatrix*)
iMatrix *extractOK(iArray *okList,iMatrix *matr){
  iMatrix *returnMatrix = allocIntMatrix(matr->x,okList->x);
  for(int j=0;j<matr->x;j++)
    for(int i=0;i<okList->x;i++)
      returnMatrix->matrix[j][i] = matr->matrix [j] [okList->array[i]];
  return returnMatrix;

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %edi
movl (%r14), %esi
callq 0xa698
movl (%rbx), %esi
testl %esi, %esi
jle 0x96f1
movl (%r14), %edx
xorl %ecx, %ecx
testl %edx, %edx
jle 0x96e6
movq 0x8(%rbx), %rdx
movq (%rdx,%rcx,8), %rsi
movq 0x8(%r14), %rdi
movq 0x8(%rax), %rdx
movq (%rdx,%rcx,8), %r8
xorl %r9d, %r9d
movslq (%rdi,%r9,4), %rdx
movl (%rsi,%rdx,4), %edx
movl %edx, (%r8,%r9,4)
incq %r9
movslq (%r14), %rdx
cmpq %rdx, %r9
jl 0x96ce
movl (%rbx), %esi
incq %rcx
movslq %esi, %rdi
cmpq %rdi, %rcx
jl 0x96b3
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/extractors.cpp
// Function: extractOK(iArray*, usiMatrix*)
usiMatrix *extractOK(iArray *okList,usiMatrix *matr){
  usiMatrix *returnMatrix = allocUSIntMatrix(matr->x,okList->x);
  for(int j=0;j<matr->x;j++)
    for(int i=0;i<okList->x;i++)
      returnMatrix->matrix[j][i] = matr->matrix [j] [okList->array[i]];
  return returnMatrix;

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %edi
movl (%r14), %esi
callq 0xa7f6
movslq (%rbx), %rcx
testq %rcx, %rcx
jle 0x9753
movl (%r14), %edx
xorl %esi, %esi
testl %edx, %edx
jle 0x974b
movq 0x8(%rbx), %rdi
movq (%rdi,%rsi,8), %rdi
movq 0x8(%r14), %r8
movq 0x8(%rax), %r9
movq (%r9,%rsi,8), %r9
xorl %r10d, %r10d
movslq (%r8,%r10,4), %r11
movzwl (%rdi,%r11,2), %r11d
movw %r11w, (%r9,%r10,2)
incq %r10
cmpq %r10, %rdx
jne 0x9735
incq %rsi
cmpq %rcx, %rsi
jne 0x971a
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/extractors.cpp
// Function: extractOK(iArray*, dMatrix*)
dMatrix *extractOK(iArray *okList,dMatrix *matr){
  dMatrix *returnMatrix = allocDoubleMatrix(matr->x,okList->x);
  for(int j=0;j<matr->x;j++)
    for(int i=0;i<okList->x;i++)
      returnMatrix->matrix[j][i] = matr->matrix [j] [okList->array[i]];
  return returnMatrix;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %edi
movl (%r14), %esi
callq 0xabb0
movslq (%rbx), %rcx
testq %rcx, %rcx
jle 0x97b7
movl (%r14), %edx
xorl %esi, %esi
testl %edx, %edx
jle 0x97af
movq 0x8(%rbx), %rdi
movq (%rdi,%rsi,8), %rdi
movq 0x8(%r14), %r8
movq 0x8(%rax), %r9
movq (%r9,%rsi,8), %r9
xorl %r10d, %r10d
movslq (%r8,%r10,4), %r11
movsd (%rdi,%r11,8), %xmm0
movsd %xmm0, (%r9,%r10,8)
incq %r10
cmpq %r10, %rdx
jne 0x9797
incq %rsi
cmpq %rcx, %rsi
jne 0x977c
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/extractors.cpp
// Function: extractOK(iArray*, iArray*)
iArray *extractOK(iArray *okList,iArray *array){
  iArray *returnArray = allocIntArray(okList->x);
  for(int j=0;j<okList->x;j++)
    returnArray->array[j] = array->array[okList->array[j]];
  return returnArray;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movslq (%rdi), %rdi
callq 0xadb7
cmpl $0x0, (%rbx)
jle 0x97fb
movq 0x8(%r14), %rcx
movq 0x8(%rbx), %rdx
movq 0x8(%rax), %rsi
xorl %edi, %edi
movslq (%rdx,%rdi,4), %r8
movl (%rcx,%r8,4), %r8d
movl %r8d, (%rsi,%rdi,4)
incq %rdi
movslq (%rbx), %r8
cmpq %r8, %rdi
jl 0x97e4
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/extractors.cpp
// Function: extractOK(iArray*, dArray*)
dArray *extractOK(iArray *okList,dArray *array){
  dArray *returnArray = allocDoubleArray(okList->x);
  int extractIndex;
  double var;
  for(int j=0;j<okList->x;j++){
    extractIndex = okList->array[j];
    var = array->array[extractIndex];
    returnArray->array[j] = var;
  }
  return returnArray;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %edi
callq 0xaf20
movslq (%r14), %rcx
testq %rcx, %rcx
jle 0x9843
movq 0x8(%r14), %rdx
movq 0x8(%rbx), %rsi
movq 0x8(%rax), %rdi
xorl %r8d, %r8d
movslq (%rdx,%r8,4), %r9
movsd (%rsi,%r9,8), %xmm0
movsd %xmm0, (%rdi,%r8,8)
incq %r8
cmpq %r8, %rcx
jne 0x982b
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/extractors.cpp
// Function: extractOK(bArray*, dArray*)
dArray *extractOK(bArray *okList,dArray *array){
  dArray *returnArray = allocDoubleArray(okList->numTrue);
  int inPlace = 0;
  for(int j=0 ; j<okList->x ; j++){
    if(okList->array[j] == 1){
      returnArray->array[inPlace] = array->array[j];
      inPlace++;
    }
  }
  return returnArray;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rdi), %edi
callq 0xaf20
movslq (%r14), %rcx
testq %rcx, %rcx
jle 0x9894
movq 0x8(%r14), %rdx
xorl %esi, %esi
xorl %edi, %edi
cmpl $0x1, (%rdx,%rsi,4)
jne 0x988c
movq 0x8(%rbx), %r8
movsd (%r8,%rsi,8), %xmm0
movq 0x8(%rax), %r8
movslq %edi, %rdi
movsd %xmm0, (%r8,%rdi,8)
incl %edi
incq %rsi
cmpq %rsi, %rcx
jne 0x986d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/extractors.cpp
// Function: extractOK(bArray*, iArray*)
iArray *extractOK(bArray *okList,iArray *array){
  iArray *returnArray = allocIntArray(okList->numTrue);
  int inPlace = 0;
  for(int j=0 ; j<okList->x ; j++){
    if(okList->array[j] == 1){
      returnArray->array[inPlace] = array->array[j];
      inPlace++;
    }
  }
  return returnArray;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movslq 0x4(%rdi), %rdi
callq 0xadb7
movl (%r14), %esi
testl %esi, %esi
jle 0x98e6
movq 0x8(%r14), %rcx
xorl %edx, %edx
xorl %edi, %edi
cmpl $0x1, (%rcx,%rdx,4)
jne 0x98db
movq 0x8(%rbx), %rsi
movl (%rsi,%rdx,4), %esi
movq 0x8(%rax), %r8
movslq %edi, %rdi
movl %esi, (%r8,%rdi,4)
incl %edi
movl (%r14), %esi
incq %rdx
movslq %esi, %r8
cmpq %r8, %rdx
jl 0x98be
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/extractors.cpp
// Function: extractOK(bArray*, iMatrix*)
iMatrix *extractOK(bArray *okList,iMatrix *matr){
  iMatrix *returnMatrix = allocIntMatrix(matr->x,okList->numTrue);
  int atPos =0;
  for(int i=0;i<matr->y;i++)
    if(okList->array[i]){
      for(int j=0;j<matr->x;j++)
	returnMatrix->matrix[j][atPos] = matr->matrix [j] [i];
      atPos++;
    }
  return returnMatrix;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %edi
movl 0x4(%r14), %esi
callq 0xa698
movl 0x4(%rbx), %edi
testl %edi, %edi
jle 0x9956
movq 0x8(%r14), %rcx
xorl %edx, %edx
xorl %esi, %esi
cmpl $0x0, (%rcx,%rdx,4)
je 0x994b
cmpl $0x0, (%rbx)
jle 0x9949
movq 0x8(%rbx), %rdi
movq 0x8(%rax), %r8
movslq %esi, %r9
xorl %r10d, %r10d
movq (%rdi,%r10,8), %r11
movl (%r11,%rdx,4), %r11d
movq (%r8,%r10,8), %r14
movl %r11d, (%r14,%r9,4)
incq %r10
movslq (%rbx), %r11
cmpq %r11, %r10
jl 0x992b
movl 0x4(%rbx), %edi
incl %esi
incq %rdx
movslq %edi, %r8
cmpq %r8, %rdx
jl 0x9912
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/extractors.cpp
// Function: extractOK(bArray*, usiMatrix*)
usiMatrix *extractOK(bArray *okList,usiMatrix *matr){
  usiMatrix *returnMatrix = allocUSIntMatrix(matr->x,okList->numTrue);
  int atPos =0;
  for(int i=0;i<matr->y;i++)
    if(okList->array[i]){
      for(int j=0;j<matr->x;j++)
	returnMatrix->matrix[j][atPos] = matr->matrix [j] [i];
      atPos++;
    }
  return returnMatrix;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %edi
movl 0x4(%r14), %esi
callq 0xa7f6
movslq 0x4(%rbx), %rcx
testq %rcx, %rcx
jle 0x99c7
movq 0x8(%r14), %rdx
xorl %esi, %esi
xorl %edi, %edi
cmpl $0x0, (%rdx,%rsi,4)
je 0x99bf
movslq (%rbx), %r8
testq %r8, %r8
jle 0x99bd
movq 0x8(%rbx), %r9
movq 0x8(%rax), %r10
movslq %edi, %r11
xorl %r14d, %r14d
movq (%r9,%r14,8), %r15
movzwl (%r15,%rsi,2), %ebp
movq (%r10,%r14,8), %r15
movw %bp, (%r15,%r11,2)
incq %r14
cmpq %r14, %r8
jne 0x99a3
incl %edi
incq %rsi
cmpq %rcx, %rsi
jne 0x9987
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/extractors.cpp
// Function: extract(dMatrix*, iArray*)
dArray *extract( dMatrix *var,iArray *choose){
  dArray *retVal = allocDoubleArray(choose->x-1);
   for (int i=1;i<var->y;i++){
    retVal->array[i-1]=var->matrix[choose->array[i]][i];
  }
  return retVal;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %edi
decl %edi
callq 0xaf20
movslq 0x4(%r14), %rcx
cmpq $0x2, %rcx
jl 0x9a1f
movq 0x8(%r14), %rdx
movq 0x8(%rbx), %rsi
movq 0x8(%rax), %rdi
decq %rcx
xorl %r8d, %r8d
movslq 0x4(%rsi,%r8,4), %r9
movq (%rdx,%r9,8), %r9
movsd 0x8(%r9,%r8,8), %xmm0
movsd %xmm0, (%rdi,%r8,8)
incq %r8
cmpq %r8, %rcx
jne 0x9a01
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/GenisGE[P]evalAdmix/extractors.cpp
// Function: extract(iArray*, iArray*)
iArray *extract(iArray *var,iArray *choose){
  iArray *retVal = allocIntArray(var->x-1);
  for (int i=1;i<var->x;i++)
    retVal->array[i-1]=var->array[i-1-choose->array[i]];
  return retVal;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movslq (%rdi), %rdi
decq %rdi
callq 0xadb7
cmpl $0x2, (%rbx)
jl 0x9a75
movq 0x8(%rbx), %rcx
movq 0x8(%r14), %rdx
movq 0x8(%rax), %rsi
movl $0x1, %edi
movslq (%rdx,%rdi,4), %r8
shlq $0x2, %r8
movq %rcx, %r9
subq %r8, %r9
movl -0x4(%r9,%rdi,4), %r8d
movl %r8d, -0x4(%rsi,%rdi,4)
incq %rdi
movslq (%rbx), %r8
cmpq %r8, %rdi
jl 0x9a52
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)