// File: /workspace/github_c_makefile_star2_O3/nmmmnu[P]HM2/test_hm_disktable.c
// Function: main
int main(int argc, char **argv){
	if (argc > 2){
		if (argc == 4 && strcmp("make", argv[1]) == 0)
			return create_file(argv[2], argv[3]);

		if (argc == 4 && strcmp("find", argv[1]) == 0)
			return find_in_file(argv[2], argv[3]);

		if (argc == 3 && strcmp("dump", argv[1]) == 0)
			return dump_file(argv[2], NULL);

		if (argc == 4 && strcmp("dump", argv[1]) == 0)
			return dump_file(argv[2], argv[3]);
	}

	printf("Usage:\n");
	printf("\t%s make [txt file] [db file] - create a database\n", argv[0]);
	printf("\t%s find [db file] [key] - find in the database\n", argv[0]);
	printf("\t%s dump [db file] - dump the database\n", argv[0]);

	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movq %rsi, %rbx
cmpl $0x3, %edi
jl 0x133e
je 0x132a
cmpl $0x4, %edi
jne 0x133e
movq 0x8(%rbx), %r14
leaq 0x1d0d(%rip), %rdi      # 0x3004
movq %r14, %rsi
callq 0x10b0
testl %eax, %eax
je 0x13a2
leaq 0x1cfb(%rip), %rdi      # 0x3009
movq %r14, %rsi
callq 0x10b0
testl %eax, %eax
je 0x14f0
leaq 0x1ce9(%rip), %rdi      # 0x300e
movq %r14, %rsi
jmp 0x1335
movq 0x8(%rbx), %rsi
leaq 0x1cd9(%rip), %rdi      # 0x300e
callq 0x10b0
testl %eax, %eax
je 0x1394
leaq 0x1dad(%rip), %rdi      # 0x30f2
callq 0x1040
movq (%rbx), %rsi
leaq 0x1cbf(%rip), %rdi      # 0x3013
xorl %eax, %eax
callq 0x1070
movq (%rbx), %rsi
leaq 0x1ce1(%rip), %rdi      # 0x3046
xorl %eax, %eax
callq 0x1070
movq (%rbx), %rsi
leaq 0x1d01(%rip), %rdi      # 0x3077
xorl %eax, %eax
callq 0x1070
movl $0x1, %eax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rbx), %rdi
callq 0x1545
jmp 0x1528
movq 0x10(%rbx), %r15
movq 0x18(%rbx), %rax
movq %rax, 0x8(%rsp)
xorl %eax, %eax
callq 0x208a
movq %rax, %rbx
leaq 0x1d39(%rip), %rdi      # 0x30f9
callq 0x1040
leaq 0x1cd3(%rip), %rsi      # 0x309f
movq %r15, %rdi
callq 0x10e0
movq %rax, %r12
leaq 0x10(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %rax, %rdx
callq 0x10a0
testq %rax, %rax
je 0x14a3
movq %rax, %r13
xorl %r14d, %r14d
movq %r13, %rdi
callq 0x1060
addq %r13, %rax
decq %rax
movq %rax, %rbp
cmpq %r13, %rax
jbe 0x1425
callq 0x1180
movq (%rax), %rcx
movzbl (%rbp), %edx
leaq -0x1(%rbp), %rax
testb $0x20, 0x1(%rcx,%rdx,2)
jne 0x1406
movb $0x0, 0x1(%rbp)
testq %r15, %r15
je 0x143b
movq %r15, %rdi
callq 0x1060
movq %rax, %rdx
jmp 0x143d
xorl %edx, %edx
movq %r13, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x165c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x20f0
incl %r14d
imull $0x3afb7e91, %r14d, %eax # imm = 0x3AFB7E91
rorl $0x4, %eax
cmpl $0x68db8, %eax          # imm = 0x68DB8
ja 0x1485
movq %rbx, %rdi
callq 0x211b
leaq 0x1c29(%rip), %rdi      # 0x30a1
movl %r14d, %esi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1070
leaq 0x10(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %r12, %rdx
callq 0x10a0
movq %rax, %r13
testq %rax, %rax
jne 0x13f8
movq %r12, %rdi
callq 0x1050
leaq 0x1c54(%rip), %rdi      # 0x3106
callq 0x1040
callq 0x10c0
leaq 0x1c4f(%rip), %rdi      # 0x3112
callq 0x1040
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x1ab9
leaq 0x1c43(%rip), %rdi      # 0x311f
callq 0x1040
callq 0x10c0
movq %rbx, %rdi
callq 0x20d8
jmp 0x1520
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %r14
callq 0x194b
testq %rax, %rax
je 0x152f
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x19a9
movq %rax, %rdi
callq 0x15d0
movq %rbx, %rdi
callq 0x1989
movq %rbx, %rdi
callq 0x1030
xorl %eax, %eax
jmp 0x1382
leaq 0x1bf5(%rip), %rdi      # 0x312b
callq 0x1040
movl $0x1, %edi
callq 0x1150