// File: /workspace/github_cpp_makefile_star2_O1/nmmmnu[P]HM3/hm3/main/db_lsmheat.cc
// Function: main
int main(int argc, char **argv){
	if (argc <= 1){
		printUsage(argv[0]);
		return 1;
	}

	// =======================

	const auto path		= argv[1];

	// =======================

	using DirectoryTableLoader = hm3::tableloader::DirectoryTableLoader;
	using MyLSMTable = hm3::LSMTable<DirectoryTableLoader::container_type>;

	DirectoryTableLoader dl{ path };
	MyLSMTable mtlist(*dl);

	// =======================

	// first key
	mtlist.begin();

	const char last[] = { (char) 0xFF, '\0' };

	// ~last key
	mtlist.lowerBound( last );

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xd8, %rsp
cmpl $0x1, %edi
jg 0x2602
movq (%rsi), %rbx
movq 0x6aa4(%rip), %r14      # 0x8fd0
leaq 0x3ad1(%rip), %rsi      # 0x6004
movl $0x51, %edx
movq %r14, %rdi
callq 0x21f0
movb $0xa, %bpl
leaq 0x10(%rsp), %r15
movb %bpl, (%r15)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x21f0
movq %rax, %r14
leaq 0x3af1(%rip), %rsi      # 0x6056
movl $0x41, %edx
movq %rax, %rdi
callq 0x21f0
movb %bpl, (%r15)
leaq 0x10(%rsp), %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x21f0
movb %bpl, (%r15)
leaq 0x10(%rsp), %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x21f0
movq %rax, %r15
leaq 0x3aec(%rip), %rsi      # 0x6098
movl $0x6, %edx
movq %rax, %rdi
callq 0x21f0
movb %bpl, (%r14)
leaq 0x10(%rsp), %rsi
movl $0x1, %edx
movq %r15, %rdi
callq 0x21f0
movq %rax, %r14
leaq 0x3ac7(%rip), %rsi      # 0x609f
movl $0x1, %edx
movq %rax, %rdi
callq 0x21f0
testq %rbx, %rbx
je 0x261c
movq %rbx, %rdi
callq 0x20b0
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21f0
jmp 0x2636
movq 0x8(%rsi), %rbx
testq %rbx, %rbx
je 0x2711
movq %rbx, %rdi
callq 0x20b0
jmp 0x271a
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %r14, %rdi
addq %rax, %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x22c0
leaq 0x3a64(%rip), %rsi      # 0x60a1
movl $0x24, %edx
movq %r14, %rdi
callq 0x21f0
movb $0xa, %bpl
leaq 0x10(%rsp), %rbx
movb %bpl, (%rbx)
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x21f0
movq %rax, %r14
leaq 0x3a57(%rip), %rsi      # 0x60c6
movl $0x2e, %edx
movq %rax, %rdi
callq 0x21f0
movb %bpl, (%rbx)
leaq 0x10(%rsp), %rbx
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x21f0
movq %rax, %r14
leaq 0x3a57(%rip), %rsi      # 0x60f5
movl $0x1c, %edx
movq %rax, %rdi
callq 0x21f0
movb %bpl, (%rbx)
leaq 0x10(%rsp), %rbx
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x21f0
movq %rax, %r14
leaq 0x3a45(%rip), %rsi      # 0x6112
movl $0x1d, %edx
movq %rax, %rdi
callq 0x21f0
movb %bpl, (%rbx)
leaq 0x10(%rsp), %rbx
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x21f0
movb %bpl, (%rbx)
leaq 0x10(%rsp), %rsi
movl $0x1, %edx
movq %rax, %rdi
callq 0x21f0
movl $0x1, %eax
jmp 0x27f7
leaq 0x3988(%rip), %rbx      # 0x60a0
xorl %eax, %eax
leaq 0x48(%rsp), %r14
movq %rax, (%r14)
movq %rbx, 0x8(%r14)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x281c
leaq 0x30(%rsp), %rbx
movb $0x0, (%r14)
leaq 0x98(%rsp), %rdi
leaq 0x48(%rsp), %rdx
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0x2a36
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x2770
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
leaq 0x98(%rsp), %rdi
callq 0x29d4
leaq 0xe(%rsp), %r14
movw $0xff, (%r14)
movq %r14, %rdi
callq 0x20b0
leaq 0x48(%rsp), %rdx
movq %rax, (%rdx)
movq %r14, 0x8(%rdx)
leaq 0x58(%rsp), %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0x31a0
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x27c8
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x21c0
leaq 0x58(%rsp), %rdi
callq 0x29d4
movq %rbx, %rdi
callq 0x28b6
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27f5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
xorl %eax, %eax
addq $0xd8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2807
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x288e
movq %rbx, %rdi
callq 0x22e0