LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: ripser<compressed_distance_matrix<(compressed_matrix_layout)0>>::get_edges()
std::vector<diameter_index_t> ripser<compressed_lower_distance_matrix>::get_edges() {
	std::vector<diameter_index_t> edges;
	std::vector<index_t> vertices(2);
	for (index_t index = binomial_coeff(n, 2); index-- > 0;) {
		get_simplex_vertices(index, 1, dist.size(), vertices.rbegin());
		value_t length = dist(vertices[0], vertices[1]);
		if (length <= threshold) edges.push_back({length, index});
	}
	return edges;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movl $0x10, %edi
callq 0x2220
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq 0x30(%r15), %rax
movq 0x50(%r15), %rcx
movq 0x30(%rcx), %rcx
movq (%rcx,%rax,8), %r12
testq %r12, %r12
jle 0x2ec8
decq %r12
movq %rsp, %r13
movq 0x20(%r15), %rcx
subq 0x18(%r15), %rcx
sarq $0x3, %rcx
decq %rcx
movl $0x2, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x5ce4
movq %rax, 0x8(%r14)
movq 0x50(%r15), %rcx
movq 0x30(%rcx), %rdx
movq %r12, %rcx
subq (%rdx,%rax,8), %rcx
movq %rcx, (%r14)
xorps %xmm0, %xmm0
cmpq %rax, %rcx
je 0x2e7b
movq 0x18(%r15), %rdx
cmpq %rax, %rcx
movq %rax, %rsi
cmovgq %rcx, %rsi
cmovgeq %rax, %rcx
movq (%rdx,%rsi,8), %rax
movss (%rax,%rcx,4), %xmm0
movss 0x40(%r15), %xmm1
ucomiss %xmm0, %xmm1
jb 0x2eb3
movss %xmm0, (%rsp)
movq %r12, 0x8(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2ea8
movups (%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x2eb3
movq %rbx, %rdi
movq %r13, %rdx
callq 0x5d40
leaq -0x1(%r12), %rax
incq %r12
cmpq $0x1, %r12
movq %rax, %r12
jg 0x2e23
movq %r14, %rdi
callq 0x21e0
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r15
jmp 0x2ef3
jmp 0x2ee8
movq %rax, %r15
movq %r14, %rdi
callq 0x21e0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2f00
callq 0x21e0
movq %r15, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: ripser<sparse_distance_matrix>::get_edges()
std::vector<diameter_index_t> ripser<sparse_distance_matrix>::get_edges() {
	std::vector<diameter_index_t> edges;
	for (index_t i = 0; i < n; ++i)
		for (auto n : dist.neighbors[i]) {
			index_t j = get_index(n);
			if (i > j) edges.push_back({get_diameter(n), get_edge_index(i, j)});
		}
	return edges;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
cmpq $0x0, 0x20(%rsi)
jle 0x2fa7
movq %rsi, %r14
xorl %r12d, %r12d
leaq 0x8(%rsp), %r15
movq (%r14), %rax
leaq (%r12,%r12,2), %rcx
movq (%rax,%rcx,8), %r13
movq 0x8(%rax,%rcx,8), %rbp
cmpq %rbp, %r13
je 0x2f9e
movq (%r13), %rax
cmpq %rax, %r12
jle 0x2f98
movss 0x8(%r13), %xmm0
movq 0x40(%r14), %rcx
movq 0x30(%rcx), %rcx
addq (%rcx,%r12,8), %rax
movss %xmm0, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2f8d
movups 0x8(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x2f98
movq %rbx, %rdi
movq %r15, %rdx
callq 0x5d40
addq $0x10, %r13
jmp 0x2f49
incq %r12
cmpq 0x20(%r14), %r12
jl 0x2f39
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2fc9
callq 0x21e0
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: read_lower_distance_matrix(std::istream&)
compressed_lower_distance_matrix read_lower_distance_matrix(std::istream& input_stream) {
	std::vector<value_t> distances;
	value_t value;
	while (input_stream >> value) {
		distances.push_back(value);
		input_stream.ignore();
	}

	return compressed_lower_distance_matrix(std::move(distances));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
leaq 0xc(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x23d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x360c
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x35f7
movss 0xc(%rsp), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x3602
movq %r15, %rdi
movq %r12, %rdx
callq 0x5e78
movq %r14, %rdi
callq 0x2390
jmp 0x35bd
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x4e64
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3628
callq 0x21e0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x3639
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x364b
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: read_upper_distance_matrix(std::istream&)
compressed_lower_distance_matrix read_upper_distance_matrix(std::istream& input_stream) {
	std::vector<value_t> distances;
	value_t value;
	while (input_stream >> value) {
		distances.push_back(value);
		input_stream.ignore();
	}

	return compressed_lower_distance_matrix(compressed_upper_distance_matrix(std::move(distances)));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
leaq 0xc(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x23d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x36cc
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x36b7
movss 0xc(%rsp), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x36c2
movq %r15, %rdi
movq %r12, %rdx
callq 0x5e78
movq %r14, %rdi
callq 0x2390
jmp 0x367d
leaq 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4f64
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x5034
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x36f7
callq 0x21e0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x3706
callq 0x21e0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3715
callq 0x21e0
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x5128
jmp 0x3738
jmp 0x3735
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3747
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: read_distance_matrix(std::istream&)
compressed_lower_distance_matrix read_distance_matrix(std::istream& input_stream) {
	std::vector<value_t> distances;

	std::string line;
	value_t value;
	for (int i = 0; std::getline(input_stream, line); ++i) {
		std::istringstream s(line);
		for (int j = 0; j < i && s >> value; ++j) {
			distances.push_back(value);
			s.ignore();
		}
	}

	return compressed_lower_distance_matrix(std::move(distances));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
xorl %ebx, %ebx
leaq 0x10(%rsp), %r15
movq %rbx, 0x10(%r15)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rbx, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x48(%rsp), %rbp
leaq 0x4(%rsp), %r12
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %edx
movq %r14, %rdi
leaq 0x28(%rsp), %rsi
callq 0x23b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3858
movq %rbp, %rdi
leaq 0x28(%rsp), %rsi
movl $0x8, %edx
callq 0x2330
testl %ebx, %ebx
je 0x3835
movl %ebx, %r13d
movq %rbp, %rdi
movq %r12, %rsi
callq 0x23d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3835
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x381d
movss 0x4(%rsp), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x3828
movq %r15, %rdi
movq %r12, %rdx
callq 0x5e78
movq %rbp, %rdi
callq 0x2390
decl %r13d
jne 0x37e3
movq %rbp, %rdi
movq 0xe781(%rip), %rsi      # 0x11fc0
callq 0x22c0
leaq 0xc0(%rsp), %rdi
callq 0x20a0
incl %ebx
jmp 0x3794
leaq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x4e64
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x387b
callq 0x21e0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x388a
callq 0x21e0
movq 0x8(%rsp), %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x38a5
jmp 0x38a5
movq %rax, %rbx
jmp 0x38cb
movq %rax, %rbx
movq 0xe70c(%rip), %rsi      # 0x11fc0
leaq 0x48(%rsp), %rdi
callq 0x22c0
leaq 0xc0(%rsp), %rdi
callq 0x20a0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x38df
callq 0x21e0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x38ee
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: read_dipha(std::istream&)
compressed_lower_distance_matrix read_dipha(std::istream& input_stream) {
	if (read<int64_t>(input_stream) != 8067171840) {
		std::cerr << "input is not a Dipha file (magic number: 8067171840)" << std::endl;
		exit(-1);
	}

	if (read<int64_t>(input_stream) != 7) {
		std::cerr << "input is not a Dipha distance matrix (file type: 7)" << std::endl;
		exit(-1);
	}

	index_t n = read<int64_t>(input_stream);

	std::vector<value_t> distances;

	for (int i = 0; i < n; ++i)
		for (int j = 0; j < n; ++j)
			if (i > j)
				distances.push_back(read<double>(input_stream));
			else
				read<double>(input_stream);

	return compressed_lower_distance_matrix(std::move(distances));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x514a
movabsq $0x1e0d74600, %rcx      # imm = 0x1E0D74600
cmpq %rcx, %rax
jne 0x39f5
movq %rbx, 0x30(%rsp)
movq %r14, %rdi
callq 0x514a
cmpq $0x7, %rax
jne 0x3a05
movq %r14, %rdi
callq 0x514a
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
testq %rax, %rax
jle 0x39c2
movq %rax, %r15
xorl %ebp, %ebp
leaq 0x10(%rsp), %r12
leaq 0xc(%rsp), %r13
xorl %ebx, %ebx
cmpq %rbx, %rbp
jbe 0x399d
movq %r14, %rdi
callq 0x5191
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x39a7
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x39b2
movq %r14, %rdi
callq 0x5191
jmp 0x39b2
movq %r12, %rdi
movq %r13, %rdx
callq 0x6ac6
incq %rbx
cmpq %rbx, %r15
jne 0x396b
incq %rbp
cmpq %r15, %rbp
jne 0x3969
leaq 0x10(%rsp), %rsi
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x4e64
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x39e3
callq 0x21e0
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xe5f4(%rip), %rdi      # 0x11ff0
leaq 0x8721(%rip), %rsi      # 0xc124
jmp 0x3a13
movq 0xe5e4(%rip), %rdi      # 0x11ff0
leaq 0x8746(%rip), %rsi      # 0xc159
callq 0x2210
movq %rax, %rdi
callq 0x20f0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x2260
jmp 0x3a2e
jmp 0x3a2e
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3a40
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: read_file(std::istream&, file_format)
compressed_lower_distance_matrix read_file(std::istream& input_stream, const file_format format) {
	switch (format) {
	case LOWER_DISTANCE_MATRIX:
		return read_lower_distance_matrix(input_stream);
	case UPPER_DISTANCE_MATRIX:
		return read_upper_distance_matrix(input_stream);
	case DISTANCE_MATRIX:
		return read_distance_matrix(input_stream);
	case POINT_CLOUD:
		return read_point_cloud(input_stream);
	case DIPHA:
		return read_dipha(input_stream);
	default:
		return read_binary(input_stream);
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpl $0x4, %edx
ja 0x3b75
movl %edx, %eax
leaq 0x8574(%rip), %rcx      # 0xc098
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
callq 0x3593
jmp 0x3b7d
movq %rbx, %rdi
callq 0x38f6
jmp 0x3b7d
movq %rbx, %rdi
callq 0x374f
jmp 0x3b7d
movq %rsp, %r14
movq %r14, %rdi
callq 0x2fd1
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5224
movq %rsp, %rdi
callq 0x4d62
jmp 0x3b7d
movq %rbx, %rdi
callq 0x3653
jmp 0x3b7d
movq %rbx, %rdi
callq 0x3a48
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4d62
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: std::reverse_iterator<__gnu_cxx::__normal_iterator<long*, std::vector<long, std::allocator<long>>>> ripser<compressed_distance_matrix<(compressed_matrix_layout)0>>::get_simplex_vertices<std::reverse_iterator<__gnu_cxx::__normal_iterator<long*, std::vector<long, std::allocator<long>>>>>(long, long, long, std::reverse_iterator<__gnu_cxx::__normal_iterator<long*, std::vector<long, std::allocator<long>>>>) const
OutputIterator get_simplex_vertices(index_t idx, const index_t dim, index_t n,
	                                    OutputIterator out) const {
		--n;
		for (index_t k = dim + 1; k > 1; --k) {
			n = get_max_vertex(idx, k, n);
			*out++ = n;
			idx -= binomial_coeff(n, k);
		}
		*out = idx;
		return out;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %rdx, %r15
movq %rdi, %r14
testq %rcx, %rcx
jle 0x4c9f
movq %r8, %rax
movq %rcx, %r12
movq %rsi, %r13
decq %rax
leaq (%rcx,%rcx,2), %rcx
addq $0x2, %r12
leaq 0x18(,%rcx,8), %rbp
decq %r12
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %rax, %rcx
callq 0x5ce4
movq (%rbx), %rcx
leaq -0x8(%rcx), %rdx
movq %rdx, (%rbx)
movq %rax, -0x8(%rcx)
movq 0x50(%r13), %rcx
movq (%rcx,%rbp), %rcx
subq (%rcx,%rax,8), %r15
addq $-0x18, %rbp
cmpq $0x2, %r12
jg 0x4c67
movq (%rbx), %rax
movq %r15, -0x8(%rax)
movq %rax, (%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: binomial_coeff_table::binomial_coeff_table(long, long)
binomial_coeff_table(index_t n, index_t k) : B(k + 1, std::vector<index_t>(n + 1, 0)) {
		for (index_t i = 0; i <= n; ++i) {
			B[0][i] = 1;
			for (index_t j = 1; j < std::min(i, k + 1); ++j)
				B[j][i] = B[j - 1][i - 1] + B[j][i - 1];
			if (i <= k) B[i][i] = 1;
			check_overflow(B[std::min(i >> 1, k)][i]);
		}
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
incq %rsi
leaq 0x28(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rcx
callq 0x6ccc
leaq 0x1(%r14), %r12
leaq 0x10(%rsp), %rdx
leaq 0xe(%rsp), %rcx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x6de4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x6bfa
callq 0x21e0
testq %r15, %r15
js 0x6c92
xorl %r13d, %r13d
cmpq %r12, %r13
movq %r12, %rcx
cmovlq %r13, %rcx
movq (%rbx), %rax
movq (%rax), %rdx
movq $0x1, (%rdx,%r13,8)
cmpq $0x2, %rcx
jl 0x6c48
decq %rcx
movq %rax, %rdx
movq (%rdx), %rsi
movq 0x18(%rdx), %rdi
movq -0x8(%rdi,%r13,8), %r8
addq -0x8(%rsi,%r13,8), %r8
addq $0x18, %rdx
movq %r8, (%rdi,%r13,8)
decq %rcx
jne 0x6c2a
cmpq %r14, %r13
jg 0x6c64
leaq (,%r13,2), %rcx
addq %r13, %rcx
movq (%rax,%rcx,8), %rcx
movq $0x1, (%rcx,%r13,8)
movq %r13, %rcx
shrq %rcx
cmpq %r14, %rcx
cmovgeq %r14, %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax,%r13,8), %rdi
callq 0x2a7c
leaq 0x1(%r13), %rax
cmpq %r15, %r13
movq %rax, %r13
jne 0x6c06
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x6cc4
callq 0x21e0
jmp 0x6cc4
movq %rax, %r14
jmp 0x6cc4
movq %rax, %r14
movq %rbx, %rdi
callq 0x5c6e
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: double read<double>(std::istream&)
T read(std::istream& input_stream) {
	T result;
	char* p = reinterpret_cast<char*>(&result);
	if (input_stream.read(p, sizeof(T)).gcount() != sizeof(T)) return T();
	if (is_big_endian) std::reverse(p, p + sizeof(T));
	return result;
}

// Assembly:
pushq %rax
movq %rsp, %rsi
movl $0x8, %edx
callq 0x2270
xorps %xmm0, %xmm0
cmpq $0x8, 0x8(%rax)
jne 0x51d6
cmpb $0x1, 0xd088(%rip)      # 0x12238
jne 0x51d1
leaq 0x7(%rsp), %rax
xorl %ecx, %ecx
movb (%rsp,%rcx), %dl
movb (%rax), %sil
movb %sil, (%rsp,%rcx)
movb %dl, (%rax)
incq %rcx
decq %rax
cmpq $0x4, %rcx
jne 0x51b9
movsd (%rsp), %xmm0
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: ripser<sparse_distance_matrix>::compute_barcodes()
void compute_barcodes() {
		std::vector<diameter_index_t> simplices, columns_to_reduce;

		compute_dim_0_pairs(simplices, columns_to_reduce);

		for (index_t dim = 1; dim <= dim_max; ++dim) {
			entry_hash_map pivot_column_index;
			pivot_column_index.reserve(columns_to_reduce.size());

			compute_pairs(columns_to_reduce, pivot_column_index, dim);

			if (dim < dim_max)
				assemble_columns_to_reduce(simplices, columns_to_reduce, pivot_column_index,
				                           dim + 1);
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
xorpd %xmm0, %xmm0
leaq 0x20(%rsp), %rsi
movapd %xmm0, (%rsi)
xorl %eax, %eax
movq %rax, 0x10(%rsi)
movq %rsp, %rdx
movq %rax, 0x10(%rdx)
movapd %xmm0, (%rdx)
callq 0x6f9c
cmpq $0x0, 0x28(%rbx)
jle 0x5561
leaq 0x70(%rsp), %r12
xorl %r13d, %r13d
leaq 0x40(%rsp), %r14
movq %rsp, %r15
movq %r12, 0x40(%rsp)
movq $0x1, 0x48(%rsp)
xorps %xmm2, %xmm2
movups %xmm2, -0x20(%r12)
movl $0x3f800000, 0x60(%rsp) # imm = 0x3F800000
movq 0x8(%rsp), %rax
subq (%rsp), %rax
sarq $0x4, %rax
movq %rax, %xmm0
punpckldq 0x6b4a(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x6b52(%rip), %xmm0     # 0xc030
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movups %xmm2, -0x8(%r12)
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x6b7c(%rip), %xmm1     # 0xc080
cvttsd2si %xmm1, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq %r14, %rdi
callq 0x9138
leaq 0x1(%r13), %rbp
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0x73c8
cmpq 0x28(%rbx), %rbp
jge 0x554c
addq $0x2, %r13
movq %rbx, %rdi
leaq 0x20(%rsp), %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %r13, %r8
callq 0x77f0
movq %r14, %rdi
callq 0xa504
movq %rbp, %r13
cmpq 0x28(%rbx), %rbp
jl 0x549d
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x556f
callq 0x21e0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x557e
callq 0x21e0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x559f
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xa504
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x55ad
callq 0x21e0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x55bc
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: sparse_distance_matrix::sparse_distance_matrix<euclidean_distance_matrix>(euclidean_distance_matrix const&, float)
sparse_distance_matrix(const DistanceMatrix& mat, const value_t threshold)
	    : neighbors(mat.size()), num_edges(0) {

		for (size_t i = 0; i < size(); ++i)
			for (size_t j = 0; j < size(); ++j)
				if (i != j) {
					auto d = mat(i, j);
					if (d <= threshold) {
						++num_edges;
						neighbors[i].push_back({j, d});
					}
				}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movss %xmm0, 0x4(%rsp)
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
subq (%rbx), %rsi
movq %rdi, %r14
sarq $0x3, %rsi
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r12, %rsi
leaq 0x8(%rsp), %rdx
callq 0xa566
movq $0x0, 0x18(%r14)
movq 0x8(%r14), %rax
cmpq (%r14), %rax
je 0x574d
xorl %r13d, %r13d
movq 0x8(%r14), %rax
cmpq (%r14), %rax
je 0x5732
leaq (,%r13,2), %rbp
addq %r13, %rbp
xorl %r15d, %r15d
cmpq %r15, %r13
je 0x5717
movq (%rbx), %rdx
movq (%rdx,%rbp,8), %rax
movq 0x8(%rdx,%rbp,8), %rcx
cmpq %rcx, %rax
je 0x56bc
leaq (%r15,%r15,2), %rsi
movq (%rdx,%rsi,8), %rdx
xorps %xmm0, %xmm0
movss (%rax), %xmm1
subss (%rdx), %xmm1
mulss %xmm1, %xmm1
addss %xmm1, %xmm0
addq $0x4, %rax
addq $0x4, %rdx
cmpq %rcx, %rax
jne 0x569d
jmp 0x56bf
xorps %xmm0, %xmm0
ucomiss 0x69f6(%rip), %xmm0     # 0xc0bc
jb 0x56ce
sqrtss %xmm0, %xmm0
jmp 0x56d3
callq 0x2380
movss 0x4(%rsp), %xmm1
ucomiss %xmm0, %xmm1
jb 0x5717
incq 0x18(%r14)
movq (%r14), %rax
leaq (%rax,%rbp,8), %rdi
movq %r15, 0x8(%rsp)
movss %xmm0, 0x10(%rsp)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x570d
movups 0x8(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rdi)
jmp 0x5717
leaq 0x8(%rsp), %rdx
callq 0x631e
movq 0x8(%r14), %rax
subq (%r14), %rax
incq %r15
sarq $0x3, %rax
imulq %r12, %rax
cmpq %rax, %r15
jb 0x5678
movq 0x8(%r14), %rax
subq (%r14), %rax
incq %r13
sarq $0x3, %rax
imulq %r12, %rax
cmpq %rax, %r13
jb 0x565d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x4e24
movq %rbx, %rdi
callq 0x2360
nop
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: union_find::link(long, long)
void link(index_t x, index_t y) {
		if ((x = find(x)) == (y = find(y))) return;
		if (rank[x] > rank[y])
			parent[y] = x;
		else {
			parent[x] = y;
			if (rank[x] == rank[y]) ++rank[y];
		}
	}

// Assembly:
movq (%rdi), %rax
movq %rsi, %rcx
movq %rcx, %r8
movq (%rax,%rcx,8), %rcx
cmpq %r8, %rcx
jne 0x7ca4
movq (%rax,%rsi,8), %rcx
cmpq %r8, %rcx
je 0x7ccc
leaq (%rax,%rsi,8), %rsi
movq %r8, (%rsi)
leaq (%rax,%rcx,8), %rsi
movq (%rsi), %rcx
cmpq %r8, %rcx
jne 0x7cbd
movq %rdx, %rsi
movq %rsi, %r8
movq (%rax,%rsi,8), %rsi
cmpq %r8, %rsi
jne 0x7ccf
movq (%rax,%rdx,8), %rsi
cmpq %r8, %rsi
je 0x7cf7
leaq (%rax,%rdx,8), %rdx
movq %r8, (%rdx)
leaq (%rax,%rsi,8), %rdx
movq (%rdx), %rsi
cmpq %r8, %rsi
jne 0x7ce8
cmpq %rsi, %rcx
jne 0x7cfd
retq
movq 0x18(%rdi), %rdx
movb (%rdx,%rcx), %dil
cmpb (%rdx,%rsi), %dil
jbe 0x7d10
movq %rcx, (%rax,%rsi,8)
retq
movq %rsi, (%rax,%rcx,8)
movb (%rdx,%rsi), %al
cmpb %al, (%rdx,%rcx)
jne 0x7cfc
incb %al
movb %al, (%rdx,%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: ripser<sparse_distance_matrix>::get_zero_apparent_cofacet(diameter_entry_t, long)
diameter_entry_t get_zero_apparent_cofacet(const diameter_entry_t simplex, const index_t dim) {
		diameter_entry_t cofacet = get_zero_pivot_cofacet(simplex, dim);
		return ((get_index(cofacet) != -1) &&
		        (get_index(get_zero_pivot_facet(cofacet, dim + 1)) == get_index(simplex)))
		           ? cofacet
		           : diameter_entry_t(-1);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
callq 0x876a
cmpq $-0x1, %rax
je 0x7d69
movq %rax, %rbx
incq %r15
movq %r12, %rdi
movss %xmm0, 0x4(%rsp)
movss 0x4(%rsp), %xmm0
movq %rax, %rsi
movq %r15, %rdx
callq 0x8830
movss 0x4(%rsp), %xmm0
cmpq %r14, %rax
je 0x7d73
movq $-0x1, %rbx
xorps %xmm0, %xmm0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: ripser<sparse_distance_matrix>::get_zero_pivot_cofacet(diameter_entry_t, long)
diameter_entry_t get_zero_pivot_cofacet(const diameter_entry_t simplex, const index_t dim) {
		static simplex_coboundary_enumerator cofacets(*this);
		cofacets.set_simplex(simplex, dim);
		while (cofacets.has_next()) {
			diameter_entry_t cofacet = cofacets.next();
			if (get_diameter(cofacet) == get_diameter(simplex)) return cofacet;
		}
		return diameter_entry_t(-1);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %r15
movb 0x9b61(%rip), %al       # 0x122e0
testb %al, %al
movss %xmm0, 0xc(%rsp)
je 0x8820
leaq 0x9aac(%rip), %rbx      # 0x12240
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x890e
movq %rbx, %rdi
movl $0x1, %esi
callq 0x89d2
testb %al, %al
je 0x880c
movq 0x9ade(%rip), %rax      # 0x12298
addq $-0x10, (%rax)
movss 0x9b0a(%rip), %xmm0     # 0x122d0
maxss 0x9aa2(%rip), %xmm0     # 0x12270
ucomiss 0xc(%rsp), %xmm0
jne 0x87a2
jp 0x87a2
movq 0x9ab2(%rip), %rax      # 0x12290
movq (%rax), %rax
movq 0x9a68(%rip), %rcx      # 0x12250
leaq (%rcx,%rcx,2), %rcx
movq 0x18(%rax,%rcx,8), %rax
movq 0x9ad0(%rip), %rcx      # 0x122c8
movq (%rax,%rcx,8), %rax
addq 0x9a45(%rip), %rax      # 0x12248
addq 0x9a36(%rip), %rax      # 0x12240
jmp 0x8816
movq $-0x1, %rax
xorps %xmm0, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
callq 0x24a3
movss 0xc(%rsp), %xmm0
jmp 0x878d
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: ripser<sparse_distance_matrix>::get_zero_pivot_facet(diameter_entry_t, long)
diameter_entry_t get_zero_pivot_facet(const diameter_entry_t simplex, const index_t dim) {
		static simplex_boundary_enumerator facets(0, *this);
		facets.set_simplex(simplex, dim);
		while (facets.has_next()) {
			diameter_entry_t facet = facets.next();
			if (get_diameter(facet) == get_diameter(simplex)) return facet;
		}
		return diameter_entry_t(-1);
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movaps %xmm0, %xmm1
movb 0x9af5(%rip), %al       # 0x12338
testb %al, %al
movss %xmm0, 0x4(%rsp)
je 0x88cb
movq %r14, 0x9a94(%rip)      # 0x122e8
movq $0x0, 0x9a91(%rip) # 0x122f0
movq 0x9aca(%rip), %rax      # 0x12330
movq 0x20(%rax), %rax
decq %rax
movq %rax, 0x9a84(%rip)      # 0x122f8
movq %rbx, 0x9a85(%rip)      # 0x12300
movss %xmm1, 0x9a85(%rip)     # 0x12308
movq %r14, 0x9a86(%rip)      # 0x12310
movq %rbx, 0x9a87(%rip)      # 0x12318
leaq 0x9a50(%rip), %rbx      # 0x122e8
cmpq $0x0, 0x9a60(%rip)      # 0x12300
js 0x88b9
movq %rbx, %rdi
callq 0x8e52
movss 0x4(%rsp), %xmm1
ucomiss %xmm1, %xmm0
jne 0x8898
jp 0x8898
jmp 0x88c3
movq $-0x1, %rax
xorps %xmm0, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x253d
movss 0x4(%rsp), %xmm1
jmp 0x884d
nop
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: ripser<sparse_distance_matrix>::simplex_coboundary_enumerator::set_simplex(diameter_entry_t, long)
void set_simplex(const diameter_entry_t _simplex, const index_t _dim) {
		idx_below = get_index(_simplex);
		idx_above = 0;
		k = _dim + 1;
		simplex = _simplex;
		vertices.resize(_dim + 1);
		parent.get_simplex_vertices(idx_below, _dim, parent.n, vertices.rbegin());

		neighbor_it.resize(_dim + 1);
		neighbor_end.resize(_dim + 1);
		for (index_t i = 0; i <= _dim; ++i) {
			auto v = vertices[i];
			neighbor_it[i] = dist.neighbors[v].rbegin();
			neighbor_end[i] = dist.neighbors[v].rend();
		}
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r15
movq %rdi, %rbx
movq %rsi, (%rdi)
movq $0x0, 0x8(%rdi)
leaq 0x1(%rdx), %r14
movq %r14, 0x10(%rdi)
movss %xmm0, 0x30(%rdi)
movq %rsi, 0x38(%rdi)
addq $0x18, %rdi
movq %r14, %rsi
callq 0x8b5a
movq 0x98(%rbx), %rsi
movq 0x20(%rsi), %r8
movq (%rbx), %rdx
movq 0x20(%rbx), %rax
leaq 0x8(%rsp), %r9
movq %rax, (%r9)
movq %rsp, %rdi
movq %r15, %rcx
callq 0x7c14
leaq 0x58(%rbx), %rdi
movq %r14, %rsi
callq 0x8b8c
leaq 0x70(%rbx), %rdi
movq %r14, %rsi
callq 0x8b8c
testq %r15, %r15
js 0x89c8
xorl %eax, %eax
movq 0x18(%rbx), %rcx
movq 0x48(%rbx), %rdx
movq (%rcx,%rax,8), %rcx
movq (%rdx), %rdx
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x8(%rdx,%rcx), %rdx
movq 0x58(%rbx), %rsi
movq %rdx, (%rsi,%rax,8)
movq 0x48(%rbx), %rdx
movq 0x70(%rbx), %rsi
movq (%rdx), %rdx
movq (%rdx,%rcx), %rcx
movq %rcx, (%rsi,%rax,8)
incq %rax
cmpq %rax, %r14
jne 0x8989
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: ripser<sparse_distance_matrix>::simplex_boundary_enumerator::next()
diameter_entry_t next() {
			j = parent.get_max_vertex(idx_below, k + 1, j);

			index_t face_index = idx_above - binomial_coeff(j, k + 1) + idx_below;

			value_t face_diameter = parent.compute_diameter(face_index, dim - 1);

			coefficient_t face_coefficient =
			    (k & 1 ? -1 + modulus : 1) * get_coefficient(simplex) % modulus;

			idx_below -= binomial_coeff(j, k + 1);
			idx_above += binomial_coeff(j, k);

			--k;

			return diameter_entry_t(face_diameter, face_index, face_coefficient);
		}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x48(%rdi), %rdi
movq 0x18(%rbx), %rdx
incq %rdx
movq (%rbx), %rsi
movq 0x10(%rbx), %rcx
callq 0x870e
movq %rax, 0x10(%rbx)
movq 0x40(%rbx), %rcx
movq 0x8(%rbx), %r14
movq 0x18(%rbx), %rdx
movq (%rcx), %rcx
leaq (%rdx,%rdx,2), %rdx
movq 0x18(%rcx,%rdx,8), %rcx
subq (%rcx,%rax,8), %r14
addq (%rbx), %r14
movq 0x48(%rbx), %rdi
movq 0x30(%rbx), %rdx
decq %rdx
movq %r14, %rsi
callq 0x8ee4
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
movq 0x40(%rbx), %rdx
movq (%rdx), %rdx
leaq (%rcx,%rcx,2), %rsi
movq 0x18(%rdx,%rsi,8), %rdi
movq (%rdi,%rax,8), %rdi
subq %rdi, (%rbx)
movq (%rdx,%rsi,8), %rdx
movq (%rdx,%rax,8), %rax
addq %rax, 0x8(%rbx)
decq %rcx
movq %rcx, 0x18(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: ripser<compressed_distance_matrix<(compressed_matrix_layout)0>>::compute_diameter(long, long) const
value_t compute_diameter(const index_t index, const index_t dim) const {
		value_t diam = -std::numeric_limits<value_t>::infinity();

		vertices.resize(dim + 1);
		get_simplex_vertices(index, dim, dist.size(), vertices.rbegin());

		for (index_t i = 0; i <= dim; ++i)
			for (index_t j = 0; j < i; ++j) {
				diam = std::max(diam, dist(vertices[i], vertices[j]));
			}
		return diam;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
addq $0x98, %rdi
leaq 0x1(%rdx), %rsi
callq 0x8b5a
movq 0x20(%r14), %r8
subq 0x18(%r14), %r8
movq 0xa0(%r14), %rax
sarq $0x3, %r8
leaq 0x8(%rsp), %r9
movq %rax, (%r9)
movq %rsp, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x4c32
testq %rbx, %rbx
js 0xb51d
movq 0x18(%r14), %rax
movq 0x98(%r14), %rcx
movss 0xbee(%rip), %xmm1      # 0xc0b8
xorl %edx, %edx
testq %rdx, %rdx
je 0xb509
movq (%rcx,%rdx,8), %rsi
xorl %edi, %edi
movq (%rcx,%rdi,8), %r8
xorps %xmm0, %xmm0
cmpq %r8, %rsi
je 0xb4f8
movq %r8, %r9
cmovgq %rsi, %r9
cmovlq %rsi, %r8
movq (%rax,%r9,8), %r9
movss (%r9,%r8,4), %xmm0
maxss %xmm1, %xmm0
incq %rdi
movaps %xmm0, %xmm1
cmpq %rdi, %rdx
jne 0xb4d7
jmp 0xb50c
movaps %xmm1, %xmm0
leaq 0x1(%rdx), %rsi
movaps %xmm0, %xmm1
cmpq %rbx, %rdx
movq %rsi, %rdx
jne 0xb4cc
jmp 0xb525
movss 0xb93(%rip), %xmm0      # 0xc0b8
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: sparse_distance_matrix::operator()(long, long) const
value_t operator()(const index_t i, const index_t j) const {
		auto neighbor =
		    std::lower_bound(neighbors[i].begin(), neighbors[i].end(), index_diameter_t{j, 0});
		return (neighbor != neighbors[i].end() && get_index(*neighbor) == j)
		           ? get_diameter(*neighbor)
		           : std::numeric_limits<value_t>::infinity();
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rdi, %r14
movq (%rdi), %rax
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %r15
movq (%rax,%r15), %rdi
movq 0x8(%rax,%r15), %rsi
movq %rsp, %rdx
movq %rbx, (%rdx)
movl $0x0, 0x8(%rdx)
callq 0x900f
movq (%r14), %rcx
movss 0x30c0(%rip), %xmm0     # 0xc0b4
cmpq 0x8(%rcx,%r15), %rax
je 0x9005
cmpq %rbx, (%rax)
jne 0x9005
movss 0x8(%rax), %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: void ripser<sparse_distance_matrix>::add_coboundary<std::priority_queue<diameter_entry_t, std::vector<diameter_entry_t, std::allocator<diameter_entry_t>>, greater_diameter_or_smaller_index_comp<diameter_entry_t>>>(compressed_sparse_matrix<diameter_entry_t>&, std::vector<std::pair<float, long>, std::allocator<std::pair<float, long>>> const&, unsigned long, unsigned short, unsigned long const&, std::priority_queue<diameter_entry_t, std::vector<diameter_entry_t, std::allocator<diameter_entry_t>>, greater_diameter_or_smaller_index_comp<diameter_entry_t>>&, std::priority_queue<diameter_entry_t, std::vector<diameter_entry_t, std::allocator<diameter_entry_t>>, greater_diameter_or_smaller_index_comp<diameter_entry_t>>&)
void add_coboundary(compressed_sparse_matrix<diameter_entry_t>& reduction_matrix,
	                    const std::vector<diameter_index_t>& columns_to_reduce,
	                    const size_t index_column_to_add, const coefficient_t factor,
	                    const size_t& dim, Column& working_reduction_column,
	                    Column& working_coboundary) {
		diameter_entry_t column_to_add(columns_to_reduce[index_column_to_add], factor);
		add_simplex_coboundary(column_to_add, dim, working_reduction_column, working_coboundary);

		for (diameter_entry_t simplex : reduction_matrix.subrange(index_column_to_add)) {
			set_coefficient(simplex, get_coefficient(simplex) * factor % modulus);
			add_simplex_coboundary(simplex, dim, working_reduction_column, working_coboundary);
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %rcx, %r13
movq %rsi, %r15
movq %rdi, %r14
movq 0x48(%rsp), %r12
movq 0x40(%rsp), %rcx
movq (%rdx), %rax
movq %r13, %rdx
shlq $0x4, %rdx
movss (%rax,%rdx), %xmm0
movq 0x8(%rax,%rdx), %rsi
movq (%r9), %rax
movq %rsp, %rdx
movq %rax, (%rdx)
movq %r12, %r8
callq 0x968a
testq %r13, %r13
je 0x9591
movq (%r15), %rax
movq -0x8(%rax,%r13,8), %rbp
jmp 0x9593
xorl %ebp, %ebp
movq %r15, %rdx
movq (%r15), %rax
movq (%rax,%r13,8), %r15
cmpq %r15, %rbp
movq 0x40(%rsp), %r13
je 0x95e3
movq 0x18(%rdx), %rax
shlq $0x4, %r15
addq %rax, %r15
shlq $0x4, %rbp
addq %rax, %rbp
movss (%rbp), %xmm0
movq 0x8(%rbp), %rsi
movq (%rbx), %rax
movq %rax, (%rsp)
movq %r14, %rdi
movq %rsp, %rdx
movq %r13, %rcx
movq %r12, %r8
callq 0x968a
addq $0x10, %rbp
cmpq %r15, %rbp
jne 0x95b9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: ripser<sparse_distance_matrix>::get_zero_apparent_facet(diameter_entry_t, long)
diameter_entry_t get_zero_apparent_facet(const diameter_entry_t simplex, const index_t dim) {
		diameter_entry_t facet = get_zero_pivot_facet(simplex, dim);
		return ((get_index(facet) != -1) &&
		        (get_index(get_zero_pivot_cofacet(facet, dim - 1)) == get_index(simplex)))
		           ? facet
		           : diameter_entry_t(-1);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
callq 0x8830
cmpq $-0x1, %rax
je 0x9671
movq %rax, %rbx
decq %r15
movq %r12, %rdi
movss %xmm0, 0x4(%rsp)
movss 0x4(%rsp), %xmm0
movq %rax, %rsi
movq %r15, %rdx
callq 0x876a
movss 0x4(%rsp), %xmm0
cmpq %r14, %rax
je 0x967b
movq $-0x1, %rbx
xorps %xmm0, %xmm0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: void ripser<sparse_distance_matrix>::add_simplex_coboundary<std::priority_queue<diameter_entry_t, std::vector<diameter_entry_t, std::allocator<diameter_entry_t>>, greater_diameter_or_smaller_index_comp<diameter_entry_t>>>(diameter_entry_t, long const&, std::priority_queue<diameter_entry_t, std::vector<diameter_entry_t, std::allocator<diameter_entry_t>>, greater_diameter_or_smaller_index_comp<diameter_entry_t>>&, std::priority_queue<diameter_entry_t, std::vector<diameter_entry_t, std::allocator<diameter_entry_t>>, greater_diameter_or_smaller_index_comp<diameter_entry_t>>&)
void add_simplex_coboundary(const diameter_entry_t simplex, const index_t& dim,
	                            Column& working_reduction_column, Column& working_coboundary) {
		static simplex_coboundary_enumerator cofacets(*this);
		working_reduction_column.push(simplex);
		cofacets.set_simplex(simplex, dim);
		while (cofacets.has_next()) {
			diameter_entry_t cofacet = cofacets.next();
			if (get_diameter(cofacet) <= threshold) working_coboundary.push(cofacet);
		}
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %r8, %rbx
movq %rcx, %r12
movq %rdx, %r15
movq %rdi, %r14
movss %xmm0, 0x10(%rsp)
movq %rsi, 0x18(%rsp)
movb 0x8dd4(%rip), %al       # 0x12488
testb %al, %al
je 0x9794
leaq 0x10(%rsp), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x99a6
movss (%r13), %xmm0
movq 0x8(%r13), %rsi
movq (%r15), %rdx
leaq 0x8d08(%rip), %r15      # 0x123e8
movq %r15, %rdi
callq 0x890e
movq %r15, %rdi
movl $0x1, %esi
callq 0x89d2
testb %al, %al
je 0x9786
leaq 0x8ce4(%rip), %r15      # 0x123e8
movq %rsp, %r12
movq 0x8d32(%rip), %rax      # 0x12440
addq $-0x10, (%rax)
movss 0x8d5e(%rip), %xmm0     # 0x12478
maxss 0x8cf6(%rip), %xmm0     # 0x12418
movq 0x8d0f(%rip), %rax      # 0x12438
movq 0x8d40(%rip), %rcx      # 0x12470
movq 0x8cc1(%rip), %rdx      # 0x123f8
movq (%rax), %rax
leaq (%rdx,%rdx,2), %rdx
movq 0x18(%rax,%rdx,8), %rax
movq (%rax,%rcx,8), %rax
addq 0x8ca2(%rip), %rax      # 0x123f0
addq 0x8c93(%rip), %rax      # 0x123e8
movss %xmm0, (%rsp)
movq %rax, 0x8(%rsp)
movss 0x30(%r14), %xmm1
ucomiss %xmm0, %xmm1
jb 0x9775
movq %rbx, %rdi
movq %r12, %rsi
callq 0x99a6
movq %r15, %rdi
movl $0x1, %esi
callq 0x89d2
testb %al, %al
jne 0x9707
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r14, %rdi
callq 0x266e
jmp 0x96bc
nop
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: ripser<compressed_distance_matrix<(compressed_matrix_layout)0>>::simplex_coboundary_enumerator::set_simplex(diameter_entry_t, long)
void set_simplex(const diameter_entry_t _simplex, const index_t _dim) {
		idx_below = get_index(_simplex);
		idx_above = 0;
		j = parent.n - 1;
		k = _dim + 1;
		simplex = _simplex;
		vertices.resize(_dim + 1);
		parent.get_simplex_vertices(get_index(_simplex), _dim, parent.n, vertices.rbegin());
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, (%rdi)
movq $0x0, 0x8(%rdi)
movq 0x60(%rdi), %rax
movq 0x30(%rax), %rax
decq %rax
movq %rax, 0x10(%rdi)
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rdi)
movss %xmm0, 0x38(%rdi)
movq %r14, 0x40(%rdi)
addq $0x20, %rdi
callq 0x8b5a
movq 0x28(%r15), %rax
movq 0x60(%r15), %rsi
movq 0x30(%rsi), %r8
leaq 0x8(%rsp), %r9
movq %rax, (%r9)
movq %rsp, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x4c32
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Ripser[P]ripser/ripser.cpp
// Function: ripser<compressed_distance_matrix<(compressed_matrix_layout)0>>::simplex_coboundary_enumerator::next()
diameter_entry_t next() {
		while ((binomial_coeff(j, k) <= idx_below)) {
			idx_below -= binomial_coeff(j, k);
			idx_above += binomial_coeff(j, k + 1);
			--j;
			--k;
			assert(k != -1);
		}
		value_t cofacet_diameter = get_diameter(simplex);
		for (index_t i : vertices) cofacet_diameter = std::max(cofacet_diameter, dist(j, i));
		index_t cofacet_index = idx_above + binomial_coeff(j--, k + 1) + idx_below;
		coefficient_t cofacet_coefficient =
		    (k & 1 ? modulus - 1 : 1) * get_coefficient(simplex) % modulus;
		return diameter_entry_t(cofacet_diameter, cofacet_index, cofacet_coefficient);
	}

// Assembly:
pushq %r14
pushq %rbx
movq 0x58(%rdi), %rax
movq (%rax), %rcx
movq (%rdi), %rax
movq 0x10(%rdi), %r8
movq 0x18(%rdi), %rdx
leaq (%rdx,%rdx,2), %rsi
movq (%rcx,%rsi,8), %r9
movq (%r9,%r8,8), %r11
cmpq %rax, %r11
jle 0xb325
movq %r8, %rsi
jmp 0xb366
movq 0x8(%rdi), %r9
leaq (%rcx,%rsi,8), %r10
addq $0x18, %r10
subq %r11, %rax
movq %rax, (%rdi)
movq (%r10), %rsi
addq (%rsi,%r8,8), %r9
movq %r9, 0x8(%rdi)
leaq -0x1(%r8), %rsi
movq %rsi, 0x10(%rdi)
decq %rdx
movq %rdx, 0x18(%rdi)
movq -0x30(%r10), %r11
movq -0x8(%r11,%r8,8), %r11
addq $-0x18, %r10
movq %rsi, %r8
cmpq %rax, %r11
jle 0xb331
movss 0x38(%rdi), %xmm1
movq 0x20(%rdi), %r8
movq 0x28(%rdi), %r9
cmpq %r9, %r8
je 0xb3b2
movq 0x50(%rdi), %r10
movq (%r8), %r11
xorps %xmm0, %xmm0
cmpq %r11, %rsi
je 0xb3a0
movq %r11, %rbx
cmovgq %rsi, %rbx
cmovlq %rsi, %r11
movq 0x18(%r10), %r14
movq (%r14,%rbx,8), %rbx
movss (%rbx,%r11,4), %xmm0
maxss %xmm1, %xmm0
addq $0x8, %r8
movaps %xmm0, %xmm1
cmpq %r9, %r8
jne 0xb37c
jmp 0xb3b5
movaps %xmm1, %xmm0
leaq -0x1(%rsi), %r8
movq %r8, 0x10(%rdi)
leaq (%rdx,%rdx,2), %rdx
movq 0x18(%rcx,%rdx,8), %rcx
addq 0x8(%rdi), %rax
addq (%rcx,%rsi,8), %rax
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/examples/expansion.cc
// Function: f(int, int, int, int)
void f(int i, int j = 0, int k = 0, int l = 0)
{
	cout << i << " + "
	     << j << " + "
	     << k << " + "
	     << l << " =  "
	     << i + j + k + l << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, -0x2c(%rbp)
movl %edx, %ebx
movl %esi, %r15d
movl %edi, %r12d
movq 0x2dc1(%rip), %rdi      # 0x3fd8
movl %r12d, %esi
callq 0x10a0
movq %rax, %r14
leaq 0xddb(%rip), %r13       # 0x2004
movl $0x3, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x1080
movq %r14, %rdi
movl %r15d, %esi
callq 0x10a0
movq %rax, %r14
movl $0x3, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x1080
movq %r14, %rdi
movl %ebx, %esi
callq 0x10a0
movq %rax, %r14
movl $0x3, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x1080
movq %r14, %rdi
movl -0x2c(%rbp), %r13d
movl %r13d, %esi
callq 0x10a0
movq %rax, %r14
leaq 0xd7b(%rip), %rsi       # 0x2008
movl $0x4, %edx
movq %rax, %rdi
callq 0x1080
addl %r12d, %r15d
addl %r13d, %ebx
addl %r15d, %ebx
movq %r14, %rdi
movl %ebx, %esi
callq 0x10a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1050
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/examples/expansion.cc
// Function: void g<int, int, int, int>(int, int, int, int)
void g(Args ... args)
{
	cout << sizeof...(Args) << endl;  // number of type parameters
	cout << sizeof...(args) << endl;  // number of function parameters
	// call f passing it the arguments from args
	f(args...);                // f(a1, a2, a3, ..., an)

	// call h passing it the arguments from args
	cout << h(args...) << endl; // h(a1, a2, a3, ..., an)

	// the pattern is h(x),
	// the expansion calls h on each argument in args
	f(h(args) ...);            // f(h(a1), h(a2), h(a3), ..., h(an))

	// args is expanded in the call to h
	f(h(args ...));            // f(h(a1, a2, a3, ..., an2)

	// pattern adds the argument value to result from calling h(5,6,7,8)
	f(h(5,6,7,8 ) + args ...); // f(h(5,6,7,8) + a1, h(5,6,7,8) + a2,
	                           //   h(5,6,7,8) + a3, ..., h(5,6,7,8) + an)
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, -0x38(%rbp)
movl %edx, %r14d
movl %esi, %r15d
movl %edi, %r12d
movq 0x2c6b(%rip), %rbx      # 0x3fd8
movl $0x4, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %r13, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
movl $0x4, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %r13, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
movl %r12d, %edi
movl %r15d, %esi
movl %r14d, %edx
movq -0x38(%rbp), %rbx
movl %ebx, %ecx
callq 0x11f7
leal 0x2a(%r12), %eax
movl %eax, -0x2c(%rbp)
leal (%r12,%r15), %r13d
addl $0x2a, %r13d
addl %r14d, %r13d
addl %ebx, %r13d
movq 0x2bcc(%rip), %rdi      # 0x3fd8
movl %r13d, %esi
callq 0x10a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
leal 0x2a(%r15), %esi
leal 0x2a(%r14), %edx
movq -0x38(%rbp), %rbx
leal 0x2a(%rbx), %ecx
movl -0x2c(%rbp), %edi
callq 0x11f7
movl %r13d, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x11f7
addl $0x44, %r12d
addl $0x44, %r15d
addl $0x44, %r14d
movq %rbx, %rcx
addl $0x44, %ecx
movl %r12d, %edi
movl %r15d, %esi
movl %r14d, %edx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11f7
// File: /workspace/github_cpp_makefile_star2_O1/Kingsford-Group[P]ghost2/src/config.hpp
// Function: ConfigData::configure(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void ConfigData::configure(string filename)
{
  // try to open
  FILE *fin = fopen(filename.c_str(),"r");
  if(fin == NULL) 
  {
    printf("config file not found\n"); 
    exit(0);
  }
  // check for [main]
  char next[200];
  if(fscanf(fin,"%[^\n]\n",next) == 0)
  {
    printf("config file appears empty\n");
    exit(0);
  }
  if(string(next) != "[main]")
  {
    printf("no [main] in config file\n"); 
    exit(0);
  }
  // update for the rest of the lines
  while(fscanf(fin,"%[^\n]\n",next) != EOF)
    use(string(next));
  fclose(fin);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %rbx
movq (%rsi), %rdi
leaq 0x3d7c8(%rip), %rsi     # 0x4bf8c
callq 0xd640
testq %rax, %rax
je 0xe8ee
movq %rax, %r14
leaq 0x3ae95(%rip), %rsi     # 0x49671
leaq 0x40(%rsp), %rdx
movq %rax, %rdi
xorl %eax, %eax
callq 0xda20
testl %eax, %eax
je 0xe8f7
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0xd250
leaq (%rsp,%rax), %rdx
addq $0x40, %rdx
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x28dfa
leaq 0x3ae50(%rip), %rsi     # 0x49678
movq %r12, %rdi
callq 0xd1b0
movl %eax, %ebp
movq (%r12), %rdi
cmpq %r13, %rdi
je 0xe848
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd550
testl %ebp, %ebp
jne 0xe900
leaq 0x3ae1a(%rip), %rsi     # 0x49671
leaq 0x40(%rsp), %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0xda20
cmpl $-0x1, %eax
je 0xe8d4
leaq 0x10(%rsp), %rbp
leaq 0x40(%rsp), %r15
movq %rsp, %r12
leaq 0x3adf2(%rip), %r13     # 0x49671
movq %rbp, (%rsp)
movq %r15, %rdi
callq 0xd250
leaq (%rsp,%rax), %rdx
addq $0x40, %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x28dfa
movq %rbx, %rdi
movq %r12, %rsi
callq 0xdfdc
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0xe8bf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd550
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xda20
cmpl $-0x1, %eax
jne 0xe87f
movq %r14, %rdi
callq 0xd510
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x502d1(%rip), %rdi     # 0x5ebc6
jmp 0xe907
leaq 0x502ae(%rip), %rdi     # 0x5ebac
jmp 0xe907
leaq 0x5028c(%rip), %rdi     # 0x5eb93
callq 0xd8a0
xorl %edi, %edi
callq 0xd690
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0xe92c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd550
movq %rbx, %rdi
callq 0xd9c0
// File: /workspace/github_cpp_makefile_star2_O1/Kingsford-Group[P]ghost2/src/config.hpp
// Function: ConfigData::print()
void ConfigData::print()
{
  printf("Ggraph: %s\nHgraph: %s\nGsigs: %s\nHsigs: %s\nSeqScores: %s\n"
          "nneighbors: %d\nsearchiter: %d\nbeta: %lf\nratio: %lf\n", 
          Ggraph.c_str(), 
          Hgraph.c_str(), 
          Gsigs.c_str(), 
          Hsigs.c_str(), 
          SeqScores.c_str(), 
          nneighbors,
          searchiter, 
          beta, 
          ratio);
}

// Assembly:
pushq %rax
movq (%rdi), %rsi
movq 0x20(%rdi), %rdx
movq 0x40(%rdi), %rcx
movq 0x60(%rdi), %r8
movq 0x80(%rdi), %r9
movl 0x108(%rdi), %r10d
movl 0x10c(%rdi), %r11d
movsd 0x118(%rdi), %xmm0
movsd 0x120(%rdi), %xmm1
leaq 0x3ad0f(%rip), %rdi     # 0x4967f
movb $0x2, %al
pushq %r11
pushq %r10
callq 0xd060
addq $0x10, %rsp
popq %rax
retq
nop