// File: 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:
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movq 0xa0(%rsp), %rax
incq %rax
movq %rax, 0x30(%rsp)
movq 0xa8(%rsp), %rax
incq %rax
movq %rax, 0x38(%rsp)
movq $0x0, 0x80(%rsp)
leaq 0x7f(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x5c80
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
leaq 0x88(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq 0x10360
jmp 0x100dd
leaq 0x6b(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x103e0
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x18(%rsp), %rcx
leaq 0x88(%rsp), %rdx
callq 0x103f0
jmp 0x1010a
leaq 0x6b(%rsp), %rdi
callq 0x10470
leaq 0x88(%rsp), %rdi
callq 0x5f60
leaq 0x7f(%rsp), %rdi
callq 0x5d10
movq $0x0, 0x60(%rsp)
movq 0x60(%rsp), %rax
cmpq 0xa8(%rsp), %rax
jg 0x10326
movq 0x28(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x10480
movq %rax, %rdi
movq 0x60(%rsp), %rsi
callq 0x5ee0
movq $0x1, (%rax)
movq $0x1, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xa0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
leaq 0x60(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x10010
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq (%rcx), %rax
jge 0x10282
movq 0x28(%rsp), %rdi
movq 0x58(%rsp), %rsi
subq $0x1, %rsi
callq 0x10480
movq %rax, %rdi
movq 0x60(%rsp), %rsi
subq $0x1, %rsi
callq 0x5ee0
movq 0x28(%rsp), %rdi
movq (%rax), %rax
movq %rax, (%rsp)
movq 0x58(%rsp), %rsi
callq 0x10480
movq %rax, %rdi
movq 0x60(%rsp), %rsi
subq $0x1, %rsi
callq 0x5ee0
movq 0x28(%rsp), %rdi
movq %rax, %rcx
movq (%rsp), %rax
addq (%rcx), %rax
movq %rax, 0x8(%rsp)
movq 0x58(%rsp), %rsi
callq 0x10480
movq %rax, %rdi
movq 0x60(%rsp), %rsi
callq 0x5ee0
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x58(%rsp)
jmp 0x10172
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
jmp 0x10273
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
leaq 0x6b(%rsp), %rdi
callq 0x10470
leaq 0x88(%rsp), %rdi
callq 0x5f60
leaq 0x7f(%rsp), %rdi
callq 0x5d10
jmp 0x1032e
movq 0x60(%rsp), %rax
cmpq 0xa0(%rsp), %rax
jg 0x102b4
movq 0x28(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x10480
movq %rax, %rdi
movq 0x60(%rsp), %rsi
callq 0x5ee0
movq $0x1, (%rax)
movq 0x60(%rsp), %rax
sarq %rax
movq %rax, 0x48(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x10010
movq 0x28(%rsp), %rdi
movq (%rax), %rsi
callq 0x10480
movq %rax, %rdi
movq 0x60(%rsp), %rsi
callq 0x5ee0
movq (%rax), %rdi
callq 0x2630
jmp 0x102f7
jmp 0x102f9
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
jmp 0x10134
movq 0x20(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x9300
jmp 0x1032e
addq $0xb8, %rsp
retq
movq 0x70(%rsp), %rdi
callq 0x2380
nopl (%rax,%rax)