// File: /workspace/github_cpp_makefile_star2_O1/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 0x2457
movq (%rbx), %rdi
callq 0x2783
movl $0xa, %ebx
jmp 0x2721
movl %edi, %ebp
movq 0x8(%rbx), %r15
movq 0x10(%rbx), %r14
xorl %eax, %eax
movb %al, 0xa8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0xb0(%rsp)
movb %al, 0xc0(%rsp)
movups %xmm0, 0xc8(%rsp)
movups %xmm0, 0xd8(%rsp)
movq $0x0, 0xe8(%rsp)
movups %xmm0, 0xf4(%rsp)
movl %eax, 0x104(%rsp)
movl $0x1, 0x10c(%rsp)
movups %xmm0, 0x110(%rsp)
movl %eax, 0x13c(%rsp)
movups %xmm0, 0x124(%rsp)
movl %eax, 0x134(%rsp)
movb $0x1, 0x140(%rsp)
movups %xmm0, 0x148(%rsp)
movups %xmm0, 0x158(%rsp)
movups %xmm0, 0x168(%rsp)
movups %xmm0, 0x178(%rsp)
testq %r14, %r14
je 0x2507
movq %r14, %rdi
callq 0x2090
jmp 0x250e
leaq 0x2afe(%rip), %r14      # 0x500c
leaq 0x38(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, 0x8(%rsi)
leaq 0xa8(%rsp), %rdi
callq 0x31c4
leaq 0xa8(%rsp), %rdi
callq 0x4702
movl %ebp, %ebp
leaq -0x3(%rbp), %r14
movzbl (%r15), %eax
cmpl $0x6c, %eax
je 0x25c7
cmpl $0x72, %eax
jne 0x2707
testq %r14, %r14
je 0x2703
movl $0x3, %r15d
leaq 0x78(%rsp), %r14
leaq 0x38(%rsp), %r12
movq (%rbx,%r15,8), %r13
testq %r13, %r13
je 0x257c
movq %r13, %rdi
callq 0x2090
jmp 0x2585
leaq 0x2a89(%rip), %r13      # 0x500c
xorl %eax, %eax
movq %rax, 0x38(%rsp)
movq %r13, 0x40(%rsp)
movq %r14, %rdi
leaq 0xa8(%rsp), %rsi
movq %r12, %rdx
callq 0x3d94
cmpq $0x0, 0x78(%rsp)
je 0x25b2
movq %r14, %rdi
callq 0x2bd8
movq %r14, %rdi
callq 0x29e8
incq %r15
cmpq %r15, %rbp
jne 0x2569
jmp 0x2703
testq %r14, %r14
je 0x2703
xorl %r12d, %r12d
leaq 0xa8(%rsp), %rbp
movq %rsp, %r13
movq 0x18(%rbx,%r12,8), %r15
testq %r15, %r15
je 0x25f2
movq %r15, %rdi
callq 0x2090
jmp 0x25fb
leaq 0x2a13(%rip), %r15      # 0x500c
xorl %eax, %eax
movq %rax, 0x68(%rsp)
movq %r15, 0x70(%rsp)
cmpq $0x1, %rax
jne 0x262a
cmpb $0x2d, (%r15)
jne 0x262a
movzbl 0xc0(%rsp), %ecx
leaq 0x38(%rsp), %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0x4082
jmp 0x263c
leaq 0x38(%rsp), %rdi
movq %rbp, %rsi
leaq 0x68(%rsp), %rdx
callq 0x3e32
movq 0xb0(%rsp), %rdx
leaq 0x78(%rsp), %rdi
movq %rbp, %rsi
xorl %ecx, %ecx
callq 0x4082
movq 0x58(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0x38(%rsp), %xmm0
movups 0x48(%rsp), %xmm1
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x2a5e
movq (%rsp), %rax
cmpq 0x78(%rsp), %rax
jne 0x2699
movq 0x80(%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x26d6
movl $0xa, %r15d
movq %r13, %rdi
callq 0x409c
movq %rax, %rdi
callq 0x2bd8
decq %r15
je 0x26d6
movq (%rsp), %rcx
movq 0x8(%rsp), %rax
incq %rax
movq %rax, 0x8(%rsp)
cmpq 0x78(%rsp), %rcx
jne 0x269f
cmpq 0x80(%rsp), %rax
jne 0x269f
leaq 0x28(%rsp), %rdi
callq 0x29e8
leaq 0xa0(%rsp), %rdi
callq 0x29e8
leaq 0x60(%rsp), %rdi
callq 0x29e8
incq %r12
cmpq %r14, %r12
jne 0x25de
xorl %ebx, %ebx
jmp 0x2714
movq (%rbx), %rdi
movl $0x1, %ebx
callq 0x2783
leaq 0xa8(%rsp), %rdi
callq 0x299c
movl %ebx, %eax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2745
jmp 0x2745
jmp 0x2745
movq %rax, %rbx
jmp 0x2764
movq %rax, %rbx
jmp 0x2757
movq %rax, %rbx
jmp 0x276e
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x29e8
leaq 0xa0(%rsp), %rdi
callq 0x29e8
leaq 0x60(%rsp), %rdi
callq 0x29e8
leaq 0xa8(%rsp), %rdi
callq 0x299c
movq %rbx, %rdi
callq 0x2250