// File: /workspace/github_cpp_makefile_star2_O2/JMMackenzie[P]binary_to_jass/bin_to_jass_disk.cpp
// Function: main
int main(int argc, char** argv)
{
    if(argc != 6)
      usage(argv[0]);

    // Get input data
    std::string ds2i_prefix = argv[1];
    std::string docid_file = argv[2];
    std::string lexicon_file = argv[3];
    float quantization = std::atof(argv[4]);

    // Do it
    read_and_write_doclist(docid_file, "CIdoclist.bin");
    if (*argv[5] == 'q')
        score_index(ds2i_prefix, lexicon_file, quantization, 'q');
    else if (*argv[5] == 'G')
        score_index(ds2i_prefix, lexicon_file, quantization, 'G');
    else if (*argv[5] == 'g')
        score_index(ds2i_prefix, lexicon_file, quantization, 'g');
    else
        usage(argv[0]);


return (EXIT_SUCCESS);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %rbx
cmpl $0x6, %edi
jne 0x3656
movq 0x8(%rbx), %rsi
leaq 0x38(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x20a0
movq 0x10(%rbx), %rsi
leaq 0x58(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x20a0
movq 0x18(%rbx), %rsi
leaq 0x18(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x20a0
movq 0x20(%rbx), %rdi
callq 0x21d0
vmovsd %xmm0, 0x10(%rsp)
leaq 0x98(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x2220
leaq 0x54cd6(%rip), %rsi     # 0x581d1
leaq 0x78(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x20a0
leaq 0x98(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x2533
vcvtsd2ss 0x10(%rsp), %xmm1, %xmm0
vmovss %xmm0, 0x10(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x20c0
leaq 0x98(%rsp), %rdi
callq 0x20c0
movq 0x28(%rbx), %rax
movzbl (%rax), %eax
cmpl $0x47, %eax
je 0x35dd
cmpl $0x67, %eax
je 0x359d
cmpl $0x71, %eax
jne 0x3678
leaq 0x198(%rsp), %rbx
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x2220
leaq 0x178(%rsp), %r14
leaq 0x18(%rsp), %rsi
movq %r14, %rdi
callq 0x2220
vcvtss2sd 0x10(%rsp), %xmm1, %xmm0
pushq $0x71
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x26de
jmp 0x361b
leaq 0x118(%rsp), %rbx
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x2220
leaq 0xf8(%rsp), %r14
leaq 0x18(%rsp), %rsi
movq %r14, %rdi
callq 0x2220
vcvtss2sd 0x10(%rsp), %xmm1, %xmm0
pushq $0x67
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x26de
jmp 0x361b
leaq 0x158(%rsp), %rbx
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x2220
leaq 0x138(%rsp), %r14
leaq 0x18(%rsp), %rsi
movq %r14, %rdi
callq 0x2220
vcvtss2sd 0x10(%rsp), %xmm1, %xmm0
pushq $0x47
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x26de
movq %r14, %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x20c0
leaq 0x18(%rsp), %rdi
callq 0x20c0
leaq 0x58(%rsp), %rdi
callq 0x20c0
leaq 0x38(%rsp), %rdi
callq 0x20c0
xorl %eax, %eax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r14
retq
movq (%rbx), %rsi
leaq 0xd8(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x20a0
leaq 0xd8(%rsp), %rdi
callq 0x341c
movq (%rbx), %rsi
leaq 0xb8(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x20a0
leaq 0xb8(%rsp), %rdi
callq 0x341c
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
jmp 0x3735
jmp 0x374b
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
callq 0x20c0
jmp 0x36e8
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
callq 0x20c0
jmp 0x36f5
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0x20c0
jmp 0x3702
movq %rax, %rbx
leaq 0x198(%rsp), %rdi
jmp 0x3735
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
jmp 0x3735
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
jmp 0x3735
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
jmp 0x3767
jmp 0x3746
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x20c0
jmp 0x372d
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x20c0
jmp 0x374e
movq %rax, %rbx
jmp 0x3758
movq %rax, %rbx
jmp 0x3762
movq %rax, %rbx
jmp 0x376c
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x20c0
leaq 0x58(%rsp), %rdi
callq 0x20c0
leaq 0x38(%rsp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x22c0