LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/fasta_stats.cc
// Function: print_size(int const*, int, int, int)
static void print_size(const int lengths[], int i, int one_less = 0, int right_justify = 0) {
	int x = lengths[i] - (one_less ? 1 : 0);
	if ((i % 3) == 2) {	// 250... line
		if (x >= 1000000) {
			printf("%3.1f mb", (double)x / 1000000);
		} else if (x >= 10000) {
			printf("%3d kb", x / 1000);
		} else if (x >= 1000) {
			printf("%3.1f kb", (double)x / 1000);
		} else if (right_justify) {
			printf("   %3d", x);
		} else {
			printf("%3d   ", x);
		}
	} else {
		if (x >= 1000000) {
			printf("%3d mb", x / 1000000);
		} else if (x >= 1000) {
			printf("%3d kb", x / 1000);
		} else if (right_justify) {
			printf("   %3d", x);
		} else {
			printf("%3d   ", x);
		}
	}
}

// Assembly:
movslq %esi, %rax
movl (%rdi,%rax,4), %esi
cmpl $0x1, %edx
adcl $-0x1, %esi
imulq $0x55555556, %rax, %rdx # imm = 0x55555556
movq %rdx, %rdi
shrq $0x3f, %rdi
shrq $0x20, %rdx
addl %edi, %edx
leal (%rdx,%rdx,2), %edx
subl %edx, %eax
cmpl $0x2, %eax
jne 0x39f5
cmpl $0xf4240, %esi          # imm = 0xF4240
jl 0x3a13
cvtsi2sd %esi, %xmm0
divsd 0x2631(%rip), %xmm0     # 0x6018
leaq 0x2920(%rip), %rdi      # 0x630e
movb $0x1, %al
jmp 0x2050
cmpl $0xf4240, %esi          # imm = 0xF4240
jl 0x3a38
movl %esi, %eax
imulq $0x431bde83, %rax, %rsi # imm = 0x431BDE83
shrq $0x32, %rsi
leaq 0x2924(%rip), %rdi      # 0x6335
jmp 0x3a54
cmpl $0x2710, %esi           # imm = 0x2710
jge 0x3a40
cmpl $0x3e8, %esi            # imm = 0x3E8
jl 0x3a5b
cvtsi2sd %esi, %xmm0
divsd 0x25e1(%rip), %xmm0     # 0x6010
leaq 0x28e8(%rip), %rdi      # 0x631e
jmp 0x39ee
cmpl $0x3e8, %esi            # imm = 0x3E8
jl 0x3a5b
movl %esi, %eax
imulq $0x10624dd3, %rax, %rsi # imm = 0x10624DD3
shrq $0x26, %rsi
leaq 0x28c3(%rip), %rdi      # 0x6317
xorl %eax, %eax
jmp 0x2050
testl %ecx, %ecx
je 0x3a68
leaq 0x28c1(%rip), %rdi      # 0x6327
jmp 0x3a54
leaq 0x28bf(%rip), %rdi      # 0x632e
jmp 0x3a54
nop
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/fasta_stats.cc
// Function: Scaffold::empty()
bool empty(void) {
		if (contigs.back().empty() && contigs.size() > 1) {
			contigs.pop_back();
			gaps.pop_back();
		}
		if (contigs.size() == 1 && contigs.back().total_size == 0) {
			total_size = 0;
			return 1;
		}
		return 0;
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %rax
movq 0x10(%rax), %rcx
cmpq 0x18(%rax), %rcx
jne 0x3b16
addq $0x10, %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq 0x30(%rbx), %rax
cmpq $0x2, %rax
jb 0x3b16
movq 0x28(%rbx), %r14
decq %rax
movq %rax, 0x30(%rbx)
movq %r14, %rdi
callq 0x2330
movq %r14, %rdi
callq 0x2220
movq 0x40(%rbx), %r14
decq 0x48(%rbx)
movq %r14, %rdi
callq 0x2330
movq %r14, %rdi
callq 0x2220
cmpq $0x1, 0x30(%rbx)
jne 0x3b28
movq 0x28(%rbx), %rax
cmpq $0x0, 0x10(%rax)
je 0x3b32
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq $0x0, (%rbx)
movb $0x1, %al
jmp 0x3b2a
nop
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/fasta_stats.cc
// Function: Scaffold::calc_contig_sizes()
void calc_contig_sizes(void) {
		gap_size = total_size;
		std::list<Contig>::const_iterator __b = contigs.begin();
		std::list<Contig>::const_iterator __end_b = contigs.end();
		for (; __b != __end_b; ++__b) {
			contig_size += __b->size();
			gap_size -= __b->total_size;
		}
		std::list<long>::const_iterator __c = gaps.begin();
		std::list<long>::const_iterator __end_c = gaps.end();
		for (; __c != __end_c; ++__c) {
			captured_gap_size += *__c;
		}
	}

// Assembly:
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq %rax, 0x10(%rdi)
leaq 0x20(%rdi), %rax
cmpq %rax, %rcx
je 0x3b7b
movq 0x8(%rdi), %rdx
movq 0x10(%rdi), %rsi
movq 0x10(%rcx), %r8
subq %r8, %rsi
subq 0x18(%rcx), %r8
movq (%rcx), %r9
addq %r8, %rdx
movq %r9, %rcx
cmpq %rax, %r9
jne 0x3b5a
movq %rdx, 0x8(%rdi)
movq %rsi, 0x10(%rdi)
leaq 0x38(%rdi), %rax
movq 0x38(%rdi), %rcx
cmpq %rax, %rcx
je 0x3b9c
movq 0x18(%rdi), %rdx
addq 0x10(%rcx), %rdx
movq %rdx, 0x18(%rdi)
movq (%rcx), %rcx
cmpq %rax, %rcx
jne 0x3b8c
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/itoa.cc
// Function: itoa[abi:cxx11](unsigned long, bool)
std::string itoa(unsigned long x, bool negative) {
	int length = negative ? 2 : 1;
	if (x > 9) {
		length += (int)floor(log10(x));
	}
	std::string value;
	value.resize(length);
	std::string::reverse_iterator a = value.rbegin();
	std::string::reverse_iterator end = value.rend();
	if (negative) {
		value[0] = '-';
		--end;
	}
	for (; a != end; ++a, x /= 10) {
		*a = '0' + (x % 10);
	}
	return value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
leal 0x1(%r15), %ebp
cmpq $0xa, %rsi
jb 0x4570
movq %r14, %xmm1
punpckldq 0x2104(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x210c(%rip), %xmm1     # 0x6660
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
callq 0x2140
callq 0x2350
cvttsd2si %xmm0, %eax
addl %eax, %ebp
leaq 0x10(%rbx), %r12
movq %r12, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movslq %ebp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x20d0
movq (%rbx), %rcx
movq 0x8(%rbx), %rsi
addq %rcx, %rsi
testb %r15b, %r15b
je 0x45a5
movb $0x2d, (%rcx)
incq %rcx
cmpq %rcx, %rsi
je 0x45da
movabsq $-0x3333333333333333, %rdi # imm = 0xCCCCCCCCCCCCCCCD
movq %r14, %rax
mulq %rdi
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
subl %eax, %r14d
orb $0x30, %r14b
movb %r14b, -0x1(%rsi)
decq %rsi
movq %rdx, %r14
cmpq %rcx, %rsi
jne 0x45b4
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x45f6
callq 0x2220
movq %r14, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/open_compressed.cc
// Function: get_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void get_suffix(const std::string &filename, std::string &suffix) {
	const char *suffix_list[3] = { ".gz", ".bz2", ".Z" };
	const size_t suffix_size[3] = { 3, 4, 2 };
	suffix.clear();
	for (int i = 0; i != 3; ++i) {
		const size_t &j = suffix_size[i];
		if (filename.size() > j && filename.compare(filename.size() - j, j, suffix_list[i]) == 0) {
			suffix = suffix_list[i];
			break;
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq $0x0, 0x8(%rsi)
movq (%rsi), %rax
movb $0x0, (%rax)
xorl %r12d, %r12d
leaq 0x2277(%rip), %r13      # 0x68a0
leaq 0x4760(%rip), %rbp      # 0x8d90
movq 0x8(%r14), %rsi
movq (%r12,%r13), %rdx
subq %rdx, %rsi
jbe 0x4650
movq (%r12,%rbp), %r15
movq %r14, %rdi
movq %r15, %rcx
callq 0x2290
testl %eax, %eax
je 0x4669
addq $0x8, %r12
cmpq $0x18, %r12
jne 0x4630
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %r14
movq %r15, %rdi
callq 0x2130
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %r15, %rcx
movq %rax, %r8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/open_compressed.cc
// Function: pfgets(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
ssize_t pfgets(const int fd, std::string &line) {
	if (fd < 0 || local.open_max <= fd) {
		fprintf(stderr, "Error: pfgets: fd out of range: %d\n", fd);
		return -1;
	}
	if (local.buffers[fd].empty()) {
		fprintf(stderr, "Error: pfgets: buffer unallocated\n");
		return -1;
	}
	line.clear();
	char * const buf = local.buffers[fd].array();
	ssize_t &i = local.buffer_start[fd];
	ssize_t &j = local.buffer_length[fd];
	for (;;) {
		char * const end_of_line = strchr(buf + i, '\n');
		if (end_of_line != NULL) {
			*end_of_line = '\0';
			line += buf + i;
			i = end_of_line - buf + 1;
			return (ssize_t)line.size();
		}
		line += buf + i;
		i = 0;
		j = read(fd, buf, BUFSIZE);
		if (j <= 0) {
			if (j == -1) {
				fprintf(stderr, "Error: read(%d): %s\n", fd, strerror(errno));
			}
			buf[j = 0] = '\0';
			/* only return -1 if we don't return anything else */
			return line.empty() ? -1 : (ssize_t)line.size();
		}
		buf[j] = '\0';
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, (%rsp)
movl %edi, %edx
testl %edi, %edi
js 0x4d35
movl %edx, %ebx
cmpq %rbx, 0x4636(%rip)      # 0x9250
jle 0x4d35
movq 0x4631(%rip), %rax      # 0x9258
movq (%rax,%rbx,8), %rax
cmpq $0x0, 0x8(%rax)
je 0x4d4f
movl %edx, 0xc(%rsp)
movq (%rsp), %rax
movq $0x0, 0x8(%rax)
movq (%rax), %rax
movb $0x0, (%rax)
movq 0x4605(%rip), %rax      # 0x9258
movq (%rax,%rbx,8), %rax
movq 0x10(%rax), %r15
movq 0x45fe(%rip), %r14      # 0x9260
movq 0x45ff(%rip), %rax      # 0x9268
movq %rax, 0x10(%rsp)
movq (%r14,%rbx,8), %rbp
addq %r15, %rbp
movq %rbp, %rdi
movl $0xa, %esi
callq 0x2100
testq %rax, %rax
je 0x4cb3
movq %rax, %r13
movb $0x0, (%rax)
movq (%r14,%rbx,8), %rsi
addq %r15, %rsi
movq (%rsp), %r12
movq %r12, %rdi
callq 0x23a0
subq %r15, %r13
incq %r13
movq %r13, (%r14,%rbx,8)
movq 0x8(%r12), %r12
xorl %eax, %eax
jmp 0x4d22
movq (%rsp), %rdi
movq %rbp, %rsi
callq 0x23a0
movq $0x0, (%r14,%rbx,8)
movl $0x8000, %edx           # imm = 0x8000
movl 0xc(%rsp), %ebp
movl %ebp, %edi
movq %r15, %rsi
callq 0x22d0
movq 0x10(%rsp), %rcx
movq %rax, (%rcx,%rbx,8)
testq %rax, %rax
jle 0x4cf1
movb $0x0, (%r15,%rax)
movb $0x1, %al
jmp 0x4d22
cmpq $-0x1, %rax
je 0x4d2c
movq 0x10(%rsp), %rax
movq $0x0, (%rax,%rbx,8)
movb $0x0, (%r15)
movq (%rsp), %rax
movq 0x8(%rax), %rcx
xorl %eax, %eax
cmpq $0x1, %rcx
movl $0x0, %r12d
sbbq %r12, %r12
orq %rcx, %r12
testb %al, %al
jne 0x4c6e
jmp 0x4d5b
movl %ebp, %edi
callq 0x25d7
jmp 0x4cf7
movq 0x4294(%rip), %rax      # 0x8fd0
movq (%rax), %rdi
leaq 0x19dd(%rip), %rsi      # 0x6723
xorl %eax, %eax
callq 0x22c0
jmp 0x4d54
callq 0x2610
movq $-0x1, %r12
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/open_compressed.cc
// Function: pfread(int, void*, unsigned long)
ssize_t pfread(const int fd, void *ptr, const size_t size) {
	if (fd < 0 || local.open_max <= fd) {
		fprintf(stderr, "Error: pfgets: fd out of range: %d\n", fd);
		return -1;
	}
	if (local.buffers[fd].empty()) {
		fprintf(stderr, "Error: pfgets: buffer unallocated\n");
		return -1;
	}
	char *s = (char *)ptr;
	size_t k = size;
	char * const buf = local.buffers[fd].array();
	ssize_t &i = local.buffer_start[fd];
	ssize_t &j = local.buffer_length[fd];
	for (;;) {
		if ((size_t)(j - i) >= k) {
			memcpy(s, buf + i, k);
			i += k;
			return size;
		}
		const size_t n = j - i;
		memcpy(s, buf + i, n);
		s += n;
		k -= n;
		i = 0;
		j = read(fd, buf, BUFSIZE);
		if (j <= 0) {
			if (j == -1) {
				fprintf(stderr, "Error: read(%d): %s\n", fd, strerror(errno));
			}
			buf[j = 0] = '\0';
			/* only return -1 if we don't return anything else */
			return k == size ? -1 : (ssize_t)(size - k);
		}
		buf[j] = '\0';
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, 0x18(%rsp)
movl %edi, %ebx
testl %edi, %edi
js 0x4ebc
movl %ebx, %r12d
cmpq %r12, 0x44bc(%rip)      # 0x9250
jle 0x4ebc
movq 0x44b7(%rip), %rax      # 0x9258
movq (%rax,%r12,8), %rax
cmpq $0x0, 0x8(%rax)
je 0x4ed8
movq %rsi, %rcx
movq 0x10(%rax), %r14
movq 0x44a2(%rip), %rax      # 0x9260
movq 0x44a3(%rip), %r8       # 0x9268
movq 0x18(%rsp), %rdx
movq %rdx, %rbp
movl %ebx, 0xc(%rsp)
movq %rax, 0x20(%rsp)
movq %r8, 0x30(%rsp)
movq (%r8,%r12,8), %r13
movq (%rax,%r12,8), %rsi
subq %rsi, %r13
addq %r14, %rsi
subq %r13, %rbp
movq %rax, %r15
jbe 0x4ea1
movq %rcx, 0x28(%rsp)
movq %rcx, %rdi
movq %r13, %rdx
callq 0x21e0
movq $0x0, (%r15,%r12,8)
movl $0x8000, %edx           # imm = 0x8000
movl %ebx, %edi
movq %r14, %rsi
callq 0x22d0
movq 0x30(%rsp), %r8
movq %rax, %rbx
movq %rax, (%r8,%r12,8)
testq %rax, %rax
jle 0x4e3e
movb $0x0, (%r14,%rbx)
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
jmp 0x4e72
cmpq $-0x1, %rbx
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
je 0x4e87
movq $0x0, (%r8,%r12,8)
movb $0x0, (%r14)
movq 0x18(%rsp), %rdi
subq %rbp, %rdi
movq $-0x1, %rsi
cmoveq %rsi, %rdi
movq %rdi, 0x10(%rsp)
addq %r13, %rcx
movq %rbp, %rdx
testq %rbx, %rbx
movl 0xc(%rsp), %ebx
jg 0x4ddb
jmp 0x4ee6
movl 0xc(%rsp), %edi
callq 0x262c
movq 0x30(%rsp), %r8
movq 0x28(%rsp), %rcx
movq 0x20(%rsp), %rax
jmp 0x4e4e
movq %rcx, %rdi
movq %rdx, %rbx
callq 0x21e0
addq %rbx, (%r15,%r12,8)
movq 0x18(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x4ee6
movq 0x410d(%rip), %rax      # 0x8fd0
movq (%rax), %rdi
leaq 0x1856(%rip), %rsi      # 0x6723
movl %ebx, %edx
xorl %eax, %eax
callq 0x22c0
jmp 0x4edd
callq 0x2665
movq $-0x1, 0x10(%rsp)
movq 0x10(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/open_compressed.cc
// Function: pfread2(int, void*, unsigned long)
ssize_t pfread2(const int fd, void *ptr, const size_t size) {
	assert(-1 < fd && fd < local.open_max);
	char *buf = (char *)ptr;
	ssize_t i = size;
	while (i != 0) {
		const ssize_t j = read(fd, buf, i);
		if (j == -1) {
			fprintf(stderr, "Error: read (%d %p): %s\n", fd, ptr, strerror(errno));
			return -1;
		}
		i -= j;
		buf += j;
	}
	return size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %edi, %edi
js 0x4f71
movl %edi, %ebp
movslq %edi, %rax
cmpq %rax, 0x433b(%rip)      # 0x9250
jle 0x4f71
movq %rdx, %rbx
movq %rsi, %r14
movq %rsi, %r15
movq %rdx, %r12
testq %r12, %r12
je 0x4f5f
movl %ebp, %edi
movq %r15, %rsi
movq %r12, %rdx
callq 0x22d0
movq %rax, %r13
cmpq $-0x1, %rax
je 0x4f4c
subq %r13, %r12
addq %r13, %r15
cmpq $-0x1, %r13
jne 0x4f23
jmp 0x4f58
movl %ebp, %edi
movq %r14, %rsi
callq 0x2681
jmp 0x4f44
movq $-0x1, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1807(%rip), %rdi      # 0x677f
leaq 0x181f(%rip), %rsi      # 0x679e
leaq 0x182f(%rip), %rcx      # 0x67b5
movl $0x140, %edx            # imm = 0x140
callq 0x2190
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/open_compressed.cc
// Function: LocalData::LocalData()
LocalData(void) : open_max(sysconf(_SC_OPEN_MAX)) {
		assert(open_max != 0);
		buffers = new refcount_array<char>[open_max];
		assert(buffers != NULL);
		buffer_start = new ssize_t[open_max];
		assert(buffer_start != NULL);
		buffer_length = new ssize_t[open_max];
		assert(buffer_length != NULL);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movl $0x0, 0x8(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rcx, 0x28(%rdi)
leaq 0x30(%rdi), %r12
movq %r12, 0x38(%rdi)
movq %r12, 0x30(%rdi)
movq %rcx, 0x40(%rdi)
movl $0x4, %edi
callq 0x2180
movq %rax, 0x48(%rbx)
testq %rax, %rax
je 0x508b
movq %rax, %r15
movq %rax, %rbp
shrq $0x3d, %rbp
leaq (,%rax,8), %r13
movq %r13, %rax
addq $0x8, %rax
movq $-0x1, %rcx
cmovaeq %rax, %rcx
xorl %edi, %edi
movq %rbp, %rax
negq %rax
sbbq %rdi, %rdi
orq %rcx, %rdi
callq 0x2030
movq %rax, %r14
movq %r15, (%rax)
addq $0x8, %rax
movq %rax, (%rsp)
xorl %r15d, %r15d
movl $0x18, %edi
callq 0x2230
movq $0x1, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq %rax, 0x8(%r14,%r15)
addq $0x8, %r15
cmpq %r15, %r13
jne 0x502a
movq (%rsp), %rax
movq %rax, 0x50(%rbx)
xorl %r14d, %r14d
negq %rbp
sbbq %r14, %r14
orq %r13, %r14
movq %r14, %rdi
callq 0x2030
movq %rax, 0x58(%rbx)
movq %r14, %rdi
callq 0x2030
movq %rax, 0x60(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x176d(%rip), %rdi      # 0x67ff
leaq 0x1705(%rip), %rsi      # 0x679e
leaq 0x176d(%rip), %rcx      # 0x680d
movl $0x2e, %edx
callq 0x2190
movq %rax, %r13
jmp 0x50ce
movq %rax, %r13
testq %r15, %r15
je 0x50c6
leaq (%r14,%r15), %rdi
callq 0x52ca
addq $-0x8, %r15
jne 0x50b7
movq %r14, %rdi
callq 0x2280
movq (%r12), %rdi
cmpq %r12, %rdi
je 0x50e7
movq (%rdi), %r14
callq 0x2220
movq %r14, %rdi
cmpq %r12, %r14
jne 0x50d7
movq %rbx, %rdi
callq 0x52ec
movq %r13, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/open_compressed.cc
// Function: LocalData::~LocalData()
~LocalData(void) {
		delete[] buffers;
		delete[] buffer_start;
		delete[] buffer_length;
		std::map<int, pid_t>::const_iterator __a = open_processes.begin();
		const std::map<int, pid_t>::const_iterator __end_a = open_processes.end();
		for (; __a != __end_a; ++__a) {
			close(__a->first);
		}
		std::list<pid_t>::const_iterator __b = closed_processes.begin();
		const std::list<pid_t>::const_iterator __end_b = closed_processes.end();
		for (; __b != __end_b; ++__b) {
			waitpid(*__b, NULL, 0);
		}
		for (__a = open_processes.begin(); __a != __end_a; ++__a) {
			waitpid(__a->second, NULL, 0);
		}
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x50(%rdi), %r14
testq %r14, %r14
je 0x5134
movq -0x8(%r14), %r15
addq $-0x8, %r14
testq %r15, %r15
je 0x512c
shlq $0x3, %r15
leaq (%r14,%r15), %rdi
callq 0x52ca
addq $-0x8, %r15
jne 0x511d
movq %r14, %rdi
callq 0x2280
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x5142
callq 0x2280
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0x5150
callq 0x2280
movq 0x18(%rbx), %r14
leaq 0x8(%rbx), %r15
cmpq %r15, %r14
je 0x5176
movl 0x20(%r14), %edi
callq 0x23c0
movq %r14, %rdi
callq 0x2250
movq %rax, %r14
cmpq %r15, %rax
jne 0x515d
leaq 0x30(%rbx), %r12
movq %r12, %r14
movq (%r14), %r14
cmpq %r12, %r14
je 0x5194
movl 0x10(%r14), %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21d0
jmp 0x517d
movq 0x18(%rbx), %r14
cmpq %r15, %r14
je 0x51ba
movl 0x24(%r14), %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21d0
movq %r14, %rdi
callq 0x2250
movq %rax, %r14
cmpq %r15, %rax
jne 0x519d
movq (%r12), %rdi
cmpq %r12, %rdi
je 0x51d3
movq (%rdi), %r14
callq 0x2220
movq %r14, %rdi
cmpq %r12, %r14
jne 0x51c3
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x52ec
jmp 0x51ea
jmp 0x51ea
movq %rax, %rdi
callq 0x3e05
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/open_compressed.cc
// Function: LocalData::close_process(int)
void close_process(const int __i) {
		assert(-1 < __i && __i < open_max);
		close(__i);
		buffers[__i].resize(0);
		std::map<int, pid_t>::iterator __a = open_processes.find(__i);
		if (__a != open_processes.end()) {
			closed_processes.push_back(__a->second);
			open_processes.erase(__a);
		}
		finish_nohang();
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testl %esi, %esi
js 0x52ab
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %r14d
cmpq %r14, 0x48(%rdi)
jle 0x52ab
movl %ebp, %edi
callq 0x23c0
movq 0x50(%rbx), %rax
movq (%rax,%r14,8), %rdi
xorl %esi, %esi
callq 0x5626
movq 0x10(%rbx), %rdx
leaq 0x8(%rbx), %rax
movq %rax, %rcx
testq %rdx, %rdx
je 0x5253
movq %rax, %rcx
xorl %esi, %esi
cmpl %ebp, 0x20(%rdx)
setl %sil
cmovgeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x523c
movq %rax, %r14
cmpq %rax, %rcx
je 0x5265
cmpl %ebp, 0x20(%rcx)
cmovgq %rax, %rcx
movq %rcx, %r14
cmpq %rax, %r14
je 0x5299
leaq 0x30(%rbx), %r15
movl $0x18, %edi
callq 0x2230
movl 0x24(%r14), %ecx
movl %ecx, 0x10(%rax)
movq %rax, %rdi
movq %r15, %rsi
callq 0x2060
incq 0x40(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x55ee
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5596
leaq 0x1572(%rip), %rdi      # 0x6824
leaq 0x14e5(%rip), %rsi      # 0x679e
leaq 0x157f(%rip), %rcx      # 0x683f
movl $0x3a, %edx
callq 0x2190
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/open_compressed.cc
// Function: LocalData::finish_nohang()
void finish_nohang(void) {
		std::list<pid_t>::iterator __a = closed_processes.begin();
		const std::list<pid_t>::iterator __end_a = closed_processes.end();
		while (__a != __end_a) {
			if (waitpid(*__a, NULL, WNOHANG) > 0) {
				__a = closed_processes.erase(__a);
			} else {
				++__a;
			}
		}
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x30(%rdi), %r15
movq 0x30(%rdi), %r14
cmpq %r15, %r14
je 0x55e1
movq %rdi, %rbx
movl 0x10(%r14), %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x21d0
movq (%r14), %r12
testl %eax, %eax
jle 0x55d9
decq 0x40(%rbx)
movq %r14, %rdi
callq 0x2330
movq %r14, %rdi
callq 0x2220
movq %r12, %r14
cmpq %r15, %r12
jne 0x55ae
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/refcount_array.h
// Function: refcount_array<char>::resize(unsigned long)
void resize(size_type __n) {
		if (_M_size != __n) {
			_M_size = __n;
			if (_M_array != NULL) {
				delete[] _M_array;
			}
			if (_M_size == 0) {
				_M_array = NULL;
			} else {
				_M_array = new value_type[_M_size];
			}
		}
	}

// Assembly:
cmpq %rsi, 0x8(%rdi)
je 0x5659
pushq %rbx
movq %rdi, %rbx
movq %rsi, 0x8(%rdi)
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x5642
callq 0x2280
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x5652
callq 0x2030
jmp 0x5654
xorl %eax, %eax
movq %rax, 0x10(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/conchoecia[P]fasta_stats/src/pretty_print.cc
// Function: pretty_print[abi:cxx11](unsigned long, bool)
std::string pretty_print(unsigned long x, bool negative) {
	std::string s = itoa(x, negative);
	int commas = (s.length() - 1 - (negative ? 1 : 0)) / 3;
	size_t a = s.length() - 1;
	size_t b = a + commas;
	s.resize(b + 1);
	int i;
	for (i = 0; a < b; --a, --b, ++i) {
		s[b] = s[a];
		if (i == 2) {
			i = -1;
			s[--b] = ',';
		}
	}
	return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rdi, %rbx
callq 0x4524
movq 0x8(%rbx), %rsi
leaq -0x1(%rsi), %r14
movl %ebp, %ecx
movq %r14, %rax
subq %rcx, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
mulq %rcx
shrq %rdx
movslq %edx, %r15
addq %r15, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x20d0
addq %r14, %r15
cmpq %r15, %r14
jae 0x5765
xorl %eax, %eax
movq (%rbx), %rcx
movb (%rcx,%r14), %dl
movb %dl, (%rcx,%r15)
cmpl $0x2, %eax
jne 0x5758
movq (%rbx), %rax
movb $0x2c, -0x1(%rax,%r15)
decq %r15
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
decq %r14
decq %r15
incl %eax
cmpq %r15, %r14
jb 0x5737
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x5787
callq 0x2220
movq %r14, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O1/bsegovia[P]boodew/boodew.cpp
// Function: boodew::format[abi:cxx11](char const*, ...)
string format(const char *fmt, ...) {
  int size = 256;
  string str;
  va_list ap;
  for (;;) {
    str.resize(size);
    va_start(ap, fmt);
    const auto n = vsnprintf((char*)str.c_str(), size, fmt, ap);
    if (n < 0) throw boodew_exception("format string issue");
    va_end(ap);
    if (n < size) {
      str.resize(n);
      return str;
    }
    size = n+1;
  }
  return str;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x50(%rsp), %rsi
movq %rdx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0x465c
movaps %xmm0, 0x80(%rsp)
movaps %xmm1, 0x90(%rsp)
movaps %xmm2, 0xa0(%rsp)
movaps %xmm3, 0xb0(%rsp)
movaps %xmm4, 0xc0(%rsp)
movaps %xmm5, 0xd0(%rsp)
movaps %xmm6, 0xe0(%rsp)
movaps %xmm7, 0xf0(%rsp)
leaq 0x10(%rdi), %rax
movq %rax, 0x8(%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movl $0x100, %r13d           # imm = 0x100
xorl %ebp, %ebp
leaq 0x10(%rsp), %r15
movl %r13d, %r12d
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x3080
leaq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x140(%rsp), %rax
movq %rax, 0x18(%rsp)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, 0x10(%rsp)
movq (%rbx), %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x3348
testl %eax, %eax
js 0x472b
movl %eax, %r12d
cmpl %r13d, %eax
jge 0x46e9
movl %r12d, %esi
movb $0x1, %bpl
movq %rbx, %rdi
xorl %edx, %edx
callq 0x3080
movl %r13d, %eax
jmp 0x46ee
leal 0x1(%r12), %eax
cmpl %r13d, %r12d
movl %eax, %r13d
jge 0x4681
testb $0x1, %bpl
jne 0x4716
movq (%rbx), %rdi
cmpq 0x8(%rsp), %rdi
je 0x4716
movq 0x8(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x28, %edi
callq 0x30f0
movq %rax, %r14
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x58d7(%rip), %rsi      # 0xa020
leaq 0x58e3(%rip), %rdx      # 0xa033
leaq 0x30(%rsp), %rdi
callq 0x8146
movb $0x1, %bpl
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0x6f8c
xorl %ebp, %ebp
leaq 0xa445(%rip), %rsi      # 0xebb8
leaq 0x285c(%rip), %rdx      # 0x6fd6
movq %r14, %rdi
callq 0x32f0
movq %rax, %r15
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x47a4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x47a4
movq %rax, %r15
movb $0x1, %bpl
testb %bpl, %bpl
je 0x47b8
movq %r14, %rdi
callq 0x3180
jmp 0x47b8
jmp 0x47b5
movq %rax, %r15
movq (%rbx), %rdi
cmpq 0x8(%rsp), %rdi
je 0x47d2
movq 0x8(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x3200
movq %r15, %rdi
callq 0x3300
// File: /workspace/github_cpp_makefile_star2_O1/bsegovia[P]boodew/boodew.cpp
// Function: boodew::while_builtin(std::vector<boodew::value, std::allocator<boodew::value>> const&)
static value while_builtin(args arg) {
  value last;
  while (vtob(ex(vtos(get(arg,1))))) try {return last=ex(vtos(get(arg,2))); }
    catch (bool b) { if (b) break; else continue; }
  return last;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x10(%rdi), %rax
movq %rax, 0x30(%rsp)
leaq 0x10(%rsp), %r14
leaq 0x68(%rsp), %r12
leaq 0x38(%rsp), %r13
movl $0x1, %esi
movq %r15, %rdi
callq 0x492e
movq %r14, %rdi
movq %rax, %rsi
callq 0x47da
movq %r12, %rdi
movq %r14, %rsi
callq 0x54e9
movq %r12, %rdi
callq 0x48f4
movl %eax, %ebp
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x4bc2
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4bde
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3200
testb %bpl, %bpl
je 0x4cc6
movq %r13, %rbp
movl $0x2, %esi
movq %r15, %rdi
callq 0x492e
movq %r14, %rdi
movq %rax, %rsi
callq 0x47da
movq %r12, %rdi
movq %r14, %rsi
callq 0x54e9
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3260
leaq 0x78(%rsp), %rbp
movups 0x10(%rbp), %xmm0
leaq 0x48(%rsp), %r14
movups %xmm0, 0x10(%r14)
movq 0x30(%rsp), %rax
movq %rax, (%rbx)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x71b2
jmp 0x4ceb
movq %rdx, 0x8(%rsp)
movq %rax, %r14
jmp 0x4c80
movq %rdx, 0x8(%rsp)
movq %rax, %r14
jmp 0x4c9c
movq %rdx, 0x8(%rsp)
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4c80
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4c9c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3200
cmpl $0x1, 0x8(%rsp)
jne 0x4da5
movq %r14, %rdi
callq 0x30d0
movb (%rax), %bpl
callq 0x32e0
cmpb $0x1, %bpl
leaq 0x10(%rsp), %r14
jne 0x4b79
movq 0x30(%rsp), %rcx
movq %rcx, (%rbx)
movq 0x38(%rsp), %rax
leaq 0x48(%rsp), %r14
cmpq %r14, %rax
je 0x4d53
movq %rax, (%rbx)
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rbx)
jmp 0x4d5a
movups 0x10(%r14), %xmm0
movups %xmm0, 0x20(%rbx)
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4d0b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4d27
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x4d3e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movups (%r14), %xmm0
movups %xmm0, (%rcx)
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %r14, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
movb $0x0, 0x48(%rsp)
movups 0x58(%rsp), %xmm0
movups %xmm0, 0x20(%rbx)
jmp 0x4d27
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4da5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x4da5
movq %rax, %r14
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x4dc1
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3200
movq %r14, %rdi
callq 0x3300
// File: /workspace/github_cpp_makefile_star2_O1/bsegovia[P]boodew/boodew.cpp
// Function: boodew::getvar(std::vector<boodew::value, std::allocator<boodew::value>> const&)
static value getvar(args arg) {
  const auto key = vtos(get(arg,1));
  for (auto it = unique<stack>()->rbegin(); it != unique<stack>()->rend(); ++it) {
    auto local = it->find(key);
    if (local != it->end()) return local->second;
  }
  const auto it = unique<cvar_map>()->find(key);
  if (it != unique<cvar_map>()->end()) return it->second();
  throw boodew_exception(format("unknown identifier %s", key.c_str()));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %rax
movq %rdi, %rbx
movl $0x1, %esi
movq %rax, %rdi
callq 0x492e
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x47da
callq 0x73e7
movq 0x8(%rax), %r15
callq 0x73e7
cmpq (%rax), %r15
je 0x52ee
addq $-0x38, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x7c2a
movq %rax, %r12
testq %rax, %rax
je 0x52a5
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x28(%r12), %rsi
movq 0x30(%r12), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x71b2
movups 0x48(%r12), %xmm0
movups %xmm0, 0x20(%rbx)
jmp 0x5324
callq 0x7061
movq %rsp, %rsi
movq %rax, %rdi
callq 0x7c64
movq %rax, %r14
callq 0x7061
testq %r14, %r14
je 0x534f
cmpq $0x0, 0x38(%r14)
je 0x539b
movq %r14, %rsi
addq $0x28, %rsi
movq %rbx, %rdi
callq *0x40(%r14)
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x533f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x28, %edi
callq 0x30f0
movq %rax, %rbx
movq (%rsp), %rdx
leaq 0x4d53(%rip), %rsi      # 0xa0ba
leaq 0x20(%rsp), %rdi
xorl %eax, %eax
callq 0x45ec
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x6f8c
xorl %ebp, %ebp
leaq 0x982c(%rip), %rsi      # 0xebb8
leaq 0x1c43(%rip), %rdx      # 0x6fd6
movq %rbx, %rdi
callq 0x32f0
callq 0x30c0
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x53c6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x53c6
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x53dc
movq %rbx, %rdi
callq 0x3180
jmp 0x53dc
jmp 0x53d9
jmp 0x53d9
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x53f7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3200
movq %r14, %rdi
callq 0x3300
// File: /workspace/github_cpp_makefile_star2_O1/bsegovia[P]boodew/tests.cpp
// Function: run(char const*, bool)
static void run(const char *str, bool fails=false) {
  const auto r = boodew::exec(str);
  if (!r.second != fails)
    cout << "FAILED with " << r.first;
  if (!fails)
    cout << endl;
  else
    cout << r.first << endl;
}

// Assembly:
pushq %rbx
subq $0x50, %rsp
movl %esi, %ebx
movq %rdi, %rsi
leaq 0x30(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x6f4e
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x53ff
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8fbb
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3200
cmpb %bl, 0x28(%rsp)
jne 0x8fef
movq 0x6008(%rip), %rdi      # 0xefd0
leaq 0x1944(%rip), %rsi      # 0xa913
movl $0xc, %edx
callq 0x3240
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x5fe6(%rip), %rdi      # 0xefd0
callq 0x3240
testb %bl, %bl
je 0x9022
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x5fcc(%rip), %rdi      # 0xefd0
callq 0x3240
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31e0
jmp 0x903d
movq 0x5fa7(%rip), %rbx      # 0xefd0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3150
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x906b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
addq $0x50, %rsp
popq %rbx
retq
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x90ac
movq 0x40(%rsp), %rsi
jmp 0x90a4
movq %rax, %rbx
jmp 0x90ac
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x90ac
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rdi
callq 0x3300
// File: /workspace/github_cpp_makefile_star2_O1/zengfenfei[P]codility/src/OddOccurrencesInArray.cpp
// Function: solution(std::vector<int, std::allocator<int>>&)
int solution(vector<int> &A) {
	// write your code in C++11 (g++ 4.8.2)
	int odd = A[0];
	for (int i = 1; i < A.size(); i++) {
		odd ^= A[i];
	}
	return odd;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
movl (%rcx), %eax
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq $0x2, %rdx
jb 0x1256
movl $0x1, %esi
xorl (%rcx,%rsi,4), %eax
incq %rsi
cmpq %rsi, %rdx
jne 0x124b
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/zengfenfei[P]codility/src/OddOccurrencesInArray.cpp
// Function: main
int main() {
	int a[] = { 9, 3, 9, 3, 9, 7, 9 };
	vector<int> vec(a, a + sizeof(a) / sizeof(int));
	cout << solution(vec) << "\n";	//7
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x48, %rsp
movups 0xdb4(%rip), %xmm0      # 0x201c
leaq -0x34(%rbp), %rdx
movups %xmm0, -0x10(%rdx)
movaps 0xd99(%rip), %xmm0      # 0x2010
movaps %xmm0, -0x1c(%rdx)
leaq -0x28(%rbp), %rbx
leaq -0x50(%rbp), %rsi
leaq -0x9(%rbp), %rcx
movq %rbx, %rdi
callq 0x1314
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movl (%rax), %esi
subq %rax, %rcx
sarq $0x2, %rcx
cmpq $0x2, %rcx
jb 0x12b5
movl $0x1, %edx
xorl (%rax,%rdx,4), %esi
incq %rdx
cmpq %rdx, %rcx
jne 0x12aa
movq 0x2d1c(%rip), %rdi      # 0x3fd8
callq 0x10c0
leaq 0xd64(%rip), %rsi       # 0x202c
movl $0x1, %edx
movq %rax, %rdi
callq 0x1090
movq -0x28(%rbp), %rdi
testq %rdi, %rdi
je 0x12ea
movq -0x18(%rbp), %rsi
subq %rdi, %rsi
callq 0x1080
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %rbp
retq
movq %rax, %rbx
movq -0x28(%rbp), %rdi
testq %rdi, %rdi
je 0x130b
movq -0x18(%rbp), %rsi
subq %rdi, %rsi
callq 0x1080
movq %rbx, %rdi
callq 0x10d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/tismith[P]tmp-play/conditional.cpp
// Function: main
int main() {
    std::cout << "true = " << IF<true, A, B>::TEST::RESULT << std::endl;
    std::cout << "false = " << IF<false, A, B>::TEST::RESULT << std::endl;

    std::cout << "true = ";
    IF<true, A1, B1>::TEST::EXEC();
    std::cout << std::endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x2e00(%rip), %rbx      # 0x3fd8
leaq 0xe25(%rip), %r14       # 0x2004
movl $0x7, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1070
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1090
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %r15, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
leaq 0xddf(%rip), %rsi       # 0x200c
movl $0x8, %edx
movq %rbx, %rdi
callq 0x1070
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1090
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %r15, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
movl $0x7, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1070
leaq 0xd90(%rip), %rsi       # 0x2015
movl $0x5, %edx
movq %rbx, %rdi
callq 0x1070
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tplinderoth[P]introDist/Dxyz.cpp
// Function: main
int main (int argc, char** argv) {
	int rv = 0;

	std::ifstream poptable;
	/*
	 * The poptable is a 2-column text file
	 * column 1: sample name in VCF
	 * column 2: INT indicating population, 0 = source, 1 = sink, 2 = outgroup
	*/
	std::ifstream vcf; // input VCF file
	std::ofstream outf; // output file
	double minmaf = 0; // minimum minor allele frequency
	int winsize = 15; // Number of SNPs in a window
	int step = 5; // step size in terms of number of SNPs
	int infmt; // input vcf forma:, 0 = uncompressed, 1 = gzipped/bgzipped, 2 = stdin

	if (!(rv=parseArgs(argc, argv, poptable, vcf, outf, winsize, step, minmaf, infmt))) {
		rv = vcf2Dxyz(poptable, vcf, outf, winsize, step, minmaf, infmt);
	}

	if (poptable.is_open()) poptable.close();
	if (vcf.is_open()) vcf.close();
	if (outf.is_open()) outf.close();

	return rv;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x628, %rsp            # imm = 0x628
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x420(%rsp), %rdi
callq 0x6380
leaq 0x218(%rsp), %rdi
callq 0x6380
leaq 0x18(%rsp), %rdi
callq 0x6560
leaq 0x10(%rsp), %rax
movq $0x0, (%rax)
leaq 0xc(%rsp), %r9
movl $0xf, (%r9)
leaq 0x8(%rsp), %r10
movl $0x5, (%r10)
subq $0x8, %rsp
leaq 0xc(%rsp), %r11
leaq 0x428(%rsp), %rdx
leaq 0x220(%rsp), %rcx
leaq 0x20(%rsp), %r8
movl %ebp, %edi
movq %rbx, %rsi
pushq %r11
pushq %rax
pushq %r10
callq 0x6931
addq $0x20, %rsp
movl %eax, %ebx
testl %eax, %eax
jne 0x6849
movl 0xc(%rsp), %ecx
movl 0x8(%rsp), %r8d
movsd 0x10(%rsp), %xmm0
movl 0x4(%rsp), %r9d
leaq 0x420(%rsp), %rdi
leaq 0x218(%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq 0x6cfe
movl %eax, %ebx
leaq 0x498(%rsp), %rdi
callq 0x60c0
testb %al, %al
je 0x6867
leaq 0x420(%rsp), %rdi
callq 0x60a0
leaq 0x290(%rsp), %rdi
callq 0x60c0
testb %al, %al
je 0x6885
leaq 0x218(%rsp), %rdi
callq 0x60a0
leaq 0x88(%rsp), %rdi
callq 0x60c0
testb %al, %al
je 0x68a0
leaq 0x18(%rsp), %rdi
callq 0x6450
movq 0x106e1(%rip), %rax     # 0x16f88
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x20(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x18(%rsp,%rcx)
callq 0x62a0
leaq 0x110(%rsp), %rdi
callq 0x6100
leaq 0x218(%rsp), %rdi
callq 0x60d0
leaq 0x420(%rsp), %rdi
callq 0x60d0
movl %ebx, %eax
addq $0x628, %rsp            # imm = 0x628
popq %rbx
popq %rbp
retq
movq %rax, %rbx
jmp 0x690f
movq %rax, %rbx
jmp 0x691c
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x6490
leaq 0x218(%rsp), %rdi
callq 0x60d0
leaq 0x420(%rsp), %rdi
callq 0x60d0
movq %rbx, %rdi
callq 0x6590
// File: /workspace/github_cpp_makefile_star2_O1/tplinderoth[P]introDist/Dxyz.cpp
// Function: setPopTable(std::basic_ifstream<char, std::char_traits<char>>&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, int>>>&)
int setPopTable(std::ifstream &popfile, std::map<std::string, int> &popmap) {
	std::string sample;
	int pop;
	while (popfile >> sample) {
		popfile >> pop;
		switch (pop) {
			case 0:
				break;
			case 1:
				break;
			case 2:
				break;
			default:
				std::cerr << "Invalid population label " << pop << "\n";
				return -1;
		}
		popmap.insert(std::pair<std::string, int>(sample, pop));
	}
	if (popmap.size() == 0) {
		std::cerr << "Population map is empty\n";
	}
	return popmap.size();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x40(%rsp), %rbp
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
leaq 0x30(%rsp), %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x63f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7eef
movq %r14, %rdi
movq %r12, %rsi
callq 0x61c0
cmpl $0x3, 0xc(%rsp)
jae 0x7f13
movq %rbp, 0x30(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x8d64
movl 0xc(%rsp), %eax
movl %eax, 0x50(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe3b4
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7e7e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x6310
jmp 0x7e7e
cmpq $0x0, 0x28(%rbx)
jne 0x7f0e
movq 0xf0eb(%rip), %rdi      # 0x16fe8
leaq 0x75ae(%rip), %rsi      # 0xf4b2
movl $0x18, %edx
callq 0x6390
movl 0x28(%rbx), %ebx
jmp 0x7f54
movq 0xf0ce(%rip), %rdi      # 0x16fe8
leaq 0x7577(%rip), %rsi      # 0xf498
movl $0x19, %edx
callq 0x6390
movl 0xc(%rsp), %esi
movq 0xf0b2(%rip), %rdi      # 0x16fe8
callq 0x6580
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
leaq 0x7144(%rip), %rsi      # 0xf08b
movl $0x1, %edx
movq %rax, %rdi
callq 0x6390
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x7f70
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6310
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7fa1
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7fa4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x6310
jmp 0x7fa4
jmp 0x7fa1
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x7fc0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6310
movq %rbx, %rdi
callq 0x6590
// File: /workspace/github_cpp_makefile_star2_O1/tplinderoth[P]introDist/Dxyz.cpp
// Function: parseGenotype(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<int, std::allocator<int>>&)
std::vector<int>::iterator& parseGenotype (const std::string &gt, std::vector<int> &alleles) {
	// sets the alleles in the allele vector and advances the iterator to the last set position
	static std::vector<int>::iterator it = alleles.begin();

	if (gt[1] == '/' || gt[1] == '|') {
		for (unsigned int i=0; i<3; i+=2) {
			switch (gt[i]) {
				case '0':
					*it = 0;
					break;
				case '1':
					*it = 1;
					break;
				case '.':
					*it = -9;
					break;
				default:
					std::cerr << "Unrecognized allele " << gt[i] << "\n";
					it = alleles.end();
					return it;
			}
			++it;
		}
	} else {
		std::cerr << "Invalid genotype subfield format\n";
		it=alleles.end();
		return it;
	}

	if (it == alleles.end()) {
		it = alleles.begin();
	}

	return it;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movb 0xf35a(%rip), %al       # 0x17378
testb %al, %al
je 0x813a
movq (%r14), %rax
movzbl 0x1(%rax), %ecx
cmpl $0x7c, %ecx
je 0x8037
cmpl $0x2f, %ecx
jne 0x809e
movl $0x4, %ecx
movq 0xf32d(%rip), %rdx      # 0x17370
xorl %r13d, %r13d
xorl %r12d, %r12d
movzbl (%rax,%r13), %edi
cmpl $0x2e, %edi
je 0x8069
movl $0x0, %esi
cmpl $0x30, %edi
je 0x806e
cmpl $0x31, %edi
jne 0x80d9
movl $0x1, %esi
jmp 0x806e
movl $0xfffffff7, %esi       # imm = 0xFFFFFFF7
movl %esi, (%rdx,%r13,2)
leaq (%rdx,%rcx), %rsi
movq %rsi, 0xf2f3(%rip)      # 0x17370
addq $0x2, %r13
addq $0x4, %rcx
cmpq $0x2, %r13
setne %r12b
je 0x8049
movq 0xf2da(%rip), %rax      # 0x17370
cmpq 0x8(%rbx), %rax
jne 0x80c4
jmp 0x80ba
movq 0xef43(%rip), %rdi      # 0x16fe8
leaq 0x7434(%rip), %rsi      # 0xf4e0
movl $0x21, %edx
callq 0x6390
addq $0x8, %rbx
movq (%rbx), %rax
movq %rax, 0xf2ac(%rip)      # 0x17370
leaq 0xf2a5(%rip), %rax      # 0x17370
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0xef08(%rip), %r15      # 0x16fe8
leaq 0x73e4(%rip), %rsi      # 0xf4cb
movl $0x14, %edx
movq %r15, %rdi
callq 0x6390
movq (%r14), %rax
movb (%rax,%r13), %al
leaq 0xf(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %r15, %rdi
callq 0x6390
leaq 0x6f75(%rip), %rsi      # 0xf08b
movl $0x1, %edx
movq %rax, %rdi
callq 0x6390
movq 0x8(%rbx), %rax
movq %rax, 0xf242(%rip)      # 0x17370
testb $0x1, %r12b
jne 0x808f
jmp 0x80c4
movq %rbx, %rdi
callq 0x6626
jmp 0x8026
// File: /workspace/github_cpp_makefile_star2_O1/tplinderoth[P]introDist/Dxyz.cpp
// Function: calcDxyzWindow(Matrix<double> const&, unsigned int, double*, int*, double, double*)
double calcDxyzWindow(const Matrix<double> &dxy, unsigned int lastidx, double* nseqavg, int *nsites, const double minmaf, double* dxy_comp) {
	/*
	 * calculates Dxyz statistic as average_Dxy(source_pop,sink_pop)/average_Dxy(source_pop,outgroup_pop)
	 * average_Dxy = 1/N*[sum_i=1_to_i=N(Dxy)], N = number of sites
	 *
	 * Encode windows with no data or with no source-outgroup differences as -9
	 */

	dxy_comp[0] = 0; // Source-Sink average dxy
	dxy_comp[1] = 0; // Source-Outgroup average dxy
	*nseqavg = 0;
	*nsites = 0;

	unsigned int i;
	for (i=0; i<=lastidx; ++i) {
		if (dxy(i,0) != -9 && dxy(i,1) != -9 && dxy(i,4) >= minmaf) {
			dxy_comp[0] += dxy(i,0);
			dxy_comp[1] += dxy(i,1);
			*nseqavg += dxy(i,3);
			++*nsites;
		}
	}

	dxy_comp[0] /= *nsites;
	dxy_comp[1] /= *nsites;
	*nseqavg /= *nsites;

	if (*nsites < 1) return -9;

	return (dxy_comp[1] > 0 ? dxy_comp[0]/dxy_comp[1] : -9);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movsd %xmm0, 0x10(%rsp)
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r12
xorps %xmm0, %xmm0
movups %xmm0, (%r8)
movq $0x0, (%rdx)
movl $0x0, (%rcx)
xorl %r13d, %r13d
movsd 0x6ba3(%rip), %xmm0     # 0xf018
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
movl %r13d, %esi
xorl %edx, %edx
callq 0x8c1e
ucomisd 0x6b88(%rip), %xmm0     # 0xf018
jne 0x8498
jnp 0x8518
movq %r12, %rdi
movl %r13d, %esi
movl $0x1, %edx
callq 0x8c1e
ucomisd 0x6b68(%rip), %xmm0     # 0xf018
jne 0x84b4
jnp 0x8518
movq %r12, %rdi
movl %r13d, %esi
movl $0x4, %edx
callq 0x8c1e
ucomisd 0x10(%rsp), %xmm0
jb 0x8518
movq %r12, %rdi
movl %r13d, %esi
xorl %edx, %edx
callq 0x8c1e
addsd (%rbx), %xmm0
movsd %xmm0, (%rbx)
movq %r12, %rdi
movl %r13d, %esi
movl $0x1, %edx
callq 0x8c1e
addsd 0x8(%rbx), %xmm0
movsd %xmm0, 0x8(%rbx)
movq %r12, %rdi
movl %r13d, %esi
movl $0x3, %edx
callq 0x8c1e
addsd (%r14), %xmm0
movsd %xmm0, (%r14)
incl (%r15)
incl %r13d
cmpl %ebp, %r13d
jbe 0x847b
movl (%r15), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd (%rbx), %xmm1
movsd 0x8(%rbx), %xmm2
divsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
divsd %xmm0, %xmm2
movsd %xmm2, 0x8(%rbx)
movsd (%r14), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%r14)
testl %eax, %eax
jle 0x8577
movsd 0x8(%rbx), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x8577
movsd (%rbx), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq