// File: nmmmnu[P]HM3/hm3/disktable.cc
// Function: hm3::DiskTable::open(StringRef const&)
bool DiskTable::open(const StringRef &filename){
	header_.open(diskfile::filenameMeta(filename));

	if (header_ == false)
		return false;

	openFile__(mmapIndx_, blobIndx_, diskfile::filenameIndx(filename)	);
	openFile__(mmapData_, blobData_, diskfile::filenameData(filename)	);

	openFile__(mmapTree_, blobTree_, btreeindex::filenameIndx(filename)	);
	openFile__(mmapKeys_, blobKeys_, btreeindex::filenameData(filename)	);

	return mmapIndx_ && mmapData_;
}

// Assembly:
subq $0x158, %rsp            # imm = 0x158
movq %rdi, 0x148(%rsp)
movq %rsi, 0x140(%rsp)
movq 0x148(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x140(%rsp), %rdi
callq 0x6f80
movq 0x68(%rsp), %rdi
movq %rax, %rsi
callq 0x8030
movq 0x68(%rsp), %rdi
callq 0x6f90
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x55ff
movb $0x0, 0x157(%rsp)
jmp 0x5883
movq 0x68(%rsp), %rax
movq %rax, %rcx
addq $0x38, %rcx
movq %rcx, 0x50(%rsp)
addq $0xa0, %rax
movq %rax, 0x58(%rsp)
movq 0x140(%rsp), %rsi
leaq 0x110(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0x7020
movq 0x60(%rsp), %rsi
leaq 0x130(%rsp), %rdi
callq 0x70a0
jmp 0x5649
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %rdi
leaq 0x130(%rsp), %rdx
callq 0x6fb0
jmp 0x5662
leaq 0x110(%rsp), %rdi
callq 0x2110
movq 0x68(%rsp), %rax
movq %rax, %rcx
addq $0x50, %rcx
movq %rcx, 0x38(%rsp)
addq $0xb0, %rax
movq %rax, 0x40(%rsp)
movq 0x140(%rsp), %rsi
leaq 0xd0(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0x70f0
movq 0x48(%rsp), %rsi
leaq 0xf0(%rsp), %rdi
callq 0x70a0
jmp 0x56b9
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdi
leaq 0xf0(%rsp), %rdx
callq 0x6fb0
jmp 0x56d2
leaq 0xd0(%rsp), %rdi
callq 0x2110
movq 0x68(%rsp), %rax
movq %rax, %rcx
addq $0x68, %rcx
movq %rcx, 0x20(%rsp)
addq $0xc0, %rax
movq %rax, 0x28(%rsp)
movq 0x140(%rsp), %rsi
leaq 0xa0(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x7170
movq 0x30(%rsp), %rsi
leaq 0xc0(%rsp), %rdi
callq 0x70a0
jmp 0x5729
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rdi
leaq 0xc0(%rsp), %rdx
callq 0x6fb0
jmp 0x5742
leaq 0xa0(%rsp), %rdi
callq 0x2110
movq 0x68(%rsp), %rax
movq %rax, %rcx
subq $-0x80, %rcx
movq %rcx, 0x8(%rsp)
addq $0xd0, %rax
movq %rax, 0x10(%rsp)
movq 0x140(%rsp), %rsi
leaq 0x70(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x71f0
movq 0x18(%rsp), %rsi
leaq 0x90(%rsp), %rdi
callq 0x70a0
jmp 0x5796
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
leaq 0x90(%rsp), %rdx
callq 0x6fb0
jmp 0x57af
leaq 0x70(%rsp), %rdi
callq 0x2110
movq 0x68(%rsp), %rdi
addq $0x38, %rdi
callq 0x7270
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0x7(%rsp)
jne 0x57d6
jmp 0x57e8
movq 0x68(%rsp), %rdi
addq $0x50, %rdi
callq 0x7270
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
andb $0x1, %al
movb %al, 0x157(%rsp)
jmp 0x5883
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
leaq 0x110(%rsp), %rdi
callq 0x2110
jmp 0x5894
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x2110
jmp 0x5894
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x2110
jmp 0x5894
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x2110
jmp 0x5894
movb 0x157(%rsp), %al
andb $0x1, %al
addq $0x158, %rsp            # imm = 0x158
retq
movq 0x108(%rsp), %rdi
callq 0x22c0
nopw %cs:(%rax,%rax)