// File: /workspace/github_cpp_makefile_star2_O3/cmaureir[P]strip-packing/scattersearch.cpp
// Function: check_flags(int, char**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool check_flags(int argc, char *argv[], string &path){

    po::options_description desc("Allowed options");
    desc.add_options()
        ("help,h"     , "Shows help message")
        ("input,i"    , po::value<std::string>() , "Path to the input file")
    ;

    po::variables_map vm;
    po::store(po::parse_command_line(argc, argv, desc), vm);
    po::notify(vm);

    if (vm.count("help")) {
        cout << desc << endl;
        return false;
    }

    if (vm.count("input")) {
        path = vm["input"].as<std::string>();
        cout << "Using input file: " << path << endl;
    } else { cout << "You must set the «input file»" << endl; cout << desc << endl; return false;}


    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rdx, %r14
movq %rsi, %rbx
movl %edi, %ebp
leaq 0xc0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x7aa0(%rip), %rsi      # 0xd0b0
leaq 0x7aa8(%rip), %rdx      # 0xd0bf
leaq 0xb0(%rsp), %rdi
callq 0x90f8
movq 0xc97d(%rip), %rax      # 0x11fa8
movl (%rax), %edx
movl %edx, %ecx
shrl %ecx
leaq 0x30(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x4330
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5660
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4290
leaq 0x30(%rsp), %rdi
callq 0x42f0
leaq 0xb0(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x7a44(%rip), %rsi      # 0xd0c0
leaq 0x7a44(%rip), %rdx      # 0xd0c7
callq 0x4480
movq %rax, %r15
xorl %edi, %edi
callq 0x918d
leaq 0x7a41(%rip), %rsi      # 0xd0da
leaq 0x7a42(%rip), %rcx      # 0xd0e2
movq %r15, %rdi
movq %rax, %rdx
callq 0x44c0
leaq 0xb0(%rsp), %rdi
callq 0x4100
xorps %xmm0, %xmm0
leaq 0x150(%rsp), %r9
movaps %xmm0, (%r9)
movaps %xmm0, 0x10(%r9)
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rcx
movl %ebp, %esi
movq %rbx, %rdx
xorl %r8d, %r8d
callq 0x8abf
leaq 0x8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
xorl %edx, %edx
callq 0x4440
leaq 0x8(%rsp), %rdi
callq 0x8d1c
leaq 0x150(%rsp), %rdi
callq 0x8bba
leaq 0xb0(%rsp), %rdi
callq 0x4160
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x79ce(%rip), %rsi      # 0xd0f9
leaq 0x79cb(%rip), %rdx      # 0xd0fd
leaq 0x8(%rsp), %rdi
callq 0x90f8
leaq 0xc0(%rsp), %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xa910
movq %rax, %r15
leaq 0xc8(%rsp), %r12
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x5773
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4290
cmpq %r12, %r15
je 0x57ba
movq 0xc859(%rip), %rdi      # 0x11fd8
leaq 0x30(%rsp), %rsi
callq 0x4070
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4260
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4180
xorl %ebp, %ebp
jmp 0x58b4
leaq 0x8(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x7935(%rip), %rsi      # 0xd0fe
leaq 0x7933(%rip), %rdx      # 0xd103
callq 0x90f8
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xa910
movq %rax, %r12
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x57fc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4290
cmpq %r15, %r12
je 0x596c
leaq 0x8(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x78ea(%rip), %rsi      # 0xd0fe
leaq 0x78e8(%rip), %rdx      # 0xd103
callq 0x90f8
leaq 0xb0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x42b0
movq %rax, %rdi
callq 0xa999
movq %r14, %rdi
movq %rax, %rsi
callq 0x4140
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x585c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4290
movq 0xc775(%rip), %rdi      # 0x11fd8
leaq 0x789a(%rip), %rsi      # 0xd104
movl $0x12, %edx
callq 0x42e0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0xc756(%rip), %rdi      # 0x11fd8
callq 0x42e0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4260
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movb $0x1, %bpl
movq %rax, %rdi
callq 0x4180
movq 0xc725(%rip), %rax      # 0x11fe0
addq $0x10, %rax
leaq 0x120(%rsp), %rdi
movq %rax, -0x70(%rdi)
callq 0x8e34
leaq 0xf0(%rsp), %rdi
callq 0x8ec6
movq %rbx, %rdi
callq 0x8f3e
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
callq 0x9002
movq -0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x5930
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x4290
xorl %eax, %eax
movq %rax, 0x70(%rsp)
movl %eax, 0x78(%rsp)
movq %rax, 0x80(%rsp)
movl %eax, 0x88(%rsp)
movq %rax, 0x90(%rsp)
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
callq 0x904a
movq -0x28(%rbx), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x5958
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4290
movl %ebp, %eax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc665(%rip), %r14      # 0x11fd8
leaq 0x779d(%rip), %rsi      # 0xd117
movl $0x1f, %edx
movq %r14, %rdi
callq 0x42e0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x4260
movsbl %al, %esi
movq 0xc633(%rip), %rdi      # 0x11fd8
callq 0x4040
movq %rax, %rdi
callq 0x4180
movq 0xc61f(%rip), %rdi      # 0x11fd8
leaq 0x30(%rsp), %rsi
callq 0x4070
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4260
jmp 0x57a0
jmp 0x5a54
jmp 0x59e7
jmp 0x5a54
jmp 0x59e7
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x5a57
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4290
jmp 0x5a57
jmp 0x5a54
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8d1c
jmp 0x5a17
movq %rax, %rbx
leaq 0x150(%rsp), %rdi
callq 0x8bba
jmp 0x5a57
jmp 0x5a4f
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5a6e
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x4290
jmp 0x5a6e
movq %rax, %rbx
jmp 0x5a6e
movq %rax, %rbx
jmp 0x5a64
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x8bf2
leaq 0x30(%rsp), %rdi
callq 0x8c24
movq %rbx, %rdi
callq 0x4450