// File: /workspace/github_cpp_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rsi, %rbx
cmpl $0x6, %edi
jne 0x3ed7
movq 0x8(%rbx), %rsi
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x20c0
movq 0x10(%rbx), %rsi
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x20c0
movq 0x18(%rbx), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x20c0
movq 0x20(%rbx), %rdi
callq 0x2240
vmovsd %xmm0, 0x8(%rsp)
leaq 0x100(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf0(%rsp), %rdi
callq 0x43d2
leaq 0xe0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5562f(%rip), %rsi     # 0x59251
leaq 0x55635(%rip), %rdx     # 0x5925e
leaq 0xd0(%rsp), %rdi
callq 0x4cee
leaq 0xf0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x25fd
movq 0xd0(%rsp), %rdi
cmpq %r15, %rdi
je 0x3c68
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0xf0(%rsp), %rdi
cmpq %r14, %rdi
je 0x3c85
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x21f0
vcvtsd2ss 0x8(%rsp), %xmm1, %xmm0
movq 0x28(%rbx), %rax
movzbl (%rax), %eax
cmpl $0x47, %eax
vmovss %xmm0, 0x8(%rsp)
je 0x3dd6
cmpl $0x67, %eax
je 0x3d49
cmpl $0x71, %eax
jne 0x3ef9
leaq 0x160(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x150(%rsp), %rdi
callq 0x43d2
leaq 0xc0(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0x43d2
vcvtss2sd 0x8(%rsp), %xmm1, %xmm0
leaq 0x150(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
movl $0x71, %edx
callq 0x284d
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x3d3c
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x150(%rsp), %rdi
jmp 0x3e67
leaq 0x120(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x110(%rsp), %rdi
callq 0x43d2
leaq 0x80(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x43d2
vcvtss2sd 0x8(%rsp), %xmm1, %xmm0
leaq 0x110(%rsp), %rdi
leaq 0x70(%rsp), %rsi
movl $0x67, %edx
callq 0x284d
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x3dc9
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x110(%rsp), %rdi
jmp 0x3e67
leaq 0x140(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x130(%rsp), %rdi
callq 0x43d2
leaq 0xa0(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0x43d2
vcvtss2sd 0x8(%rsp), %xmm1, %xmm0
leaq 0x130(%rsp), %rdi
leaq 0x90(%rsp), %rsi
movl $0x47, %edx
callq 0x284d
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x3e5f
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x130(%rsp), %rdi
cmpq %r14, %rdi
je 0x3e77
movq (%r14), %rsi
incq %rsi
callq 0x21f0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3e92
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ead
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ec8
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21f0
xorl %eax, %eax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r14
popq %r15
retq
movq (%rbx), %rsi
leaq 0x190(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x20c0
leaq 0x190(%rsp), %rdi
callq 0x3b1f
movq (%rbx), %rsi
leaq 0x170(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x20c0
leaq 0x170(%rsp), %rdi
callq 0x3b1f
movq %rax, %rbx
leaq 0x180(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4082
movq 0x180(%rsp), %rsi
jmp 0x4066
jmp 0x407f
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x3fab
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x3fab
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x3fcc
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x3fcc
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x3fea
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x3fea
movq %rax, %rbx
movq 0x150(%rsp), %rdi
cmpq %r14, %rdi
je 0x4082
movq 0x160(%rsp), %rsi
jmp 0x4066
movq %rax, %rbx
movq 0x130(%rsp), %rdi
cmpq %r14, %rdi
je 0x4082
movq 0x140(%rsp), %rsi
jmp 0x4066
movq %rax, %rbx
movq 0x110(%rsp), %rdi
cmpq %r14, %rdi
je 0x4082
movq 0x120(%rsp), %rsi
jmp 0x4066
movq %rax, %rbx
leaq 0x1a0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40d3
movq 0x1a0(%rsp), %rsi
jmp 0x40cb
jmp 0x407a
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
cmpq %r15, %rdi
je 0x4051
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x4051
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
cmpq %r14, %rdi
je 0x4082
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x4082
movq %rax, %rbx
jmp 0x409d
movq %rax, %rbx
jmp 0x40b8
movq %rax, %rbx
jmp 0x40d3
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x409d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40b8
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40d3
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2310
nop