// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/test/test_khash.c
// Function: main
int main(int argc, char **argv) {
    int opt, res = EXIT_SUCCESS;
    char *test = NULL;
    char *input_file = NULL;
    size_t max = 1000;
    double del_frac = 0.25;
    int show_stats = 0;

    while ((opt = getopt(argc, argv, "df:hi:n:t:")) != -1) {
        switch (opt) {
        case 'd':
            show_stats = 1;
            break;
        case 'f':
            del_frac = strtod(optarg, NULL);
            if (del_frac < 0 || del_frac > 1.0) {
                fprintf(stderr, "Error: -d must be between 0.0 and 1.0\n");
                return EXIT_FAILURE;
            }
            break;
        case 'h':
            show_usage(stdout, argv[0]);
            return EXIT_SUCCESS;
        case 'i':
            input_file = optarg;
            break;
        case 'n':
            max = strtoul(optarg, NULL, 0);
            if (max == 0 || max > 99999999) {
                fprintf(stderr, "Error: -n must be between 1 and %u\n",
                        MAX_ENTRIES);
                return EXIT_FAILURE;
            }
            break;
        case 't':
            test = optarg;
            break;
        default:
            show_usage(stderr, argv[0]);
            return EXIT_FAILURE;
        }
    }

    if (!test || strcmp(test, "str2int") == 0) {
        if (test_str2int(max, (size_t) (max * del_frac), show_stats) != 0)
            res = EXIT_FAILURE;
    }

    if (test && strcmp(test, "benchmark") == 0) {
        if (benchmark(input_file) != 0)
            res = EXIT_FAILURE;
    }

    return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %rbx
movl %edi, %ebp
movq $0x0, 0x20(%rsp)
movsd 0x1cbf(%rip), %xmm0     # 0x3008
movapd %xmm0, (%rsp)
movl $0x3e8, %r15d           # imm = 0x3E8
leaq 0x1d11(%rip), %r12      # 0x306c
leaq 0x1cd6(%rip), %r13      # 0x3038
movq $0x0, 0x28(%rsp)
xorl %r14d, %r14d
movl %r14d, %eax
movl %eax, %r14d
movl %ebp, %edi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x1040
leal -0x64(%rax), %ecx
cmpl $0xa, %ecx
ja 0x13ce
movslq (%r13,%rcx,4), %rcx
addq %r13, %rcx
pushq $0x1
popq %rax
jmpq *%rcx
movq 0x3c33(%rip), %rax      # 0x4fd0
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1080
movapd %xmm0, (%rsp)
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x1c03
movapd (%rsp), %xmm0
ucomisd 0x1c49(%rip), %xmm0     # 0x3010
jbe 0x136e
jmp 0x1c03
cmpl $-0x1, %eax
je 0x1462
cmpl $0x74, %eax
jne 0x142f
movq 0x3bed(%rip), %rax      # 0x4fd0
movq (%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0x136e
movq 0x3bdc(%rip), %rax      # 0x4fd0
movq (%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1050
movq %rax, %r15
movq $-0x5f5e100, %rcx       # imm = 0xFA0A1F00
addq %rcx, %rax
cmpq %rcx, %rax
ja 0x136e
jmp 0x1c24
movq 0x3bae(%rip), %rax      # 0x4fd0
movq (%rax), %rax
movq %rax, 0x28(%rsp)
jmp 0x136e
movq 0x3baa(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
movq (%rbx), %rsi
callq 0x1c8a
pushq $0x1
popq %rbp
jmp 0x1c76
movq 0x3b70(%rip), %rax      # 0x4fc0
movq (%rax), %rdi
movq (%rbx), %rsi
callq 0x1c8a
xorl %ebp, %ebp
jmp 0x1c76
movq 0x20(%rsp), %rbx
testq %rbx, %rbx
je 0x1485
leaq 0x1c4f(%rip), %rsi      # 0x30c2
movq %rbx, %rdi
callq 0x1100
xorl %ebp, %ebp
testl %eax, %eax
jne 0x177b
pushq $0x10
popq %rsi
movq %r15, %rdi
callq 0x129c
testq %rax, %rax
je 0x1511
movq %rax, %r13
callq 0x1d43
movq %rax, %rbp
testq %rax, %rax
je 0x1745
cvtsi2sd %r15, %xmm0
movapd (%rsp), %xmm1
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1b4d(%rip), %xmm1     # 0x3018
cvttsd2si %xmm1, %rdx
andq %rcx, %rdx
orq %rax, %rdx
movq %rdx, 0x40(%rsp)
movq $0x0, 0x18(%rsp)
xorl %ecx, %ecx
movl %ecx, %r12d
cmpq %r12, %r15
jbe 0x1519
movq %r12, %rsi
shlq $0x4, %rsi
addq %r13, %rsi
movq %rbp, %rdi
movl %r12d, %edx
callq 0x1d4e
leal 0x1(%r12), %ecx
testl %eax, %eax
je 0x14e6
jmp 0x1755
pushq $0x1
popq %rbp
jmp 0x1772
movq %rbp, (%rsp)
movq $0x0, 0x18(%rsp)
movq %r13, %rbp
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x1556
movq (%rsp), %rdi
movq %rbp, %rsi
movl %r12d, %edx
xorl %ecx, %ecx
callq 0x1daf
incq %r12
addq $0x10, %rbp
testl %eax, %eax
je 0x152c
movq (%rsp), %rbp
jmp 0x1755
testl %r14d, %r14d
movq (%rsp), %rbp
je 0x1573
leaq 0x1e1a(%rip), %rdi      # 0x3380
callq 0x1130
movq %rbp, %rdi
callq 0x1e77
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0x1070
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x1ba1
testq %r15, %r15
movq %r13, 0x30(%rsp)
je 0x15cc
leaq -0x1(%r15), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rbp
shrq $0x10, %rbp
orl %eax, %ebp
jmp 0x15cf
pushq $-0x1
popq %rbp
movq 0x18(%rsp), %rcx
movl $0x533d, %r13d          # imm = 0x533D
xorl %edx, %edx
movl %r14d, 0x38(%rsp)
movl %edx, %eax
cmpq 0x40(%rsp), %rax
jae 0x1684
movl $0x80000057, %eax       # imm = 0x80000057
testb $0x1, %r13b
jne 0x15fb
xorl %eax, %eax
shrl %r13d
xorl %eax, %r13d
movl %r13d, %r12d
andl %ebp, %r12d
decl %r12d
cmpq %r12, %r15
jbe 0x15ee
cmpb $0x0, (%rcx,%r12)
jne 0x15ee
movl %edx, 0x3c(%rsp)
movq %r12, %rbx
shlq $0x4, %rbx
addq 0x30(%rsp), %rbx
movq (%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x249c
cmpl (%r14), %eax
jae 0x1bbb
movq 0x10(%r14), %rdx
movl %eax, %esi
shrl $0x4, %esi
movl (%rdx,%rsi,4), %edi
addl %eax, %eax
andl $0x1e, %eax
movl %edi, %r8d
movl %eax, %ecx
shrl %cl, %r8d
testb $0x3, %r8b
jne 0x166a
btsl %eax, %edi
movl %edi, (%rdx,%rsi,4)
movq (%rsp), %rax
decl 0x4(%rax)
movq 0x18(%rsp), %rcx
movb $0x1, (%rcx,%r12)
movl 0x3c(%rsp), %edx
incl %edx
movl 0x38(%rsp), %r14d
jmp 0x15e1
xorl %ecx, %ecx
movq 0x20(%rsp), %rbx
movq 0x30(%rsp), %r13
movq (%rsp), %rbp
movl %ecx, %r12d
cmpq %r12, %r15
jbe 0x16c9
movq %r12, %rsi
shlq $0x4, %rsi
addq %r13, %rsi
movq 0x18(%rsp), %rax
movzbl (%rax,%r12), %ecx
movq %rbp, %rdi
movl %r12d, %edx
callq 0x1daf
leal 0x1(%r12), %ecx
testl %eax, %eax
je 0x1694
jmp 0x1755
testl %r14d, %r14d
je 0x16e2
leaq 0x1cb9(%rip), %rdi      # 0x338e
callq 0x1130
movq %rbp, %rdi
callq 0x1e77
xorl %ebp, %ebp
movl %ebp, %ebp
cmpq %rbp, %r15
jbe 0x1717
movq 0x18(%rsp), %rax
cmpb $0x0, (%rax,%rbp)
je 0x1713
movq %rbp, %rsi
shlq $0x4, %rsi
addq %r13, %rsi
movq (%rsp), %rdi
movl %ebp, %edx
callq 0x1d4e
testl %eax, %eax
jne 0x154d
incl %ebp
jmp 0x16e4
xorl %ebp, %ebp
movq %r13, %r12
cmpq %rbp, %r15
je 0x1a78
movq (%rsp), %rdi
movq %r12, %rsi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x1daf
incq %rbp
addq $0x10, %r12
testl %eax, %eax
je 0x171c
jmp 0x154d
movq $0x0, 0x18(%rsp)
xorl %edi, %edi
callq 0x1090
movq %rbp, %rdi
callq 0x1fec
pushq $0x1
popq %rbp
movq %r13, %rdi
callq 0x10e0
movq 0x18(%rsp), %rdi
callq 0x10e0
testq %rbx, %rbx
je 0x1c76
leaq 0x1948(%rip), %rsi      # 0x30ca
movq %rbx, %rdi
callq 0x1100
testl %eax, %eax
jne 0x1c76
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x1892
leaq 0x1bac(%rip), %rsi      # 0x3353
callq 0x10d0
movq %rax, %r12
leaq 0x48(%rsp), %rdi
xorl %ebx, %ebx
movl $0x90, %edx
xorl %esi, %esi
callq 0x1060
testq %r12, %r12
je 0x18b2
movl %ebp, 0x20(%rsp)
movq %r12, %rdi
callq 0x10b0
leaq 0x48(%rsp), %r14
movl %eax, %edi
movq %r14, %rsi
callq 0x1170
movq 0x30(%r14), %r15
cmpq $0xf4241, %r15          # imm = 0xF4241
movl $0xf4240, %ecx          # imm = 0xF4240
cmovbq %rcx, %r15
testl %eax, %eax
cmovnsq %rcx, %r15
leaq 0x1(%r15), %rdi
callq 0x10f0
testq %rax, %rax
je 0x18bf
movq %r12, (%rsp)
movq %rax, %rbx
xorl %ebp, %ebp
movq %rbp, %r13
movq %r15, %r14
subq %rbp, %r14
je 0x182f
movq %rbx, %rax
movq (%rsp), %r12
jmp 0x1854
leaq 0xf4241(%r15), %rsi
movq %rbx, %rdi
callq 0x1160
testq %rax, %rax
movq (%rsp), %r12
je 0x18c1
addq $0xf4240, %r15          # imm = 0xF4240
movq %r15, %r14
subq %r13, %r14
movq %rax, %rbx
leaq (%rax,%r13), %rdi
pushq $0x1
popq %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x1120
leaq (%rax,%r13), %rbp
cmpq %r14, %rax
je 0x181b
movq %rax, %r12
movb $0x0, (%rbx,%rbp)
movq (%rsp), %r15
movq %r15, %rdi
callq 0x1180
testl %eax, %eax
je 0x1a22
movq %r15, %r12
jmp 0x18c1
movl $0x2faf080, %r15d       # imm = 0x2FAF080
pushq $0x10
popq %rsi
movl $0x2faf080, %edi        # imm = 0x2FAF080
callq 0x129c
movq %rax, %rbx
movq $0x0, (%rsp)
jmp 0x18e2
movq $0x0, (%rsp)
xorl %r15d, %r15d
jmp 0x18e2
xorl %ebx, %ebx
movq %r12, %rdi
callq 0x10a0
movq %rbx, %rdi
callq 0x10e0
xorl %ebx, %ebx
movq $0x0, (%rsp)
xorl %r15d, %r15d
movl 0x20(%rsp), %ebp
testq %rbx, %rbx
je 0x1441
movq %rbx, 0x20(%rsp)
callq 0x1d43
movq %rax, %r12
testq %rax, %rax
je 0x1c61
callq 0x255d
testq %rax, %rax
js 0x1c61
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x1958
xorl %r14d, %r14d
leaq 0x48(%rsp), %rbx
cmpq %r14, %r15
je 0x1998
movq (%rsp), %rax
movq (%rax,%r14,8), %rsi
movq %r12, %rdi
movq %rbx, %rdx
callq 0x201a
movl 0x48(%rsp), %ecx
testl %ecx, %ecx
js 0x1be8
movq 0x20(%r12), %rcx
movl %eax, %eax
movl %r14d, (%rcx,%rax,4)
incq %r14
jmp 0x1924
xorl %r13d, %r13d
leaq 0x48(%rsp), %rbx
movq 0x20(%rsp), %r14
cmpq %r13, %r15
je 0x1998
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x201a
movl 0x48(%rsp), %ecx
testl %ecx, %ecx
jle 0x1c46
movq 0x20(%r12), %rcx
movl %eax, %eax
movl %r13d, (%rcx,%rax,4)
incq %r13
addq $0x10, %r14
jmp 0x1965
callq 0x255d
testq %rax, %rax
movq 0x18(%rsp), %rcx
js 0x1c61
subq %rcx, %rax
movq %rax, %rdi
callq 0x2595
leaq 0x1978(%rip), %rdi      # 0x3335
leaq 0x372c(%rip), %rdx      # 0x50f0
movq %r15, %rsi
xorl %eax, %eax
callq 0x1030
callq 0x255d
testq %rax, %rax
js 0x1c61
movq %rax, %r14
cmpq $0x0, 0x28(%rsp)
je 0x1b06
xorl %r13d, %r13d
cmpq %r13, %r15
je 0x1b4d
movq (%rsp), %rax
movq (%rax,%r13,8), %rbx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x249c
incq %r13
cmpl (%r12), %eax
jb 0x19ee
movq 0x35c6(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
jmp 0x1b37
movq %r15, %rdi
callq 0x10a0
testl %eax, %eax
js 0x188d
movq %rbx, %rax
addq %rbx, %rbp
addq %r13, %r12
leaq (%rbx,%r12), %r15
incq %r15
xorl %r13d, %r13d
pushq $0xa
popq %r14
testq %rax, %rax
je 0x1aa4
movq %r15, %rdx
subq %rax, %rdx
decq %rax
decq %rdx
cmpb $0xa, 0x1(%rax)
leaq 0x1(%rax), %rax
je 0x1a57
cmpq %rbp, %rax
adcq $0x0, %r13
movq %rax, %rdi
movl %r14d, %esi
callq 0x10c0
jmp 0x1a49
testl %r14d, %r14d
movq (%rsp), %r14
je 0x1a95
leaq 0x1917(%rip), %rdi      # 0x339f
callq 0x1130
movq %r14, %rdi
callq 0x1e77
movq %r14, %rdi
callq 0x1fec
xorl %ebp, %ebp
jmp 0x1760
shlq $0x3, %r13
movq %r13, %rdi
callq 0x10f0
movq %rax, (%rsp)
testq %rax, %rax
je 0x18c9
movq %rbx, %rax
addq %rbx, %r12
xorl %r15d, %r15d
pushq $0xa
popq %r14
testq %rax, %rax
je 0x18de
movq %r12, %rdx
subq %rax, %rdx
cmpb $0xa, (%rax)
jne 0x1ae9
movb $0x0, (%rax)
incq %rax
decq %rdx
jmp 0x1ad9
cmpq %rbp, %rax
jae 0x1af9
movq (%rsp), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
movq %rax, %rdi
movl %r14d, %esi
callq 0x10c0
jmp 0x1aca
leaq 0x1(%r15), %r13
movq 0x20(%rsp), %rsi
decq %r13
je 0x1b4d
leaq 0x10(%rsi), %rbx
movq %r12, %rdi
callq 0x249c
movq %rbx, %rsi
cmpl (%r12), %eax
jb 0x1b0f
movq 0x34b0(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
addq $-0x10, %rbx
leaq 0x170d(%rip), %rsi      # 0x324b
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1110
jmp 0x1c61
callq 0x255d
testq %rax, %rax
js 0x1c61
subq %r14, %rax
movq %rax, %rdi
callq 0x2595
leaq 0x17d7(%rip), %rdi      # 0x3344
leaq 0x357c(%rip), %rdx      # 0x50f0
movq %r15, %rsi
xorl %eax, %eax
callq 0x1030
movq %r12, %rdi
callq 0x1e77
movq %r12, %rdi
callq 0x1fec
movq 0x20(%rsp), %rdi
callq 0x10e0
movq (%rsp), %rdi
jmp 0x1c71
leaq 0x158a(%rip), %rdi      # 0x3132
callq 0x1090
movq $0x0, 0x18(%rsp)
jmp 0x1755
movq 0x341e(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0x173d(%rip), %rsi      # 0x3309
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1110
movq 0x20(%rsp), %rbx
movq 0x30(%rsp), %r13
movq %r14, %rbp
jmp 0x1755
movq 0x33f1(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
movq (%rsp), %rax
movq (%rax,%r14,8), %rdx
leaq 0x15fc(%rip), %rsi      # 0x31fd
jmp 0x1c5a
movq 0x33d6(%rip), %rax      # 0x4fe0
movq (%rax), %rcx
leaq 0x1463(%rip), %rdi      # 0x3077
pushq $0x26
popq %rsi
pushq $0x1
popq %rdx
callq 0x1190
jmp 0x1441
movq 0x33b5(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0x1469(%rip), %rsi      # 0x309e
movl $0x5f5e0ff, %edx        # imm = 0x5F5E0FF
xorl %eax, %eax
callq 0x1110
jmp 0x1441
movq 0x3393(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0x15a6(%rip), %rsi      # 0x31fd
movq %r14, %rdx
xorl %eax, %eax
callq 0x1110
movq %r12, %rdi
callq 0x1fec
pushq $0x1
popq %rbp
movq 0x20(%rsp), %rdi
callq 0x10e0
movl %ebp, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq