LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/Carben-dev[P]ext2fs-simple-utilities/ext2_utils.c
// Function: count_block_bitmap
int count_block_bitmap() {
    unsigned char *block_bitmap_ptr;
    int curr_byte = 0;
    int vaild_byte_count = sb->s_blocks_count/8;
    int result = 0;
    int i;
    
    while (curr_byte < vaild_byte_count) {
        block_bitmap_ptr = block_bitmap + curr_byte;
        for (i = 0; i < 8; i++) {
            if (!(*block_bitmap_ptr>>i & 1)){
                result++;
            }
            
        }
        curr_byte++;
    }
    
    return result;
}

// Assembly:
leaq 0x2fe8(%rip), %rax      # 0x50c0
movq (%rax), %rax
movl 0x4(%rax), %ecx
xorl %eax, %eax
cmpq $0x8, %rcx
jb 0x21ae
shrl $0x3, %ecx
leaq 0x2fdc(%rip), %rax      # 0x50d0
movq (%rax), %rdx
xorl %esi, %esi
movdqa 0xf3f(%rip), %xmm0      # 0x3040
movaps 0xf48(%rip), %xmm1      # 0x3050
movdqa 0xf50(%rip), %xmm2      # 0x3060
xorl %eax, %eax
movzbl (%rdx,%rsi), %edi
notl %edi
movd %eax, %xmm3
movd %edi, %xmm4
pshufd $0x0, %xmm4, %xmm4      # xmm4 = xmm4[0,0,0,0]
movl $0x8, %eax
movdqa %xmm0, %xmm5
pshuflw $0xfe, %xmm5, %xmm6     # xmm6 = xmm5[2,3,3,3,4,5,6,7]
movdqa %xmm4, %xmm7
psrld %xmm6, %xmm7
pshuflw $0x54, %xmm5, %xmm6     # xmm6 = xmm5[0,1,1,1,4,5,6,7]
movdqa %xmm4, %xmm8
psrld %xmm6, %xmm8
punpcklqdq %xmm7, %xmm8    # xmm8 = xmm8[0],xmm7[0]
pshufd $0xee, %xmm5, %xmm6     # xmm6 = xmm5[2,3,2,3]
pshuflw $0xfe, %xmm6, %xmm7     # xmm7 = xmm6[2,3,3,3,4,5,6,7]
movdqa %xmm4, %xmm9
psrld %xmm7, %xmm9
pshuflw $0x54, %xmm6, %xmm6     # xmm6 = xmm6[0,1,1,1,4,5,6,7]
movdqa %xmm4, %xmm7
psrld %xmm6, %xmm7
punpckhqdq %xmm9, %xmm7    # xmm7 = xmm7[1],xmm9[1]
shufps $0xcc, %xmm7, %xmm8     # xmm8 = xmm8[0,3],xmm7[0,3]
andps %xmm1, %xmm8
paddd %xmm8, %xmm3
paddd %xmm2, %xmm5
addl $-0x4, %eax
jne 0x212e
pshufd $0xee, %xmm3, %xmm4     # xmm4 = xmm3[2,3,2,3]
paddd %xmm3, %xmm4
pshufd $0x55, %xmm4, %xmm3     # xmm3 = xmm4[1,1,1,1]
paddd %xmm4, %xmm3
movd %xmm3, %eax
incq %rsi
cmpq %rcx, %rsi
jne 0x2112
retq
// File: /workspace/github_c_makefile_star2_O3/Carben-dev[P]ext2fs-simple-utilities/ext2_utils.c
// Function: cut_path
void cut_path(char *path,
              char *parent,
              char *name)
{
    int i;
    // Find out the index of the last '/' in path;
    int last_slash_index = 0;
    for (i = 0; i < strlen(path); i++) {
        if (path[i] == '/') {
            last_slash_index = i;
        }
    }
    // Set parent path
    if (last_slash_index == 0) {
        parent[0] = '/';
        parent[1] = '\0';
    } else {
        memcpy(parent, path, last_slash_index);
        parent[last_slash_index] = '\0';
    }
    // Set name
    strncpy(name, path + last_slash_index + 1, EXT2_NAME_LEN);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0x1070
testq %rax, %rax
je 0x220f
xorl %edx, %edx
xorl %ecx, %ecx
cmpb $0x2f, (%r14,%rdx)
cmovel %edx, %ecx
incq %rdx
cmpq %rdx, %rax
jne 0x21e5
testl %ecx, %ecx
je 0x220f
movslq %ecx, %r12
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x10c0
movq %r12, %rax
jmp 0x221b
movb $0x2f, (%r15)
movl $0x1, %r12d
xorl %eax, %eax
movb $0x0, (%r15,%r12)
leaq (%r14,%rax), %rsi
incq %rsi
movl $0xff, %edx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1040
// File: /workspace/github_c_makefile_star2_O3/Carben-dev[P]ext2fs-simple-utilities/ext2_utils.c
// Function: copy_to_inode_datablock
int copy_to_inode_datablock(struct ext2_inode *dst_file_inode,
                            unsigned char *src_file,
                            int src_size)
{
    // allocate datablock space for cpy_file
    int dst_file_i_block_array_size = src_size/EXT2_BLOCK_SIZE;
    if (src_size%EXT2_BLOCK_SIZE) {
        dst_file_i_block_array_size++;
    }
    dst_file_inode->i_blocks = dst_file_i_block_array_size * 2; // set inode->blocks
    int *dst_file_i_block_array = malloc(sizeof(int) * dst_file_i_block_array_size);
    int i;
    for (i = 0; i < dst_file_i_block_array_size; i++) {
        dst_file_i_block_array[i] = dalloc();
        if (dst_file_i_block_array[i] < 0) {
            return ENOSPC;
        }
    }
    write_array_into_i_block(dst_file_inode, dst_file_i_block_array, dst_file_i_block_array_size);
    // do copy
    i = 0;
    while (i < dst_file_i_block_array_size) {
        unsigned char *src = src_file + EXT2_BLOCK_SIZE * i;
        unsigned char *dst = disk + EXT2_BLOCK_SIZE * dst_file_i_block_array[i];
        memcpy(dst, src, EXT2_BLOCK_SIZE);
        i++;
    }
    
    free(dst_file_i_block_array);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r12
movl $0x3ff, %eax            # imm = 0x3FF
leal (%rdx,%rax), %r15d
testl %edx, %edx
cmovnsl %edx, %r15d
sarl $0xa, %r15d
andl %eax, %edx
cmpl $0x1, %edx
sbbl $-0x1, %r15d
leal (%r15,%r15), %eax
movl %eax, 0x1c(%rdi)
movslq %r15d, %r13
leaq (,%r13,4), %rdi
callq 0x10e0
movq %rax, %r14
testl %r13d, %r13d
jle 0x22ec
movl %r15d, %r13d
xorl %ebp, %ebp
callq 0x17d8
movl %eax, (%r14,%rbp,4)
testl %eax, %eax
js 0x2306
incq %rbp
cmpq %rbp, %r13
jne 0x2290
movq %r12, %rdi
movq %r14, %rsi
movl %r15d, %edx
callq 0x1ea1
testl %r15d, %r15d
jle 0x22fa
xorl %r15d, %r15d
leaq 0x2dee(%rip), %r12      # 0x50b0
movslq (%r14,%r15,4), %rdi
shlq $0xa, %rdi
addq (%r12), %rdi
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rsi
callq 0x10c0
incq %r15
addq $0x400, %rbx            # imm = 0x400
cmpq %r15, %r13
jne 0x22c2
jmp 0x22fa
movq %r12, %rdi
movq %r14, %rsi
movl %r15d, %edx
callq 0x1ea1
movq %r14, %rdi
callq 0x1030
xorl %eax, %eax
jmp 0x230b
movl $0x1c, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Carben-dev[P]ext2fs-simple-utilities/ext2_utils.c
// Function: new_inode
int new_inode(unsigned short type,
              unsigned int size){
    // allocate space in inode table
    int new_inode_num = ialloc();
    if (new_inode_num < 0) {
        return ENOSPC;
    }
    struct ext2_inode *new_inode = inode_table + (new_inode_num - 1);
    
    // build dst file inode
    new_inode->i_mode           = 0x0000 | type;
    new_inode->i_uid            = 0;
    new_inode->i_size           = size;
    new_inode->i_ctime          = 0;
    new_inode->i_mtime          = 0;
    new_inode->i_dtime          = 0;
    new_inode->i_gid            = 0;
    new_inode->i_links_count    = 0;
    new_inode->i_blocks         = 0;
    new_inode->i_flags          = 0;
    // block[15]
    new_inode->osd1             = 0;
    new_inode->i_generation     = 0;
    new_inode->i_file_acl       = 0;
    new_inode->i_dir_acl        = 0;
    // padding
    memset(new_inode->extra, 0, 3);
    
    return new_inode_num;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %ebp
callq 0x1753
testl %eax, %eax
js 0x2374
leaq 0x2d87(%rip), %rcx      # 0x50b8
movq (%rcx), %rcx
movl %eax, %edx
shlq $0x7, %rdx
movw %bp, -0x80(%rcx,%rdx)
xorl %esi, %esi
movw %si, -0x7e(%rcx,%rdx)
movl %ebx, -0x7c(%rcx,%rdx)
movq $0x0, -0x1c(%rcx,%rdx)
movl $0x0, -0x14(%rcx,%rdx)
movw %si, -0xc(%rcx,%rdx)
movb $0x0, -0xa(%rcx,%rdx)
xorps %xmm0, %xmm0
movups %xmm0, -0x74(%rcx,%rdx)
movups %xmm0, -0x68(%rcx,%rdx)
jmp 0x2379
movl $0x1c, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::shuffle()
void Genome::shuffle() {
	uniform_int_distribution<size_t> distribution(0, this->haplotypes.size() - 1);

	this->maxIterations = this->haplotypes[0].size() * 100;

	if (this->initialized) {
		auto ploidy = this->haplotypes.size();
		auto length = this->haplotypes[0].size();
		this->haplotypes.clear();
		this->haplotypes = vector<Haplotype>(ploidy, Haplotype(length, ploidy));
	}

	for (auto& r : this->file.reads) {
		this->haplotypes[distribution(this->randomEngine)].add(&r);
	}

	this->initialized = true;

	// for (auto& ch : this->haplotypes) {
	// 	cout << ch << endl;
	// }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdi, %rbx
movq 0x2368(%rdi), %rdi
movq 0x2370(%rbx), %rax
subq %rdi, %rax
sarq $0x3, %rax
movabsq $-0x1084210842108421, %r15 # imm = 0xEF7BDEF7BDEF7BDF
imulq %r15, %rax
decq %rax
movq $0x0, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x6eae
imulq $0x64, %rax, %rax
movq %rax, 0x3bd8(%rbx)
cmpb $0x1, 0x37c0(%rbx)
jne 0x2e32
movq 0x2368(%rbx), %rdi
movq 0x2370(%rbx), %r14
subq %rdi, %r14
sarq $0x3, %r14
imulq %r15, %r14
callq 0x6eae
movq %rax, %r15
movq 0x2368(%rbx), %r13
movq 0x2370(%rbx), %rbp
cmpq %r13, %rbp
je 0x2daf
movq %r13, %r12
movq %r12, %rdi
callq 0x6dec
addq $0xf8, %r12
cmpq %rbp, %r12
jne 0x2d94
movq %r13, 0x2370(%rbx)
leaq 0x60(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x6968
leaq 0x20(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movq %r14, %rsi
movq %r12, %rdx
callq 0x50dc
movq 0x2378(%rbx), %rax
leaq 0x20(%rsp), %r14
movaps (%r14), %xmm0
movq 0x10(%r14), %rcx
movq %rcx, 0x2378(%rbx)
movups 0x2368(%rbx), %xmm1
movups %xmm0, 0x2368(%rbx)
leaq 0x40(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
callq 0x5176
movq %r14, %rdi
callq 0x5176
leaq 0x60(%rsp), %rdi
callq 0x6dec
movq 0x23d8(%rbx), %r14
movq 0x23e0(%rbx), %r13
cmpq %r13, %r14
je 0x2e7e
leaq 0x2438(%rbx), %r15
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x6408
imulq $0xf8, %rax, %rdi
addq 0x2368(%rbx), %rdi
movq %r14, %rsi
callq 0x728c
addq $0x30, %r14
cmpq %r13, %r14
jne 0x2e51
movb $0x1, 0x37c0(%rbx)
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x6dec
movq %rbx, %rdi
callq 0x2450
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::mec()
dnaweight_t Genome::mec() {
	dnaweight_t out = 0;
	for (size_t i = 0; i < haplotypes.size(); i++) {
		out = out + haplotypes[i].mec();
	}

	return out;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x2368(%rdi), %rdi
cmpq %rdi, 0x2370(%rbx)
je 0x2faf
xorpd %xmm0, %xmm0
xorl %r14d, %r14d
movabsq $-0x1084210842108421, %r15 # imm = 0xEF7BDEF7BDEF7BDF
xorl %r12d, %r12d
movsd %xmm0, (%rsp)
addq %r14, %rdi
callq 0x6ebc
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd (%rsp), %xmm0
incq %r12
movq 0x2368(%rbx), %rdi
movq 0x2370(%rbx), %rax
subq %rdi, %rax
sarq $0x3, %rax
imulq %r15, %rax
addq $0xf8, %r14
cmpq %rax, %r12
jb 0x2f65
jmp 0x2fb3
xorpd %xmm0, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::windowMEC()
dnaweight_t Genome::windowMEC() { 
	dnaweight_t out = 0;
	for (size_t i = 0; i < haplotypes.size(); i++) {
		assert(haplotypes[i].windowMec()>=0);
		out += haplotypes[i].windowMec();
		assert(out>=0);
	}
	return out;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x2368(%rdi), %rdi
cmpq %rdi, 0x2370(%rbx)
je 0x3056
xorl %r14d, %r14d
movabsq $-0x1084210842108421, %r15 # imm = 0xEF7BDEF7BDEF7BDF
xorl %r12d, %r12d
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
addq %r14, %rdi
callq 0x6fa0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x3066
movq 0x2368(%rbx), %rdi
addq %r14, %rdi
callq 0x6fa0
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
ucomisd 0x80c2(%rip), %xmm1     # 0xb0e8
jb 0x3085
movapd %xmm1, %xmm0
incq %r12
movq 0x2368(%rbx), %rdi
movq 0x2370(%rbx), %rax
subq %rdi, %rax
sarq $0x3, %rax
imulq %r15, %rax
addq $0xf8, %r14
cmpq %rax, %r12
jb 0x2fef
jmp 0x305a
xorpd %xmm0, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x8169(%rip), %rdi      # 0xb1d6
leaq 0x817f(%rip), %rsi      # 0xb1f3
leaq 0x8187(%rip), %rcx      # 0xb202
movl $0x4c, %edx
callq 0x2180
leaq 0x819d(%rip), %rdi      # 0xb229
leaq 0x8160(%rip), %rsi      # 0xb1f3
leaq 0x8168(%rip), %rcx      # 0xb202
movl $0x4e, %edx
callq 0x2180
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::meanCoverage()
double Genome::meanCoverage() {
    double coverage = 0;
    for (size_t i = 0; i < haplotypes.size(); i++)
		coverage += this->haplotypes[i].meanCoverage();
    return coverage;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x2368(%rdi), %rdi
cmpq %rdi, 0x2370(%rbx)
je 0x31a1
xorpd %xmm0, %xmm0
xorl %r14d, %r14d
movabsq $-0x1084210842108421, %r15 # imm = 0xEF7BDEF7BDEF7BDF
xorl %r12d, %r12d
movsd %xmm0, (%rsp)
addq %r14, %rdi
callq 0x6e3a
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd (%rsp), %xmm0
incq %r12
movq 0x2368(%rbx), %rdi
movq 0x2370(%rbx), %rax
subq %rdi, %rax
sarq $0x3, %rax
imulq %r15, %rax
addq $0xf8, %r14
cmpq %rax, %r12
jb 0x3157
jmp 0x31a5
xorpd %xmm0, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::windowMec()
double Genome::windowMec() {
	double out = 0;

	for (size_t i = 0; i < haplotypes.size(); i++) {
		// -logT_p(lambda_i, k_i)
#if OBJECTIVE == OBJ_MEC
		out = out + haplotypes[i].windowMec();
#elif OBJECTIVE == OBJ_Poisson
		out = out + haplotypes[i].siteCost(); // siteCost() should probably be renamed to PoissonWindowMec
#else
#error "No objective chosen"
#endif

	}

	// cout << "siteCost: " << out << endl;

	// double maxCost = this->haplotypes.size() * this->haplotypes[0].size();
	return out;// / maxCost;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x2368(%rdi), %rdi
cmpq %rdi, 0x2370(%rbx)
je 0x32b5
xorpd %xmm0, %xmm0
xorl %r14d, %r14d
movabsq $-0x1084210842108421, %r15 # imm = 0xEF7BDEF7BDEF7BDF
xorl %r12d, %r12d
movsd %xmm0, (%rsp)
addq %r14, %rdi
callq 0x6fa0
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd (%rsp), %xmm0
incq %r12
movq 0x2368(%rbx), %rdi
movq 0x2370(%rbx), %rax
subq %rdi, %rax
sarq $0x3, %rax
imulq %r15, %rax
addq $0xf8, %r14
cmpq %rax, %r12
jb 0x326b
jmp 0x32b9
xorpd %xmm0, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::acceptance(double, double)
double Genome::acceptance(double newScore, double curScore) {
	if (newScore < curScore) return 1;
	if (this->t == 0) return 0;
	double energyDiff = curScore - newScore;
	// cout << "Acceptance(" << energyDiff << ") = " << exp(energyDiff / this->t) << endl;

	// cout << "newScore: " << newScore << ", energyDiff: " << energyDiff << ", acceptance: " << exp(energyDiff / this->t) << endl;
	return exp(energyDiff / this->t);
}

// Assembly:
ucomisd %xmm0, %xmm1
jbe 0x33b2
movsd 0x7d30(%rip), %xmm2     # 0xb0e0
jmp 0x33c6
movsd 0x3bc0(%rdi), %xmm3
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm3
jne 0x33cb
jp 0x33cb
movapd %xmm2, %xmm0
retq
subsd %xmm0, %xmm1
divsd %xmm3, %xmm1
movapd %xmm1, %xmm0
jmp 0x2460
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::setParameters(double, double, unsigned long long)
void Genome::setParameters(double tInitial, double tEnd, iteration_t maxIterations) {
	if (this->curIteration) {
		// Probably warn the user in some way that the simulation is in process
	}

	this->tInitial = tInitial;
	// this->tEnd = tEnd;
	this->tDecay = -log(tEnd / this->tInitial);
	this->maxIterations = maxIterations;

	cout << "decay is " << this->tDecay << endl;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movsd %xmm0, 0x3bc8(%rdi)
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
callq 0x2200
xorpd 0x7c2b(%rip), %xmm0     # 0xb040
movlpd %xmm0, 0x3bd0(%r14)
movq %rbx, 0x3bd8(%r14)
movq 0xcb9c(%rip), %rbx      # 0xffc8
leaq 0x7dfd(%rip), %rsi      # 0xb230
movl $0x9, %edx
movq %rbx, %rdi
callq 0x22b0
movsd 0x3bd0(%r14), %xmm0
movq %rbx, %rdi
callq 0x23d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x21a0
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::iteration()
void Genome::iteration() {
	auto oldScore = this->windowMec();
	// FIXME: these lines recomputes ALL the sites?? It should only incrementally compute the old and new scores at the sites touched by this read! Inefficient!
	this->move();
	auto newScore = this->windowMec();

	uniform_real_distribution<double> distribution(0, 1);
	double chanceToKeep = this->acceptance(newScore, oldScore);
	double randomIndex = distribution(this->randomEngine);

	bool isGood = newScore < oldScore;
	bool accept = randomIndex <= chanceToKeep;
	assert(!isGood || accept);

	if (isGood) {
		// always accept
	} else if (!accept) {
		// reject
		this->revertMove();
	}

	this->fAccept.record(isGood);

	if (!(isGood || oldScore == newScore)) {
		this->totalBad++;
		if (accept) {
			this->totalBadAccepted++;
		}
		this->pBad.record(chanceToKeep);
	}

#if 0
	uniform_real_distribution<double> d(0, 3);
	if (d(this->randomEngine) <= 1) {
		this->pBad.record(false);
	} else {
		this->pBad.record(true);
	}
#endif
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
callq 0x323c
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x348c
movq %rbx, %rdi
callq 0x323c
movsd %xmm0, 0x10(%rsp)
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x368e
movsd 0x7a54(%rip), %xmm0     # 0xb0e0
jmp 0x36c0
movsd 0x3bc0(%rbx), %xmm1
xorpd %xmm2, %xmm2
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
ucomisd %xmm2, %xmm1
jne 0x36ab
jnp 0x36c5
movsd 0x8(%rsp), %xmm0
subsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
callq 0x2460
movsd %xmm0, (%rsp)
leaq 0x2438(%rbx), %rdi
callq 0x6668
movapd %xmm0, %xmm1
xorl %ebp, %ebp
movsd 0x8(%rsp), %xmm0
ucomisd 0x10(%rsp), %xmm0
seta %r14b
jbe 0x36f8
movsd (%rsp), %xmm0
ucomisd %xmm1, %xmm0
jb 0x3778
movsd 0x8(%rsp), %xmm0
ucomisd 0x10(%rsp), %xmm0
movsd %xmm1, 0x18(%rsp)
ja 0x371f
movsd (%rsp), %xmm0
ucomisd %xmm1, %xmm0
jae 0x371f
movq %rbx, %rdi
callq 0x360a
movb %r14b, %bpl
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3798
movsd 0x8(%rsp), %xmm0
ucomisd 0x10(%rsp), %xmm0
jae 0x376f
incl 0x2360(%rbx)
movsd (%rsp), %xmm0
ucomisd 0x18(%rsp), %xmm0
jb 0x3753
incl 0x2364(%rbx)
addq $0x408, %rbx            # imm = 0x408
movq %rbx, %rdi
movsd (%rsp), %xmm0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x3812
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x7b00(%rip), %rdi      # 0xb27f
leaq 0x7a6d(%rip), %rsi      # 0xb1f3
leaq 0x7b04(%rip), %rcx      # 0xb291
movl $0x119, %edx            # imm = 0x119
callq 0x2180
nop
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::AcceptBuffer::record(char)
void Genome::AcceptBuffer::record(char good) {
	size_t next = this->pos == LENGTH - 1 ? 0 : this->pos + 1;
	assert(good == 0 || good == 1);
	if (this->len == LENGTH) {
		this->sum -= this->buffer[next]; // the next one is the first one
	} else {
		this->len++;
	}
	this->pos = next;
	this->buffer[next] = good;
	this->sum += good;
}

// Assembly:
movq 0x3f0(%rdi), %rcx
leaq 0x1(%rcx), %rdx
xorl %eax, %eax
cmpq $0x3e7, %rcx            # imm = 0x3E7
cmovneq %rdx, %rax
cmpb $0x2, %sil
jae 0x37f2
movq 0x3e8(%rdi), %rcx
cmpq $0x3e8, %rcx            # imm = 0x3E8
jne 0x37d2
movsbl (%rdi,%rax), %ecx
subl %ecx, 0x3f8(%rdi)
jmp 0x37dc
incq %rcx
movq %rcx, 0x3e8(%rdi)
movzbl %sil, %ecx
movq %rax, 0x3f0(%rdi)
movb %sil, (%rdi,%rax)
addl %ecx, 0x3f8(%rdi)
retq
pushq %rax
leaq 0x7d90(%rip), %rdi      # 0xb58a
leaq 0x79f2(%rip), %rsi      # 0xb1f3
leaq 0x7d99(%rip), %rcx      # 0xb5a1
movl $0x201, %edx            # imm = 0x201
callq 0x2180
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::PbadBuffer::record(double)
void Genome::PbadBuffer::record(double acceptance) {
	size_t next = this->pos == LENGTH - 1 ? 0 : this->pos + 1;
	assert(acceptance >= 0.0 && acceptance <= 1.0);
	if (this->len == LENGTH) {
		this->sum -= this->buffer[next]; // the next one is the first one
	} else {
		this->len++;
	}
	this->pos = next;
	this->buffer[next] = acceptance;
	this->sum += acceptance;
	if(this->sum < 0) this->sum = 0;
}

// Assembly:
movq 0x1f48(%rdi), %rcx
leaq 0x1(%rcx), %rdx
xorl %eax, %eax
cmpq $0x3e7, %rcx            # imm = 0x3E7
cmovneq %rdx, %rax
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x3898
movsd 0x78a4(%rip), %xmm1     # 0xb0e0
ucomisd %xmm0, %xmm1
jb 0x3898
movq 0x1f40(%rdi), %rcx
cmpq $0x3e8, %rcx            # imm = 0x3E8
jne 0x3869
movsd 0x1f50(%rdi), %xmm1
subsd (%rdi,%rax,8), %xmm1
movsd %xmm1, 0x1f50(%rdi)
jmp 0x3873
incq %rcx
movq %rcx, 0x1f40(%rdi)
movq %rax, 0x1f48(%rdi)
movsd %xmm0, (%rdi,%rax,8)
addsd 0x1f50(%rdi), %xmm0
xorpd %xmm1, %xmm1
maxsd %xmm0, %xmm1
movsd %xmm1, 0x1f50(%rdi)
retq
pushq %rax
leaq 0x7c94(%rip), %rdi      # 0xb534
leaq 0x794c(%rip), %rsi      # 0xb1f3
leaq 0x7cad(%rip), %rcx      # 0xb55b
movl $0x1ee, %edx            # imm = 0x1EE
callq 0x2180
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::getTemperature(unsigned long long)
double Genome::getTemperature(iteration_t iteration) {
	double s = iteration / (double)this->maxIterations;
	double temp = (double)this->tInitial * exp(-this->tDecay * s);

	// cout << iteration << ": " << temp << endl;
	return temp;
}

// Assembly:
pushq %rax
movq %rsi, %xmm0
movq 0x775a(%rip), %xmm1     # 0xb020
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x775e(%rip), %xmm2     # 0xb030
subpd %xmm2, %xmm0
movapd %xmm0, %xmm3
unpckhpd %xmm0, %xmm3            # xmm3 = xmm3[1],xmm0[1]
addsd %xmm0, %xmm3
movq 0x3bd8(%rdi), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
subpd %xmm2, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
divsd %xmm1, %xmm3
movsd 0x3bc8(%rdi), %xmm0
movsd %xmm0, (%rsp)
movsd 0x3bd0(%rdi), %xmm0
xorpd 0x7721(%rip), %xmm0     # 0xb040
mulsd %xmm3, %xmm0
callq 0x2460
mulsd (%rsp), %xmm0
popq %rax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::ResetBuffers()
void Genome::ResetBuffers() {
    for (iteration_t i = 0; i < this->fAccept.LENGTH; ++i) this->fAccept.buffer[i]=0;
    for (iteration_t i = 0; i < this->pBad.LENGTH; ++i) this->pBad.buffer[i]=0;
    this->pBad.len = this->fAccept.len = 0;
    this->pBad.pos = this->fAccept.pos = 0;
    this->pBad.sum = this->fAccept.sum = 0;
    this->totalBad = 0;
    this->totalBadAccepted = this->totalGood = 0;
}

// Assembly:
pushq %rbx
leaq 0x408(%rdi), %rbx
movl $0x0, 0x400(%rdi)
movl $0x3fc, %edx            # imm = 0x3FC
xorl %esi, %esi
callq 0x2140
movl $0x1f60, %edx           # imm = 0x1F60
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x2140
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::Genome::compareGroundTruth(SAHap::Haplotype const&, std::vector<int, std::allocator<int>> const&)
dnacnt_t Genome::compareGroundTruth(const Haplotype& ch, const vector<int>& truth) {
	dnacnt_t loss = 0;
	for (size_t i = 0; i < ch.size(); ++i) {
		if (ch.solution[i] != truth[i]) {
			loss++;
		}
	}
	return loss;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rsi, %rdi
callq 0x6eae
testq %rax, %rax
je 0x4f15
xorl %r12d, %r12d
xorl %r15d, %r15d
movq (%r14), %rax
movl (%rax,%r12,4), %eax
movq (%rbx), %rcx
xorl %edx, %edx
cmpl (%rcx,%r12,4), %eax
setne %dl
addq %rdx, %r15
incq %r12
movq %r14, %rdi
callq 0x6eae
cmpq %rax, %r12
jb 0x4eed
jmp 0x4f18
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Genome.cpp
// Function: SAHap::operator<<(std::ostream&, SAHap::Genome const&)
ostream& operator << (ostream& stream, const Genome& ge) {
	int blockNum = 1;
	for (Range r : ge.blocks) {
		stream << "BLOCK " << blockNum++ << endl;
		for (size_t i = 0; i < ge.haplotypes.size(); ++i) {
			for (size_t j = 0; j < ge.haplotypes[i].size(); ++j) {
				if (j >= r.start && j <= r.end) {
					if (ge.haplotypes[i].solution[j] < 0)
						stream << 'X';
					else
						stream << ge.haplotypes[i].solution[j];
				}
				else
					stream << '-';
			}
			stream << endl;
		}
	}
	return stream;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x3c30(%rsi), %rax
movq 0x3c38(%rsi), %rcx
movq %rcx, 0x10(%rsp)
cmpq %rcx, %rax
je 0x50c9
movq %rsi, %r14
movl $0x1, %r12d
movq (%rax), %rbp
movq %rax, 0x18(%rsp)
movq 0x8(%rax), %r15
movl $0x6, %edx
movq %rbx, %rdi
leaq 0x6658(%rip), %rsi      # 0xb5d0
callq 0x22b0
movq %rbx, %rdi
movl %r12d, 0xc(%rsp)
movl %r12d, %esi
callq 0x2430
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2250
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x21a0
movq 0x2368(%r14), %rdi
cmpq %rdi, 0x2370(%r14)
je 0x50ad
xorl %edx, %edx
movq %rdx, 0x20(%rsp)
imulq $0xf8, %rdx, %r12
addq %r12, %rdi
callq 0x6eae
testq %rax, %rax
je 0x5052
xorl %r13d, %r13d
cmpq %rbp, %r13
jb 0x5010
cmpq %r15, %r13
ja 0x5010
movq 0x2368(%r14), %rax
movq (%rax,%r12), %rax
movl (%rax,%r13,4), %esi
testl %esi, %esi
js 0x5024
movq %rbx, %rdi
callq 0x2430
jmp 0x503b
movb $0x2d, 0xb(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0xb(%rsp), %rsi
jmp 0x5036
movb $0x58, 0xa(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0xa(%rsp), %rsi
callq 0x22b0
incq %r13
movq 0x2368(%r14), %rdi
addq %r12, %rdi
callq 0x6eae
cmpq %rax, %r13
jb 0x4fe9
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x21a0
movq 0x20(%rsp), %rdx
incq %rdx
movq 0x2368(%r14), %rdi
movq 0x2370(%r14), %rax
subq %rdi, %rax
sarq $0x3, %rax
movabsq $-0x1084210842108421, %rcx # imm = 0xEF7BDEF7BDEF7BDF
imulq %rcx, %rax
cmpq %rax, %rdx
jb 0x4fcd
movl 0xc(%rsp), %r12d
incl %r12d
movq 0x18(%rsp), %rax
addq $0x10, %rax
cmpq 0x10(%rsp), %rax
jne 0x4f5d
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::meanCoverage()
double Haplotype::meanCoverage() {
    double result = 0.0;
    for (dnapos_t i = 0; i < this->length; ++i) {
		result += this->siteCoverages[i];
    }
    return result/this->length;
}

// Assembly:
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x6e83
movq 0x38(%rdi), %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
movsd 0x41cb(%rip), %xmm1     # 0xb020
movapd 0x41d3(%rip), %xmm2     # 0xb030
movsd (%rcx,%rdx,8), %xmm3
unpcklps %xmm1, %xmm3            # xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1]
subpd %xmm2, %xmm3
movapd %xmm3, %xmm4
unpckhpd %xmm3, %xmm4            # xmm4 = xmm4[1],xmm3[1]
addsd %xmm3, %xmm4
addsd %xmm4, %xmm0
incq %rdx
cmpq %rdx, %rax
jne 0x6e5d
jmp 0x6e87
xorpd %xmm0, %xmm0
movq %rax, %xmm1
punpckldq 0x418c(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x4194(%rip), %xmm1     # 0xb030
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
retq
nop
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::mec(unsigned long, unsigned long)
double Haplotype::mec(dnapos_t s, dnapos_t e) {
    double out = 0;
    assert(e>=s);

    for (unsigned j = 0; j < ploidyCount; j++) {
	for (dnapos_t i = s; i <= e && i < this->length; i++) {
	    if (solution[i] == (int)j) // solution is signed since (-1) is used to mean "undefined"
		continue;
	    if(weights[i][j] < 0 && weights[i][j] > -SMALL_ENOUGH_TO_IGNORE) weights[i][j] = 0;
	    assert(weights[i][j]>=0);
	    out += weights[i][j];
	}
    }
    assert(out>=0);
    return out;
}

// Assembly:
pushq %rbx
cmpq %rsi, %rdx
jb 0x6f81
movl 0x68(%rdi), %eax
testq %rax, %rax
je 0x6f5c
movq (%rdi), %rcx
movq 0x18(%rdi), %r8
leaq (%rsi,%rsi,2), %r9
shlq $0x3, %r9
addq 0x20(%rdi), %r9
xorpd %xmm0, %xmm0
xorl %edi, %edi
movq %r9, %r10
movq %rsi, %r11
cmpq %rsi, %r8
jbe 0x6f2b
movl (%rcx,%r11,4), %ebx
cmpq %rbx, %rdi
je 0x6f1a
movq (%r10), %rbx
movl (%rbx,%rdi,4), %ebx
testl %ebx, %ebx
js 0x6f62
xorps %xmm1, %xmm1
cvtsi2sd %ebx, %xmm1
addsd %xmm1, %xmm0
cmpq %rdx, %r11
jae 0x6f2b
incq %r11
addq $0x18, %r10
cmpq %r8, %r11
jb 0x6efc
incq %rdi
cmpq %rax, %rdi
jne 0x6ef1
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jae 0x6f60
leaq 0x42e5(%rip), %rdi      # 0xb229
leaq 0x4772(%rip), %rsi      # 0xb6bd
leaq 0x477d(%rip), %rcx      # 0xb6cf
movl $0x66, %edx
callq 0x2180
xorpd %xmm0, %xmm0
popq %rbx
retq
leaq 0x4797(%rip), %rdi      # 0xb700
leaq 0x474d(%rip), %rsi      # 0xb6bd
leaq 0x4758(%rip), %rcx      # 0xb6cf
movl $0x62, %edx
callq 0x2180
leaq 0x4730(%rip), %rdi      # 0xb6b8
leaq 0x472e(%rip), %rsi      # 0xb6bd
leaq 0x4739(%rip), %rcx      # 0xb6cf
movl $0x5b, %edx
callq 0x2180
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::pickReads(unsigned int)
void Haplotype::pickReads(unsigned overlap) {
	this->reads.clear();
	
	for (auto r : this->saved_reads) {
		if (r->range.end > this->window.start + overlap && r->range.start <= this->window.end) {
			this->reads.insert(r);
		}
	}
	//cout << "MIN START: " << mx << endl;
	for (auto r : this->reads)
		this->saved_reads.erase(r);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x70(%rdi), %r14
movq %r14, %rdi
callq 0x7d86
movq 0xb8(%rbx), %r13
testq %r13, %r13
je 0x70b3
movl %ebp, %ebp
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %r12
movq 0x8(%r13), %rax
movq %rax, 0x10(%rsp)
movq 0xe0(%rbx), %rcx
addq %rbp, %rcx
cmpq %rcx, 0x28(%rax)
jbe 0x70aa
movq 0x20(%rax), %rax
cmpq 0xe8(%rbx), %rax
ja 0x70aa
movq %r14, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x8232
movq (%r13), %r13
testq %r13, %r13
jne 0x7071
movq 0x80(%rbx), %r15
testq %r15, %r15
je 0x70e7
addq $0xa8, %rbx
leaq 0x8(%rsp), %r14
movq 0x8(%r15), %rax
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x84c0
movq (%r15), %r15
testq %r15, %r15
jne 0x70cb
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::initializeWindow(unsigned int, unsigned int)
void Haplotype::initializeWindow(unsigned windowSize, unsigned incrementBy) {
	this->window.start = 0;
	this->window.end = windowSize;
	this->increment_window_by = incrementBy;
	this->saved_reads = this->reads;

	this->pickReads(0);

	this->window_mec = mec(this->window.start, this->window.end);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq $0x0, 0xe0(%rdi)
movl %esi, %eax
movq %rax, 0xe8(%rdi)
movl %edx, 0xf0(%rdi)
leaq 0x70(%rdi), %rsi
addq $0xa8, %rdi
callq 0x7f12
movq %rbx, %rdi
xorl %esi, %esi
callq 0x703a
movq 0xe0(%rbx), %rsi
movq 0xe8(%rbx), %rdx
movq %rbx, %rdi
callq 0x6ec2
movsd %xmm0, 0x58(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::incrementWindow()
void Haplotype::incrementWindow() {
	dnapos_t old_end = this->window.end;

	this->window.start += this->increment_window_by;
	this->window.end = min(this->window.end + this->increment_window_by, this->length);

	this->saveReads();
	this->pickReads(old_end - this->window.start);
	
	this->window_mec = mec(this->window.start, this->window.end);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq 0xe8(%rdi), %r14
movl 0xf0(%rdi), %ecx
addq %rcx, 0xe0(%rdi)
addq %r14, %rcx
cmpq %rcx, %rax
cmovbq %rax, %rcx
movq %rcx, 0xe8(%rdi)
callq 0x6fd0
subl 0xe0(%rbx), %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x703a
movq 0xe0(%rbx), %rsi
movq 0xe8(%rbx), %rdx
movq %rbx, %rdi
callq 0x6ec2
movsd %xmm0, 0x58(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::windowTotalCoverage()
double Haplotype::windowTotalCoverage() {
    double result = 0.0;
    for (dnapos_t i = this->window.start; i < this->window.end; ++i) {
		result += this->siteCoverages[i];
    }
    return result;//(this->window.end - this->window.start);
}

// Assembly:
movq 0xe0(%rdi), %rax
movq 0xe8(%rdi), %rcx
xorpd %xmm0, %xmm0
cmpq %rcx, %rax
jae 0x7205
movq 0x38(%rdi), %rdx
movsd 0x3e47(%rip), %xmm1     # 0xb020
movapd 0x3e4f(%rip), %xmm2     # 0xb030
movsd (%rdx,%rax,8), %xmm3
unpcklps %xmm1, %xmm3            # xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1]
subpd %xmm2, %xmm3
movapd %xmm3, %xmm4
unpckhpd %xmm3, %xmm4            # xmm4 = xmm4[1],xmm3[1]
addsd %xmm3, %xmm4
addsd %xmm4, %xmm0
incq %rax
cmpq %rax, %rcx
jne 0x71e1
retq
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::add(SAHap::Read*)
void Haplotype::add(Read * r) {
	if (this->reads.find(r) != this->reads.end()) {
		throw "Haplotype already contains read";
	}
	// std::cout << "adding\n";
	this->reads.insert(r);
	this->vote(*r);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq %rsp, %rax
movq %rsi, (%rax)
leaq 0x70(%rdi), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x85b0
testq %rax, %rax
jne 0x72df
leaq 0x8(%rsp), %rdx
movq %r14, (%rdx)
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x8232
movq (%r15), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x7304
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl $0x8, %edi
callq 0x2100
leaq 0x445a(%rip), %rcx      # 0xb74a
movq %rcx, (%rax)
movq 0x8cb6(%rip), %rsi      # 0xffb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x2420
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::remove(SAHap::Read*)
void Haplotype::remove(Read * r) {
	if (this->reads.find(r) == this->reads.end()) {
		cout << "Offending read is " << r << endl;
		// cout << "Offending read has #sites=" << r->sites.size();
		throw "Haplotype does not contain read";
	}

	this->reads.erase(r);
	this->vote(*r, true);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rax
movq %rsi, (%rax)
leaq 0x70(%rdi), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x85b0
testq %rax, %rax
je 0x73b4
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x84c0
movq (%r15), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x7304
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x8c0d(%rip), %rdi      # 0xffc8
leaq 0x43a8(%rip), %rsi      # 0xb76a
callq 0x2260
movq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x20f0
movl $0x8, %edi
callq 0x2100
leaq 0x4390(%rip), %rcx      # 0xb77d
movq %rcx, (%rax)
movq 0x8bb9(%rip), %rsi      # 0xffb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x2420
nop
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::randomRead()
Read * Haplotype::randomRead() {
	long int seed = GetFancySeed(true);
	cout << "Haplotype seed " << seed << endl;
	mt19937 engine(seed);

	return this->randomRead(engine);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1390, %rsp           # imm = 0x1390
movq %rdi, %rbx
movl $0x1, %edi
callq 0xaa90
movq %rax, %r14
movq 0x8ba3(%rip), %r15      # 0xffc8
leaq 0x4371(%rip), %rsi      # 0xb79d
movl $0xf, %edx
movq %r15, %rdi
callq 0x22b0
movq %r15, %rdi
movq %r14, %rsi
callq 0x2240
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2250
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x21a0
movl %r14d, %eax
movq %rax, 0x8(%rsp)
movl $0x1, %ecx
movq %rax, %rdx
shrq $0x1e, %rdx
xorl %eax, %edx
imull $0x6c078965, %edx, %eax # imm = 0x6C078965
addl %ecx, %eax
movq %rax, 0x8(%rsp,%rcx,8)
incq %rcx
cmpq $0x270, %rcx            # imm = 0x270
jne 0x747b
leaq 0x8(%rsp), %rsi
movq $0x270, 0x1380(%rsi) # imm = 0x270
movq %rbx, %rdi
callq 0x74c2
addq $0x1390, %rsp           # imm = 0x1390
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::subtractMECValuesAt(unsigned long)
void Haplotype::subtractMECValuesAt(dnapos_t pos) {
	for (unsigned i = 0; i < ploidyCount; i++) {
		if ((int)i == solution[pos])
			continue;
		auto mec = weights[pos][i];
		total_mec -= mec;
		assert(total_mec>=0);

		if (isInRangeOf(window, pos))
			window_mec -= mec;
		if(window_mec < 0 && window_mec > -SMALL_ENOUGH_TO_IGNORE) window_mec = 0;
		assert(window_mec>=0);

		if(siteCoverages[i]) isitecost -= -log_poisson_1_cdf(READ_ERROR_RATE * siteCoverages[i], mec);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl 0x68(%rdi), %eax
testl %eax, %eax
je 0x7625
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
leaq (%rsi,%rsi,2), %r12
xorpd %xmm2, %xmm2
movq (%r14), %rcx
movl (%rcx,%rbx,4), %ecx
cmpq %rcx, %r15
je 0x7617
movq 0x20(%r14), %rcx
movq (%rcx,%r12,8), %rcx
movl (%rcx,%r15,4), %edi
xorps %xmm1, %xmm1
cvtsi2sd %edi, %xmm1
movsd 0x50(%r14), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x50(%r14)
ucomisd %xmm2, %xmm0
jb 0x7631
movsd 0x58(%r14), %xmm0
cmpq %rbx, 0xe0(%r14)
ja 0x75a4
cmpq %rbx, 0xe8(%r14)
jb 0x75a4
subsd %xmm1, %xmm0
movsd %xmm0, 0x58(%r14)
ucomisd %xmm0, %xmm2
jbe 0x75be
ucomisd 0x40fe(%rip), %xmm0     # 0xb6b0
jbe 0x75be
movq $0x0, 0x58(%r14)
jmp 0x75c8
ucomisd %xmm2, %xmm0
jb 0x7650
movq 0x38(%r14), %rcx
movq (%rcx,%r15,8), %rcx
testq %rcx, %rcx
je 0x7617
movq %rcx, %xmm1
punpckldq 0x3a3e(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x3a46(%rip), %xmm1     # 0xb030
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x3af2(%rip), %xmm0     # 0xb0f0
callq 0xa98a
xorpd %xmm2, %xmm2
addsd 0x60(%r14), %xmm0
movsd %xmm0, 0x60(%r14)
movl 0x68(%r14), %eax
incq %r15
movl %eax, %ecx
cmpq %rcx, %r15
jb 0x7546
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x4175(%rip), %rdi      # 0xb7ad
leaq 0x407e(%rip), %rsi      # 0xb6bd
leaq 0x4174(%rip), %rcx      # 0xb7ba
movl $0xdd, %edx
callq 0x2180
leaq 0x40c0(%rip), %rdi      # 0xb717
leaq 0x405f(%rip), %rsi      # 0xb6bd
leaq 0x4155(%rip), %rcx      # 0xb7ba
movl $0xe2, %edx
callq 0x2180
nop
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::addMECValuesAt(unsigned long)
void Haplotype::addMECValuesAt(dnapos_t pos) {
	for (unsigned i = 0; i < ploidyCount; i++) {
		if ((int)i == solution[pos])
			continue;
		auto mec = weights[pos][i];
		total_mec += mec;

		if (isInRangeOf(window, pos))
			window_mec += mec;
		if(window_mec < 0 && window_mec > -SMALL_ENOUGH_TO_IGNORE) window_mec = 0;
		assert(window_mec>=0);

		if(siteCoverages[i]) isitecost += -log_poisson_1_cdf(READ_ERROR_RATE * siteCoverages[i], mec);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl 0x68(%rdi), %eax
testl %eax, %eax
je 0x7769
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
leaq (%rsi,%rsi,2), %r12
xorpd %xmm2, %xmm2
movq (%r14), %rcx
movl (%rcx,%rbx,4), %ecx
cmpq %rcx, %r15
je 0x775b
movq 0x20(%r14), %rcx
movq (%rcx,%r12,8), %rcx
movl (%rcx,%r15,4), %edi
xorps %xmm1, %xmm1
cvtsi2sd %edi, %xmm1
movsd 0x50(%r14), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x50(%r14)
movsd 0x58(%r14), %xmm0
cmpq %rbx, 0xe0(%r14)
ja 0x76e8
cmpq %rbx, 0xe8(%r14)
jb 0x76e8
addsd %xmm1, %xmm0
movsd %xmm0, 0x58(%r14)
ucomisd %xmm0, %xmm2
jbe 0x7702
ucomisd 0x3fba(%rip), %xmm0     # 0xb6b0
jbe 0x7702
movq $0x0, 0x58(%r14)
jmp 0x7708
ucomisd %xmm2, %xmm0
jb 0x7775
movq 0x38(%r14), %rcx
movq (%rcx,%r15,8), %rcx
testq %rcx, %rcx
je 0x775b
movq %rcx, %xmm1
punpckldq 0x38fe(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x3906(%rip), %xmm1     # 0xb030
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x39b2(%rip), %xmm0     # 0xb0f0
callq 0xa98a
xorpd %xmm2, %xmm2
movsd 0x60(%r14), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x60(%r14)
movl 0x68(%r14), %eax
incq %r15
movl %eax, %ecx
cmpq %rcx, %r15
jb 0x7694
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x3f9b(%rip), %rdi      # 0xb717
leaq 0x3f3a(%rip), %rsi      # 0xb6bd
leaq 0x4065(%rip), %rcx      # 0xb7ef
movl $0xf2, %edx
callq 0x2180
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::addSite(SAHap::Site const&)
void Haplotype::addSite(const Site &s) {
	weights[s.pos][s.value] += s.weight;

	if (s.value != solution[s.pos] && weights[s.pos][s.value] > weights[s.pos][solution[s.pos]])
		solution[s.pos] = s.value;
	
	siteCoverages[s.pos]++;
}

// Assembly:
movl 0x10(%rsi), %ecx
movq 0x8(%rsi), %rax
movq 0x20(%rdi), %rdx
leaq (%rax,%rax,2), %r8
movslq (%rsi), %r9
movq (%rdx,%r8,8), %r8
addl %ecx, (%r8,%r9,4)
movl (%rsi), %ecx
movq (%rdi), %rdx
movslq (%rdx,%rax,4), %rsi
cmpl %esi, %ecx
je 0x77cb
movslq %ecx, %r9
movl (%r8,%r9,4), %r9d
cmpl (%r8,%rsi,4), %r9d
jle 0x77cb
movl %ecx, (%rdx,%rax,4)
movq 0x38(%rdi), %rcx
incq (%rcx,%rax,8)
retq
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::Haplotype::removeSite(SAHap::Site const&)
void Haplotype::removeSite(const Site &s) {
	weights[s.pos][s.value] -= s.weight;

	if (solution[s.pos] == s.value)
		findSolution(s.pos);

	siteCoverages[s.pos]--;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x10(%rsi), %eax
movq 0x8(%rsi), %rsi
movq 0x20(%rdi), %rcx
leaq (%rsi,%rsi,2), %rdx
movslq (%r14), %rdi
movq (%rcx,%rdx,8), %rcx
subl %eax, (%rcx,%rdi,4)
movq (%rbx), %rax
movl (%rax,%rsi,4), %eax
cmpl (%r14), %eax
jne 0x780e
movq %rbx, %rdi
callq 0x781e
movq 0x8(%r14), %rsi
movq 0x38(%rbx), %rax
decq (%rax,%rsi,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/Haplotype.cpp
// Function: SAHap::operator<<(std::ostream&, SAHap::Haplotype&)
ostream & operator << (ostream& stream, Haplotype& ch) {
	stream << "ch[";
	stream << "m=" << ch.length << ", ";
	stream << "n=" << ch.reads.size() << ", ";
	stream << "mec=" << ch.mec() << "] ";
	for (dnapos_t i = 0; i < ch.size(); ++i) {
		stream << ch.solution[i];
	}
	return stream;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x3f6f(%rip), %rsi      # 0xb857
movl $0x3, %edx
callq 0x22b0
leaq 0x3f62(%rip), %rsi      # 0xb85b
movl $0x2, %edx
movq %rbx, %rdi
callq 0x22b0
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x2190
leaq 0x3d03(%rip), %r15      # 0xb61c
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x22b0
leaq 0x3f2e(%rip), %rsi      # 0xb85e
movl $0x2, %edx
movq %rbx, %rdi
callq 0x22b0
movq 0x88(%r14), %rsi
movq %rbx, %rdi
callq 0x2190
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x22b0
leaq 0x3efe(%rip), %rsi      # 0xb861
movl $0x4, %edx
movq %rbx, %rdi
callq 0x22b0
movsd 0x50(%r14), %xmm0
movq %rbx, %rdi
callq 0x23d0
leaq 0x3ee1(%rip), %rsi      # 0xb866
movl $0x2, %edx
movq %rax, %rdi
callq 0x22b0
cmpq $0x0, 0x18(%r14)
je 0x79b4
xorl %r15d, %r15d
movq (%r14), %rax
movl (%rax,%r15,4), %esi
movq %rbx, %rdi
callq 0x2430
incq %r15
cmpq 0x18(%r14), %r15
jb 0x799c
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/InputReader.cpp
// Function: SAHap::WIFInputReader::getPloidy(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
dnacnt_t WIFInputReader::getPloidy(string line) {
	int result = 0;
	istringstream iss(line);
	string buf;
	while (getline(iss, buf, ':')) {
		istringstream siss(buf);
		char a;
		siss >> a;
		if (a == '#') break;

		int throwaway;

		istringstream onesite(buf);
		onesite >> throwaway;

		onesite.ignore(256, ' ');
		onesite.ignore(256, ' ');

		int weight, value;
		onesite >> value >> weight;
		result = max(result,value);

	}
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4b8, %rsp            # imm = 0x4B8
movq %rdi, %rsi
leaq 0x38(%rsp), %rdi
movl $0x8, %edx
callq 0x2400
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorl %r15d, %r15d
leaq 0x10(%rsp), %r12
leaq 0x338(%rsp), %r13
movq 0x7694(%rip), %r14      # 0xffc0
leaq 0x1b8(%rsp), %rbx
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
movl $0x3a, %edx
callq 0x2480
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x8a20
movq %r13, %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x2400
movq %r13, %rdi
leaq 0xb(%rsp), %rsi
callq 0x22f0
movb 0xb(%rsp), %bpl
cmpb $0x23, %bpl
je 0x89fe
movq %rbx, %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x2400
movq %rbx, %rdi
leaq 0x34(%rsp), %rsi
callq 0x2150
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdi
movl $0x20, %edx
callq 0x2170
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdi
movl $0x20, %edx
callq 0x2170
movq %rbx, %rdi
leaq 0xc(%rsp), %rsi
callq 0x2150
movq %rax, %rdi
leaq 0x30(%rsp), %rsi
callq 0x2150
movl 0xc(%rsp), %eax
cmpl %eax, %r15d
cmovlel %eax, %r15d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2340
leaq 0x230(%rsp), %rdi
callq 0x20b0
movq %r13, %rdi
movq %r14, %rsi
callq 0x2340
leaq 0x3b0(%rsp), %rdi
callq 0x20b0
cmpb $0x23, %bpl
jne 0x8934
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x8a3c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2290
movl %r15d, %ebx
movq 0x757a(%rip), %rsi      # 0xffc0
leaq 0x38(%rsp), %rdi
callq 0x2340
leaq 0xb0(%rsp), %rdi
callq 0x20b0
movq %rbx, %rax
addq $0x4b8, %rsp            # imm = 0x4B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8a76
jmp 0x8a82
movq %rax, %rbx
jmp 0x8aa6
jmp 0x8a7d
movq %rax, %rbx
jmp 0x8ac7
movq %rax, %rbx
movq 0x7534(%rip), %rsi      # 0xffc0
leaq 0x1b8(%rsp), %rdi
callq 0x2340
leaq 0x230(%rsp), %rdi
callq 0x20b0
movq 0x7513(%rip), %rsi      # 0xffc0
leaq 0x338(%rsp), %rdi
callq 0x2340
leaq 0x3b0(%rsp), %rdi
callq 0x20b0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x8ae3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2290
movq 0x74d6(%rip), %rsi      # 0xffc0
leaq 0x38(%rsp), %rdi
callq 0x2340
leaq 0xb0(%rsp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2450
nop
// File: /workspace/github_c_makefile_star2_O3/waynebhayes[P]SAHap/src/InputReader.cpp
// Function: SAHap::WIFInputReader::parseSNP(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Site WIFInputReader::parseSNP(string snp) {
	istringstream iss(snp);
	Site s;
	iss >> s.pos;

	iss.ignore(256, ' ');
	iss.ignore(256, ' ');

	int weight, value;
	iss >> value >> weight;

	if (s.weight <= 0 || s.weight > 100) {
	// 	s.weight = (double)weight/100;
	// } else 
		throw "Invalid weight value";
	}
	//s.weight = 1; // HACK
	s.value = value;
	// if (value == 0) {
	// 	s.value = Allele::REF;
	// } else if (value == 1) {
	// 	s.value = Allele::ALT;
	// } else {
	// 	cout << value << endl;
	// 	throw "Invalid allele value";
	// }
	return s;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x2400
movl $0xffffffff, (%rbx)     # imm = 0xFFFFFFFF
movl $0x1, 0x10(%rbx)
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x2130
leaq 0x8(%rsp), %rdi
movl $0x100, %esi            # imm = 0x100
movl $0x20, %edx
callq 0x2170
leaq 0x8(%rsp), %rdi
movl $0x100, %esi            # imm = 0x100
movl $0x20, %edx
callq 0x2170
leaq 0x8(%rsp), %rdi
movq %rsp, %rsi
callq 0x2150
leaq 0x4(%rsp), %rsi
movq %rax, %rdi
callq 0x2150
movl 0x10(%rbx), %eax
addl $-0x65, %eax
cmpl $-0x65, %eax
jbe 0x91e0
movl (%rsp), %eax
movl %eax, (%rbx)
movq 0x6e05(%rip), %rsi      # 0xffc0
leaq 0x8(%rsp), %rdi
callq 0x2340
leaq 0x80(%rsp), %rdi
callq 0x20b0
movq %rbx, %rax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r14
retq
movl $0x8, %edi
callq 0x2100
leaq 0x26dc(%rip), %rcx      # 0xb8cd
movq %rcx, (%rax)
movq 0x6db5(%rip), %rsi      # 0xffb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x2420
jmp 0x9207
movq %rax, %rbx
movq 0x6daf(%rip), %rsi      # 0xffc0
leaq 0x8(%rsp), %rdi
callq 0x2340
leaq 0x80(%rsp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2450