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

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

	const auto op		= argv[1];
	const auto filename	= argv[2];

	size_t const keyCount	= (size_t) argc - 3;
	char **keys		= & argv[3];

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

	using DiskTable = hm3::DiskTable;

	DiskTable list;
	list.open(filename);
	list.printHeader();

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

	switch(op[0]){
	case 'r':	return op_filesearch(list, keyCount, keys);
	case 'l':	return op_list(list, keyCount, keys);
	}

	printUsage(argv[0]);
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rsi, %rbx
cmpl $0x3, %edi
jg 0x2465
movq (%rbx), %rdi
callq 0x26fd
pushq $0xa
popq %rbx
jmp 0x269b
movl %edi, %ebp
movq 0x8(%rbx), %r14
movq 0x10(%rbx), %rsi
xorl %eax, %eax
movb %al, 0xa8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0xb0(%rsp)
movb %al, 0xc0(%rsp)
movups %xmm0, 0xc8(%rsp)
andq $0x0, 0xe8(%rsp)
movups %xmm0, 0xd8(%rsp)
andl $0x0, 0x104(%rsp)
movups %xmm0, 0xf4(%rsp)
movl $0x1, 0x10c(%rsp)
movups %xmm0, 0x110(%rsp)
andl $0x0, 0x13c(%rsp)
movups %xmm0, 0x124(%rsp)
andl $0x0, 0x134(%rsp)
movb $0x1, 0x140(%rsp)
movups %xmm0, 0x148(%rsp)
movups %xmm0, 0x158(%rsp)
movups %xmm0, 0x168(%rsp)
movups %xmm0, 0x178(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x27fa
leaq 0xa8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x302c
leaq 0xa8(%rsp), %rdi
callq 0x41e4
movl %ebp, %ebp
movzbl (%r14), %eax
cmpl $0x6c, %eax
je 0x2599
cmpl $0x72, %eax
jne 0x2683
pushq $0x3
popq %r13
leaq 0x18(%rsp), %r14
leaq 0x78(%rsp), %r15
leaq 0xa8(%rsp), %r12
cmpq %r13, %rbp
je 0x267f
movq (%rbx,%r13,8), %rsi
movq %r14, %rdi
callq 0x27fa
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x37f6
cmpq $0x0, 0x78(%rsp)
je 0x258c
movq %r15, %rdi
callq 0x2a8c
movq %r15, %rdi
callq 0x28d0
incq %r13
jmp 0x2559
addq $-0x3, %rbp
leaq 0xa8(%rsp), %r14
leaq 0x48(%rsp), %r13
xorl %r12d, %r12d
cmpq %rbp, %r12
je 0x267f
movq 0x18(%rbx,%r12,8), %rsi
leaq 0x8(%rsp), %rdi
callq 0x27fa
cmpq $0x1, 0x8(%rsp)
jne 0x25e6
movq 0x10(%rsp), %rax
cmpb $0x2d, (%rax)
jne 0x25e6
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x2882
jmp 0x25f8
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
leaq 0x8(%rsp), %rdx
callq 0x383c
leaq 0x78(%rsp), %rdi
movq %r14, %rsi
callq 0x2896
movq %r13, %rdi
leaq 0x18(%rsp), %rsi
callq 0x28aa
movq 0x50(%rsp), %rax
pushq $0x9
popq %r15
movq 0x48(%rsp), %rcx
cmpq 0x78(%rsp), %rcx
jne 0x2631
cmpq 0x80(%rsp), %rax
je 0x2656
movq %r13, %rdi
callq 0x3a04
movq %rax, %rdi
callq 0x2a8c
subq $0x1, %r15
jb 0x2656
movq 0x50(%rsp), %rax
incq %rax
movq %rax, 0x50(%rsp)
jmp 0x261b
leaq 0x70(%rsp), %rdi
callq 0x28d0
leaq 0xa0(%rsp), %rdi
callq 0x28d0
leaq 0x40(%rsp), %rdi
callq 0x28d0
incq %r12
jmp 0x25ad
xorl %ebx, %ebx
jmp 0x268e
movq (%rbx), %rdi
callq 0x26fd
pushq $0x1
popq %rbx
leaq 0xa8(%rsp), %rdi
callq 0x282a
movl %ebx, %eax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x26bf
jmp 0x26bf
movq %rax, %rbx
jmp 0x26de
movq %rax, %rbx
jmp 0x26d1
jmp 0x26bf
movq %rax, %rbx
jmp 0x26e8
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x28d0
leaq 0xa0(%rsp), %rdi
callq 0x28d0
leaq 0x40(%rsp), %rdi
callq 0x28d0
leaq 0xa8(%rsp), %rdi
callq 0x282a
movq %rbx, %rdi
callq 0x2260