LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/canzarlab[P]Trajan/src/EditDist.cpp
// Function: GenPerms(std::vector<newick_node*, std::allocator<newick_node*>>&, int, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&, std::vector<std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>, std::allocator<std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>>>&)
void GenPerms(vn& v, int k, vvi& S, vvvi& P)
{
    if (k == v.size())
    {
        P.push_back(S);
        return;
    }
    int c = 0;
    for (newick_child* child = v[k]->child; child; child = child->next)
        c++;

    vector<int> I(c);
    iota(I.begin(), I.end(), 0);
    do
    {
        S.push_back(I);
        GenPerms(v, k + 1, S, P);
        S.pop_back();
    } while (next_permutation(I.begin(), I.end()));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movslq %esi, %rax
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %rax, %rdx
jne 0x4b80b
movq %r14, %rdi
movq %rbx, %rsi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4d560
movl %esi, %ebp
movq %rdi, %r15
movq (%rcx,%rax,8), %rax
xorl %esi, %esi
movq (%rax), %rax
testq %rax, %rax
je 0x4b827
addq $0x8, %rax
incq %rsi
jmp 0x4b816
leaq 0x8(%rsp), %r12
leaq 0x7(%rsp), %rdx
movq %r12, %rdi
callq 0xd4b4
movq (%r12), %rax
movq 0x8(%r12), %rcx
xorl %edx, %edx
cmpq %rcx, %rax
je 0x4b853
movl %edx, (%rax)
incl %edx
addq $0x4, %rax
jmp 0x4b844
incl %ebp
leaq 0x8(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4d58c
movq %r15, %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x4b7cc
movq %rbx, %rdi
callq 0x4d5b8
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x4dff3
testb %al, %al
jne 0x4b85a
leaq 0x8(%rsp), %rdi
callq 0xd85a
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xd85a
movq %rbx, %rdi
callq 0x9640
// File: /workspace/github_cpp_makefile_star2_O2/canzarlab[P]Trajan/src/EditDist.cpp
// Function: CalcSubtreeSizes(newick_node*, std::map<newick_node*, int, std::less<newick_node*>, std::allocator<std::pair<newick_node* const, int>>>&)
int CalcSubtreeSizes(newick_node* root, map<newick_node*, int>& S)
{
    int s = 1;
    for (newick_child* child = root->child; child; child = child->next)
        s += CalcSubtreeSizes(child->node, S);
    return S[root] = s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %r15
movq %rdi, 0x8(%rsp)
pushq $0x1
popq %rbx
movq (%r15), %r15
testq %r15, %r15
je 0x4bae4
movq (%r15), %rdi
movq %r14, %rsi
callq 0x4bab2
addl %eax, %ebx
addq $0x8, %r15
jmp 0x4bac9
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x4d5cc
movl %ebx, (%rax)
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/canzarlab[P]Trajan/src/EditDist.cpp
// Function: GetLastRemoved(newick_node*, std::map<newick_node*, int, std::less<newick_node*>, std::allocator<std::pair<newick_node* const, int>>>&, int, int)
newick_node* GetLastRemoved(newick_node* root, map<newick_node*, int>& R, int i, int j)
{
    list<newick_node*> D(1, root);
    int ii = 0;
    while (i--)
    {
        root = D.front();
        R[root] = ii++;
        D.pop_front();
        auto it = D.begin();
        for (newick_child* child = root->child; child; child = child->next)
            D.insert(it, child->node);
    }
    while (j--)
    {
        root = D.back();
        D.pop_back();
        for (newick_child* child = root->child; child; child = child->next)
            D.push_back(child->node);
    }
    return root;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, 0x30(%rsp)
leaq 0x10(%rsp), %rdx
movq %rdi, (%rdx)
leaq 0x18(%rsp), %r12
pushq $0x1
popq %rsi
leaq 0xf(%rsp), %rcx
movq %r12, %rdi
callq 0x37a52
xorl %r14d, %r14d
subl $0x1, %ebp
jb 0x4be02
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4d5cc
movl %r14d, (%rax)
incl %r14d
movq %r12, %rdi
callq 0x4d61c
movq 0x18(%rsp), %r13
movq 0x10(%rsp), %r15
movq (%r15), %r15
testq %r15, %r15
je 0x4bdac
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x4d624
addq $0x8, %r15
jmp 0x4bde6
leaq 0x18(%rsp), %r14
subl $0x1, %ebx
jb 0x4be40
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
movq %r14, %rdi
callq 0x4d652
movq 0x10(%rsp), %r15
movq (%r15), %r15
testq %r15, %r15
je 0x4be07
movq %r14, %rdi
movq %r15, %rsi
callq 0x37cfa
addq $0x8, %r15
jmp 0x4be27
movq 0x10(%rsp), %rbx
leaq 0x18(%rsp), %rdi
callq 0x37a86
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4be65
jmp 0x4be65
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x37a86
movq %rbx, %rdi
callq 0x9640
// File: /workspace/github_cpp_makefile_star2_O2/canzarlab[P]Trajan/src/EditDist.cpp
// Function: GenTables(newick_node*, int, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&)
void GenTables(newick_node* root, int n, vvi& L, vvi& T, vvi& D)
{
    map<newick_node*, int> S, R;
    CalcSubtreeSizes(root, S);
    for (int i = n; i >= 0; --i)
        for (int j = 0; j <= n; ++j)
            if (newick_node* node = (i + j && i + j <= n ? GetLastRemoved(root, R, i, j) : nullptr))
                L[i][j] = stoi(node->taxon), T[i][j] = S[node], D[i][j] = R[node];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r8, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movl %esi, %r12d
leaq 0x60(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x30(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x58(%rsp), %rsi
movq %rdi, 0x20(%rsp)
callq 0x4bab2
leal 0x1(%r12), %r14d
movslq %r12d, %rbp
testl %ebp, %ebp
js 0x4bfa6
movl %ebp, %r13d
imulq $0x18, %r13, %rbx
negq %r13
xorl %r15d, %r15d
cmpq %r15, %r14
je 0x4bf9e
cmpq %r15, %r13
sete %al
leal (%r15,%rbp), %ecx
cmpl %r12d, %ecx
setg %cl
orb %al, %cl
jne 0x4bf96
movq 0x20(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
movl %r15d, %ecx
callq 0x4bd75
movq %rax, (%rsp)
testq %rax, %rax
je 0x4bf96
addq $0x8, %rax
movq %rax, %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0xb789
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
movq (%rcx,%rbx), %rcx
movl %eax, (%rcx,%r15,4)
leaq 0x58(%rsp), %rdi
movq %rsp, %rsi
callq 0x4d5cc
movl (%rax), %eax
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
movq (%rcx,%rbx), %rcx
movl %eax, (%rcx,%r15,4)
leaq 0x28(%rsp), %rdi
movq %rsp, %rsi
callq 0x4d5cc
movl (%rax), %eax
movq 0x8(%rsp), %rcx
movq (%rcx), %rcx
movq (%rcx,%rbx), %rcx
movl %eax, (%rcx,%r15,4)
incq %r15
jmp 0x4befd
decq %rbp
jmp 0x4bee8
leaq 0x28(%rsp), %rdi
callq 0x4d81e
leaq 0x58(%rsp), %rdi
callq 0x4d81e
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4bfce
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4d81e
leaq 0x58(%rsp), %rdi
callq 0x4d81e
movq %rbx, %rdi
callq 0x9640
// File: /workspace/github_cpp_makefile_star2_O2/Ripser[P]ripser/ripser.cpp
// Function: check_overflow(long)
void check_overflow(index_t i) {
	if
#ifdef USE_COEFFICIENTS
	    (i > max_simplex_index)
#else
	    (i < 0)
#endif
		throw std::overflow_error("simplex index " + std::to_string((uint64_t)i) +
		                          " in filtration is larger than maximum index " +
		                          std::to_string(max_simplex_index));
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0xa0, %rsp
testq %rdi, %rdi
js 0x2508
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rdi, %r14
pushq $0x10
popq %rdi
callq 0x20f0
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x3cf5
leaq 0x9b5b(%rip), %rsi      # 0xc085
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x3cd1
leaq 0x9b54(%rip), %rdx      # 0xc094
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x3cb2
movq %rsp, %rdi
movabsq $0x7fffffffffffff, %rsi # imm = 0x7FFFFFFFFFFFFF
callq 0x3d37
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
movq %rsp, %rdx
callq 0x3c4b
movb $0x1, %bpl
leaq 0x80(%rsp), %rsi
movq %rbx, %rdi
callq 0x2130
xorl %ebp, %ebp
movq 0x10a16(%rip), %rsi     # 0x12fa8
movq 0x10a07(%rip), %rdx     # 0x12fa0
movq %rbx, %rdi
callq 0x22e0
movq %rax, %r14
leaq 0x80(%rsp), %rdi
callq 0x2388
jmp 0x25b9
movq %rax, %r14
movb $0x1, %bpl
movq %rsp, %rdi
callq 0x2388
jmp 0x25c9
movq %rax, %r14
movb $0x1, %bpl
leaq 0x60(%rsp), %rdi
callq 0x2388
jmp 0x25db
movq %rax, %r14
movb $0x1, %bpl
leaq 0x40(%rsp), %rdi
callq 0x2388
jmp 0x25ed
movq %rax, %r14
movb $0x1, %bpl
leaq 0x20(%rsp), %rdi
callq 0x2388
testb %bpl, %bpl
jne 0x2601
jmp 0x2609
movq %rax, %r14
movq %rbx, %rdi
callq 0x2190
movq %r14, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O2/Ripser[P]ripser/ripser.cpp
// Function: is_prime(unsigned short)
bool is_prime(const coefficient_t n) {
	if (!(n & 1) || n < 2) return n == 2;
	for (coefficient_t p = 3; p <= n / p; p += 2)
		if (!(n % p)) return false;
	return true;
}

// Assembly:
testb $0x1, %dil
sete %al
cmpw $0x2, %di
setb %cl
orb %al, %cl
je 0x262b
cmpw $0x2, %di
sete %al
retq
pushq $0x3
popq %rcx
movzwl %cx, %ecx
movl %edi, %eax
xorl %edx, %edx
divl %ecx
cmpl %eax, %ecx
seta %al
ja 0x2645
addl $0x2, %ecx
testl %edx, %edx
jne 0x262e
retq
// File: /workspace/github_cpp_makefile_star2_O2/Ripser[P]ripser/ripser.cpp
// Function: multiplicative_inverse_vector(unsigned short)
std::vector<coefficient_t> multiplicative_inverse_vector(const coefficient_t m) {
	std::vector<coefficient_t> inverse(m);
	inverse[1] = 1;
	// m = a * (m / a) + m % a
	// Multipying with inverse(a) * inverse(m % a):
	// 0 = inverse(m % a) * (m / a) + inverse(a)  (mod m)
	for (coefficient_t a = 2; a < m; ++a) inverse[a] = m - (inverse[m % a] * (m / a)) % m;
	return inverse;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl %esi, %r14d
leaq 0xf(%rsp), %rdx
movq %r14, %rsi
callq 0x3d98
movq (%rbx), %rcx
movw $0x1, 0x2(%rcx)
pushq $0x2
popq %rsi
cmpq %r14, %rsi
jae 0x2699
movl %ebp, %eax
xorl %edx, %edx
divw %si
movzwl %dx, %edx
movzwl (%rcx,%rdx,2), %edx
movzwl %ax, %eax
imull %edx, %eax
xorl %edx, %edx
divl %ebp
movl %ebp, %eax
subl %edx, %eax
movw %ax, (%rcx,%rsi,2)
incq %rsi
jmp 0x266f
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x20(%rsp), %rdi
pushq $0x2
popq %rsi
leaq 0x8(%rsp), %rdx
callq 0x3dea
movq 0x30(%r14), %rax
movq 0x50(%r14), %rcx
movq 0x30(%rcx), %rcx
movq (%rcx,%rax,8), %r15
leaq 0x8(%rsp), %r12
pushq $0x1
popq %r13
leaq 0x18(%rsp), %rbp
testq %r15, %r15
jle 0x286d
movq 0x20(%r14), %r8
subq 0x18(%r14), %r8
decq %r15
sarq $0x3, %r8
movq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r13, %rcx
movq %rbp, %r9
callq 0x3e3c
movq 0x20(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rax
xorps %xmm0, %xmm0
cmpq %rax, %rcx
je 0x2847
movq 0x18(%r14), %rdx
movq %rax, %rsi
cmovgq %rcx, %rsi
cmovlq %rcx, %rax
movq (%rdx,%rsi,8), %rcx
movss (%rcx,%rax,4), %xmm0
movss 0x40(%r14), %xmm1
ucomiss %xmm0, %xmm1
jb 0x27e9
movss %xmm0, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5014
jmp 0x27e9
leaq 0x20(%rsp), %rdi
callq 0x4d06
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x289d
jmp 0x2890
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x4d06
movq %rbx, %rdi
callq 0x5006
movq %r14, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %rsi, %r14
movq %rdi, %rbx
andq $0x0, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %r12d, %r12d
leaq 0x8(%rsp), %r15
cmpq 0x20(%r14), %r12
jge 0x292c
movq (%r14), %rax
imulq $0x18, %r12, %rcx
movq (%rax,%rcx), %r13
movq 0x8(%rax,%rcx), %rbp
cmpq %rbp, %r13
je 0x2927
movq (%r13), %rax
cmpq %rax, %r12
jle 0x2921
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 %rbx, %rdi
movq %r15, %rsi
callq 0x5014
addq $0x10, %r13
jmp 0x28eb
incq %r12
jmp 0x28d5
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
callq 0x5006
movq %r14, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O2/Ripser[P]ripser/ripser.cpp
// Function: read_point_cloud(std::istream&)
euclidean_distance_matrix read_point_cloud(std::istream& input_stream) {
	std::vector<std::vector<value_t>> points;

	std::string line;
	value_t value;
	while (std::getline(input_stream, line)) {
		std::vector<value_t> point;
		std::istringstream s(line);
		while (s >> value) {
			point.push_back(value);
			s.ignore();
		}
		if (!point.empty()) points.push_back(point);
		assert(point.size() == points.front().size());
	}

	euclidean_distance_matrix eucl_dist(std::move(points));
	index_t n = eucl_dist.size();
	std::cout << "point cloud with " << n << " points in dimension "
	          << eucl_dist.points.front().size() << std::endl;

	return eucl_dist;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, %r14
movq %rdi, 0x20(%rsp)
leaq 0x30(%rsp), %rcx
andq $0x0, 0x10(%rcx)
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, (%rcx)
movb $0x0, (%rax)
leaq 0x48(%rsp), %r12
leaq 0x68(%rsp), %r13
pushq $0x8
popq %rbp
leaq 0x2c(%rsp), %rbx
movq %rsp, %r15
movq %r14, %rdi
movq %r12, %rsi
callq 0x2050
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2a2e
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movq %r13, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0x22c0
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2370
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2a01
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3ebe
movq %r13, %rdi
callq 0x2330
jmp 0x29d3
movq (%rsp), %rax
cmpq 0x8(%rsp), %rax
je 0x2a19
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x3ee0
movq %r13, %rdi
callq 0x20d0
movq %r15, %rdi
callq 0x4aaa
jmp 0x29a0
leaq 0x30(%rsp), %rsi
movq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x3f0c
movq (%r15), %r14
movq 0x8(%r15), %rbx
movq 0x1056a(%rip), %rdi     # 0x12fb8
leaq 0x966c(%rip), %rsi      # 0xc0c1
callq 0x21f0
movq %rax, %rdi
subq %r14, %rbx
pushq $0x18
popq %rcx
movq %rbx, %rax
cqto
idivq %rcx
movq %rax, %rsi
callq 0x21e0
leaq 0x9659(%rip), %rsi      # 0xc0d3
movq %rax, %rdi
callq 0x21f0
movq (%r15), %rcx
movq 0x8(%rcx), %rsi
subq (%rcx), %rsi
sarq $0x2, %rsi
movq %rax, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20e0
leaq 0x48(%rsp), %rdi
callq 0x2388
leaq 0x30(%rsp), %rdi
callq 0x3f7a
movq %r15, %rax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2adf
movq %rax, %rbx
movq %r15, %rdi
callq 0x3f7a
jmp 0x2af9
jmp 0x2ae4
movq %rax, %rbx
jmp 0x2af1
movq %rax, %rbx
jmp 0x2af9
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x20d0
movq %rsp, %rdi
callq 0x4aaa
leaq 0x48(%rsp), %rdi
callq 0x2388
leaq 0x30(%rsp), %rdi
callq 0x3f7a
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O2/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)
andq $0x0, 0x10(%r15)
leaq 0xc(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x2370
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2d92
movq %r15, %rdi
movq %r12, %rsi
callq 0x3ebe
movq %r14, %rdi
callq 0x2330
jmp 0x2d64
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x4002
leaq 0x10(%rsp), %rdi
callq 0x4aaa
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x2dba
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4aaa
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O2/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)
andq $0x0, 0x10(%r15)
leaq 0xc(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x2370
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2e24
movq %r15, %rdi
movq %r12, %rsi
callq 0x3ebe
movq %r14, %rdi
callq 0x2330
jmp 0x2df6
leaq 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x40b6
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x416a
leaq 0x28(%rsp), %rdi
callq 0x4222
leaq 0x10(%rsp), %rdi
callq 0x4aaa
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4222
jmp 0x2e77
jmp 0x2e74
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4aaa
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O2/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 $0x1d8, %rsp            # imm = 0x1D8
movq %rsi, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
leaq 0x20(%rsp), %r15
andq $0x0, 0x10(%r15)
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
movb $0x0, (%rax)
xorl %r14d, %r14d
leaq 0x38(%rsp), %r12
leaq 0x58(%rsp), %r13
leaq 0x1c(%rsp), %rbx
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x2050
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2f44
movq %r13, %rdi
movq %r12, %rsi
pushq $0x8
popq %rdx
callq 0x22c0
movl %r14d, %ebp
subl $0x1, %ebp
jb 0x2f37
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2370
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2f37
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3ebe
movq %r13, %rdi
callq 0x2330
jmp 0x2f04
movq %r13, %rdi
callq 0x20d0
incl %r14d
jmp 0x2ed8
leaq 0x20(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x4002
leaq 0x38(%rsp), %rdi
callq 0x2388
leaq 0x20(%rsp), %rdi
callq 0x4aaa
movq %rbx, %rax
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f83
jmp 0x2f83
movq %rax, %rbx
jmp 0x2f95
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x20d0
leaq 0x38(%rsp), %rdi
callq 0x2388
leaq 0x20(%rsp), %rdi
callq 0x4aaa
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O2/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 0x4238
movabsq $0x1e0d74600, %rcx      # imm = 0x1E0D74600
cmpq %rcx, %rax
jne 0x309f
movq %rbx, 0x10(%rsp)
movq %r14, %rdi
callq 0x4238
cmpq $0x7, %rax
jne 0x30af
movq %r14, %rdi
callq 0x4238
movq %rax, %r15
leaq 0x20(%rsp), %r12
andq $0x0, 0x10(%r12)
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
xorl %ebp, %ebp
testq %rax, %rax
movl $0x0, %eax
cmovgq %r15, %rax
movq %rax, 0x18(%rsp)
leaq 0xc(%rsp), %r13
cmpq 0x18(%rsp), %rbp
je 0x3071
xorl %ebx, %ebx
cmpq %rbx, %r15
je 0x306c
cmpq %rbx, %rbp
jbe 0x305f
movq %r14, %rdi
callq 0x426b
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x6086
jmp 0x3067
movq %r14, %rdi
callq 0x426b
incq %rbx
jmp 0x3036
incq %rbp
jmp 0x302d
leaq 0x20(%rsp), %rsi
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x4002
leaq 0x20(%rsp), %rdi
callq 0x4aaa
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xff4a(%rip), %rdi      # 0x12ff0
leaq 0x903c(%rip), %rsi      # 0xc0e9
jmp 0x30bd
movq 0xff3a(%rip), %rdi      # 0x12ff0
leaq 0x9061(%rip), %rsi      # 0xc11e
callq 0x21f0
movq %rax, %rdi
callq 0x20e0
pushq $-0x1
popq %rdi
callq 0x2220
jmp 0x30d6
jmp 0x30d6
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4aaa
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O2/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 0x31e2
movl %edx, %eax
leaq 0x8ec7(%rip), %rcx      # 0xc058
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
callq 0x2d3d
jmp 0x31ea
movq %rbx, %rdi
callq 0x2fb1
jmp 0x31ea
movq %rbx, %rdi
callq 0x2e89
jmp 0x31ea
movq %rsp, %r14
movq %r14, %rdi
callq 0x2951
movq %rbx, %rdi
movq %r14, %rsi
callq 0x42d6
movq %rsp, %rdi
callq 0x3f7a
jmp 0x31ea
movq %rbx, %rdi
callq 0x2dcf
jmp 0x31ea
movq %rbx, %rdi
callq 0x30eb
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x3f7a
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O2/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 %r8, %rax
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r14
decq %rax
imulq $0x18, %rcx, %rbp
incq %r12
addq $0x18, %rbp
cmpq $0x1, %r12
jle 0x3ea1
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %rax, %rcx
callq 0x4f3a
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
decq %r12
addq $-0x18, %rbp
jmp 0x3e67
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_O2/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
pushq $0x8
popq %rdx
callq 0x2230
xorps %xmm0, %xmm0
cmpq $0x8, 0x8(%rax)
jne 0x429c
cmpb $0x1, 0xef80(%rip)      # 0x13208
jne 0x4297
leaq 0x8(%rsp), %rsi
movq %rsp, %rdi
callq 0x606b
movsd (%rsp), %xmm0
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rsi
movaps %xmm0, (%rsi)
andq $0x0, 0x10(%rsi)
movq %rsp, %rdx
movaps %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
callq 0x6510
leaq 0x70(%rsp), %r13
pushq $0x2
popq %r14
leaq 0x40(%rsp), %r15
movq %rsp, %r12
leaq -0x1(%r14), %rbp
cmpq 0x28(%rbx), %rbp
jg 0x4566
movq %r13, 0x40(%rsp)
movq $0x1, 0x48(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%r13)
movl $0x3f800000, 0x60(%rsp) # imm = 0x3F800000
movups %xmm0, -0x8(%r13)
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
sarq $0x4, %rsi
movq %r15, %rdi
callq 0x868e
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rbp, %rcx
callq 0x6764
cmpq 0x28(%rbx), %rbp
jge 0x4559
movq %rbx, %rdi
leaq 0x20(%rsp), %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %r14, %r8
callq 0x6a94
movq %r15, %rdi
callq 0x9cb0
incq %r14
jmp 0x44ea
movq %rsp, %rdi
callq 0x5006
leaq 0x20(%rsp), %rdi
callq 0x5006
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x4599
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x9cb0
movq %rsp, %rdi
callq 0x5006
leaq 0x20(%rsp), %rdi
callq 0x5006
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O2/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, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %rax
subq (%rsi), %rax
pushq $0x18
popq %rbp
cqto
idivq %rbp
leaq 0x8(%rsp), %rdx
movq %rax, %rsi
callq 0x9d22
andq $0x0, 0x18(%rbx)
movq (%rbx), %rdi
movq 0x8(%rbx), %rcx
xorl %r12d, %r12d
movq %rcx, %rax
subq %rdi, %rax
cqto
idivq %rbp
cmpq %rax, %r12
jae 0x46a2
imulq $0x18, %r12, %r15
xorl %r13d, %r13d
movq %rcx, %rax
subq %rdi, %rax
cqto
idivq %rbp
cmpq %rax, %r13
jae 0x469d
cmpq %r13, %r12
je 0x4694
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x616e
movss 0x4(%rsp), %xmm1
ucomiss %xmm0, %xmm1
movq (%rbx), %rdi
jb 0x4694
incq 0x18(%rbx)
addq %r15, %rdi
movq %r13, 0x8(%rsp)
movss %xmm0, 0x10(%rsp)
leaq 0x8(%rsp), %rsi
callq 0x56be
movq (%rbx), %rdi
incq %r13
movq 0x8(%rbx), %rcx
jmp 0x4644
incq %r12
jmp 0x462d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x46b3
movq %rax, %r14
movq %rbx, %rdi
callq 0x3fe0
movq %r14, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O2/Ripser[P]ripser/ripser.cpp
// Function: long get_max<ripser<compressed_distance_matrix<(compressed_matrix_layout)0>>::get_max_vertex(long, long, long) const::'lambda'(long)>(long, long, ripser<compressed_distance_matrix<(compressed_matrix_layout)0>>::get_max_vertex(long, long, long) const::'lambda'(long))
index_t get_max(index_t top, const index_t bottom, const Predicate pred) {
	if (!pred(top)) {
		index_t count = top - bottom;
		while (count > 0) {
			index_t step = count >> 1, mid = top - step;
			if (!pred(mid)) {
				top = mid - 1;
				count -= step + 1;
			} else
				count = step;
		}
	}
	return top;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4fe4
testb %al, %al
je 0x4fac
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rbx, %r12
subq %r15, %r12
testq %r12, %r12
jle 0x4f9f
movq %r12, %r13
shrq %r13
movq %rbx, %r15
subq %r13, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x4fe4
testb %al, %al
jne 0x4fde
decq %r15
notq %r13
addq %r12, %r13
movq %r15, %rbx
movq %r13, %r12
jmp 0x4fb2
nop
// File: /workspace/github_cpp_makefile_star2_O2/Ripser[P]ripser/ripser.cpp
// Function: euclidean_distance_matrix::operator()(long, long) const
value_t operator()(const index_t i, const index_t j) const {
		assert(i < points.size());
		assert(j < points.size());
		return std::sqrt(std::inner_product(
		    points[i].begin(), points[i].end(), points[j].begin(), value_t(), std::plus<value_t>(),
		    [](value_t u, value_t v) { return (u - v) * (u - v); }));
	}

// Assembly:
pushq %rax
movq (%rdi), %rax
imulq $0x18, %rsi, %rcx
movq (%rax,%rcx), %rdi
movq 0x8(%rax,%rcx), %rsi
imulq $0x18, %rdx, %rcx
movq (%rax,%rcx), %rdx
xorps %xmm0, %xmm0
callq 0x61a4
ucomiss 0x5ee6(%rip), %xmm0     # 0xc07c
jb 0x619e
sqrtss %xmm0, %xmm0
popq %rax
retq
popq %rax
jmp 0x2320
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
incq %rsi
leaq 0x20(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rcx
callq 0x62f6
leaq 0x1(%r14), %r12
leaq 0x8(%rsp), %rdx
leaq 0x6(%rsp), %rcx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x634c
leaq 0x8(%rsp), %rdi
callq 0x4d06
xorl %r13d, %r13d
pushq $0x1
popq %rbp
cmpq %r15, %r13
jg 0x62bf
movq (%rbx), %rax
movq (%rax), %rcx
movq $0x1, (%rcx,%r13,8)
cmpq %r13, %r12
movq %r13, %rcx
cmovlq %r12, %rcx
movq %rax, %rsi
movq %rbp, %rdx
cmpq %rcx, %rdx
jge 0x6287
movq (%rsi), %rdi
movq 0x18(%rsi), %r8
movq -0x8(%r8,%r13,8), %r9
addq -0x8(%rdi,%r13,8), %r9
addq $0x18, %rsi
movq %r9, (%r8,%r13,8)
incq %rdx
jmp 0x6264
cmpq %r14, %r13
jg 0x629c
imulq $0x18, %r13, %rcx
movq (%rax,%rcx), %rcx
movq $0x1, (%rcx,%r13,8)
movq %r13, %rcx
shrq %rcx
cmpq %r14, %rcx
cmovgeq %r14, %rcx
imulq $0x18, %rcx, %rcx
movq (%rax,%rcx), %rax
movq (%rax,%r13,8), %rdi
callq 0x24ec
incq %r13
jmp 0x6241
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x4d06
jmp 0x62ed
movq %rax, %r14
jmp 0x62ed
movq %rax, %r14
movq %rbx, %rdi
callq 0x4cb0
movq %r14, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O2/Ripser[P]ripser/ripser.cpp
// Function: union_find::find(long)
index_t find(index_t x) {
		index_t y = x, z;
		while ((z = parent[y]) != y) y = z;
		while ((z = parent[x]) != y) {
			parent[x] = y;
			x = z;
		}
		return z;
	}

// Assembly:
movq (%rdi), %rcx
movq %rsi, %rdx
movq %rdx, %rax
movq (%rcx,%rdx,8), %rdx
cmpq %rax, %rdx
jne 0x6dd0
jmp 0x6de5
movq %rax, (%rcx,%rsi,8)
movq %rdx, %rsi
movq (%rcx,%rsi,8), %rdx
cmpq %rax, %rdx
jne 0x6dde
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rdi, %r14
callq 0x6dca
movq %rax, %rbx
movq %r14, %rdi
movq %r15, %rsi
callq 0x6dca
cmpq %rax, %rbx
je 0x6e3b
movq (%r14), %rdx
movq 0x18(%r14), %rcx
movb (%rcx,%rbx), %sil
cmpb (%rcx,%rax), %sil
jbe 0x6e2a
movq %rbx, (%rdx,%rax,8)
jmp 0x6e3b
movq %rax, (%rdx,%rbx,8)
movb (%rcx,%rbx), %dl
cmpb (%rcx,%rax), %dl
jne 0x6e3b
incb %dl
movb %dl, (%rcx,%rax)
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x7b96
cmpq $-0x1, %rax
je 0x6e89
movq %rax, %rbx
incq %r15
movq %r12, %rdi
movss %xmm0, 0x4(%rsp)
movss 0x4(%rsp), %xmm0
movq %rax, %rsi
movq %r15, %rdx
callq 0x7ca8
movss 0x4(%rsp), %xmm0
cmpq %r14, %rax
je 0x6e8f
pushq $-0x1
popq %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_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movb 0xb707(%rip), %al       # 0x132b0
testb %al, %al
movss %xmm0, 0x4(%rsp)
je 0x7c03
leaq 0xb656(%rip), %r15      # 0x13210
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7dcc
pushq $0x1
popq %rbp
pushq $-0x1
popq %rbx
movq %r15, %rdi
movl %ebp, %esi
callq 0x7e84
testb %al, %al
je 0x7bf2
movq %r15, %rdi
callq 0x7fe8
ucomiss 0x4(%rsp), %xmm0
jne 0x7bce
jp 0x7bce
movq %rax, %rbx
jmp 0x7bf5
xorps %xmm0, %xmm0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %r15
leaq 0xb6a3(%rip), %rdi      # 0x132b0
callq 0x2310
movss 0x4(%rsp), %xmm0
testl %eax, %eax
je 0x7bb3
andq $0x0, 0xb624(%rip)      # 0x13248
leaq 0xb5e5(%rip), %rsi      # 0x13210
xorps %xmm0, %xmm0
movups %xmm0, 0xb5f3(%rip)     # 0x13228
movups %xmm0, 0xb5f8(%rip)     # 0x13234
movzwl 0x38(%r15), %eax
movw %ax, 0xb608(%rip)       # 0x13250
movq %r15, 0xb609(%rip)      # 0x13258
leaq 0x40(%r15), %rax
movq %rax, 0xb606(%rip)      # 0x13260
movups %xmm0, 0xb607(%rip)     # 0x13268
movups %xmm0, 0xb610(%rip)     # 0x13278
movups %xmm0, 0xb619(%rip)     # 0x13288
movups %xmm0, 0xb61e(%rip)     # 0x13294
movq %r15, 0xb62b(%rip)      # 0x132a8
leaq 0x124(%rip), %rdi       # 0x7da8
leaq 0xb53d(%rip), %rdx      # 0x131c8
callq 0x21c0
leaq 0xb619(%rip), %rdi      # 0x132b0
callq 0x2160
movss 0x4(%rsp), %xmm0
jmp 0x7bb3
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movb 0xb64b(%rip), %al       # 0x13308
testb %al, %al
movss %xmm0, 0xc(%rsp)
je 0x7d4b
movq %r14, 0xb5e6(%rip)      # 0x132b8
andq $0x0, 0xb5e6(%rip)      # 0x132c0
movq 0xb61f(%rip), %rax      # 0x13300
movq 0x20(%rax), %rax
decq %rax
movq %rax, 0xb5d9(%rip)      # 0x132c8
movq %rbx, 0xb5da(%rip)      # 0x132d0
movss %xmm0, 0xb5da(%rip)     # 0x132d8
movq %r14, 0xb5db(%rip)      # 0x132e0
movq %rbx, 0xb5dc(%rip)      # 0x132e8
pushq $-0x1
popq %r14
leaq 0xb5a1(%rip), %r15      # 0x132b8
testq %rbx, %rbx
js 0x7d36
movq %r15, %rdi
callq 0x8372
ucomiss 0xc(%rsp), %xmm0
jne 0x7d2d
jnp 0x7d3b
movq 0xb59c(%rip), %rbx      # 0x132d0
jmp 0x7d17
xorps %xmm0, %xmm0
jmp 0x7d3e
movq %rax, %r14
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rdi, %r15
leaq 0xb5b3(%rip), %rdi      # 0x13308
callq 0x2310
movss 0xc(%rsp), %xmm0
testl %eax, %eax
je 0x7ccb
leaq 0xb549(%rip), %rdi      # 0x132b8
xorl %esi, %esi
movq %r15, %rdx
callq 0x8360
leaq 0xb588(%rip), %rdi      # 0x13308
callq 0x2160
movss 0xc(%rsp), %xmm0
jmp 0x7ccb
movq %rax, %rbx
leaq 0xb56e(%rip), %rdi      # 0x13308
callq 0x2150
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O2/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, %rbx
movq %rdi, %r14
movq %rsi, (%rdi)
andq $0x0, 0x8(%rdi)
leaq 0x1(%rdx), %r15
movq %r15, 0x10(%rdi)
movss %xmm0, 0x30(%rdi)
movq %rsi, 0x38(%rdi)
addq $0x18, %rdi
movq %r15, %rsi
callq 0x8030
movq 0x98(%r14), %rsi
movq 0x20(%rsi), %r8
movq (%r14), %rdx
movq 0x20(%r14), %rax
leaq 0x8(%rsp), %r9
movq %rax, (%r9)
movq %rsp, %rdi
movq %rbx, %rcx
callq 0x6d48
leaq 0x58(%r14), %rdi
movq %r15, %rsi
callq 0x8062
leaq 0x70(%r14), %rdi
movq %r15, %rsi
callq 0x8062
xorl %eax, %eax
cmpq %rbx, %rax
jg 0x7e79
movq 0x18(%r14), %rcx
movq 0x48(%r14), %rdx
movq (%rdx), %rdx
imulq $0x18, (%rcx,%rax,8), %rcx
movq 0x8(%rdx,%rcx), %rdx
movq 0x58(%r14), %rsi
movq %rdx, (%rsi,%rax,8)
movq 0x48(%r14), %rdx
movq 0x70(%r14), %rsi
movq (%rdx), %rdx
movq (%rdx,%rcx), %rcx
movq %rcx, (%rsi,%rax,8)
incq %rax
jmp 0x7e3f
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Ripser[P]ripser/ripser.cpp
// Function: ripser<sparse_distance_matrix>::simplex_coboundary_enumerator::has_next(bool)
bool has_next(bool all_cofacets = true) {
		for (auto &it0 = neighbor_it[0], &end0 = neighbor_end[0]; it0 != end0; ++it0) {
			neighbor = *it0;
			for (size_t idx = 1; idx < neighbor_it.size(); ++idx) {
				auto &it = neighbor_it[idx], end = neighbor_end[idx];
				while (get_index(*it) > get_index(neighbor))
					if (++it == end) return false;
				if (get_index(*it) != get_index(neighbor))
					goto continue_outer;
				else
					neighbor = std::max(neighbor, *it);
			}
			while (k > 0 && vertices[k - 1] > get_index(neighbor)) {
				if (!all_cofacets) return false;
				idx_below -= binomial_coeff(vertices[k - 1], k);
				idx_above += binomial_coeff(vertices[k - 1], k + 1);
				--k;
			}
			return true;
		continue_outer:;
		}
		return false;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, 0xc(%rsp)
movq %rdi, %r14
movq 0x58(%rdi), %rbp
movq 0x70(%rdi), %rcx
leaq 0x88(%rdi), %rbx
movq (%rbp), %r12
pushq $0x1
popq %r15
movq %rbp, %rax
movq (%rcx), %r13
cmpq %r13, %r12
je 0x7f60
movq %rcx, 0x10(%rsp)
movq -0x10(%r12), %rcx
movq %rcx, 0x88(%r14)
movss -0x8(%r12), %xmm0
movss %xmm0, 0x90(%r14)
movq 0x60(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rdx, %r15
jae 0x7f7b
movq 0x70(%r14), %rdx
movq (%rdx,%r15,8), %rdx
movq (%rax,%r15,8), %rsi
addq $-0x10, %rsi
cmpq %rcx, (%rsi)
jle 0x7f1b
movq %rsi, (%rax,%r15,8)
leaq -0x10(%rsi), %r8
cmpq %rdx, %rsi
movq %r8, %rsi
jne 0x7f04
jmp 0x7f60
jne 0x7f46
movq %rbx, %rdi
callq 0x833f
movq (%rax), %rcx
movq %rcx, 0x88(%r14)
movss 0x8(%rax), %xmm0
movss %xmm0, 0x90(%r14)
incq %r15
movq 0x58(%r14), %rax
jmp 0x7ee0
movq (%rbp), %r12
addq $-0x10, %r12
movq %r12, (%rbp)
movq 0x10(%rsp), %rcx
pushq $0x1
popq %r15
jmp 0x7eb3
xorl %r10d, %r10d
cmpq %r13, %r12
setne %al
andb %r10b, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r14), %rax
movq (%r14), %rdx
movq 0x8(%r14), %rsi
movq 0x18(%r14), %rdi
movl 0xc(%rsp), %ebp
xorb $0x1, %bpl
movq 0x50(%r14), %r8
imulq $0x18, %rax, %r9
testq %rax, %rax
jle 0x7fe0
movq -0x8(%rdi,%rax,8), %r11
cmpq %rcx, %r11
setle %r10b
movl %r10d, %ebx
orb %bpl, %bl
jne 0x7f63
movq (%r8), %r10
movq (%r10,%r9), %rbx
subq (%rbx,%r11,8), %rdx
movq %rdx, (%r14)
movq -0x8(%rdi,%rax,8), %r11
movq 0x18(%r10,%r9), %r10
addq (%r10,%r11,8), %rsi
decq %rax
movq %rsi, 0x8(%r14)
movq %rax, 0x10(%r14)
addq $-0x18, %r9
jmp 0x7f9a
movb $0x1, %r10b
jmp 0x7f63
// File: /workspace/github_cpp_makefile_star2_O2/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 0x7aca
movq %rax, 0x10(%rbx)
movq 0x40(%rbx), %rcx
movq (%rcx), %rcx
imulq $0x18, 0x18(%rbx), %rdx
movq 0x18(%rcx,%rdx), %rcx
movq 0x8(%rbx), %r14
movq 0x30(%rbx), %rdx
subq (%rcx,%rax,8), %r14
addq (%rbx), %r14
movq 0x48(%rbx), %rdi
decq %rdx
movq %r14, %rsi
callq 0x8436
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
movq 0x40(%rbx), %rdx
movq (%rdx), %rdx
imulq $0x18, %rcx, %rsi
movq 0x18(%rdx,%rsi), %rdi
movq (%rdi,%rax,8), %rdi
subq %rdi, (%rbx)
movq (%rdx,%rsi), %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
// File: /workspace/github_cpp_makefile_star2_O2/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, %r14
movq %rdi, %r15
addq $0x98, %rdi
leaq 0x1(%rdx), %rsi
callq 0x8030
movq 0x20(%r15), %r8
subq 0x18(%r15), %r8
movq 0xa0(%r15), %rax
sarq $0x3, %r8
leaq 0x8(%rsp), %r9
movq %rax, (%r9)
movq %rsp, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3e3c
movq 0x18(%r15), %rax
movq 0x98(%r15), %rcx
movss 0x1617(%rip), %xmm0     # 0xc078
xorl %edx, %edx
cmpq %rbx, %rdx
jg 0xaaa5
xorl %esi, %esi
cmpq %rsi, %rdx
je 0xaaa0
movq (%rcx,%rdx,8), %r8
movq (%rcx,%rsi,8), %rdi
xorps %xmm1, %xmm1
cmpq %rdi, %r8
je 0xaa94
movq %rdi, %r9
cmovgq %r8, %r9
cmovlq %r8, %rdi
movq (%rax,%r9,8), %r8
movss (%r8,%rdi,4), %xmm1
maxss %xmm0, %xmm1
incq %rsi
movaps %xmm1, %xmm0
jmp 0xaa6a
incq %rdx
jmp 0xaa63
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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
imulq $0x18, %rsi, %r15
movq (%rax,%r15), %rdi
movq 0x8(%rax,%r15), %rsi
movq %rsp, %rdx
movq %rbx, (%rdx)
andl $0x0, 0x8(%rdx)
callq 0x8540
movq (%r14), %rcx
movss 0x3b4f(%rip), %xmm0     # 0xc074
cmpq 0x8(%rcx,%r15), %rax
je 0x8536
cmpq %rbx, (%rax)
jne 0x8536
movss 0x8(%rax), %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq