LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: 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
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x78(%rbp)
callq 0x9aa30
movq -0x78(%rbp), %rcx
leaq -0x30(%rbp), %rdi
movl $0x1, %esi
leaq -0x8(%rbp), %rdx
callq 0xc11a0
jmp 0xfba4e
leaq -0x31(%rbp), %rdi
callq 0x10c60
movl $0x0, -0x48(%rbp)
movl -0x14(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x14(%rbp)
cmpl $0x0, %eax
je 0xfbb50
leaq -0x30(%rbp), %rdi
callq 0xfe580
movq (%rax), %rax
movq %rax, -0x8(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x84(%rbp)
incl %eax
movl %eax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x8(%rbp), %rsi
callq 0xfe460
movq %rax, -0x80(%rbp)
jmp 0xfbaa3
movq -0x80(%rbp), %rax
movl -0x84(%rbp), %ecx
movl %ecx, (%rax)
leaq -0x30(%rbp), %rdi
callq 0xfe5b0
leaq -0x30(%rbp), %rdi
callq 0xc0ea0
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
je 0xfbb4b
leaq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0xc10e0
movq -0x58(%rbp), %rdx
movq -0x60(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0xfe5e0
movq %rax, -0x90(%rbp)
jmp 0xfbafe
movq -0x90(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x58(%rbp)
jmp 0xfbad0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x31(%rbp), %rdi
callq 0x10c60
jmp 0xfbbd2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xc1100
jmp 0xfbbd2
jmp 0xfba5e
jmp 0xfbb52
movl -0x18(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x18(%rbp)
cmpl $0x0, %eax
je 0xfbbae
leaq -0x30(%rbp), %rdi
callq 0xc19d0
movq (%rax), %rax
movq %rax, -0x8(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xfe650
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x70(%rbp)
je 0xfbbac
movq -0x70(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0xc23a0
jmp 0xfbb9c
jmp 0xfbb9e
movq -0x70(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x70(%rbp)
jmp 0xfbb86
jmp 0xfbb52
movq -0x8(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xc1100
movq -0x98(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0xa7c0
nopl (%rax,%rax)
// File: 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:
subq $0xc8, %rsp
movq %rdi, 0xc0(%rsp)
cmpq $0x0, 0xc0(%rsp)
jge 0x27bb
movb $0x1, 0xf(%rsp)
movl $0x10, %edi
callq 0x2120
movq %rax, (%rsp)
movq 0xc0(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x5860
jmp 0x2675
leaq 0x1f9f9(%rip), %rsi     # 0x22075
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x5810
jmp 0x268d
leaq 0x1f9f0(%rip), %rdx     # 0x22084
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x57c0
jmp 0x26a8
leaq 0x10(%rsp), %rdi
movabsq $0x7fffffffffffff, %rsi # imm = 0x7FFFFFFFFFFFFF
callq 0x5960
jmp 0x26be
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x56d0
jmp 0x26da
movq (%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x2160
jmp 0x26ed
movq (%rsp), %rdi
movb $0x0, 0xf(%rsp)
movq 0x2c8a3(%rip), %rsi     # 0x2efa0
movq 0x2c894(%rip), %rdx     # 0x2ef98
callq 0x2360
jmp 0x27cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
jmp 0x27a7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
jmp 0x279d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
jmp 0x2793
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
jmp 0x2786
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
jmp 0x277c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x2448
leaq 0x10(%rsp), %rdi
callq 0x2448
leaq 0x80(%rsp), %rdi
callq 0x2448
leaq 0x60(%rsp), %rdi
callq 0x2448
leaq 0x40(%rsp), %rdi
callq 0x2448
testb $0x1, 0xf(%rsp)
jne 0x27b0
jmp 0x27b9
movq (%rsp), %rdi
callq 0x21d0
jmp 0x27c3
addq $0xc8, %rsp
retq
movq 0x38(%rsp), %rdi
callq 0x2380
nopl (%rax)
// File: 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:
movw %di, %ax
movw %ax, -0x4(%rsp)
movzwl -0x4(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x27ef
movzwl -0x4(%rsp), %eax
cmpl $0x2, %eax
jge 0x2802
movzwl -0x4(%rsp), %eax
cmpl $0x2, %eax
sete %al
andb $0x1, %al
movb %al, -0x1(%rsp)
jmp 0x2858
movw $0x3, -0x6(%rsp)
movzwl -0x6(%rsp), %eax
movl %eax, -0xc(%rsp)
movzwl -0x4(%rsp), %eax
movzwl -0x6(%rsp), %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0xc(%rsp), %eax
cmpl %ecx, %eax
jg 0x2853
movzwl -0x4(%rsp), %eax
movzwl -0x6(%rsp), %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x2842
movb $0x0, -0x1(%rsp)
jmp 0x2858
jmp 0x2844
movzwl -0x6(%rsp), %eax
addl $0x2, %eax
movw %ax, -0x6(%rsp)
jmp 0x2809
movb $0x1, -0x1(%rsp)
movb -0x1(%rsp), %al
andb $0x1, %al
retq
nop
// File: 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:
subq $0x58, %rsp
movq %rdi, 0x20(%rsp)
movw %si, %ax
movq %rdi, %rcx
movq %rcx, 0x18(%rsp)
movq %rdi, 0x50(%rsp)
movw %ax, 0x4e(%rsp)
movb $0x0, 0x4d(%rsp)
movzwl 0x4e(%rsp), %eax
movq %rax, 0x28(%rsp)
leaq 0x4c(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x5ab0
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x5ac0
jmp 0x28b2
leaq 0x4c(%rsp), %rdi
callq 0x5b40
movq 0x20(%rsp), %rdi
movl $0x1, %esi
callq 0x5b50
movw $0x1, (%rax)
movw $0x2, 0x3a(%rsp)
movzwl 0x3a(%rsp), %eax
movzwl 0x4e(%rsp), %ecx
cmpl %ecx, %eax
jge 0x2982
movq 0x20(%rsp), %rdi
movzwl 0x4e(%rsp), %eax
movl %eax, 0x10(%rsp)
movzwl 0x4e(%rsp), %eax
movzwl 0x3a(%rsp), %ecx
cltd
idivl %ecx
movslq %edx, %rsi
callq 0x5b50
movq 0x20(%rsp), %rdi
movzwl (%rax), %eax
movl %eax, 0xc(%rsp)
movzwl 0x4e(%rsp), %eax
movzwl 0x3a(%rsp), %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl 0xc(%rsp), %eax
imull %ecx, %eax
movzwl 0x4e(%rsp), %ecx
cltd
idivl %ecx
movl 0x10(%rsp), %eax
subl %edx, %eax
movw %ax, 0x16(%rsp)
movzwl 0x3a(%rsp), %eax
movl %eax, %esi
callq 0x5b50
movw 0x16(%rsp), %cx
movw %cx, (%rax)
movw 0x3a(%rsp), %ax
addw $0x1, %ax
movw %ax, 0x3a(%rsp)
jmp 0x28d7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
leaq 0x4c(%rsp), %rdi
callq 0x5b40
jmp 0x29a2
movb $0x1, 0x4d(%rsp)
testb $0x1, 0x4d(%rsp)
jne 0x2998
movq 0x20(%rsp), %rdi
callq 0x5b70
movq 0x18(%rsp), %rax
addq $0x58, %rsp
retq
movq 0x40(%rsp), %rdi
callq 0x2380
nopl (%rax)
// File: Ripser[P]ripser/ripser.cpp
// Function: compressed_distance_matrix<(compressed_matrix_layout)0>::init_rows()
void compressed_lower_distance_matrix::init_rows() {
	value_t* pointer = &distances[0];
	for (size_t i = 1; i < size(); ++i) {
		rows[i] = pointer;
		pointer += i;
	}
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movq %rdi, 0x18(%rsp)
xorl %eax, %eax
movl %eax, %esi
callq 0x5bd0
movq %rax, 0x28(%rsp)
movq $0x1, 0x20(%rsp)
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
callq 0x5bf0
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
jae 0x2b83
movq 0x18(%rsp), %rdi
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
addq $0x18, %rdi
movq 0x20(%rsp), %rsi
callq 0x5c10
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
movq 0x20(%rsp), %rax
shlq $0x2, %rax
addq 0x28(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x2b1a
addq $0x38, %rsp
retq
nopl (%rax,%rax)
// File: Ripser[P]ripser/ripser.cpp
// Function: compressed_distance_matrix<(compressed_matrix_layout)1>::init_rows()
void compressed_upper_distance_matrix::init_rows() {
	value_t* pointer = &distances[0] - 1;
	for (size_t i = 0; i < size() - 1; ++i) {
		rows[i] = pointer;
		pointer += size() - i - 2;
	}
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movq %rdi, 0x18(%rsp)
xorl %eax, %eax
movl %eax, %esi
callq 0x5bd0
addq $-0x4, %rax
movq %rax, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
callq 0x5c30
movq %rax, %rcx
movq 0x10(%rsp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x2c39
movq 0x18(%rsp), %rdi
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
addq $0x18, %rdi
movq 0x20(%rsp), %rsi
callq 0x5c10
movq 0x8(%rsp), %rcx
movq 0x18(%rsp), %rdi
movq %rcx, (%rax)
callq 0x5c30
subq 0x20(%rsp), %rax
subq $0x2, %rax
shlq $0x2, %rax
addq 0x28(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x2bbe
addq $0x38, %rsp
retq
nop
// File: 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:
subq $0xc8, %rsp
movq %rdi, 0x30(%rsp)
movq %rdi, %rax
movq %rax, 0x38(%rsp)
movq %rdi, 0xc0(%rsp)
movq %rsi, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x40(%rsp)
movb $0x0, 0xb7(%rsp)
callq 0x5c70
leaq 0x97(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0x5c80
movq 0x48(%rsp), %rdx
leaq 0x98(%rsp), %rdi
movl $0x2, %esi
callq 0x5c90
jmp 0x2e09
leaq 0x97(%rsp), %rdi
callq 0x5d10
movq 0x40(%rsp), %rax
movq %rax, %rdi
addq $0x50, %rdi
movq 0x30(%rax), %rsi
movl $0x2, %edx
callq 0x5d20
movq %rax, 0x28(%rsp)
jmp 0x2e37
movq 0x28(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, 0x78(%rsp)
cmpq $0x0, %rax
jle 0x2f7f
movq 0x40(%rsp), %rdi
movq 0x78(%rsp), %rax
movq %rax, 0x18(%rsp)
callq 0x5bf0
movq %rax, 0x20(%rsp)
jmp 0x2e77
leaq 0x70(%rsp), %rdi
movq %rdi, 0x10(%rsp)
leaq 0x98(%rsp), %rsi
callq 0x5e90
movq 0x40(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %r8
movq 0x10(%rsp), %r9
leaq 0x68(%rsp), %rdi
movl $0x1, %ecx
callq 0x5d60
jmp 0x2eb3
leaq 0x98(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x5ee0
movq (%rax), %rax
movq %rax, 0x8(%rsp)
leaq 0x98(%rsp), %rdi
movl $0x1, %esi
callq 0x5ee0
movq 0x8(%rsp), %rsi
movq 0x40(%rsp), %rdi
movq (%rax), %rdx
callq 0x2c40
movq 0x40(%rsp), %rax
movss %xmm0, 0x64(%rsp)
movss 0x64(%rsp), %xmm1
movss 0x40(%rax), %xmm0
ucomiss %xmm1, %xmm0
jb 0x2f7a
leaq 0x50(%rsp), %rdi
leaq 0x64(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x5f30
jmp 0x2f21
movq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x5f00
jmp 0x2f32
jmp 0x2f7a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
leaq 0x97(%rsp), %rdi
callq 0x5d10
jmp 0x2fb5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x5f60
jmp 0x2fb5
jmp 0x2e41
movb $0x1, 0xb7(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x5f60
testb $0x1, 0xb7(%rsp)
jne 0x2fa8
movq 0x30(%rsp), %rdi
callq 0x5fc0
movq 0x38(%rsp), %rax
addq $0xc8, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x5fc0
movq 0x88(%rsp), %rdi
callq 0x2380
nopl (%rax)
// File: 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:
subq $0xa8, %rsp
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movq %rdi, 0xa0(%rsp)
movq %rsi, 0x98(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x20(%rsp)
movb $0x0, 0x97(%rsp)
callq 0x5c70
movq $0x0, 0x88(%rsp)
movq 0x20(%rsp), %rcx
movq 0x88(%rsp), %rax
cmpq 0x20(%rcx), %rax
jge 0x3167
movq 0x20(%rsp), %rdi
movq 0x88(%rsp), %rsi
callq 0x6020
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rdi
callq 0x6040
movq %rax, 0x78(%rsp)
movq 0x80(%rsp), %rdi
callq 0x6070
movq %rax, 0x70(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x60a0
testb $0x1, %al
jne 0x3087
jmp 0x314c
leaq 0x78(%rsp), %rdi
callq 0x60e0
movq (%rax), %rcx
movq %rcx, 0x60(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x68(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x2a30
movq %rax, 0x58(%rsp)
movq 0x88(%rsp), %rax
cmpq 0x58(%rsp), %rax
jle 0x313b
leaq 0x60(%rsp), %rdi
callq 0x2a40
movq 0x20(%rsp), %rdi
movss %xmm0, 0x44(%rsp)
movq 0x88(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x60f0
movq %rax, 0x8(%rsp)
jmp 0x30ee
movq 0x8(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x44(%rsp), %rsi
leaq 0x38(%rsp), %rdx
callq 0x6130
jmp 0x310e
movq 0x10(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x5f00
jmp 0x311f
jmp 0x313b
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
callq 0x5fc0
jmp 0x3190
jmp 0x313d
leaq 0x78(%rsp), %rdi
callq 0x6160
jmp 0x306f
jmp 0x314e
movq 0x88(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x88(%rsp)
jmp 0x301a
movb $0x1, 0x97(%rsp)
testb $0x1, 0x97(%rsp)
jne 0x3183
movq 0x10(%rsp), %rdi
callq 0x5fc0
movq 0x18(%rsp), %rax
addq $0xa8, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x2380
nopw (%rax,%rax)
// File: 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:
subq $0x68, %rsp
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x6190
movq 0x58(%rsp), %rdi
leaq 0x3c(%rsp), %rsi
callq 0x2080
movq %rax, 0x10(%rsp)
jmp 0x387b
movq 0x10(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x2280
movb %al, 0xf(%rsp)
jmp 0x3895
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x389f
jmp 0x38d8
leaq 0x40(%rsp), %rdi
leaq 0x3c(%rsp), %rsi
callq 0x61a0
jmp 0x38b0
movq 0x58(%rsp), %rdi
callq 0x23c0
jmp 0x38bc
jmp 0x3865
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x62d0
jmp 0x38fd
movq 0x18(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x6790
jmp 0x38e9
leaq 0x40(%rsp), %rdi
callq 0x62d0
movq 0x20(%rsp), %rax
addq $0x68, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x2380
nopw (%rax,%rax)
// File: 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:
subq $0x98, %rsp
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x6190
movq 0x88(%rsp), %rdi
leaq 0x6c(%rsp), %rsi
callq 0x2080
movq %rax, 0x10(%rsp)
jmp 0x3957
movq 0x10(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x2280
movb %al, 0xf(%rsp)
jmp 0x3971
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x397b
jmp 0x39ad
leaq 0x70(%rsp), %rdi
leaq 0x6c(%rsp), %rsi
callq 0x61a0
jmp 0x398c
movq 0x88(%rsp), %rdi
callq 0x23c0
jmp 0x399b
jmp 0x393e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
jmp 0x3a08
leaq 0x28(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x68d0
jmp 0x39be
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x69f0
jmp 0x39cf
leaq 0x28(%rsp), %rdi
callq 0x6bf0
leaq 0x70(%rsp), %rdi
callq 0x62d0
movq 0x20(%rsp), %rax
addq $0x98, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x6bf0
leaq 0x70(%rsp), %rdi
callq 0x62d0
movq 0x60(%rsp), %rdi
callq 0x2380
nopl (%rax)
// File: 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:
subq $0x218, %rsp            # imm = 0x218
movq %rdi, 0x20(%rsp)
movq %rdi, %rax
movq %rax, 0x28(%rsp)
movq %rdi, 0x210(%rsp)
movq %rsi, 0x208(%rsp)
leaq 0x1f0(%rsp), %rdi
callq 0x6190
leaq 0x1d0(%rsp), %rdi
callq 0x22c0
movl $0x0, 0x1c8(%rsp)
movq 0x208(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
callq 0x2070
movq %rax, 0x18(%rsp)
jmp 0x3a85
movq 0x18(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x2280
movb %al, 0x17(%rsp)
jmp 0x3a9f
movb 0x17(%rsp), %al
testb $0x1, %al
jne 0x3aac
jmp 0x3bb2
leaq 0x38(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
movl $0x8, %edx
callq 0x2340
jmp 0x3ac5
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %ecx
xorl %eax, %eax
cmpl 0x1c8(%rsp), %ecx
movb %al, 0x16(%rsp)
jge 0x3b1d
leaq 0x38(%rsp), %rdi
leaq 0x1cc(%rsp), %rsi
callq 0x2080
movq %rax, 0x8(%rsp)
jmp 0x3af9
movq 0x8(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x2280
movb %al, 0x7(%rsp)
jmp 0x3b13
movb 0x7(%rsp), %al
movb %al, 0x16(%rsp)
jmp 0x3b1d
movb 0x16(%rsp), %al
testb $0x1, %al
jne 0x3b27
jmp 0x3b92
leaq 0x1f0(%rsp), %rdi
leaq 0x1cc(%rsp), %rsi
callq 0x61a0
jmp 0x3b3e
leaq 0x38(%rsp), %rdi
callq 0x23c0
jmp 0x3b4a
jmp 0x3b4c
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
jmp 0x3acd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1c0(%rsp)
movl %eax, 0x1bc(%rsp)
jmp 0x3bed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1c0(%rsp)
movl %eax, 0x1bc(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x2110
jmp 0x3bed
leaq 0x38(%rsp), %rdi
callq 0x2110
movl 0x1c8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c8(%rsp)
jmp 0x3a69
movq 0x20(%rsp), %rdi
leaq 0x1f0(%rsp), %rsi
callq 0x6790
jmp 0x3bc6
leaq 0x1d0(%rsp), %rdi
callq 0x2448
leaq 0x1f0(%rsp), %rdi
callq 0x62d0
movq 0x28(%rsp), %rax
addq $0x218, %rsp            # imm = 0x218
retq
leaq 0x1d0(%rsp), %rdi
callq 0x2448
leaq 0x1f0(%rsp), %rdi
callq 0x62d0
movq 0x1c0(%rsp), %rdi
callq 0x2380
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x68, %rsp
movq %rdi, 0x8(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq 0x58(%rsp), %rdi
callq 0x6c20
movabsq $0x1e0d74600, %rcx      # imm = 0x1E0D74600
cmpq %rcx, %rax
je 0x3c80
movq 0x2b395(%rip), %rdi     # 0x2eff0
leaq 0x1e477(%rip), %rsi     # 0x220d9
callq 0x2230
movq %rax, %rdi
movq 0x2b31f(%rip), %rsi     # 0x2ef90
callq 0x2250
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x2270
movq 0x58(%rsp), %rdi
callq 0x6c20
cmpq $0x7, %rax
je 0x3cbc
movq 0x2b359(%rip), %rdi     # 0x2eff0
leaq 0x1e470(%rip), %rsi     # 0x2210e
callq 0x2230
movq %rax, %rdi
movq 0x2b2e3(%rip), %rsi     # 0x2ef90
callq 0x2250
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x2270
movq 0x58(%rsp), %rdi
callq 0x6c20
movq %rax, 0x50(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x6190
movl $0x0, 0x34(%rsp)
movslq 0x34(%rsp), %rax
cmpq 0x50(%rsp), %rax
jge 0x3d87
movl $0x0, 0x30(%rsp)
movslq 0x30(%rsp), %rax
cmpq 0x50(%rsp), %rax
jge 0x3d75
movl 0x34(%rsp), %eax
cmpl 0x30(%rsp), %eax
jle 0x3d58
movq 0x58(%rsp), %rdi
callq 0x6cc0
movsd %xmm0, (%rsp)
jmp 0x3d1c
movsd (%rsp), %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x2c(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x2c(%rsp), %rsi
callq 0x6c90
jmp 0x3d3c
jmp 0x3d66
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x62d0
jmp 0x3dac
movq 0x58(%rsp), %rdi
callq 0x6cc0
jmp 0x3d64
jmp 0x3d66
jmp 0x3d68
movl 0x30(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
jmp 0x3cf5
jmp 0x3d77
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
jmp 0x3cdd
movq 0x8(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x6790
jmp 0x3d98
leaq 0x38(%rsp), %rdi
callq 0x62d0
movq 0x10(%rsp), %rax
addq $0x68, %rsp
retq
movq 0x20(%rsp), %rdi
callq 0x2380
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x68, %rsp
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movl %edx, 0x54(%rsp)
movl 0x54(%rsp), %eax
movq %rax, 0x20(%rsp)
subq $0x4, %rax
ja 0x3f69
movq 0x20(%rsp), %rax
leaq 0x1e152(%rip), %rcx     # 0x22020
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x3840
jmp 0x3f78
movq 0x10(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x3910
jmp 0x3f78
movq 0x10(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x3a20
jmp 0x3f78
movq 0x58(%rsp), %rsi
leaq 0x38(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x31a0
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x6dc0
jmp 0x3f32
leaq 0x38(%rsp), %rdi
callq 0x6450
jmp 0x3f78
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x6450
jmp 0x3f82
movq 0x10(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x3c20
jmp 0x3f78
movq 0x10(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x3dc0
movq 0x18(%rsp), %rax
addq $0x68, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x2380
nopl (%rax)
// File: 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:
subq $0x78, %rsp
movq %r9, 0x18(%rsp)
movq %rdi, 0x20(%rsp)
movq %rdi, %rax
movq %rax, 0x28(%rsp)
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movq %r9, 0x48(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x50(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x50(%rsp)
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
cmpq $0x1, 0x40(%rsp)
jle 0x5e4c
movq 0x30(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x50(%rsp), %rcx
callq 0xaae0
movq 0x18(%rsp), %rsi
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x38(%rsp), %rdi
xorl %edx, %edx
callq 0xab50
leaq 0x38(%rsp), %rdi
callq 0xab90
movq 0x10(%rsp), %rcx
movq 0x30(%rsp), %rdi
movq %rcx, (%rax)
addq $0x50, %rdi
movq 0x50(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x5d20
movq %rax, %rcx
movq 0x60(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x60(%rsp)
movq 0x40(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x5dba
movq 0x18(%rsp), %rdi
movq 0x60(%rsp), %rax
movq %rax, 0x8(%rsp)
callq 0xab90
movq 0x8(%rsp), %rcx
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rcx, (%rax)
callq 0xabc0
movq 0x28(%rsp), %rax
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: Ripser[P]ripser/ripser.cpp
// Function: long read<long>(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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
leaq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
movl $0x8, %edx
callq 0x2290
movq %rax, %rdi
callq 0x2430
cmpq $0x8, %rax
je 0x6c60
movq $0x0, 0x20(%rsp)
jmp 0x6c86
testb $0x1, 0x28601(%rip)     # 0x2f268
je 0x6c7c
movq 0x8(%rsp), %rdi
movq 0x8(%rsp), %rsi
addq $0x8, %rsi
callq 0xf9f0
movq 0x10(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
// File: 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:
subq $0xa8, %rsp
movq %rdi, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x88(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x5c70
leaq 0x70(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x5c70
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x11090
jmp 0x7243
movq $0x1, 0x58(%rsp)
movq 0x8(%rsp), %rcx
movq 0x58(%rsp), %rax
cmpq 0x28(%rcx), %rax
jg 0x7320
leaq 0x20(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x11610
leaq 0x70(%rsp), %rdi
callq 0xb370
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x11620
jmp 0x7286
movq 0x8(%rsp), %rdi
movq 0x58(%rsp), %rcx
leaq 0x70(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x11650
jmp 0x72a1
movq 0x8(%rsp), %rcx
movq 0x58(%rsp), %rax
cmpq 0x28(%rcx), %rax
jge 0x7303
movq 0x8(%rsp), %rdi
movq 0x58(%rsp), %r8
incq %r8
leaq 0x88(%rsp), %rsi
leaq 0x70(%rsp), %rdx
leaq 0x20(%rsp), %rcx
callq 0x11eb0
jmp 0x72d7
jmp 0x7303
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
jmp 0x733f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x122e0
jmp 0x733f
leaq 0x20(%rsp), %rdi
callq 0x122e0
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x58(%rsp)
jmp 0x724c
leaq 0x70(%rsp), %rdi
callq 0x5fc0
leaq 0x88(%rsp), %rdi
callq 0x5fc0
addq $0xa8, %rsp
retq
leaq 0x70(%rsp), %rdi
callq 0x5fc0
leaq 0x88(%rsp), %rdi
callq 0x5fc0
movq 0x68(%rsp), %rdi
callq 0x2380
// File: 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:
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movss %xmm0, 0x84(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %rax, 0x28(%rsp)
movq 0x88(%rsp), %rdi
callq 0x63f0
movq %rax, 0x38(%rsp)
leaq 0x83(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x1e1e0
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x1e1f0
jmp 0x743c
leaq 0x83(%rsp), %rdi
callq 0x1e270
movq 0x28(%rsp), %rax
movq $0x0, 0x18(%rax)
movq $0x0, 0x68(%rsp)
movq 0x28(%rsp), %rdi
movq 0x68(%rsp), %rax
movq %rax, 0x20(%rsp)
callq 0x7090
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jae 0x75ac
movq $0x0, 0x60(%rsp)
movq 0x28(%rsp), %rdi
movq 0x60(%rsp), %rax
movq %rax, 0x18(%rsp)
callq 0x7090
movq %rax, %rcx
movq 0x18(%rsp), %rax
cmpq %rcx, %rax
jae 0x7597
movq 0x68(%rsp), %rax
cmpq 0x60(%rsp), %rax
je 0x7582
movq 0x88(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x60(%rsp), %rdx
callq 0xfd90
movss %xmm0, 0x14(%rsp)
jmp 0x74e1
movss 0x14(%rsp), %xmm0
movss %xmm0, 0x5c(%rsp)
movss 0x5c(%rsp), %xmm1
movss 0x84(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jb 0x7580
movq 0x28(%rsp), %rdi
movq 0x18(%rdi), %rax
incq %rax
movq %rax, 0x18(%rdi)
movq 0x68(%rsp), %rsi
callq 0x65d0
movq %rax, 0x8(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x60(%rsp), %rsi
leaq 0x5c(%rsp), %rdx
callq 0x6620
jmp 0x7536
movq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x65f0
jmp 0x7547
jmp 0x7580
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
leaq 0x83(%rsp), %rdi
callq 0x1e270
jmp 0x75b4
movq 0x30(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
callq 0x6730
jmp 0x75b4
jmp 0x7582
jmp 0x7584
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
jmp 0x748d
jmp 0x7599
movq 0x68(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x68(%rsp)
jmp 0x745f
addq $0x98, %rsp
retq
movq 0x78(%rsp), %rdi
callq 0x2380
nop
// File: 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:
subq $0x38, %rsp
movq %rdi, %rax
leaq 0x40(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movq %rax, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rsi
callq 0xac90
testb $0x1, %al
jne 0xac83
movq 0x30(%rsp), %rax
subq 0x28(%rsp), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jle 0xac81
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %rax
sarq %rax
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rax
subq 0x18(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rsi
callq 0xac90
testb $0x1, %al
jne 0xac75
movq 0x10(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x30(%rsp)
movq 0x18(%rsp), %rcx
addq $0x1, %rcx
movq 0x20(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x20(%rsp)
jmp 0xac7f
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0xac18
jmp 0xac83
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopl (%rax)
// File: 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:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x5ee0
movq (%rax), %rax
movq %rax, 0x18(%rsp)
cmpq 0x20(%rsp), %rax
je 0x127ec
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x127c2
jmp 0x127ee
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x5ee0
movq (%rax), %rax
movq %rax, 0x18(%rsp)
cmpq 0x20(%rsp), %rax
je 0x12839
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rsi
callq 0x5ee0
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rsp)
jmp 0x127ee
movq 0x18(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: 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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x40(%rsp), %rdi
movq %rdi, 0x20(%rsp)
movq 0x38(%rsp), %rsi
callq 0x127a0
movq 0x20(%rsp), %rdi
movq %rax, 0x28(%rsp)
movq %rax, 0x38(%rsp)
movq 0x30(%rsp), %rsi
callq 0x127a0
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x30(%rsp)
cmpq %rcx, %rax
jne 0x128a7
jmp 0x1297b
movq 0x20(%rsp), %rdi
addq $0x18, %rdi
movq 0x38(%rsp), %rsi
callq 0x15750
movq 0x20(%rsp), %rdi
movzbl (%rax), %eax
movl %eax, 0x1c(%rsp)
addq $0x18, %rdi
movq 0x30(%rsp), %rsi
callq 0x15750
movq %rax, %rcx
movl 0x1c(%rsp), %eax
movzbl (%rcx), %ecx
cmpl %ecx, %eax
jle 0x12905
movq 0x20(%rsp), %rdi
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rsi
callq 0x5ee0
movq 0x10(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x1297b
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rax
movq %rax, (%rsp)
movq 0x38(%rsp), %rsi
callq 0x5ee0
movq (%rsp), %rcx
movq 0x20(%rsp), %rdi
movq %rcx, (%rax)
addq $0x18, %rdi
movq 0x38(%rsp), %rsi
callq 0x15750
movq 0x20(%rsp), %rdi
movzbl (%rax), %eax
movl %eax, 0xc(%rsp)
addq $0x18, %rdi
movq 0x30(%rsp), %rsi
callq 0x15750
movq %rax, %rcx
movl 0xc(%rsp), %eax
movzbl (%rcx), %ecx
cmpl %ecx, %eax
jne 0x12979
movq 0x20(%rsp), %rdi
addq $0x18, %rdi
movq 0x30(%rsp), %rsi
callq 0x15750
movb (%rax), %cl
addb $0x1, %cl
movb %cl, (%rax)
jmp 0x1297b
addq $0x48, %rsp
retq
// File: 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:
subq $0x88, %rsp
movss %xmm0, 0x68(%rsp)
movq %rsi, 0x70(%rsp)
movq %rdi, 0x60(%rsp)
movq %rdx, 0x58(%rsp)
movq 0x60(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x58(%rsp), %rdx
movss 0x38(%rsp), %xmm0
movq 0x40(%rsp), %rsi
callq 0x15770
movss %xmm0, 0x48(%rsp)
movq %rax, 0x50(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x2a70
cmpq $-0x1, %rax
je 0x12a64
movq 0x8(%rsp), %rdi
movq 0x48(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x58(%rsp), %rdx
addq $0x1, %rdx
movss 0x18(%rsp), %xmm0
movq 0x20(%rsp), %rsi
callq 0x158d0
movss %xmm0, 0x28(%rsp)
movq %rax, 0x30(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x2a70
movq %rax, (%rsp)
leaq 0x68(%rsp), %rdi
callq 0x2a70
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
jne 0x12a64
movq 0x48(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x12a7c
movq $-0x1, 0x10(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x15a10
movss 0x78(%rsp), %xmm0
movq 0x80(%rsp), %rax
addq $0x88, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: 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:
subq $0x68, %rsp
movss %xmm0, 0x48(%rsp)
movq %rsi, 0x50(%rsp)
movq %rdi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpb $0x0, 0x19b76(%rip)     # 0x2f310
jne 0x157e6
leaq 0x19b6d(%rip), %rdi     # 0x2f310
callq 0x23a0
cmpl $0x0, %eax
je 0x157e6
movq 0x8(%rsp), %rsi
leaq 0x19ab7(%rip), %rdi     # 0x2f270
callq 0x15a40
jmp 0x157c0
leaq 0x369(%rip), %rdi       # 0x15b30
leaq 0x19aa2(%rip), %rsi     # 0x2f270
leaq 0x19a53(%rip), %rdx     # 0x2f228
callq 0x2210
leaq 0x19b2f(%rip), %rdi     # 0x2f310
callq 0x2190
movq 0x48(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rdx
movss 0x18(%rsp), %xmm0
movq 0x20(%rsp), %rsi
leaq 0x19a5f(%rip), %rdi     # 0x2f270
callq 0x15b70
leaq 0x19a53(%rip), %rdi     # 0x2f270
movl $0x1, %esi
callq 0x15d40
testb $0x1, %al
jne 0x1582d
jmp 0x1588f
leaq 0x19a3c(%rip), %rdi     # 0x2f270
callq 0x16070
movss %xmm0, 0x58(%rsp)
movq %rax, 0x60(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x2ab0
movss (%rax), %xmm0
movss %xmm0, 0x4(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x2ab0
movss 0x4(%rsp), %xmm0
ucomiss (%rax), %xmm0
jne 0x1588d
jp 0x1588d
jmp 0x158a7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
leaq 0x19a8a(%rip), %rdi     # 0x2f310
callq 0x2180
jmp 0x158b7
jmp 0x15816
movq $-0x1, 0x10(%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x15a10
movss 0x58(%rsp), %xmm0
movq 0x60(%rsp), %rax
addq $0x68, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x2380
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: 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:
subq $0x68, %rsp
movss %xmm0, 0x48(%rsp)
movq %rsi, 0x50(%rsp)
movq %rdi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpb $0x0, 0x19a6e(%rip)     # 0x2f368
jne 0x15930
leaq 0x19a65(%rip), %rdi     # 0x2f368
callq 0x23a0
cmpl $0x0, %eax
je 0x15930
movq 0x8(%rsp), %rdx
leaq 0x199ff(%rip), %rdi     # 0x2f318
xorl %eax, %eax
movl %eax, %esi
callq 0x178d0
jmp 0x15924
leaq 0x19a3d(%rip), %rdi     # 0x2f368
callq 0x2190
movq 0x48(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rdx
movss 0x18(%rsp), %xmm0
movq 0x20(%rsp), %rsi
leaq 0x199bd(%rip), %rdi     # 0x2f318
callq 0x17930
leaq 0x199b1(%rip), %rdi     # 0x2f318
callq 0x179b0
testb $0x1, %al
jne 0x15972
jmp 0x159d4
leaq 0x1999f(%rip), %rdi     # 0x2f318
callq 0x179d0
movss %xmm0, 0x58(%rsp)
movq %rax, 0x60(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x2ab0
movss (%rax), %xmm0
movss %xmm0, 0x4(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x2ab0
movss 0x4(%rsp), %xmm0
ucomiss (%rax), %xmm0
jne 0x159d2
jp 0x159d2
jmp 0x159ec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
leaq 0x1999d(%rip), %rdi     # 0x2f368
callq 0x2180
jmp 0x159fc
jmp 0x15960
movq $-0x1, 0x10(%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x15a10
movss 0x58(%rsp), %xmm0
movq 0x60(%rsp), %rax
addq $0x68, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x2380
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x78, %rsp
movss %xmm0, 0x68(%rsp)
movq %rsi, 0x70(%rsp)
movq %rdi, 0x60(%rsp)
movq %rdx, 0x58(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x2a70
movq 0x20(%rsp), %rdi
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rdi)
addq $0x30, %rdi
leaq 0x68(%rsp), %rsi
callq 0x164a0
movq 0x20(%rsp), %rdi
addq $0x18, %rdi
movq 0x58(%rsp), %rsi
addq $0x1, %rsi
callq 0x164d0
movq 0x20(%rsp), %rsi
movq 0x98(%rsi), %rax
movq %rax, (%rsp)
movq (%rsi), %rax
movq %rax, 0x8(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x98(%rsi), %rax
movq 0x20(%rax), %rax
movq %rax, 0x18(%rsp)
addq $0x18, %rsi
leaq 0x50(%rsp), %rdi
callq 0x5e90
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
leaq 0x48(%rsp), %rdi
leaq 0x50(%rsp), %r9
callq 0x12670
movq 0x20(%rsp), %rdi
addq $0x58, %rdi
movq 0x58(%rsp), %rsi
addq $0x1, %rsi
callq 0x16570
movq 0x20(%rsp), %rdi
addq $0x70, %rdi
movq 0x58(%rsp), %rsi
addq $0x1, %rsi
callq 0x16570
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
cmpq 0x58(%rsp), %rax
jg 0x15d32
movq 0x20(%rsp), %rdi
addq $0x18, %rdi
movq 0x40(%rsp), %rsi
callq 0x5ee0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq (%rcx), %rcx
movq %rcx, 0x38(%rsp)
movq 0x48(%rax), %rdi
movq 0x38(%rsp), %rsi
callq 0x6020
movq %rax, %rsi
leaq 0x30(%rsp), %rdi
callq 0x16610
movq 0x20(%rsp), %rdi
addq $0x58, %rdi
movq 0x40(%rsp), %rsi
callq 0x16660
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rdx
movq %rdx, (%rcx)
movq 0x48(%rax), %rdi
movq 0x38(%rsp), %rsi
callq 0x6020
movq %rax, %rsi
leaq 0x28(%rsp), %rdi
callq 0x16680
movq 0x20(%rsp), %rdi
addq $0x70, %rdi
movq 0x40(%rsp), %rsi
callq 0x16660
movq 0x28(%rsp), %rcx
movq %rcx, (%rax)
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x15c78
addq $0x78, %rsp
retq
nopw (%rax,%rax)
// File: Ripser[P]ripser/ripser.cpp
// Function: ripser<sparse_distance_matrix>::simplex_coboundary_enumerator::next()
diameter_entry_t next() {
		++neighbor_it[0];
		value_t cofacet_diameter = std::max(get_diameter(simplex), get_diameter(neighbor));
		index_t cofacet_index = idx_above + binomial_coeff(get_index(neighbor), 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:
subq $0x58, %rsp
movq %rdi, 0x40(%rsp)
movq 0x40(%rsp), %rdi
movq %rdi, 0x20(%rsp)
addq $0x58, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x16660
movq %rax, %rdi
callq 0x17720
movq 0x20(%rsp), %rdi
addq $0x30, %rdi
callq 0x2ab0
movq 0x20(%rsp), %rdi
movq %rax, 0x8(%rsp)
addq $0x88, %rdi
callq 0x2a40
movq 0x8(%rsp), %rdi
movss %xmm0, 0x38(%rsp)
leaq 0x38(%rsp), %rsi
callq 0x75d0
movq 0x20(%rsp), %rdi
movss (%rax), %xmm0
movss %xmm0, 0x3c(%rsp)
movq 0x8(%rdi), %rax
movq %rax, 0x18(%rsp)
movq 0x50(%rdi), %rax
movq %rax, 0x10(%rsp)
addq $0x88, %rdi
callq 0x2a30
movq 0x10(%rsp), %rdi
movq %rax, %rsi
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdx
addq $0x1, %rdx
callq 0x5d20
movq 0x18(%rsp), %rcx
movq %rax, %rdx
movq 0x20(%rsp), %rax
addq %rdx, %rcx
addq (%rax), %rcx
movq %rcx, 0x30(%rsp)
movq 0x10(%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x16150
movq 0x20(%rsp), %rax
movzwl 0x40(%rax), %eax
subl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x1615b
movl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x1615b
movq 0x20(%rsp), %rdi
movl 0x4(%rsp), %eax
movl %eax, (%rsp)
addq $0x30, %rdi
callq 0x2a90
movq 0x20(%rsp), %rcx
movw %ax, %dx
movl (%rsp), %eax
movzwl %dx, %edx
imull %edx, %eax
movzwl 0x40(%rcx), %ecx
cltd
idivl %ecx
movw %dx, %ax
movw %ax, 0x2e(%rsp)
movss 0x3c(%rsp), %xmm0
movq 0x30(%rsp), %rsi
movzwl 0x2e(%rsp), %edx
leaq 0x48(%rsp), %rdi
callq 0x17810
movss 0x48(%rsp), %xmm0
movq 0x50(%rsp), %rax
addq $0x58, %rsp
retq
nopw (%rax,%rax)
// File: Ripser[P]ripser/ripser.cpp
// Function: ripser<sparse_distance_matrix>::simplex_boundary_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;
			simplex = _simplex;
			dim = _dim;
		}

// Assembly:
subq $0x28, %rsp
movss %xmm0, 0x18(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdi, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
leaq 0x18(%rsp), %rdi
callq 0x2a70
movq (%rsp), %rdi
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movq 0x48(%rdi), %rax
movq 0x20(%rax), %rax
subq $0x1, %rax
movq %rax, 0x10(%rdi)
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rdi)
addq $0x20, %rdi
leaq 0x18(%rsp), %rsi
callq 0x164a0
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rcx, 0x30(%rax)
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
nop
// File: 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:
subq $0x48, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x48(%rax), %rdi
movq (%rax), %rsi
movq 0x18(%rax), %rdx
addq $0x1, %rdx
movq 0x10(%rax), %rcx
callq 0x155e0
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x8(%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x40(%rax), %rdi
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq $0x1, %rdx
callq 0x5d20
movq 0x10(%rsp), %rcx
movq %rax, %rdx
movq 0x18(%rsp), %rax
subq %rdx, %rcx
addq (%rax), %rcx
movq %rcx, 0x28(%rsp)
movq 0x48(%rax), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rax), %rdx
subq $0x1, %rdx
callq 0x17bf0
movq 0x18(%rsp), %rax
movss %xmm0, 0x24(%rsp)
movq 0x18(%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x17a80
movq 0x18(%rsp), %rax
movzwl 0x38(%rax), %eax
addl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0xc(%rsp)
jmp 0x17a8b
movl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x17a8b
movq 0x18(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, 0x8(%rsp)
addq $0x20, %rdi
callq 0x2a90
movq 0x18(%rsp), %rcx
movw %ax, %dx
movl 0x8(%rsp), %eax
movzwl %dx, %edx
imull %edx, %eax
movzwl 0x38(%rcx), %ecx
cltd
idivl %ecx
movq 0x18(%rsp), %rax
movw %dx, %cx
movw %cx, 0x22(%rsp)
movq 0x40(%rax), %rdi
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
incq %rdx
callq 0x5d20
movq %rax, %rdx
movq 0x18(%rsp), %rax
movq (%rax), %rcx
subq %rdx, %rcx
movq %rcx, (%rax)
movq 0x40(%rax), %rdi
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
callq 0x5d20
movq %rax, %rdx
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rcx
addq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq 0x18(%rax), %rcx
decq %rcx
movq %rcx, 0x18(%rax)
movss 0x24(%rsp), %xmm0
movq 0x28(%rsp), %rsi
movzwl 0x22(%rsp), %edx
leaq 0x38(%rsp), %rdi
callq 0x17810
movss 0x38(%rsp), %xmm0
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
nop