LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/icemiliang[P]vot/src/votx/./pointX.hh
// Function: votx::DiracX::print()
void print() {
        std::cout << "("  << "update? " << vic <<  "; dim" << vn << "; dirac: " << vd 
                  << "; mass: " << vm << "; coor: ";
        for (int i = 0; i < vn-1; i++) { std::cout << vp[i] << ", "; }
        std::cout << vp[vn-1] << ")" << std::endl;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x885a(%rip), %r14      # 0x1afa8
leaq 0x2705(%rip), %rsi      # 0x14e5a
movl $0x1, %edx
movq %r14, %rdi
callq 0x73a0
leaq 0x26f3(%rip), %rsi      # 0x14e5c
movl $0x8, %edx
movq %r14, %rdi
callq 0x73a0
movzbl 0x21(%rbx), %esi
movq %r14, %rdi
callq 0x75b0
movq %rax, %r14
leaq 0x26d9(%rip), %rsi      # 0x14e65
movl $0x5, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x8(%rbx), %esi
movq %r14, %rdi
callq 0x75f0
movq %rax, %r14
leaq 0x26bd(%rip), %rsi      # 0x14e6b
movl $0x9, %edx
movq %rax, %rdi
callq 0x73a0
movsd 0x10(%rbx), %xmm0
movq %r14, %rdi
callq 0x7560
movq %rax, %r14
leaq 0x26a3(%rip), %rsi      # 0x14e75
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movsd 0x18(%rbx), %xmm0
movq %r14, %rdi
callq 0x7560
leaq 0x268b(%rip), %rsi      # 0x14e7e
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x8(%rbx), %eax
cmpl $0x2, %eax
jl 0x1284b
xorl %r12d, %r12d
movq 0x8796(%rip), %r14      # 0x1afa8
leaq 0x2583(%rip), %r15      # 0x14d9c
movq (%rbx), %rax
movsd (%rax,%r12,8), %xmm0
movq %r14, %rdi
callq 0x7560
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x73a0
incq %r12
movslq 0x8(%rbx), %rax
decq %rax
cmpq %rax, %r12
jl 0x12819
jmp 0x1284d
decl %eax
movq (%rbx), %rcx
cltq
movsd (%rcx,%rax,8), %xmm0
movq 0x874a(%rip), %rdi      # 0x1afa8
callq 0x7560
movq %rax, %rbx
leaq 0x1e0d(%rip), %rsi      # 0x1467a
movl $0x1, %edx
movq %rax, %rdi
callq 0x73a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x7240
// File: /workspace/github_cpp_makefile_star2_O1/icemiliang[P]vot/src/votx/./pointbaseX.hh
// Function: votx::PointX::distL22(votx::PointX const&) const
double distL22(const PointX &p) const {
        double dist = 0.0;
        for (int i = 0; i < vn; i++) {
            dist += (vp[i]-p[i]) * (vp[i]-p[i]); 
        }
        return dist;
    }

// Assembly:
cmpl $0x0, 0x8(%rdi)
jle 0x12a6e
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorpd %xmm0, %xmm0
xorl %r15d, %r15d
movsd %xmm0, 0x18(%rsp)
movq (%r14), %rax
movsd (%rax,%r15,8), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12bd2
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq (%r14), %rax
movsd (%rax,%r15,8), %xmm0
movsd %xmm0, 0x10(%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12bd2
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x18(%rsp), %xmm0
mulsd 0x8(%rsp), %xmm1
addsd %xmm1, %xmm0
incq %r15
movslq 0x8(%r14), %rax
cmpq %rax, %r15
jl 0x129f4
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O1/icemiliang[P]vot/src/votx/./pointX.hh
// Function: votx::EmpiricalX::print() const
void print() const {
        std::cout << "( dirac_idx: " << vdi << "; mass: " << vm << "; coor: ";
        for (int i = 0; i < vn-1; i++) {
            std::cout << vp[i] << ", ";
        }
        std::cout << vp[vn-1] << ")" << std::endl;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8524(%rip), %r14      # 0x1afa8
leaq 0x2477(%rip), %rsi      # 0x14f02
movl $0xd, %edx
movq %r14, %rdi
callq 0x73a0
movl 0xc(%rbx), %esi
movq %r14, %rdi
callq 0x75f0
movq %rax, %r14
leaq 0x23c8(%rip), %rsi      # 0x14e75
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movsd 0x10(%rbx), %xmm0
movq %r14, %rdi
callq 0x7560
leaq 0x23b0(%rip), %rsi      # 0x14e7e
movl $0x8, %edx
movq %rax, %rdi
callq 0x73a0
movl 0x8(%rbx), %eax
cmpl $0x2, %eax
jl 0x12b26
xorl %r12d, %r12d
movq 0x84bb(%rip), %r14      # 0x1afa8
leaq 0x22a8(%rip), %r15      # 0x14d9c
movq (%rbx), %rax
movsd (%rax,%r12,8), %xmm0
movq %r14, %rdi
callq 0x7560
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x73a0
incq %r12
movslq 0x8(%rbx), %rax
decq %rax
cmpq %rax, %r12
jl 0x12af4
jmp 0x12b28
decl %eax
movq (%rbx), %rcx
cltq
movsd (%rcx,%rax,8), %xmm0
movq 0x846f(%rip), %rdi      # 0x1afa8
callq 0x7560
movq %rax, %rbx
leaq 0x1b32(%rip), %rsi      # 0x1467a
movl $0x1, %edx
movq %rax, %rdi
callq 0x73a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x7240
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x42b80
movl %ebp, %edi
movq %rbx, %rsi
callq 0x4272c
leaq 0x30(%rsp), %rdi
callq 0x23c3c
leaq 0x58(%rsp), %rdi
callq 0x23c3c
movq $0x2710, 0x20(%rsp)     # imm = 0x2710
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x38d8c(%rip), %rsi     # 0x44190
leaq 0x38d97(%rip), %rdx     # 0x441a2
movq %rsp, %rdi
callq 0x18f4c
leaq 0x20(%rsp), %rdi
movq %rsp, %rcx
leaq 0x30(%rsp), %r8
leaq 0x58(%rsp), %r9
movl $0xfb, %esi
movl $0x2, %edx
callq 0x11bc0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0xb442
callq 0xa3d0
movq 0x30(%rsp), %rsi
leaq 0x38d55(%rip), %rdi     # 0x441a3
xorl %eax, %eax
callq 0xa060
movq %rsp, %rdi
movq %r14, (%rdi)
leaq 0x38d52(%rip), %rsi     # 0x441b4
leaq 0x38d63(%rip), %rdx     # 0x441cc
callq 0x18f4c
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
leaq 0x30(%rsp), %rdx
leaq 0x58(%rsp), %rcx
callq 0x1208c
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0xb493
callq 0xa3d0
leaq 0x58(%rsp), %rdi
callq 0x23e92
leaq 0x30(%rsp), %rdi
callq 0x23e92
xorl %eax, %eax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0xb4b9
jmp 0xb4cc
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0xb4cf
callq 0xa3d0
jmp 0xb4cf
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x23e92
jmp 0xb4de
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x23e92
movq %rbx, %rdi
callq 0xa6c0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2b42
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x8988(%rip), %rbx      # 0xc1d8
cmpq 0x30(%rdi), %rax
jne 0x3863
movq 0x38(%r15), %rax
movq %rbx, %r14
cmpq %rax, 0x8(%r15)
je 0x386e
movq %r15, %rdi
callq 0x6afc
movq %rax, %r14
movq 0x60(%r15), %rax
cmpq 0x90(%r15), %rax
jne 0x3888
movq 0x98(%r15), %rax
cmpq %rax, 0x68(%r15)
je 0x3897
addq $0x60, %r15
movq %r15, %rdi
callq 0x6afc
movq %rax, %rbx
movq %rbx, %rdi
callq 0x54fc
movq %r14, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x5570
testl %eax, %eax
je 0x38b6
shrl $0x1f, %eax
jmp 0x38c6
movq %r14, %rdi
movq %rbx, %rsi
callq 0x55b4
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_O1/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 0x88f0(%rip), %r15      # 0xc1d8
cmpq 0x30(%rdi), %rax
jne 0x38fb
movq 0x38(%rbx), %rax
movq %r15, %r14
cmpq %rax, 0x8(%rbx)
je 0x3906
movq %rbx, %rdi
callq 0x6afc
movq %rax, %r14
movq 0x60(%rbx), %rax
cmpq 0x90(%rbx), %rax
jne 0x3920
movq 0x98(%rbx), %rax
cmpq %rax, 0x68(%rbx)
je 0x392c
leaq 0x60(%rbx), %rdi
callq 0x6afc
movq %rax, %r15
movq %r15, %rdi
callq 0x54fc
movq %r14, %rdi
movq %rdx, %rsi
movq %rax, %rdx
callq 0x5570
testl %eax, %eax
jg 0x394a
incq 0x8(%rbx)
testl %eax, %eax
js 0x3952
incq 0x68(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4e50
movq %r15, %rbx
movq %rbx, %rdi
callq 0x29d8
addq $0xe0, %rbx
cmpq %r12, %rbx
jne 0x4e38
movq %r15, 0x18(%r14)
movslq (%r14), %rsi
testq %rsi, %rsi
js 0x4f5a
leaq 0x10(%r14), %rdi
movq %rdi, 0x10(%rsp)
callq 0x4f86
movl (%r14), %r13d
xorl %ebp, %ebp
testl %r13d, %r13d
cmovlel %ebp, %r13d
jle 0x4f5a
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 0x4f18
movq %r12, %rdi
callq 0x20b0
jmp 0x4f21
leaq 0x3115(%rip), %r12      # 0x8034
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r14, %rdi
leaq 0x18(%rsp), %rsi
callq 0x5c24
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x524e
movq %r14, %rdi
callq 0x29d8
addq $0x8, %r15
cmpq %r15, %r13
jne 0x4e96
movb $0x1, %al
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4f70
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x29d8
movq %rbx, %rdi
callq 0x22f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/GenisGE[P]evalAdmix/Cinterface.cpp
// Function: likeFixedMinor(double, double*, int, char*)
double likeFixedMinor(double p,double *likes,int numInds,char *keepInd){
  // should these actually be normed genotype likelihoods? Or not normed?
  // only used for checking minLrt
  // returns minus the log of the likelihood
  double totalLike=0;
  for(int i=0;i<numInds;i++){
    if(keepInd[i])
      totalLike+=log(likes[i*3+0]*(1-p)*(1-p)+likes[i*3+1]*2.0*p*(1-p)+likes[i*3+2]*p*p);
  }
  return -totalLike;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
testl %esi, %esi
jle 0x2d92
movq %rdx, %rbx
movq %rdi, %r14
movapd %xmm0, %xmm2
movsd 0xa307(%rip), %xmm0     # 0xd008
subsd %xmm2, %xmm0
movsd %xmm0, 0x18(%rsp)
movl %esi, %r15d
addq $0x10, %r14
xorpd %xmm0, %xmm0
xorl %r12d, %r12d
movsd %xmm2, 0x20(%rsp)
cmpb $0x0, (%rbx,%r12)
je 0x2d84
movsd -0x10(%r14), %xmm1
movsd 0x18(%rsp), %xmm3
mulsd %xmm3, %xmm1
movapd %xmm0, (%rsp)
movsd -0x8(%r14), %xmm0
addsd %xmm0, %xmm0
mulsd %xmm2, %xmm0
mulsd %xmm3, %xmm0
mulsd %xmm3, %xmm1
addsd %xmm0, %xmm1
movsd (%r14), %xmm0
mulsd %xmm2, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
callq 0x21a0
movsd 0x20(%rsp), %xmm2
movapd (%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, (%rsp)
movapd (%rsp), %xmm0
incq %r12
addq $0x18, %r14
cmpq %r12, %r15
jne 0x2d1f
jmp 0x2d96
xorpd %xmm0, %xmm0
xorpd 0xa2a2(%rip), %xmm0     # 0xd040
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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:
cmpl $0x0, 0x20(%rdi)
jle 0x3445
movss 0x9cdb(%rip), %xmm1     # 0xd0a0
subss %xmm0, %xmm1
xorl %ecx, %ecx
xorl %eax, %eax
movq 0x38(%rdi), %rdx
movss (%rdx,%rcx,4), %xmm2
ucomiss %xmm0, %xmm2
jbe 0x3437
ucomiss %xmm2, %xmm1
jbe 0x3437
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), %rdx
movss (%rdx,%rcx,4), %xmm2
movss %xmm2, (%rdx,%rax,4)
incl %eax
incq %rcx
movslq 0x20(%rdi), %rdx
cmpq %rdx, %rcx
jl 0x33cd
jmp 0x3447
xorl %eax, %eax
movl %eax, 0x20(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/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:
cmpl $0x0, 0x20(%rdi)
jle 0x34c5
xorl %ecx, %ecx
xorl %eax, %eax
movq 0x30(%rdi), %rdx
cmpl %esi, (%rdx,%rcx,4)
jle 0x34b7
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), %rdx
movss (%rdx,%rcx,4), %xmm0
movss %xmm0, (%rdx,%rax,4)
incl %eax
incq %rcx
movslq 0x20(%rdi), %rdx
cmpq %rdx, %rcx
jl 0x3455
jmp 0x34c7
xorl %eax, %eax
movl %eax, 0x20(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x35c2
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 0x35b0
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 0x34f1
jmp 0x35c5
xorl %r14d, %r14d
movl %r14d, 0x20(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x360d
xorl %r14d, %r14d
movq (%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x35f4
callq 0x22e0
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x2280
incq %r14
movslq 0x20(%rbx), %rax
cmpq %rax, %r14
jl 0x35e3
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x361b
callq 0x22e0
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x3629
callq 0x22e0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3636
callq 0x22e0
movq 0x18(%rbx), %rdi
addq $0x8, %rsp
testq %rdi, %rdi
je 0x364b
popq %rbx
popq %r14
jmp 0x22e0
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x9ad4(%rip), %rsi      # 0xd137
callq 0x2270
testq %rax, %rax
je 0x36cf
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 0x36d7
leaq 0x9a9b(%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 0x36a7
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_O1/GenisGE[P]evalAdmix/Cinterface.cpp
// Function: allocFloat(unsigned long, unsigned long)
float **allocFloat(size_t x,size_t y){
  float **ret= new float*[x];
  for(size_t i=0;i<x;i++)
    ret[i] = new float[y];
  //printf("\t-> Tried to allocate: %.3f gig memory\n",(float)sizeof(float)*x*y/1000000000);
  return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
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, %r14
testq %rbx, %rbx
je 0x3743
movq %r15, %rax
shrq $0x3e, %rax
shlq $0x2, %r15
xorl %r13d, %r13d
negq %rax
movl $0x0, %r12d
sbbq %r12, %r12
orq %r15, %r12
movq %r12, %rdi
callq 0x2030
movq %rax, (%r14,%r13,8)
incq %r13
cmpq %r13, %rbx
jne 0x372f
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/GenisGE[P]evalAdmix/Cinterface.cpp
// Function: allocDouble(unsigned long, unsigned long)
double **allocDouble(size_t x,size_t y){
  double **ret= new double*[x];
  for(size_t i=0;i<x;i++)
    ret[i] = new double[y];
  //printf("\t-> Tried to allocate: %.3f gig memory\n",(float)sizeof(double)*x*y/1000000000);
  return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
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, %r14
testq %rbx, %rbx
je 0x37bc
movabsq $0x1fffffffffffffff, %rax # imm = 0x1FFFFFFFFFFFFFFF
leaq (,%r15,8), %rcx
cmpq %rax, %r15
movq $-0x1, %r15
cmovbeq %rcx, %r15
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x2030
movq %rax, (%r14,%r12,8)
incq %r12
cmpq %r12, %rbx
jne 0x37a8
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x387d
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 0x3873
xorl %r15d, %r15d
movq %r13, %rdi
callq 0x2030
movq %rax, (%rbp,%r15,8)
incq %r15
cmpq %r15, %rbx
jne 0x385e
incq %r14
cmpq 0x10(%rsp), %r14
jne 0x3842
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_O1/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 0xf869(%rip), %rdi      # 0x132a8
callq 0x2320
movl 0xf889(%rip), %r14d     # 0x132d4
testl %r14d, %r14d
jle 0x3ae9
leaq 0xf84d(%rip), %rbx      # 0x132a8
leal -0x1(%r14), %eax
movl %eax, 0xf86f(%rip)      # 0x132d4
movq %rbx, %rdi
callq 0x2170
movslq 0xf85c(%rip), %rax      # 0x132d0
movslq %r14d, %rcx
subq %rcx, %rax
movq 0xf86f(%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 0xbc04
addq $0x50, %rsp
movl 0xf7f4(%rip), %r14d     # 0x132d4
testl %r14d, %r14d
jg 0x3a5b
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0xf7a2(%rip), %rdi      # 0x132a8
callq 0x2320
movl 0xf7c2(%rip), %r14d     # 0x132d4
testl %r14d, %r14d
jle 0x3ba8
leaq 0xf786(%rip), %rbx      # 0x132a8
leal -0x1(%r14), %eax
movl %eax, 0xf7a8(%rip)      # 0x132d4
movq %rbx, %rdi
callq 0x2170
movslq 0xf795(%rip), %rax      # 0x132d0
movslq %r14d, %rcx
subq %rcx, %rax
movq 0xf7b0(%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 0xc461
addq $0x40, %rsp
movl 0xf735(%rip), %r14d     # 0x132d4
testl %r14d, %r14d
jg 0x3b22
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x9576(%rip), %rsi      # 0xd137
callq 0x2270
testq %rax, %rax
je 0x3bd4
movq %rax, %rdi
popq %rbx
jmp 0x2210
movq %rbx, %rdi
callq 0x29c9
// File: /workspace/github_cpp_makefile_star2_O1/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 0x659f
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x22d0
movq 0xca47(%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 0x7a0a(%rip), %rdi      # 0xdfb0
movl %ebp, %esi
xorl %eax, %eax
callq 0x2040
xorl %edi, %edi
callq 0x2290
movq %rax, %r14
jmp 0x65da
movq %rax, %r14
movq 0xc9fb(%rip), %rsi      # 0x12fc0
movq %rsp, %rdi
callq 0x2160
leaq 0x80(%rsp), %rdi
callq 0x20a0
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x65ed
movq (%r15), %rsi
incq %rsi
callq 0x2230
movq %r14, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O1/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 0x79a5(%rip), %rsi      # 0xdfd0
movq %r15, %rdi
callq 0x2090
xorl %ebp, %ebp
testl %eax, %eax
je 0x6705
leaq 0x798f(%rip), %rsi      # 0xdfd3
movq %r15, %rdi
callq 0x2090
testl %eax, %eax
je 0x6705
leaq 0x797b(%rip), %rsi      # 0xdfd6
movq %r15, %rdi
callq 0x2090
testl %eax, %eax
je 0x6705
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 0x6750
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 0x6750
cvtsi2ssl 0x8(%rsp), %xmm0
movss 0xc(%rsp), %xmm1
ucomiss %xmm0, %xmm1
jne 0x66e4
jnp 0x6701
movq (%r15), %rsi
leaq 0x790d(%rip), %rdi      # 0xdffb
xorl %eax, %eax
callq 0x2040
leaq 0x793d(%rip), %rdi      # 0xe039
callq 0x2370
movl 0x8(%rsp), %ebp
movq 0xc8b4(%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 0x787f(%rip), %rdi      # 0xdfd9
xorl %eax, %eax
callq 0x2040
xorl %edi, %edi
callq 0x2290
movq %rax, %rbx
movq 0xc84e(%rip), %rsi      # 0x12fc0
leaq 0x10(%rsp), %rdi
callq 0x2160
leaq 0x90(%rsp), %rdi
callq 0x20a0
jmp 0x678e
movq %rax, %rbx
movq 0xc82b(%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_O1/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 0x683d
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x2480
movss (%rsp), %xmm0
movss %xmm0, 0x4(%rsp)
movq 0xc7a9(%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 0x7792(%rip), %rdi      # 0xdfd9
xorl %eax, %eax
callq 0x2040
xorl %edi, %edi
callq 0x2290
movq %rax, %rbx
movq 0xc761(%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_O1/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 0x6909
leaq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2120
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0xc6dd(%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 0x76c6(%rip), %rdi      # 0xdfd9
xorl %eax, %eax
callq 0x2040
xorl %edi, %edi
callq 0x2290
movq %rax, %rbx
movq 0xc695(%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_O1/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 0x69d3
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 0x618e
movq %r14, %rdi
movq %r12, %rsi
callq 0x8fa8
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x69bc
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 0x697e
jmp 0x69d6
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 0x6a02
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O1/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
cmpl $0x0, (%rsi)
jle 0x6aee
movq %rsi, %rbx
movq %rdi, %r14
movq $0x0, (%rsp)
leaq 0x28(%rsp), %r13
xorl %edi, %edi
cmpl $0x0, 0x4(%rbx)
jle 0x6ad7
movl %edi, 0xc(%rsp)
movslq %edi, %rbp
movq %rbp, 0x10(%rsp)
shlq $0x5, %rbp
xorl %r15d, %r15d
movq 0x10(%rsp), %rax
leaq (%rax,%r15), %rsi
movq (%r14), %rax
movq 0x8(%r14), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0x6afd
movq %r13, 0x18(%rsp)
movq (%rax,%rbp), %rsi
movq 0x8(%rax,%rbp), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x5f92
movq %r12, %rdi
callq 0x65f5
movq 0x8(%rbx), %rcx
movq (%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movl %eax, (%rcx,%r15,4)
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0x6ac0
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2230
incq %r15
movslq 0x4(%rbx), %rax
addq $0x20, %rbp
cmpq %rax, %r15
jl 0x6a53
movl 0xc(%rsp), %edi
addl %r15d, %edi
movq (%rsp), %rsi
incq %rsi
movslq (%rbx), %rax
movq %rsi, (%rsp)
cmpq %rax, %rsi
jl 0x6a36
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7812(%rip), %rdi      # 0xe316
xorl %eax, %eax
callq 0x2350
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0x6b25
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O1/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 0xac62
movq %rax, %r14
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x6bcb
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 0x5f92
movq %r15, %rdi
callq 0x65f5
movq 0x8(%r14), %rcx
movl %eax, (%rcx,%r13,4)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6bb3
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 0x6b6c
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 0x6bf7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O1/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 0xadcc
movq %rax, %r14
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x6c9f
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 0x5f92
movq %r15, %rdi
callq 0x687e
movq 0x8(%r14), %rax
movsd %xmm0, (%rax,%r13,8)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6c87
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 0x6c3e
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 0x6ccb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O1/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 0x7ee3
movslq %esi, %rdx
shlq $0x2, %rdx
addq 0x8(%rdi), %rdx
cmpl $0x1, (%rdx)
je 0x7ee4
incl %esi
addq $0x4, %rdx
cmpl %esi, %ecx
jne 0x7ed4
retq
movl %esi, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
testb $0x5, 0x48(%rsp,%rax)
je 0x85e4
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rbx, %rsi
callq 0x5efe
leaq 0x18(%rsp), %r14
movq -0x10(%r14), %rsi
leaq 0x59a5(%rip), %rdi      # 0xdf68
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2040
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x8643
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x8643
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rax
xorl %ebx, %ebx
testb $0x2, 0x48(%rsp,%rax)
jne 0x8643
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 0x860d
leaq 0x28(%rsp), %rdi
callq 0x2070
movl %ebx, %eax
addq $0x7a350, %rsp          # imm = 0x7A350
popq %rbx
popq %r14
popq %r15
retq
jmp 0x865e
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O1/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 0xa5cc
cmpl $0x0, (%rbx)
jle 0x9622
xorl %ecx, %ecx
cmpl $0x0, (%r14)
jle 0x9617
movq 0x8(%rbx), %rdx
movq (%rdx,%rcx,8), %rdx
movq 0x8(%r14), %rsi
movq 0x8(%rax), %rdi
movq (%rdi,%rcx,8), %rdi
xorl %r8d, %r8d
movslq (%rsi,%r8,4), %r9
movl (%rdx,%r9,4), %r9d
movl %r9d, (%rdi,%r8,4)
incq %r8
movslq (%r14), %r9
cmpq %r9, %r8
jl 0x9600
incq %rcx
movslq (%rbx), %rdx
cmpq %rdx, %rcx
jl 0x95e3
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0xa725
movslq (%rbx), %rcx
testq %rcx, %rcx
jle 0x9684
movl (%r14), %edx
xorl %esi, %esi
testl %edx, %edx
jle 0x967c
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 0x9666
incq %rsi
cmpq %rcx, %rsi
jne 0x964b
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0xaa59
movslq (%rbx), %rcx
testq %rcx, %rcx
jle 0x96e8
movl (%r14), %edx
xorl %esi, %esi
testl %edx, %edx
jle 0x96e0
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 0x96c8
incq %rsi
cmpq %rcx, %rsi
jne 0x96ad
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0xac62
cmpl $0x0, (%rbx)
jle 0x972c
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 0x9715
addq $0x8, %rsp
popq %rbx
popq %r14
retq