// File: /workspace/github_c_makefile_star2_O1/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 0x1350
movl %edi, %ebp
cmpl $0x4, %edi
jne 0x131e
movq 0x8(%rbx), %r14
leaq 0x1d0d(%rip), %rdi      # 0x3004
movq %r14, %rsi
callq 0x10b0
testl %eax, %eax
je 0x13a7
leaq 0x1cfb(%rip), %rdi      # 0x3009
movq %r14, %rsi
callq 0x10b0
testl %eax, %eax
je 0x14f5
cmpl $0x3, %ebp
jne 0x1337
movq 0x8(%rbx), %rsi
leaq 0x1ce0(%rip), %rdi      # 0x300e
callq 0x10b0
testl %eax, %eax
je 0x1399
cmpl $0x4, %ebp
jne 0x1350
movq 0x8(%rbx), %rsi
leaq 0x1cc7(%rip), %rdi      # 0x300e
callq 0x10b0
testl %eax, %eax
je 0x1399
leaq 0x1d9b(%rip), %rdi      # 0x30f2
callq 0x1040
movq (%rbx), %rsi
leaq 0x1cad(%rip), %rdi      # 0x3013
xorl %eax, %eax
callq 0x1070
movq (%rbx), %rsi
leaq 0x1ccf(%rip), %rdi      # 0x3046
xorl %eax, %eax
callq 0x1070
movq (%rbx), %rsi
leaq 0x1cef(%rip), %rdi      # 0x3077
xorl %eax, %eax
callq 0x1070
movl $0x1, %eax
jmp 0x152f
movq 0x10(%rbx), %rdi
callq 0x1557
jmp 0x152d
movq 0x10(%rbx), %r15
movq 0x18(%rbx), %rax
movq %rax, 0x8(%rsp)
xorl %eax, %eax
callq 0x20aa
movq %rax, %rbx
leaq 0x1d34(%rip), %rdi      # 0x30f9
callq 0x1040
leaq 0x1cce(%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 0x14a8
movq %rax, %r13
xorl %r14d, %r14d
movq %r13, %rdi
callq 0x1060
addq %r13, %rax
decq %rax
movq %rax, %rbp
cmpq %r13, %rax
jbe 0x142a
callq 0x1180
movq (%rax), %rcx
movzbl (%rbp), %edx
leaq -0x1(%rbp), %rax
testb $0x20, 0x1(%rcx,%rdx,2)
jne 0x140b
movb $0x0, 0x1(%rbp)
testq %r15, %r15
je 0x1440
movq %r15, %rdi
callq 0x1060
movq %rax, %rdx
jmp 0x1442
xorl %edx, %edx
movq %r13, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x166c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2110
incl %r14d
imull $0x3afb7e91, %r14d, %eax # imm = 0x3AFB7E91
rorl $0x4, %eax
cmpl $0x68db8, %eax          # imm = 0x68DB8
ja 0x148a
movq %rbx, %rdi
callq 0x213b
leaq 0x1c24(%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 0x13fd
movq %r12, %rdi
callq 0x1050
leaq 0x1c4f(%rip), %rdi      # 0x3106
callq 0x1040
callq 0x10c0
leaq 0x1c4a(%rip), %rdi      # 0x3112
callq 0x1040
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x1ae2
leaq 0x1c3e(%rip), %rdi      # 0x311f
callq 0x1040
callq 0x10c0
movq %rbx, %rdi
callq 0x20f8
jmp 0x1525
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %r14
callq 0x195b
testq %rax, %rax
je 0x1541
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x19b9
movq %rax, %rdi
callq 0x15e2
movq %rbx, %rdi
callq 0x1999
movq %rbx, %rdi
callq 0x1030
xorl %eax, %eax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1be3(%rip), %rdi      # 0x312b
callq 0x1040
movl $0x1, %edi
callq 0x1150