// File: /workspace/github_c_makefile_star2_O2/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 0x12fe
je 0x12ea
cmpl $0x4, %edi
jne 0x12fe
movq 0x8(%rbx), %r14
leaq 0xd4d(%rip), %rdi       # 0x2004
movq %r14, %rsi
callq 0x10b0
testl %eax, %eax
je 0x1360
leaq 0xd3b(%rip), %rdi       # 0x2009
movq %r14, %rsi
callq 0x10b0
testl %eax, %eax
je 0x149a
leaq 0xd29(%rip), %rdi       # 0x200e
movq %r14, %rsi
jmp 0x12f5
movq 0x8(%rbx), %rsi
leaq 0xd19(%rip), %rdi       # 0x200e
callq 0x10b0
testl %eax, %eax
je 0x1352
leaq 0xded(%rip), %rdi       # 0x20f2
callq 0x1040
movq (%rbx), %rsi
leaq 0xcff(%rip), %rdi       # 0x2013
xorl %eax, %eax
callq 0x1070
movq (%rbx), %rsi
leaq 0xd21(%rip), %rdi       # 0x2046
xorl %eax, %eax
callq 0x1070
movq (%rbx), %rsi
leaq 0xd41(%rip), %rdi       # 0x2077
xorl %eax, %eax
callq 0x1070
pushq $0x1
popq %rax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rbx), %rdi
callq 0x14ed
jmp 0x14d2
movq 0x10(%rbx), %r15
movq 0x18(%rbx), %rax
movq %rax, 0x8(%rsp)
xorl %eax, %eax
callq 0x1f86
movq %rax, %rbx
leaq 0xd7b(%rip), %rdi       # 0x20f9
callq 0x1040
leaq 0xd15(%rip), %rsi       # 0x209f
movq %r15, %rdi
callq 0x10e0
movq %rax, %r12
xorl %r14d, %r14d
leaq 0x10(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %r12, %rdx
callq 0x10a0
testq %rax, %rax
je 0x144d
movq %rax, %rbp
movq %rax, %rdi
callq 0x1060
addq %rbp, %rax
decq %rax
movq %rax, %r13
cmpq %rbp, %rax
jbe 0x13e4
callq 0x1180
movq (%rax), %rcx
movzbl (%r13), %edx
leaq -0x1(%r13), %rax
testb $0x20, 0x1(%rcx,%rdx,2)
jne 0x13c4
movb $0x0, 0x1(%r13)
testq %r15, %r15
je 0x13fb
movq %r15, %rdi
callq 0x1060
movq %rax, %rdx
jmp 0x13fd
xorl %edx, %edx
movq %rbp, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x15fc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f9e
incl %r14d
movl %r14d, %eax
xorl %edx, %edx
movl $0x2710, %ecx           # imm = 0x2710
divl %ecx
testl %edx, %edx
jne 0x1398
movq %rbx, %rdi
callq 0x1fb2
leaq 0xc66(%rip), %rdi       # 0x20a1
movl %r14d, %esi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1070
jmp 0x1398
movq %r12, %rdi
callq 0x1050
leaq 0xcaa(%rip), %rdi       # 0x2106
callq 0x1040
callq 0x10c0
leaq 0xca5(%rip), %rdi       # 0x2112
callq 0x1040
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x19d7
leaq 0xc99(%rip), %rdi       # 0x211f
callq 0x1040
callq 0x10c0
movq %rbx, %rdi
callq 0x1f94
jmp 0x14ca
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %r14
callq 0x1890
testq %rax, %rax
je 0x14d9
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x18ec
movq %rax, %rdi
callq 0x1572
movq %rbx, %rdi
callq 0x18cc
movq %rbx, %rdi
callq 0x1030
xorl %eax, %eax
jmp 0x1340
leaq 0xc4b(%rip), %rdi       # 0x212b
callq 0x1040
pushq $0x1
popq %rdi
callq 0x1150